From MikeKerner at roadrunner.com Thu Feb 1 00:06:08 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 1 Feb 2018 00:06:08 -0500 Subject: Navigator update: better conversion to behaviors, better property editing, better version control, and send to private commands In-Reply-To: References: Message-ID: I love it when someone else solves a problem I've been thinking about attacking. I get a lot more gaming in that way :-) On Wed, Jan 31, 2018 at 5:56 PM, Geoff Canyon via use-livecode < use-livecode at lists.runrev.com> wrote: > I updated the 5.1 alpha of Navigator. You can download Navigator 5 here > . The full > documentation is here > , > and there is a description in detail of how conversion to script-only stack > behaviors works here > . > > New features: > > -- Use your own naming convention for script-only stack files. Whatever > you can do in a line of LC script, you can use to name your stacks. > -- A "Restore from Behaviors" command. This will do unhelpful things > (duplicate > scripts) for complex, chained behaviors, but I've used it about half a > dozen times with Navigator to restore and re-export Navigator's code using > the new naming feature. > -- The Custom Properties menu now supports deleting properties and > property sets. > -- The Property Editor now supports custom properties. > -- The Property Editor now highlights values that aren't the same for all > the controls selected. > -- The Property Editor now has a popup menu that displays each of the > values for the property for the selected controls -- these two make finding > and syncing discrepancies easy. > -- The contextual menu for stacks now supports updating all script-only > stacks from disk, making it unnecessary to quit and restart LiveCode after > changing branches in source control. > -- The Scripts menu now supports sending to private commands and functions > for testing. > _______________________________________________ > use-livecode mailing list > use-livecode 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 irog at mac.com Thu Feb 1 01:10:05 2018 From: irog at mac.com (Roger Guay) Date: Wed, 31 Jan 2018 23:10:05 -0700 Subject: Saving Changes in iOS - Solved In-Reply-To: <334F1CD9-3EA3-4BFE-8524-392D81DE64CC@mac.com> References: <4A82A95C-8B02-4ED5-85A1-A1FCAAC740EF@mac.com> <003801d39916$0973a360$1c5aea20$@net> <0DC38027-DBEA-4CB8-B5D3-4D79177CE6EB@mac.com> <953132FA-E95F-4467-AA61-E973B21337FE@major-k.de> <334F1CD9-3EA3-4BFE-8524-392D81DE64CC@mac.com> Message-ID: Thanks to Ralph and Klaus, I?ve succeeded in building my first iOS app that saves user data. The following post form Klaus did it. > Please read up the specialfolderpath() section in the dictionary. > > 1. specialfolderpath("documents?) is the folder inside of the application bundle where we have write permissions! > It is already there, do NOT try to create it! > > 2. Add your "main" stack via the "Copy files" to your app. > > 3. Then do this when the app (launcher) starts (preopenstack or openstack) > ... > ## Stack in users docs folder, where we have write permissions, means where we can SAVE that stack: > put specialfolderpath("documents") & "/your mainstack here.livecode" into tTargetStack > > ## This is the stack you added via "Copy files": > put specialfolderpath("resources") & "/your mainstack here.livecode" into tSourceStack > > ## check if the app had already been opened before: > if there is NOT a file tTargetStack then > put url("binfile:" & tSourceStack) into url("binfile:" & tTargetStack) > end if > > ## Now open that new stack in the users docs folder and save it later without problems: > go stack tTargetStack > ... > > And don't forget to add: > ... > start using this stack? This should be a tutorial somewhere. Thanks again guys. Especially for being patient with me!! Roger From bernd.niggemann at uni-wh.de Thu Feb 1 04:43:52 2018 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 1 Feb 2018 02:43:52 -0700 (MST) Subject: FormattedHeight of a field and its contents In-Reply-To: <78577703-BF0D-444F-B987-557A2ED41891@comcast.net> References: <78577703-BF0D-444F-B987-557A2ED41891@comcast.net> Message-ID: <1517478232435-0.post@n4.nabble.com> Hi David, have a look at http://berndniggemann.on-rev.com/margins/marginsapp.livecode.zip It does not explain why but shows what influences the formattedHeight of a field when changing margins, border size, scrollbars, text height etc. Kind regards Bernd -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dave at applicationinsight.com Thu Feb 1 10:28:15 2018 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 1 Feb 2018 08:28:15 -0700 (MST) Subject: post to cgi, JSON in Headers? In-Reply-To: <526EAAAF-F19D-4EBD-B041-383157B6285A@iotecdigital.com> References: <0977D3D7-69D1-43F2-97CD-BF377C4F0226@major-k.de> <526EAAAF-F19D-4EBD-B041-383157B6285A@iotecdigital.com> Message-ID: <1517498895826-0.post@n4.nabble.com> Klaus I wonder if he wants you to let the server know what kind of data you'll be sending up, it's not uncommon to set the headers this way when posting data to an API: put?"Content-Type: application/json" into tHeaders set httpHeaders to tHeaders Good luck! Dave Nicolas Cueto via use-livecode wrote > As a file, or to a SQL database? I successfully store PDFs in a mySQL > database as large blobs. For PDFs that are not large, a medium BLOB would > probably be fine. I open the PDF for binary read, then read until EOF. But > my PDFs are one or at most two page fillable forms. > > Bob S > > >> On Jan 31, 2018, at 08:25 , Klaus major-k via use-livecode < > use-livecode at .runrev > > wrote: >> >> Hi friends, >> >> I am scripting a routine to upload a PDF file to a server. >> So far, so good-> libURLMultipartFormData() is my friend. >> >> but now the developer of the API send me two TOKENs for authentification >> and said: >> "...and make sure you're posting the HTTP header data (the tokens) as >> application/json." >> ??? >> Now he is not available for the next hours. :-( >> >> Anyone knows what he is talking about and how I can add this to my >> scripts? >> Thanks a lot in advance! >> >> >> Best >> >> Klaus >> -- >> Klaus Major > > > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From gcanyon at gmail.com Thu Feb 1 10:28:28 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 1 Feb 2018 07:28:28 -0800 Subject: Navigator update: better conversion to behaviors, better property editing, better version control, and send to private commands In-Reply-To: References: Message-ID: I decided to bite the bullet and build a dialog/palette for the process. There are too many options to set, etc., and it just makes it easier. I almost finished it for testing last night before going to sleep. I'm taking a road trip today, but if I don't fall into bed tonight it should be done. BTW, with the dialog adding all enclosed controls as an option was one line of code: put allUniqueIDsOf(fld "id list") into fld "id List" I love it when (long) past Geoff does things right and I have it easy as a result. gc On Wed, Jan 31, 2018 at 9:06 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > I love it when someone else solves a problem I've been thinking about > attacking. I get a lot more gaming in that way :-) > > On Wed, Jan 31, 2018 at 5:56 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I updated the 5.1 alpha of Navigator. You can download Navigator 5 here > > . The > full > > documentation is here > > >, > > and there is a description in detail of how conversion to script-only > stack > > behaviors works here > > . > > > > New features: > > > > -- Use your own naming convention for script-only stack files. Whatever > > you can do in a line of LC script, you can use to name your stacks. > > -- A "Restore from Behaviors" command. This will do unhelpful things > > (duplicate > > scripts) for complex, chained behaviors, but I've used it about half a > > dozen times with Navigator to restore and re-export Navigator's code > using > > the new naming feature. > > -- The Custom Properties menu now supports deleting properties and > > property sets. > > -- The Property Editor now supports custom properties. > > -- The Property Editor now highlights values that aren't the same for > all > > the controls selected. > > -- The Property Editor now has a popup menu that displays each of the > > values for the property for the selected controls -- these two make > finding > > and syncing discrepancies easy. > > -- The contextual menu for stacks now supports updating all script-only > > stacks from disk, making it unnecessary to quit and restart LiveCode > after > > changing branches in source control. > > -- The Scripts menu now supports sending to private commands and > functions > > for testing. > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 bobsneidar at iotecdigital.com Thu Feb 1 10:32:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 1 Feb 2018 15:32:30 +0000 Subject: FormattedHeight of a field and its contents In-Reply-To: <78577703-BF0D-444F-B987-557A2ED41891@comcast.net> References: <78577703-BF0D-444F-B987-557A2ED41891@comcast.net> Message-ID: I get 14 for line 1 and 22 for the field. Put that in your smipe and poke it! ;-) Bob S > On Jan 31, 2018, at 17:31 , David Epstein via use-livecode wrote: > > Is there somewhere an explanation of how a field?s textSize, borderWidth, margins, and formattedHeight interact? > > According to the dictionary entry for ?formattedHeight?, a field?s formattedHeight is calculated ?including top and bottom margins?, while the formattedHeight of a chunk is calculated ?disregarding margins.? > > That does not seem consistent with these results for a field whose textSize is 16 and whose margin is 4: > > the formattedHeight of line 1 of fld 1 19 > the formattedHeight of line 1 to 2 of fld 1 38 > the formattedHeight of fld 1 15 if there?s one line of text > the formattedHeight of fld 1 34 if there are two lines of text. > > Even though there are top and bottom margins of 4, the field?s formattedHeight is smaller, rather than larger, than the formattedHeight of its contents. > > A perhaps related question: Why does a field margin of zero clip the visible text at the top and left? > > Many thanks. > > David Epstein From paul at researchware.com Thu Feb 1 10:46:22 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 1 Feb 2018 10:46:22 -0500 Subject: FormattedHeight of a field and its contents In-Reply-To: <78577703-BF0D-444F-B987-557A2ED41891@comcast.net> References: <78577703-BF0D-444F-B987-557A2ED41891@comcast.net> Message-ID: <4b656746-89ff-4961-e778-e6ed5db0b15a@researchware.com> What version of LiveCode on what platform are you trying this on? There have been a number of bugs related to object geometry calculations, including fields, over the years, found and fixed in various releases of LC. Some were platform and version of OS specific. On 1/31/2018 8:31 PM, David Epstein via use-livecode wrote: > Is there somewhere an explanation of how a field?s textSize, borderWidth, margins, and formattedHeight interact? > > According to the dictionary entry for ?formattedHeight?, a field?s formattedHeight is calculated ?including top and bottom margins?, while the formattedHeight of a chunk is calculated ?disregarding margins.? > > That does not seem consistent with these results for a field whose textSize is 16 and whose margin is 4: > > the formattedHeight of line 1 of fld 1 19 > the formattedHeight of line 1 to 2 of fld 1 38 > the formattedHeight of fld 1 15 if there?s one line of text > the formattedHeight of fld 1 34 if there are two lines of text. > > Even though there are top and bottom margins of 4, the field?s formattedHeight is smaller, rather than larger, than the formattedHeight of its contents. > > A perhaps related question: Why does a field margin of zero clip the visible text at the top and left? > > Many thanks. > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Feb 1 11:30:53 2018 From: klaus at major-k.de (Klaus major-k) Date: Thu, 1 Feb 2018 17:30:53 +0100 Subject: post to cgi, JSON in Headers? In-Reply-To: <1517498895826-0.post@n4.nabble.com> References: <0977D3D7-69D1-43F2-97CD-BF377C4F0226@major-k.de> <526EAAAF-F19D-4EBD-B041-383157B6285A@iotecdigital.com> <1517498895826-0.post@n4.nabble.com> Message-ID: <75D5C16B-355F-408A-B9E4-CA88E6BB3586@major-k.de> Hi Dave, > Am 01.02.2018 um 16:28 schrieb Dave Kilroy via use-livecode : > > Klaus I wonder if he wants you to let the server know what kind of data > you'll be sending up, it's not uncommon to set the headers this way when > posting data to an API: > > put "Content-Type: application/json" into tHeaders > set httpHeaders to tHeaders > > Good luck! thank you, it is a tad more complicatd, but I'm in conversation with the developer already! > Dave > >> ... >>> Hi friends, >>> >>> I am scripting a routine to upload a PDF file to a server. >>> So far, so good-> libURLMultipartFormData() is my friend. >>> >>> but now the developer of the API send me two TOKENs for authentification >>> and said: >>> "...and make sure you're posting the HTTP header data (the tokens) as >>> application/json." >>> ??? >>> Now he is not available for the next hours. :-( Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From williamdesmet at gmail.com Thu Feb 1 13:26:44 2018 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 1 Feb 2018 19:26:44 +0100 Subject: Bold textStyle on 'Header Bar' widget? In-Reply-To: References: Message-ID: Ok one step closer: ------- set the textStyle of widget "start" to "bold" ----- and with the chosen font of the widget set to [Styled Text) in the LC Inspector it gives bold text. But now all text in the widget is bold. Can't figure out how tp only get the labet of the widget set to bold. Anyone? groeten, William 2018-01-25 21:07 GMT+01:00 William de Smet : > Hi there, > > How do I set the label of a 'Header Bar' widget to bold? > > greetings, > > William > > > From pystcat at gmail.com Thu Feb 1 21:28:51 2018 From: pystcat at gmail.com (PystCat) Date: Thu, 1 Feb 2018 21:28:51 -0500 Subject: making DG2 usable In-Reply-To: References: Message-ID: <0CBC4127-B123-43CF-B547-94AD0A48676F@gmail.com> Zryip, You're the best! Is this in the API guide...? I need to download the new one. I'm still looking at the one Trevor did a while back under Blue Mango. > On Jan 31, 2018, at 5:38 PM, zryip theSlug via use-livecode wrote: > > I don't know, but you can create quickly and easily something similar, > for a test. > > 1. Create a new datagrid form > > 2. Populate it with some data, by using the inspector > > 3. By adding this script in a button, turn the datagrid in edit mode. > > set the dgEditMode of grp "datagrid 1" to true > > 4. You can disable / enable the animation by using the "animate > actions" property: > > set the dgProps["animate actions"] of grp "datagrid 1" to false > > 5. And the property "enable swipe" will give you the possibility to > turn on / off the swipe gesture. > > set the dgProps["enable swipe"] of grp "datagrid 1" to false > > On Wed, Jan 31, 2018 at 10:32 PM, PystCat via use-livecode > wrote: >> It was an email announcing some of the new features and it showed a web clip of it in action. It was WAY cool showing the drag and sort along with the swipe to delete? AND this was on a desktop. >> >>> On Jan 31, 2018, at 4:29 PM, Mike Kerner via use-livecode wrote: >>> >>> Was it a file? I don't remember seeing a file. I just remember the webex >>> session. >>> >>> On Wed, Jan 31, 2018 at 4:01 PM, PystCat via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Is it possible get the demo file the Mothership did in the email that >>>> showed off the new features..? I would love to see that. >>>> >>>>>> On Jan 31, 2018, at 12:07 PM, Richard Gaskin via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Mike Kerner wrote: >>>>> >>>>>>> On 31 Jan 2018, at 2:07 pm, Richard Gaskin wrote: >>>>>>> >>>>>>> But as for DG2, am I the only one who finds it too wonky to use? >>>>>> >>>>>> @Richard have you tried Bernd's modTableField as an alternative? I'm >>>>>> deploying it in my second project, and it's pretty darn cool. And >>>>>> fast. >>>>> >>>>> Indeed it is. Bernd does great work, and his modTableField is no >>>> exception. >>>>> >>>>> I used to maintain a similar single-field+header solution before DG1 >>>> premiered, but DG generally does what I need so I stopped working so hard. >>>>> >>>>> The thing with DG2 is that it's nicely designed for mobile use, if only >>>> the performance was as good as its design. The delete and re-ordering are >>>> well thought out, and in theory will be delightful to use. >>>>> >>>>> Monte's note that they're working on it is promising, seems worth >>>> waiting for. >>>>> >>>>> -- >>>>> Richard Gaskin >>>>> Fourth World Systems >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 > > > > -- > Zryip TheSlug > http://www.aslugontheroad.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Thu Feb 1 23:39:06 2018 From: hh at hyperhh.de (hh) Date: Fri, 2 Feb 2018 05:39:06 +0100 Subject: ControlKit and widget "hhControls" v1.0.2 Message-ID: This is a widget for use with LC 8 (version > 8.1.5), LC 9 is currently (as of 9.0.0-dp11) not supported, sorry. "hhControls" is a widget that lets you *create* a widget that contains controls: One or several of ++ push buttons, ++ check boxes, ++ (groupable) radio buttons, ++ info text, ++ number steppers, ++ text steppers, ++ popup menus, ++ (horizontal) sliders, ++ color swatches (needs widget hhColorpicker) The selected fontSize controls the size of the widget. All controls *scale* with the selected fontSize. LCB does a real good job with that, you will be surprised. For downloading the widget and a demo stack use the [b]hh-widgets-un-installer[/b] from "Sample Stacks" of the LC toolbar (or http://livecodeshare.runrev.com/stack/842/ ) For an easy build of the controls I made moreover a CONTROLKIT, see "Sample Stacks" (or http://livecodeshare.runrev.com/stack/863/ ). This is good for exploring the properties of the controls and testing the message that is sent by the widget on "MouseUp". The controlKit generates moreover a script that you can especially use for popping up your widget. From ahsoftware at sonic.net Fri Feb 2 00:50:14 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 1 Feb 2018 21:50:14 -0800 Subject: ControlKit and widget "hhControls" v1.0.2 In-Reply-To: References: Message-ID: On 02/01/2018 08:39 PM, hh via use-livecode wrote: > This is a widget for use with LC 8 (version > 8.1.5), LC 9 is > currently (as of 9.0.0-dp11) not supported, sorry. > > "hhControls" is a widget that lets you *create* a widget that contains > controls: One or several of A widget to create widgets! <3 -- Mark Wieder ahsoftware at gmail.com From james at thehales.id.au Fri Feb 2 01:28:34 2018 From: james at thehales.id.au (James Hale) Date: Fri, 2 Feb 2018 17:28:34 +1100 Subject: Make Docset updated to v2.5, Docset updated to 1.4.2 Message-ID: <6B389984-C943-45A6-B30C-4D84853C07D5@thehales.id.au> Hi, Recently I went looking for some LCB details and discovered that the nomenclature for the widget libraries had changed. They are now of type "Module". This meant that the cross referencing for these modules no longer worked and details of their contents were no longer displayed when they were selected. The Make Docset stack V2.5 now accommodates this change. It also changes a capitalization issue for "Control Structures" so the they are appropriately grouped in Dash. Make Docset v2.5 is currently on LiveCode Share and V1.4.2 of the LiveCode Docset should be available within the next 24 hours. James From jacque at hyperactivesw.com Fri Feb 2 03:53:10 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 2 Feb 2018 02:53:10 -0600 Subject: discrepancy between official device metric and LC stack size In-Reply-To: References: Message-ID: <219c9710-b025-ff96-61c6-93388071a2bb@hyperactivesw.com> On 1/31/18 5:23 PM, Nicolas Cueto via use-livecode wrote: > I test my mobile stacks on a Nexus 5, and, in portrait orientation, many > bottom pixels are offscreen, even though for width and height I follow > exactly the numbers given in dp at the website Device Metrics > . > > Why is it cut off? And how can I avoid this? Is there an LC keyword, like > "effective" or "working", that I should be including.... if so, how? Probably the area occupied by the status bar is pushing the stack down. Get "the working screenrect" to find out the actual screen dimensions your stack can use. Since every Android device is different, it's usually easier to set the fullscreenMode to "showAll" and let the LC engine adjust the size. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Feb 2 12:18:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Feb 2018 17:18:03 +0000 Subject: Standalone Building Message-ID: Hi all. On the issue of Standalone Building with a call to open stacks modally in a script, I noted that I can suppress messages and then build the standalone without issue. I am wondering if this doesn't cause problems for the standalone builder, why not have the standalone builder save the current setting and suppress messages before it begins the build brocess, then restore the prior setting when it's done? Bob S From bobsneidar at iotecdigital.com Fri Feb 2 12:37:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Feb 2018 17:37:30 +0000 Subject: RevQueryDatabase error in standalone In-Reply-To: <710E9307-CDBC-49E3-8B39-DEC069474DFA@iotecdigital.com> References: <050E4205-6386-4587-AFCD-55475F01E786@iotecdigital.com> <2FDBDEA3-6762-40BB-9132-1ED7CDA6E086@iotecdigital.com> <063A7366-B11C-4AB2-AB82-BC04E8762254@m-r-d.de> <710E9307-CDBC-49E3-8B39-DEC069474DFA@iotecdigital.com> Message-ID: <63FDDCC4-A623-45E0-BD21-DD7B577EAC66@iotecdigital.com> Okay I found the issue with the standalone not building properly. I wrote a new handler to size a window based on the min/max left, top,right,bottoms of every visible object, so that the "air" or empty space is consistent for every stack opened. It *sorta* works, as long as the topmost and leftmost of the most extreme top left objects are where you want them to be. But that is neither here nor there. To do this more easily, I gather the rects of every object, along with a few other properties into an array, then convert the array to a memory database, where I can query it for the rect,visible and owner properties, excluding simple groups (not datagrids) and the menu group. The result is a text variable containing these properties of every object on a card that I queried for, and I can sort the lines by item 2,3,4 or 5 of each to get the min left and top, and the max right and bottom of all the objects. Good so far? All that works a peach in development mode. But in a standalone, something fails when the app launches AS A STANDALONE. If I open the mainstack in the standalone folder in the IDE, it ALSO runs fine, so it isn't that something is going wrong in the build process!!! Just not as a STANDALONE! Here is the code. After commenting out all the calls to this handler, the standalone works fine again. I am completely befuddled by this. If anyone can find fault in this code, which would ONLY cause a problem with a standalone, I'd love to hear it: on setWindowRect pCardID lock screen put the short name of pCardID into tCardName if not there is a card tCardName then return "ERROR: No Card ID supplied." put getParentStack(pCardID) into pStackID put the left of pStackID into tOldLeft put the top of pStackID into tOldTop put tOldLeft into item 1 of tOldTopLeft put tOldTop into item 2 of tOldTopLeft put the loc of pStackID into tOldLoc put "rect,visible,owner" into tPropList put getCardObjects(pCardID, tPropList) into aCardObjects put aCardObjects ["props"] into aObjectProperties put arrayToMemoryDB(aObjectProperties) into tDBID put "select * from arraydata where" into tQuery put " visible = 'true'" after tQuery put " AND (NOT controlname LIKE 'group " & quote & "grp%" & quote & "')" after tQuery put " AND (NOT controlname LIKE '%MainMenu%')" after tQuery put " AND (NOT owner LIKE '%MainMenu%')" after tQuery if the environment is not "Development" then answer "about to query memory database." try put revDataFromQuery(comma,cr,tDBID,tQuery) into tQueryResults catch theError answer theError end try revCloseDatabase tDBID if the environment is not "Development" then answer "just queried memory database." sort tQueryResults numeric by item 2 of each put item 2 of line 1 of tQueryResults into minLeft sort tQueryResults numeric by item 3 of each put item 3 of line 1 of tQueryResults into minTop sort tQueryResults numeric descending by item 4 of each put item 4 of line 1 of tQueryResults into maxRight sort tQueryResults numeric descending by item 5 of each put item 5 of line 1 of tQueryResults into maxBottom subtract 26 from maxBottom -- Title Bar Height -- if the platform contains "MAC" then subtract 21 from maxBottom -- for menubar -- if the platform contains "WIN" then add 21 to maxBottom put minLeft + tOldLeft -30 into item 1 of tNewRect put minTop + tOldTop -45 into item 2 of tNewRect put maxRight + tOldLeft + minLeft into item 3 of tNewRect put maxBottom + tOldTop into item 4 of tNewRect set the rect of pStackID to tNewRect if the platform contains "WIN" then set the height of pStackID to the height of pStackID +21 set the topLeft of pStackID to tOldTopLeft put the effective working screenrect into tScreenRect put rectWithin(tNewRect, tScreenRect) into tIsWithin if not tIsWithin then set the loc of pStackID to the screenLoc -- center window end if unlock screen end setWindowRect From ahsoftware at sonic.net Fri Feb 2 13:26:19 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 2 Feb 2018 10:26:19 -0800 Subject: RevQueryDatabase error in standalone In-Reply-To: <63FDDCC4-A623-45E0-BD21-DD7B577EAC66@iotecdigital.com> References: <050E4205-6386-4587-AFCD-55475F01E786@iotecdigital.com> <2FDBDEA3-6762-40BB-9132-1ED7CDA6E086@iotecdigital.com> <063A7366-B11C-4AB2-AB82-BC04E8762254@m-r-d.de> <710E9307-CDBC-49E3-8B39-DEC069474DFA@iotecdigital.com> <63FDDCC4-A623-45E0-BD21-DD7B577EAC66@iotecdigital.com> Message-ID: <9e6ea376-b246-2b5a-f30e-8080b7605991@sonic.net> On 02/02/2018 09:37 AM, Bob Sneidar via use-livecode wrote: > put the short name of pCardID into tCardName I don't think you can do that. Shouldn't that be "card id pCardID"? -- Mark Wieder ahsoftware at gmail.com From klaus at major-k.de Fri Feb 2 16:41:40 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 2 Feb 2018 22:41:40 +0100 Subject: any tricks to make SHELL non blocking? Message-ID: Hi friends, I have a command line utility which will process a generated file like: ... get shell(q(tCommandLineUtility) && q(tGeneratedFile)) ... FYI: function q tString return QUOTE & tString & QUOTE end q Any hints on how to make this NON blocking somehow? I need a solution for Mac and Win. Thanks for any hint. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From revdev at pdslabs.net Fri Feb 2 17:30:24 2018 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 2 Feb 2018 14:30:24 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: Message-ID: Run it in a different app that you communicate with via sockets? Or maybe run that app as a process? You said *any* hints, so... be careful what you ask for! :-) Phil Davis On 2/2/18 1:41 PM, Klaus major-k via use-livecode wrote: > Hi friends, > > I have a command line utility which will process a generated file like: > ... > get shell(q(tCommandLineUtility) && q(tGeneratedFile)) > ... > > FYI: > function q tString > return QUOTE & tString & QUOTE > end q > > > Any hints on how to make this NON blocking somehow? > I need a solution for Mac and Win. > > Thanks for any hint. > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From paul at researchware.com Fri Feb 2 17:36:42 2018 From: paul at researchware.com (Paul Dupuis) Date: Fri, 2 Feb 2018 17:36:42 -0500 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: Message-ID: <41046d92-2095-47c7-7dd2-86241884a35e@researchware.com> I don't think you can use shell as non-blocking. You could use 'open process' to spawn your command line utility off as a subprocess which would be non blocking, but that approach has its own over head thing to work around On 2/2/2018 4:41 PM, Klaus major-k via use-livecode wrote: > Hi friends, > > I have a command line utility which will process a generated file like: > ... > get shell(q(tCommandLineUtility) && q(tGeneratedFile)) > ... > > FYI: > function q tString > return QUOTE & tString & QUOTE > end q > > > Any hints on how to make this NON blocking somehow? > I need a solution for Mac and Win. > > Thanks for any hint. > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Fri Feb 2 17:42:15 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 2 Feb 2018 14:42:15 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: <41046d92-2095-47c7-7dd2-86241884a35e@researchware.com> References: <41046d92-2095-47c7-7dd2-86241884a35e@researchware.com> Message-ID: <02d7e9ac-7e17-e3e8-c7ce-8e5316e1f513@fourthworld.com> Paul Dupuis wrote: > I don't think you can use shell as non-blocking. You could use 'open > process' to spawn your command line utility off as a subprocess which > would be non blocking, but that approach has its own over head thing > to work around What additional overhead is incurred by running a process via "open process" vs the shell function? -- Richard Gaskin Fourth World Systems From hh at hyperhh.de Fri Feb 2 17:53:05 2018 From: hh at hyperhh.de (hh) Date: Fri, 2 Feb 2018 23:53:05 +0100 Subject: any tricks to make SHELL non blocking? Message-ID: This is non-blocking: put tCommandLineUtility && q(tGeneratedFile) into p0 open process p0 for neither -- no need to close that Don't use quotes for the utility. You have no feedback with that. That's the advantage of shell. > Klaus M. wrote: > Hi friends, > I have a command line utility which will process a generated file like: > ... > get shell(q(tCommandLineUtility) && q(tGeneratedFile)) > ... > FYI: > function q tString > return QUOTE & tString & QUOTE > end q > Any hints on how to make this NON blocking somehow? > I need a solution for Mac and Win. > Thanks for any hint. From klaus at major-k.de Fri Feb 2 17:54:29 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 2 Feb 2018 23:54:29 +0100 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: Message-ID: <8A076BD4-2051-4E41-A604-311D8A33BD77@major-k.de> Hi Phil, > Am 02.02.2018 um 23:30 schrieb Phil Davis via use-livecode : > > Run it in a different app that you communicate with via sockets? Or maybe run that app as a process? > You said *any* hints, so... be careful what you ask for! :-) yep, get it! :-D > Phil Davis > > On 2/2/18 1:41 PM, Klaus major-k via use-livecode wrote: >> Hi friends, >> I have a command line utility which will process a generated file like: >> ... >> get shell(q(tCommandLineUtility) && q(tGeneratedFile)) >> ... >> FYI: >> function q tString >> return QUOTE & tString & QUOTE >> end q >> >> Any hints on how to make this NON blocking somehow? >> I need a solution for Mac and Win. >> >> Thanks for any hint. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Fri Feb 2 17:55:51 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 2 Feb 2018 23:55:51 +0100 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: Message-ID: <4DD3DA5F-A541-4F68-816B-506094641BD5@major-k.de> Hello Hermann, > Am 02.02.2018 um 23:53 schrieb hh via use-livecode : > > This is non-blocking: > > put tCommandLineUtility && q(tGeneratedFile) into p0 > open process p0 for neither -- no need to close that > > Don't use quotes for the utility. > You have no feedback with that. That's the advantage of shell. great, thank you, will try this tomorrow! >> Klaus M. wrote: >> Hi friends, >> I have a command line utility which will process a generated file like: >> ... >> get shell(q(tCommandLineUtility) && q(tGeneratedFile)) >> ... >> FYI: >> function q tString >> return QUOTE & tString & QUOTE >> end q >> Any hints on how to make this NON blocking somehow? >> I need a solution for Mac and Win. >> Thanks for any hint. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Fri Feb 2 18:02:59 2018 From: klaus at major-k.de (Klaus major-k) Date: Sat, 3 Feb 2018 00:02:59 +0100 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: Message-ID: Hi Hermann, > Am 02.02.2018 um 23:53 schrieb hh via use-livecode : > > This is non-blocking: > > put tCommandLineUtility && q(tGeneratedFile) into p0 > open process p0 for neither -- no need to close that > > Don't use quotes for the utility. > You have no feedback with that. That's the advantage of shell. just tested on my Mac, no luck. And "the result" = EMPTY >> Klaus M. wrote: >> Hi friends, >> I have a command line utility which will process a generated file like: >> ... >> get shell(q(tCommandLineUtility) && q(tGeneratedFile)) >> ... >> FYI: >> function q tString >> return QUOTE & tString & QUOTE >> end q >> Any hints on how to make this NON blocking somehow? >> I need a solution for Mac and Win. >> Thanks for any hint. Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Fri Feb 2 18:07:29 2018 From: klaus at major-k.de (Klaus major-k) Date: Sat, 3 Feb 2018 00:07:29 +0100 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: Message-ID: Hi Hermann, > Am 03.02.2018 um 00:02 schrieb Klaus major-k via use-livecode : > > Hi Hermann, > >> Am 02.02.2018 um 23:53 schrieb hh via use-livecode : >> >> This is non-blocking: >> >> put tCommandLineUtility && q(tGeneratedFile) into p0 >> open process p0 for neither -- no need to close that >> >> Don't use quotes for the utility. >> You have no feedback with that. That's the advantage of shell. > > just tested on my Mac, no luck. > And "the result" = EMPTY sorry, I had a typo in my script, it WORKS, thanks a lot! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From paul at researchware.com Fri Feb 2 18:26:27 2018 From: paul at researchware.com (Paul Dupuis) Date: Fri, 2 Feb 2018 18:26:27 -0500 Subject: any tricks to make SHELL non blocking? In-Reply-To: <02d7e9ac-7e17-e3e8-c7ce-8e5316e1f513@fourthworld.com> References: <41046d92-2095-47c7-7dd2-86241884a35e@researchware.com> <02d7e9ac-7e17-e3e8-c7ce-8e5316e1f513@fourthworld.com> Message-ID: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> On 2/2/2018 5:42 PM, Richard Gaskin via use-livecode wrote: > Paul Dupuis wrote: > > > I don't think you can use shell as non-blocking. You could use 'open > > process' to spawn your command line utility off as a subprocess which > > would be non blocking, but that approach has its own over head thing > > to work around > > What additional overhead is incurred by running a process via "open > process" vs the shell function? > Correction, I wasn't speaking of 'overhead' as CPU overhead, but as other things you may need to do as a developer. For example, shell() nicely runs the app specified and returns any return value, where as with 'open process' you need to also read from the process to get returned data, close the process. Any helper app you install that you call via open process (i.e. some app that is not already part of the OS or installed software), you really need to code sign (a good practice anyway) otherwise, assorted 3rd party security tools (mostly on Windows like McAfee or Norton) are likely to interfere with your launching of the app via open process by treating it as suspicious activity. There are probably a few other detail I have forgotten as I wrote this. We just went through this for a couple of HyperRESEARCH (our app) helper apps (also LC standalones) that 4.0 of HyperRESEARCH communicates with. FYI we found that interapp communication via sockets is more reliable cross-platform that via interprocess communication, but at some real world customer sites, security setting can prohibit socket communication even to the same computer where as IPC still works, so an app that need to be really really robust for real world installs may wish to include code for both and swap from one to the other if one means of communication fails. -- Paul From hh at hyperhh.de Fri Feb 2 18:35:38 2018 From: hh at hyperhh.de (hh) Date: Sat, 3 Feb 2018 00:35:38 +0100 Subject: any tricks to make SHELL non blocking? Message-ID: <668943F1-639F-461C-B398-BE47378CDD86@hyperhh.de> > Klaus wrote: > ... it WORKS, thanks a lot! How could you doubt that!? :-( I never post things that I didn't test thoroughly, learned that from 'bn'. In this case I looked into the script of my next Mac/Win/Linux/Raspi-stack "timeLapseCamera" which runs since four days without problems. I have it running with up to 4 cheap USB-webcams at different repeat rates. There is no blocking with my tests even if they fire all at the same full second. From klaus at major-k.de Fri Feb 2 18:39:07 2018 From: klaus at major-k.de (Klaus major-k) Date: Sat, 3 Feb 2018 00:39:07 +0100 Subject: any tricks to make SHELL non blocking? In-Reply-To: <668943F1-639F-461C-B398-BE47378CDD86@hyperhh.de> References: <668943F1-639F-461C-B398-BE47378CDD86@hyperhh.de> Message-ID: Hi Hermann, > Am 03.02.2018 um 00:35 schrieb hh via use-livecode : > >> Klaus wrote: >> ... it WORKS, thanks a lot! > > How could you doubt that!? :-( sorry, really didn't mean it personally! ;-) > I never post things that I didn't test thoroughly, learned that from 'bn'. > In this case I looked into the script of my next Mac/Win/Linux/Raspi-stack "timeLapseCamera" which runs since four days without problems. > I have it running with up to 4 cheap USB-webcams at different repeat rates. > There is no blocking with my tests even if they fire all at the same full > second. Way cool, dude! Voll krass, Alter! :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From hh at hyperhh.de Fri Feb 2 18:45:55 2018 From: hh at hyperhh.de (hh) Date: Sat, 3 Feb 2018 00:45:55 +0100 Subject: any tricks to make SHELL non blocking? Message-ID: <3E4FE706-0B6A-47F0-BCB2-0B0650FC54E8@hyperhh.de> > Way cool, dude! > Voll krass, Alter! :-) Yes. I once was also a young man with curly hair -- like you. are now ... From bobsneidar at iotecdigital.com Fri Feb 2 19:11:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 3 Feb 2018 00:11:30 +0000 Subject: RevQueryDatabase error in standalone In-Reply-To: <9e6ea376-b246-2b5a-f30e-8080b7605991@sonic.net> References: <050E4205-6386-4587-AFCD-55475F01E786@iotecdigital.com> <2FDBDEA3-6762-40BB-9132-1ED7CDA6E086@iotecdigital.com> <063A7366-B11C-4AB2-AB82-BC04E8762254@m-r-d.de> <710E9307-CDBC-49E3-8B39-DEC069474DFA@iotecdigital.com> <63FDDCC4-A623-45E0-BD21-DD7B577EAC66@iotecdigital.com> <9e6ea376-b246-2b5a-f30e-8080b7605991@sonic.net> Message-ID: <06EA2696-7013-47CD-B6C7-E1CB6C6DC7EE@iotecdigital.com> pCardID contains the long ID of the card that called it. Remember it works perfectly in the IDE, so it's doubtful there are any syntactical errors. I am vaguely remembering that there are times when openCard is triggered first and openstack at other times. If openCard gets triggered first when opening the mainstack, none of the libraries (like the utilities backscript containing virtually EVERYTHING that makes the stack work) will get loaded. A while back I posted there was a difference between Windows and Mac as to when certain messages were sent first, but I think now it may actually be a difference between IDE and Standalone. I will investigate further, now I know where to look. Bob S > On Feb 2, 2018, at 10:26 , Mark Wieder via use-livecode wrote: > > On 02/02/2018 09:37 AM, Bob Sneidar via use-livecode wrote: >> put the short name of pCardID into tCardName > > I don't think you can do that. > Shouldn't that be "card id pCardID"? > > -- > Mark Wieder From bobsneidar at iotecdigital.com Fri Feb 2 19:35:14 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 3 Feb 2018 00:35:14 +0000 Subject: RevQueryDatabase error in standalone In-Reply-To: <06EA2696-7013-47CD-B6C7-E1CB6C6DC7EE@iotecdigital.com> References: <050E4205-6386-4587-AFCD-55475F01E786@iotecdigital.com> <2FDBDEA3-6762-40BB-9132-1ED7CDA6E086@iotecdigital.com> <063A7366-B11C-4AB2-AB82-BC04E8762254@m-r-d.de> <710E9307-CDBC-49E3-8B39-DEC069474DFA@iotecdigital.com> <63FDDCC4-A623-45E0-BD21-DD7B577EAC66@iotecdigital.com> <9e6ea376-b246-2b5a-f30e-8080b7605991@sonic.net> <06EA2696-7013-47CD-B6C7-E1CB6C6DC7EE@iotecdigital.com> Message-ID: Belay that. Openstack happens first no matter what. I think at this point I will use it only as a utility for resizing windows when things have been rearranged, or a new form is created and I need to clean it up a bit. Bob S > On Feb 2, 2018, at 16:11 , Bob Sneidar via use-livecode wrote: > > A while back I posted there was a difference between Windows and Mac as to when certain messages were sent first, but I think now it may actually be a difference between IDE and Standalone. > > I will investigate further, now I know where to look. > > Bob S From dfepstein at comcast.net Fri Feb 2 21:38:10 2018 From: dfepstein at comcast.net (David Epstein) Date: Fri, 2 Feb 2018 21:38:10 -0500 Subject: FormattedHeight of a field and its contents Message-ID: <90E5A773-4210-4947-ADF6-DE42B3D4B9C2@comcast.net> Thanks for the responses on this. I used Bernd?s tool and did some more tests, and found some things that may be helpful to others. While the left and right margins of a field are meant literally (a 5 pixel left margin leaves 5 white pixels to the left of the text), the top margin is more complicated, no doubt owing to the variety of textHeights that need to be accommodated. For example, a margin of "0" will often clip the top of the text--as if "0" meant a "negative margin". 6 seems to be a magic default value for a field's top margin, which avoids clipping the content. With horizontal gridlines visible, a 6 pixel buffer makes the top row the same height as the other rows. And with a 6 pixel buffer the formattedHeight of the field will exactly match the formattedHeight of the field's content (although a non-zero borderwidth or a horizontal scrollbar changes this). Thus--what I wondered about in my original post--with a margin less than 6 the formattedHeight of the field is less than the formattedHeight of the content; the content is in effect clipped. At smaller textHeights this will be visible, while at larger textHeights only white space above the characters is clipped. I was trying to answer two questions, and I think I'm pretty close. 1. How do I make sure that the field's contents are all visible if I set the field's height to the formattedHeight? Answer: Set the top and bottom margins to 6. For the left and right margins, even 1 pixel should be enough to keep everything visible. 2. What margins will provide a symmetrical look for a text box? A top margin of 6 doesn?t look like a 6 pixel margin; how it looks depends on the textHeight. I estimate that its apparent height is one fourth of the effective textHeight, and I use this to size the other margins in the ?tightMargins? handler below. While the top margin of 6 looks good with horizontal gridlines, without them (and especially if you show a text baseline) it looks too small compared to the space between subsequent lines. To match that larger space, in effect doubling the apparent top margin, add one third of the effective textHeight. See ?niceMargins? handler below. Example of usage: set the margins of fld 1 to the niceMargins of fld 1 set the height of fld 1 to the formattedHeight of fld 1 getProp niceMargins put the effective textHeight of the target into t put round(t*7/12) into m1 put round(t/3) into m2 return m1,6+m2,m1,m1 end niceMargins getProp tightMargins put round(.25*the effective textHeight of the target) into m return m,6,m,max(6,m) end tightMargins Improvements to these are welcomed. David Epstein From dochawk at gmail.com Fri Feb 2 22:21:31 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Feb 2018 19:21:31 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: Message-ID: On Fri, Feb 2, 2018 at 1:41 PM, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > > Any hints on how to make this NON blocking somehow? > I need a solution for Mac and Win. > > I don''t know about darkside machines, but on \begin{condescending snark} mac and other real operating systems \end{snark}, you can launch commands into the background by suffixing with & You may (or may not; it was years ago) need to enclose the command in parenthesis, which makes the whole parenthetical a block. You might also need to redirect output. so shell ( "(domycommand > myoutput &)" ) or something like that, and come back later to check myoutput -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Fri Feb 2 23:19:30 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 2 Feb 2018 22:19:30 -0600 Subject: Pasting tabs into Excel Message-ID: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> Someone asked me this and I don't have an answer: Before LC 8, you could put tabbed strings into the clipboard, paste into Excel or Google Sheets, and each tabbed item would go into a separate cell. After LC 8, the tabbed items go into a single cell as one string. How can we make Excel recognize the tabs? For example: put 1 &tab& 2 &tab& 3 into temp set the clipboardData["text"] to temp -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Sat Feb 3 00:22:34 2018 From: dunbarx at aol.com (dunbarx) Date: Fri, 2 Feb 2018 22:22:34 -0700 (MST) Subject: Pasting tabs into Excel In-Reply-To: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> Message-ID: <1517635354822-0.post@n4.nabble.com> Jacque. As if you needed this, confirmed here. What on earth can v.8 be doing to the tab character??? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bonnmike at gmail.com Sat Feb 3 00:52:19 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 2 Feb 2018 22:52:19 -0700 Subject: Pasting tabs into Excel In-Reply-To: <1517635354822-0.post@n4.nabble.com> References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> <1517635354822-0.post@n4.nabble.com> Message-ID: It's strange. If you paste into excel, then select the cell and use the text to columns tool, using Space as delimiter, poof. Columns. Also, in libreoffice, paste special can be used to choose "unformatted text" and that works also. Surely there is a way to pop a simple tab delimited string into the clipboard and have it just work.. On Fri, Feb 2, 2018 at 10:22 PM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Jacque. > > As if you needed this, confirmed here. > > What on earth can v.8 be doing to the tab character??? > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Sat Feb 3 02:52:24 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 3 Feb 2018 08:52:24 +0100 Subject: Pasting tabs into Excel In-Reply-To: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> Message-ID: <23FF39AA-8888-4646-A728-BFD8E7C273A2@m-r-d.de> Hi, i cannot reproduce that here on Mac OS X and Excel 2016 (V 15.30). I executed your sample code in the messagebox and was able to paste successfully the clipboard to Excel. I even tried with alpha numeric values. But what i noticed is the following: When i just click on a cell, so that it is selected without showing the blinking write cursor in the cell, then pasting is working w/o problems. When i double click a cell, so that it is selected and the blinking write cursor is shown, then i cannot paste it correctly. Tried with LC 8.19RC2 and LC9DP11. Will try on Windows later this day. Regards, Matthias > Am 03.02.2018 um 05:19 schrieb J. Landman Gay via use-livecode >: > > Someone asked me this and I don't have an answer: > > Before LC 8, you could put tabbed strings into the clipboard, paste into Excel or Google Sheets, and each tabbed item would go into a separate cell. After LC 8, the tabbed items go into a single cell as one string. > > How can we make Excel recognize the tabs? > > For example: > > put 1 &tab& 2 &tab& 3 into temp > set the clipboardData["text"] to temp > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sat Feb 3 09:55:44 2018 From: hh at hyperhh.de (hh) Date: Sat, 3 Feb 2018 15:55:44 +0100 Subject: Pasting tabs into Excel Message-ID: Possibly this is not LC but an Excel update that changed Excel's default delimiter from tab to comma. Does comma as delimiter work? From brian at milby7.com Sat Feb 3 11:07:19 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 03 Feb 2018 16:07:19 +0000 Subject: Pasting tabs into Excel In-Reply-To: References: Message-ID: I got the same results as Matthias on 6, 7, and 9 (Mac Sierra) On Sat, Feb 3, 2018 at 8:56 AM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > Possibly this is not LC but an Excel update that changed > Excel's default delimiter from tab to comma. > Does comma as delimiter work? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Feb 3 11:39:50 2018 From: dunbarx at aol.com (dunbarx) Date: Sat, 3 Feb 2018 09:39:50 -0700 (MST) Subject: Pasting tabs into Excel In-Reply-To: References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> Message-ID: <1517675990371-0.post@n4.nabble.com> I have no access to Excel at the moment, but I cannot believe that the default field delimiter could possibly have changed from tab. May just as well change the record delimiter from return It would break just about everything. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From rdimola at evergreeninfo.net Sat Feb 3 12:12:53 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 3 Feb 2018 12:12:53 -0500 Subject: FormattedHeight of a field and its contents In-Reply-To: <90E5A773-4210-4947-ADF6-DE42B3D4B9C2@comcast.net> References: <90E5A773-4210-4947-ADF6-DE42B3D4B9C2@comcast.net> Message-ID: <001c01d39d12$3d2e8f30$b78bad90$@net> David, Nice.... I've been wrestling with this. I am going to see how your observations translate into mobile. I'm going to apply your of findings to my app and see if I get better results than I get now. There have been a few threads in the past few years addressing vertically centering text in a field. None of them seem to address all font size cases. This 6px thingy might explain a lot! Thanks again for all your work. 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 David Epstein via use-livecode Sent: Friday, February 02, 2018 9:38 PM To: use-livecode at lists.runrev.com Cc: David Epstein Subject: Re: FormattedHeight of a field and its contents Thanks for the responses on this. I used Bernd?s tool and did some more tests, and found some things that may be helpful to others. While the left and right margins of a field are meant literally (a 5 pixel left margin leaves 5 white pixels to the left of the text), the top margin is more complicated, no doubt owing to the variety of textHeights that need to be accommodated. For example, a margin of "0" will often clip the top of the text--as if "0" meant a "negative margin". 6 seems to be a magic default value for a field's top margin, which avoids clipping the content. With horizontal gridlines visible, a 6 pixel buffer makes the top row the same height as the other rows. And with a 6 pixel buffer the formattedHeight of the field will exactly match the formattedHeight of the field's content (although a non-zero borderwidth or a horizontal scrollbar changes this). Thus--what I wondered about in my original post--with a margin less than 6 the formattedHeight of the field is less than the formattedHeight of the content; the content is in effect clipped. At smaller textHeights this will be visible, while at larger textHeights only white space above the characters is clipped. I was trying to answer two questions, and I think I'm pretty close. 1. How do I make sure that the field's contents are all visible if I set the field's height to the formattedHeight? Answer: Set the top and bottom margins to 6. For the left and right margins, even 1 pixel should be enough to keep everything visible. 2. What margins will provide a symmetrical look for a text box? A top margin of 6 doesn?t look like a 6 pixel margin; how it looks depends on the textHeight. I estimate that its apparent height is one fourth of the effective textHeight, and I use this to size the other margins in the ?tightMargins? handler below. While the top margin of 6 looks good with horizontal gridlines, without them (and especially if you show a text baseline) it looks too small compared to the space between subsequent lines. To match that larger space, in effect doubling the apparent top margin, add one third of the effective textHeight. See ?niceMargins? handler below. Example of usage: set the margins of fld 1 to the niceMargins of fld 1 set the height of fld 1 to the formattedHeight of fld 1 getProp niceMargins put the effective textHeight of the target into t put round(t*7/12) into m1 put round(t/3) into m2 return m1,6+m2,m1,m1 end niceMargins getProp tightMargins put round(.25*the effective textHeight of the target) into m return m,6,m,max(6,m) end tightMargins Improvements to these are welcomed. David Epstein _______________________________________________ use-livecode mailing list use-livecode at 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 Feb 3 12:35:53 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 03 Feb 2018 11:35:53 -0600 Subject: Pasting tabs into Excel In-Reply-To: <1517675990371-0.post@n4.nabble.com> References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> <1517675990371-0.post@n4.nabble.com> Message-ID: <1615cbd1ca8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Like Mike, I found that the text to columns tool, using space as delimiter,?will separate the entry into columns. That seems to imply that somewhere the tabs are changed to spaces. Also, pasting into a text editor does show the tabs, and copying from there preserves them when pasting into Excel, and they act normally and span columns. I also tried fullclipboardData and rawclipboardData with no luck. There seems to be something different about in LC's implementation. I found two bugs that might be related: http://quality.livecode.com/show_bug.cgi?id=19206 http://quality.livecode.com/show_bug.cgi?id=20336 -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 3, 2018 10:42:02 AM dunbarx via use-livecode wrote: > I have no access to Excel at the moment, but I cannot believe that the > default field delimiter could possibly have changed from tab. May just as > well change the record delimiter from return > > It would break just about everything. > > Craig > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Sat Feb 3 13:23:43 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 3 Feb 2018 12:23:43 -0600 Subject: Pasting tabs into Excel In-Reply-To: <1517675990371-0.post@n4.nabble.com> References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> <1517675990371-0.post@n4.nabble.com> Message-ID: I don?t think it changed. But Excel currently supports tab and return characters within cells. If you paste text with tabs/returns into the formula bar area it will all go into that cell. I'm using Excel 16.9 (180116) Try this function (LC 8/9): *on* stripClipboard *local* tData *lock* the clipboard *put* the rawClipboardData["public.utf8-plain-text"] into tData *set* the rawClipboardData to empty *set* the rawClipboardData["public.utf8-plain-text"] to tData *unlock* the clipboard *end* stripClipboard This will ensure the only thing on the clipboard is the text format (no RTF and no HTML). Even when I use this function after putting the text on the clipboard, I get the same results. And I get the same in LC 6 & 7 too. You mentioned raw clipboard, what did you try there? Oddly, when I use the text to columns tool, it recognizes the tabs (when I pasted the text into a single cell). More info on those 2 bugs: The first bug is about LC placing too much on the system clipboard. Prior to 8, LC only put text+RTF on the clipboard. With 8, HTML was added - LC ran everything through its internal conversion to LC styled text and put LC HTMLtext on the system clipboard as HTML. The bug fix on the first on stops that conversion so that when plain text is placed on the clipboard, only plain text is put on the system clipboard (and it no longer puts anything styled). The second bug is tightly related. It is actually the same process that is causing the problem, but the solution will be slightly different. There isn't a PR on this one yet. It would be easy to disable LC HTMLtext going to the clipboard unless specifically requested (which would be more like pre LC-8), but fixing the actual HTMLtext is a little more complicated. I've written some LCS code that can convert HTMLtext into a format that works (mostly) with copy/paste to other apps, but have not figured out how to put that into the message path to work seamlessly (would need to be called from the engine copy code). Ideally, something like: set the fullclipboarddata["htmltext"] to the htmltext of field "test" would put something on the clipboard that would not render with all of the extra lines and missing spaces when pasted to other apps. Thanks, Brian From brian at milby7.com Sat Feb 3 13:23:43 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 3 Feb 2018 12:23:43 -0600 Subject: Pasting tabs into Excel In-Reply-To: <1517675990371-0.post@n4.nabble.com> References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> <1517675990371-0.post@n4.nabble.com> Message-ID: I don?t think it changed. But Excel currently supports tab and return characters within cells. If you paste text with tabs/returns into the formula bar area it will all go into that cell. I'm using Excel 16.9 (180116) Try this function (LC 8/9): *on* stripClipboard *local* tData *lock* the clipboard *put* the rawClipboardData["public.utf8-plain-text"] into tData *set* the rawClipboardData to empty *set* the rawClipboardData["public.utf8-plain-text"] to tData *unlock* the clipboard *end* stripClipboard This will ensure the only thing on the clipboard is the text format (no RTF and no HTML). Even when I use this function after putting the text on the clipboard, I get the same results. And I get the same in LC 6 & 7 too. You mentioned raw clipboard, what did you try there? Oddly, when I use the text to columns tool, it recognizes the tabs (when I pasted the text into a single cell). More info on those 2 bugs: The first bug is about LC placing too much on the system clipboard. Prior to 8, LC only put text+RTF on the clipboard. With 8, HTML was added - LC ran everything through its internal conversion to LC styled text and put LC HTMLtext on the system clipboard as HTML. The bug fix on the first on stops that conversion so that when plain text is placed on the clipboard, only plain text is put on the system clipboard (and it no longer puts anything styled). The second bug is tightly related. It is actually the same process that is causing the problem, but the solution will be slightly different. There isn't a PR on this one yet. It would be easy to disable LC HTMLtext going to the clipboard unless specifically requested (which would be more like pre LC-8), but fixing the actual HTMLtext is a little more complicated. I've written some LCS code that can convert HTMLtext into a format that works (mostly) with copy/paste to other apps, but have not figured out how to put that into the message path to work seamlessly (would need to be called from the engine copy code). Ideally, something like: set the fullclipboarddata["htmltext"] to the htmltext of field "test" would put something on the clipboard that would not render with all of the extra lines and missing spaces when pasted to other apps. Thanks, Brian From livfoss at mac.com Sat Feb 3 15:57:04 2018 From: livfoss at mac.com (Graham Samuel) Date: Sat, 03 Feb 2018 20:57:04 +0000 Subject: Anyone using a third-party update tool for LC-originated desktop apps? In-Reply-To: References: <3BE53860-CE30-4104-A553-4C9B53931CB6@mac.com> Message-ID: <3CA5C869-E1E3-4D88-B164-485A3A98D6D0@mac.com> Just reporting in, having had a closer look, I see that what Trevor has done is frankly beyond me. There seems too much to learn, starting with GitHub, and the number of days I could dedicate to the task in the near future is quite limited. For that reason I?m tempted to try to grow my own, using just LC scripting: of course this may not work. I absolutely agree with Trevor?s policy of replacing the entire application (although IMO the user should be offered preservation of any data kept in the application support area on either platform). However, this is tricky, since one would want to invoke a standard installer without the user having to take any of the classic actions (e.g. on the Mac, moving the app icon the Applications folder, which is what DMG installers propose). I suppose the ultimate simplification is to detect that an update is available (easy, via a little file on a server) and then tell the user how to delete the old version and install the new one ?by hand?, so to speak. Sounds terrible, but it may be the only possible economic method for me. Or am I being particularly stupid? I have still not fully explored third-party solutions, but they would have to avoid coding - well, certainly in any language other then classic LC - to work for me. Anyone else got any thoughts on this? Graham > On 22 Jan 2018, at 15:06, Trevor DeVore via use-livecode wrote: > > On Mon, Jan 22, 2018 at 5:04 AM, Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Nowadays it?s customary for quite modest apps after launching to notify >> the user of an update being available, with the possibility of carrying out >> the update there and then, or refusing. A succession of dialog boxes guides >> the user through the updating process and shows progress. The update >> somehow bypasses the normal installation process, accepts existing license >> data, and simply replaces the app. If the app has a document open, then the >> new copy of the app re-opens it. > > > Graham, > > There are a lot of different approaches to this in the community. Here is > my take on it. Currently I'm using the code in the following repository for > automated updates. It is a Helper that I use with the Levure framework and > I haven't documented it at all. > > https://github.com/trevordevore/levurehelper-app_updater > > It is a combination of Sparkle for macOS (Monte wrapped this up in an > external for me) and LCS for Windows that I've been using over the years. > Both macOS and Windows download an entirely new application. On macOS the > app is zipped up and Sparkle downloads the zip archive, unzips it, and > installs it. If the update requires authentication that is handled. On > Windows the updater just downloads the Windows installer executable that is > used for installing the app for the first time. This is an installer built > using Inno Setup which will prompt the user for administrative permissions > if need be. > > I prefer to replace the entire application when I do updates. My apps are > installed in a number of different environments. I would often get reports > of problems when trying to update the app in pieces inside of corporations. > Plus if you don't update the exe on Windows then the version number of your > app won't be reported properly in the File Properties dialog. When I > switched to downloading and running a full installer on Windows the reports > of issues after running the updater dropped to 0. > > In my ideal world the Windows side would use WinSparkle as it would be nice > to leverage the work of a 3rd party. I like using code that is being tested > by a lot of other people and which is entirely focused on automatic > updates. I didn't want to create an external around it, however, so I've > been waiting for the LCB to DLL interface in the engine to mature. I > imagine WinSparkle could probably be wrapped using LCB now. > > https://winsparkle.org > > I would like to see the LC community have a standard automatic update > solution available that is easy to use and is very reliable in all > environments. To me it makes the most sense to leverage the work done by > others who are focused on automatic update. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.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 Feb 3 16:18:58 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 3 Feb 2018 15:18:58 -0600 Subject: Pasting tabs into Excel In-Reply-To: References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> <1517675990371-0.post@n4.nabble.com> Message-ID: On 2/3/18 12:23 PM, Brian Milby via use-livecode wrote: > Try this function (LC 8/9): > > *on* stripClipboard > *local* tData > *lock* the clipboard > *put* the rawClipboardData["public.utf8-plain-text"] into tData > *set* the rawClipboardData to empty > *set* the rawClipboardData["public.utf8-plain-text"] to tData > *unlock* the clipboard > *end* stripClipboard > > This will ensure the only thing on the clipboard is the text format (no RTF > and no HTML). Even when I use this function after putting the text on the > clipboard, I get the same results. And I get the same in LC 6 & 7 too. > > You mentioned raw clipboard, what did you try there? Your handler works. :) I haven't used rawClipboardData much and I don't have that particular experiment any more, but I think I just used the example verbatim from the dictionary. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Feb 3 16:24:45 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 3 Feb 2018 15:24:45 -0600 Subject: Pasting tabs into Excel In-Reply-To: <23FF39AA-8888-4646-A728-BFD8E7C273A2@m-r-d.de> References: <0d8ba99a-e147-d161-10d0-dc3a8f6c0f8b@hyperactivesw.com> <23FF39AA-8888-4646-A728-BFD8E7C273A2@m-r-d.de> Message-ID: <737906b4-a525-31d0-2212-ea0718f49411@hyperactivesw.com> On 2/3/18 1:52 AM, Matthias Rebbe via use-livecode wrote: > But what i noticed is the following: > When i just click on a cell, so that it is selected without showing the blinking write cursor in the cell, then pasting is working w/o problems. > > When i double click a cell, so that it is selected and the blinking write cursor is shown, then i cannot paste it correctly. Interesting. I don't have Excel so I've been testing in Google Sheets. This trick doesn't work there. :( -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Sat Feb 3 17:27:25 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 3 Feb 2018 14:27:25 -0800 Subject: Pasting tabs into Excel In-Reply-To: References: Message-ID: <9175342e-7939-74fb-3d74-6f1807a102a8@fourthworld.com> Brian Milby wrote: > More info on those 2 bugs: > > The first bug is about LC placing too much on the system clipboard. > Prior to 8, LC only put text+RTF on the clipboard. With 8, HTML was > added - LC ran everything through its internal conversion to LC styled > text and put LC HTMLtext on the system clipboard as HTML. The bug fix > on the first on stops that conversion so that when plain text is > placed on the clipboard, only plain text is put on the system > clipboard (and it no longer puts anything styled). > > The second bug is tightly related. It is actually the same process > that is causing the problem, but the solution will be slightly > different. There isn't a PR on this one yet. It would be easy to > disable LC HTMLtext going to the clipboard unless specifically > requested (which would be more like pre LC-8), but fixing the actual > HTMLtext is a little more complicated. I think I missed something earlier in this thread: what are those two bug report IDs? -- 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 Feb 3 17:31:41 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 3 Feb 2018 14:31:41 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> Message-ID: <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> Paul Dupuis wrote: > FYI we found that interapp communication via sockets is more reliable > cross-platform that via interprocess communication, but at some real > world customer sites, security setting can prohibit socket > communication even to the same computer where as IPC still works, so > an app that need to be really really robust for real world installs > may wish to include code for both and swap from one to the other if > one means of communication fails. If everyone would just get over themselves and start using Linux we could all enjoy named pipes. :) But seriously, do you have a list of circumstances that prevent sockets on loopback? Personally, I'm inclined to consider it a bug if any software prevents IPC via loopback sockets, but there may be a good reason worth learning. And even if the reasoning turns out not to be good, it's useful to know about limitations imposed on otherwise-reliable mechanisms. -- 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 brian at milby7.com Sat Feb 3 17:32:37 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 03 Feb 2018 22:32:37 +0000 Subject: Pasting tabs into Excel In-Reply-To: <9175342e-7939-74fb-3d74-6f1807a102a8@fourthworld.com> References: <9175342e-7939-74fb-3d74-6f1807a102a8@fourthworld.com> Message-ID: http://quality.livecode.com/show_bug.cgi?id=19206 http://quality.livecode.com/show_bug.cgi?id=20336 On Sat, Feb 3, 2018 at 4:28 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Brian Milby wrote: > > > More info on those 2 bugs: > > > > The first bug is about LC placing too much on the system clipboard. > > Prior to 8, LC only put text+RTF on the clipboard. With 8, HTML was > > added - LC ran everything through its internal conversion to LC styled > > text and put LC HTMLtext on the system clipboard as HTML. The bug fix > > on the first on stops that conversion so that when plain text is > > placed on the clipboard, only plain text is put on the system > > clipboard (and it no longer puts anything styled). > > > > The second bug is tightly related. It is actually the same process > > that is causing the problem, but the solution will be slightly > > different. There isn't a PR on this one yet. It would be easy to > > disable LC HTMLtext going to the clipboard unless specifically > > requested (which would be more like pre LC-8), but fixing the actual > > HTMLtext is a little more complicated. > > I think I missed something earlier in this thread: what are those two > bug report IDs? > > -- > 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 ahsoftware at sonic.net Sat Feb 3 18:32:56 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 3 Feb 2018 15:32:56 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> Message-ID: On 02/03/2018 02:31 PM, Richard Gaskin via use-livecode wrote: > If everyone would just get over themselves and start using Linux we > could all enjoy named pipes. :) After working on our kitchen plumbing for the last few days, I've got a few choice names for pipes. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Sat Feb 3 19:04:03 2018 From: brian at milby7.com (Brian Milby) Date: Sun, 04 Feb 2018 00:04:03 +0000 Subject: Pasting tabs into Excel In-Reply-To: References: <9175342e-7939-74fb-3d74-6f1807a102a8@fourthworld.com> Message-ID: PR 6293 should correct this issue (19206). When plain text is copied to the clipboard, styled text will not be added. On Sat, Feb 3, 2018 at 4:32 PM Brian Milby wrote: > http://quality.livecode.com/show_bug.cgi?id=19206 > http://quality.livecode.com/show_bug.cgi?id=20336 > On Sat, Feb 3, 2018 at 4:28 PM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Brian Milby wrote: >> >> > More info on those 2 bugs: >> > >> > The first bug is about LC placing too much on the system clipboard. >> > Prior to 8, LC only put text+RTF on the clipboard. With 8, HTML was >> > added - LC ran everything through its internal conversion to LC styled >> > text and put LC HTMLtext on the system clipboard as HTML. The bug fix >> > on the first on stops that conversion so that when plain text is >> > placed on the clipboard, only plain text is put on the system >> > clipboard (and it no longer puts anything styled). >> > >> > The second bug is tightly related. It is actually the same process >> > that is causing the problem, but the solution will be slightly >> > different. There isn't a PR on this one yet. It would be easy to >> > disable LC HTMLtext going to the clipboard unless specifically >> > requested (which would be more like pre LC-8), but fixing the actual >> > HTMLtext is a little more complicated. >> >> I think I missed something earlier in this thread: what are those two >> bug report IDs? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From jacque at hyperactivesw.com Sat Feb 3 19:51:45 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 03 Feb 2018 18:51:45 -0600 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> Message-ID: <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The Husband loves plumbing, it gives him the inspiration to learn all kinds of new colorful words. He puts it off as long as possible to savor the anticipation. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 3, 2018 5:35:00 PM Mark Wieder via use-livecode wrote: > On 02/03/2018 02:31 PM, Richard Gaskin via use-livecode wrote: > >> If everyone would just get over themselves and start using Linux we >> could all enjoy named pipes. :) > > After working on our kitchen plumbing for the last few days, I've got a > few choice names for pipes. > > -- > 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 gcanyon at gmail.com Sun Feb 4 01:52:01 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 3 Feb 2018 22:52:01 -0800 Subject: Navigator update: better conversion to behaviors, better property editing, better version control, and send to private commands In-Reply-To: References: Message-ID: The update is now available here . I haven't updated the documentation yet. The main changes are: 1. The whole convert-to-behaviors and restore-from-behaviors bit has been moved to its own custom palette, opened from Navigator. This makes the whole process much clearer, and setting the options is easier and more forgiving. 2. There's a preview for the naming template process -- again, easier and more foolproof, and a dropdown offers some pre-made options. 3. The dialog's working list is derived from the selection in Navigator when the command is issued, but it's text -- anything can be modified, deleted, or added before processing. 4. There is a button to add enclosed objects. So it's possible to select a group, card, or stack in Navigator, select the command, and then add enclosed objects to include all the controls in that container -- or containers, it processes everything in the list. 5. There is a button to add behavior chains, so it's possible to select one control that has a chain of fifty behaviors, and click the button to add them all to the list to be processed. 6. Both Convert and Restore have a preview option -- use it and the resulting log will show exactly what will be done, without actually doing any of it. gc From dochawk at gmail.com Sun Feb 4 10:53:57 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 4 Feb 2018 07:53:57 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: On Sat, Feb 3, 2018 at 4:51 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > The Husband loves plumbing, it gives him the inspiration to learn all > kinds of new colorful words. He puts it off as long as possible to savor > the anticipation > There's nothing like the joy of going weeks of carting the water from the kitchen sink down the hall, as it drains into a five gallon bucket, because the sewer line is 100% blocked a couple of feet under the concrete slab under the the living room. Not even the thrill of the redneck connection of a garden hose to the washing machine to run down the driveway, or even the 2'x22' trench three feet deep across the room that you get to step over for a couple of days as the work is done and you wait for inspectors. On the bright side, we replaced with ABS rather than cast iron, so it should last a touch longer, and even the same 50 years means i wont be here when it happens . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From prothero at earthlearningsolutions.org Sun Feb 4 13:13:29 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sun, 4 Feb 2018 10:13:29 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Totally ot, My mother in law had an iron drain deteriorate, with roots and cracks all through it, and Roto Rooter was able to ream it and put in some kind of epoxy liner, so nothing had to be dug up. Bill William Prothero http://es.earthednet.org > On Feb 4, 2018, at 7:53 AM, Dr. Hawkins via use-livecode wrote: > > On Sat, Feb 3, 2018 at 4:51 PM, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> The Husband loves plumbing, it gives him the inspiration to learn all >> kinds of new colorful words. He puts it off as long as possible to savor >> the anticipation >> > > > There's nothing like the joy of going weeks of carting the water from the > kitchen sink down the hall, as it drains into a five gallon bucket, because > the sewer line is 100% blocked a couple of feet under the concrete slab > under the the living room. > > Not even the thrill of the redneck connection of a garden hose to the > washing machine to run down the driveway, or even the 2'x22' trench three > feet deep across the room that you get to step over for a couple of days > as the work is done and you wait for inspectors. > > On the bright side, we replaced with ABS rather than cast iron, so it > should last a touch longer, and even the same 50 years means i wont be here > when it happens . . . > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Feb 4 14:23:00 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 4 Feb 2018 13:23:00 -0600 Subject: [OT] Re: any tricks to make SHELL non blocking? In-Reply-To: <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: On 2/4/18 12:13 PM, prothero--- via use-livecode wrote: > Totally ot, > My mother in law had an iron drain deteriorate, with roots and cracks all through it, Not totally off-topic. If you drop a large enough shell into a pipe it will be blocking. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From benr_mc at cogapp.com Mon Feb 5 06:03:56 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 5 Feb 2018 11:03:56 +0000 Subject: "module format not supported" Message-ID: I had a little module (two actually - both derivatives of the LiveCode Line Graph widget). In a stack that I only used in the IDE, so this is nothing to do with standalones. I last used this stack two weeks ago - almost certainly under LC 8.1.8, if not 8.1.7. Last week I installed and at least briefly used both LC 8.1.9 rc 1 and 9.0.0. dp 11. Today I went to use this stack again, and found the component on the page empty. Looking at the Extension Manager, both widgets are labelled "Module format not supported". Quit and relaunch doesn't help. Just in case my memory is faulty, I tried opening the stack in 8.1.7 - one of the widgets doesn't appear in the list at all, the other is labelled "Module format not supported". So I have two questions: 1) What does this mean and what should I do about it 2) Should launching a newer build of LC do something to corrupt user modules in this way? I assume that there's been a change in module format, and LC 9 (I assume) automatically updated the ones it found to the new format, thus breaking them for earlier versions. Obviously given that LC9 is dp, so it's reasonable to assume that the user is still running something more stable in parallel with reviewing LC9, it would be polite to at least ask the user if they want these modules updated or ignored. So my third question is where should I have read something that would have told me about this change? TIA, Ben From panos.merakos at livecode.com Mon Feb 5 06:19:38 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 5 Feb 2018 11:19:38 +0000 Subject: "module format not supported" In-Reply-To: References: Message-ID: Hi Ben, The module format has changed between LC 8 and 9, so any custom widget built in LC 8 will NOT work out of the box in LC 9 and vice versa, but all you have to do is rebuild the widget (i.e. recompile the .lcb file) using the LC version that shows that error. Also note that there were some changes between LC 9 DP-9 and DP-10, so if you built the widget *before* DP-10 AND the widget uses the "post" or "send" syntax, you'll need to rebuild it with DP-10 or DP-11. Hope this helps, Panos -- On Mon, Feb 5, 2018 at 11:03 AM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > I had a little module (two actually - both derivatives of the LiveCode > Line Graph widget). In a stack that I only used in the IDE, so this is > nothing to do with standalones. I last used this stack two weeks ago - > almost certainly under LC 8.1.8, if not 8.1.7. > > Last week I installed and at least briefly used both LC 8.1.9 rc 1 and > 9.0.0. dp 11. > > Today I went to use this stack again, and found the component on the page > empty. Looking at the Extension Manager, both widgets are labelled "Module > format not supported". Quit and relaunch doesn't help. Just in case my > memory is faulty, I tried opening the stack in 8.1.7 - one of the widgets > doesn't appear in the list at all, the other is labelled "Module format not > supported". > > So I have two questions: > > 1) What does this mean and what should I do about it > > 2) Should launching a newer build of LC do something to corrupt user > modules in this way? > > > I assume that there's been a change in module format, and LC 9 (I assume) > automatically updated the ones it found to the new format, thus breaking > them for earlier versions. Obviously given that LC9 is dp, so it's > reasonable to assume that the user is still running something more stable > in parallel with reviewing LC9, it would be polite to at least ask the user > if they want these modules updated or ignored. > > So my third question is where should I have read something that would have > told me about this change? > > 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 hh at hyperhh.de Mon Feb 5 06:33:33 2018 From: hh at hyperhh.de (hh) Date: Mon, 5 Feb 2018 12:33:33 +0100 Subject: "module format not supported" Message-ID: I'll answer only question 1 for a first aid. Leave others to the team. This is due to the *automatic* compilation by LC 9.0.0-dp11. This is an idea that only makes sense for code which runs in both LC 8.1.8 and LC 9.0.0-dp11 and for modules that should only be used in LC9. The result means your code wouldn't compile in LC 9.0.0-dp11. Probably you have some "post" or "execute script" things to another handler, for example from OnCreate to OnOpen. First Aid: Uninstall the module and recompile it with LC 8.1.8. Currently there are only two ways to avoid that. (a) Don't use LC 9.0.0-dp11 (LC 9.0.0-dp10 is OK) or (b) Remove the lcb file from the lce (the lce is an ordinary zip, so you can do that with revZip).Then it cannot be automatically recompiled, shows only "module format not supported in LC 9". But runs always in LC 8 (version > 8.1.4). I use currently variant (b). From panos.merakos at livecode.com Mon Feb 5 06:47:53 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 5 Feb 2018 11:47:53 +0000 Subject: [ANN] This Week in LiveCode 115 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 #115 here: https://goo.gl/4x53uZ 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 hh at hyperhh.de Mon Feb 5 06:50:21 2018 From: hh at hyperhh.de (hh) Date: Mon, 5 Feb 2018 12:50:21 +0100 Subject: "module format not supported" Message-ID: <99B3E463-0ABA-4C61-89CC-760245A190F2@hyperhh.de> There is also a forum thread to that problem with an answer by LC-Mark. http://forums.livecode.com/viewtopic.php?p=162674#p162674 From benr at cogapp.com Mon Feb 5 08:31:33 2018 From: benr at cogapp.com (Ben Rubinstein) Date: Mon, 5 Feb 2018 13:31:33 +0000 Subject: "module format not supported" In-Reply-To: <99B3E463-0ABA-4C61-89CC-760245A190F2@hyperhh.de> References: <99B3E463-0ABA-4C61-89CC-760245A190F2@hyperhh.de> Message-ID: <790e8f8a-a4df-78f6-3555-6776c96702af@cogapp.com> Thanks Hermann, that filled me in. Ben On 05/02/2018 11:50, hh via use-livecode wrote: > There is also a forum thread to that problem with an answer > by LC-Mark. > > http://forums.livecode.com/viewtopic.php?p=162674#p162674 > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 5 10:59:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 5 Feb 2018 15:59:25 +0000 Subject: FormattedHeight of a field and its contents In-Reply-To: <001c01d39d12$3d2e8f30$b78bad90$@net> References: <90E5A773-4210-4947-ADF6-DE42B3D4B9C2@comcast.net> <001c01d39d12$3d2e8f30$b78bad90$@net> Message-ID: <16F49369-105C-4333-9E06-9AAA5A1EEBAC@iotecdigital.com> Fonts have natural margins that vary widely. A decorative or cursive font may have ascenders and descenders much higher and lower than a book typeface. That means the leading between the lines needs to be larger. I use display font for the labels for my forms, called Verdana has an automatic 16 point margin at 14 point font size, even though there is nothing about the font itself requiring it! It's just how the font is done. Bob S > On Feb 3, 2018, at 09:12 , Ralph DiMola via use-livecode wrote: > > David, > > Nice.... I've been wrestling with this. I am going to see how your observations translate into mobile. I'm going to apply your of findings to my app and see if I get better results than I get now. There have been a few threads in the past few years addressing vertically centering text in a field. None of them seem to address all font size cases. This 6px thingy might explain a lot! > > Thanks again for all your work. > > 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 David Epstein via use-livecode > Sent: Friday, February 02, 2018 9:38 PM > To: use-livecode at lists.runrev.com > Cc: David Epstein > Subject: Re: FormattedHeight of a field and its contents > > Thanks for the responses on this. I used Bernd?s tool and did some more tests, and found some things that may be helpful to others. > > While the left and right margins of a field are meant literally (a 5 pixel left margin leaves 5 white pixels to the left of the text), the top margin is more complicated, no doubt owing to the variety of textHeights that need to be accommodated. For example, a margin of "0" will often clip the top of the text--as if "0" meant a "negative margin". > > 6 seems to be a magic default value for a field's top margin, which avoids clipping the content. With horizontal gridlines visible, a 6 pixel buffer makes the top row the same height as the other rows. And with a 6 pixel buffer the formattedHeight of the field will exactly match the formattedHeight of the field's content (although a non-zero borderwidth or a horizontal scrollbar changes this). > > Thus--what I wondered about in my original post--with a margin less than 6 the formattedHeight of the field is less than the formattedHeight of the content; the content is in effect clipped. At smaller textHeights this will be visible, while at larger textHeights only white space above the characters is clipped. > > I was trying to answer two questions, and I think I'm pretty close. > > 1. How do I make sure that the field's contents are all visible if I set the field's height to the formattedHeight? Answer: Set the top and bottom margins to 6. For the left and right margins, even 1 pixel should be enough to keep everything visible. > > 2. What margins will provide a symmetrical look for a text box? > A top margin of 6 doesn?t look like a 6 pixel margin; how it looks depends on the textHeight. I estimate that its apparent height is one fourth of the effective textHeight, and I use this to size the other margins in the ?tightMargins? handler below. > While the top margin of 6 looks good with horizontal gridlines, without them (and especially if you show a text baseline) it looks too small compared to the space between subsequent lines. To match that larger space, in effect doubling the apparent top margin, add one third of the effective textHeight. See ?niceMargins? handler below. > > Example of usage: > set the margins of fld 1 to the niceMargins of fld 1 set the height of fld 1 to the formattedHeight of fld 1 > > getProp niceMargins > put the effective textHeight of the target into t > put round(t*7/12) into m1 > put round(t/3) into m2 > return m1,6+m2,m1,m1 > end niceMargins > > getProp tightMargins > put round(.25*the effective textHeight of the target) into m > return m,6,m,max(6,m) > end tightMargins > > Improvements to these are welcomed. > > David Epstein > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 5 11:05:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 5 Feb 2018 16:05:49 +0000 Subject: [OT] any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: <13F7BCF2-C818-48BD-8CD7-80375B9318F1@iotecdigital.com> AAARRRGGGHHHHHHH!!! Bob S > On Feb 4, 2018, at 11:23 , J. Landman Gay via use-livecode wrote: > > On 2/4/18 12:13 PM, prothero--- via use-livecode wrote: >> Totally ot, >> My mother in law had an iron drain deteriorate, with roots and cracks all through it, > > Not totally off-topic. If you drop a large enough shell into a pipe it will be blocking. > > -- > Jacqueline Landman Gay From richard.burkett at sbcglobal.net Mon Feb 5 11:50:14 2018 From: richard.burkett at sbcglobal.net (Richard Burkett) Date: Mon, 5 Feb 2018 08:50:14 -0800 Subject: Pasting tabs into Excel Message-ID: <6B55977D-FC1E-4EE5-B594-2CBC76BB690E@sbcglobal.net> This is clearly closely related to the problem I had recently copying text from Livecode into Mac Mail. YES, Livecode should copy PLAIN text when you ask it to copy PLAIN unformatted text. That said, Here?s the script that I ended up using that work for copying a list of tabbed data into Excel. It?s a little different than Brian?s which he sent to help my question (thanks again!). It works in both cases (Mail and Excel), and is set up to work on three platforms. Richard Burkett richard.burkett at sbcglobal.net Here it is, as a version to copy text from a field in my test stack: on mouseUp put fld "myField" into tClip lock the clipBoard set the ClipboardData to empty set the ClipboardData to tClip put the clipboardData["text"] into tClip set the rawclipBoardData to empty if the platform is "MacOS" then set the rawClipboardData["public.utf8-plain-text"] \ to textEncode(tClip, "UTF-8" ) -- OSX else if the platform is "Linux" then set the rawClipboardData["text/plain;charset=utf-8"] \ to textEncode(tClip, "UTF-8" ) -- Linux else if the platform contains "Win" then set the rawClipboardData["CF_UNICODE"] \ to textEncode(tClip, "UTF-16" ) -- Windows end if unlock the clipBoard end mouseUp > From: "J. Landman Gay" > > > On 2/3/18 12:23 PM, Brian Milby via use-livecode wrote: >> Try this function (LC 8/9): >> >> *on* stripClipboard >> *local* tData >> *lock* the clipboard >> *put* the rawClipboardData["public.utf8-plain-text"] into tData >> *set* the rawClipboardData to empty >> *set* the rawClipboardData["public.utf8-plain-text"] to tData >> *unlock* the clipboard >> *end* stripClipboard >> >> This will ensure the only thing on the clipboard is the text format (no RTF >> and no HTML). Even when I use this function after putting the text on the >> clipboard, I get the same results. And I get the same in LC 6 & 7 too. >> >> You mentioned raw clipboard, what did you try there? > > Your handler works. :) I haven't used rawClipboardData much and I don't > have that particular experiment any more, but I think I just used the > example verbatim from the dictionary. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From mark at canelasoftware.com Mon Feb 5 12:46:13 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Mon, 5 Feb 2018 09:46:13 -0800 Subject: Navigator update: better conversion to behaviors, better property editing, better version control, and send to private commands In-Reply-To: References: Message-ID: <663B6B5F-3044-451E-9A1F-8B0FA7931667@canelasoftware.com> Hi Geoff, I am super excited to see you working on Navigator. I have one little issue with it as it stands. I can not edit behaviors any longer. I am sure I am doing something wrong. I did the right click -> ?Edit Behavior Scripts? on a card that has a behavior associated with it. The line is blue in color indicating that it has a behavior. I will go back to an older version for now. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Feb 3, 2018, at 10:52 PM, Geoff Canyon via use-livecode wrote: > > The update is now available here > . I haven't > updated the documentation yet. The main changes are: > > 1. The whole convert-to-behaviors and restore-from-behaviors bit has been > moved to its own custom palette, opened from Navigator. This makes the > whole process much clearer, and setting the options is easier and more > forgiving. > 2. There's a preview for the naming template process -- again, easier and > more foolproof, and a dropdown offers some pre-made options. > 3. The dialog's working list is derived from the selection in Navigator > when the command is issued, but it's text -- anything can be modified, > deleted, or added before processing. > 4. There is a button to add enclosed objects. So it's possible to select a > group, card, or stack in Navigator, select the command, and then add > enclosed objects to include all the controls in that container -- or > containers, it processes everything in the list. > 5. There is a button to add behavior chains, so it's possible to select one > control that has a chain of fifty behaviors, and click the button to add > them all to the list to be processed. > 6. Both Convert and Restore have a preview option -- use it and the > resulting log will show exactly what will be done, without actually doing > any of it. > > gc > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bernd.niggemann at uni-wh.de Mon Feb 5 14:36:22 2018 From: bernd.niggemann at uni-wh.de (BNig) Date: Mon, 5 Feb 2018 12:36:22 -0700 (MST) Subject: "module format not supported" In-Reply-To: References: Message-ID: <1517859382680-0.post@n4.nabble.com> Hi Ben, I posted a stack to the forum, that forces recompilation of widgets that were automatically compiled from 8 to 9 format. http://forums.livecode.com/viewtopic.php?f=104&t=30433&p=163580#p163580 Kind regards Bernd -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dochawk at gmail.com Mon Feb 5 15:02:14 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 5 Feb 2018 12:02:14 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: On Sun, Feb 4, 2018 at 10:13 AM, prothero--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Totally ot, > My mother in law had an iron drain deteriorate, with roots and cracks all > through it, and Roto Rooter was able to ream it and put in some kind of > epoxy liner, so nothing had to be dug up. > We had thought, from the video, that the bottom half of the iron pipe had disintegrated (and so did that plumber). It turned out that, no, that was the beginning of a blockage that grew to 100%. Petrified fat. Given what we know from going through the shower floor (last tenant poured concrete down the drain in spite), the pipes likely weren't at the proper angle to drain (a retired pipe-fitter friend could tell the shower wasn't angled right at a glance!). (Our house was built during the mob's heyday in Las Vegas, late 60s). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ahsoftware at sonic.net Mon Feb 5 17:18:47 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 5 Feb 2018 14:18:47 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: On 02/05/2018 12:02 PM, Dr. Hawkins via use-livecode wrote: > disintegrated (and so did that plumber). !!! -- Mark Wieder ahsoftware at gmail.com From dochawk at gmail.com Mon Feb 5 17:43:19 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 5 Feb 2018 14:43:19 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: On Mon, Feb 5, 2018 at 2:18 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 02/05/2018 12:02 PM, Dr. Hawkins via use-livecode wrote: > > disintegrated (and so did that plumber). >> > > !!! > > *shrug* So I'm a vengeful homeowner. :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From MikeKerner at roadrunner.com Mon Feb 5 18:01:46 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 5 Feb 2018 18:01:46 -0500 Subject: uh oh. Have to reactivate every LC and the activation server is down? Message-ID: Something bad happened. I can't seem to get any copy of LC of any version to just launch. All of them want to be activated, and the activation server doesn't like me, either. Anyone else? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From brian at milby7.com Mon Feb 5 18:04:33 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 05 Feb 2018 23:04:33 +0000 Subject: uh oh. Have to reactivate every LC and the activation server is down? In-Reply-To: References: Message-ID: Before I?ve heard that you can disconnect internet to launch. Once running, you can turn the internet connection back on. On Mon, Feb 5, 2018 at 5:02 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Something bad happened. I can't seem to get any copy of LC of any version > to just launch. All of them want to be activated, and the activation > server doesn't like me, either. Anyone else? > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Mon Feb 5 18:08:15 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 5 Feb 2018 18:08:15 -0500 Subject: uh oh. Have to reactivate every LC and the activation server is down? In-Reply-To: References: Message-ID: well that worked On Mon, Feb 5, 2018 at 6:04 PM, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Before I?ve heard that you can disconnect internet to launch. Once running, > you can turn the internet connection back on. > On Mon, Feb 5, 2018 at 5:02 PM Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Something bad happened. I can't seem to get any copy of LC of any > version > > to just launch. All of them want to be activated, and the activation > > server doesn't like me, either. Anyone else? > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From stephen at barncard.com Mon Feb 5 20:24:58 2018 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 5 Feb 2018 17:24:58 -0800 Subject: this session has lapsed? Message-ID: My copy of LC 7.14 was installed activated days ago. Why am I getting "this session has lapsed" messages, refusing to let me go on? does this mean that LC "phones home" every time I start the app?? Unacceptable, disturbing and annoying. sqb -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From stephen at barncard.com Mon Feb 5 20:27:37 2018 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 5 Feb 2018 17:27:37 -0800 Subject: uh oh. Have to reactivate every LC and the activation server is down? In-Reply-To: References: Message-ID: this should not happen once authorized, connected or not. sqb -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Feb 5, 2018 at 3:08 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > well that worked > > On Mon, Feb 5, 2018 at 6:04 PM, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Before I?ve heard that you can disconnect internet to launch. Once > running, > > you can turn the internet connection back on. > > On Mon, Feb 5, 2018 at 5:02 PM Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Something bad happened. I can't seem to get any copy of LC of any > > version > > > to just launch. All of them want to be activated, and the activation > > > server doesn't like me, either. Anyone else? > > > > > > -- > > > On the first day, God created the heavens and the Earth > > > On the second day, God created the oceans. > > > On the third day, God put the animals on hold for a few hours, > > > and did a little diving. > > > And God said, "This is good." > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Mon Feb 5 20:36:18 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 5 Feb 2018 17:36:18 -0800 Subject: this session has lapsed? In-Reply-To: References: Message-ID: Stephen Barncard wrote: > My copy of LC 7.14 was installed activated days ago. Why am I getting > "this session has lapsed" messages, refusing to let me go on? > does this mean that LC "phones home" every time I start the app?? > Unacceptable, disturbing and annoying. I don't know if this is related to that specific notice, but you can turn off the "Check for updates" features in the "Updates" pane of the "Preferences" 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 stephen at barncard.com Mon Feb 5 20:45:15 2018 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 5 Feb 2018 17:45:15 -0800 Subject: this session has lapsed? In-Reply-To: References: Message-ID: disconnecting the net allowed things to work. But why should this happen at all? I'd turned off "check for updates" for a long time as I run into issues upgrading to and using 8 or 9 due to my use of three screens. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Feb 5, 2018 at 5:36 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Stephen Barncard wrote: > > > My copy of LC 7.14 was installed activated days ago. Why am I getting > > "this session has lapsed" messages, refusing to let me go on? > > does this mean that LC "phones home" every time I start the app?? > > Unacceptable, disturbing and annoying. > > I don't know if this is related to that specific notice, but you can turn > off the "Check for updates" features in the "Updates" pane of the > "Preferences" 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 ambassador at fourthworld.com Mon Feb 5 20:47:57 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 5 Feb 2018 17:47:57 -0800 Subject: this session has lapsed? In-Reply-To: References: Message-ID: <7b930c81-0c94-7cf8-def3-76265fb02f20@fourthworld.com> Can't say. Hopefully someone from the mother ship will chime in on this. -- Richard Gaskin Fourth World Systems Stephen Barncard wrote: > disconnecting the net allowed things to work. > But why should this happen at all? > I'd turned off "check for updates" for a long time as I run into issues > upgrading to and using 8 or 9 due to my use of three screens. > > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > On Mon, Feb 5, 2018 at 5:36 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Stephen Barncard wrote: >> >> > My copy of LC 7.14 was installed activated days ago. Why am I getting >> > "this session has lapsed" messages, refusing to let me go on? >> > does this mean that LC "phones home" every time I start the app?? >> > Unacceptable, disturbing and annoying. >> >> I don't know if this is related to that specific notice, but you can turn >> off the "Check for updates" features in the "Updates" pane of the >> "Preferences" window. >> >> -- >> Richard Gaskin >> Fourth World Systems From brian at milby7.com Mon Feb 5 20:51:48 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 06 Feb 2018 01:51:48 +0000 Subject: uh oh. Have to reactivate every LC and the activation server is down? In-Reply-To: References: Message-ID: At least until the current subscription is lapses. On Mon, Feb 5, 2018 at 7:28 PM Stephen Barncard via use-livecode < use-livecode at lists.runrev.com> wrote: > this should not happen once authorized, connected or not. > > sqb > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > On Mon, Feb 5, 2018 at 3:08 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > well that worked > > > > On Mon, Feb 5, 2018 at 6:04 PM, Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Before I?ve heard that you can disconnect internet to launch. Once > > running, > > > you can turn the internet connection back on. > > > On Mon, Feb 5, 2018 at 5:02 PM Mike Kerner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > Something bad happened. I can't seem to get any copy of LC of any > > > version > > > > to just launch. All of them want to be activated, and the activation > > > > server doesn't like me, either. Anyone else? > > > > > > > > -- > > > > On the first day, God created the heavens and the Earth > > > > On the second day, God created the oceans. > > > > On the third day, God put the animals on hold for a few hours, > > > > and did a little diving. > > > > And God said, "This is good." > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Mon Feb 5 20:55:35 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 6 Feb 2018 12:55:35 +1100 Subject: this session has lapsed? In-Reply-To: <7b930c81-0c94-7cf8-def3-76265fb02f20@fourthworld.com> References: <7b930c81-0c94-7cf8-def3-76265fb02f20@fourthworld.com> Message-ID: > On 6 Feb 2018, at 12:47 pm, Richard Gaskin via use-livecode wrote: > > Can't say. Hopefully someone from the mother ship will chime in on this. Hi Folks Yes I believe that there is random check for license expiry/update. Things like cancelled subscriptions happen and this accounts for that. I don?t know the complete details though. It appears a wordpress update broke some things and it is in the midst of being fixed. Cheers Monte From stephen at barncard.com Mon Feb 5 21:00:03 2018 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 5 Feb 2018 18:00:03 -0800 Subject: this session has lapsed? In-Reply-To: References: <7b930c81-0c94-7cf8-def3-76265fb02f20@fourthworld.com> Message-ID: subscriptions ending shouldn't kill a long installed app, no matter what the status. I've been told that the subscriptions are for updates and support. If that's not true, I need to know. sqb -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Feb 5, 2018 at 5:55 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On 6 Feb 2018, at 12:47 pm, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Can't say. Hopefully someone from the mother ship will chime in on this. > > Hi Folks > > Yes I believe that there is random check for license expiry/update. Things > like cancelled subscriptions happen and this accounts for that. I don?t > know the complete details though. > > It appears a wordpress update broke some things and it is in the midst of > being fixed. > > 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 gcanyon at gmail.com Mon Feb 5 21:00:48 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 5 Feb 2018 18:00:48 -0800 Subject: Super weird drag and drop/mouseMove/mouseRelease issue Message-ID: I'm working on extending drag and drop into/out of Navigator. To do that, when a drag leaves Navigator I'm using a blendlevel'd stack to represent the dragged objects as the pointer moves around the screen. This is in LC 8.1.8, on a Mac. This works fine until the drag goes both to the right and below the list field, and then the list field receives a mouseRelease message, and the drag stops/fails. Even weirder, it seems the stack representing the drag *starts* getting mouseMove messages when the list field stops. I managed to tape together a handoff routine that makes for a really odd workaround, but it's not a good solution, obviously. After some time whittling down the code to narrow down the issue, it ended up being the field's horizontal scrollbar -- if it's set, the drag fails; not set, everything's fine. http://quality.livecode.com/show_bug.cgi?id=20957 (phew!) From monte at appisle.net Mon Feb 5 21:02:22 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 6 Feb 2018 13:02:22 +1100 Subject: this session has lapsed? In-Reply-To: References: <7b930c81-0c94-7cf8-def3-76265fb02f20@fourthworld.com> Message-ID: <54A09901-42F0-4C8C-90E0-51530C0E6FD5@appisle.net> > On 6 Feb 2018, at 1:00 pm, Stephen Barncard via use-livecode wrote: > > subscriptions ending shouldn't kill a long installed app, no matter what > the status. > I've been told that the subscriptions are for updates and support. > If that's not true, I need to know. Probably best to take up any licensing questions with support at livecode.com Cheers Monte From stephen at barncard.com Mon Feb 5 21:47:05 2018 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 5 Feb 2018 18:47:05 -0800 Subject: this session has lapsed? In-Reply-To: <54A09901-42F0-4C8C-90E0-51530C0E6FD5@appisle.net> References: <7b930c81-0c94-7cf8-def3-76265fb02f20@fourthworld.com> <54A09901-42F0-4C8C-90E0-51530C0E6FD5@appisle.net> Message-ID: I don't need to ask again. What I said is what I heard from Heather. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Feb 5, 2018 at 6:02 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 6 Feb 2018, at 1:00 pm, Stephen Barncard via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > subscriptions ending shouldn't kill a long installed app, no matter what > > the status. > > I've been told that the subscriptions are for updates and support. > > If that's not true, I need to know. > > Probably best to take up any licensing questions with support at livecode.com > > > 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 gcanyon at gmail.com Mon Feb 5 22:22:02 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 5 Feb 2018 19:22:02 -0800 Subject: Super weird drag and drop/mouseMove/mouseRelease issue In-Reply-To: References: Message-ID: Just did another test, and it's literally enough to do this: on mouseMove if the optionkey is down then set the hScrollbar of me to false else set the hScrollbar of me to true if amDragging then dispatch "trackMovement" to this cd of stack "revDragExample" end mouseMove and hold down the option key while dragging through the forbidden zone. On Mon, Feb 5, 2018 at 6:00 PM, Geoff Canyon wrote: > I'm working on extending drag and drop into/out of Navigator. To do that, > when a drag leaves Navigator I'm using a blendlevel'd stack to represent > the dragged objects as the pointer moves around the screen. This is in LC > 8.1.8, on a Mac. > > This works fine until the drag goes both to the right and below the list > field, and then the list field receives a mouseRelease message, and the > drag stops/fails. > > Even weirder, it seems the stack representing the drag *starts* getting > mouseMove messages when the list field stops. I managed to tape together a > handoff routine that makes for a really odd workaround, but it's not a good > solution, obviously. > > After some time whittling down the code to narrow down the issue, it ended > up being the field's horizontal scrollbar -- if it's set, the drag fails; > not set, everything's fine. > > http://quality.livecode.com/show_bug.cgi?id=20957 > > (phew!) > From stephen at barncard.com Tue Feb 6 00:04:38 2018 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 5 Feb 2018 21:04:38 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: seriously, back on topic... on mac -- El Capitan calling shell I have this open sourced app ffmpeg and I need to copy the first file from a CD, convert it to a wav file, name it, and save it to a file on a hard drive. (the executable is located in the same folder as the stack, hence the ./ ) so my generated command used with the shell command is: *./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav'* this works fine, LC just doesn't return control until it's fully imported the file off of the CD. I just want to keep a simple counter going during the file import. I've tried these variations below without success. It's true, I get screwed by syntax and quotes all the time, but I still have not found why these won't work. Sometimes these will copy the file, but does not release until done. ./ffmpeg -i "/Volumes/Audio CD/1 Audio Track.aif" "/Volumes/20160518 KJAZ ARCHIVE MASTER/JULY - JAN 2017/20180204 TEST1.wav &" ./ffmpeg -i "/Volumes/Audio CD/1 Audio Track.aif" "/Volumes/20160518 KJAZ ARCHIVE MASTER/JULY - JAN 2017/20180204 TEST1.wav" & (./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav' &) thanks for any suggestions... you guys rock. sqb -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Feb 5, 2018 at 2:43 PM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Mon, Feb 5, 2018 at 2:18 PM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > On 02/05/2018 12:02 PM, Dr. Hawkins via use-livecode wrote: > > > > disintegrated (and so did that plumber). > >> > > > > !!! > > > > > *shrug* > > So I'm a vengeful homeowner. > > :) > > -- > 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 bonnmike at gmail.com Tue Feb 6 00:46:37 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 5 Feb 2018 22:46:37 -0700 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: Don't recall if anyone has already mentioned using open process but.. But.. If you build your known working string ( ./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav') and put it in a variable tCommand and then do.. open process tCommand for neither does it do what you want? On Mon, Feb 5, 2018 at 10:04 PM, Stephen Barncard via use-livecode < use-livecode at lists.runrev.com> wrote: > seriously, back on topic... > on mac -- El Capitan > calling shell > I have this open sourced app > > ffmpeg > > and I need to copy the first file from a CD, convert it to a wav file, name > it, and save it to a file on a hard drive. > (the executable is located in the same folder as the stack, hence the ./ ) > so my generated command used with the shell command is: > > *./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ > ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav'* > > this works fine, LC just doesn't return control until it's fully imported > the file off of the CD. > I just want to keep a simple counter going during the file import. > > I've tried these variations below without success. It's true, I get screwed > by syntax and quotes all the time, but I still have not found why these > won't work. Sometimes these will copy the file, but does not release until > done. > > ./ffmpeg -i "/Volumes/Audio CD/1 Audio Track.aif" "/Volumes/20160518 KJAZ > ARCHIVE MASTER/JULY - JAN 2017/20180204 TEST1.wav &" > > ./ffmpeg -i "/Volumes/Audio CD/1 Audio Track.aif" "/Volumes/20160518 KJAZ > ARCHIVE MASTER/JULY - JAN 2017/20180204 TEST1.wav" & > > (./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ > ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav' &) > > thanks for any suggestions... you guys rock. > > sqb > > > > > > > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > On Mon, Feb 5, 2018 at 2:43 PM, Dr. Hawkins via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > On Mon, Feb 5, 2018 at 2:18 PM, Mark Wieder via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > On 02/05/2018 12:02 PM, Dr. Hawkins via use-livecode wrote: > > > > > > disintegrated (and so did that plumber). > > >> > > > > > > !!! > > > > > > > > *shrug* > > > > So I'm a vengeful homeowner. > > > > :) > > > > -- > > Dr. Richard E. Hawkins, Esq. > > (702) 508-8462 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Feb 6 01:35:25 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 5 Feb 2018 22:35:25 -0800 Subject: How to calm down the Standalone Builder? Message-ID: <9c0efd28-b426-3c6a-8f7f-f872479b4fe1@fourthworld.com> I've been tasked with resurrecting an old app that was last built with MetaCard. What I loved about MC was that it only did what I asked it to, so when it comes to building a standalone it couldn't be easier: it bound the engine to the stack file I wanted and that was it. If I wanted anything else I scripted it. Trying to build with LC is a nightmare. It's fine for things that I've built specifically for the LC IDE (and since it's been years since I've used MC that's pretty much everything I work on), but this one is driving me crazy. I'll spare you the step by step of all the weirdness I'm seeing (the duplicate stack warning about stacks in a "Windows" directory that doesn't exist, or the error dialog at the end that just displays raw error data, and everything in between), and just get to what I think is the point: How do I tell LC's SB to not do a damn thing but attach the engine to my specified stack file? I think what it's doing is running through the stackfiles property and then loading every stack in those files trying to remove/alter/preserver/gawdknowswhat with profiles. But I never use profiles, never needed 'em, never cared for the idea, and all I really want is for LC to just stop poking around in things that aren't the stack file I'm trying to bind to. But it seems all my guesses about the profile options are wrong, since I can't find a combination which is the equivalent of "Stop mucking around in other stack files and just do what I'm telling you to do!". I can write a handler for the pre- and post-build messages, stripping and restoring the stackfiles listing. If needed. Seems silly to need that, though. Am I mising something obvious to get LC's Standalone Builder to calm down and just do the one thing I need it to 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 gcanyon at gmail.com Tue Feb 6 01:52:31 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 5 Feb 2018 22:52:31 -0800 Subject: Navigator update: better conversion to behaviors, better property editing, better version control, and send to private commands In-Reply-To: <663B6B5F-3044-451E-9A1F-8B0FA7931667@canelasoftware.com> References: <663B6B5F-3044-451E-9A1F-8B0FA7931667@canelasoftware.com> Message-ID: What are you seeing happen when you do this? One thing I've noticed is that the script editor window doesn't come to the foreground by itself if the script is already open in any tab of the editor. So using something like Edit Behaviors will cause the editor to show that script, but still be sitting behind whatever other windows are open. Or maybe you're seeing something else? What LC version and platform? gc On Mon, Feb 5, 2018 at 9:46 AM, Mark Talluto via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Geoff, > > I am super excited to see you working on Navigator. > > I have one little issue with it as it stands. I can not edit behaviors any > longer. I am sure I am doing something wrong. I did the right click -> > ?Edit Behavior Scripts? on a card that has a behavior associated with it. > The line is blue in color indicating that it has a behavior. > > I will go back to an older version for now. > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > canelasoftware.com > > > > On Feb 3, 2018, at 10:52 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > The update is now available here > > . I > haven't > > updated the documentation yet. The main changes are: > > > > 1. The whole convert-to-behaviors and restore-from-behaviors bit has been > > moved to its own custom palette, opened from Navigator. This makes the > > whole process much clearer, and setting the options is easier and more > > forgiving. > > 2. There's a preview for the naming template process -- again, easier and > > more foolproof, and a dropdown offers some pre-made options. > > 3. The dialog's working list is derived from the selection in Navigator > > when the command is issued, but it's text -- anything can be modified, > > deleted, or added before processing. > > 4. There is a button to add enclosed objects. So it's possible to select > a > > group, card, or stack in Navigator, select the command, and then add > > enclosed objects to include all the controls in that container -- or > > containers, it processes everything in the list. > > 5. There is a button to add behavior chains, so it's possible to select > one > > control that has a chain of fifty behaviors, and click the button to add > > them all to the list to be processed. > > 6. Both Convert and Restore have a preview option -- use it and the > > resulting log will show exactly what will be done, without actually doing > > any of it. > > > > gc > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Tue Feb 6 02:40:33 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 5 Feb 2018 23:40:33 -0800 Subject: Navigator update: better conversion to behaviors, better property editing, better version control, and send to private commands In-Reply-To: References: <663B6B5F-3044-451E-9A1F-8B0FA7931667@canelasoftware.com> Message-ID: Or is it that it's editing the object script? I rewrote that code to follow any number of behavior links until it finds one with a script (or runs out) and edit the script of that. But I started from the object script, so if the object has a script and a behavior, it will edit the object script. I can fix that. The next step is to make it a submenu if there are more than one behavior, with all of them listed so you can edit any you like. I can fix it so it starts from the behavior, if that's what you're running into. gc On Mon, Feb 5, 2018 at 10:52 PM, Geoff Canyon wrote: > What are you seeing happen when you do this? One thing I've noticed is > that the script editor window doesn't come to the foreground by itself if > the script is already open in any tab of the editor. So using something > like Edit Behaviors will cause the editor to show that script, but still be > sitting behind whatever other windows are open. > > Or maybe you're seeing something else? What LC version and platform? > > gc > > On Mon, Feb 5, 2018 at 9:46 AM, Mark Talluto via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Geoff, >> >> I am super excited to see you working on Navigator. >> >> I have one little issue with it as it stands. I can not edit behaviors >> any longer. I am sure I am doing something wrong. I did the right click -> >> ?Edit Behavior Scripts? on a card that has a behavior associated with it. >> The line is blue in color indicating that it has a behavior. >> >> I will go back to an older version for now. >> >> Best regards, >> >> Mark Talluto >> livecloud.io >> nursenotes.net >> canelasoftware.com >> >> >> > On Feb 3, 2018, at 10:52 PM, Geoff Canyon via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > The update is now available here >> > . I >> haven't >> > updated the documentation yet. The main changes are: >> > >> > 1. The whole convert-to-behaviors and restore-from-behaviors bit has >> been >> > moved to its own custom palette, opened from Navigator. This makes the >> > whole process much clearer, and setting the options is easier and more >> > forgiving. >> > 2. There's a preview for the naming template process -- again, easier >> and >> > more foolproof, and a dropdown offers some pre-made options. >> > 3. The dialog's working list is derived from the selection in Navigator >> > when the command is issued, but it's text -- anything can be modified, >> > deleted, or added before processing. >> > 4. There is a button to add enclosed objects. So it's possible to >> select a >> > group, card, or stack in Navigator, select the command, and then add >> > enclosed objects to include all the controls in that container -- or >> > containers, it processes everything in the list. >> > 5. There is a button to add behavior chains, so it's possible to select >> one >> > control that has a chain of fifty behaviors, and click the button to add >> > them all to the list to be processed. >> > 6. Both Convert and Restore have a preview option -- use it and the >> > resulting log will show exactly what will be done, without actually >> doing >> > any of it. >> > >> > gc >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From heather at livecode.com Tue Feb 6 04:15:41 2018 From: heather at livecode.com (Heather Laine) Date: Tue, 6 Feb 2018 09:15:41 +0000 Subject: this session has lapsed? In-Reply-To: References: <7b930c81-0c94-7cf8-def3-76265fb02f20@fourthworld.com> <54A09901-42F0-4C8C-90E0-51530C0E6FD5@appisle.net> Message-ID: Stephen, I'm confused. Maybe you are too? If you have a subscription to LiveCode, it remains current for the term of the subscription. If the subscription is cancelled your access to the purchased, commercial, Indy/Business LiveCode product will cease. This has been the case since version 6.0 was released, together with the free open source Community Edition. If you purchased an edition prior to the release of 6.0, this will not apply to that edition, the older licenses were permanent and not dependent on a subscription. All licenses later than 6.0 will phone home from time to time to check validity. If at any point in our conversations in support I have confused you on this point, I apologise. I've read through the correspondence I have found and I do see a number of occasions when I have at least attempted to explain this. I appreciate that our licensing can be confusing at times. Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 6 Feb 2018, at 02:47, Stephen Barncard via use-livecode wrote: > > I don't need to ask again. What I said is what I heard from Heather. > > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > On Mon, Feb 5, 2018 at 6:02 PM, Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >>> On 6 Feb 2018, at 1:00 pm, Stephen Barncard via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> subscriptions ending shouldn't kill a long installed app, no matter what >>> the status. >>> I've been told that the subscriptions are for updates and support. >>> If that's not true, I need to know. >> >> Probably best to take up any licensing questions with support at livecode.com >> >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 6 10:36:29 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Feb 2018 15:36:29 +0000 Subject: How to calm down the Standalone Builder? In-Reply-To: <9c0efd28-b426-3c6a-8f7f-f872479b4fe1@fourthworld.com> References: <9c0efd28-b426-3c6a-8f7f-f872479b4fe1@fourthworld.com> Message-ID: That is exactly what I was complaining about. Apparently when the SB creates the duplicate stack, it uses that path and modifies the original mainstack if you try to build again. Now I only build for one platform, and then I quit and relaunch for each build operation. That keeps my original stackfile paths from becoming corrupted. Bob S > On Feb 5, 2018, at 22:35 , Richard Gaskin via use-livecode wrote: > > I'll spare you the step by step of all the weirdness I'm seeing (the duplicate stack warning about stacks in a "Windows" directory that doesn't exist, or the error dialog at the end that just displays raw error data, and everything in between), and just get to what I think is the point: From dochawk at gmail.com Tue Feb 6 11:25:02 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Feb 2018 08:25:02 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: On Mon, Feb 5, 2018 at 9:46 PM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > > > (./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 > KJAZ > > ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav' &) > double quotes cause evaluation (for shell variables?), back quote (`) causes contents to execute. You seem to be using ', which is a literal. Oh, I see. You have *SPACES* in file names. This *ALWAYS* leads to suffering. Quoting a filename does not make it ok; it's still multiple words. If you want to keep such evil names, you'll have to escape those spaces with \ (backslash). A better idea is to get all the spaces out of filenames. I only allow letters, dot, and underscore. You also have hyphens, which have meaning on some operating systems. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ambassador at fourthworld.com Tue Feb 6 12:21:10 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 6 Feb 2018 09:21:10 -0800 Subject: SE: restore default handlers? Message-ID: <4c04a912-49dc-0648-117f-9f73294691a3@fourthworld.com> I have "Show Default Handlers" checked in my SE, but I don't see them. Is this yet another case where I have to toss my prefs stack and then go back and restore all my settings to get this one thing to work, or is there a simpler way to show default handlers in the SE? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue Feb 6 12:33:10 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 6 Feb 2018 09:33:10 -0800 Subject: How to calm down the Standalone Builder? In-Reply-To: References: Message-ID: Bob Sneidar wrote: > That is exactly what I was complaining about. Apparently when the SB > creates the duplicate stack, it uses that path and modifies the > original mainstack if you try to build again. Now I only build for one > platform, and then I quit and relaunch for each build operation. That > keeps my original stackfile paths from becoming corrupted. In my case my mainstack never gets corrupted; apparently the SB is doing what it's expected to do in modifying the copy of the stackfile only. My problem is that it goes far beyond just building a standalone, opening up every stack in two directories I have adjacent to my mainstack and attempting to do gawdknowswhat with them. Ideally there would be some option to leave other stack files alone unless I explicitly tell it to start monkeying with them. I have no stack file inclusions, and have experimented with every option for Profiles (there doesn't seem to be one for "Ignore profiles since I never use them"). I just ran a test where I first clear the stackfiles property before building, yet the SB still insists on digging through these adjacent folders and opening every stack it finds. I guess I'll have to step through the SB code to find the moment of this overdesign, and write a script to temporarily comment that out.... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From merakosp at gmail.com Tue Feb 6 12:36:08 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 6 Feb 2018 17:36:08 +0000 Subject: SE: restore default handlers? In-Reply-To: <4c04a912-49dc-0648-117f-9f73294691a3@fourthworld.com> References: <4c04a912-49dc-0648-117f-9f73294691a3@fourthworld.com> Message-ID: Do you see the non-default handlers of the script? If you see no handlers at all, then either there is a syntax error in the script and LC for some reason does not see it, or something else happens and trashing your Prefs will probably fix it :) PS: I guess you have already tried unchecking and rechecking "Show default handlers, correct? Best, Panos -- On Tue, Feb 6, 2018 at 5:21 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > I have "Show Default Handlers" checked in my SE, but I don't see them. > > Is this yet another case where I have to toss my prefs stack and then go > back and restore all my settings to get this one thing to work, or is there > a simpler way to show default handlers in the SE? > > -- > 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 bodine at bodinetraininggames.com Tue Feb 6 12:43:50 2018 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 6 Feb 2018 10:43:50 -0700 (MST) Subject: Exe and dll errors after standalone build Message-ID: <1517939030453-0.post@n4.nabble.com> Hi all. I'm getting two error dialogs on launching a newly built standalone (built with LC 7.1.4 on Win 10) of a stable project. Error on: Appname.exe 1 (6) Error on: revsecurity.dll 1 (6) I've been producing builds with this same project for many years without seeing these errors. The errors are not triggering my errorDialog handler. The errors happen whether or not I "Run as Admin." Does anyone have a clue as to what the errors mean or possible causes? Thanks, Tom B. -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Tue Feb 6 13:01:15 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Feb 2018 18:01:15 +0000 Subject: How to calm down the Standalone Builder? In-Reply-To: References: Message-ID: Yes I think that was resolved a while ago. That particular thing is not happening to me anymore, but I am constantly plagued with the Stack Already Open message, and also the issue with the modal Login stack is related. I have found that I can suppress messages just before building and the build works just fine, but I am manually selection inclusions. Not sure if that would work if automatic detection of inclusions was enabled. Seems to me you can supress messages at the beginning of the SB build process, and restore it afterwards to it's propr state as an easy workaround? I can do it as well, but I haven't bothered to see what is getting launched for the SB. Bob S > On Feb 6, 2018, at 09:33 , Richard Gaskin via use-livecode wrote: > > Bob Sneidar wrote: > > That is exactly what I was complaining about. Apparently when the SB > > creates the duplicate stack, it uses that path and modifies the > > original mainstack if you try to build again. Now I only build for one > > platform, and then I quit and relaunch for each build operation. That > > keeps my original stackfile paths from becoming corrupted. > > In my case my mainstack never gets corrupted; apparently the SB is doing what it's expected to do in modifying the copy of the stackfile only. From ambassador at fourthworld.com Tue Feb 6 13:03:56 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 6 Feb 2018 10:03:56 -0800 Subject: SE: restore default handlers? In-Reply-To: References: Message-ID: panagiotis merakos wrote: > On Tue, Feb 6, 2018 at 5:21 PM, Richard Gaskin wrote: > >> I have "Show Default Handlers" checked in my SE, but I don't see >> them. ... > Do you see the non-default handlers of the script? Yes. > If you see no handlers at all, then either there is a syntax error in > the script and LC for some reason does not see it, or something else > happens and trashing your Prefs will probably fix it :) The other day my car wouldn't start. So I booted my laptop, tossed the LiveCode preferences file, and everything was working again. The right answer for every problem. :) > PS: I guess you have already tried unchecking and rechecking "Show > default handlers, correct? And again just now. Filed: http://quality.livecode.com/show_bug.cgi?id=20958 -- 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 Tue Feb 6 13:12:16 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 06 Feb 2018 12:12:16 -0600 Subject: How to calm down the Standalone Builder? In-Reply-To: <9c0efd28-b426-3c6a-8f7f-f872479b4fe1@fourthworld.com> References: <9c0efd28-b426-3c6a-8f7f-f872479b4fe1@fourthworld.com> Message-ID: <1616c5131e0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I'm not sure the problem is profiles. Do you have "search for inclusions" selected? If so, the sb has to open every stack to search. Even if you don't use any inclusions, it may be doing that anyway, and also the ask and answer dialogs are always selected by default. If you haven't already done it, choose to select inclusions manually so the sb won't scan everything. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 6, 2018 12:37:43 AM Richard Gaskin via use-livecode wrote: > I've been tasked with resurrecting an old app that was last built with > MetaCard. What I loved about MC was that it only did what I asked it > to, so when it comes to building a standalone it couldn't be easier: it > bound the engine to the stack file I wanted and that was it. If I > wanted anything else I scripted it. > > Trying to build with LC is a nightmare. It's fine for things that I've > built specifically for the LC IDE (and since it's been years since I've > used MC that's pretty much everything I work on), but this one is > driving me crazy. > > I'll spare you the step by step of all the weirdness I'm seeing (the > duplicate stack warning about stacks in a "Windows" directory that > doesn't exist, or the error dialog at the end that just displays raw > error data, and everything in between), and just get to what I think is > the point: > > How do I tell LC's SB to not do a damn thing but attach the engine to my > specified stack file? > > I think what it's doing is running through the stackfiles property and > then loading every stack in those files trying to > remove/alter/preserver/gawdknowswhat with profiles. But I never use > profiles, never needed 'em, never cared for the idea, and all I really > want is for LC to just stop poking around in things that aren't the > stack file I'm trying to bind to. But it seems all my guesses about the > profile options are wrong, since I can't find a combination which is the > equivalent of "Stop mucking around in other stack files and just do what > I'm telling you to do!". > > I can write a handler for the pre- and post-build messages, stripping > and restoring the stackfiles listing. If needed. Seems silly to need > that, though. > > Am I mising something obvious to get LC's Standalone Builder to calm > down and just do the one thing I need it to 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 From merakosp at gmail.com Tue Feb 6 13:34:37 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 6 Feb 2018 18:34:37 +0000 Subject: SE: restore default handlers? In-Reply-To: References: Message-ID: I cannot reproduce this, tested on Ubuntu 16.04 with LC 9 DP-11. Could it be the case that there is a bad interaction with a Plugin? What happens if you try first to "put true into grevdevelopment" and then uncheck and recheck "Show Default handlers"? If something was failing silently before, this should now throw an error. Best, Panos -- On Tue, Feb 6, 2018 at 6:03 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > panagiotis merakos wrote: > > > On Tue, Feb 6, 2018 at 5:21 PM, Richard Gaskin wrote: > > > >> I have "Show Default Handlers" checked in my SE, but I don't see > >> them. > ... > > Do you see the non-default handlers of the script? > > Yes. > > > If you see no handlers at all, then either there is a syntax error in > > the script and LC for some reason does not see it, or something else > > happens and trashing your Prefs will probably fix it :) > > The other day my car wouldn't start. So I booted my laptop, tossed the > LiveCode preferences file, and everything was working again. The right > answer for every problem. :) > > > > PS: I guess you have already tried unchecking and rechecking "Show > > default handlers, correct? > > And again just now. > > Filed: > http://quality.livecode.com/show_bug.cgi?id=20958 > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Tue Feb 6 13:49:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Feb 2018 18:49:30 +0000 Subject: How to calm down the Standalone Builder? In-Reply-To: <1616c5131e0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <9c0efd28-b426-3c6a-8f7f-f872479b4fe1@fourthworld.com> <1616c5131e0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <8EB4D51F-2A60-42DB-AAEA-87F40CE7FD4A@iotecdigital.com> I use manual inclusions and it still seems to open everything. If I attempt to build a second time I am informed that there are stacks in memory with the same name. Bob S > On Feb 6, 2018, at 10:12 , J. Landman Gay via use-livecode wrote: > > I'm not sure the problem is profiles. Do you have "search for inclusions" selected? If so, the sb has to open every stack to search. Even if you don't use any inclusions, it may be doing that anyway, and also the ask and answer dialogs are always selected by default. > > If you haven't already done it, choose to select inclusions manually so the sb won't scan everything. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bodine at bodinetraininggames.com Tue Feb 6 13:54:17 2018 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 6 Feb 2018 11:54:17 -0700 (MST) Subject: Exe and dll errors after standalone build In-Reply-To: <1517939030453-0.post@n4.nabble.com> References: <1517939030453-0.post@n4.nabble.com> Message-ID: <1517943257694-0.post@n4.nabble.com> Roseanne Roseannadanna wrote > Nevermind! Fixed it. -- Tom B. -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Tue Feb 6 13:49:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Feb 2018 18:49:30 +0000 Subject: How to calm down the Standalone Builder? In-Reply-To: <1616c5131e0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <9c0efd28-b426-3c6a-8f7f-f872479b4fe1@fourthworld.com> <1616c5131e0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <8EB4D51F-2A60-42DB-AAEA-87F40CE7FD4A@iotecdigital.com> I use manual inclusions and it still seems to open everything. If I attempt to build a second time I am informed that there are stacks in memory with the same name. Bob S > On Feb 6, 2018, at 10:12 , J. Landman Gay via use-livecode wrote: > > I'm not sure the problem is profiles. Do you have "search for inclusions" selected? If so, the sb has to open every stack to search. Even if you don't use any inclusions, it may be doing that anyway, and also the ask and answer dialogs are always selected by default. > > If you haven't already done it, choose to select inclusions manually so the sb won't scan everything. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Feb 6 13:59:26 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 6 Feb 2018 10:59:26 -0800 Subject: How to calm down the Standalone Builder? In-Reply-To: <1616c5131e0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1616c5131e0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: J. Landman Gay wrote: > I'm not sure the problem is profiles. Do you have "search for > inclusions" selected? If so, the sb has to open every stack to search. > Even if you don't use any inclusions, it may be doing that anyway, and > also the ask and answer dialogs are always selected by default. > > If you haven't already done it, choose to select inclusions manually > so the sb won't scan everything. Always manual here. But even if it's searching the designated mainstack, what could cause it to start diving down into adjacent folders and opening everything it finds? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue Feb 6 14:03:55 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 6 Feb 2018 11:03:55 -0800 Subject: SE: restore default handlers? In-Reply-To: References: Message-ID: <63749e0b-6add-5f03-24c1-fb213f780e94@fourthworld.com> panagiotis merakos wrote: > I cannot reproduce this, tested on Ubuntu 16.04 with LC 9 DP-11. > > Could it be the case that there is a bad interaction with a Plugin? > > What happens if you try first to "put true into grevdevelopment" and > then uncheck and recheck "Show Default handlers"? > > If something was failing silently before, this should now throw an > error. Thanks. Indeed it does - this is what I get pouring into the Message Box: ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" ERROR: unable to open database unable to create sqlite API database revdberr,invalid database type line: 1079 handler: ideThrow script object: stack "/home/rg/.runrev/components/livecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibrary.8.livecodescript" -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mark at canelasoftware.com Tue Feb 6 14:18:18 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Tue, 6 Feb 2018 11:18:18 -0800 Subject: Navigator update: better conversion to behaviors, better property editing, better version control, and send to private commands In-Reply-To: References: <663B6B5F-3044-451E-9A1F-8B0FA7931667@canelasoftware.com> Message-ID: Hi Geoff, Yes. The object does have its own script. Older versions of Navigator allowed me to pick the script to edit with an option key combo/double click?or however I set up my prefs. In the current version, you can only see the objects script even if you tell it that you want to see the associated behavior. Allowing us to pick depending on the prefs would be perfect! -Mark > On Feb 5, 2018, at 11:40 PM, Geoff Canyon via use-livecode wrote: > > Or is it that it's editing the object script? I rewrote that code to follow > any number of behavior links until it finds one with a script (or runs out) > and edit the script of that. But I started from the object script, so if > the object has a script and a behavior, it will edit the object script. I > can fix that. The next step is to make it a submenu if there are more than > one behavior, with all of them listed so you can edit any you like. > > I can fix it so it starts from the behavior, if that's what you're running > into. > > gc > > On Mon, Feb 5, 2018 at 10:52 PM, Geoff Canyon wrote: > >> What are you seeing happen when you do this? One thing I've noticed is >> that the script editor window doesn't come to the foreground by itself if >> the script is already open in any tab of the editor. So using something >> like Edit Behaviors will cause the editor to show that script, but still be >> sitting behind whatever other windows are open. >> >> Or maybe you're seeing something else? What LC version and platform? >> >> gc >> >> On Mon, Feb 5, 2018 at 9:46 AM, Mark Talluto via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Geoff, >>> >>> I am super excited to see you working on Navigator. >>> >>> I have one little issue with it as it stands. I can not edit behaviors >>> any longer. I am sure I am doing something wrong. I did the right click -> >>> ?Edit Behavior Scripts? on a card that has a behavior associated with it. >>> The line is blue in color indicating that it has a behavior. >>> >>> I will go back to an older version for now. >>> >>> Best regards, >>> >>> Mark Talluto >>> livecloud.io >>> nursenotes.net >>> canelasoftware.com >>> >>> >>>> On Feb 3, 2018, at 10:52 PM, Geoff Canyon via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> The update is now available here >>>> . I >>> haven't >>>> updated the documentation yet. The main changes are: >>>> >>>> 1. The whole convert-to-behaviors and restore-from-behaviors bit has >>> been >>>> moved to its own custom palette, opened from Navigator. This makes the >>>> whole process much clearer, and setting the options is easier and more >>>> forgiving. >>>> 2. There's a preview for the naming template process -- again, easier >>> and >>>> more foolproof, and a dropdown offers some pre-made options. >>>> 3. The dialog's working list is derived from the selection in Navigator >>>> when the command is issued, but it's text -- anything can be modified, >>>> deleted, or added before processing. >>>> 4. There is a button to add enclosed objects. So it's possible to >>> select a >>>> group, card, or stack in Navigator, select the command, and then add >>>> enclosed objects to include all the controls in that container -- or >>>> containers, it processes everything in the list. >>>> 5. There is a button to add behavior chains, so it's possible to select >>> one >>>> control that has a chain of fifty behaviors, and click the button to add >>>> them all to the list to be processed. >>>> 6. Both Convert and Restore have a preview option -- use it and the >>>> resulting log will show exactly what will be done, without actually >>> doing >>>> any of it. >>>> >>>> gc >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 6 14:30:31 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 6 Feb 2018 19:30:31 +0000 Subject: SE: restore default handlers? In-Reply-To: <63749e0b-6add-5f03-24c1-fb213f780e94@fourthworld.com> References: <63749e0b-6add-5f03-24c1-fb213f780e94@fourthworld.com> Message-ID: Thanks Richard. So, a guess is that for some reason LC cannot open the sqlite database that holds all the dictionary entries, thus it cannot fetch the list of the default handlers per object. I am wondering if this is related to the other bug report you have filed, where the dictionary opens but it is empty for you. Let's delete the Documentation Cache: 1. Quit LC 9.0.0 DP-11 2. Delete folder: .runrev/documentationcache/9_0_0_dp_11_commercial/ 3. Open LC 4. Check if the default handlers appear now. Best, Panos -- On Tue, Feb 6, 2018 at 7:03 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > panagiotis merakos wrote: > > I cannot reproduce this, tested on Ubuntu 16.04 with LC 9 DP-11. > > > > Could it be the case that there is a bad interaction with a Plugin? > > > > What happens if you try first to "put true into grevdevelopment" and > > then uncheck and recheck "Show Default handlers"? > > > > If something was failing silently before, this should now throw an > > error. > > Thanks. Indeed it does - this is what I get pouring into the Message Box: > > > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Feb 6 15:00:04 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 06 Feb 2018 14:00:04 -0600 Subject: How to calm down the Standalone Builder? In-Reply-To: References: <1616c5131e0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1616cb431a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Sorry, I haven't a clue. One of my projects has dozens of stackfiles and I don't see this behavior. We're building for mobile though, maybe that matters. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 6, 2018 1:01:22 PM Richard Gaskin via use-livecode wrote: > J. Landman Gay wrote: > > I'm not sure the problem is profiles. Do you have "search for > > inclusions" selected? If so, the sb has to open every stack to search. > > Even if you don't use any inclusions, it may be doing that anyway, and > > also the ask and answer dialogs are always selected by default. > > > > If you haven't already done it, choose to select inclusions manually > > so the sb won't scan everything. > > Always manual here. > > But even if it's searching the designated mainstack, what could cause it > to start diving down into adjacent folders and opening everything it finds? > > -- > 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 stephen at barncard.com Tue Feb 6 15:03:15 2018 From: stephen at barncard.com (Stephen Barncard) Date: Tue, 6 Feb 2018 12:03:15 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: Mike Bonner: I'll try the Open Process suggestion you made - again with more syntax variations this time. thanks! Dr Hawkins - I don't have control over the name of the CD source file.. 1 Audio Track.aiff the OS demuxes the data on the CD and gives them generic names. surely there must be a way to encapsulate URL strings properly to use spaces and hyphens. Do I have to add the escapes manually using lookups and exceptions? the folder names are no big deal to fix, but I've got a library of hundreds of shows where I already use hyphens and have been successfully imported.. Dr Hawkins: when you say "escape spaces" do you mean something like \%20 or \[actual space char] ? I only care about this working on Macs, by the way. This is just an ugly thing that saves me time in a huge archive project. The UI sucks, but it's all just for me. This "app" I've created allows me to save keystrokes in the process of: 0. assign a name to the performance, type in a field (I avoid spaces but there are hyphens - I could use underscores I guess but they look so ugly - perhaps I can 'get away' with those on a mac. 1. taking a picture of the CD, cover and contents and saving as a file (using oss imagesnap and a webcam) (I would have used a flatbed scanner but I couldn't find a useable oss executable and scanning and loading is slower ) 2. importing the first CD file after it is inserted, converting it to WAV from AIF, and saving it with with the chosen name. (using ffmpeg) 3. create a folder with the chosen names and put the like named files ( with .png and .wav suffixes ) in that folder. (using Livecode) metadata (like song titles) could be put into a .txt file in that folder later. I plan a bot that will send samples to a Grace Note like service to harvest song titles. My idea is that the file structure and meta ARE the database and a data listing could be created from that structure 'just in time'. This is important in an archive that is rapidly getting added to or changed (like filenames !!) and makes more sense to me that having to enter and update a separate database. The archive is limited enough in items that speed is not an issue. this has taken the process from taking three separate apps (including the dreaded iTunes and Photobooth?? ) and dozens of clicks, cut and paste names etc.) and lots of typing to a single entity where I only have to enter that name ONCE. And iTunes import and convert took 10 minutes for a 60 minute piece - whereas ffmpeg takes only 2:15. I can do a turnaround within 4 minutes now. thanks for the tip on quotes and backquotes. but like I said, the commands do work when I don't try to release control to the calling script after the external executable is started. The lack of being able to do this is NOT a show stopper. Livecode has been able to let me create this monster kluge in very little development time and it works. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Tue, Feb 6, 2018 at 8:25 AM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Mon, Feb 5, 2018 at 9:46 PM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > > (./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 > > KJAZ > > > ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav' &) > > > > double quotes cause evaluation (for shell variables?), back quote (`) > causes contents to execute. You seem to be using ', which is a literal. > > Oh, I see. > > You have *SPACES* in file names. > > This *ALWAYS* leads to suffering. > > Quoting a filename does not make it ok; it's still multiple words. If you > want to keep such evil names, you'll have to escape those spaces with \ > (backslash). > > A better idea is to get all the spaces out of filenames. I only allow > letters, dot, and underscore. > > You also have hyphens, which have meaning on some operating systems. > > -- > 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 Tue Feb 6 15:10:15 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 6 Feb 2018 12:10:15 -0800 Subject: SE: restore default handlers? In-Reply-To: References: Message-ID: <4e1487f7-bfd5-8751-d4a3-5587ce8c1316@fourthworld.com> panagiotis merakos wrote: > Thanks Richard. So, a guess is that for some reason LC cannot open the > sqlite database that holds all the dictionary entries, thus it cannot fetch > the list of the default handlers per object. I am wondering if this is > related to the other bug report you have filed, where the dictionary opens > but it is empty for you. > > Let's delete the Documentation Cache: > > 1. Quit LC 9.0.0 DP-11 > 2. Delete folder: .runrev/documentationcache/9_0_0_dp_11_commercial/ > 3. Open LC > 4. Check if the default handlers appear now. Good idea, but no go, still get: > ERROR: unable to open database > unable to create sqlite API database > revdberr,invalid database type > line: 1079 > handler: ideThrow > script object: stack "/home/rg/.runrev/components/l > ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > ry.8.livecodescript" It would be really cool if someone on the team could spend some time doing daily work on Linux and Windows. VMs are nice, but daily work on metal will expose things beyond what customers report. Not every day, but a day a week would be an eye-opener. For example, there's a weird scrolling issue I sometimes see on Linux, in which the field my mouse is over is unaffected by my track pad gestures, but some other field scrolls instead. Sure, I could pin down a recipe, and when I'm caught up on my deliverables from not being able to use the Standalone Builder I'll try to make some time for recipes like that. But with daily work on these non-Mac OSes y'all would see them first-hand, and if you did I doubt such things would survive for long. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Tue Feb 6 15:21:59 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Feb 2018 12:21:59 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: On Tue, Feb 6, 2018 at 12:03 PM, Stephen Barncard via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike Bonner: I'll try the Open Process suggestion you made - again with > more syntax variations this time. thanks! > > Dr Hawkins - I don't have control over the name of the CD source file.. > You can change them. once you have the name in filNam, put filNam into newFilNam replace space with "\ " in filNam replace space with "_" in newFilNam get shell ("mv filNam newFilNam") or, just use newFilNam--but spaces in filenames are always going to hurt and cause problem, not mater the source. > > > Dr Hawkins: when you say "escape spaces" do you mean something like > > \%20 > ack, no! that's html! > > or > > \[actual space char] > yes, this--it's not a regex, but the shell recognizes this an a couple of others, some with different meanings than in a regex -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From klaus at major-k.de Tue Feb 6 17:08:10 2018 From: klaus at major-k.de (Klaus major-k) Date: Tue, 6 Feb 2018 23:08:10 +0100 Subject: Delete imported audioclips? Message-ID: <0B74DDC6-EB09-4032-AB06-23B99F5F53EA@major-k.de> Hi friends, obviously I am missing something obvious, but how can I delete an imported audioclip? Looks like the "Poject Brwoser" cannot do this. Thanks for any pointer! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mark at canelasoftware.com Tue Feb 6 17:10:24 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Tue, 6 Feb 2018 14:10:24 -0800 Subject: Navigator update: better conversion to behaviors, better property editing, better version control, and send to private commands In-Reply-To: References: <663B6B5F-3044-451E-9A1F-8B0FA7931667@canelasoftware.com> Message-ID: <193D53AA-D372-46FD-93AD-A8425D30511B@canelasoftware.com> Just a quick FYI. I got an early build that has this fixed! Geoff Canyon is amazing. Thanks for all of your hard work on this very useful plugin. -Mark Talluto > On Feb 5, 2018, at 11:40 PM, Geoff Canyon via use-livecode wrote: > > Or is it that it's editing the object script? I rewrote that code to follow > any number of behavior links until it finds one with a script (or runs out) > and edit the script of that. But I started from the object script, so if > the object has a script and a behavior, it will edit the object script. I > can fix that. The next step is to make it a submenu if there are more than > one behavior, with all of them listed so you can edit any you like. > > I can fix it so it starts from the behavior, if that's what you're running > into. > > gc > > On Mon, Feb 5, 2018 at 10:52 PM, Geoff Canyon wrote: > >> What are you seeing happen when you do this? One thing I've noticed is >> that the script editor window doesn't come to the foreground by itself if >> the script is already open in any tab of the editor. So using something >> like Edit Behaviors will cause the editor to show that script, but still be >> sitting behind whatever other windows are open. >> >> Or maybe you're seeing something else? What LC version and platform? >> >> gc >> >> On Mon, Feb 5, 2018 at 9:46 AM, Mark Talluto via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Geoff, >>> >>> I am super excited to see you working on Navigator. >>> >>> I have one little issue with it as it stands. I can not edit behaviors >>> any longer. I am sure I am doing something wrong. I did the right click -> >>> ?Edit Behavior Scripts? on a card that has a behavior associated with it. >>> The line is blue in color indicating that it has a behavior. >>> >>> I will go back to an older version for now. >>> >>> Best regards, >>> >>> Mark Talluto >>> livecloud.io >>> nursenotes.net >>> canelasoftware.com >>> >>> >>>> On Feb 3, 2018, at 10:52 PM, Geoff Canyon via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> The update is now available here >>>> . I >>> haven't >>>> updated the documentation yet. The main changes are: >>>> >>>> 1. The whole convert-to-behaviors and restore-from-behaviors bit has >>> been >>>> moved to its own custom palette, opened from Navigator. This makes the >>>> whole process much clearer, and setting the options is easier and more >>>> forgiving. >>>> 2. There's a preview for the naming template process -- again, easier >>> and >>>> more foolproof, and a dropdown offers some pre-made options. >>>> 3. The dialog's working list is derived from the selection in Navigator >>>> when the command is issued, but it's text -- anything can be modified, >>>> deleted, or added before processing. >>>> 4. There is a button to add enclosed objects. So it's possible to >>> select a >>>> group, card, or stack in Navigator, select the command, and then add >>>> enclosed objects to include all the controls in that container -- or >>>> containers, it processes everything in the list. >>>> 5. There is a button to add behavior chains, so it's possible to select >>> one >>>> control that has a chain of fifty behaviors, and click the button to add >>>> them all to the list to be processed. >>>> 6. Both Convert and Restore have a preview option -- use it and the >>>> resulting log will show exactly what will be done, without actually >>> doing >>>> any of it. >>>> >>>> gc >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Feb 6 17:46:52 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 6 Feb 2018 14:46:52 -0800 Subject: SE: restore default handlers? In-Reply-To: References: Message-ID: Does this do what I think it does!? i.e. make it so rev code can throw errors, be debugged, breakpointed, and stepped through. If so, oh my goodness you just made my day. I have been debugging Navigator for fourteen years now, all with answer statements and puts. My code is literally riddled with commented-out ?put ?got here??s I can?t wait to get home to try this out... gc > On Feb 6, 2018, at 10:34 AM, panagiotis merakos via use-livecode wrote: > > What happens if you try first to "put true into grevdevelopment" and then > uncheck and recheck "Show Default handlers"? From ahsoftware at sonic.net Tue Feb 6 17:59:41 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 6 Feb 2018 14:59:41 -0800 Subject: SE: restore default handlers? In-Reply-To: References: Message-ID: <6ba5ee2f-bd12-8312-ab9d-ce896927d4fc@sonic.net> On 02/06/2018 02:46 PM, Geoff Canyon via use-livecode wrote: > Does this do what I think it does!? i.e. make it so rev code can throw errors, be debugged, breakpointed, and stepped through. Yes, it does... but be careful with it. It will also pinpoint all the ugly errors in the IDE stacks. I only enable it when I'm trying to debug my own system stacks, then turn if off again as soon as I've got things working. Also note that gRevDevelopment is a global, so global gRevDevelopment; put true into gRevDevelopment is what you need. .. I set up a devolution button to enable/disable this feature, and it's my most-used devolution option. -- Mark Wieder ahsoftware at gmail.com From hh at hyperhh.de Tue Feb 6 18:03:09 2018 From: hh at hyperhh.de (hh) Date: Wed, 7 Feb 2018 00:03:09 +0100 Subject: Navigator Message-ID: <55CF6183-1798-470C-AE6E-19A4B9106F45@hyperhh.de> > Mark T. wrote: > Geoff Canyon is amazing. > Thanks for all of your hard work on this very useful plugin. Yes, thanks a lot Geoff - that's really very useful. From tore.nilsen at me.com Tue Feb 6 18:03:50 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 07 Feb 2018 00:03:50 +0100 Subject: Delete imported audioclips? In-Reply-To: <0B74DDC6-EB09-4032-AB06-23B99F5F53EA@major-k.de> References: <0B74DDC6-EB09-4032-AB06-23B99F5F53EA@major-k.de> Message-ID: <49AEFAD0-739A-44E6-B460-E1F42B588611@me.com> Right click or control click the file i project browser and use clear from the menu. You may have to reload the PB to see that the clip is deleted. Best regards Tore Nilsen Sendt fra min iPhone > 6. feb. 2018 kl. 23:08 skrev Klaus major-k via use-livecode : > > Hi friends, > > obviously I am missing something obvious, but how can I delete an imported audioclip? > Looks like the "Poject Brwoser" cannot do this. > > Thanks for any pointer! > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Feb 6 18:10:44 2018 From: klaus at major-k.de (Klaus major-k) Date: Wed, 7 Feb 2018 00:10:44 +0100 Subject: Delete imported audioclips? In-Reply-To: <49AEFAD0-739A-44E6-B460-E1F42B588611@me.com> References: <0B74DDC6-EB09-4032-AB06-23B99F5F53EA@major-k.de> <49AEFAD0-739A-44E6-B460-E1F42B588611@me.com> Message-ID: <240AC107-D4D1-435B-B0EB-01BA927DE8CA@major-k.de> Hi Tore, > Am 07.02.2018 um 00:03 schrieb Tore Nilsen via use-livecode : > > Right click or control click the file i project browser and use clear from the menu. > You may have to reload the PB to see that the clip is deleted. Sorry, no "Clear" menu-item in the popup menu with Audioclips! But Hermann already ansered me privately, looks like we need to: ... delete ac X ## where X is the number of the audioclip to delete ... > Best regards > Tore Nilsen Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From warren at warrensweb.us Tue Feb 6 18:28:02 2018 From: warren at warrensweb.us (Warren Samples) Date: Tue, 6 Feb 2018 17:28:02 -0600 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: On 02/06/2018 10:25 AM, Dr. Hawkins via use-livecode wrote: > double quotes cause evaluation (for shell variables?), back quote (`) > causes contents to execute. You seem to be using ', which is a literal. > > You have*SPACES* in file names. > > This*ALWAYS* leads to suffering. > > Quoting a filename does not make it ok; it's still multiple words. If you > want to keep such evil names, you'll have to escape those spaces with \ > (backslash). With all due respect, this is not all correct information. It is perfectly valid to escape using single quotes (and double quotes) on the command line and it works inside a LC shell function. Just to save time, here are some sources for verification: https://www.tech-otaku.com/mac/file-folder-paths-os-x-terminal/ http://wiki.bash-hackers.org/syntax/quoting (see "Weak quoting" and "Strong quoting") Warren From warren at warrensweb.us Tue Feb 6 18:53:56 2018 From: warren at warrensweb.us (Warren Samples) Date: Tue, 6 Feb 2018 17:53:56 -0600 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: <761aa051-06c9-5a3c-e323-4181f5df8e78@warrensweb.us> On 02/05/2018 11:04 PM, Stephen Barncard via use-livecode wrote: > I have this open sourced app > > ffmpeg > > and I need to copy the first file from a CD, convert it to a wav file, name > it, and save it to a file on a hard drive. > (the executable is located in the same folder as the stack, hence the ./ ) > so my generated command used with the shell command is: > > *./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ > ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav' > > thanks for any suggestions... The dictionary says: "On OS X systems, you can use the open process command to start up an application, but not a Unix process. To work with a Unix process, use the shell func instead." That makes me wonder if you can only use shell() with ffmpeg. Did you try the suggestions from the other thread? Did they not do what you needed? get shell ("nohup mycommand --some-params 'can use single quotes to escape if necessary' &") here the command is prefaced with 'nohup' and a space and is closed with a space and & There are several variations for redirecting to /dev/null which also work to make the shell() non-blocking. Here's an example: get shell ("mycommand --some-params 'can use single quotes to escape if necessary' /dev/null &") Using your example given here, they might look like this (linebreaks may not be correct due to email fun): get shell("nohup ./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav' &") OR get shell("./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav' /dev/null &") The method using 'nohup' *might* cause a problem due to not finding ffmpeg at its path relative to your LiveCode app. If it fails, that would be the first thing to troubleshoot. Good luck! Warren From gcanyon at gmail.com Tue Feb 6 20:16:46 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 6 Feb 2018 17:16:46 -0800 Subject: SE: restore default handlers? In-Reply-To: <6ba5ee2f-bd12-8312-ab9d-ce896927d4fc@sonic.net> References: <6ba5ee2f-bd12-8312-ab9d-ce896927d4fc@sonic.net> Message-ID: On Tue, Feb 6, 2018 at 2:59 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 02/06/2018 02:46 PM, Geoff Canyon via use-livecode wrote: > >> Does this do what I think it does!? i.e. make it so rev code can throw >> errors, be debugged, breakpointed, and stepped through. >> > > Yes, it does... but be careful with it. It will also pinpoint all the ugly > errors in the IDE stacks. I only enable it when I'm trying to debug my own > system stacks, then turn if off again as soon as I've got things working. > > ?Sure, but 90% of the work I do in LC is Navigator, so this is definitely going into the Nav settings (at least my version of them). gc? From hh at hyperhh.de Tue Feb 6 20:35:59 2018 From: hh at hyperhh.de (hh) Date: Wed, 7 Feb 2018 02:35:59 +0100 Subject: any tricks to make SHELL non blocking? Message-ID: <2A371C3A-F75B-4ED9-8645-B9C6A357E6E8@hyperhh.de> > Warren S. wrote: > The dictionary says: "On OS X systems, you can use the open process > command to start up an application, but not a Unix process. To work with > a Unix process, use the shell func instead." That makes me wonder if you > can only use shell() with ffmpeg. It is not quite clear what is meant with "Unix process" in the dictionary. This is, at any rate, not the same as "Unix executable" in the sense of MacOS. Probably a standard like https://en.wikipedia.org/wiki/List_of_Unix_commands ffmpeg isn't such a standard, but doesn't work with open process, others do. I use "open process p0 for neither", where p0 is a variable of type " ", with success for several other unix executables. Back to "shell": You are obviously an expert with the shell/unix. It would be greatly appreciated if you would share a general non-blocking shell command: Non-blocking shells are often needed/wanted and you could write a command which collects the advices from your last post. In the special case of ffmpeg it may even be possible to redirect STDERR to a file that can be scanned while a large job is running? From warren at warrensweb.us Tue Feb 6 21:27:43 2018 From: warren at warrensweb.us (Warren Samples) Date: Tue, 6 Feb 2018 20:27:43 -0600 Subject: any tricks to make SHELL non blocking? In-Reply-To: <2A371C3A-F75B-4ED9-8645-B9C6A357E6E8@hyperhh.de> References: <2A371C3A-F75B-4ED9-8645-B9C6A357E6E8@hyperhh.de> Message-ID: <65da6552-eb26-da8c-1efc-a4206439e6b0@warrensweb.us> On 02/06/2018 07:35 PM, hh via use-livecode wrote: > You are obviously an expert with the shell/unix. Nothing of the sort, I'm just sharing some information I have collected from other sources and have found to work in this kind of situation :D Warren From ambassador at fourthworld.com Tue Feb 6 21:46:26 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 6 Feb 2018 18:46:26 -0800 Subject: LCS vs PHP speed test? Message-ID: <9edc29d9-1ee7-5efd-0209-2b8c892ce595@fourthworld.com> Has anyone here had occasion to test relative speed of LC Server vs PHP for common tasks (file I/O, array splits, parsing, etc.)? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Tue Feb 6 21:58:13 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 6 Feb 2018 18:58:13 -0800 Subject: any tricks to make SHELL non blocking? In-Reply-To: References: <559f1950-e9df-985c-e6c4-440e068405b6@researchware.com> <18e2f15c-9075-b302-355e-5f7ef1b7b4ce@fourthworld.com> <1615e4c28e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <31C5BFD4-1488-4FD5-8424-592A87D77410@earthlearningsolutions.org> Message-ID: On Tue, Feb 6, 2018 at 3:28 PM, Warren Samples via use-livecode < use-livecode at lists.runrev.com> wrote: > >> > With all due respect, this is not all correct information. It is perfectly > valid to escape using single quotes (and double quotes) on the command line hmm, for spaces, that seems to be correct. But that just proves the point; spaces in filenames are evil :) I learned unix on a cluster PDP-11 over three decades ago, and I'm still off on this. There are other things, however, notably environmental variables, that do not get escaped in the weak quoting of double quotes. > and it works inside a LC shell function. > > Just to save time, here are some sources for verification: > > https://www.tech-otaku.com/mac/file-folder-paths-os-x-terminal/ > > http://wiki.bash-hackers.org/syntax/quoting (see "Weak quoting" and > "Strong quoting" careful; OSX defaults to tcsh, not bash. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From gcanyon at gmail.com Tue Feb 6 22:33:58 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 6 Feb 2018 19:33:58 -0800 Subject: Navigator In-Reply-To: <55CF6183-1798-470C-AE6E-19A4B9106F45@hyperhh.de> References: <55CF6183-1798-470C-AE6E-19A4B9106F45@hyperhh.de> Message-ID: Hey, you're welcome! I'm just happy (and a bit surprised!) that it's still useful/in use. On Tue, Feb 6, 2018 at 3:03 PM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Mark T. wrote: > > Geoff Canyon is amazing. > > Thanks for all of your hard work on this very useful plugin. > > Yes, thanks a lot Geoff - that's really very useful. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From simplsol at aol.com Wed Feb 7 00:26:17 2018 From: simplsol at aol.com (PEL) Date: Tue, 6 Feb 2018 21:26:17 -0800 Subject: Navigator In-Reply-To: References: <55CF6183-1798-470C-AE6E-19A4B9106F45@hyperhh.de> Message-ID: <77545462-95BA-4A4F-A11D-98B636BD4E0C@aol.com> Geoff, Add me to the list of long-time happy users. Paul Looney > On Feb 6, 2018, at 7:33 PM, Geoff Canyon via use-livecode wrote: > > Hey, you're welcome! I'm just happy (and a bit surprised!) that it's still > useful/in use. > > On Tue, Feb 6, 2018 at 3:03 PM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> Mark T. wrote: >>> Geoff Canyon is amazing. >>> Thanks for all of your hard work on this very useful plugin. >> >> Yes, thanks a lot Geoff - that's really very useful. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Feb 7 06:02:03 2018 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 7 Feb 2018 11:02:03 +0000 Subject: Delete imported audioclips? In-Reply-To: <240AC107-D4D1-435B-B0EB-01BA927DE8CA@major-k.de> References: <0B74DDC6-EB09-4032-AB06-23B99F5F53EA@major-k.de> <49AEFAD0-739A-44E6-B460-E1F42B588611@me.com> <240AC107-D4D1-435B-B0EB-01BA927DE8CA@major-k.de> Message-ID: Maybe we could make ac?s and Vc?s visible in the PB like they are in the Application Browser. We can look into it. Sean Cole Pi Digital > On 6 Feb 2018, at 23:10, Klaus major-k via use-livecode wrote: > > Hi Tore, > >> Am 07.02.2018 um 00:03 schrieb Tore Nilsen via use-livecode : >> >> Right click or control click the file i project browser and use clear from the menu. >> You may have to reload the PB to see that the clip is deleted. > > Sorry, no "Clear" menu-item in the popup menu with Audioclips! > > But Hermann already ansered me privately, looks like we need to: > ... > delete ac X > ## where X is the number of the audioclip to delete > ... > >> Best regards >> Tore Nilsen > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Wed Feb 7 06:06:06 2018 From: klaus at major-k.de (Klaus major-k) Date: Wed, 7 Feb 2018 12:06:06 +0100 Subject: Delete imported audioclips? In-Reply-To: References: <0B74DDC6-EB09-4032-AB06-23B99F5F53EA@major-k.de> <49AEFAD0-739A-44E6-B460-E1F42B588611@me.com> <240AC107-D4D1-435B-B0EB-01BA927DE8CA@major-k.de> Message-ID: <3A337AB9-279E-4552-96F6-E383360A8911@major-k.de> Hi Sean, > Am 07.02.2018 um 12:02 schrieb Pi Digital via use-livecode : > > Maybe we could make ac?s and Vc?s visible in the PB like they are in the Application Browser. We can look into it. yes, we can see them, but it seems we cannot delete them from within the "Project Browser". But I already deleted them via script. > Sean Cole > Pi Digital > >> On 6 Feb 2018, at 23:10, Klaus major-k via use-livecode wrote: >> >> Hi Tore, >> >>> Am 07.02.2018 um 00:03 schrieb Tore Nilsen via use-livecode : >>> >>> Right click or control click the file i project browser and use clear from the menu. >>> You may have to reload the PB to see that the clip is deleted. >> >> Sorry, no "Clear" menu-item in the popup menu with Audioclips! >> >> But Hermann already ansered me privately, looks like we need to: >> ... >> delete ac X >> ## where X is the number of the audioclip to delete >> ... >> >>> Best regards >>> Tore Nilsen Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From brian at milby7.com Wed Feb 7 08:54:34 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 07 Feb 2018 13:54:34 +0000 Subject: Pro Git 2, Scott Chacon, Ben Straub, eBook - Amazon.com Message-ID: Saw this book free for Amazon Kindle. Not sure how long it will be free though. https://www.amazon.com/Pro-Git-Scott-Chacon-ebook/dp/B01ISNIKES Sent from my iPhone From matthias_livecode_150811 at m-r-d.de Wed Feb 7 10:39:18 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 7 Feb 2018 16:39:18 +0100 Subject: Pro Git 2, Scott Chacon, Ben Straub, eBook - Amazon.com In-Reply-To: References: Message-ID: Thanks Brian for this information. Btw, the German website of Amazon is also giving it away for free https://www.amazon.de/Pro-Git-Scott-Chacon-ebook/dp/B01ISNIKES/ref=tmm_kin_swatch_0?_encoding=UTF8&qid=1518017853&sr=8-1 > Am 07.02.2018 um 14:54 schrieb Brian Milby via use-livecode >: > > Saw this book free for Amazon Kindle. Not sure how long it will be free > though. > > https://www.amazon.com/Pro-Git-Scott-Chacon-ebook/dp/B01ISNIKES > > > 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 bobsneidar at iotecdigital.com Wed Feb 7 11:04:13 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Feb 2018 16:04:13 +0000 Subject: SE: restore default handlers? In-Reply-To: References: <63749e0b-6add-5f03-24c1-fb213f780e94@fourthworld.com> Message-ID: Of course, sqlite DBs are single user only so any attempt to open it a second time would fail. Just tossing that out there. Bob S > On Feb 6, 2018, at 11:30 , panagiotis merakos via use-livecode wrote: > > Thanks Richard. So, a guess is that for some reason LC cannot open the > sqlite database that holds all the dictionary entries, thus it cannot fetch > the list of the default handlers per object. I am wondering if this is > related to the other bug report you have filed, where the dictionary opens > but it is empty for you. > > Let's delete the Documentation Cache: > > 1. Quit LC 9.0.0 DP-11 > 2. Delete folder: .runrev/documentationcache/9_0_0_dp_11_commercial/ > 3. Open LC > 4. Check if the default handlers appear now. > > Best, > Panos > -- > > > > On Tue, Feb 6, 2018 at 7:03 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> panagiotis merakos wrote: >>> I cannot reproduce this, tested on Ubuntu 16.04 with LC 9 DP-11. >>> >>> Could it be the case that there is a bad interaction with a Plugin? >>> >>> What happens if you try first to "put true into grevdevelopment" and >>> then uncheck and recheck "Show Default handlers"? >>> >>> If something was failing silently before, this should now throw an >>> error. >> >> Thanks. Indeed it does - this is what I get pouring into the Message Box: >> >> >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> ERROR: unable to open database >> unable to create sqlite API database >> revdberr,invalid database type >> line: 1079 >> handler: ideThrow >> script object: stack "/home/rg/.runrev/components/l >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra >> ry.8.livecodescript" >> >> >> -- >> 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 MikeKerner at roadrunner.com Wed Feb 7 13:44:24 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 7 Feb 2018 13:44:24 -0500 Subject: SE: restore default handlers? In-Reply-To: References: <63749e0b-6add-5f03-24c1-fb213f780e94@fourthworld.com> Message-ID: @Bob are you sure that's true? I seem to recall being able to accidentally reopen the db over and over without an error. I can't remember if the dbid increments when I do this, but I think it does. On Wed, Feb 7, 2018 at 11:04 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Of course, sqlite DBs are single user only so any attempt to open it a > second time would fail. Just tossing that out there. > > Bob S > > > > On Feb 6, 2018, at 11:30 , panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Thanks Richard. So, a guess is that for some reason LC cannot open the > > sqlite database that holds all the dictionary entries, thus it cannot > fetch > > the list of the default handlers per object. I am wondering if this is > > related to the other bug report you have filed, where the dictionary > opens > > but it is empty for you. > > > > Let's delete the Documentation Cache: > > > > 1. Quit LC 9.0.0 DP-11 > > 2. Delete folder: .runrev/documentationcache/9_0_0_dp_11_commercial/ > > 3. Open LC > > 4. Check if the default handlers appear now. > > > > Best, > > Panos > > -- > > > > > > > > On Tue, Feb 6, 2018 at 7:03 PM, Richard Gaskin via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> panagiotis merakos wrote: > >>> I cannot reproduce this, tested on Ubuntu 16.04 with LC 9 DP-11. > >>> > >>> Could it be the case that there is a bad interaction with a Plugin? > >>> > >>> What happens if you try first to "put true into grevdevelopment" and > >>> then uncheck and recheck "Show Default handlers"? > >>> > >>> If something was failing silently before, this should now throw an > >>> error. > >> > >> Thanks. Indeed it does - this is what I get pouring into the Message > Box: > >> > >> > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database > >> revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> > >> -- > >> Richard Gaskin > >> Fourth World Systems > >> Software Design and Development for the Desktop, Mobile, and the Web > >> ____________________________________________________________________ > >> Ambassador at FourthWorld.com http://www.FourthWorld.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 Wed Feb 7 13:50:45 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Feb 2018 18:50:45 +0000 Subject: SE: restore default handlers? In-Reply-To: References: <63749e0b-6add-5f03-24c1-fb213f780e94@fourthworld.com> Message-ID: <5DA3EA30-4C42-4653-9B9A-F687E54841FD@iotecdigital.com> Spiceworks Inventory and Help Desk uses a local sqlite dbfile. They stress that you cannot open this DB directly, or else if Spiceworks tries to write to it you can corrupt the DB. You *can* open the sqlite file read only, but two people cannot open it for write at the same time. sqlite is a single user database. Bob S > On Feb 7, 2018, at 10:44 , Mike Kerner via use-livecode wrote: > > @Bob are you sure that's true? I seem to recall being able to accidentally > reopen the db over and over without an error. I can't remember if the dbid > increments when I do this, but I think it does. From rdimola at evergreeninfo.net Wed Feb 7 13:56:38 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 7 Feb 2018 13:56:38 -0500 Subject: SE: restore default handlers? In-Reply-To: References: <63749e0b-6add-5f03-24c1-fb213f780e94@fourthworld.com> Message-ID: <005601d3a045$6504b030$2f0e1090$@net> Mike, Yes, the DBID will increment and the DB will be opened multiple time. I have SQLite DBs open in the IDE while testing and open in MS Access via ODBC at the same time. If both apps are reading then no problem. There is no real good transactional record locking in SQLite. LC will throw an error if you are even reading the record in another program at the same time as an update happens in LC. You can use these LC errors to do a retry for the update. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Kerner via use-livecode Sent: Wednesday, February 07, 2018 1:44 PM To: How to use LiveCode Cc: Mike Kerner Subject: Re: SE: restore default handlers? @Bob are you sure that's true? I seem to recall being able to accidentally reopen the db over and over without an error. I can't remember if the dbid increments when I do this, but I think it does. On Wed, Feb 7, 2018 at 11:04 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Of course, sqlite DBs are single user only so any attempt to open it a > second time would fail. Just tossing that out there. > > Bob S > > > > On Feb 6, 2018, at 11:30 , panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Thanks Richard. So, a guess is that for some reason LC cannot open > > the sqlite database that holds all the dictionary entries, thus it > > cannot > fetch > > the list of the default handlers per object. I am wondering if this > > is related to the other bug report you have filed, where the > > dictionary > opens > > but it is empty for you. > > > > Let's delete the Documentation Cache: > > > > 1. Quit LC 9.0.0 DP-11 > > 2. Delete folder: .runrev/documentationcache/9_0_0_dp_11_commercial/ > > 3. Open LC > > 4. Check if the default handlers appear now. > > > > Best, > > Panos > > -- > > > > > > > > On Tue, Feb 6, 2018 at 7:03 PM, Richard Gaskin via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> panagiotis merakos wrote: > >>> I cannot reproduce this, tested on Ubuntu 16.04 with LC 9 DP-11. > >>> > >>> Could it be the case that there is a bad interaction with a Plugin? > >>> > >>> What happens if you try first to "put true into grevdevelopment" > >>> and then uncheck and recheck "Show Default handlers"? > >>> > >>> If something was failing silently before, this should now throw an > >>> error. > >> > >> Thanks. Indeed it does - this is what I get pouring into the > >> Message > Box: > >> > >> > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> ERROR: unable to open database > >> unable to create sqlite API database revdberr,invalid database type > >> line: 1079 > >> handler: ideThrow > >> script object: stack "/home/rg/.runrev/components/l > >> ivecodeindy-9.0.0-dp-11.x86_64/Toolset/libraries/revidelibra > >> ry.8.livecodescript" > >> > >> > >> -- > >> Richard Gaskin > >> Fourth World Systems > >> Software Design and Development for the Desktop, Mobile, and the > >> Web ____________________________________________________________________ > >> Ambassador at FourthWorld.com http://www.FourthWorld.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 monte at appisle.net Wed Feb 7 15:39:40 2018 From: monte at appisle.net (Monte Goulding) Date: Thu, 8 Feb 2018 07:39:40 +1100 Subject: Pro Git 2, Scott Chacon, Ben Straub, eBook - Amazon.com In-Reply-To: References: Message-ID: That book is available online for free here https://git-scm.com/book/en/v2 > On 8 Feb 2018, at 12:54 am, Brian Milby via use-livecode wrote: > > Saw this book free for Amazon Kindle. Not sure how long it will be free > though. > > https://www.amazon.com/Pro-Git-Scott-Chacon-ebook/dp/B01ISNIKES > > > 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 bobsneidar at iotecdigital.com Wed Feb 7 18:58:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Feb 2018 23:58:40 +0000 Subject: SE: restore default handlers? In-Reply-To: <005601d3a045$6504b030$2f0e1090$@net> References: <63749e0b-6add-5f03-24c1-fb213f780e94@fourthworld.com> <005601d3a045$6504b030$2f0e1090$@net> Message-ID: <8190446A-64AD-47AF-BDE7-1736FAFB1E11@iotecdigital.com> OIC I thought the question was, could 2 processes have the same sqlite db open. I don't think the LC engine opens the file over and over in different threads. I also think that it closes the connection when it is idle, hence the new DBID. I just checked for sqlite V3, and it appears multiple processes *can* have the db opened but only one can write at the same time. I do not think that was true for older versions. I think too that Spiceworks tickles the db to keep the connection open continually. The following is from the sqlite FAQ: Bob S (5) Can multiple applications or multiple instances of the same application access a single database file at the same time? Multiple processes can have the same database open at the same time. Multiple processes can be doing a SELECT at the same time. But only one process can be making changes to the database at any moment in time, however. SQLite uses reader/writer locks to control access to the database. (Under Win95/98/ME which lacks support for reader/writer locks, a probabilistic simulation is used instead.) But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting SQLite database files on NFS if multiple processes might try to access the file at the same time. On Windows, Microsoft's documentation says that locking may not work under FAT filesystems if you are not running the Share.exe daemon. People who have a lot of experience with Windows tell me that file locking of network files is very buggy and is not dependable. If what they say is true, sharing an SQLite database between two or more Windows machines might cause unexpected problems. We are aware of no other embedded SQL database engine that supports as much concurrency as SQLite. SQLite allows multiple processes to have the database file open at once, and for multiple processes to read the database at once. When any process wants to write, it must lock the entire database file for the duration of its update. But that normally only takes a few milliseconds. Other processes just wait on the writer to finish then continue about their business. Other embedded SQL database engines typically only allow a single process to connect to the database at once. However, client/server database engines (such as PostgreSQL, MySQL, or Oracle) usually support a higher level of concurrency and allow multiple processes to be writing to the same database at the same time. This is possible in a client/server database because there is always a single well-controlled server process available to coordinate access. If your application has a need for a lot of concurrency, then you should consider using a client/server database. But experience suggests that most applications need much less concurrency than their designers imagine. When SQLite tries to access a file that is locked by another process, the default behavior is to return SQLITE_BUSY. You can adjust this behavior from C code using the sqlite3_busy_handler() or sqlite3_busy_timeout() API functions. > On Feb 7, 2018, at 10:56 , Ralph DiMola via use-livecode wrote: > > Mike, > > Yes, the DBID will increment and the DB will be opened multiple time. I have > SQLite DBs open in the IDE while testing and open in MS Access via ODBC at > the same time. If both apps are reading then no problem. There is no real > good transactional record locking in SQLite. LC will throw an error if you > are even reading the record in another program at the same time as an > update happens in LC. You can use these LC errors to do a retry for the > update. > > Ralph DiMola From dsc at swcp.com Wed Feb 7 21:17:36 2018 From: dsc at swcp.com (Dar Scott) Date: Wed, 7 Feb 2018 19:17:36 -0700 Subject: Duplicate Card In-Reply-To: <000001d33d51$a117e760$e347b620$@tesco.net> References: <000001d33d51$a117e760$e347b620$@tesco.net> Message-ID: Did you ever get your duplicate card problem fixed? > On Oct 4, 2017, at 2:44 PM, Camm via use-livecode wrote: > > Hi , > > > > Is Duplicate card broke in 8.1.6 ? > > > > I get Duplicate card highlighted then when pressed the duplicate does not > appear ? > > > > > > Regards > > Camm > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 7 22:06:01 2018 From: james at thehales.id.au (James Hale) Date: Thu, 8 Feb 2018 14:06:01 +1100 Subject: update to Mkvmerger Message-ID: <8247E7E9-7917-4C8E-9A73-727E8EFE4DFD@thehales.id.au> I have updated Mkvmerger on the livecodeshare. #1 Updated to correct output file error when both lists used. Sorry about that, not sure how that error was left there. #2 Added command to extract first subtitle from file The ability to extract the first subtitle (usually the one I want) from the video file has been added. Originally I played around with changing the synchronization of the subtitle track by adding the appropriate output file option ( -- sync: msecs) but I am not convinced this actually works. At least on the players I use. So I hard coded a call to "mkvextract" (also part of the mkvtoolnix app) to simply extract track 2 so that I could times hift it by other means. The track ID's are usually : 0: Video 1: Audio 2: sub/srt If you usually deal with multilingual files which have extra audio tracks or you want a different subtitle track the just modify the tracks number in this line: put mkvmergepath && file1 && "tracks 2:" & sq & oFile & sq into commandline in the "doSomething2" handler James From niconiko at gmail.com Wed Feb 7 23:56:01 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Thu, 8 Feb 2018 13:56:01 +0900 Subject: a how-to for DG2 & swipe scrolling Message-ID: On the LC forum there's a thread with sample stacks but only for iOS. Could someone explain, or know of some LC reference, or, even better yet, have a sample stack for Android that covers using DG2 for making a swipeable datagrid form? Thank you. -- Nicolas Cueto From niconiko at gmail.com Thu Feb 8 00:50:13 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Thu, 8 Feb 2018 14:50:13 +0900 Subject: how to format text for copy-pasting as a spreadsheet table Message-ID: To make bingo grids, I'm using LC to randomize and arrange a list of words (tabs between words, cr between lines). What I then have to do to end up with an actual spreadsheet-style grid is: (1st) Copy-paste the LC generated text into a notepad app (Notepad++); (2nd) Copy-paste from the notepad app to a spreadsheet app (LibreCalc); (3rd) Copy-paste from the spreadsheet app to a document app (MS-Publisher). My question is, can LC format text so I can skip steps 1/2 and paste the formatted text directly into the document app and still have it appearing as a spreadsheet grid? And, if so, what would such formatted text look like? Some kind of HTML? If so, please! an example. Fingers crossed... -- Nicolas Cueto From ludovic.thebault at laposte.net Thu Feb 8 05:24:50 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Thu, 8 Feb 2018 11:24:50 +0100 Subject: Execute multiple MySQL commands Message-ID: Hello, I?ve an ? syntax error ? as result if i want to execute multiple MySQL commands, even with transactions. It is normal ? If i execute one command at time, it?s work. Thanks ! Here a sample script : revExecuteSQL tDatabaseID,"BEGIN TRANSACTION ? put "INSERT INTO savemyTable (column1) VALUES (1) & ";" & cr into tSQL put "DELETE FROM myTable WHERE id = " & id & ";" & cr after tSQL revExecuteSQL tDatabaseID, tSQL if the result is not an integer then answer the result else ?// COMMIT From kaveh at rivervalleytechnologies.com Thu Feb 8 09:08:23 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Thu, 8 Feb 2018 14:08:23 +0000 Subject: Sync with Google Contacts, iCloud or Apple Contacts Message-ID: I am using Mac OS X. I have my contacts synced between different applications: - Google Contacts - Apple Contacts - FullContact - iCloud - BusyContacts All works nicely and as far as I can see all changes are saved and synced, including thumbnail photos. Now I am looking for the following solutions: **Ideal solution** A fully synced contact manager in LiveCode where I can make modifications. I have not been able to find an easy way to sync two way. If I can have a way of syncing Google Contacts etc to MySQL. Then I can just read and write to the database. **Acceptable solution** When I start up my LiveCode app, I read in the up to date contacts, including thumbnails. No edits are made in LiveCode to contacts. Grateful for any hints... Regards Kaveh -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn Phone +44 7771 824 111 From dunbarx at aol.com Thu Feb 8 09:40:26 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 8 Feb 2018 07:40:26 -0700 (MST) Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: References: Message-ID: <1518100826150-0.post@n4.nabble.com> Hi. Not sure I understand. If I make a list: put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" & tab & "yellow" into myList set the clipBoardData to myList I should be able to paste directly into any spreadsheet. There is a thread that describes an issue pasting into google docs, depending on the version of LC, but I do not think this ever affected Excel. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From panos.merakos at livecode.com Thu Feb 8 09:50:13 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 8 Feb 2018 14:50:13 +0000 Subject: [ANN] Release 8.1.9 Message-ID: Dear List Members, We are pleased to announce the release of LiveCode 8.1.9 Stable. By "Stable", we mean that no reported regressions have been introduced in 8.1.9, compared to the previous Stable release. LiveCode 8.1.9 contains more than 25 extra bug fixes and new features, compared to LiveCode 8.1.8. You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ Warmest regards, The LiveCode Team -- From brian at milby7.com Thu Feb 8 10:02:05 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 08 Feb 2018 15:02:05 +0000 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: <1518100826150-0.post@n4.nabble.com> References: <1518100826150-0.post@n4.nabble.com> Message-ID: I have code that can bypass step 1 (8.1.9 probably can too since I think that bug fix is in there). If you are talking about getting an actual table, then it is possible but may require some code to pull off. I would need to do some testing to figure out what is on the clipboard after the spreadsheet copy. On Thu, Feb 8, 2018 at 8:41 AM dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > Not sure I understand. If I make a list: > > put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" & tab > & "yellow" into myList > set the clipBoardData to myList > > I should be able to paste directly into any spreadsheet. > > There is a thread that describes an issue pasting into google docs, > depending on the version of LC, but I do not think this ever affected > Excel. > > Craig Newman > > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Thu Feb 8 10:02:05 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 08 Feb 2018 15:02:05 +0000 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: <1518100826150-0.post@n4.nabble.com> References: <1518100826150-0.post@n4.nabble.com> Message-ID: I have code that can bypass step 1 (8.1.9 probably can too since I think that bug fix is in there). If you are talking about getting an actual table, then it is possible but may require some code to pull off. I would need to do some testing to figure out what is on the clipboard after the spreadsheet copy. On Thu, Feb 8, 2018 at 8:41 AM dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > Not sure I understand. If I make a list: > > put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" & tab > & "yellow" into myList > set the clipBoardData to myList > > I should be able to paste directly into any spreadsheet. > > There is a thread that describes an issue pasting into google docs, > depending on the version of LC, but I do not think this ever affected > Excel. > > Craig Newman > > > > > -- > Sent from: > http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Thu Feb 8 10:34:50 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 15:34:50 +0000 Subject: Execute multiple MySQL commands In-Reply-To: References: Message-ID: I thought I read somewhere that the LC API does not support multiple statements? Bob S > On Feb 8, 2018, at 02:24 , Ludovic THEBAULT via use-livecode wrote: > > Hello, > > I?ve an ? syntax error ? as result if i want to execute multiple MySQL commands, even with transactions. > > It is normal ? If i execute one command at time, it?s work. > > Thanks ! > > > > Here a sample script : > > revExecuteSQL tDatabaseID,"BEGIN TRANSACTION ? > > put "INSERT INTO savemyTable (column1) VALUES (1) & ";" & cr into tSQL > > put "DELETE FROM myTable WHERE id = " & id & ";" & cr after tSQL > > revExecuteSQL tDatabaseID, tSQL > > if the result is not an integer then answer the result > > else ?// COMMIT From bobsneidar at iotecdigital.com Thu Feb 8 10:46:57 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 15:46:57 +0000 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: <1518100826150-0.post@n4.nabble.com> References: <1518100826150-0.post@n4.nabble.com> Message-ID: <24FB4DC2-2F46-4221-88CC-F3CEF477A43F@iotecdigital.com> You can. You will just get 2 returns instead of the one when you paste it anywhere but in an app that knows how to handle the contents of that clipboard. Bob S > On Feb 8, 2018, at 06:40 , dunbarx via use-livecode wrote: > > put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" & tab > & "yellow" into myList > set the clipBoardData to myList From bobsneidar at iotecdigital.com Thu Feb 8 10:48:11 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 15:48:11 +0000 Subject: Execute multiple MySQL commands In-Reply-To: References: Message-ID: <2AFE8A7F-016C-4E62-8191-7599A5D5809E@iotecdigital.com> I know where! The Dictionary: SQLStatement string A string in Structured Query Language. (Do not include a semicolon at the end of the SQLStatement.) >Note: Some database systems, such as Oracle, are capable of handling a multiple-line SQL statement. Bob S > On Feb 8, 2018, at 07:34 , Bob Sneidar via use-livecode wrote: > > I thought I read somewhere that the LC API does not support multiple statements? > > Bob S > > >> On Feb 8, 2018, at 02:24 , Ludovic THEBAULT via use-livecode wrote: >> >> Hello, >> >> I?ve an ? syntax error ? as result if i want to execute multiple MySQL commands, even with transactions. >> >> It is normal ? If i execute one command at time, it?s work. >> >> Thanks ! >> >> >> >> Here a sample script : >> >> revExecuteSQL tDatabaseID,"BEGIN TRANSACTION ? >> >> put "INSERT INTO savemyTable (column1) VALUES (1) & ";" & cr into tSQL >> >> put "DELETE FROM myTable WHERE id = " & id & ";" & cr after tSQL >> >> revExecuteSQL tDatabaseID, tSQL >> >> if the result is not an integer then answer the result >> >> else ?// COMMIT > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Thu Feb 8 11:03:21 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 08 Feb 2018 16:03:21 +0000 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: <24FB4DC2-2F46-4221-88CC-F3CEF477A43F@iotecdigital.com> References: <1518100826150-0.post@n4.nabble.com> <24FB4DC2-2F46-4221-88CC-F3CEF477A43F@iotecdigital.com> Message-ID: See my code here: https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript "updateClipboardHtmlText" will take the HTMLText on the clipboard (which gives the extra lines) and replace the tags so it doesn't do that. I'm not sure if this will do what you want though... I've tried once before and the tabs don't get picked up this way in a spreadsheet. It will get rid of the extra lines, but probably place each line in a single cell. On Thu, Feb 8, 2018 at 9:47 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > You can. You will just get 2 returns instead of the one when you paste it > anywhere but in an app that knows how to handle the contents of that > clipboard. > > Bob S > > > > On Feb 8, 2018, at 06:40 , dunbarx via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" & > tab > > & "yellow" into myList > > set the clipBoardData to myList > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Feb 8 11:07:53 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Thu, 8 Feb 2018 17:07:53 +0100 Subject: Execute multiple MySQL commands In-Reply-To: References: Message-ID: <5BC8605D-F8F4-494D-8864-32D359652FFC@laposte.net> > Le 8 f?vr. 2018 ? 16:34, Bob Sneidar via use-livecode a ?crit : > > I thought I read somewhere that the LC API does not support multiple statements? > > Bob S Ok, thanks ! From ludovic.thebault at laposte.net Thu Feb 8 11:20:14 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Thu, 8 Feb 2018 17:20:14 +0100 Subject: Execute multiple MySQL commands In-Reply-To: <2AFE8A7F-016C-4E62-8191-7599A5D5809E@iotecdigital.com> References: <2AFE8A7F-016C-4E62-8191-7599A5D5809E@iotecdigital.com> Message-ID: <10B19121-759F-4D01-A1AB-089B3362A312@laposte.net> > Le 8 f?vr. 2018 ? 16:48, Bob Sneidar via use-livecode a ?crit : > > I know where! The Dictionary: > > > SQLStatement string > A string in Structured Query Language. (Do not include a semicolon at the end of the SQLStatement.) >Note: Some database systems, such as Oracle, are capable of handling a multiple-line SQL statement. > > Bob S Just for infos, multiple statements works with SQLite but not with Mysql. From bobsneidar at iotecdigital.com Thu Feb 8 11:20:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 16:20:40 +0000 Subject: Execute multiple MySQL commands In-Reply-To: <5BC8605D-F8F4-494D-8864-32D359652FFC@laposte.net> References: <5BC8605D-F8F4-494D-8864-32D359652FFC@laposte.net> Message-ID: NP. From the dictionary statement about *some* database systems supporting multiple SQL statements, I gather that *some* do not, so they have to take the lowest common denominator approach. Bob S > On Feb 8, 2018, at 08:07 , Ludovic THEBAULT via use-livecode wrote: > >> Le 8 f?vr. 2018 ? 16:34, Bob Sneidar via use-livecode a ?crit : >> >> I thought I read somewhere that the LC API does not support multiple statements? >> >> Bob S > > > Ok, thanks ! From dochawk at gmail.com Thu Feb 8 11:30:42 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Feb 2018 08:30:42 -0800 Subject: Execute multiple MySQL commands In-Reply-To: <10B19121-759F-4D01-A1AB-089B3362A312@laposte.net> References: <2AFE8A7F-016C-4E62-8191-7599A5D5809E@iotecdigital.com> <10B19121-759F-4D01-A1AB-089B3362A312@laposte.net> Message-ID: On Thu, Feb 8, 2018 at 8:20 AM, Ludovic THEBAULT via use-livecode < use-livecode at lists.runrev.com> wrote: > > > Just for infos, multiple statements works with SQLite but not with Mysql. They also work with postgreSQL. This was a major factor in my switching. I think mySQL now has rollback, but it didn't have fun rollback at the time, either. Overall, postgres is the more mature/stable of the two, but it doesn't come "canned" on very many ISPs. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Thu Feb 8 14:35:05 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Feb 2018 11:35:05 -0800 Subject: representing this character from a pdf Message-ID: For the form at http://www.uscourts.gov/file/19456/download, I am trying to replicate the fat little arrow to the right of question 1 (and so forth)> When I paste into live code, though, it doesn't work, orator gets converted. Does anyone know how to to keep this character in a livecode field? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Thu Feb 8 14:42:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 19:42:41 +0000 Subject: representing this character from a pdf In-Reply-To: References: Message-ID: <038C29BC-81DE-4744-9543-479067C6214F@iotecdigital.com> It's Wingdings ASCII 63 size 10pt. Bob S > On Feb 8, 2018, at 11:35 , Dr. Hawkins via use-livecode wrote: > > For the form at http://www.uscourts.gov/file/19456/download, I am trying to > replicate the fat little arrow to the right of question 1 (and so forth)> > > When I paste into live code, though, it doesn't work, orator gets converted. > > Does anyone know how to to keep this character in a livecode field? > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Feb 8 14:49:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 19:49:33 +0000 Subject: representing this character from a pdf In-Reply-To: <038C29BC-81DE-4744-9543-479067C6214F@iotecdigital.com> References: <038C29BC-81DE-4744-9543-479067C6214F@iotecdigital.com> Message-ID: <4975E381-98DF-451F-B02D-EC9719A4B9C9@iotecdigital.com> This is quite odd. On my Mac, when I type a question mark with the WingDings font in Word I do NOT get a forward error I get something completely unrelated. If I copy it, then in the LC message box I enter put charToNum(the clipboarddata["text"]) I get 63, which is the character for question mark!!! What the... Bob S From bernd.niggemann at uni-wh.de Thu Feb 8 15:04:36 2018 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 8 Feb 2018 13:04:36 -0700 (MST) Subject: representing this character from a pdf In-Reply-To: References: Message-ID: <1518120276679-0.post@n4.nabble.com> would this do? put numToCodepoint(0x270D) from http://www.alanwood.net/demos/wingdings.html Kind regards Bernd -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Thu Feb 8 15:01:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 20:01:33 +0000 Subject: representing this character from a pdf In-Reply-To: <4975E381-98DF-451F-B02D-EC9719A4B9C9@iotecdigital.com> References: <038C29BC-81DE-4744-9543-479067C6214F@iotecdigital.com> <4975E381-98DF-451F-B02D-EC9719A4B9C9@iotecdigital.com> Message-ID: I have checked this every which way. I converted the PDF to Word. Word says it's the wingdings font. LC tells me it is ascii 63. Either LC is lying, or else this character is getting converted somhow. Bob S > On Feb 8, 2018, at 11:49 , Bob Sneidar via use-livecode wrote: > > This is quite odd. On my Mac, when I type a question mark with the WingDings font in Word I do NOT get a forward error I get something completely unrelated. If I copy it, then in the LC message box I enter put charToNum(the clipboarddata["text"]) I get 63, which is the character for question mark!!! What the... > > 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 dochawk at gmail.com Thu Feb 8 16:02:01 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Feb 2018 13:02:01 -0800 Subject: representing this character from a pdf In-Reply-To: References: <038C29BC-81DE-4744-9543-479067C6214F@iotecdigital.com> <4975E381-98DF-451F-B02D-EC9719A4B9C9@iotecdigital.com> Message-ID: These government pdfs are nasty in general, and made with something sloppy. When I try pasting it into LibreOffice, I get nothing at al! -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Thu Feb 8 16:06:32 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 21:06:32 +0000 Subject: representing this character from a pdf In-Reply-To: References: <038C29BC-81DE-4744-9543-479067C6214F@iotecdigital.com> <4975E381-98DF-451F-B02D-EC9719A4B9C9@iotecdigital.com> Message-ID: <38A46D94-9B78-4367-B198-DD37D54C9308@iotecdigital.com> put the clipboardData ["htmltext"] & cr & cr & the clipboardData["rtftext"] produces:

{\rtf1\mac {\fonttbl{\f0\fnil \fcharset77 Wingdings;}{\f1\fnil \fcharset77 (Message);}} {\colortbl;\red0\green0\blue0;} \pard \f0 \fs20 \cf1 \u61672?\f1 \fs22 \'00 } > On Feb 8, 2018, at 12:01 , Bob Sneidar wrote: > > I have checked this every which way. I converted the PDF to Word. Word says it's the wingdings font. LC tells me it is ascii 63. Either LC is lying, or else this character is getting converted somhow. > > Bob S > > >> On Feb 8, 2018, at 11:49 , Bob Sneidar via use-livecode wrote: >> >> This is quite odd. On my Mac, when I type a question mark with the WingDings font in Word I do NOT get a forward error I get something completely unrelated. If I copy it, then in the LC message box I enter put charToNum(the clipboarddata["text"]) I get 63, which is the character for question mark!!! What the... >> >> 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 Thu Feb 8 16:08:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 21:08:26 +0000 Subject: representing this character from a pdf In-Reply-To: <1518120276679-0.post@n4.nabble.com> References: <1518120276679-0.post@n4.nabble.com> Message-ID: That is the actual ASCII 63 wingdings character. He wants the right arrow, something not even IN the wingdings character set (at least on Mac). Bob S > On Feb 8, 2018, at 12:04 , BNig via use-livecode wrote: > > would this do? > > put numToCodepoint(0x270D) > > from > http://www.alanwood.net/demos/wingdings.html > > Kind regards > Bernd > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bernd.niggemann at uni-wh.de Thu Feb 8 16:47:16 2018 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 8 Feb 2018 14:47:16 -0700 (MST) Subject: representing this character from a pdf In-Reply-To: References: <1518120276679-0.post@n4.nabble.com> Message-ID: <1518126436390-0.post@n4.nabble.com> maybe he likes put numToCodepoint(0x2794) HEAVY WIDE-HEADED RIGHTWARDS ARROW' (U+2794) Kind regards Bernd -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From hh at hyperhh.de Thu Feb 8 17:21:42 2018 From: hh at hyperhh.de (hh) Date: Thu, 8 Feb 2018 23:21:42 +0100 Subject: representing this character from a pdf Message-ID: <6F6E0FC5-4677-45BA-B85B-1FD697238CC7@hyperhh.de> > Bob S. wrote: > {\rtf1\mac {\fonttbl{\f0\fnil \fcharset77 Wingdings;}{\f1\fnil \fcharset77 (Message);}} > {\colortbl;\red0\green0\blue0;} > \pard \f0 \fs20 \cf1 \u61672?\f1 \fs22 \'00} So, on Mac it is numToCodepoint(61672) in font "Wingdings" From bobsneidar at iotecdigital.com Thu Feb 8 17:27:00 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 22:27:00 +0000 Subject: representing this character from a pdf In-Reply-To: <1518126436390-0.post@n4.nabble.com> References: <1518120276679-0.post@n4.nabble.com> <1518126436390-0.post@n4.nabble.com> Message-ID: <84F17B2B-60B4-44CA-A26F-B0421BE348F5@iotecdigital.com> Better. Not the exact one tho. The dingbat one is thicker. Honestly if all he needs is an icon, I always just zoom in 2x or 4x, get a screen shot of the character, and paste it into my favorite png editor. Bingo. Hi res graphic. Bob S > On Feb 8, 2018, at 13:47 , BNig via use-livecode wrote: > > maybe he likes > > put numToCodepoint(0x2794) > > HEAVY WIDE-HEADED RIGHTWARDS ARROW' (U+2794) > > Kind regards > Bernd From bobsneidar at iotecdigital.com Thu Feb 8 17:29:42 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 22:29:42 +0000 Subject: representing this character from a pdf In-Reply-To: <6F6E0FC5-4677-45BA-B85B-1FD697238CC7@hyperhh.de> References: <6F6E0FC5-4677-45BA-B85B-1FD697238CC7@hyperhh.de> Message-ID: <31F1B53D-7F99-4613-937B-E4FB44805378@iotecdigital.com> I get a square box with a question mark. If I paste the result of this in Word, I get what looks like a right curvong cat claw. :-) Bob S > On Feb 8, 2018, at 14:21 , hh via use-livecode wrote: > >> Bob S. wrote: >> {\rtf1\mac {\fonttbl{\f0\fnil \fcharset77 Wingdings;}{\f1\fnil \fcharset77 (Message);}} >> {\colortbl;\red0\green0\blue0;} >> \pard \f0 \fs20 \cf1 \u61672?\f1 \fs22 \'00} > > So, on Mac it is numToCodepoint(61672) in font "Wingdings" > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 8 17:34:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Feb 2018 22:34:49 +0000 Subject: representing this character from a pdf In-Reply-To: <31F1B53D-7F99-4613-937B-E4FB44805378@iotecdigital.com> References: <6F6E0FC5-4677-45BA-B85B-1FD697238CC7@hyperhh.de> <31F1B53D-7F99-4613-937B-E4FB44805378@iotecdigital.com> Message-ID: <612D3C25-E312-4A1E-8022-AF8E029BACCB@iotecdigital.com> Don't ask me what a curvong cat looks like. I meant CurvING. ;-) Bob S > On Feb 8, 2018, at 14:29 , Bob Sneidar via use-livecode wrote: > > I get a square box with a question mark. If I paste the result of this in Word, I get what looks like a right curvong cat claw. :-) > > Bob S From hh at hyperhh.de Thu Feb 8 17:47:12 2018 From: hh at hyperhh.de (hh) Date: Thu, 8 Feb 2018 23:47:12 +0100 Subject: representing this character from a pdf Message-ID: <36DDDB17-0726-404E-8563-026C7AC1674D@hyperhh.de> > Bob S. wrote > Better. Not the exact one tho. The dingbat one is thicker. I didn't name a fontsize. The one you get in the rtftext (in your case fs20/2=10) is dependent on the scale of the pdf when you copied the char. So the size should be related to the surronding textsize both in the pdf and the textfield. From niconiko at gmail.com Thu Feb 8 18:11:43 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Fri, 9 Feb 2018 08:11:43 +0900 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: <1518100826150-0.post@n4.nabble.com> References: <1518100826150-0.post@n4.nabble.com> Message-ID: Craig wrote: > I should be able to paste directly into any spreadsheet. One would think it should, but long experience copy-pasting from/to LC confirms "directly" just doesn't work. An intermediary step, such as a text editor app, is always needed. Brian wrote: > If you are talking about getting an actual table, Yes, that's what I'm after. Not merely a bit of tab- and cr-delimited text, as Craig exampled, that I can copy-paste into a spreadsheet. But a bit of text that includes not only the tab/cr-delimited text but also, for example, indicators to show cell-borders and to centre text within a cell vertically/horizontally. I imagine this is somehow possible. Because, as I can do in my 3-step method, when I copy-paste from a spreasheet doc to a word doc, not only does the pasted text appear as an actual table but much of the cell formatting is retained too. However, if I copy-paste that same spreadsheet data into a text app like Notepad++, then all that appears as far as formatting is of course the tabs and crs. And Brian, as always, thank you for the code. I had a look, but I don't think it achieves my final goal, i.e., getting an actual table. It's code for cleaning up the formatting, right? I guess I should just give up... Thanks anyway. -- Nicolas Cueto On 8 February 2018 at 23:40, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > Not sure I understand. If I make a list: > > put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" & tab > & "yellow" into myList > set the clipBoardData to myList > > I should be able to paste directly into any spreadsheet. > > There is a thread that describes an issue pasting into google docs, > depending on the version of LC, but I do not think this ever affected > Excel. > > Craig Newman > > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Thu Feb 8 18:26:19 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 08 Feb 2018 23:26:19 +0000 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: References: <1518100826150-0.post@n4.nabble.com> Message-ID: Correct that my code just enables a paste into a non-plain text app without extra lines (but colors and other formatting is retained). Once the plain text bug fix code is released, an intermediate step will not be needed to clean formatting as long as plain text is what was placed on the clipboard. Your issue should not be that difficult though. It will take a function to do the work (with a couple loops). On Thu, Feb 8, 2018 at 5:12 PM Nicolas Cueto via use-livecode < use-livecode at lists.runrev.com> wrote: > Craig wrote: > > > I should be able to paste directly into any spreadsheet. > > One would think it should, but long experience copy-pasting from/to LC > confirms "directly" just doesn't work. An intermediary step, such as a text > editor app, is always needed. > > Brian wrote: > > > If you are talking about getting an actual table, > > Yes, that's what I'm after. Not merely a bit of tab- and cr-delimited text, > as Craig exampled, that I can copy-paste into a spreadsheet. But a bit of > text that includes not only the tab/cr-delimited text but also, for > example, indicators to show cell-borders and to centre text within a cell > vertically/horizontally. > > I imagine this is somehow possible. Because, as I can do in my 3-step > method, when I copy-paste from a spreasheet doc to a word doc, not only > does the pasted text appear as an actual table but much of the cell > formatting is retained too. However, if I copy-paste that same spreadsheet > data into a text app like Notepad++, then all that appears as far as > formatting is of course the tabs and crs. > > And Brian, as always, thank you for the code. I had a look, but I don't > think it achieves my final goal, i.e., getting an actual table. It's code > for cleaning up the formatting, right? > > I guess I should just give up... > > Thanks anyway. > > -- > Nicolas Cueto > > > > > > > On 8 February 2018 at 23:40, dunbarx via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi. > > > > Not sure I understand. If I make a list: > > > > put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" & > tab > > & "yellow" into myList > > set the clipBoardData to myList > > > > I should be able to paste directly into any spreadsheet. > > > > There is a thread that describes an issue pasting into google docs, > > depending on the version of LC, but I do not think this ever affected > > Excel. > > > > Craig Newman > > > > > > > > > > -- > > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > > Revolution-User-f278306.html > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Thu Feb 8 18:44:32 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Feb 2018 15:44:32 -0800 Subject: representing this character from a pdf In-Reply-To: References: <1518120276679-0.post@n4.nabble.com> Message-ID: On Thu, Feb 8, 2018 at 1:08 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > > That is the actual ASCII 63 wingdings character. He wants the right arrow, something not even IN the wingdings character set (at least on Mac). > I went into LibreOffice (where it won't paste this character from the pdf) and used the insert special character to find the one that looked right. I pasted this in one, and it does seem to be windings, size 12. I then found an error in my maintenance routines: it checked for the text font of the last char being "Windings", rather than "Wingdings" in a case-sensitive section. So then I set a script to loop through every field n the stack, and when it found offset("?",the text of tgTg) >0, it sets the textFont to windings and the textSize to 12. I'm not sure I have the same character, but it sure looks right. And something funny is definitely going on . . . Thanks so much; thus aspect of my forms *finally* looks right after a couple of years . .. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From paul at livecode.org Thu Feb 8 20:42:52 2018 From: paul at livecode.org (Paul Hibbert) Date: Thu, 8 Feb 2018 17:42:52 -0800 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: References: <1518100826150-0.post@n4.nabble.com> Message-ID: Nicolas, please don?t give up just yet, I don?t think this is too difficult. I?ve posted a sample in the user forum [ http://forums.livecode.com/viewtopic.php?f=7&t=30584 ] that I think may work for what you describe. The example I tried uses HTML to paste into a word type document and it works fine here, but I?m on a Mac so you will need to test carefully. Please don?t be offended that I posted it in the beginners section, that was just because I felt it may be useful to others, and exposing new LC users to this type of action may help someone else too. Paul > On 8 Feb 2018, at 15:11, Nicolas Cueto via use-livecode wrote: > > > I guess I should just give up... > > Thanks anyway. > > -- > Nicolas Cueto From niconiko at gmail.com Thu Feb 8 21:18:01 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Fri, 9 Feb 2018 11:18:01 +0900 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: References: <1518100826150-0.post@n4.nabble.com> Message-ID: Paul, thank you! And no offense taken. I work so intermittenly with LC that whenever I take up a new project I feel like a beginner, having to recall things I once knew. I'm very grateful to have this list as a resource. -- Nicolas Cueto On 9 February 2018 at 10:42, Paul Hibbert via use-livecode < use-livecode at lists.runrev.com> wrote: > Nicolas, please don?t give up just yet, I don?t think this is too > difficult. I?ve posted a sample in the user forum [ > http://forums.livecode.com/viewtopic.php?f=7&t=30584 < > http://forums.livecode.com/viewtopic.php?f=7&t=30584> ] that I think may > work for what you describe. > > The example I tried uses HTML to paste into a word type document and it > works fine here, but I?m on a Mac so you will need to test carefully. > > Please don?t be offended that I posted it in the beginners section, that > was just because I felt it may be useful to others, and exposing new LC > users to this type of action may help someone else too. > > Paul > > > On 8 Feb 2018, at 15:11, Nicolas Cueto via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > > I guess I should just give up... > > > > Thanks anyway. > > > > -- > > Nicolas Cueto > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 9 08:55:44 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 9 Feb 2018 08:55:44 -0500 Subject: [ANN] Release 8.1.9 In-Reply-To: References: Message-ID: I like it when 24 hours go by and there are no replies. On Thu, Feb 8, 2018 at 9:50 AM, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Dear List Members, > > We are pleased to announce the release of LiveCode 8.1.9 Stable. By > "Stable", we mean that no reported regressions have been introduced in > 8.1.9, compared to the previous Stable release. > > LiveCode 8.1.9 contains more than 25 extra bug fixes and new features, > compared to LiveCode 8.1.8. > > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > Please report any bugs encountered on our BugZilla at > http://quality.livecode.com/ > > Warmest regards, > 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 > -- 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 merakosp at gmail.com Fri Feb 9 08:58:22 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 9 Feb 2018 13:58:22 +0000 Subject: [ANN] Release 8.1.9 In-Reply-To: References: Message-ID: Me too :) On Feb 9, 2018 13:56, "Mike Kerner via use-livecode" < use-livecode at lists.runrev.com> wrote: I like it when 24 hours go by and there are no replies. On Thu, Feb 8, 2018 at 9:50 AM, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Dear List Members, > > We are pleased to announce the release of LiveCode 8.1.9 Stable. By > "Stable", we mean that no reported regressions have been introduced in > 8.1.9, compared to the previous Stable release. > > LiveCode 8.1.9 contains more than 25 extra bug fixes and new features, > compared to LiveCode 8.1.8. > > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > Please report any bugs encountered on our BugZilla at > http://quality.livecode.com/ > > Warmest regards, > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri Feb 9 09:10:57 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Feb 2018 15:10:57 +0100 Subject: [ANN] Release 8.1.9 In-Reply-To: References: Message-ID: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Hi all, > Am 09.02.2018 um 14:55 schrieb Mike Kerner via use-livecode : > > I like it when 24 hours go by and there are no replies. :-) There is a report in the german Livecode forum, maybe someone can give a hint. User has been updating via the LC updater and now gets this every time he starts LC. He already has downloaded that version and un-/installed LC again a couple of times, no luck: ################################################################ Error while loading stack: C:\Program...\libraries\revidelibrary.8.livecodescript ################################################################ Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From MikeKerner at roadrunner.com Fri Feb 9 09:28:30 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 9 Feb 2018 09:28:30 -0500 Subject: Launcher builder Message-ID: Does anyone know of a stack launcher builder? I'd like to be able to point to a stack and have the builder generate a thumbnail of either the entire first card or a portion of the first card, assign a label, and launch the stack when prompted. I started to code it, but maybe we have a Plugin somewhere. -- 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 merakosp at gmail.com Fri Feb 9 10:12:59 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 9 Feb 2018 15:12:59 +0000 Subject: [ANN] Release 8.1.9 In-Reply-To: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: Hi Klaus, Wild guess: Does the dictionary for this user come up as empty? If yes, unfortunately the user is affected by bug http://quality.livecode.com/show_bug.cgi?id=17374 which is probably a duplicate of bug http://quality.livecode.com/show_bug.cgi?id=20958 I say unfortunately because we have not been able to reproduce it, and looking at the scripts we cannot find out what could have gone wrong. Best, Panos -- PS: However this bug is not 8.1.9-specific On Fri, Feb 9, 2018 at 2:10 PM, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > > Am 09.02.2018 um 14:55 schrieb Mike Kerner via use-livecode < > use-livecode at lists.runrev.com>: > > > > I like it when 24 hours go by and there are no replies. > > :-) > > There is a report in the german Livecode forum, maybe someone can give a > hint. > > User has been updating via the LC updater and now gets this every time he > starts LC. > He already has downloaded that version and un-/installed LC again a couple > of times, > no luck: > > ################################################################ > Error while loading stack: C:\Program...\libraries\ > revidelibrary.8.livecodescript > ################################################################ > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Fri Feb 9 10:16:58 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Feb 2018 16:16:58 +0100 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: Hi Panos, > Am 09.02.2018 um 16:12 schrieb panagiotis merakos via use-livecode : > > Hi Klaus, > > Wild guess: Does the dictionary for this user come up as empty? no idea, but I suspect that his version of LC does not load at all, you wild one! :-) In the meantime he wrote he is using 8.1.8 again, since he also experienced this with LC 8.1.9 RC2 > If yes, unfortunately the user is affected by bug > http://quality.livecode.com/show_bug.cgi?id=17374 > > which is probably a duplicate of bug > http://quality.livecode.com/show_bug.cgi?id=20958 > > I say unfortunately because we have not been able to reproduce it, and > looking at the scripts we cannot find out what could have gone wrong. > > Best, > Panos > -- > > PS: However this bug is not 8.1.9-specific > > On Fri, Feb 9, 2018 at 2:10 PM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >>> Am 09.02.2018 um 14:55 schrieb Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> I like it when 24 hours go by and there are no replies. >> >> :-) >> >> There is a report in the german Livecode forum, maybe someone can give a >> hint. >> >> User has been updating via the LC updater and now gets this every time he >> starts LC. >> He already has downloaded that version and un-/installed LC again a couple >> of times, >> no luck: >> >> ################################################################ >> Error while loading stack: C:\Program...\libraries\ >> revidelibrary.8.livecodescript >> ################################################################ Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From merakosp at gmail.com Fri Feb 9 10:20:04 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 9 Feb 2018 15:20:04 +0000 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: Hmm that's interesting, so 8.1.8 works for him, but 8.1.9 does not? Could you post the link to this thread here? Best, Panos -- On Fri, Feb 9, 2018 at 3:16 PM, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 09.02.2018 um 16:12 schrieb panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi Klaus, > > > > Wild guess: Does the dictionary for this user come up as empty? > > no idea, but I suspect that his version of LC does not load at all, you > wild one! :-) > In the meantime he wrote he is using 8.1.8 again, since he also > experienced this with LC 8.1.9 RC2 > > > If yes, unfortunately the user is affected by bug > > http://quality.livecode.com/show_bug.cgi?id=17374 > > > > which is probably a duplicate of bug > > http://quality.livecode.com/show_bug.cgi?id=20958 > > > > I say unfortunately because we have not been able to reproduce it, and > > looking at the scripts we cannot find out what could have gone wrong. > > > > Best, > > Panos > > -- > > > > PS: However this bug is not 8.1.9-specific > > > > On Fri, Feb 9, 2018 at 2:10 PM, Klaus major-k via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi all, > >> > >>> Am 09.02.2018 um 14:55 schrieb Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com>: > >>> > >>> I like it when 24 hours go by and there are no replies. > >> > >> :-) > >> > >> There is a report in the german Livecode forum, maybe someone can give a > >> hint. > >> > >> User has been updating via the LC updater and now gets this every time > he > >> starts LC. > >> He already has downloaded that version and un-/installed LC again a > couple > >> of times, > >> no luck: > >> > >> ################################################################ > >> Error while loading stack: C:\Program...\libraries\ > >> revidelibrary.8.livecodescript > >> ################################################################ > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Fri Feb 9 10:23:54 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Feb 2018 16:23:54 +0100 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: Hi Panos, > Am 09.02.2018 um 16:20 schrieb panagiotis merakos via use-livecode : > > Hmm that's interesting, so 8.1.8 works for him, but 8.1.9 does not? yep. > Could you post the link to this thread here? Sure, you may need to become a forum member before you can read the posting. But I already told you everything he said there... > Best, > Panos Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From merakosp at gmail.com Fri Feb 9 10:31:00 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 9 Feb 2018 15:31:00 +0000 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: Cool, thanks Klaus. Panos -- On Fri, Feb 9, 2018 at 3:23 PM, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 09.02.2018 um 16:20 schrieb panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hmm that's interesting, so 8.1.8 works for him, but 8.1.9 does not? > > yep. > > > Could you post the link to this thread here? > > Sure, you may need to become a forum member before you can read the > posting. > > > But I already told you everything he said there... > > > Best, > > Panos > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Fri Feb 9 10:42:44 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Feb 2018 16:42:44 +0100 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: Hi Panos, > Am 09.02.2018 um 16:31 schrieb panagiotis merakos via use-livecode : > > Cool, thanks Klaus. drop a line if you need a german interpreter. > Panos Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bobsneidar at iotecdigital.com Fri Feb 9 10:47:28 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Feb 2018 15:47:28 +0000 Subject: [ANN] Release 8.1.9 In-Reply-To: References: Message-ID: It's quiet... TOO quiet....... Bob S > On Feb 9, 2018, at 05:58 , panagiotis merakos via use-livecode wrote: > > Me too :) > > On Feb 9, 2018 13:56, "Mike Kerner via use-livecode" < > use-livecode at lists.runrev.com> wrote: > > I like it when 24 hours go by and there are no replies. > > On Thu, Feb 8, 2018 at 9:50 AM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Dear List Members, >> >> We are pleased to announce the release of LiveCode 8.1.9 Stable. By >> "Stable", we mean that no reported regressions have been introduced in >> 8.1.9, compared to the previous Stable release. >> >> LiveCode 8.1.9 contains more than 25 extra bug fixes and new features, >> compared to LiveCode 8.1.8. >> >> You can get the release at https://downloads.livecode.com/livecode/ or via >> the automatic updater. >> >> Please report any bugs encountered on our BugZilla at >> http://quality.livecode.com/ >> >> Warmest regards, >> 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 >> > > > > -- > 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 ahsoftware at sonic.net Fri Feb 9 11:52:48 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 9 Feb 2018 08:52:48 -0800 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: On 02/09/2018 07:42 AM, Klaus major-k via use-livecode wrote: > drop a line if you need a german interpreter. https://www.youtube.com/watch?v=gmOTpIVxji8 -- Mark Wieder ahsoftware at gmail.com From klaus at major-k.de Fri Feb 9 11:55:10 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Feb 2018 17:55:10 +0100 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: Hi Mark, > Am 09.02.2018 um 17:52 schrieb Mark Wieder via use-livecode : > > On 02/09/2018 07:42 AM, Klaus major-k via use-livecode wrote: >> drop a line if you need a german interpreter. > https://www.youtube.com/watch?v=gmOTpIVxji8 LOL! :-D Yeah, a classic! > -- > Mark Wieder > ahsoftware at gmail.com Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ahsoftware at sonic.net Fri Feb 9 11:57:49 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 9 Feb 2018 08:57:49 -0800 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> Message-ID: <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> On 02/09/2018 07:23 AM, Klaus major-k via use-livecode wrote: >> Could you post the link to this thread here? > > Sure, you may need to become a forum member before you can read the posting. > > > But I already told you everything he said there... My usual remedy in cases like this is to delete the preferences file and start things up again. -- Mark Wieder ahsoftware at gmail.com From klaus at major-k.de Fri Feb 9 11:59:53 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Feb 2018 17:59:53 +0100 Subject: [ANN] Release 8.1.9 In-Reply-To: <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> Message-ID: <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> Hi Mark, > Am 09.02.2018 um 17:57 schrieb Mark Wieder via use-livecode : > > On 02/09/2018 07:23 AM, Klaus major-k via use-livecode wrote: > >>> Could you post the link to this thread here? >> Sure, you may need to become a forum member before you can read the posting. >> >> But I already told you everything he said there... > My usual remedy in cases like this is to delete the preferences file and start things up again. good idea, where will he find it on Windows? > -- > Mark Wieder > ahsoftware at gmail.com Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From rdimola at evergreeninfo.net Fri Feb 9 12:07:15 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Feb 2018 12:07:15 -0500 Subject: [ANN] Release 8.1.9 In-Reply-To: <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> Message-ID: <005401d3a1c8$71f921c0$55eb6540$@net> :\Users\\AppData\Roaming\RunRev\Preferences 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 Klaus major-k via use-livecode Sent: Friday, February 09, 2018 12:00 PM To: How to use LiveCode Cc: Klaus major-k Subject: Re: [ANN] Release 8.1.9 Hi Mark, > Am 09.02.2018 um 17:57 schrieb Mark Wieder via use-livecode : > > On 02/09/2018 07:23 AM, Klaus major-k via use-livecode wrote: > >>> Could you post the link to this thread here? >> Sure, you may need to become a forum member before you can read the posting. >> > > But I already told you everything he said there... > My usual remedy in cases like this is to delete the preferences file and start things up again. good idea, where will he find it on Windows? > -- > Mark Wieder > ahsoftware at gmail.com Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Feb 9 12:31:17 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Feb 2018 17:31:17 +0000 Subject: [ANN] Release 8.1.9 In-Reply-To: <005401d3a1c8$71f921c0$55eb6540$@net> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> Message-ID: I thot RunRev was dead? Long live Livecode! Bob S > On Feb 9, 2018, at 09:07 , Ralph DiMola via use-livecode wrote: > > :\Users\\AppData\Roaming\RunRev\Preferences > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From klaus at major-k.de Fri Feb 9 12:36:12 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Feb 2018 18:36:12 +0100 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> Message-ID: <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> Hola muchacho, > Am 09.02.2018 um 18:31 schrieb Bob Sneidar via use-livecode : > > I thot RunRev was dead? that must have been real FAKENEWS, Bob! :-) > Long live Livecode! Hip, hip... > Bob S Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From rdimola at evergreeninfo.net Fri Feb 9 16:00:55 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Feb 2018 16:00:55 -0500 Subject: iOS app Error ITMS-90529 submitting to app store via Application Loader In-Reply-To: <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> Message-ID: <008801d3a1e9$1791a830$46b4f890$@net> Here's a new one I never received before. Using 8.1.9 rc2. I made the app using the distribution profile and zipped it up as usual. Xcode 9.2 Application Loader 3.7 OS X 10.12.6 The upload to the app store starts and the I get this error during "Verifying assets with the App Store." ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 or later must be packaged as proper IPA files." Has the zipping procedure changes with 8.1.9 rc2? I did not get this with 8.1.9 rc1. Thanks in advance... Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From brian at milby7.com Fri Feb 9 16:15:47 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 09 Feb 2018 21:15:47 +0000 Subject: iOS app Error ITMS-90529 submitting to app store via Application Loader In-Reply-To: <008801d3a1e9$1791a830$46b4f890$@net> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> <008801d3a1e9$1791a830$46b4f890$@net> Message-ID: Try with 8.1.9 - I think that is a bug that was fixed. On Fri, Feb 9, 2018 at 3:00 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Here's a new one I never received before. Using 8.1.9 rc2. I made the app > using the distribution profile and zipped it up as usual. > Xcode 9.2 > Application Loader 3.7 > OS X 10.12.6 > > The upload to the app store starts and the I get this error during > "Verifying assets with the App Store." > > ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 or > later > must be packaged as proper IPA files." > > Has the zipping procedure changes with 8.1.9 rc2? I did not get this with > 8.1.9 rc1. > > Thanks in advance... > > 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 merakosp at gmail.com Fri Feb 9 16:40:43 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 9 Feb 2018 21:40:43 +0000 Subject: iOS app Error ITMS-90529 submitting to app store via Application Loader In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> <008801d3a1e9$1791a830$46b4f890$@net> Message-ID: Hi Ralph, Have you included an AppStore icon (1024x1024) png in the iOS standalone settings? Panos - On Feb 9, 2018 21:16, "Brian Milby via use-livecode" < use-livecode at lists.runrev.com> wrote: > Try with 8.1.9 - I think that is a bug that was fixed. > On Fri, Feb 9, 2018 at 3:00 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Here's a new one I never received before. Using 8.1.9 rc2. I made the app > > using the distribution profile and zipped it up as usual. > > Xcode 9.2 > > Application Loader 3.7 > > OS X 10.12.6 > > > > The upload to the app store starts and the I get this error during > > "Verifying assets with the App Store." > > > > ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 or > > later > > must be packaged as proper IPA files." > > > > Has the zipping procedure changes with 8.1.9 rc2? I did not get this with > > 8.1.9 rc1. > > > > Thanks in advance... > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Fri Feb 9 16:49:43 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Feb 2018 16:49:43 -0500 Subject: iOS app Error ITMS-90529 submitting to app store via Application Loader In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> <008801d3a1e9$1791a830$46b4f890$@net> Message-ID: <008f01d3a1ef$e81348f0$b839dad0$@net> Panos. Yes I did. I just tried with 8.1.9gm just to make sure... Same error. I tried sending an .ipa with a .zip extension but same error. I included all icons and splash screens. I received no "dimension" errors when adding or LC build errors or warnings Thanks Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of panagiotis merakos via use-livecode Sent: Friday, February 09, 2018 4:41 PM To: How to use LiveCode Cc: panagiotis merakos Subject: Re: iOS app Error ITMS-90529 submitting to app store via Application Loader Hi Ralph, Have you included an AppStore icon (1024x1024) png in the iOS standalone settings? Panos - On Feb 9, 2018 21:16, "Brian Milby via use-livecode" < use-livecode at lists.runrev.com> wrote: > Try with 8.1.9 - I think that is a bug that was fixed. > On Fri, Feb 9, 2018 at 3:00 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Here's a new one I never received before. Using 8.1.9 rc2. I made > > the app using the distribution profile and zipped it up as usual. > > Xcode 9.2 > > Application Loader 3.7 > > OS X 10.12.6 > > > > The upload to the app store starts and the I get this error during > > "Verifying assets with the App Store." > > > > ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 > > or later must be packaged as proper IPA files." > > > > Has the zipping procedure changes with 8.1.9 rc2? I did not get this > > with > > 8.1.9 rc1. > > > > Thanks in advance... > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Fri Feb 9 16:51:11 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Feb 2018 16:51:11 -0500 Subject: iOS app Error ITMS-90529 submitting to app store via Application Loader In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> <008801d3a1e9$1791a830$46b4f890$@net> Message-ID: <009001d3a1f0$1c2c88e0$54859aa0$@net> Brain, Thanks but still no-go. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 From: Brian Milby [mailto:brian at milby7.com] Sent: Friday, February 09, 2018 4:16 PM To: How to use LiveCode Cc: Ralph DiMola Subject: Re: iOS app Error ITMS-90529 submitting to app store via Application Loader Try with 8.1.9 - I think that is a bug that was fixed. On Fri, Feb 9, 2018 at 3:00 PM Ralph DiMola via use-livecode wrote: Here's a new one I never received before. Using 8.1.9 rc2. I made the app using the distribution profile and zipped it up as usual. Xcode 9.2 Application Loader 3.7 OS X 10.12.6 The upload to the app store starts and the I get this error during "Verifying assets with the App Store." ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 or later must be packaged as proper IPA files." Has the zipping procedure changes with 8.1.9 rc2? I did not get this with 8.1.9 rc1. Thanks in advance... 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 rdimola at evergreeninfo.net Fri Feb 9 16:55:46 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Feb 2018 16:55:46 -0500 Subject: iOS app Error ITMS-90529 submitting to app store via Application Loader In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> <008801d3a1e9$1791a830$46b4f890$@net> Message-ID: <009501d3a1f0$c02b9120$4082b360$@net> Panos, Hold the presses. I reorganized the folder with the icons and must have deleted the iStore icon file. I did not get an error when building. I am going to try again. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of panagiotis merakos via use-livecode Sent: Friday, February 09, 2018 4:41 PM To: How to use LiveCode Cc: panagiotis merakos Subject: Re: iOS app Error ITMS-90529 submitting to app store via Application Loader Hi Ralph, Have you included an AppStore icon (1024x1024) png in the iOS standalone settings? Panos - On Feb 9, 2018 21:16, "Brian Milby via use-livecode" < use-livecode at lists.runrev.com> wrote: > Try with 8.1.9 - I think that is a bug that was fixed. > On Fri, Feb 9, 2018 at 3:00 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Here's a new one I never received before. Using 8.1.9 rc2. I made > > the app using the distribution profile and zipped it up as usual. > > Xcode 9.2 > > Application Loader 3.7 > > OS X 10.12.6 > > > > The upload to the app store starts and the I get this error during > > "Verifying assets with the App Store." > > > > ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 > > or later must be packaged as proper IPA files." > > > > Has the zipping procedure changes with 8.1.9 rc2? I did not get this > > with > > 8.1.9 rc1. > > > > Thanks in advance... > > > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at 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 Feb 9 16:55:10 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 9 Feb 2018 21:55:10 +0000 Subject: iOS app Error ITMS-90529 submitting to app store via Application Loader In-Reply-To: <009001d3a1f0$1c2c88e0$54859aa0$@net> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> <008801d3a1e9$1791a830$46b4f890$@net> <009001d3a1f0$1c2c88e0$54859aa0$@net> Message-ID: Hi Ralph, The file you should upload should be called "application.ipa", not "application.ipa.zip" Try this: 1. In LC, create an iOS standalone as usual 2. Suppose the standalone is saved in a folder called myApp, located in user's Desktop folder so you should see something like: Desktop/myApp/myApp.app 3. Open a terminal and navigate to Desktop folder: "cd ~/Desktop" 4. From the terminal, rename the "myApp" folder to "Payload" "mv myApp Payload" 5. From the terminal, zip the "Payload" folder and rename it to "application.ipa": "zip -r application.ipa Payload" 6. Now use Application Loader to upload the "application.ipa" file. These are the steps I followed when testing uploading to AppStore with LC 8.1.9 RC-2 and 8.1.9, and it worked. Keep us posted. Panos -- On Fri, Feb 9, 2018 at 9:51 PM, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Brain, > > > > Thanks but still no-go. > > > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > Phone: 518-636-3998 Ex:11 > > Cell: 518-796-9332 > > > > From: Brian Milby [mailto:brian at milby7.com] > Sent: Friday, February 09, 2018 4:16 PM > To: How to use LiveCode > Cc: Ralph DiMola > Subject: Re: iOS app Error ITMS-90529 submitting to app store via > Application Loader > > > > Try with 8.1.9 - I think that is a bug that was fixed. > > On Fri, Feb 9, 2018 at 3:00 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > Here's a new one I never received before. Using 8.1.9 rc2. I made the app > using the distribution profile and zipped it up as usual. > Xcode 9.2 > Application Loader 3.7 > OS X 10.12.6 > > The upload to the app store starts and the I get this error during > "Verifying assets with the App Store." > > ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 or > later > must be packaged as proper IPA files." > > Has the zipping procedure changes with 8.1.9 rc2? I did not get this with > 8.1.9 rc1. > > Thanks in advance... > > 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Fri Feb 9 17:29:10 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Feb 2018 17:29:10 -0500 Subject: iOS app Error ITMS-90529 submitting to app store via Application Loader In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <10563FDC-E0A0-4B02-95E6-0A8B532FB7DA@major-k.de> <008801d3a1e9$1791a830$46b4f890$@net> <009001d3a1f0$1c2c88e0$54859aa0$@net> Message-ID: <009f01d3a1f5$6a6eebb0$3f4cc310$@net> Panos, Thanks! That did it. Uploaded and waiting for review. Have a good weekend. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of panagiotis merakos via use-livecode Sent: Friday, February 09, 2018 4:55 PM To: How to use LiveCode Cc: panagiotis merakos Subject: Re: iOS app Error ITMS-90529 submitting to app store via Application Loader Hi Ralph, The file you should upload should be called "application.ipa", not "application.ipa.zip" Try this: 1. In LC, create an iOS standalone as usual 2. Suppose the standalone is saved in a folder called myApp, located in user's Desktop folder so you should see something like: Desktop/myApp/myApp.app 3. Open a terminal and navigate to Desktop folder: "cd ~/Desktop" 4. From the terminal, rename the "myApp" folder to "Payload" "mv myApp Payload" 5. From the terminal, zip the "Payload" folder and rename it to "application.ipa": "zip -r application.ipa Payload" 6. Now use Application Loader to upload the "application.ipa" file. These are the steps I followed when testing uploading to AppStore with LC 8.1.9 RC-2 and 8.1.9, and it worked. Keep us posted. Panos -- On Fri, Feb 9, 2018 at 9:51 PM, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Brain, > > > > Thanks but still no-go. > > > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > Phone: 518-636-3998 Ex:11 > > Cell: 518-796-9332 > > > > From: Brian Milby [mailto:brian at milby7.com] > Sent: Friday, February 09, 2018 4:16 PM > To: How to use LiveCode > Cc: Ralph DiMola > Subject: Re: iOS app Error ITMS-90529 submitting to app store via > Application Loader > > > > Try with 8.1.9 - I think that is a bug that was fixed. > > On Fri, Feb 9, 2018 at 3:00 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > Here's a new one I never received before. Using 8.1.9 rc2. I made the > app using the distribution profile and zipped it up as usual. > Xcode 9.2 > Application Loader 3.7 > OS X 10.12.6 > > The upload to the app store starts and the I get this error during > "Verifying assets with the App Store." > > ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 or > later must be packaged as proper IPA files." > > Has the zipping procedure changes with 8.1.9 rc2? I did not get this > with > 8.1.9 rc1. > > Thanks in advance... > > 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Fri Feb 9 19:00:34 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 9 Feb 2018 16:00:34 -0800 Subject: [ANN] Release 8.1.9 In-Reply-To: <005401d3a1c8$71f921c0$55eb6540$@net> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> Message-ID: <438a889c-f2e7-226a-37ae-7cde4db039e4@sonic.net> On 02/09/2018 09:07 AM, Ralph DiMola via use-livecode wrote: > ...\Roaming\... Hah! I was listening to Ornette's "Rambling" when that email arrived. -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Fri Feb 9 20:03:54 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Feb 2018 20:03:54 -0500 Subject: [ANN] Release 8.1.9 In-Reply-To: <438a889c-f2e7-226a-37ae-7cde4db039e4@sonic.net> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <438a889c-f2e7-226a-37ae-7cde4db039e4@sonic.net> Message-ID: <000601d3a20b$088043c0$1980cb40$@net> "Jazz is not dead, it just smells funny" Frank Zappa 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 Mark Wieder via use-livecode Sent: Friday, February 09, 2018 7:01 PM To: Ralph DiMola via use-livecode Cc: Mark Wieder Subject: Re: [ANN] Release 8.1.9 On 02/09/2018 09:07 AM, Ralph DiMola via use-livecode wrote: > ...\Roaming\... Hah! I was listening to Ornette's "Rambling" when that email arrived. -- 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 hh at hyperhh.de Sun Feb 11 07:08:55 2018 From: hh at hyperhh.de (hh) Date: Sun, 11 Feb 2018 13:08:55 +0100 Subject: LC-Magick #10 Message-ID: <7E2E9643-4527-4E80-B028-0B05F1E56DBF@hyperhh.de> Added today LC-Magick #10: Color Tonality Curve Variant 1: Pure LC Script, use it best with LC 6 (slow with LC 8/9). Variant 2: Uses JS in a (hidden) browser widget for use with LC 8/9. Variant 1 runs on Mac/ Win 7+10/ linux 32bit with LC 6/7/8/9 and Raspi 6/7. Variant 2 runs on Mac/ Win 7+10/ Ubuntu 64bit with (latest) LC 8/9. A tone curve has to map each of the color values 0-255 of your image to a value in range 0-255. Some well known image processing apps use internally for setting saturation, brightness or gamma also such curves. You can set the tone curve = by an editable formula or = by 2 up to 9 handles (control points) that determine either, ... a polygon chain (linear pieces between the control points), ... a bezier curve of order 1=linear, 2= square ... up to order 8 (usually most control points are not on the curve), ... a natural spline curve (control points are on the curve), ... a clamped spline curve (control points are on the curve). The LC-Magick Collection LC-Magick #10 - Color Tonality Curve (HermannH) http://forums.livecode.com/viewtopic.php?p=163787#p163787 LC-Magick #9 - Selective Gray (HermannH) http://forums.livecode.com/viewtopic.php?p=154277#p154277 LC-Magick #8 - MoonEffect (Fisheye) (HermannH and BerndN) http://forums.livecode.com/viewtopic.php?p=153159#p153159 LC-Magick #7 - Cuboid (HermannH) http://forums.livecode.com/viewtopic.php?p=153076#p153076 LC-Magick #6 - Bilinear Perspective Distortion (HermannH and BerndN) http://forums.livecode.com/viewtopic.php?p=150757#p150757 LC-Magick #5 - Circular (Polar) Image Distortion (HermannH and BerndN) http://forums.livecode.com/viewtopic.php?p=149999#p149999 LC-Magick #4 - Linear Perspective Image Distortion (HermannH) http://forums.livecode.com/viewtopic.php?p=148647#p148647 LC-Magick #3 - Image Multiplexing (HermannH) http://forums.livecode.com/viewtopic.php?p=141272#p141272 LC-Magick #2 - Pointillize (HermannH) http://forums.livecode.com/viewtopic.php?p=141051#p141051 LC-Magick #1 - Blur and Pixelate (ScottR) http://tactilemedia.com/blog/2016/03/26/update-blur-effect-plus-pixelize-bonus/ A lot of the ideas above is based on ideas presented in imageMagick's documentation, see http://www.imagemagick.org/Usage/ From revolution at derbrill.de Sun Feb 11 13:34:58 2018 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Sun, 11 Feb 2018 19:34:58 +0100 Subject: Put URL into variable and textEncoding Message-ID: <3465A7B0-5766-4FA0-A424-A5E0C8FBE4EE@derbrill.de> Hi, I am a little bit puzzled at the moment. When I am using Put URL ?http://www.some/service/endpoint ? into tVariable and the content is UTF-8 encoded I vaguely recall I had to textDecode it to display it correctly in a field afterwards. Did this change? I am not sure if the web service I use changed, or if it is the latest live code stable version? Any pointers much appreciated. Cheers, Malte From gcanyon at gmail.com Mon Feb 12 04:52:46 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 12 Feb 2018 01:52:46 -0800 Subject: Navigator Update -- Drag and Drop! Message-ID: Drag and drop has always been just within a single Navigator window -- not between Navigator windows, and not to/from open stacks. That changes (a bit) today! You can now select any set of controls in a Navigator window and drag them out of that window and onto any open stack. Detailed documentation will come tomorrow, but there are notes below. I'm very much looking for feedback on the visual and physical method of dragging. I put some effort into making it as intuitive as possible, so let me know what works for you and what doesn't. More is coming... You can get Navigator here . This update also fixes the issue of Navigator's behavior stacks polluting the project browser and Navigator. I'm sure glad I wrote the export/restore code -- I've done it about a dozen times now. regards, Geoff Notes: When you drag out from a Navigator window, the drag image will represent all the controls being dragged: their size and position relative to each other (their rects). This can be any selection of controls from a Navigator window, so controls from different cards, different stacks, it doesn't matter. Available stacks to drop on will be highlighted. Drag over a stack, and the focus narrows to that stack, showing the top-level groups in that stack. Drag over a group, and that group will be highlighted, and on and on. You can drop on a stack, or into any group on that stack, just by dragging into it. All the controls will be positioned in their same relative position, wherever you dropped them. Holding the control key stops the entry/exit from groups and stacks, so if you want to add something to a group, but place it outside the group's current boundaries, just drag over the group to highlight it, then hold the control key and drag to wherever you want to place the controls. This also means you can place controls outside a stack's window by highlighting the stack, then holding the control key while you drag back outside the stack. All controls are copied at present, even controls from the same card you're dragging to. Dragging a card onto a stack copies the whole card (from another stack, or duplicating it within a given stack). Dragging a stack onto another stack makes it a substack of that stack. Dragging it onto itself makes it a mainstack. From panos.merakos at livecode.com Mon Feb 12 07:10:30 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 12 Feb 2018 12:10:30 +0000 Subject: [ANN] This Week in LiveCode 116 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 #116 here: https://goo.gl/Lpdp11 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 klaus at major-k.de Mon Feb 12 07:22:53 2018 From: klaus at major-k.de (Klaus major-k) Date: Mon, 12 Feb 2018 13:22:53 +0100 Subject: [ANN] This Week in LiveCode 116 In-Reply-To: References: Message-ID: Hi Panos, > Am 12.02.2018 um 13:10 schrieb panagiotis merakos via use-livecode : > > 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 #116 here: https://goo.gl/Lpdp11 clicking "Delete imported audioclips" leads to this one, which is about "Datagrid horizontal scrollbar": > 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 Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From panos.merakos at livecode.com Mon Feb 12 07:32:42 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 12 Feb 2018 12:32:42 +0000 Subject: [ANN] This Week in LiveCode 116 In-Reply-To: References: Message-ID: Thank you Klaus, well spotted :) I have updated the link, should be correct now. Best, Panos -- On Mon, Feb 12, 2018 at 12:22 PM, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 12.02.2018 um 13:10 schrieb panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi all, > > > > Read about new developments in LiveCode open source and the open source > > community in today's edition of the "This Week in LiveCode" newsletter! > > Read issue #116 here: https://goo.gl/Lpdp11 > > clicking "Delete imported audioclips" leads to this one, which is about > "Datagrid horizontal scrollbar": > > > > 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 > > 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 > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From klaus at major-k.de Mon Feb 12 08:25:01 2018 From: klaus at major-k.de (Klaus major-k) Date: Mon, 12 Feb 2018 14:25:01 +0100 Subject: strange behaviour of standalone builder Message-ID: <86B54F4B-27E9-458B-A1EC-319DBBFC2DEF@major-k.de> Hi friends, see subject... I have a folder with a command line utility, one for Mac and one for Windows. I put this into a folder in -> "specialfolderpath("resources") & "/theCLI" adn add it via "Copy files" to my standalone. Folder structure theCLI (folder) play ## Mac version play.exe an_important.dll Now after I built a standalone, Windows worked fine, but nothing worked on my Mac? Usdually it is the other way round ;-) So I took a look at the Mac application package and found that the standalone builder had put the Mac version of the CLI into the ENGINE folder in a "copy?" of the original folder but only containing the Mac version? 8-) In the standalone: specialfolderpath("engine") theCLI (folder) play ## Mac Version specialfolderpath("resources") theCLI (folder) play.exe an_important.dll This is very clever of the engine on one side, but very stupid on the other!? What gives? So if I now access that CLI in scripts in the standalone via specialfolderpath("engine") everything works as advertized, but this cannot be the real McCoy, does it? Now the thing does not work in the IDE unless I script also to differ between IDE and standalone, no big fun really, sigh. Tested with LC 8.1.9 stable and LC 9dp 11. Bug or (very undocumented) feature? Or just a egomaniacal behaviour of the engine? Any hints, comments and whatnot very appreciated! :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From hh at hyperhh.de Mon Feb 12 09:22:16 2018 From: hh at hyperhh.de (hh) Date: Mon, 12 Feb 2018 15:22:16 +0100 Subject: strange behaviour of standalone builder Message-ID: Hi Klaus, the move to "engine" is documented, see specialfolder/engine. This is the only "logic" way to do that because your "CLI" files are executables. That is Mac is correct in docu and building the standalone. The bug is now either the docu for Win/linux or the not-moving on Win/linux. > Klaus M. wrote: > Hi friends, > > see subject... > > I have a folder with a command line utility, one for Mac and one for Windows. > I put this into a folder in -> "specialfolderpath("resources") & "/theCLI" > adn add it via "Copy files" to my standalone. > > Folder structure > theCLI (folder) > play ## Mac version > play.exe > an_important.dll > > Now after I built a standalone, Windows worked fine, but nothing worked on my Mac? > Usdually it is the other way round ;-) > > So I took a look at the Mac application package and found that the standalone builder > had put the Mac version of the CLI into the ENGINE folder in a "copy?" of the original folder > but only containing the Mac version? 8-) > > In the standalone: > specialfolderpath("engine") > theCLI (folder) > play ## Mac Version > > specialfolderpath("resources") > theCLI (folder) > play.exe > an_important.dll > > This is very clever of the engine on one side, but very stupid on the other!? > What gives? > > So if I now access that CLI in scripts in the standalone via specialfolderpath("engine") > everything works as advertized, but this cannot be the real McCoy, does it? > > Now the thing does not work in the IDE unless I script also to differ between > IDE and standalone, no big fun really, sigh. > > Tested with LC 8.1.9 stable and LC 9dp 11. > > Bug or (very undocumented) feature? > Or just a egomaniacal behaviour of the engine? > > Any hints, comments and whatnot very appreciated! :-) > From hh at hyperhh.de Mon Feb 12 09:55:36 2018 From: hh at hyperhh.de (hh) Date: Mon, 12 Feb 2018 15:55:36 +0100 Subject: Put URL into variable and textEncoding Message-ID: If you know it *is* utf-8 then (in LC 8/9) it "just works" whether put into a variable or directly into a field. But you have to be aware when working with the variable that you have to use codepoint for conversions for "foreign chars" (e.g. using diacritics). > Malte P-B. wrote: > Hi, I am a little bit puzzled at the moment. When I am using > Put URL "http://www.some/service/endpoint ? into tVariable > and the content is UTF-8 encoded I vaguely recall I had to textDecode it to display it > correctly in a field afterwards. Did this change? > I am not sure if the web service I use changed, or if it is the latest live code stable > version? > Any pointers much appreciated. > Cheers, > Malte From klaus at major-k.de Mon Feb 12 10:23:59 2018 From: klaus at major-k.de (Klaus major-k) Date: Mon, 12 Feb 2018 16:23:59 +0100 Subject: strange behaviour of standalone builder In-Reply-To: References: Message-ID: <9022C4F1-7886-47D0-ACF2-BD304F7D41C7@major-k.de> Hallo Hermann, > Am 12.02.2018 um 15:22 schrieb hh via use-livecode : > > Hi Klaus, > the move to "engine" is documented, see specialfolder/engine. > > This is the only "logic" way to do that because your "CLI" files are executables. > That is Mac is correct in docu and building the standalone. > > The bug is now either the docu for Win/linux or the not-moving on Win/linux. AHA, thank you! Did not exspect this, but you are right, of course!, about the docu: ... "engine": The folder containing the LiveCode engine and the executable files copied in the standalone application ... I did not fully understand the "...and the executable files" part, obviously. Mistery solved, case closed! :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bobsneidar at iotecdigital.com Mon Feb 12 10:50:28 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 12 Feb 2018 15:50:28 +0000 Subject: Navigator Update -- Drag and Drop! In-Reply-To: References: Message-ID: <70CD132D-A33D-44CD-8C07-A36540B4965A@iotecdigital.com> Sure like to know how you do that. I've tried but cannot get it to work. I'd like to make a smartObjects panel so I could store and clone common objects with scripts, properties and backscripts already intact, but I never was able to get the drag/drop functionality working. Bob S > On Feb 12, 2018, at 01:52 , Geoff Canyon via use-livecode wrote: > > Drag and drop has always been just within a single Navigator window -- not > between Navigator windows, and not to/from open stacks. That changes (a > bit) today! You can now select any set of controls in a Navigator window > and drag them out of that window and onto any open stack. Detailed > documentation will come tomorrow, but there are notes below. From bobsneidar at iotecdigital.com Mon Feb 12 10:53:17 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 12 Feb 2018 15:53:17 +0000 Subject: strange behaviour of standalone builder In-Reply-To: <86B54F4B-27E9-458B-A1EC-319DBBFC2DEF@major-k.de> References: <86B54F4B-27E9-458B-A1EC-319DBBFC2DEF@major-k.de> Message-ID: <16577E00-0CBA-45F0-9335-88704ED33B2A@iotecdigital.com> This is the same discussion I have been having for over a year now. Maybe 2. The workaround is to only build for one platform at a time, and quit LC between builds. LC seems to be getting confused about which is the original and which is the copy. It makes a mess of the stack files in your project. You will have to go back to the mainstack or whatever you build from and make sure the included files and stack files are not pointing to copies before building again. Bob S > On Feb 12, 2018, at 05:25 , Klaus major-k via use-livecode wrote: > > Hi friends, > > see subject... > > I have a folder with a command line utility, one for Mac and one for Windows. > I put this into a folder in -> "specialfolderpath("resources") & "/theCLI" > adn add it via "Copy files" to my standalone. > > Folder structure > theCLI (folder) > play ## Mac version > play.exe > an_important.dll > > Now after I built a standalone, Windows worked fine, but nothing worked on my Mac? > Usdually it is the other way round ;-) > > So I took a look at the Mac application package and found that the standalone builder > had put the Mac version of the CLI into the ENGINE folder in a "copy?" of the original folder > but only containing the Mac version? 8-) > > In the standalone: > specialfolderpath("engine") > theCLI (folder) > play ## Mac Version > > specialfolderpath("resources") > theCLI (folder) > play.exe > an_important.dll > > This is very clever of the engine on one side, but very stupid on the other!? > What gives? > > So if I now access that CLI in scripts in the standalone via specialfolderpath("engine") > everything works as advertized, but this cannot be the real McCoy, does it? > > Now the thing does not work in the IDE unless I script also to differ between > IDE and standalone, no big fun really, sigh. > > Tested with LC 8.1.9 stable and LC 9dp 11. > > Bug or (very undocumented) feature? > Or just a egomaniacal behaviour of the engine? > > Any hints, comments and whatnot very appreciated! :-) > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Feb 12 10:55:20 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 12 Feb 2018 15:55:20 +0000 Subject: strange behaviour of standalone builder In-Reply-To: <16577E00-0CBA-45F0-9335-88704ED33B2A@iotecdigital.com> References: <86B54F4B-27E9-458B-A1EC-319DBBFC2DEF@major-k.de> <16577E00-0CBA-45F0-9335-88704ED33B2A@iotecdigital.com> Message-ID: <6ED43A78-0DDE-4994-9E1A-9FB78CE8C177@iotecdigital.com> Ah. I misunderstood your post. Bob S > On Feb 12, 2018, at 07:53 , Bob Sneidar via use-livecode wrote: > > This is the same discussion I have been having for over a year now. Maybe 2. The workaround is to only build for one platform at a time, and quit LC between builds. LC seems to be getting confused about which is the original and which is the copy. It makes a mess of the stack files in your project. You will have to go back to the mainstack or whatever you build from and make sure the included files and stack files are not pointing to copies before building again. > > Bob S > > >> On Feb 12, 2018, at 05:25 , Klaus major-k via use-livecode wrote: >> >> Hi friends, >> >> see subject... >> >> I have a folder with a command line utility, one for Mac and one for Windows. >> I put this into a folder in -> "specialfolderpath("resources") & "/theCLI" >> adn add it via "Copy files" to my standalone. >> >> Folder structure >> theCLI (folder) >> play ## Mac version >> play.exe >> an_important.dll >> >> Now after I built a standalone, Windows worked fine, but nothing worked on my Mac? >> Usdually it is the other way round ;-) >> >> So I took a look at the Mac application package and found that the standalone builder >> had put the Mac version of the CLI into the ENGINE folder in a "copy?" of the original folder >> but only containing the Mac version? 8-) >> >> In the standalone: >> specialfolderpath("engine") >> theCLI (folder) >> play ## Mac Version >> >> specialfolderpath("resources") >> theCLI (folder) >> play.exe >> an_important.dll >> >> This is very clever of the engine on one side, but very stupid on the other!? >> What gives? >> >> So if I now access that CLI in scripts in the standalone via specialfolderpath("engine") >> everything works as advertized, but this cannot be the real McCoy, does it? >> >> Now the thing does not work in the IDE unless I script also to differ between >> IDE and standalone, no big fun really, sigh. >> >> Tested with LC 8.1.9 stable and LC 9dp 11. >> >> Bug or (very undocumented) feature? >> Or just a egomaniacal behaviour of the engine? >> >> Any hints, comments and whatnot very appreciated! :-) >> >> >> Best >> >> Klaus >> -- >> Klaus Major >> http://www.major-k.de >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Mon Feb 12 11:26:53 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 12 Feb 2018 08:26:53 -0800 Subject: Navigator Update -- Drag and Drop! In-Reply-To: <70CD132D-A33D-44CD-8C07-A36540B4965A@iotecdigital.com> References: <70CD132D-A33D-44CD-8C07-A36540B4965A@iotecdigital.com> Message-ID: It took some effort :-) I'm in an unusual position because the selection of objects in Navigator's live display *really* messes with the traditional drag/drop messages and the selection within the field I use for the list display. I tried very hard to work around that many years back, but finally gave up, and used a set of drag and drop code that just depended on mouseDown, mouseMove, mouseUp, and mouseRelease. I think it was from Scott Rossi originally, but I'm not sure. The new code builds on that, and uses two stacks with their blendlevel set to something like 80: one to represent the dragged objects, one to highlight the targets. Despite the mouse leaving the list and being over the drag stack, the mouseMove messages still go to the list field. So I dispatch a message from there to the drag stack, to keep things clean in the list field. There's a lot of translation from local to screen coordinates. All of the code is available in Navigator, or at the Navigator GitHub repository . It's not particularly clean at present because I built it all wrong the first time, and then re-built it. When I go back in I'll cut away the vestigial code. There is still a ton to do: 1. Dragging from stacks into Navigator. 2. Dragging from Navigator into another Navigator. 3. Alignment to existing controls in stacks I drag into -- this is why I started the project in the first place. If you have any questions, let me know. gc On Mon, Feb 12, 2018 at 7:50 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Sure like to know how you do that. I've tried but cannot get it to work. > I'd like to make a smartObjects panel so I could store and clone common > objects with scripts, properties and backscripts already intact, but I > never was able to get the drag/drop functionality working. > > Bob S > > > > On Feb 12, 2018, at 01:52 , Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Drag and drop has always been just within a single Navigator window -- > not > > between Navigator windows, and not to/from open stacks. That changes (a > > bit) today! You can now select any set of controls in a Navigator window > > and drag them out of that window and onto any open stack. Detailed > > documentation will come tomorrow, but there are notes below. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 12 13:43:40 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 12 Feb 2018 18:43:40 +0000 Subject: Use of Serialize Behavior in Script Only Stack Message-ID: <78C04DED-5CB2-4278-8F91-FFFF8EB400DF@hindu.org> Can some else elucidate this: " This patch adds a 'with behavior' clause to the header of a script only stack. # this is clear The clause is emitted if the stack has a behavior property which references a stack. # this unclear; "references [binary] a stack" When a script-only-stack with such a clause is loaded, the behavior is set as part of the loading. # this is clear From brian at milby7.com Mon Feb 12 16:05:07 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 12 Feb 2018 21:05:07 +0000 Subject: Use of Serialize Behavior in Script Only Stack In-Reply-To: <78C04DED-5CB2-4278-8F91-FFFF8EB400DF@hindu.org> References: <78C04DED-5CB2-4278-8F91-FFFF8EB400DF@hindu.org> Message-ID: I think the meaning is that it references a stack and not an arbitrary object (like a button). It will probably be another script only stack though. On Mon, Feb 12, 2018 at 12:44 PM Sannyasin Brahmanathaswami via use-livecode wrote: > Can some else elucidate this: > > " This patch adds a 'with behavior' clause to the header of a script > only stack. > > # this is clear > > The clause is emitted if the stack has a behavior property which > references a stack. > > # this unclear; "references [binary] a stack" > > When a script-only-stack with such a clause is loaded, the behavior > is set as part of the loading. > > # this is clear > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Feb 12 16:48:46 2018 From: james at thehales.id.au (James At The Hale) Date: Tue, 13 Feb 2018 08:48:46 +1100 Subject: Lifetime access to icons offer Message-ID: <551B42D9-E0C4-4A1A-9BFE-59CBBBBA81FB@thehales.id.au> Just received this today and thought it might be of interest to some. This is just a copy and paste from my email.... James www.iconapp.io Iconapp is an icon provider and management tool put together. We offer over 15,000 icons (up from 7,000 last year, and still increasing by the time you read this) for all your project needs. What can you get from iconapp? Extensive collection aside, here are some benefits you get from iconapp: Ease of access: user-friendly interface with high-speed performance. Full customization. Customize color, size, and file type of your icons to be used for different projects. Icons are available in SVG, CSH, EPS, PNG, PDF, JPEG, GIF, TIFF, ICO, AI, and even Webfont formats. Multi-platform support: Safari, Chrome, Firefox, Opera, iOS/Android Mobile, IE or Windows Browser? No problem. Usually, you need to fork out $144 per year for this excellent service for access to teams of 5. But nearing this Valentine, you are given the opportunity to gain lifetime access to Iconapp. And you may ask, what is the price for this deal? $25.00 This will be the best $25 that you spend on icons in your entire life. Click here to go to the promotion page! From james at thehales.id.au Mon Feb 12 17:17:57 2018 From: james at thehales.id.au (James At The Hale) Date: Tue, 13 Feb 2018 09:17:57 +1100 Subject: Link for the icon offer. Message-ID: <4BF4F3B3-BAB1-4084-963D-421EBACF50DD@thehales.id.au> Oops, seems the link to the offer page didn?t survive my copy and paste. Here is is in all its gory detail. http://click.mlsend3.com/link/c/YT04MjUzMTI4MjQ1NDM2Nzk3NTUmYz16NmUwJmU9NDc1ODA5NzUmYj0xNTU1NzM5ODgmZD1zMmg2cjVk.gmarQ0_fB6YaVI4xX57sbATn8f5LstD0cXrHJyzqQzI From ambassador at fourthworld.com Mon Feb 12 18:01:12 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 12 Feb 2018 15:01:12 -0800 Subject: [Semi-OT]APK size and conversions Message-ID: Shrinking APKs, growing installs How your app?s APK size impacts install conversion rates -- Richard Gaskin Fourth World Systems From gcanyon at gmail.com Mon Feb 12 18:25:42 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 12 Feb 2018 15:25:42 -0800 Subject: Use of Serialize Behavior in Script Only Stack In-Reply-To: References: <78C04DED-5CB2-4278-8F91-FFFF8EB400DF@hindu.org> Message-ID: Based on the thread on this mailing list several weeks ago, that sounds reasonable. I know in that thread it was only proposed that a script-only stack could specify another stack as its behavior, and not a button. On Mon, Feb 12, 2018 at 1:05 PM, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I think the meaning is that it references a stack and not an arbitrary > object (like a button). It will probably be another script only stack > though. > On Mon, Feb 12, 2018 at 12:44 PM Sannyasin Brahmanathaswami via > use-livecode wrote: > > > Can some else elucidate this: > > > > " This patch adds a 'with behavior' clause to the header of a script > > only stack. > > > > # this is clear > > > > The clause is emitted if the stack has a behavior property which > > references a stack. > > > > # this unclear; "references [binary] a stack" > > > > When a script-only-stack with such a clause is loaded, the behavior > > is set as part of the loading. > > > > # this is clear > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Mon Feb 12 18:29:47 2018 From: sundown at pacifier.com (JB) Date: Mon, 12 Feb 2018 15:29:47 -0800 Subject: Link for the icon offer. In-Reply-To: <4BF4F3B3-BAB1-4084-963D-421EBACF50DD@thehales.id.au> References: <4BF4F3B3-BAB1-4084-963D-421EBACF50DD@thehales.id.au> Message-ID: Are the icons royalty free? JB > On Feb 12, 2018, at 2:17 PM, James At The Hale via use-livecode wrote: > > Oops, seems the link to the offer page didn?t survive my copy and paste. > > Here is is in all its gory detail. > > http://click.mlsend3.com/link/c/YT04MjUzMTI4MjQ1NDM2Nzk3NTUmYz16NmUwJmU9NDc1ODA5NzUmYj0xNTU1NzM5ODgmZD1zMmg2cjVk.gmarQ0_fB6YaVI4xX57sbATn8f5LstD0cXrHJyzqQzI > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Mon Feb 12 19:11:55 2018 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 13 Feb 2018 11:11:55 +1100 Subject: Put URL into variable and textEncoding In-Reply-To: References: Message-ID: No, nothing has changed. The Dictionary entry for textEncode and textDecode still contains this note: It is highly recommended that any time you interface with things outside LiveCode (files, network sockets, processes, etc) that you explicitly textEncode any text you send outside LiveCode and textDecode all text received into LiveCode. If this doesnt happen, a platform-dependent encoding will be used (which normally does not support Unicode text). Of course, the URL you use today might work fine without textDecode, but another URL and another day you might not be so lucky. put textDecode(URL "http://www.some/service/endpoint","UTF8") into tVariable is still only a single line of code and I very much doubt that you will notice the extra cpu cycles. From james at thehales.id.au Mon Feb 12 19:34:01 2018 From: james at thehales.id.au (James At The Hale) Date: Tue, 13 Feb 2018 11:34:01 +1100 Subject: Link for the icon offer. Message-ID: <3B8DCB1A-6F5B-4DE4-9874-BFCC0AE7C59B@thehales.id.au> >> > Are the icons royalty free? > > JB You will need to check this out at the site. I am just a messenger. (But I think they are, under certain conditions.) From ambassador at fourthworld.com Mon Feb 12 19:56:04 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 12 Feb 2018 16:56:04 -0800 Subject: Put URL into variable and textEncoding In-Reply-To: References: Message-ID: Given the nearly-universal use of UTF-8, it would seem ideal for a language focusing on ease of use if that could be made a default. I can understand why we can't use "open tFile for text..." given the legacy, but maybe something like "open tFile for modernText..." or something more sensible. -- Richard Gaskin Fourth World Systems Kay C Lan wrote: > No, nothing has changed. The Dictionary entry for textEncode and > textDecode still contains this note: > > It is highly recommended that any time you interface with things > outside LiveCode (files, network sockets, processes, etc) that you > explicitly textEncode any text you send outside LiveCode and > textDecode all text received into LiveCode. If this doesnt happen, a > platform-dependent encoding will be used (which normally does not > support Unicode text). > > Of course, the URL you use today might work fine without textDecode, > but another URL and another day you might not be so lucky. > > put textDecode(URL "http://www.some/service/endpoint","UTF8") into tVariable > > is still only a single line of code and I very much doubt that you > will notice the extra cpu cycles. From monte at appisle.net Mon Feb 12 20:49:59 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 13 Feb 2018 12:49:59 +1100 Subject: Put URL into variable and textEncoding In-Reply-To: References: Message-ID: <4A0138A4-7B63-4A7E-B6B9-5034137B3410@appisle.net> > On 13 Feb 2018, at 11:56 am, Richard Gaskin via use-livecode wrote: > > something more sensible We already have: open file for ?utf-8? text There was some discussion of implementing ?file+:/path/to/file? style urls to avoid having to use binfile and textDecode and manual line ending wrangling. Also if there is a BOM then the unicode encoding can and is worked for file: urls and open file for text. It?s when there?s no BOM and no explicit encoding specified that the engine defaults to legacy native encodings. Cheers Monte From paul at researchware.com Mon Feb 12 21:04:24 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 12 Feb 2018 21:04:24 -0500 Subject: Put URL into variable and textEncoding In-Reply-To: <4A0138A4-7B63-4A7E-B6B9-5034137B3410@appisle.net> References: <4A0138A4-7B63-4A7E-B6B9-5034137B3410@appisle.net> Message-ID: <9ca7882e-2d20-7752-ee54-d02a47f6980d@researchware.com> On 2/12/2018 8:49 PM, Monte Goulding via use-livecode wrote: > >> On 13 Feb 2018, at 11:56 am, Richard Gaskin via use-livecode wrote: >> >> something more sensible > We already have: > > open file for ?utf-8? text > > There was some discussion of implementing ?file+:/path/to/file? style urls to avoid having to use binfile and textDecode and manual line ending wrangling. > > Also if there is a BOM then the unicode encoding can and is worked for file: urls and open file for text. It?s when there?s no BOM and no explicit encoding specified that the engine defaults to legacy native encodings. It is this last case (no BOM) that a 'guessEncoding()' function is needed in LiveCode so those of us that make app that deal with end user files (which can be of variable 'type' and whose encoding is generally completely unknown to the user) do no have to each write our own. I will happily offer the guessEncoding script we wrote from common algorithms for this task if only LiveCode would add it to the engine. Or any one else that has written a guessEncoding script could offer these and LiveCode could pick the "best" one and add it to the engine. From monte at appisle.net Mon Feb 12 21:32:50 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 13 Feb 2018 13:32:50 +1100 Subject: Put URL into variable and textEncoding In-Reply-To: <9ca7882e-2d20-7752-ee54-d02a47f6980d@researchware.com> References: <4A0138A4-7B63-4A7E-B6B9-5034137B3410@appisle.net> <9ca7882e-2d20-7752-ee54-d02a47f6980d@researchware.com> Message-ID: ICU has character set detection. Looks like it wouldn?t be that hard to add a function to return either the best match or an array of encoding -> confidence. Perhaps dd an enhancement request if there isn?t one already. Cheers Monte > On 13 Feb 2018, at 1:04 pm, Paul Dupuis via use-livecode wrote: > > It is this last case (no BOM) that a 'guessEncoding()' function is > needed in LiveCode so those of us that make app that deal with end user > files (which can be of variable 'type' and whose encoding is generally > completely unknown to the user) do no have to each write our own. > > I will happily offer the guessEncoding script we wrote from common > algorithms for this task if only LiveCode would add it to the engine. Or > any one else that has written a guessEncoding script could offer these > and LiveCode could pick the "best" one and add it to the engine. From brian at milby7.com Mon Feb 12 22:29:57 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 13 Feb 2018 03:29:57 +0000 Subject: Link for the icon offer. In-Reply-To: <3B8DCB1A-6F5B-4DE4-9874-BFCC0AE7C59B@thehales.id.au> References: <3B8DCB1A-6F5B-4DE4-9874-BFCC0AE7C59B@thehales.id.au> Message-ID: The license page on the site seems confusing. If making a product that will be sold to multiple people, you seem to be fine. That makes contract work ambiguous. I?ve sent them an inquiry for clarification, but who knows if I will see anything back before the offer expires. (Current price for a single user lifetime is about $50 without the special.) On Mon, Feb 12, 2018 at 6:34 PM James At The Hale via use-livecode < use-livecode at lists.runrev.com> wrote: > >> > > Are the icons royalty free? > > > > JB > > You will need to check this out at the site. > I am just a messenger. > (But I think they are, under certain conditions.) > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 13 02:16:20 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 12 Feb 2018 23:16:20 -0800 Subject: Put URL into variable and textEncoding In-Reply-To: <4A0138A4-7B63-4A7E-B6B9-5034137B3410@appisle.net> References: <4A0138A4-7B63-4A7E-B6B9-5034137B3410@appisle.net> Message-ID: <248986c1-9666-0538-582a-cfedbb5f4d79@fourthworld.com> Monte Goulding wrote: >> On 13 Feb 2018, at 11:56 am, Richard Gaskin wrote: >> something more sensible > > We already have: > > open file for ?utf-8? text > > There was some discussion of implementing ?file+:/path > /to/file? style urls to avoid having to use binfile and textDecode > and manual line ending wrangling. > > Also if there is a BOM then the unicode encoding can and is worked > for file: urls and open file for text. It?s when there?s no BOM and > no explicit encoding specified that the engine defaults to legacy > native encodings. More reasonable indeed. With all the complicated examples floating around I'd forgotten about the "open file" addition. Nice. -- 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 Info at dicod.com Tue Feb 13 06:14:44 2018 From: Info at dicod.com (Jean-Jacques Wagner) Date: Tue, 13 Feb 2018 12:14:44 +0100 Subject: how to format text for copy-pasting as a spreadsheet table Message-ID: <9C5BBDE2-19E0-41B5-9049-91E7813D8461@dicod.com> Hallo, I did it in pages and its works. I had an other problem with the soft-return, it is to import text with lines in the same cells. Can somebody tell me, how to do this. I tried with several chars, also 16 bits chars and never succeed. Tanks JJW From hh at hyperhh.de Tue Feb 13 14:35:47 2018 From: hh at hyperhh.de (hh) Date: Tue, 13 Feb 2018 20:35:47 +0100 Subject: LC-Magick #11 Message-ID: Added today #11: ReflectImage ReflectImage mirrors (a part of) an image and blends the transparency of the mirrored part. This shows, compared to lengthy techniques in "full" image apps, how easy it is to have such effects with LiveCode. You can set the position of the mirror (top or bottom) and the percentage of the image to be mirrored. ========================================================================= The LC-Magick Collection LC-Magick #11 - ReflectImage (hh) http://forums.livecode.com/viewtopic.php?p=163935#p163935 LC-Magick #10 - Color Tonality Curve (hh) http://forums.livecode.com/viewtopic.php?p=163787#p163787 LC-Magick #9 - Selective Gray (hh) http://forums.livecode.com/viewtopic.php?p=154277#p154277 LC-Magick #8 - MoonEffect (Fisheye) (hh and bn) http://forums.livecode.com/viewtopic.php?p=153159#p153159 LC-Magick #7 - Cuboid (hh) http://forums.livecode.com/viewtopic.php?p=153076#p153076 LC-Magick #6 - Bilinear Perspective Distortion (hh and bn) http://forums.livecode.com/viewtopic.php?p=150757#p150757 LC-Magick #5 - Circular/Polar Image Distortion (hh and bn) http://forums.livecode.com/viewtopic.php?p=149999#p149999 LC-Magick #4 - Linear Perspective Image Distortion (hh) http://forums.livecode.com/viewtopic.php?p=148647#p148647 LC-Magick #3 - Image Multiplexing (hh) http://forums.livecode.com/viewtopic.php?p=141272#p141272 LC-Magick #2 - Pointillize (hh) http://forums.livecode.com/viewtopic.php?p=141051#p141051 LC-Magick #1 - Blur and Pixelate (ScottR) http://tactilemedia.com/blog/2016/03/26/update-blur-effect-plus-pixelize-bonus/ A lot of the ideas above is based on ideas presented in imageMagick's documentation, see http://www.imagemagick.org/Usage/ From ambassador at fourthworld.com Tue Feb 13 17:09:15 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 13 Feb 2018 14:09:15 -0800 Subject: Inspector - resizable or not? Message-ID: <9e30c33a-7e6f-fc93-6026-08403f538866@fourthworld.com> Sometimes the Inspector is resizable. Other times it's really small and I have to scroll around. Is there a preference setting for this? Is it a known bug? Unknown bug? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From merakosp at gmail.com Tue Feb 13 17:19:00 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 13 Feb 2018 22:19:00 +0000 Subject: Inspector - resizable or not? In-Reply-To: <9e30c33a-7e6f-fc93-6026-08403f538866@fourthworld.com> References: <9e30c33a-7e6f-fc93-6026-08403f538866@fourthworld.com> Message-ID: Hi Richard, This is probably a bug. We were discussing that with Mark Wieder in this report: http://quality.livecode.com/show_bug.cgi?id=19880 If you are on Ubuntu and have found a reproducible recipe please add it to the report :) Best, Panos -- On Tue, Feb 13, 2018 at 10:09 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Sometimes the Inspector is resizable. Other times it's really small and I > have to scroll around. > > Is there a preference setting for this? Is it a known bug? Unknown bug? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Tue Feb 13 20:59:04 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 13 Feb 2018 17:59:04 -0800 Subject: Inspector - resizable or not? In-Reply-To: References: <9e30c33a-7e6f-fc93-6026-08403f538866@fourthworld.com> Message-ID: <184cd501-8dea-d2d0-ba8a-60d2b73e2b40@sonic.net> On 02/13/2018 02:19 PM, panagiotis merakos via use-livecode wrote: > Hi Richard, > > This is probably a bug. We were discussing that with Mark Wieder in this > report: http://quality.livecode.com/show_bug.cgi?id=19880 > > If you are on Ubuntu and have found a reproducible recipe please add it to > the report :) Yes, please do. Panos can't replicate the problem. I *think* I have it narrowed down to the resize routines in the behavior script, but I haven't had time yet to delve any deeper. I *did* find that narrowing the width down to the minimum and then resizing works better than not, and that seems like a clue. -- Mark Wieder ahsoftware at gmail.com From paul at livecode.org Wed Feb 14 00:41:30 2018 From: paul at livecode.org (Paul Hibbert) Date: Tue, 13 Feb 2018 21:41:30 -0800 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: <9C5BBDE2-19E0-41B5-9049-91E7813D8461@dicod.com> References: <9C5BBDE2-19E0-41B5-9049-91E7813D8461@dicod.com> Message-ID: <8298A4AC-B3C8-403E-87C8-F92E8DFD7955@livecode.org> Could you give a little more info? Do you want to import from Pages into LiveCode or import from LiveCode into Pages? Paul Paul paul at livecode.org Mac OS Sierra 10.12.1 > On Feb 13, 2018, at 3:14 AM, Jean-Jacques Wagner via use-livecode wrote: > > Hallo, > I did it in pages and its works. I had an other problem with the soft-return, it is to import text with lines in the same cells. > > Can somebody tell me, how to do this. I tried with several chars, also 16 bits chars and never succeed. > > Tanks > > JJW > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Tue Feb 13 23:02:55 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Wed, 14 Feb 2018 04:02:55 +0000 Subject: Livecode.com server down Message-ID: Hi all, Just tried activating the latest version of LC but the server is apparently down. Needed to urgently create an iOS standalone for XCode 9.2 but stopped in my tracks. The downloads page and the whole livecode.com site is not responding. Sigh. Now need to explain this to my client. Sean Cole *Pi Digital Productions Ltd* From niconiko at gmail.com Wed Feb 14 00:33:25 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Wed, 14 Feb 2018 14:33:25 +0900 Subject: discrepancy between official device metric and LC stack size In-Reply-To: <219c9710-b025-ff96-61c6-93388071a2bb@hyperactivesw.com> References: <219c9710-b025-ff96-61c6-93388071a2bb@hyperactivesw.com> Message-ID: ?Ok. Took Jacque's advice?, and my stack's working screenRect is 0,24,360,592. Now I'm unsure whether my stack's size is 360 x 592, or (width = item 3 - item) x (height = item 4 -item 2). Thanks. -- Nicolas Cueto On 2 February 2018 at 17:53, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 1/31/18 5:23 PM, Nicolas Cueto via use-livecode wrote: > >> I test my mobile stacks on a Nexus 5, and, in portrait orientation, many >> bottom pixels are offscreen, even though for width and height I follow >> exactly the numbers given in dp at the website Device Metrics >> . >> >> Why is it cut off? And how can I avoid this? Is there an LC keyword, like >> "effective" or "working", that I should be including.... if so, how? >> > > Probably the area occupied by the status bar is pushing the stack down. > Get "the working screenrect" to find out the actual screen dimensions your > stack can use. > > Since every Android device is different, it's usually easier to set the > fullscreenMode to "showAll" and let the LC engine adjust the size. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Wed Feb 14 04:14:44 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 14 Feb 2018 11:14:44 +0200 Subject: discrepancy between official device metric and LC stack size In-Reply-To: References: <219c9710-b025-ff96-61c6-93388071a2bb@hyperactivesw.com> Message-ID: <2d6854f1-0ae2-08e4-46fb-4ac87d1794a8@gmail.com> As my school Maths teacher said, many years ago: "You go into the house before going up the stairs." Although, to be fair, LiveCode is a bit warped insofar as you "go into the house, and then down into the cellar." Best, Richmond. On 14/2/2018 7:33 am, Nicolas Cueto via use-livecode wrote: > ?Ok. Took Jacque's advice?, and my stack's working screenRect is > 0,24,360,592. > > Now I'm unsure whether my stack's size is 360 x 592, or (width = item 3 - > item) x (height = item 4 -item 2). > > Thanks. > > -- > Nicolas Cueto > > > > On 2 February 2018 at 17:53, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 1/31/18 5:23 PM, Nicolas Cueto via use-livecode wrote: >> >>> I test my mobile stacks on a Nexus 5, and, in portrait orientation, many >>> bottom pixels are offscreen, even though for width and height I follow >>> exactly the numbers given in dp at the website Device Metrics >>> . >>> >>> Why is it cut off? And how can I avoid this? Is there an LC keyword, like >>> "effective" or "working", that I should be including.... if so, how? >>> >> Probably the area occupied by the status bar is pushing the stack down. >> Get "the working screenrect" to find out the actual screen dimensions your >> stack can use. >> >> Since every Android device is different, it's usually easier to set the >> fullscreenMode to "showAll" and let the LC engine adjust the size. >> >> >> -- >> 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 niconiko at gmail.com Wed Feb 14 00:24:25 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Wed, 14 Feb 2018 14:24:25 +0900 Subject: updating LC on Windows breaks SDK path Message-ID: A previously working setup for Android development on Windows has suddenly stopped working. Again! Twice this has happened. First, back in January, when updating from 8.1.0 to 8.1.8, and now this morning, from 8.1.8 to 8.1.9. First sign of a problem is I can't point LC 8.1.9 after installation to the same SDK path that worked fine with LC 8.1.8. The newer LC says it's invalid. So, I try to continue my Android work by going back to LC 8.1.8. But I can't! Because the SDK path there has been erased from Preferences > Mobile. Why was it erased? It had been working fine for months?!? Finally, I try to re-enter the EXACT SAME SDK path into LC 8.1.8 -- a path that I made sure to copy down in a txt file beforehand -- but LC tells me it's now invalid. How can a previously working SDK (and JDK) path suddenly be invalid? Nothing in my Windows setup has changed between 9AM and 12PM. BTW, on my Mac setup, no problem. I likewise updated to LC8.1.9 this morning. And though the license can't be activated -- the forums are down too so maybe there's a server problem at livecode.com -- at least I can continue my Android work on my Mac because, in LC8.1.8, the SDK path wasn't erased. But maybe it will be after activation?!?!?! Anyway, while I await this magically resolving itself like it did with the 8.1.0 to 8.1.8 change, I thought I'd post here and see if someone can help. Thanks. -- Nicolas Cueto From richmondmathewson at gmail.com Wed Feb 14 04:32:42 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 14 Feb 2018 11:32:42 +0200 Subject: Inspector - resizable or not? In-Reply-To: <184cd501-8dea-d2d0-ba8a-60d2b73e2b40@sonic.net> References: <9e30c33a-7e6f-fc93-6026-08403f538866@fourthworld.com> <184cd501-8dea-d2d0-ba8a-60d2b73e2b40@sonic.net> Message-ID: <95c9ee9a-1c63-40d3-b939-afeb13dde8ea@gmail.com> If by "Inspector" you mean what I think of as the "Properties Palette" on Xubuntu 17.10 I always (8.1.9) get a fairly "normal" thing when I first open it. I can increase the WIDTH of the Inspector, but I cannot increase its HEIGHT. I would suppose (?) a "happy little work around" might be to have a startup script that goes something like this: set the width of stack "revInspectorTemplate" to 300 set the width of stack "revInspectorTemplate" to 500 HOWEVER: having just tried that, it doesn't seem to work. Doing this: set the width of stack "revInspector" to 300 set the width of stack "revInspector" to 500 while resizing the stack "revInspector" doesn't affect the Properties palette. Where am I getting things wrong? Richmond. On 14/2/2018 3:59 am, Mark Wieder via use-livecode wrote: > On 02/13/2018 02:19 PM, panagiotis merakos via use-livecode wrote: >> Hi Richard, >> >> This is probably a bug. We were discussing that with Mark Wieder in this >> report: http://quality.livecode.com/show_bug.cgi?id=19880 >> >> If you are on Ubuntu and have found a reproducible recipe please add >> it to >> the report :) > > Yes, please do. Panos can't replicate the problem. I *think* I have it > narrowed down to the resize routines in the behavior script, but I > haven't had time yet to delve any deeper. > > I *did* find that narrowing the width down to the minimum and then > resizing works better than not, and that seems like a clue. > From merakosp at gmail.com Wed Feb 14 04:41:29 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 14 Feb 2018 09:41:29 +0000 Subject: Inspector - resizable or not? In-Reply-To: <95c9ee9a-1c63-40d3-b939-afeb13dde8ea@gmail.com> References: <9e30c33a-7e6f-fc93-6026-08403f538866@fourthworld.com> <184cd501-8dea-d2d0-ba8a-60d2b73e2b40@sonic.net> <95c9ee9a-1c63-40d3-b939-afeb13dde8ea@gmail.com> Message-ID: @Richmond The ability to resize the property inspector vertically was introduced in LC 9 DP-7: https://github.com/livecode/livecode-ide/pull/1566/files Panos -- On Wed, Feb 14, 2018 at 9:32 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > If by "Inspector" you mean what I think of as the "Properties Palette" > on Xubuntu 17.10 I always (8.1.9) get a fairly "normal" thing when I first > open it. > > I can increase the WIDTH of the Inspector, but I cannot increase its > HEIGHT. > > I would suppose (?) a "happy little work around" might be to have a > startup script that goes > something like this: > > set the width of stack "revInspectorTemplate" to 300 > set the width of stack "revInspectorTemplate" to 500 > > HOWEVER: having just tried that, it doesn't seem to work. > > Doing this: > > set the width of stack "revInspector" to 300 > set the width of stack "revInspector" to 500 > > while resizing the stack "revInspector" doesn't affect the Properties > palette. > > Where am I getting things wrong? > > Richmond. > > On 14/2/2018 3:59 am, Mark Wieder via use-livecode wrote: > >> On 02/13/2018 02:19 PM, panagiotis merakos via use-livecode wrote: >> >>> Hi Richard, >>> >>> This is probably a bug. We were discussing that with Mark Wieder in this >>> report: http://quality.livecode.com/show_bug.cgi?id=19880 >>> >>> If you are on Ubuntu and have found a reproducible recipe please add it >>> to >>> the report :) >>> >> >> Yes, please do. Panos can't replicate the problem. I *think* I have it >> narrowed down to the resize routines in the behavior script, but I haven't >> had time yet to delve any deeper. >> >> I *did* find that narrowing the width down to the minimum and then >> resizing works better than not, and that seems like a clue. >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 14 04:45:37 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 14 Feb 2018 11:45:37 +0200 Subject: Inspector - resizable or not? In-Reply-To: References: <9e30c33a-7e6f-fc93-6026-08403f538866@fourthworld.com> <184cd501-8dea-d2d0-ba8a-60d2b73e2b40@sonic.net> <95c9ee9a-1c63-40d3-b939-afeb13dde8ea@gmail.com> Message-ID: Aha. Thanks. I wonder why it was restricted in the first place. Richmond. On 14/2/2018 11:41 am, panagiotis merakos via use-livecode wrote: > @Richmond > > The ability to resize the property inspector vertically was introduced in > LC 9 DP-7: > > https://github.com/livecode/livecode-ide/pull/1566/files > > Panos > -- > > On Wed, Feb 14, 2018 at 9:32 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> If by "Inspector" you mean what I think of as the "Properties Palette" >> on Xubuntu 17.10 I always (8.1.9) get a fairly "normal" thing when I first >> open it. >> >> I can increase the WIDTH of the Inspector, but I cannot increase its >> HEIGHT. >> >> I would suppose (?) a "happy little work around" might be to have a >> startup script that goes >> something like this: >> >> set the width of stack "revInspectorTemplate" to 300 >> set the width of stack "revInspectorTemplate" to 500 >> >> HOWEVER: having just tried that, it doesn't seem to work. >> >> Doing this: >> >> set the width of stack "revInspector" to 300 >> set the width of stack "revInspector" to 500 >> >> while resizing the stack "revInspector" doesn't affect the Properties >> palette. >> >> Where am I getting things wrong? >> >> Richmond. >> >> On 14/2/2018 3:59 am, Mark Wieder via use-livecode wrote: >> >>> On 02/13/2018 02:19 PM, panagiotis merakos via use-livecode wrote: >>> >>>> Hi Richard, >>>> >>>> This is probably a bug. We were discussing that with Mark Wieder in this >>>> report: http://quality.livecode.com/show_bug.cgi?id=19880 >>>> >>>> If you are on Ubuntu and have found a reproducible recipe please add it >>>> to >>>> the report :) >>>> >>> Yes, please do. Panos can't replicate the problem. I *think* I have it >>> narrowed down to the resize routines in the behavior script, but I haven't >>> had time yet to delve any deeper. >>> >>> I *did* find that narrowing the width down to the minimum and then >>> resizing works better than not, and that seems like a clue. >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From Info at dicod.com Wed Feb 14 07:02:01 2018 From: Info at dicod.com (Jean-Jacques Wagner) Date: Wed, 14 Feb 2018 13:02:01 +0100 Subject: how to format text for copy-pasting as a spreadsheet table Message-ID: <8FB9FFAD-98CF-4704-94B6-FA9D58C7AC81@dicod.com> Hi, primarely from live code to pages, but also from pages to live code Thanks JJW From sean at pidigital.co.uk Wed Feb 14 07:21:03 2018 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 14 Feb 2018 12:21:03 +0000 Subject: iOS sim orientation. Message-ID: Hi all Has orientation on the iPad simulator stopped working now? In Xcode 9.1, LC 8.1.8, iPad ios11. When it rotates the orientation is detected and resizes but the display does not rotate. Orientation is unlocked. Any help appreciated. Sean Cole Pi Digital From sean at pidigital.co.uk Wed Feb 14 07:30:07 2018 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 14 Feb 2018 12:30:07 +0000 Subject: iOS sim orientation. Retraction In-Reply-To: References: Message-ID: My bad! I?d doubled up an orientation lock command. All sorted. Sean Cole Pi Digital > On 14 Feb 2018, at 12:21, Pi Digital via use-livecode wrote: > > Hi all > Has orientation on the iPad simulator stopped working now? In Xcode 9.1, LC 8.1.8, iPad ios11. When it rotates the orientation is detected and resizes but the display does not rotate. Orientation is unlocked. Any help appreciated. > > Sean Cole > Pi Digital > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 14 07:54:59 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 14 Feb 2018 14:54:59 +0200 Subject: [OT] self-expanding archives in Mac Classic Message-ID: <10fe19c7-a085-b061-328d-57525f912e5f@gmail.com> I have just downloaded a phonetic font I used in 1994 on Mac OS 7.1 when I was doing a Masters degree at SIUC Carbondale. It comes as a .cpt.hqx file. On my iMac PPC G5 running Mac OS 10.4.11 and Classic 9.1.2 it expands with Stuffit Expander for Mac OS 9 3.5 into a self-expanding archive, at which point I am quite unable to get it to expand. Can anyone help me in this respect? Richmond. From selander at tkf.att.ne.jp Wed Feb 14 08:06:02 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Wed, 14 Feb 2018 22:06:02 +0900 Subject: Getting current line number of a table field. Message-ID: <5A84343A.6010809@tkf.att.ne.jp> Hi, Editing a table field (not datagrid) and need to track the number of the line that is being edited. If I click into a new line, "selectionchanged" will let me figure out what line I'm editing. But if I hit return or tab to go to a new line, how can I track what line the cursor is in? Rawkeyups and downs are being sent, but I have been unsuccessful in trapping them in the table field's script. Any ideas? Much appreciated. Tim Selander Tokyo, Japan From richmondmathewson at gmail.com Wed Feb 14 08:33:18 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 14 Feb 2018 15:33:18 +0200 Subject: Getting current line number of a table field. In-Reply-To: <5A84343A.6010809@tkf.att.ne.jp> References: <5A84343A.6010809@tkf.att.ne.jp> Message-ID: <049a819a-2107-22d9-2a73-f5760d16ca0f@gmail.com> Hey-Ho . . . I tried this script in the tableField: on mouseDown put the selectedLine of me end mouseDown and it returned the line where I clicked. Richmond. On 14/2/2018 3:06 pm, Tim Selander via use-livecode wrote: > Hi, > > Editing a table field (not datagrid) and need to track the number of > the line that is being edited. If I click into a new line, > "selectionchanged" will let me figure out what line I'm editing. But > if I hit return or tab to go to a new line, how can I track what line > the cursor is in? Rawkeyups and downs are being sent, but I have been > unsuccessful in trapping them in the table field's script. > > Any ideas? > Much appreciated. > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ludovic.thebault at laposte.net Wed Feb 14 10:31:40 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Wed, 14 Feb 2018 16:31:40 +0100 Subject: Mysql load dump Message-ID: <35398763-45A9-4818-9051-2DE01BD8B9A1@laposte.net> Hello, I want to load a dump from an livecode app but i don?t know how to do it. I?ve tried : answer file ? Your dump :" put "source " & quote & it & quote into tSQL revExecuteSQL tDatabaseID, tSQL Without success. Any ideas ? Thanks From dunbarx at aol.com Wed Feb 14 10:35:16 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 14 Feb 2018 08:35:16 -0700 (MST) Subject: Getting current line number of a table field. In-Reply-To: <5A84343A.6010809@tkf.att.ne.jp> References: <5A84343A.6010809@tkf.att.ne.jp> Message-ID: <1518622516571-0.post@n4.nabble.com> You know, this proved more of a problem than I thought. Richmond, the issue is with tab and return keyPresses, not mouse clicks. Anyway, given a table field 1 and another field 2, this works if you tab or return in the table field: on rawKeyUp tKey put the selectedLoc && the selectedChunk into fld 2 pass rawKeyUp end rawKeyUp And this works fine in a button: on mouseUp set the itemDel to tab select item 2 of line 2 of fld 1 answer the selectedLine of fld 1 end mouseUp But this does not in the table field: on rawKeyDown tKey put "" into fld 2 put the selectedLine into fld 2 pass rawKeyDown end rawKeyDown I always get "line 1 of field 3" (!!!!) Kluge city to get the line from the selectedLoc, but that would indeed work. Is it that in a table field, if only one "cell" is selected, the selectedLine just does not compute? Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bonnmike at gmail.com Wed Feb 14 11:04:18 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 14 Feb 2018 09:04:18 -0700 Subject: Getting current line number of a table field. In-Reply-To: <1518622516571-0.post@n4.nabble.com> References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> Message-ID: Try this... on rawkeyup pkey send "getline" to me in 10 millisec pass rawkeyup end rawkeyup command getline put the short name of the focusedobject end getline This gives you the name of the editing field that appears for each cell in the form of: revCell-2,2 Parse that and voila, you have your info. On Wed, Feb 14, 2018 at 8:35 AM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > You know, this proved more of a problem than I thought. > > Richmond, the issue is with tab and return keyPresses, not mouse clicks. > Anyway, given a table field 1 and another field 2, this works if you tab or > return in the table field: > > on rawKeyUp tKey > put the selectedLoc && the selectedChunk into fld 2 > pass rawKeyUp > end rawKeyUp > > And this works fine in a button: > > on mouseUp > set the itemDel to tab > select item 2 of line 2 of fld 1 > answer the selectedLine of fld 1 > end mouseUp > > But this does not in the table field: > on rawKeyDown tKey > put "" into fld 2 > put the selectedLine into fld 2 > pass rawKeyDown > end rawKeyDown > > I always get "line 1 of field 3" (!!!!) > > Kluge city to get the line from the selectedLoc, but that would indeed > work. > > Is it that in a table field, if only one "cell" is selected, the > selectedLine just does not compute? > > Craig Newman > > > > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jiml at netrin.com Wed Feb 14 11:11:56 2018 From: jiml at netrin.com (Jim Lambert) Date: Wed, 14 Feb 2018 08:11:56 -0800 Subject: LC-Magick #11 In-Reply-To: References: Message-ID: The LC-Magick Collection is very useful and instructional. Herman et al, Thank you so much for this. Jim Lambert From bonnmike at gmail.com Wed Feb 14 11:12:27 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 14 Feb 2018 09:12:27 -0700 Subject: Mysql load dump In-Reply-To: <35398763-45A9-4818-9051-2DE01BD8B9A1@laposte.net> References: <35398763-45A9-4818-9051-2DE01BD8B9A1@laposte.net> Message-ID: If this is sqlite, you might be able to use the .read dot command.. (note the nearly invisible period that begins .read) Untested, but this might work. put "path/to/dump.sql" into tPath put merge(".dump [[tpath]]") into tSql revexecutesql tDatabaseId, tsql If the dump is IN to sqlite, but is from another db (mySQL or whatever) it might not work. Oh, if its sqlite and you still have access to the first database file, it should be possible to a) open the new database, b) attach the old database and c) copy the tables you need from one to the other, then d) detach the old database and you should be good to go. On Wed, Feb 14, 2018 at 8:31 AM, Ludovic THEBAULT via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > I want to load a dump from an livecode app but i don?t know how to do it. > > I?ve tried : > > answer file ? Your dump :" > > put "source " & quote & it & quote into tSQL > > revExecuteSQL tDatabaseID, tSQL > > > Without success. > > Any ideas ? > > Thanks > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Wed Feb 14 11:16:34 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 14 Feb 2018 11:16:34 -0500 Subject: Livecode.com server down In-Reply-To: References: Message-ID: Hi Sean, I have gone back to using the manual method of activating LC for that very reason. You may want to do this in the near future. LC server downtime should never impact user productivity. Just my 2 cents for the day. Cheers, Rick > On Feb 13, 2018, at 11:02 PM, Sean Cole (Pi) via use-livecode wrote: > > Hi all, > > Just tried activating the latest version of LC but the server is apparently > down. Needed to urgently create an iOS standalone for XCode 9.2 but stopped > in my tracks. The downloads page and the whole livecode.com site is not > responding. Sigh. Now need to explain this to my client. > > Sean Cole > *Pi Digital Productions Ltd* From dunbarx at aol.com Wed Feb 14 11:24:25 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 14 Feb 2018 09:24:25 -0700 (MST) Subject: Getting current line number of a table field. In-Reply-To: References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> Message-ID: <1518625465156-0.post@n4.nabble.com> You know, I have given advice many times to people trying to find the selected field in a DG. The target is always of the form, for example, "field Col 3 0005". But how does the focussedObject return similar data in a table field? The fact that is does is marvelous indeed, but I never would have found that, and if I checked the dictionary, i definitely never would have thought of it. A table field, after all, is but a single field, and the focusedObject ought to return a control reference, not a non existent "cell" gizmo. At the very least, the dictionary should include this valuable variant of the property. And the user guide should have it in bold. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bonnmike at gmail.com Wed Feb 14 11:28:39 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 14 Feb 2018 09:28:39 -0700 Subject: Getting current line number of a table field. In-Reply-To: <1518625465156-0.post@n4.nabble.com> References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> <1518625465156-0.post@n4.nabble.com> Message-ID: a table field ISN'T a single field, its a field bundled with an extra "editing" field that pops up as an overlay. I figured there had to be a way to pass the cell data back to the field proper, and poked around till I found out that the transfer mechanism is the name of the overlay field. I was worried that it was a property and that I'd have to dig around much deeper to find it, but turns out it was much more straight forward than I expected. On Wed, Feb 14, 2018 at 9:24 AM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > You know, I have given advice many times to people trying to find the > selected field in a DG. The target is always of the form, for example, > "field Col 3 0005". > > But how does the focussedObject return similar data in a table field? The > fact that is does is marvelous indeed, but I never would have found that, > and if I checked the dictionary, i definitely never would have thought of > it. > > A table field, after all, is but a single field, and the focusedObject > ought > to return a control reference, not a non existent "cell" gizmo. > > At the very least, the dictionary should include this valuable variant of > the property. And the user guide should have it in bold. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Feb 14 11:33:24 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Feb 2018 16:33:24 +0000 Subject: Getting current line number of a table field. In-Reply-To: <1518625465156-0.post@n4.nabble.com> References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> <1518625465156-0.post@n4.nabble.com> Message-ID: the mouseControl will give you the control number. If you get the long id of control (word 2 of the mouseControl) you will have the clicked object. Courtesy Trevor Devore. Bob S > On Feb 14, 2018, at 08:24 , dunbarx via use-livecode wrote: > > You know, I have given advice many times to people trying to find the > selected field in a DG. The target is always of the form, for example, > "field Col 3 0005". > > But how does the focussedObject return similar data in a table field? The > fact that is does is marvelous indeed, but I never would have found that, > and if I checked the dictionary, i definitely never would have thought of > it. > > A table field, after all, is but a single field, and the focusedObject ought > to return a control reference, not a non existent "cell" gizmo. > > At the very least, the dictionary should include this valuable variant of > the property. And the user guide should have it in bold. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Wed Feb 14 11:36:25 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 14 Feb 2018 08:36:25 -0800 Subject: Livecode.com server down In-Reply-To: References: Message-ID: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> On 02/14/2018 08:16 AM, Rick Harrison via use-livecode wrote: > Hi Sean, > > I have gone back to using the manual method > of activating LC for that very reason. > > You may want to do this in the near future. > > LC server downtime should never impact > user productivity. > > Just my 2 cents for the day. > > Cheers, > > Rick > > > >> On Feb 13, 2018, at 11:02 PM, Sean Cole (Pi) via use-livecode wrote: >> >> Hi all, >> >> Just tried activating the latest version of LC but the server is apparently >> down. Needed to urgently create an iOS standalone for XCode 9.2 but stopped >> in my tracks. The downloads page and the whole livecode.com site is not >> responding. Sigh. Now need to explain this to my client. >> >> Sean Cole >> *Pi Digital Productions Ltd* Yeah, I got stuck in the middle of something similar. It's amazing to me that the entire livecode hierarchy (livecode.com, livecode.org, the listserv, the forums, the mail servers, the activation and authorization servers...) was all down for several hours. I'd like to see a reasonable explanation from the mothership about what happened and how they're going to avoid this in the future. And please don't say that everything goes through a single gateway with no failover. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Wed Feb 14 11:37:13 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 14 Feb 2018 08:37:13 -0800 Subject: Getting current line number of a table field. In-Reply-To: References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> Message-ID: On 02/14/2018 08:04 AM, Mike Bonner via use-livecode wrote: > Try this... > > on rawkeyup pkey > send "getline" to me in 10 millisec > pass rawkeyup > end rawkeyup > > command getline > put the short name of the focusedobject > end getline > > This gives you the name of the editing field that appears for each cell in > the form of: > > revCell-2,2 > > Parse that and voila, you have your info. Brilliant. Would never have guessed that one. -- Mark Wieder ahsoftware at gmail.com From lists at mangomultimedia.com Wed Feb 14 11:38:10 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 14 Feb 2018 10:38:10 -0600 Subject: Levure update 0.9.5 Message-ID: Howdy folks, Version 0.9.5 of the Levure framework is now available. https://github.com/trevordevore/levure/releases -- Trevor DeVore ScreenSteps www.screensteps.com From bonnmike at gmail.com Wed Feb 14 11:39:10 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 14 Feb 2018 09:39:10 -0700 Subject: Getting current line number of a table field. In-Reply-To: References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> <1518625465156-0.post@n4.nabble.com> Message-ID: Hmm. There is a potential issue that would need to be worked around. The field name is the same whether one has a single table field or 12. Perhaps watching focus changes? I'm back to thinking there is a property that tracks which field to update on close of the editing overlay. For a single table though, the first idea works great. Time to poke some more. On Wed, Feb 14, 2018 at 9:28 AM, Mike Bonner wrote: > a table field ISN'T a single field, its a field bundled with an extra > "editing" field that pops up as an overlay. I figured there had to be a > way to pass the cell data back to the field proper, and poked around till I > found out that the transfer mechanism is the name of the overlay field. I > was worried that it was a property and that I'd have to dig around much > deeper to find it, but turns out it was much more straight forward than I > expected. > > On Wed, Feb 14, 2018 at 9:24 AM, dunbarx via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You know, I have given advice many times to people trying to find the >> selected field in a DG. The target is always of the form, for example, >> "field Col 3 0005". >> >> But how does the focussedObject return similar data in a table field? The >> fact that is does is marvelous indeed, but I never would have found that, >> and if I checked the dictionary, i definitely never would have thought of >> it. >> >> A table field, after all, is but a single field, and the focusedObject >> ought >> to return a control reference, not a non existent "cell" gizmo. >> >> At the very least, the dictionary should include this valuable variant of >> the property. And the user guide should have it in bold. >> >> Craig >> >> >> >> -- >> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution- >> User-f278306.html >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From ludovic.thebault at laposte.net Wed Feb 14 11:46:52 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Wed, 14 Feb 2018 17:46:52 +0100 Subject: Mysql load dump In-Reply-To: References: <35398763-45A9-4818-9051-2DE01BD8B9A1@laposte.net> Message-ID: <8F44B770-4FB6-4EBC-B9D4-366C6906FE51@laposte.net> > Le 14 f?vr. 2018 ? 17:12, Mike Bonner via use-livecode a ?crit : > > If this is sqlite, you might be able to use the .read dot command.. (note > the nearly invisible period that begins .read) > > Untested, but this might work. > > put "path/to/dump.sql" into tPath > put merge(".dump [[tpath]]") into tSql > revexecutesql tDatabaseId, tsql > > If the dump is IN to sqlite, but is from another db (mySQL or whatever) it > might not work. > > Oh, if its sqlite and you still have access to the first database file, it > should be possible to a) open the new database, b) attach the old database > and c) copy the tables you need from one to the other, then d) detach the > old database and you should be good to go. Thanks, but it?s for Mysql. From dunbarx at aol.com Wed Feb 14 12:09:42 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 14 Feb 2018 10:09:42 -0700 (MST) Subject: Getting current line number of a table field. In-Reply-To: References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> <1518625465156-0.post@n4.nabble.com> Message-ID: <1518628182845-0.post@n4.nabble.com> The extra field is what I once called a "phantom" field, ephemeral and elusive. But it does exist: In a table field script: on mouseEnter put the number of flds end mouseEnter If you move around the table field without a selection, you get 1, If you click on a "cell" to "select" it, and then move around, you will get "2'. The 2 comes because you have exited the phantom, and entered the table field. But the phantom exists as long as the selection does. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bonnmike at gmail.com Wed Feb 14 12:18:13 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 14 Feb 2018 10:18:13 -0700 Subject: Mysql load dump In-Reply-To: <8F44B770-4FB6-4EBC-B9D4-366C6906FE51@laposte.net> References: <35398763-45A9-4818-9051-2DE01BD8B9A1@laposte.net> <8F44B770-4FB6-4EBC-B9D4-366C6906FE51@laposte.net> Message-ID: DOH, I see it in the subject now. If you can get to a command line where the db server resides, you can use the mysql client to do the import, or if phpmyadmin is available, you can use its interface to import the dump. IIRC livecode doesn't like sending multi-line sql to mysql (though it works in sqlite) so it might be possible to parse the file line by line and send each line in sequence. (No clue what other hoops you might need to jump through to do this though. ) On Wed, Feb 14, 2018 at 9:46 AM, Ludovic THEBAULT via use-livecode < use-livecode at lists.runrev.com> wrote: > > > Le 14 f?vr. 2018 ? 17:12, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> a ?crit : > > > > If this is sqlite, you might be able to use the .read dot command.. (note > > the nearly invisible period that begins .read) > > > > Untested, but this might work. > > > > put "path/to/dump.sql" into tPath > > put merge(".dump [[tpath]]") into tSql > > revexecutesql tDatabaseId, tsql > > > > If the dump is IN to sqlite, but is from another db (mySQL or whatever) > it > > might not work. > > > > Oh, if its sqlite and you still have access to the first database file, > it > > should be possible to a) open the new database, b) attach the old > database > > and c) copy the tables you need from one to the other, then d) detach the > > old database and you should be good to go. > > Thanks, but it?s for Mysql. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 14 12:19:15 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 14 Feb 2018 10:19:15 -0700 Subject: Getting current line number of a table field. In-Reply-To: <1518628182845-0.post@n4.nabble.com> References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> <1518625465156-0.post@n4.nabble.com> <1518628182845-0.post@n4.nabble.com> Message-ID: For some reason I now want to name a table field "Opera." On Wed, Feb 14, 2018 at 10:09 AM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > The extra field is what I once called a "phantom" field, ephemeral and > elusive. But it does exist: > > In a table field script: > > on mouseEnter > put the number of flds > end mouseEnter > > If you move around the table field without a selection, you get 1, If you > click on a "cell" to "select" it, and then move around, you will get "2'. > The 2 comes because you have exited the phantom, and entered the table > field. But the phantom exists as long as the selection does. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Feb 14 12:25:15 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Feb 2018 17:25:15 +0000 Subject: Mysql load dump In-Reply-To: References: <35398763-45A9-4818-9051-2DE01BD8B9A1@laposte.net> <8F44B770-4FB6-4EBC-B9D4-366C6906FE51@laposte.net> Message-ID: <4D1805EF-2E21-4049-BA0B-DF6DE1B0B2D5@iotecdigital.com> mySQLWorkbench has an import/export feature you may be able to use. It's free. If you are trying to build this feature into LC, I would attempt the sql syntax in an editor on a test database first and see if it generates any errors. Bob S > On Feb 14, 2018, at 09:18 , Mike Bonner via use-livecode wrote: > > DOH, I see it in the subject now. > > If you can get to a command line where the db server resides, you can use > the mysql client to do the import, or if phpmyadmin is available, you can > use its interface to import the dump. IIRC livecode doesn't like sending > multi-line sql to mysql (though it works in sqlite) so it might be possible > to parse the file line by line and send each line in sequence. (No clue > what other hoops you might need to jump through to do this though. ) From sundown at pacifier.com Wed Feb 14 13:53:23 2018 From: sundown at pacifier.com (JB) Date: Wed, 14 Feb 2018 10:53:23 -0800 Subject: [OT] self-expanding archives in Mac Classic In-Reply-To: <10fe19c7-a085-b061-328d-57525f912e5f@gmail.com> References: <10fe19c7-a085-b061-328d-57525f912e5f@gmail.com> Message-ID: What type of self expanding archive? There are different versions of stuffit expander and it might be a disk image that needs to be mounted. Macintosh Garden has expanders and image mounters for just about any type of archive. They have a search engine that will show a lot of applications and I think they are your best solution. Without more info thats all I can do. JB > On Feb 14, 2018, at 4:54 AM, Richmond Mathewson via use-livecode wrote: > > I have just downloaded a phonetic font I used in 1994 on Mac OS 7.1 when I was > doing a Masters degree at SIUC Carbondale. It comes as a .cpt.hqx file. > > On my iMac PPC G5 running Mac OS 10.4.11 and Classic 9.1.2 it expands with Stuffit Expander for Mac OS 9 3.5 > into a self-expanding archive, at which point I am quite unable to get it to expand. > > Can anyone help me in this respect? > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Feb 14 14:12:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Feb 2018 19:12:33 +0000 Subject: [OT] self-expanding archives in Mac Classic In-Reply-To: References: <10fe19c7-a085-b061-328d-57525f912e5f@gmail.com> Message-ID: <8909B70D-A388-47DA-A2C0-04054FBD919C@iotecdigital.com> It's an OS 9 executable. Unless you can open it in SheepShaver or some emulator, I think you will have to open it in a computer running OS 9. Bob S > On Feb 14, 2018, at 10:53 , JB via use-livecode wrote: > >> On my iMac PPC G5 running Mac OS 10.4.11 and Classic 9.1.2 it expands with Stuffit Expander for Mac OS 9 3.5 >> into a self-expanding archive, at which point I am quite unable to get it to expand. >> >> Can anyone help me in this respect? >> >> Richmond. From sundown at pacifier.com Wed Feb 14 14:17:24 2018 From: sundown at pacifier.com (JB) Date: Wed, 14 Feb 2018 11:17:24 -0800 Subject: [OT] self-expanding archives in Mac Classic In-Reply-To: <8909B70D-A388-47DA-A2C0-04054FBD919C@iotecdigital.com> References: <10fe19c7-a085-b061-328d-57525f912e5f@gmail.com> <8909B70D-A388-47DA-A2C0-04054FBD919C@iotecdigital.com> Message-ID: <689D3CB8-75D9-4FD3-9AD7-E4113ACE64DE@pacifier.com> I have not used Classic OS 9 in years but since he is using it why won?t it work in that? JB > On Feb 14, 2018, at 11:12 AM, Bob Sneidar via use-livecode wrote: > > It's an OS 9 executable. Unless you can open it in SheepShaver or some emulator, I think you will have to open it in a computer running OS 9. > > Bob S > > >> On Feb 14, 2018, at 10:53 , JB via use-livecode wrote: >> >>> On my iMac PPC G5 running Mac OS 10.4.11 and Classic 9.1.2 it expands with Stuffit Expander for Mac OS 9 3.5 >>> into a self-expanding archive, at which point I am quite unable to get it to expand. >>> >>> Can anyone help me in this respect? >>> >>> Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Feb 14 14:24:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Feb 2018 19:24:09 +0000 Subject: [OT] self-expanding archives in Mac Classic In-Reply-To: <8909B70D-A388-47DA-A2C0-04054FBD919C@iotecdigital.com> References: <10fe19c7-a085-b061-328d-57525f912e5f@gmail.com> <8909B70D-A388-47DA-A2C0-04054FBD919C@iotecdigital.com> Message-ID: <317B5101-46AF-42E2-B2CF-3CCF2A7235EC@iotecdigital.com> Is this something like what you are looking for? https://www.vulgarlang.com/ipafonts.html Bob S From richmondmathewson at gmail.com Wed Feb 14 17:51:38 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 15 Feb 2018 00:51:38 +0200 Subject: Unicode Stretch Message-ID: Does numToCodePoint "stretch" to Supplementary Private Use Area-B (plane 16) Range: 100000-10FFFD Richmond. From selander at tkf.att.ne.jp Wed Feb 14 17:53:50 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 15 Feb 2018 07:53:50 +0900 Subject: Getting current line number of a table field. In-Reply-To: References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> Message-ID: <5A84BDFE.20806@tkf.att.ne.jp> Hi Mike, Thanks! I put the script in the table field itself with no luck. But when I moved it to the card script, it works! Great! I never would have come up with that in a million years. This list is fantastic. Oh, and I just re-named the table field to "Opera" ;-) Tim Selander Tokyo, Japan On 2018.02.15 1:04, Mike Bonner via use-livecode wrote: > Try this... > > on rawkeyup pkey > send "getline" to me in 10 millisec > pass rawkeyup > end rawkeyup > > command getline > put the short name of the focusedobject > end getline > > This gives you the name of the editing field that appears for each cell in > the form of: > > revCell-2,2 > > Parse that and voila, you have your info. > > On Wed, Feb 14, 2018 at 8:35 AM, dunbarx via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You know, this proved more of a problem than I thought. >> >> Richmond, the issue is with tab and return keyPresses, not mouse clicks. >> Anyway, given a table field 1 and another field 2, this works if you tab or >> return in the table field: >> >> on rawKeyUp tKey >> put the selectedLoc && the selectedChunk into fld 2 >> pass rawKeyUp >> end rawKeyUp >> >> And this works fine in a button: >> >> on mouseUp >> set the itemDel to tab >> select item 2 of line 2 of fld 1 >> answer the selectedLine of fld 1 >> end mouseUp >> >> But this does not in the table field: >> on rawKeyDown tKey >> put "" into fld 2 >> put the selectedLine into fld 2 >> pass rawKeyDown >> end rawKeyDown >> >> I always get "line 1 of field 3" (!!!!) >> >> Kluge city to get the line from the selectedLoc, but that would indeed >> work. >> >> Is it that in a table field, if only one "cell" is selected, the >> selectedLine just does not compute? >> >> Craig Newman >> >> >> >> >> >> >> -- >> Sent from: http://runtime-revolution.278305.n4.nabble.com/ >> Revolution-User-f278306.html >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Wed Feb 14 17:59:14 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 15 Feb 2018 00:59:14 +0200 Subject: Unicode Stretch In-Reply-To: References: Message-ID: Answering my own post (nothing new in this area): YES! Richmond. On 15/2/2018 12:51 am, Richmond Mathewson wrote: > Does numToCodePoint "stretch" to Supplementary Private Use Area-B > > (plane 16) > > Range: 100000-10FFFD > > Richmond. From ludovic.thebault at laposte.net Wed Feb 14 14:25:20 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Wed, 14 Feb 2018 20:25:20 +0100 Subject: Mysql load dump In-Reply-To: References: <35398763-45A9-4818-9051-2DE01BD8B9A1@laposte.net> <8F44B770-4FB6-4EBC-B9D4-366C6906FE51@laposte.net> Message-ID: > Le 14 f?vr. 2018 ? 18:18, Mike Bonner via use-livecode a ?crit : > > DOH, I see it in the subject now. > > If you can get to a command line where the db server resides, you can use > the mysql client to do the import, or if phpmyadmin is available, you can > use its interface to import the dump. IIRC livecode doesn't like sending > multi-line sql to mysql (though it works in sqlite) so it might be possible > to parse the file line by line and send each line in sequence. (No clue > what other hoops you might need to jump through to do this though. ) I wanted to use my favorite tool, Livecode, to create a script to automate this but making a query for each dump line is not the cleanest. Thanks anyway Ludovic From bobsneidar at iotecdigital.com Wed Feb 14 18:35:58 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Feb 2018 23:35:58 +0000 Subject: New Wierd Display Bug In-Reply-To: References: Message-ID: <698C56A1-BD22-473A-862C-8F7009780A50@iotecdigital.com> UPDATE: If I show invisible objects, the datagrid header becomes visible. So I set the visible of group "dgHeader" of the respective datagrid to true and it appears again. The question is, what is hiding it??? I checked my scripts and I am not even referring to the dgHeader group in my handlers, but I AM hiding and showing the datagrids based on a clicked tab. Bob S > On Feb 14, 2018, at 14:13 , Bob Sneidar wrote: > > Hi all. > > I have 3 datagrids on a card, one for vendors, one for purchase order master records, and a third for po detail records. That's not important now. > > What IS important is that when I attempted to do some work on the card, I noticed the header labels for the vendors datagrid were not displaying. Refreshing the datagrid does no good. Editing the columns does no good. Believing I have another corrupted datagrid, I saved the dgprop columns, column labels and widths, then deleted the Vendors datagrid, then added a new datagrid, then restored the rect and column properties. All is well. > > I closed the stack then opened it later. This time the PO Master datagrid had the same problem but the Vendors datagrid was fine! So I did the same thing with the PO Detail datagrid. Next time I opened the stack the vendors and po master datagrids were fine, but now the po detail datagrid wasn't displaying!!!!! > > Guess what happened when I fixed the PO detail datagrid????? Yup. The Vendors datagrid is hosed again! This has *got* to be a display bug!!! > > Bob S From bobsneidar at iotecdigital.com Wed Feb 14 18:39:48 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Feb 2018 23:39:48 +0000 Subject: New Wierd Display Bug In-Reply-To: <698C56A1-BD22-473A-862C-8F7009780A50@iotecdigital.com> References: <698C56A1-BD22-473A-862C-8F7009780A50@iotecdigital.com> Message-ID: AHH HAA HAAHHAHHAA@! I just figured out why I have this problem!! One of my tabs is called Header. My script assumes the datagrid is named "dg" and the name of the tab. So I end up hiding group "dgHeader". BAAH HAHAHA HAHA HAHAAHAHA@ Bob S > On Feb 14, 2018, at 15:35 , Bob Sneidar wrote: > > UPDATE: If I show invisible objects, the datagrid header becomes visible. So I set the visible of group "dgHeader" of the respective datagrid to true and it appears again. The question is, what is hiding it??? I checked my scripts and I am not even referring to the dgHeader group in my handlers, but I AM hiding and showing the datagrids based on a clicked tab. > > Bob S > > >> On Feb 14, 2018, at 14:13 , Bob Sneidar wrote: >> >> Hi all. >> >> I have 3 datagrids on a card, one for vendors, one for purchase order master records, and a third for po detail records. That's not important now. >> >> What IS important is that when I attempted to do some work on the card, I noticed the header labels for the vendors datagrid were not displaying. Refreshing the datagrid does no good. Editing the columns does no good. Believing I have another corrupted datagrid, I saved the dgprop columns, column labels and widths, then deleted the Vendors datagrid, then added a new datagrid, then restored the rect and column properties. All is well. >> >> I closed the stack then opened it later. This time the PO Master datagrid had the same problem but the Vendors datagrid was fine! So I did the same thing with the PO Detail datagrid. Next time I opened the stack the vendors and po master datagrids were fine, but now the po detail datagrid wasn't displaying!!!!! >> >> Guess what happened when I fixed the PO detail datagrid????? Yup. The Vendors datagrid is hosed again! This has *got* to be a display bug!!! >> >> Bob S > From richmondmathewson at gmail.com Wed Feb 14 16:21:47 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 14 Feb 2018 23:21:47 +0200 Subject: [OT] self-expanding archives in Mac Classic In-Reply-To: References: <10fe19c7-a085-b061-328d-57525f912e5f@gmail.com> Message-ID: <0d59a077-e1e1-a586-e357-fc15510693c3@gmail.com> Actually I managed to find a way to get Stuffit expander 3.5 on Mac OS 9 to do the job :) Richmond. On 14/2/2018 8:53 pm, JB via use-livecode wrote: > What type of self expanding archive? > There are different versions of stuffit > expander and it might be a disk image > that needs to be mounted. > > Macintosh Garden has expanders and > image mounters for just about any type > of archive. They have a search engine > that will show a lot of applications and > I think they are your best solution. > > Without more info thats all I can do. > > JB > > >> On Feb 14, 2018, at 4:54 AM, Richmond Mathewson via use-livecode wrote: >> >> I have just downloaded a phonetic font I used in 1994 on Mac OS 7.1 when I was >> doing a Masters degree at SIUC Carbondale. It comes as a .cpt.hqx file. >> >> On my iMac PPC G5 running Mac OS 10.4.11 and Classic 9.1.2 it expands with Stuffit Expander for Mac OS 9 3.5 >> into a self-expanding archive, at which point I am quite unable to get it to expand. >> >> Can anyone help me in this respect? >> >> Richmond. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Feb 14 17:13:20 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Feb 2018 22:13:20 +0000 Subject: New Wierd Display Bug Message-ID: Hi all. I have 3 datagrids on a card, one for vendors, one for purchase order master records, and a third for po detail records. That's not important now. What IS important is that when I attempted to do some work on the card, I noticed the header labels for the vendors datagrid were not displaying. Refreshing the datagrid does no good. Editing the columns does no good. Believing I have another corrupted datagrid, I saved the dgprop columns, column labels and widths, then deleted the Vendors datagrid, then added a new datagrid, then restored the rect and column properties. All is well. I closed the stack then opened it later. This time the PO Master datagrid had the same problem but the Vendors datagrid was fine! So I did the same thing with the PO Detail datagrid. Next time I opened the stack the vendors and po master datagrids were fine, but now the po detail datagrid wasn't displaying!!!!! Guess what happened when I fixed the PO detail datagrid????? Yup. The Vendors datagrid is hosed again! This has *got* to be a display bug!!! Bob S From bonnmike at gmail.com Wed Feb 14 15:30:01 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 14 Feb 2018 13:30:01 -0700 Subject: Getting current line number of a table field. In-Reply-To: References: <5A84343A.6010809@tkf.att.ne.jp> <1518622516571-0.post@n4.nabble.com> <1518625465156-0.post@n4.nabble.com> <1518628182845-0.post@n4.nabble.com> Message-ID: Found an interesting behavior.. I was trying to set up a custom control that keeps track of the current row and column and put the script in the group, but rawkeyup or rawkeydown messages never reach the group. I'm wondering if its because the message is sent to the figmentary popup field rather than the table field, and that the popup is not part of the group. But "the target" refers to the table field itself, so i'm not sure thats whats happening. Either way.. The following script works when put into a card or stack, NOT group, and not in the table field itself. Kinda freaky that the message is sent, just not to where I expect, despite "the target" still pointing back at the table field. on mouseup getline pass mouseup end mouseup on rawkeyup getline pass rawkeyup end rawkeyup command getline if the short name of the focusedobject contains "revCell-" then put the short name of the focusedobject into tName replace "revCell-" with empty in tname set the cCol of the target to item 1 of tName set the cRow of the target to item 2 of tName end if end getline On Wed, Feb 14, 2018 at 10:19 AM, Mike Bonner wrote: > For some reason I now want to name a table field "Opera." > > On Wed, Feb 14, 2018 at 10:09 AM, dunbarx via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> The extra field is what I once called a "phantom" field, ephemeral and >> elusive. But it does exist: >> >> In a table field script: >> >> on mouseEnter >> put the number of flds >> end mouseEnter >> >> If you move around the table field without a selection, you get 1, If you >> click on a "cell" to "select" it, and then move around, you will get "2'. >> The 2 comes because you have exited the phantom, and entered the table >> field. But the phantom exists as long as the selection does. >> >> Craig >> >> >> >> -- >> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution- >> User-f278306.html >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From sundown at pacifier.com Wed Feb 14 19:51:27 2018 From: sundown at pacifier.com (JB) Date: Wed, 14 Feb 2018 16:51:27 -0800 Subject: [OT] self-expanding archives in Mac Classic In-Reply-To: <0d59a077-e1e1-a586-e357-fc15510693c3@gmail.com> References: <10fe19c7-a085-b061-328d-57525f912e5f@gmail.com> <0d59a077-e1e1-a586-e357-fc15510693c3@gmail.com> Message-ID: <7D4BEB75-F473-4008-B6E0-B748A81517F9@pacifier.com> That is good! JB > On Feb 14, 2018, at 1:21 PM, Richmond Mathewson via use-livecode wrote: > > Actually I managed to find a way to get Stuffit expander 3.5 on Mac OS 9 to do the job :) > > Richmond. > > On 14/2/2018 8:53 pm, JB via use-livecode wrote: >> What type of self expanding archive? >> There are different versions of stuffit >> expander and it might be a disk image >> that needs to be mounted. >> >> Macintosh Garden has expanders and >> image mounters for just about any type >> of archive. They have a search engine >> that will show a lot of applications and >> I think they are your best solution. >> >> Without more info thats all I can do. >> >> JB >> >> >>> On Feb 14, 2018, at 4:54 AM, Richmond Mathewson via use-livecode wrote: >>> >>> I have just downloaded a phonetic font I used in 1994 on Mac OS 7.1 when I was >>> doing a Masters degree at SIUC Carbondale. It comes as a .cpt.hqx file. >>> >>> On my iMac PPC G5 running Mac OS 10.4.11 and Classic 9.1.2 it expands with Stuffit Expander for Mac OS 9 3.5 >>> into a self-expanding archive, at which point I am quite unable to get it to expand. >>> >>> Can anyone help me in this respect? >>> >>> 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 tom at makeshyft.com Wed Feb 14 20:06:01 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 14 Feb 2018 20:06:01 -0500 Subject: New Wierd Display Bug In-Reply-To: References: <698C56A1-BD22-473A-862C-8F7009780A50@iotecdigital.com> Message-ID: sounds like a great time bob :) On Wed, Feb 14, 2018 at 6:39 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > AHH HAA HAAHHAHHAA@! I just figured out why I have this problem!! One of > my tabs is called Header. My script assumes the datagrid is named "dg" and > the name of the tab. So I end up hiding group "dgHeader". BAAH HAHAHA HAHA > HAHAAHAHA@ > > Bob S > > > > > On Feb 14, 2018, at 15:35 , Bob Sneidar > wrote: > > > > UPDATE: If I show invisible objects, the datagrid header becomes > visible. So I set the visible of group "dgHeader" of the respective > datagrid to true and it appears again. The question is, what is hiding > it??? I checked my scripts and I am not even referring to the dgHeader > group in my handlers, but I AM hiding and showing the datagrids based on a > clicked tab. > > > > Bob S > > > > > >> On Feb 14, 2018, at 14:13 , Bob Sneidar > wrote: > >> > >> Hi all. > >> > >> I have 3 datagrids on a card, one for vendors, one for purchase order > master records, and a third for po detail records. That's not important now. > >> > >> What IS important is that when I attempted to do some work on the card, > I noticed the header labels for the vendors datagrid were not displaying. > Refreshing the datagrid does no good. Editing the columns does no good. > Believing I have another corrupted datagrid, I saved the dgprop columns, > column labels and widths, then deleted the Vendors datagrid, then added a > new datagrid, then restored the rect and column properties. All is well. > >> > >> I closed the stack then opened it later. This time the PO Master > datagrid had the same problem but the Vendors datagrid was fine! So I did > the same thing with the PO Detail datagrid. Next time I opened the stack > the vendors and po master datagrids were fine, but now the po detail > datagrid wasn't displaying!!!!! > >> > >> Guess what happened when I fixed the PO detail datagrid????? Yup. The > Vendors datagrid is hosed again! This has *got* to be a display bug!!! > >> > >> 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 ahsoftware at sonic.net Wed Feb 14 21:59:02 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 14 Feb 2018 18:59:02 -0800 Subject: Livecode.com server down In-Reply-To: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> Message-ID: <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> On 02/14/2018 08:36 AM, Mark Wieder via use-livecode wrote: > On 02/14/2018 08:16 AM, Rick Harrison via use-livecode wrote: >> Hi Sean, >> >> I have gone back to using the manual method >> of activating LC for that very reason. >> >> You may want to do this in the near future. >> >> LC server downtime should never impact >> user productivity. >> >> Just my 2 cents for the day. >> >> Cheers, >> >> Rick >> >> >> >>> On Feb 13, 2018, at 11:02 PM, Sean Cole (Pi) via use-livecode >>> wrote: >>> >>> Hi all, >>> >>> Just tried activating the latest version of LC but the server is >>> apparently >>> down. Needed to urgently create an iOS standalone for XCode 9.2 but >>> stopped >>> in my tracks. The downloads page and the whole livecode.com >>> site is not >>> responding. Sigh. Now need to explain this to my client. >>> >>> Sean Cole >>> *Pi Digital Productions Ltd* > > Yeah, I got stuck in the middle of something similar. > It's amazing to me that the entire livecode hierarchy (livecode.com, > livecode.org, the listserv, the forums, the mail servers, the activation > and authorization servers...) was all down for several hours. I'd like > to see a reasonable explanation from the mothership about what happened > and how they're going to avoid this in the future. And please don't say > that everything goes through a single gateway with no failover. > Still can't activate a license. An error occurred while attempting to contact the server. Please try again later. Anybody home? -- Mark Wieder ahsoftware at gmail.com From paul at livecode.org Wed Feb 14 20:53:23 2018 From: paul at livecode.org (Paul Hibbert) Date: Wed, 14 Feb 2018 17:53:23 -0800 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: <8FB9FFAD-98CF-4704-94B6-FA9D58C7AC81@dicod.com> References: <8FB9FFAD-98CF-4704-94B6-FA9D58C7AC81@dicod.com> Message-ID: <89878752-1B23-43A9-8B6F-29C5879B68EB@livecode.org> The best place to start is by analysing the clipBoard data, in this case, copy a small table from Pages and then look at the fullClipBoardData[?html?] in LiveCode to see how the table is represented as html. You can then use this as a model to build a table in html and place it on the fullClipBoardData[?html?] for pasting into Pages. That?s exactly how I put together the sample posted in the forum. By doing this I could see that to export a soft return in a cell you would need to use the HTML

command in place of the return within the cell. As far as I can see, importing a table (with returns in a cell) info into LiveCode is much trickier, mainly because LiveCode doesn?t appear to support soft returns within a table cell, so the only way I can see to achieve this would probably involve a more complex workaround where each cell would have to be represented by a field object. The part I don?t understand is how you would represent or create this data in LiveCode, do you have an example you could share? Paul > On Feb 14, 2018, at 4:02 AM, Jean-Jacques Wagner via use-livecode wrote: > > Hi, > primarely from live code to pages, but also from pages to live code > > Thanks > JJW > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Wed Feb 14 21:00:48 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 14 Feb 2018 18:00:48 -0800 Subject: New Wierd Display Bug In-Reply-To: References: <698C56A1-BD22-473A-862C-8F7009780A50@iotecdigital.com> Message-ID: <1475f6da-1c3f-8ea4-3d2d-2ae1a3f3e24d@sonic.net> On 02/14/2018 05:06 PM, Tom Glod via use-livecode wrote: > sounds like a great time bob :) Yeah. Somebody's been having too much fun. -- Mark Wieder ahsoftware at gmail.com From dave at applicationinsight.com Thu Feb 15 02:57:54 2018 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 15 Feb 2018 00:57:54 -0700 (MST) Subject: Livecode.com server down In-Reply-To: <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> Message-ID: <1518681474880-0.post@n4.nabble.com> What Heather told me the last time this happened was to: a) disconnect your development machine from the internet b) launch LiveCode (it opens in offline mode) c) reconnect your development machine to the internet d) continue making awesome apps with LC ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From jacque at hyperactivesw.com Thu Feb 15 03:13:28 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Feb 2018 02:13:28 -0600 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: <89878752-1B23-43A9-8B6F-29C5879B68EB@livecode.org> References: <8FB9FFAD-98CF-4704-94B6-FA9D58C7AC81@dicod.com> <89878752-1B23-43A9-8B6F-29C5879B68EB@livecode.org> Message-ID: On 2/14/18 7:53 PM, Paul Hibbert via use-livecode wrote: > As far as I can see, importing a table (with returns in a cell) info into LiveCode is much trickier, mainly because LiveCode doesn?t appear to support soft returns within a table cell, I don't know if it applies to table cells, but LC supports soft line breaks in fields using numToChar(11). It doesn't work when dontWrap is true though, which may be the case in cells. I'm still trying to figure out how to type that. If I need one in a field I have to insert it via script. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sean at pidigital.co.uk Thu Feb 15 04:15:19 2018 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 15 Feb 2018 09:15:19 +0000 Subject: Levure update 0.9.5 In-Reply-To: References: Message-ID: Hi Trevor Your readme.md and your posts here could do with a description of what Levure is and does. Just use the first paragraph from your wiki. All the best Sean Cole Pi Digital > On 14 Feb 2018, at 16:38, Trevor DeVore via use-livecode wrote: > > Howdy folks, > > Version 0.9.5 of the Levure framework is now available. > > https://github.com/trevordevore/levure/releases > > -- > Trevor DeVore > ScreenSteps > www.screensteps.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 kevin at livecode.com Thu Feb 15 04:47:54 2018 From: kevin at livecode.com (Kevin Miller) Date: Thu, 15 Feb 2018 09:47:54 +0000 Subject: Livecode.com server down In-Reply-To: <1518681474880-0.post@n4.nabble.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> Message-ID: Unfortunately we?ve been the subject of a spate of sustained, intensive hacking attempts. We had a series of incidents the other week and the last couple of days has been a new round of attempts from a different angle. We?ve fought them off yet again, but some of our team are very tired. Heather for one was up half the night. The systems are well designed and no customer data has been affected. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 15/02/2018, 07:57, "use-livecode on behalf of Dave Kilroy via use-livecode" wrote: >What Heather told me the last time this happened was to: > >a) disconnect your development machine from the internet >b) launch LiveCode (it opens in offline mode) >c) reconnect your development machine to the internet >d) continue making awesome apps with LC > > > >----- >"The first 90% of the task takes 90% of the time, and the last 10% takes >the other 90% of the time." >Peter M. Brigham >-- >Sent from: >http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.htm >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 iphonelagi at gmail.com Thu Feb 15 05:39:44 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 15 Feb 2018 10:39:44 +0000 Subject: Livecode.com server down In-Reply-To: <1518681474880-0.post@n4.nabble.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> Message-ID: There is NO reason at all for there not to be a backup activation server with a downloads directory to boot - cost is not prohibitive $8 a month or so on HostM or $5 a month on digital ocean if a Virtual Server is needed. Lagi On 15 February 2018 at 07:57, Dave Kilroy via use-livecode < use-livecode at lists.runrev.com> wrote: > What Heather told me the last time this happened was to: > > a) disconnect your development machine from the internet > b) launch LiveCode (it opens in offline mode) > c) reconnect your development machine to the internet > d) continue making awesome apps with LC > > > > ----- > "The first 90% of the task takes 90% of the time, and the last 10% takes > the other 90% of the time." > Peter M. Brigham > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution- > User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From iphonelagi at gmail.com Thu Feb 15 05:39:44 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 15 Feb 2018 10:39:44 +0000 Subject: Livecode.com server down In-Reply-To: <1518681474880-0.post@n4.nabble.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> Message-ID: There is NO reason at all for there not to be a backup activation server with a downloads directory to boot - cost is not prohibitive $8 a month or so on HostM or $5 a month on digital ocean if a Virtual Server is needed. Lagi On 15 February 2018 at 07:57, Dave Kilroy via use-livecode < use-livecode at lists.runrev.com> wrote: > What Heather told me the last time this happened was to: > > a) disconnect your development machine from the internet > b) launch LiveCode (it opens in offline mode) > c) reconnect your development machine to the internet > d) continue making awesome apps with LC > > > > ----- > "The first 90% of the task takes 90% of the time, and the last 10% takes > the other 90% of the time." > Peter M. Brigham > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution- > User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Thu Feb 15 11:27:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Feb 2018 16:27:03 +0000 Subject: New Wierd Display Bug In-Reply-To: <1475f6da-1c3f-8ea4-3d2d-2ae1a3f3e24d@sonic.net> References: <698C56A1-BD22-473A-862C-8F7009780A50@iotecdigital.com> <1475f6da-1c3f-8ea4-3d2d-2ae1a3f3e24d@sonic.net> Message-ID: Heh heh. Just laughing at myself. :-) Bob S > On Feb 14, 2018, at 18:00 , Mark Wieder via use-livecode wrote: > > On 02/14/2018 05:06 PM, Tom Glod via use-livecode wrote: >> sounds like a great time bob :) > > Yeah. Somebody's been having too much fun. > > -- > 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 Thu Feb 15 11:44:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Feb 2018 16:44:35 +0000 Subject: how to format text for copy-pasting as a spreadsheet table In-Reply-To: References: <8FB9FFAD-98CF-4704-94B6-FA9D58C7AC81@dicod.com> <89878752-1B23-43A9-8B6F-29C5879B68EB@livecode.org> Message-ID: CTRL-K is the standard keyboard equivalent, but LC does not respond to that. I suppose you can have a frontscript with a rawkeyDown handler that checks for CTRL-K (ascii 107) then put numToChar(11) into the selection. Remember to pass rawKeyDown. BTW I also use this to trap for other keys like cmd-C,X,Z,V so I can handle those functions properly when I have custom menus. Bob S > On Feb 15, 2018, at 24:13 , J. Landman Gay via use-livecode wrote: > > On 2/14/18 7:53 PM, Paul Hibbert via use-livecode wrote: >> As far as I can see, importing a table (with returns in a cell) info into LiveCode is much trickier, mainly because LiveCode doesn?t appear to support soft returns within a table cell, > > I don't know if it applies to table cells, but LC supports soft line breaks in fields using numToChar(11). It doesn't work when dontWrap is true though, which may be the case in cells. > > I'm still trying to figure out how to type that. If I need one in a field I have to insert it via script. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Feb 15 11:51:14 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Feb 2018 16:51:14 +0000 Subject: Levure update 0.9.5 In-Reply-To: References: Message-ID: Levure Framework is a method for creating LC applications that leverage Script Only stacks for the code so that versioning and distribution systems like GitHub can be used in the development process. (Trevor will correct me if I am wrong). Even if such a system is not used, multiuser development systems can be leveraged by limiting write access to any script only stack file to a single user. Bob S > On Feb 15, 2018, at 01:15 , Pi Digital via use-livecode wrote: > > Hi Trevor > > Your readme.md and your posts here could do with a description of what Levure is and does. Just use the first paragraph from your wiki. > > All the best > > Sean Cole > Pi Digital > >> On 14 Feb 2018, at 16:38, Trevor DeVore via use-livecode wrote: >> >> Howdy folks, >> >> Version 0.9.5 of the Levure framework is now available. >> >> https://github.com/trevordevore/levure/releases >> >> -- >> Trevor DeVore >> ScreenSteps >> www.screensteps.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 bobsneidar at iotecdigital.com Thu Feb 15 11:52:52 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Feb 2018 16:52:52 +0000 Subject: Livecode.com server down In-Reply-To: References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> Message-ID: The hackers if any good would attack those as well. We have a good workaround. Bob S > On Feb 15, 2018, at 02:39 , Lagi Pittas via use-livecode wrote: > > There is NO reason at all for there not to be a backup activation server > with a downloads directory to boot - cost is not prohibitive $8 a month or > so on HostM or $5 a month on digital ocean if a Virtual Server is needed. > > Lagi From ahsoftware at sonic.net Thu Feb 15 12:12:23 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 15 Feb 2018 09:12:23 -0800 Subject: Livecode.com server down In-Reply-To: <1518681474880-0.post@n4.nabble.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> Message-ID: On 02/14/2018 11:57 PM, Dave Kilroy via use-livecode wrote: > What Heather told me the last time this happened was to: > > a) disconnect your development machine from the internet > b) launch LiveCode (it opens in offline mode) > c) reconnect your development machine to the internet > d) continue making awesome apps with LC Dave- Thanks, yes, but this was a different situation. I was trying to install a new version in a new system, so I needed to install a license. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Thu Feb 15 12:13:55 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 15 Feb 2018 09:13:55 -0800 Subject: Livecode.com server down In-Reply-To: References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> Message-ID: <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> On 02/15/2018 01:47 AM, Kevin Miller via use-livecode wrote: > Unfortunately we?ve been the subject of a spate of sustained, intensive > hacking attempts. We had a series of incidents the other week and the last > couple of days has been a new round of attempts from a different angle. > We?ve fought them off yet again, but some of our team are very tired. > Heather for one was up half the night. The systems are well designed and > no customer data has been affected. Cloudflare https://www.cloudflare.com/ddos/ -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Thu Feb 15 12:20:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Feb 2018 17:20:53 +0000 Subject: Did numberFormat Break? Message-ID: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> I have this in a script: on mouseUp set the numberFormat to "0.00" put 1.00+1 into tpoextprice breakpoint end mouseUp At this point tpoextprice is 2. Not mind you, 2.00, just 2. Either I am missing something (again) or else numberFormat is broken. Bob S From bonnmike at gmail.com Thu Feb 15 12:27:30 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 15 Feb 2018 10:27:30 -0700 Subject: Livecode.com server down In-Reply-To: <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> Message-ID: It looks like the option to generate offline activation files is version specific, but if it were me I think I'd generate files for the version I was most likely to install and carry them on a usb stick and/or add them to a place I could get to them on a droplet that I could easily spin up if needed. The usb stick (complete with installers?) would be a great choice simply because no matter how good the remote activation site is, if the internet drops at your location, you can still get things running using a sneakernet usb. On Thu, Feb 15, 2018 at 10:13 AM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 02/15/2018 01:47 AM, Kevin Miller via use-livecode wrote: > >> Unfortunately we?ve been the subject of a spate of sustained, intensive >> hacking attempts. We had a series of incidents the other week and the last >> couple of days has been a new round of attempts from a different angle. >> We?ve fought them off yet again, but some of our team are very tired. >> Heather for one was up half the night. The systems are well designed and >> no customer data has been affected. >> > > > Cloudflare > https://www.cloudflare.com/ddos/ > > > -- > 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 heather.williams11 at btinternet.com Thu Feb 15 12:28:58 2018 From: heather.williams11 at btinternet.com (Heather Laine) Date: Thu, 15 Feb 2018 17:28:58 +0000 Subject: Livecode.com server down In-Reply-To: References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> Message-ID: Did you check your account to see if it was available? The server was not down last night for more than about 60 seconds (as I well know, being awake for large portions of it). The message you saw sounds like the standard could not contact server message, meaning you need an offline license file. It doesn't mean the server is down. If you were installing a version older than 6.0 you will always get this message and always require an offline file. For info on how to do it: http://lessons.livecode.com/m/4072/l/20027-how-do-i-manually-activate-livecode Regards, Heather > On 15 Feb 2018, at 17:12, Mark Wieder via use-livecode wrote: > > On 02/14/2018 11:57 PM, Dave Kilroy via use-livecode wrote: > > What Heather told me the last time this happened was to: > > > > a) disconnect your development machine from the internet > > b) launch LiveCode (it opens in offline mode) > > c) reconnect your development machine to the internet > > d) continue making awesome apps with LC > > Dave- > > Thanks, yes, but this was a different situation. I was trying to install a new version in a new system, so I needed to install a license. > > -- > 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 klaus at major-k.de Thu Feb 15 12:34:44 2018 From: klaus at major-k.de (Klaus major-k) Date: Thu, 15 Feb 2018 18:34:44 +0100 Subject: Did numberFormat Break? In-Reply-To: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> References: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> Message-ID: Hi Bob, > Am 15.02.2018 um 18:20 schrieb Bob Sneidar via use-livecode : > > I have this in a script: > > on mouseUp > set the numberFormat to "0.00" > put 1.00+1 into tpoextprice > breakpoint put tpoextprice > end mouseUp > At this point tpoextprice is 2. Not mind you, 2.00, just 2. Adding this, will put 2.00 into the message box. LC 8.1.9, Mac. So maybe the debugger does just not display the correct number? > Either I am missing something (again) or else numberFormat is broken. > > Bob S Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bonnmike at gmail.com Thu Feb 15 12:37:34 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 15 Feb 2018 10:37:34 -0700 Subject: Did numberFormat Break? In-Reply-To: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> References: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> Message-ID: If I recall what I read way back, I think the numberrformat only applies to containers other than variables. If you were to put tpoextprice into field "field" the numberformat should be applied correctly. I think the reason for this is that numberformat can be used to add non-number chars ($) but the number in the variable needs to remain a number. Its only when its dropped somewhere that the changes are applied. On Thu, Feb 15, 2018 at 10:20 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I have this in a script: > > on mouseUp > set the numberFormat to "0.00" > put 1.00+1 into tpoextprice > breakpoint > end mouseUp > > At this point tpoextprice is 2. Not mind you, 2.00, just 2. > > Either I am missing something (again) or else numberFormat is broken. > > 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 Thu Feb 15 12:54:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Feb 2018 17:54:41 +0000 Subject: Did numberFormat Break? In-Reply-To: References: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> Message-ID: Thanks Klaus and Mike indeed you are correct. I keep making the mistake of reading the dictionary. ;-P I don't see anything there that refers to only working with containers, only that the results of the calculation is affected. But it's more complex than even that. Given: set the numberFormat to "0.00" put 0 into textprice put textprice displays 0, not 0.00. So a calculation *must* be performed on a variable *and* the variable put into a container in order for this to take effect. What I am going to do instead to initialize a numberic variable is to add 0 to a variable. The second part I am sketchy on tho. I think the script editor variable watcher is itself a livecode stack with livecode fields, so it ought to reflect the results of numberFormat, however numberFormat applies only to the local script it is set in, so how that could be accomplished I do not know. I think I will put in a feature request to update the dictionary to reflect this. Bob S > On Feb 15, 2018, at 09:34 , Klaus major-k via use-livecode wrote: > > Hi Bob, > >> Am 15.02.2018 um 18:20 schrieb Bob Sneidar via use-livecode : >> >> I have this in a script: >> >> on mouseUp >> set the numberFormat to "0.00" >> put 1.00+1 into tpoextprice >> breakpoint > > put tpoextprice > >> end mouseUp >> At this point tpoextprice is 2. Not mind you, 2.00, just 2. > > Adding this, will put 2.00 into the message box. LC 8.1.9, Mac. > So maybe the debugger does just not display the correct number? > >> Either I am missing something (again) or else numberFormat is broken. >> >> Bob S > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Feb 15 12:59:01 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Feb 2018 17:59:01 +0000 Subject: Did numberFormat Break? In-Reply-To: References: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> Message-ID: <9EA2A5CC-DEDD-48E4-BE0D-5C4F0949F3EB@iotecdigital.com> On second thot, I think I will just use my own number formatting function. Bob S > On Feb 15, 2018, at 09:54 , Bob Sneidar via use-livecode wrote: > > Thanks Klaus and Mike indeed you are correct. I keep making the mistake of reading the dictionary. ;-P I don't see anything there that refers to only working with containers, only that the results of the calculation is affected. > > But it's more complex than even that. Given: > > set the numberFormat to "0.00" > put 0 into textprice > put textprice > > displays 0, not 0.00. So a calculation *must* be performed on a variable *and* the variable put into a container in order for this to take effect. What I am going to do instead to initialize a numberic variable is to add 0 to a variable. > > The second part I am sketchy on tho. I think the script editor variable watcher is itself a livecode stack with livecode fields, so it ought to reflect the results of numberFormat, however numberFormat applies only to the local script it is set in, so how that could be accomplished I do not know. > > I think I will put in a feature request to update the dictionary to reflect this. > > Bob S > > >> On Feb 15, 2018, at 09:34 , Klaus major-k via use-livecode wrote: >> >> Hi Bob, >> >>> Am 15.02.2018 um 18:20 schrieb Bob Sneidar via use-livecode : >>> >>> I have this in a script: >>> >>> on mouseUp >>> set the numberFormat to "0.00" >>> put 1.00+1 into tpoextprice >>> breakpoint >> >> put tpoextprice >> >>> end mouseUp >>> At this point tpoextprice is 2. Not mind you, 2.00, just 2. >> >> Adding this, will put 2.00 into the message box. LC 8.1.9, Mac. >> So maybe the debugger does just not display the correct number? >> >>> Either I am missing something (again) or else numberFormat is broken. >>> >>> Bob S >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> http://www.major-k.de >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Feb 15 13:27:54 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Feb 2018 12:27:54 -0600 Subject: Did numberFormat Break? In-Reply-To: References: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> Message-ID: <1619ab90c10.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> It's not just containers, anything that converts the implicit numeric type to text will honor numberformat. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 15, 2018 11:56:33 AM Bob Sneidar via use-livecode wrote: > Thanks Klaus and Mike indeed you are correct. I keep making the mistake of > reading the dictionary. ;-P I don't see anything there that refers to only > working with containers, only that the results of the calculation is affected. > > But it's more complex than even that. Given: > > set the numberFormat to "0.00" > put 0 into textprice > put textprice > > displays 0, not 0.00. So a calculation *must* be performed on a variable > *and* the variable put into a container in order for this to take effect. > What I am going to do instead to initialize a numberic variable is to add 0 > to a variable. > > The second part I am sketchy on tho. I think the script editor variable > watcher is itself a livecode stack with livecode fields, so it ought to > reflect the results of numberFormat, however numberFormat applies only to > the local script it is set in, so how that could be accomplished I do not know. > > I think I will put in a feature request to update the dictionary to reflect > this. > > Bob S > > >> On Feb 15, 2018, at 09:34 , Klaus major-k via use-livecode >> wrote: >> >> Hi Bob, >> >>> Am 15.02.2018 um 18:20 schrieb Bob Sneidar via use-livecode >>> : >>> >>> I have this in a script: >>> >>> on mouseUp >>> set the numberFormat to "0.00" >>> put 1.00+1 into tpoextprice >>> breakpoint >> >> put tpoextprice >> >>> end mouseUp >>> At this point tpoextprice is 2. Not mind you, 2.00, just 2. >> >> Adding this, will put 2.00 into the message box. LC 8.1.9, Mac. >> So maybe the debugger does just not display the correct number? >> >>> Either I am missing something (again) or else numberFormat is broken. >>> >>> Bob S >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> http://www.major-k.de >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Thu Feb 15 13:37:00 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 15 Feb 2018 18:37:00 +0000 Subject: Livecode and Google Analytics? Message-ID: <414A2F74-DCB3-4F80-A304-A33516377EA3@clearvisiontech.com> Greetings! Is there a method to implement Google Analytics in a LiveCode Mobile app? Client wants to see the analytic data. -Dan From brian at milby7.com Thu Feb 15 13:36:54 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 15 Feb 2018 18:36:54 +0000 Subject: Did numberFormat Break? In-Reply-To: <1619ab90c10.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> <1619ab90c10.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Internally the type of ?0? will be text initially which is probably why the number format isn?t applied. Any math will convert it to a number. This is something that should be addressed once we have optional type declaration for variables. On Thu, Feb 15, 2018 at 12:28 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > It's not just containers, anything that converts the implicit numeric type > to text will honor numberformat. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On February 15, 2018 11:56:33 AM Bob Sneidar via use-livecode > wrote: > > > Thanks Klaus and Mike indeed you are correct. I keep making the mistake > of > > reading the dictionary. ;-P I don't see anything there that refers to > only > > working with containers, only that the results of the calculation is > affected. > > > > But it's more complex than even that. Given: > > > > set the numberFormat to "0.00" > > put 0 into textprice > > put textprice > > > > displays 0, not 0.00. So a calculation *must* be performed on a variable > > *and* the variable put into a container in order for this to take effect. > > What I am going to do instead to initialize a numberic variable is to > add 0 > > to a variable. > > > > The second part I am sketchy on tho. I think the script editor variable > > watcher is itself a livecode stack with livecode fields, so it ought to > > reflect the results of numberFormat, however numberFormat applies only to > > the local script it is set in, so how that could be accomplished I do > not know. > > > > I think I will put in a feature request to update the dictionary to > reflect > > this. > > > > Bob S > > > > > >> On Feb 15, 2018, at 09:34 , Klaus major-k via use-livecode > >> wrote: > >> > >> Hi Bob, > >> > >>> Am 15.02.2018 um 18:20 schrieb Bob Sneidar via use-livecode > >>> : > >>> > >>> I have this in a script: > >>> > >>> on mouseUp > >>> set the numberFormat to "0.00" > >>> put 1.00+1 into tpoextprice > >>> breakpoint > >> > >> put tpoextprice > >> > >>> end mouseUp > >>> At this point tpoextprice is 2. Not mind you, 2.00, just 2. > >> > >> Adding this, will put 2.00 into the message box. LC 8.1.9, Mac. > >> So maybe the debugger does just not display the correct number? > >> > >>> Either I am missing something (again) or else numberFormat is broken. > >>> > >>> Bob S > >> > >> Best > >> > >> Klaus > >> > >> -- > >> Klaus Major > >> http://www.major-k.de > >> klaus at major-k.de > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Thu Feb 15 16:15:44 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 15 Feb 2018 13:15:44 -0800 Subject: Livecode.com server down In-Reply-To: References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> Message-ID: <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> On 02/15/2018 09:28 AM, Heather Laine via use-livecode wrote: > Did you check your account to see if it was available? The server was not down last night for more than about 60 seconds (as I well know, being awake for large portions of it). The message you saw sounds like the standard could not contact server message, meaning you need an offline license file. It doesn't mean the server is down. If you were installing a version older than 6.0 you will always get this message and always require an offline file. For info on how to do it: > > http://lessons.livecode.com/m/4072/l/20027-how-do-i-manually-activate-livecode Thanks for the patronizing tone, Heather. "check your account"? The web sites were down for several hours. Yes, that message was after online activation didn't work and I then couldn't generate an offline license because *the web sites were down*. And this was installing a new copy of 9.0dp11. I finally copied a license file from another machine and put it into place. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Thu Feb 15 16:18:00 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 15 Feb 2018 13:18:00 -0800 Subject: Livecode.com server down In-Reply-To: References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> Message-ID: <00b29df1-2bdc-9845-8d93-85cd9e4e2a88@sonic.net> On 02/15/2018 09:27 AM, Mike Bonner via use-livecode wrote: > It looks like the option to generate offline activation files is version > specific, but if it were me I think I'd generate files for the version I > was most likely to install and carry them on a usb stick and/or add them to > a place I could get to them on a droplet that I could easily spin up if > needed. The usb stick (complete with installers?) would be a great choice > simply because no matter how good the remote activation site is, if the > internet drops at your location, you can still get things running using a > sneakernet usb. Yep. GMTA. I ended up doing something quite similar. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Thu Feb 15 16:30:08 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 15 Feb 2018 16:30:08 -0500 Subject: Did numberFormat Break? In-Reply-To: <9EA2A5CC-DEDD-48E4-BE0D-5C4F0949F3EB@iotecdigital.com> References: <5BAB6DFA-E811-41A9-8FDA-6069392D77D2@iotecdigital.com> <9EA2A5CC-DEDD-48E4-BE0D-5C4F0949F3EB@iotecdigital.com> Message-ID: I'm sure this will start some historical flame war, but why use numberFormat (an archaic leftover from HyperCard) or invest the time to write your own? LiveCode has a great formatting function built in - format(baseString [, valuesList]) put? format("%.2f",1.00+1) into tpoextprice -- does what you would get with numberFormat as "0.00" but in all circumstances See http://livecode.com/resources/api/#livecode_script/format Strike that, the entry on the web site has the formatting of the baseString options all messed up. Check the Dictionary on your copy of LiveCode instead. On 2/15/2018 12:59 PM, Bob Sneidar via use-livecode wrote: > On second thot, I think I will just use my own number formatting function. > > Bob S > > >> On Feb 15, 2018, at 09:54 , Bob Sneidar via use-livecode wrote: >> >> Thanks Klaus and Mike indeed you are correct. I keep making the mistake of reading the dictionary. ;-P I don't see anything there that refers to only working with containers, only that the results of the calculation is affected. >> >> But it's more complex than even that. Given: >> >> set the numberFormat to "0.00" >> put 0 into textprice >> put textprice >> >> displays 0, not 0.00. So a calculation *must* be performed on a variable *and* the variable put into a container in order for this to take effect. What I am going to do instead to initialize a numberic variable is to add 0 to a variable. >> >> The second part I am sketchy on tho. I think the script editor variable watcher is itself a livecode stack with livecode fields, so it ought to reflect the results of numberFormat, however numberFormat applies only to the local script it is set in, so how that could be accomplished I do not know. >> >> I think I will put in a feature request to update the dictionary to reflect this. >> >> Bob S >> >> >>> On Feb 15, 2018, at 09:34 , Klaus major-k via use-livecode wrote: >>> >>> Hi Bob, >>> >>>> Am 15.02.2018 um 18:20 schrieb Bob Sneidar via use-livecode : >>>> >>>> I have this in a script: >>>> >>>> on mouseUp >>>> set the numberFormat to "0.00" >>>> put 1.00+1 into tpoextprice >>>> breakpoint >>> put tpoextprice >>> >>>> end mouseUp >>>> At this point tpoextprice is 2. Not mind you, 2.00, just 2. >>> Adding this, will put 2.00 into the message box. LC 8.1.9, Mac. >>> So maybe the debugger does just not display the correct number? >>> >>>> Either I am missing something (again) or else numberFormat is broken. >>>> >>>> Bob S >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> http://www.major-k.de >>> klaus at major-k.de >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 15 16:35:44 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 15 Feb 2018 23:35:44 +0200 Subject: Livecode.com server down In-Reply-To: <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> Message-ID: <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> I have problems with mu ISP about once every 4 or 5 months: It is NEVER their fault: it's because I use Linux, because I use FreeDOS, because I use Macintosh, because I am "stupid" enough not to use Windows; it's because I have 2 computers within 3 feet of each other, it's because my hair is orange (OK, OK, I made that one up). This IS the way the world goes round these days: nobody will accept responisibility for their mistakes. After loads of "kicking" my ISP generally send someone round to look at my cable modem: these are always men who "go all funny" because they have to ask me how to use Firefox or Safari to get to the "innards" of either my modem or my switch. One said to me, just before the New Year; "You wouldn't have these problems if you used Windows". Which is palpable 'Bollo': the sneering tone didn't help much. The bloke tried to wiggle his way out of things even more when my wife pointed out that our 2 Android ARM phones and my Android Intel tablet couldn't pick up a wifi signal either. Of course the above has got NOTHING to do with LiveCode: heaven forfend that anyone suggest that they are capable of being rude or otherwise . . . Richmond. On 15/2/2018 11:15 pm, Mark Wieder via use-livecode wrote: > On 02/15/2018 09:28 AM, Heather Laine via use-livecode wrote: >> Did you check your account to see if it was available? The server was >> not down last night for more than about 60 seconds (as I well know, >> being awake for large portions of it). The message you saw sounds >> like the standard could not contact server message, meaning you need >> an offline license file. It doesn't mean the server is down. If you >> were installing a version older than 6.0 you will always get this >> message and always require an offline file. For info on how to do it: >> >> http://lessons.livecode.com/m/4072/l/20027-how-do-i-manually-activate-livecode >> >> > > Thanks for the patronizing tone, Heather. > > "check your account"? The web sites were down for several hours. > Yes, that message was after online activation didn't work and I then > couldn't generate an offline license because *the web sites were down*. > And this was installing a new copy of 9.0dp11. I finally copied a > license file from another machine and put it into place. > From richmondmathewson at gmail.com Thu Feb 15 16:37:43 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 15 Feb 2018 23:37:43 +0200 Subject: Livecode.com server down In-Reply-To: <00b29df1-2bdc-9845-8d93-85cd9e4e2a88@sonic.net> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> <00b29df1-2bdc-9845-8d93-85cd9e4e2a88@sonic.net> Message-ID: <3aaf0245-4adc-9c9a-2db6-193731fef3f6@gmail.com> I have a USB stick full of off-line activation licences all the way back to 7.1.4 as I have a variety of computers in various places in our flat, and one in our country cottage, that are not internet enabled. Richmond. On 15/2/2018 11:18 pm, Mark Wieder via use-livecode wrote: > On 02/15/2018 09:27 AM, Mike Bonner via use-livecode wrote: >> It looks like the option to generate offline activation files is version >> specific, but if it were me I think I'd generate files for the version I >> was most likely to install and carry them on a usb stick and/or add >> them to >> a place I could get to them on a droplet that I could easily spin up if >> needed. The usb stick (complete with installers?) would be a great >> choice >> simply because no matter how good the remote activation site is, if the >> internet drops at your location, you can still get things running >> using a >> sneakernet usb. > > > Yep. GMTA. I ended up doing something quite similar. > From ahsoftware at sonic.net Thu Feb 15 16:56:36 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 15 Feb 2018 13:56:36 -0800 Subject: Livecode.com server down In-Reply-To: <3aaf0245-4adc-9c9a-2db6-193731fef3f6@gmail.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> <00b29df1-2bdc-9845-8d93-85cd9e4e2a88@sonic.net> <3aaf0245-4adc-9c9a-2db6-193731fef3f6@gmail.com> Message-ID: <979c10cf-a1ca-3bba-535b-bc7675c5c2b3@sonic.net> On 02/15/2018 01:37 PM, Richmond Mathewson via use-livecode wrote: > I have a USB stick full of off-line activation licences all the way back > to 7.1.4 as I have > a variety of computers in various places in our flat, and one in our > country cottage, that are not internet enabled. ...and here's the problem with that: if you need to install LC on a computer, it's *your* license you'll be using, with *your* permissions. -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Thu Feb 15 17:10:00 2018 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 16 Feb 2018 00:10:00 +0200 Subject: Livecode.com server down In-Reply-To: <979c10cf-a1ca-3bba-535b-bc7675c5c2b3@sonic.net> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> <00b29df1-2bdc-9845-8d93-85cd9e4e2a88@sonic.net> <3aaf0245-4adc-9c9a-2db6-193731fef3f6@gmail.com> <979c10cf-a1ca-3bba-535b-bc7675c5c2b3@sonic.net> Message-ID: <147ac96c-ef69-3dd5-d198-6bb0024042ca@gmail.com> Well, in my case they ARE all my computers, and only I ever use them for LiveCode programming. Richmond. On 15.02.2018 23:56, Mark Wieder via use-livecode wrote: > On 02/15/2018 01:37 PM, Richmond Mathewson via use-livecode wrote: >> I have a USB stick full of off-line activation licences all the way >> back to 7.1.4 as I have >> a variety of computers in various places in our flat, and one in our >> country cottage, that are not internet enabled. > > ...and here's the problem with that: if you need to install LC on a > computer, it's *your* license you'll be using, with *your* permissions. > From ahsoftware at sonic.net Thu Feb 15 17:12:26 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 15 Feb 2018 14:12:26 -0800 Subject: Livecode.com server down In-Reply-To: <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> Message-ID: <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> On 02/15/2018 01:35 PM, Richmond Mathewson via use-livecode wrote: > This IS the way the world goes round these days: nobody will accept > responisibility for their > mistakes. ...backing down a bit on this... The whole LC team has been through a harrowing couple of days dealing with this, and it's not "their mistakes". Yes, this does have, in some cases severe, repercussions for us and there are ways to ameliorate the problem (failover servers in different regions, for instance, something easy to accomplish with aws). But pointing the finger at RunRev for a dDos attack isn't fair. > One said to me, just before the New Year; "You wouldn't have these > problems if you used Windows". Heh. Yep. You'd have *different* problems. -- Mark Wieder ahsoftware at gmail.com From MikeKerner at roadrunner.com Thu Feb 15 17:29:12 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 15 Feb 2018 17:29:12 -0500 Subject: Levure update 0.9.5 In-Reply-To: References: Message-ID: Check the wiki instead of the readme.md. The documentation is extensive. https://github.com/trevordevore/levure/wiki From lists at mangomultimedia.com Thu Feb 15 18:42:34 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 15 Feb 2018 23:42:34 +0000 Subject: Levure update 0.9.5 In-Reply-To: References: Message-ID: On Thu, Feb 15, 2018 at 4:30 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Check the wiki instead of the readme.md. The documentation is extensive. > https://github.com/trevordevore/levure/wiki The wiki is definitely where you want to end up. The readme has a short description and points users to the wiki documentation to learn more. ? Trevor DeVore > From MikeKerner at roadrunner.com Thu Feb 15 23:06:18 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 16 Feb 2018 04:06:18 +0000 Subject: LC TouchBar Macros Message-ID: Has anyone designed any LC macros for the touchbar or any special trackpad gestures? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From hh at hyperhh.de Fri Feb 16 03:04:07 2018 From: hh at hyperhh.de (hh) Date: Fri, 16 Feb 2018 09:04:07 +0100 Subject: LC-Magick #12 Message-ID: Added today #12: Before-After-Image Before-After-Image shows horizontally or vertically an "original" image (image "before") and a part of it visually replaced by the changed image (image "after"). You select the proportions of the parts by sliders. The stack is "pure" LC Script and runs with LC 6/7/8/9 on Mac/Win/linux. ========================================================================= The LC-Magick Collection. LC-Magick #12 - Before-After-Image (hh) http://forums.livecode.com/viewtopic.php?p=164067#p164067 LC-Magick #11 - ReflectImage (hh) http://forums.livecode.com/viewtopic.php?p=163935#p163935 LC-Magick #10 - Color Tonality Curve (hh) http://forums.livecode.com/viewtopic.php?p=163787#p163787 LC-Magick #9 - Selective Gray (hh) http://forums.livecode.com/viewtopic.php?p=154277#p154277 LC-Magick #8 - MoonEffect (Fisheye) (hh and bn) http://forums.livecode.com/viewtopic.php?p=153159#p153159 LC-Magick #7 - Cuboid (hh) http://forums.livecode.com/viewtopic.php?p=153076#p153076 LC-Magick #6 - Bilinear Perspective Distortion (hh and bn) http://forums.livecode.com/viewtopic.php?p=150757#p150757 LC-Magick #5 - Circular/Polar Image Distortion (hh and bn) http://forums.livecode.com/viewtopic.php?p=149999#p149999 LC-Magick #4 - Linear Perspective Image Distortion (hh) http://forums.livecode.com/viewtopic.php?p=148647#p148647 LC-Magick #3 - Image Multiplexing (hh) http://forums.livecode.com/viewtopic.php?p=141272#p141272 LC-Magick #2 - Pointillize (hh) http://forums.livecode.com/viewtopic.php?p=141051#p141051 LC-Magick #1 - Blur and Pixelate (ScottR) http://tactilemedia.com/blog/2016/03/26/update-blur-effect-plus-pixelize-bonus/ A lot of the ideas above is based on ideas presented in imageMagick's documentation, see http://www.imagemagick.org/Usage/ From heather.williams11 at btinternet.com Fri Feb 16 04:38:39 2018 From: heather.williams11 at btinternet.com (Heather Laine) Date: Fri, 16 Feb 2018 09:38:39 +0000 Subject: Livecode.com server down In-Reply-To: <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> Message-ID: <08ED5988-E443-436A-8593-3E4647A739D1@btinternet.com> Folks. I think I'm due to issue an apology for the tone I used. I did not intend it to come over the way it did, I'm sorry. Let us move on. Any lessons that can be learned, will be learned, we never stand still on these things. Best Regards to all Heather > On 15 Feb 2018, at 22:12, Mark Wieder via use-livecode wrote: > > On 02/15/2018 01:35 PM, Richmond Mathewson via use-livecode wrote: > >> This IS the way the world goes round these days: nobody will accept responisibility for their >> mistakes. > > ...backing down a bit on this... > The whole LC team has been through a harrowing couple of days dealing with this, and it's not "their mistakes". Yes, this does have, in some cases severe, repercussions for us and there are ways to ameliorate the problem (failover servers in different regions, for instance, something easy to accomplish with aws). But pointing the finger at RunRev for a dDos attack isn't fair. > >> One said to me, just before the New Year; "You wouldn't have these problems if you used Windows". > > Heh. Yep. You'd have *different* problems. > > -- > 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 pystcat at gmail.com Fri Feb 16 08:09:02 2018 From: pystcat at gmail.com (PystCat) Date: Fri, 16 Feb 2018 08:09:02 -0500 Subject: Livecode.com server down In-Reply-To: <08ED5988-E443-436A-8593-3E4647A739D1@btinternet.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> <08ED5988-E443-436A-8593-3E4647A739D1@btinternet.com> Message-ID: <3A474B4C-6B6D-45CF-B170-7B07148D2E54@gmail.com> The problem with that, Heather, was I didn't see anything wrong with your tone. I think someone was reading waaaay to much into your answer and feeling a little hurt by what had happened to them. Paul > On Feb 16, 2018, at 4:38 AM, Heather Laine via use-livecode wrote: > > Folks. I think I'm due to issue an apology for the tone I used. I did not intend it to come over the way it did, I'm sorry. > > Let us move on. Any lessons that can be learned, will be learned, we never stand still on these things. > > Best Regards to all > > Heather > >> On 15 Feb 2018, at 22:12, Mark Wieder via use-livecode wrote: >> >> On 02/15/2018 01:35 PM, Richmond Mathewson via use-livecode wrote: >> >>> This IS the way the world goes round these days: nobody will accept responisibility for their >>> mistakes. >> >> ...backing down a bit on this... >> The whole LC team has been through a harrowing couple of days dealing with this, and it's not "their mistakes". Yes, this does have, in some cases severe, repercussions for us and there are ways to ameliorate the problem (failover servers in different regions, for instance, something easy to accomplish with aws). But pointing the finger at RunRev for a dDos attack isn't fair. >> >>> One said to me, just before the New Year; "You wouldn't have these problems if you used Windows". >> >> Heh. Yep. You'd have *different* problems. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Fri Feb 16 10:08:40 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Fri, 16 Feb 2018 15:08:40 +0000 Subject: [ANN] Release 8.1.9 In-Reply-To: <000601d3a20b$088043c0$1980cb40$@net> References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <438a889c-f2e7-226a-37ae-7cde4db039e4@sonic.net> <000601d3a20b$088043c0$1980cb40$@net> Message-ID: Hi, I was having an issue building standalones for iOS when I up'd to 8.1.9 and Xcode 9.2. I tried with an empty stack and everything then learnt that a setting within XCode was the issue. In preferences>Locations there is a selector for 'Command Line Tools'. I had to select the latest version to make it work. This is just a heads up for anyone who runs into the same issue. Sean Cole *Pi Digital * On 10 February 2018 at 01:03, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > "Jazz is not dead, it just smells funny" > Frank Zappa > > 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 Mark Wieder via use-livecode > Sent: Friday, February 09, 2018 7:01 PM > To: Ralph DiMola via use-livecode > Cc: Mark Wieder > Subject: Re: [ANN] Release 8.1.9 > > On 02/09/2018 09:07 AM, Ralph DiMola via use-livecode wrote: > > > ...\Roaming\... > > Hah! I was listening to Ornette's "Rambling" when that email arrived. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Fri Feb 16 10:17:34 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 16 Feb 2018 15:17:34 +0000 Subject: [ANN] Release 8.1.9 In-Reply-To: References: <7BE50B67-A9EB-4322-A831-468FC6044E75@major-k.de> <5e2ad764-e132-94a8-d7ba-16f09fce71d2@sonic.net> <3D0FD945-A578-4DDD-9EE4-90829BE4C58E@major-k.de> <005401d3a1c8$71f921c0$55eb6540$@net> <438a889c-f2e7-226a-37ae-7cde4db039e4@sonic.net> <000601d3a20b$088043c0$1980cb40$@net> Message-ID: Hi Sean, Thanks for that. I should have posted that here as well. For anyone interested, see: http://forums.livecode.com/viewtopic.php?f=49&t=30611 http://quality.livecode.com/show_bug.cgi?id=20936 Best, Panos -- On Fri, Feb 16, 2018 at 3:08 PM, Sean Cole (Pi) via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > I was having an issue building standalones for iOS when I up'd to 8.1.9 and > Xcode 9.2. I tried with an empty stack and everything then learnt that a > setting within XCode was the issue. In preferences>Locations there is a > selector for 'Command Line Tools'. I had to select the latest version to > make it work. This is just a heads up for anyone who runs into the same > issue. > > Sean Cole > *Pi Digital * > > On 10 February 2018 at 01:03, Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > "Jazz is not dead, it just smells funny" > > Frank Zappa > > > > 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 Mark Wieder via use-livecode > > Sent: Friday, February 09, 2018 7:01 PM > > To: Ralph DiMola via use-livecode > > Cc: Mark Wieder > > Subject: Re: [ANN] Release 8.1.9 > > > > On 02/09/2018 09:07 AM, Ralph DiMola via use-livecode wrote: > > > > > ...\Roaming\... > > > > Hah! I was listening to Ornette's "Rambling" when that email arrived. > > > > -- > > Mark Wieder > > ahsoftware at gmail.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription > > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 16 10:37:16 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Feb 2018 15:37:16 +0000 Subject: Livecode.com server down In-Reply-To: <3A474B4C-6B6D-45CF-B170-7B07148D2E54@gmail.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> <08ED5988-E443-436A-8593-3E4647A739D1@btinternet.com> <3A474B4C-6B6D-45CF-B170-7B07148D2E54@gmail.com> Message-ID: I was going to post the same thing. Bob S > On Feb 16, 2018, at 05:09 , PystCat via use-livecode wrote: > > The problem with that, Heather, was I didn't see anything wrong with your tone. > I think someone was reading waaaay to much into your answer and feeling a little hurt by what had happened to them. > > Paul From bobsneidar at iotecdigital.com Fri Feb 16 12:40:55 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Feb 2018 17:40:55 +0000 Subject: dgFail Message-ID: <98998020-DA17-4BA5-A57E-6FB51CA9AD37@iotecdigital.com> Hi all. Given: on mouseUp put the dgDataOfIndex [1] of group "dgPODetail" into aDetailRecord put printKeys(aDetailRecord) into tPrintKeys set the numberFormat to "0.00" put aDetailRecord ["poitemqty"] * aDetailRecord ["poitemunitprice"] into tExtPrice put tExtPrice * (aDetailRecord ["poitemdiscount"] /100) into tDiscount put tExtPrice - tDiscount into tItemExtPrice put round(tItemExtPrice, 2) into aDetailRecord ["poitemextprice"] put printKeys(aDetailRecord) into tPrintKeys put aDetailRecord ["podetailid"] into tpodetailid dispatch findIndex to group "dgpodetail" with "podetailid", tpodetailid put the result into tDetailIndex set the dgDataOfIndex [tDetailIndex] of group "dgPODetail" to aDetailRecord -- NOT WORKING put the dgDataOfIndex [1] of group "dgPODetail" into aDetailRecord put printKeys(aDetailRecord) into tPrintKeys end mouseUp Note the three printKeys() outputs. The first produces a key value pair poitemextprice: 89.99 The second produces a key value pair poitemextprice: 179.98 as it should fter the calculation. Then I set the dgDataOfIndex [1] (the only record in the datagrid) to the array for that record. The datagrid DOES NOT UPDATE. The third print keys produces poitemextprice: 89.99 This has GOT to be a bug. If anyone wants to try to reproduce this, here are the datagrid params. Enter whatever values you want: dgProp[columns] podetailid poitemqty vendorpartnumber poitemdescrip poitemunitprice poitemextprice poitemdiscount dgProp[column labels] ID Qty Part# Description Unit Price Ext Price Disc % dgProp[column widths] 40,40,85,306,100,100,53 Bob S From bobsneidar at iotecdigital.com Fri Feb 16 12:41:58 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Feb 2018 17:41:58 +0000 Subject: dgFail In-Reply-To: <98998020-DA17-4BA5-A57E-6FB51CA9AD37@iotecdigital.com> References: <98998020-DA17-4BA5-A57E-6FB51CA9AD37@iotecdigital.com> Message-ID: <7D3CBE46-7270-42DF-8A1D-787BF1C2A234@iotecdigital.com> LC Business Version 8.1.9 Mac OS X 10.13.3 > On Feb 16, 2018, at 09:40 , Bob Sneidar wrote: > > Hi all. > > Given: > > on mouseUp > put the dgDataOfIndex [1] of group "dgPODetail" into aDetailRecord > put printKeys(aDetailRecord) into tPrintKeys > set the numberFormat to "0.00" > put aDetailRecord ["poitemqty"] * aDetailRecord ["poitemunitprice"] into tExtPrice > put tExtPrice * (aDetailRecord ["poitemdiscount"] /100) into tDiscount > put tExtPrice - tDiscount into tItemExtPrice > put round(tItemExtPrice, 2) into aDetailRecord ["poitemextprice"] > put printKeys(aDetailRecord) into tPrintKeys > put aDetailRecord ["podetailid"] into tpodetailid > dispatch findIndex to group "dgpodetail" with "podetailid", tpodetailid > put the result into tDetailIndex > set the dgDataOfIndex [tDetailIndex] of group "dgPODetail" to aDetailRecord -- NOT WORKING > put the dgDataOfIndex [1] of group "dgPODetail" into aDetailRecord > put printKeys(aDetailRecord) into tPrintKeys > end mouseUp > > Note the three printKeys() outputs. The first produces a key value pair poitemextprice: 89.99 > The second produces a key value pair poitemextprice: 179.98 as it should fter the calculation. > > Then I set the dgDataOfIndex [1] (the only record in the datagrid) to the array for that record. The datagrid DOES NOT UPDATE. The third print keys produces poitemextprice: 89.99 > > This has GOT to be a bug. If anyone wants to try to reproduce this, here are the datagrid params. Enter whatever values you want: > > dgProp[columns] > podetailid > poitemqty > vendorpartnumber > poitemdescrip > poitemunitprice > poitemextprice > poitemdiscount > > dgProp[column labels] > ID > Qty > Part# > Description > Unit Price > Ext Price > Disc % > > dgProp[column widths] > 40,40,85,306,100,100,53 > > > Bob S > From bobsneidar at iotecdigital.com Fri Feb 16 12:43:07 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Feb 2018 17:43:07 +0000 Subject: dgFail In-Reply-To: <7D3CBE46-7270-42DF-8A1D-787BF1C2A234@iotecdigital.com> References: <98998020-DA17-4BA5-A57E-6FB51CA9AD37@iotecdigital.com> <7D3CBE46-7270-42DF-8A1D-787BF1C2A234@iotecdigital.com> Message-ID: <3E63D343-D3D6-436A-9C31-4872B3647328@iotecdigital.com> Also printKeys() is a sqlYoga function. If you don't have it remove those lines and breakpoint at end mouseUp to see the contents of the two array keys. > On Feb 16, 2018, at 09:41 , Bob Sneidar wrote: > > LC Business Version 8.1.9 Mac OS X 10.13.3 > >> On Feb 16, 2018, at 09:40 , Bob Sneidar wrote: >> >> Hi all. >> >> Given: >> >> on mouseUp >> put the dgDataOfIndex [1] of group "dgPODetail" into aDetailRecord >> put printKeys(aDetailRecord) into tPrintKeys >> set the numberFormat to "0.00" >> put aDetailRecord ["poitemqty"] * aDetailRecord ["poitemunitprice"] into tExtPrice >> put tExtPrice * (aDetailRecord ["poitemdiscount"] /100) into tDiscount >> put tExtPrice - tDiscount into tItemExtPrice >> put round(tItemExtPrice, 2) into aDetailRecord ["poitemextprice"] >> put printKeys(aDetailRecord) into tPrintKeys >> put aDetailRecord ["podetailid"] into tpodetailid >> dispatch findIndex to group "dgpodetail" with "podetailid", tpodetailid >> put the result into tDetailIndex >> set the dgDataOfIndex [tDetailIndex] of group "dgPODetail" to aDetailRecord -- NOT WORKING >> put the dgDataOfIndex [1] of group "dgPODetail" into aDetailRecord >> put printKeys(aDetailRecord) into tPrintKeys >> end mouseUp >> >> Note the three printKeys() outputs. The first produces a key value pair poitemextprice: 89.99 >> The second produces a key value pair poitemextprice: 179.98 as it should fter the calculation. >> >> Then I set the dgDataOfIndex [1] (the only record in the datagrid) to the array for that record. The datagrid DOES NOT UPDATE. The third print keys produces poitemextprice: 89.99 >> >> This has GOT to be a bug. If anyone wants to try to reproduce this, here are the datagrid params. Enter whatever values you want: >> >> dgProp[columns] >> podetailid >> poitemqty >> vendorpartnumber >> poitemdescrip >> poitemunitprice >> poitemextprice >> poitemdiscount >> >> dgProp[column labels] >> ID >> Qty >> Part# >> Description >> Unit Price >> Ext Price >> Disc % >> >> dgProp[column widths] >> 40,40,85,306,100,100,53 >> >> >> Bob S >> > From bobsneidar at iotecdigital.com Fri Feb 16 12:48:23 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Feb 2018 17:48:23 +0000 Subject: dgFail In-Reply-To: <7D3CBE46-7270-42DF-8A1D-787BF1C2A234@iotecdigital.com> References: <98998020-DA17-4BA5-A57E-6FB51CA9AD37@iotecdigital.com> <7D3CBE46-7270-42DF-8A1D-787BF1C2A234@iotecdigital.com> Message-ID: I think I just figured it out. Remember our discussion about numberFormat? Remember how the SC variable watcher does not honor the numberFormat?? Well when I call findIndex instead of getting 1, I get 1.00!!! CRAP!!! So now I have to reset numberFormat before calling any DG functions! Bob S > On Feb 16, 2018, at 09:41 , Bob Sneidar via use-livecode wrote: > > LC Business Version 8.1.9 Mac OS X 10.13.3 > >> On Feb 16, 2018, at 09:40 , Bob Sneidar wrote: >> >> Hi all. >> >> Given: >> >> on mouseUp >> put the dgDataOfIndex [1] of group "dgPODetail" into aDetailRecord >> put printKeys(aDetailRecord) into tPrintKeys >> set the numberFormat to "0.00" >> put aDetailRecord ["poitemqty"] * aDetailRecord ["poitemunitprice"] into tExtPrice >> put tExtPrice * (aDetailRecord ["poitemdiscount"] /100) into tDiscount >> put tExtPrice - tDiscount into tItemExtPrice >> put round(tItemExtPrice, 2) into aDetailRecord ["poitemextprice"] >> put printKeys(aDetailRecord) into tPrintKeys >> put aDetailRecord ["podetailid"] into tpodetailid >> dispatch findIndex to group "dgpodetail" with "podetailid", tpodetailid >> put the result into tDetailIndex >> set the dgDataOfIndex [tDetailIndex] of group "dgPODetail" to aDetailRecord -- NOT WORKING >> put the dgDataOfIndex [1] of group "dgPODetail" into aDetailRecord >> put printKeys(aDetailRecord) into tPrintKeys >> end mouseUp >> >> Note the three printKeys() outputs. The first produces a key value pair poitemextprice: 89.99 >> The second produces a key value pair poitemextprice: 179.98 as it should fter the calculation. >> >> Then I set the dgDataOfIndex [1] (the only record in the datagrid) to the array for that record. The datagrid DOES NOT UPDATE. The third print keys produces poitemextprice: 89.99 >> >> This has GOT to be a bug. If anyone wants to try to reproduce this, here are the datagrid params. Enter whatever values you want: >> >> dgProp[columns] >> podetailid >> poitemqty >> vendorpartnumber >> poitemdescrip >> poitemunitprice >> poitemextprice >> poitemdiscount >> >> dgProp[column labels] >> ID >> Qty >> Part# >> Description >> Unit Price >> Ext Price >> Disc % >> >> dgProp[column widths] >> 40,40,85,306,100,100,53 >> >> >> 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 bogdanoff at me.com Fri Feb 16 14:21:02 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 16 Feb 2018 14:21:02 -0500 Subject: Setting cantDelete of a field In-Reply-To: References: Message-ID: <5CDA0ABD-E49E-443C-8F47-00576383457D@me.com> Hi, A colleague who is working in a LC stack has several times in the past, and just again today, accidentally deleted fields of a group acting as a background. He doesn?t notice the field is deleted, saves the stack, and all his text on many cards is gone. LiveCode has a cantDelete property that can be set for stacks, groups, and cards. Is there any particular reason why fields or any other control cannot have that property? I know about the cantModify, but that is a stack level property that doesn?t allow anything to be modified. I just want to set the cantDelete property of valuable objects to true. Peter Bogdanoff ArtsInteractive From richmondmathewson at gmail.com Fri Feb 16 14:51:50 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 16 Feb 2018 21:51:50 +0200 Subject: Livecode.com server down In-Reply-To: <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> Message-ID: <3af26c29-2afd-f5b7-b403-a401a2b43e1a@gmail.com> I did not finger RunRev (I wonder who they are?), nor LiveCode for a dDos attack; all I did do was tell you about a difficult situation I have been in several times with my ISP provider and point out that very few people seemed prepared to accept responsibility for their actions these days. I am, however, perfectly prepared to accept that I spelt 'responsibility' in a crappy way ("responisibility") 8-) I would also like to point out that I have kept apologising to the parents of the children I teach for the fact that one of the air-conditioners in a classroom is bust without actually revealing to them that that the responsibility for its maintenance lies with the landlord as per the rental agreement. I would also like to point out that it doesn't matter at all what system your desktop computer is running if the ISP is not providing an internet signal down its cable to your modem; the OS you are using on your machine should be your choice alone. Having said that . . . any chance of LiveCode for UNIX coming back? Richmond. On 16/2/2018 12:12 am, Mark Wieder via use-livecode wrote: > On 02/15/2018 01:35 PM, Richmond Mathewson via use-livecode wrote: > >> This IS the way the world goes round these days: nobody will accept >> responisibility for their >> mistakes. > > ...backing down a bit on this... > The whole LC team has been through a harrowing couple of days dealing > with this, and it's not "their mistakes". Yes, this does have, in some > cases severe, repercussions for us and there are ways to ameliorate > the problem (failover servers in different regions, for instance, > something easy to accomplish with aws). But pointing the finger at > RunRev for a dDos attack isn't fair. > >> One said to me, just before the New Year; "You wouldn't have these >> problems if you used Windows". > > Heh. Yep. You'd have *different* problems. > From martyknappster at gmail.com Fri Feb 16 14:54:12 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Fri, 16 Feb 2018 11:54:12 -0800 Subject: Setting cantDelete of a field In-Reply-To: <5CDA0ABD-E49E-443C-8F47-00576383457D@me.com> References: <5CDA0ABD-E49E-443C-8F47-00576383457D@me.com> Message-ID: I have an app where the user can create a document from a pre-made template and add some of their own fields, lines, etc. They can delete those, but there are objects that they should not. So I use a front script and trap for all the variations of delete, cut, etc. I set a custom property for the objects that should not be deleted (cpCantDelete) and the front script checks the cpCantDelete of the selectedObject. Maybe set up the development environment with a similar front script and a feature where right-clicking with a modifier key (so you can still access the LC popup too) pops up a menu to make setting the custom property quick and easy. Marty > Hi, > > A colleague who is working in a LC stack has several times in the past, and just again today, accidentally deleted fields of a group acting as a background. He doesn?t notice the field is deleted, saves the stack, and all his text on many cards is gone. > > LiveCode has a cantDelete property that can be set for stacks, groups, and cards. Is there any particular reason why fields or any other control cannot have that property? > > I know about the cantModify, but that is a stack level property that doesn?t allow anything to be modified. > > I just want to set the cantDelete property of valuable objects to true. > > Peter Bogdanoff > ArtsInteractive From matthias_livecode_150811 at m-r-d.de Fri Feb 16 14:57:27 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 16 Feb 2018 20:57:27 +0100 Subject: Livecode.com server down In-Reply-To: References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> <08ED5988-E443-436A-8593-3E4647A739D1@btinternet.com> <3A474B4C-6B6D-45CF-B170-7B07148D2E54@gmail.com> Message-ID: <8C364877-D91C-4E44-B97D-DB6E49639F88@m-r-d.de> me, too. I did not see anything offending in Heather?s post. But maybe this is because english is not my native language and therefore i might be not so sensitive to some expressions. ;) Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 16.02.2018 um 16:37 schrieb Bob Sneidar via use-livecode >: > > I was going to post the same thing. > > Bob S > > >> On Feb 16, 2018, at 05:09 , PystCat via use-livecode > wrote: >> >> The problem with that, Heather, was I didn't see anything wrong with your tone. >> I think someone was reading waaaay to much into your answer and feeling a little hurt by what had happened to them. >> >> 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 Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? From richmondmathewson at gmail.com Fri Feb 16 14:57:36 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 16 Feb 2018 21:57:36 +0200 Subject: Livecode.com server down In-Reply-To: <08ED5988-E443-436A-8593-3E4647A739D1@btinternet.com> References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> <08ED5988-E443-436A-8593-3E4647A739D1@btinternet.com> Message-ID: Well, I got out of bed the wrong side yesterday as well. Love, Richmond. On 16/2/2018 11:38 am, Heather Laine via use-livecode wrote: > Folks. I think I'm due to issue an apology for the tone I used. I did not intend it to come over the way it did, I'm sorry. > > Let us move on. Any lessons that can be learned, will be learned, we never stand still on these things. > > Best Regards to all > > Heather > >> On 15 Feb 2018, at 22:12, Mark Wieder via use-livecode wrote: >> >> On 02/15/2018 01:35 PM, Richmond Mathewson via use-livecode wrote: >> >>> This IS the way the world goes round these days: nobody will accept responisibility for their >>> mistakes. >> ...backing down a bit on this... >> The whole LC team has been through a harrowing couple of days dealing with this, and it's not "their mistakes". Yes, this does have, in some cases severe, repercussions for us and there are ways to ameliorate the problem (failover servers in different regions, for instance, something easy to accomplish with aws). But pointing the finger at RunRev for a dDos attack isn't fair. >> >>> One said to me, just before the New Year; "You wouldn't have these problems if you used Windows". >> Heh. Yep. You'd have *different* problems. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Feb 16 15:04:49 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 16 Feb 2018 22:04:49 +0200 Subject: Livecode.com server down In-Reply-To: References: <8630d66b-1b30-b15d-c287-422d7627bd20@sonic.net> <5d957180-ffe2-01d0-691c-44f4dfbca4a9@sonic.net> <1518681474880-0.post@n4.nabble.com> <785ca78a-fce6-de39-82c6-fb1e33aee94b@sonic.net> <71a1b655-21bb-979c-2356-2151a9421e4f@gmail.com> <4fb3fd14-b238-7e1d-7ffd-24b65f9b60b8@sonic.net> <08ED5988-E443-436A-8593-3E4647A739D1@btinternet.com> <3A474B4C-6B6D-45CF-B170-7B07148D2E54@gmail.com> Message-ID: Well: 1. What leaves my mouth is what leaves my mouth: it does not carry a little packet with it labelled "intentions". 2. What enters your ear is what leaves my mouth: it then has a packet attached to it labelled "interpretations". Now, we all know that Heather (and Co.) are not ill-intentioned people; far from it. However, I, for one (what, surely not Richmond?) have been "guilty" of sending message, which, while being largely well-intentioned, have been crafted in such a way that they might be prone to attracting negative interpretations. Anyone wanting far longer, even more pompous lectures about semantics, semiotics, intentionality and so on and so forth need look no further: I'm yer man. Oh: and by the way, your Homework is to write me 10 pages on how one can detect 'tone' in a written text. Professor Richmond. On 16/2/2018 5:37 pm, Bob Sneidar via use-livecode wrote: > I was going to post the same thing. > > Bob S > > >> On Feb 16, 2018, at 05:09 , PystCat via use-livecode wrote: >> >> The problem with that, Heather, was I didn't see anything wrong with your tone. >> I think someone was reading waaaay to much into your answer and feeling a little hurt by what had happened to them. >> >> 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 bogdanoff at me.com Fri Feb 16 16:01:31 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 16 Feb 2018 16:01:31 -0500 Subject: Setting cantDelete of a field In-Reply-To: References: <5CDA0ABD-E49E-443C-8F47-00576383457D@me.com> Message-ID: Thanks for this suggestion Marty, I?ll use it. It still would be great to have an engine-level property. Peter > On Feb 16, 2018, at 2:54 PM, Knapp Martin via use-livecode wrote: > > I have an app where the user can create a document from a pre-made template and add some of their own fields, lines, etc. They can delete those, but there are objects that they should not. So I use a front script and trap for all the variations of delete, cut, etc. I set a custom property for the objects that should not be deleted (cpCantDelete) and the front script checks the cpCantDelete of the selectedObject. Maybe set up the development environment with a similar front script and a feature where right-clicking with a modifier key (so you can still access the LC popup too) pops up a menu to make setting the custom property quick and easy. > > Marty > >> Hi, >> >> A colleague who is working in a LC stack has several times in the past, and just again today, accidentally deleted fields of a group acting as a background. He doesn?t notice the field is deleted, saves the stack, and all his text on many cards is gone. >> >> LiveCode has a cantDelete property that can be set for stacks, groups, and cards. Is there any particular reason why fields or any other control cannot have that property? >> >> I know about the cantModify, but that is a stack level property that doesn?t allow anything to be modified. >> >> I just want to set the cantDelete property of valuable objects to true. >> >> Peter Bogdanoff >> ArtsInteractive > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Feb 16 22:07:41 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 16 Feb 2018 19:07:41 -0800 Subject: Livecode.com server down In-Reply-To: <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> References: <6e22f834-0880-1111-ea5f-c37203defbab@sonic.net> Message-ID: Mark Wieder wrote: > > Cloudflare > https://www.cloudflare.com/ddos/ > I believe they use Cloudflare. But Q4 2016 taught us Cloudflare alone is no panacea. https://www.wired.com/2016/10/internet-outage-ddos-dns-dyn/ https://www.digitaltrends.com/computing/cloudflare-notes-ddos-attack-thanksgiving-2016/ -- 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 Fri Feb 16 22:41:18 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 16 Feb 2018 22:41:18 -0500 Subject: Text Styles: Expanded, condensed Message-ID: Did support for the text styles ?expanded? and ?condensed? disappear at some point from Livecode? I see in this that they were added in the misty past: http://docs.runrev.com/Property/HTMLText They are not in the dictionary now, or Font menu, and setting those with a script doesn?t work. I loved using those styles in Hypercard back in the day? Peter Bogdanoff ArtsInteractive From richmondmathewson at gmail.com Sat Feb 17 04:02:54 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 17 Feb 2018 11:02:54 +0200 Subject: Text Styles: Expanded, condensed In-Reply-To: References: Message-ID: That reference is all about htmlText . . . Having a look at Revolution Media Build 950 Version 4.0.0 on Mac OS 10.7.5 . . . [Not as daft as I look: always a good idea to hang onto old, licensed versions.] I found this: set the textStyle of line 1 of field "Main" to condensed So; like Hank Wangford in search of "the Lonesome Yodel" I climbed onto Rosinanti #2 and set forth: 4.5: still there. 7.1.4: gone. That looks like a deliberate choice. Mind you, doing this in RR 4.5: set the textStyle of fld "gg" to condensed is horrible: it does NOT condense the text at all, merely makes things look like something bitmapped from about 1996. Opening the stack containing a field with condensed text that I authored in RR 4.5 in LC 8.1.9 is interesting insofar as: the text in fld "gg" does NOT look condensed, BUT on doing this in the Message Box: put the textStyle of fld "gg" I get "condensed" . . . A bad case of 'The Phantom of the Opera'. Best, Richmond. On 17/2/2018 5:41 am, Peter Bogdanoff via use-livecode wrote: > Did support for the text styles ?expanded? and ?condensed? disappear at some point from Livecode? > > I see in this that they were added in the misty past: > > http://docs.runrev.com/Property/HTMLText > > They are not in the dictionary now, or Font menu, and setting those with a script doesn?t work. > > I loved using those styles in Hypercard back in the day? > > Peter Bogdanoff > ArtsInteractive > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Sat Feb 17 10:58:08 2018 From: irog at mac.com (Roger Guay) Date: Sat, 17 Feb 2018 07:58:08 -0800 Subject: Am I Dreaming? Message-ID: In days of yore, didn?t the Script Editor remember where you were last working and open to that scrolled position the next time you opened it? Unless I?m dreaming, that was a nice feature. Best, Roger From bogdanoff at me.com Sat Feb 17 11:10:28 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 17 Feb 2018 11:10:28 -0500 Subject: Text Styles: Expanded, condensed In-Reply-To: References: Message-ID: Yes, Richmond, I had the same results trying to set text in LC 8.7. A script will set chars to ?condensed? but the spacing doesn?t change, and the visual look is degraded. Maybe with a LC upgrade along the line somebody forgot about those styles, and no one noticed? I can understand that to maintain compatibility with HTML 5, the and tags might be dropped. But that should come much later. Peter > On Feb 17, 2018, at 4:02 AM, Richmond Mathewson via use-livecode wrote: > > That reference is all about htmlText . . . > > Having a look at Revolution Media Build 950 Version 4.0.0 on Mac OS 10.7.5 . . . > > [Not as daft as I look: always a good idea to hang onto old, licensed versions.] > > I found this: > > set the textStyle of line 1 of field "Main" to condensed > > So; like Hank Wangford in search of "the Lonesome Yodel" I climbed onto Rosinanti #2 and set forth: > > 4.5: still there. > > 7.1.4: gone. > > That looks like a deliberate choice. > > Mind you, doing this in RR 4.5: > > set the textStyle of fld "gg" to condensed > > is horrible: it does NOT condense the text at all, > merely makes things look like something bitmapped from about 1996. > > Opening the stack containing a field with condensed text that I authored in RR 4.5 in LC 8.1.9 > is interesting insofar as: > > the text in fld "gg" does NOT look condensed, BUT on doing this in the Message Box: > > put the textStyle of fld "gg" > > I get "condensed" . . . > > A bad case of 'The Phantom of the Opera'. > > Best, Richmond. > > > On 17/2/2018 5:41 am, Peter Bogdanoff via use-livecode wrote: >> Did support for the text styles ?expanded? and ?condensed? disappear at some point from Livecode? >> >> I see in this that they were added in the misty past: >> >> http://docs.runrev.com/Property/HTMLText >> >> They are not in the dictionary now, or Font menu, and setting those with a script doesn?t work. >> >> I loved using those styles in Hypercard back in the day? >> >> Peter Bogdanoff >> ArtsInteractive >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Feb 17 11:45:17 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Sat, 17 Feb 2018 16:45:17 +0000 Subject: LiveCode and XCode Message-ID: Release notes for 8.1.9 say you need : LiveCode 8.1.9 MacOSX 10.12.6 Xcode 9.2 The iOS SDK is selected in ?Mobile Support? and the green swatch is green. ?iPhone Simulator 11.2? selected in ?Test Target?. Click ?Test? and I get: Unable to start simulator: 634,0,0,iPhone Simulator version not found 573,223,1,revIPhoneSetSimulatorSDK Release notes for 8.1.9 say I have all the proper requirements in place. Anyone know which way I am to wave the magic wand to get this to work? FYI? Xcode 8.3.3 with LC 8.1.5 seems to be working ok. Many thanks in advance, -Dan From jacque at hyperactivesw.com Sat Feb 17 11:51:49 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 17 Feb 2018 10:51:49 -0600 Subject: Text Styles: Expanded, condensed In-Reply-To: References: Message-ID: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> LC no longer manipulates text directly to produce styles, it now uses the equivalent font. This happens with all text styles including bold, italic, etc. If the font family includes a styled version it is used, otherwise there is no change. I can't remember if the swap happens automatically in all cases. Recently I needed a bold font and it didn't work, I had to install the bold version of the font and use that instead. I think that was because the bold version was its own font family. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 17, 2018 10:12:24 AM Peter Bogdanoff via use-livecode wrote: > Yes, Richmond, I had the same results trying to set text in LC 8.7. A > script will set chars to ?condensed? but the spacing doesn?t change, and > the visual look is degraded. Maybe with a LC upgrade along the line > somebody forgot about those styles, and no one noticed? I can understand > that to maintain compatibility with HTML 5, the and > tags might be dropped. But that should come much later. > > Peter > >> On Feb 17, 2018, at 4:02 AM, Richmond Mathewson via use-livecode >> wrote: >> >> That reference is all about htmlText . . . >> >> Having a look at Revolution Media Build 950 Version 4.0.0 on Mac OS 10.7.5 >> . . . >> >> [Not as daft as I look: always a good idea to hang onto old, licensed >> versions.] >> >> I found this: >> >> set the textStyle of line 1 of field "Main" to condensed >> >> So; like Hank Wangford in search of "the Lonesome Yodel" I climbed onto >> Rosinanti #2 and set forth: >> >> 4.5: still there. >> >> 7.1.4: gone. >> >> That looks like a deliberate choice. >> >> Mind you, doing this in RR 4.5: >> >> set the textStyle of fld "gg" to condensed >> >> is horrible: it does NOT condense the text at all, >> merely makes things look like something bitmapped from about 1996. >> >> Opening the stack containing a field with condensed text that I authored in >> RR 4.5 in LC 8.1.9 >> is interesting insofar as: >> >> the text in fld "gg" does NOT look condensed, BUT on doing this in the >> Message Box: >> >> put the textStyle of fld "gg" >> >> I get "condensed" . . . >> >> A bad case of 'The Phantom of the Opera'. >> >> Best, Richmond. >> >> >> On 17/2/2018 5:41 am, Peter Bogdanoff via use-livecode wrote: >>> Did support for the text styles ?expanded? and ?condensed? disappear at >>> some point from Livecode? >>> >>> I see in this that they were added in the misty past: >>> >>> http://docs.runrev.com/Property/HTMLText >>> >>> They are not in the dictionary now, or Font menu, and setting those with a >>> script doesn?t work. >>> >>> I loved using those styles in Hypercard back in the day? >>> >>> Peter Bogdanoff >>> ArtsInteractive >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Sat Feb 17 12:08:16 2018 From: irog at mac.com (Roger Guay) Date: Sat, 17 Feb 2018 09:08:16 -0800 Subject: LiveCode and XCode In-Reply-To: References: Message-ID: <60B02D0A-A171-43D2-9724-3B493EC7BE6B@mac.com> Hi Dan, First off, I?m in Mac OS 10.13.3 so I?m not sure this will help. The simulator has been consistently giving me the message ?The simulator seems to be taking a long time to launch?.? I respond to this message with No, the simulator stays open but unloaaded. I then find I can go to the Simulator menu and select my device under Hardware and everything works. HTH, Roger > On Feb 17, 2018, at 8:45 AM, Dan Friedman via use-livecode wrote: > > Release notes for 8.1.9 say you need : > > LiveCode 8.1.9 > MacOSX 10.12.6 > Xcode 9.2 > > The iOS SDK is selected in ?Mobile Support? and the green swatch is green. > ?iPhone Simulator 11.2? selected in ?Test Target?. > > Click ?Test? and I get: > > Unable to start simulator: 634,0,0,iPhone > Simulator version not found > 573,223,1,revIPhoneSetSimulatorSDK > > Release notes for 8.1.9 say I have all the proper requirements in place. Anyone know which way I am to wave the magic wand to get this to work? > > FYI? Xcode 8.3.3 with LC 8.1.5 seems to be working ok. > > Many thanks in advance, > -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 brian at milby7.com Sat Feb 17 13:53:29 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 17 Feb 2018 18:53:29 +0000 Subject: libsodium on LiveCode? Message-ID: I found a thread from a year ago that mentions libsodium: http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-td4712554i20.html I was wondering if anyone had taken a look at what it would take to build something usable within LiveCode? My guess is that this is something that could be addressed as a LCB library to hook into native compiled code for each platform. The project itself looks to have make files for all of the platforms of interest in this community. I've been looking due to the talk that Andre gave last month at LCG which mentioned Scuttlebutt (https://www.scuttlebutt.nz/). The dex library he demonstrated (https://github.com/soapdog/livecode-dex-lib) implements a protocol that is very similar, but uses a different encryption method (RSA). Upon my initial look, one of the things that would be needed to interface with Scuttlebutt would be the encryption library (there is a JS version of the library available, but performance would be much better with native code and no overhead of the browser object). Thanks, Brian From dunbarx at aol.com Sat Feb 17 16:57:12 2018 From: dunbarx at aol.com (dunbarx) Date: Sat, 17 Feb 2018 14:57:12 -0700 (MST) Subject: Am I Dreaming? In-Reply-To: References: Message-ID: <1518904632048-0.post@n4.nabble.com> Richomnd. Yes and no, that is to say, I think it both does and it doesn't. Some SE windows always open at the bottom. Some open where I left off. In other words, I am not sure at all. I think. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From richmondmathewson at gmail.com Sun Feb 18 03:05:19 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 18 Feb 2018 10:05:19 +0200 Subject: Am I Dreaming? In-Reply-To: <1518904632048-0.post@n4.nabble.com> References: <1518904632048-0.post@n4.nabble.com> Message-ID: <41b0da67-d825-4c78-adfc-694d0dff10bd@gmail.com> Who is "Richomnd"? And, if that is meant to refer to me that's odd as I haven't taken part in this posting until I wrote this. I had a 'bothersome' patch with the scriptEditor yesterday (Mac OS): I had edited about 70 similar scripts in similar objects. Now these scripts have 4 parts: on mouseDown on mouseEnter on mouseLeave on mouseUp I edited a line in the 'on mouseEnter' part. At a later part of the day I had to edit them all again (lovely). On opening the scripts the 'on mouseEnter' was highlighted in the left-hand bit where the parts are listed, but the actual script-qua-script had scrolled to the middle of the 'on mouseUp' section. Richmond. On 17/2/2018 11:57 pm, dunbarx via use-livecode wrote: > Richomnd. > > Yes and no, that is to say, I think it both does and it doesn't. Some SE > windows always open at the bottom. Some open where I left off. In other > words, I am not sure at all. > > I think. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Feb 18 11:36:59 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Feb 2018 10:36:59 -0600 Subject: Am I Dreaming? In-Reply-To: <41b0da67-d825-4c78-adfc-694d0dff10bd@gmail.com> References: <1518904632048-0.post@n4.nabble.com> <41b0da67-d825-4c78-adfc-694d0dff10bd@gmail.com> Message-ID: <161a9c693f8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On February 18, 2018 2:07:41 AM Richmond Mathewson via use-livecode wrote: > I had a 'bothersome' patch with the scriptEditor yesterday (Mac OS): > I had edited about 70 similar scripts in similar objects. This setup is what behaviors were invented for. Then you'd only need to edit one script. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Sun Feb 18 12:01:28 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 18 Feb 2018 09:01:28 -0800 Subject: libsodium on LiveCode? In-Reply-To: References: Message-ID: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> On 02/17/2018 10:53 AM, Brian Milby via use-livecode wrote: > I found a thread from a year ago that mentions libsodium: > http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-td4712554i20.html > > I was wondering if anyone had taken a look at what it would take to build > something usable within LiveCode? My guess is that this is something that > could be addressed as a LCB library to hook into native compiled code for > each platform. The project itself looks to have make files for all of the > platforms of interest in this community. Interesting - I thought we were already linked into libsodium, but I see it's not in the thirdparty directory in the source code. At least not in the foss version. -- Mark Wieder ahsoftware at gmail.com From tom at makeshyft.com Sun Feb 18 16:59:32 2018 From: tom at makeshyft.com (Tom Glod) Date: Sun, 18 Feb 2018 16:59:32 -0500 Subject: Am I Dreaming? In-Reply-To: <161a9c693f8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1518904632048-0.post@n4.nabble.com> <41b0da67-d825-4c78-adfc-694d0dff10bd@gmail.com> <161a9c693f8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: you might still be dreaming though. ancient traditions have called this Maya......the cosmic dream. ;) On Sun, Feb 18, 2018 at 11:36 AM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On February 18, 2018 2:07:41 AM Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > I had a 'bothersome' patch with the scriptEditor yesterday (Mac OS): >> I had edited about 70 similar scripts in similar objects. >> > > This setup is what behaviors were invented for. Then you'd only need to > edit one script. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Feb 18 17:08:46 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 19 Feb 2018 00:08:46 +0200 Subject: Am I Dreaming? In-Reply-To: References: <1518904632048-0.post@n4.nabble.com> <41b0da67-d825-4c78-adfc-694d0dff10bd@gmail.com> <161a9c693f8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: "Maya" carries suggestions that it may be illusory . . . I'm returning to my Yoga-Nidra . . . . New version of Devawriter Pro: https://www.dropbox.com/s/vl79sk9cho1pvqt/Devawriter.ttf.zip?dl=0 Richmond. On 18/2/2018 11:59 pm, Tom Glod via use-livecode wrote: > you might still be dreaming though. ancient traditions have called this > Maya......the cosmic dream. ;) > > On Sun, Feb 18, 2018 at 11:36 AM, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On February 18, 2018 2:07:41 AM Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I had a 'bothersome' patch with the scriptEditor yesterday (Mac OS): >>> I had edited about 70 similar scripts in similar objects. >>> >> This setup is what behaviors were invented for. Then you'd only need to >> edit one script. >> >> -- >> 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 brian at milby7.com Mon Feb 19 01:11:58 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 19 Feb 2018 06:11:58 +0000 Subject: libsodium on LiveCode? In-Reply-To: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> Message-ID: Looks like most of the functions use OpenSSL. Started looking at the headers and there are over 650 function calls in libsodium. Got bogged down pretty fast though. Trying to look at some type mappings and am a little confused on how to do the following: unsigned char *pk const unsigned char *seed unsigned char pk[32] const unsigned char seed[32] I know that the const means that it will be in only and the others are either inout or out. I?m really hoping that we don?t need to use ?MCAggregateTypeInfo? followed by 32 ?c? characters. (They don?t use numbers in the headers but rather #define values). On Sun, Feb 18, 2018 at 11:02 AM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 02/17/2018 10:53 AM, Brian Milby via use-livecode wrote: > > I found a thread from a year ago that mentions libsodium: > > > http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-td4712554i20.html > > > > I was wondering if anyone had taken a look at what it would take to build > > something usable within LiveCode? My guess is that this is something > that > > could be addressed as a LCB library to hook into native compiled code for > > each platform. The project itself looks to have make files for all of > the > > platforms of interest in this community. > > Interesting - I thought we were already linked into libsodium, but I see > it's not in the thirdparty directory in the source code. At least not in > the foss version. > > -- > 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 livfoss at mac.com Mon Feb 19 05:32:29 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 19 Feb 2018 11:32:29 +0100 Subject: Levure update 0.9.5 In-Reply-To: References: Message-ID: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> I have not tried to look at Levure until now, but since I am in difficulties trying to create a user-oriented update system (the kind that professionals use Sparkle for on Mac, and other techniques on other platforms), I have some hopes (from previous emails from Trevor) that Levure might help me. However, on first looking at the wiki, I think that what Levure needs is a big commitment to work in a specific way - a good way, bien sure, but not the way us primitive old coders have been doing for the last few decades. This means, if I am right (and I could so easily not be) that a ?traditional? app development, where stacks contain code in various forms, could not be retrofitted to the Levure environment. Rather, one would have to start from scratch, or at the very least do a great deal of restructuring of such an existing app, so that pretty much all the code is script-only. Plus of course learning the philosophy of Levure, and feeling comfortable with Github... Can anyone comment on this enough to clear my head a little? TIA Graham (A very old coder, who in his twilight years is trying to stick purely to LC rather than try to recycle his misspent youth, where several now extinct low- and high-level languages had to be mastered). > On 16 Feb 2018, at 00:42, Trevor DeVore via use-livecode wrote: > > On Thu, Feb 15, 2018 at 4:30 PM Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Check the wiki instead of the readme.md. The documentation is extensive. >> https://github.com/trevordevore/levure/wiki > > > The wiki is definitely where you want to end up. The readme has a short > description and points users to the wiki documentation to learn more. > > ? > Trevor DeVore > >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Feb 19 07:12:06 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 19 Feb 2018 12:12:06 +0000 Subject: [ANN] This Week in LiveCode 117 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 #117 here: https://goo.gl/LPogbE 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 lists at mangomultimedia.com Mon Feb 19 09:09:53 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 19 Feb 2018 14:09:53 +0000 Subject: Levure update 0.9.5 In-Reply-To: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> Message-ID: Hi Graham, 1) You do not need to scriptify (move code into script only stacks) your stacks to use them in Levure. Levure supports an organizational structure (the `ui` folder in Levure) which makes it easy to organize binary stacks that use script only stacks as behaviors. 2) You are not required to use Git in order to use Levure. Levure helps you organize your code so that you can benefit from version control. It doesn?t require it. 3) You can still benefit from using Levure if you don?t use script only stacks or git yet. Levure provides a powerful packaging system for packaging your apps for distribution. Helpers allow you to drop in functionality that your app may need such as Prefernces, Inno Setup, DropDMG, etc. (On a somewhat related note I?m currently updating SQL Yoga to work as a helper which will simplify its usage considerably as all of the configuration is done with YAML files.) What I?ve done in the past when converting an app is move my stacks into the appropriate Levure folders without worrying about scriptifying them. I then move any app initialization code into the appropriate handlers in the Levure `app.livecodescript` file. Once the app is working again then I go back and scriptify stacks as needed. Libraries that don?t use any internal custom properties are easy to convert as are front and back scripts. You can then slowly go through each folder in the `app/ui` folder and move the scripts into a `behavior` folder that sits along each stack. No rush though. ? Trevor DeVore On Mon, Feb 19, 2018 at 4:33 AM Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > I have not tried to look at Levure until now, but since I am in > difficulties trying to create a user-oriented update system (the kind that > professionals use Sparkle for on Mac, and other techniques on other > platforms), I have some hopes (from previous emails from Trevor) that > Levure might help me. However, on first looking at the wiki, I think that > what Levure needs is a big commitment to work in a specific way - a good > way, bien sure, but not the way us primitive old coders have been doing for > the last few decades. This means, if I am right (and I could so easily not > be) that a ?traditional? app development, where stacks contain code in > various forms, could not be retrofitted to the Levure environment. Rather, > one would have to start from scratch, or at the very least do a great deal > of restructuring of such an existing app, so that pretty much all the code > is script-only. Plus of course learning the philosophy of Levure, and > feeling comfortable with Github... > > Can anyone comment on this enough to clear my head a little? > > TIA > > Graham > (A very old coder, who in his twilight years is trying to stick purely to > LC rather than try to recycle his misspent youth, where several now extinct > low- and high-level languages had to be mastered). > > > On 16 Feb 2018, at 00:42, Trevor DeVore via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > On Thu, Feb 15, 2018 at 4:30 PM Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Check the wiki instead of the readme.md. The documentation is > extensive. > >> https://github.com/trevordevore/levure/wiki > > > > > > The wiki is definitely where you want to end up. The readme has a short > > description and points users to the wiki documentation to learn more. > > > > ? > > Trevor DeVore > > > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 19 09:52:05 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 19 Feb 2018 09:52:05 -0500 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> Message-ID: @Trevor That would be good advice to add to the wiki as a "trying out and transitioning to Levure" item On Mon, Feb 19, 2018 at 9:09 AM, Trevor DeVore via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Graham, > > 1) You do not need to scriptify (move code into script only stacks) your > stacks to use them in Levure. Levure supports an organizational structure > (the `ui` folder in Levure) which makes it easy to organize binary stacks > that use script only stacks as behaviors. > > 2) You are not required to use Git in order to use Levure. Levure helps you > organize your code so that you can benefit from version control. It doesn?t > require it. > > 3) You can still benefit from using Levure if you don?t use script only > stacks or git yet. Levure provides a powerful packaging system for > packaging your apps for distribution. Helpers allow you to drop in > functionality that your app may need such as Prefernces, Inno Setup, > DropDMG, etc. (On a somewhat related note I?m currently updating SQL Yoga > to work as a helper which will simplify its usage considerably as all of > the configuration is done with YAML files.) > > What I?ve done in the past when converting an app is move my stacks into > the appropriate Levure folders without worrying about scriptifying them. I > then move any app initialization code into the appropriate handlers in the > Levure `app.livecodescript` file. > > Once the app is working again then I go back and scriptify stacks as > needed. Libraries that don?t use any internal custom properties are easy to > convert as are front and back scripts. You can then slowly go through each > folder in the `app/ui` folder and move the scripts into a `behavior` folder > that sits along each stack. No rush though. > > ? > Trevor DeVore > > > On Mon, Feb 19, 2018 at 4:33 AM Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I have not tried to look at Levure until now, but since I am in > > difficulties trying to create a user-oriented update system (the kind > that > > professionals use Sparkle for on Mac, and other techniques on other > > platforms), I have some hopes (from previous emails from Trevor) that > > Levure might help me. However, on first looking at the wiki, I think that > > what Levure needs is a big commitment to work in a specific way - a good > > way, bien sure, but not the way us primitive old coders have been doing > for > > the last few decades. This means, if I am right (and I could so easily > not > > be) that a ?traditional? app development, where stacks contain code in > > various forms, could not be retrofitted to the Levure environment. > Rather, > > one would have to start from scratch, or at the very least do a great > deal > > of restructuring of such an existing app, so that pretty much all the > code > > is script-only. Plus of course learning the philosophy of Levure, and > > feeling comfortable with Github... > > > > Can anyone comment on this enough to clear my head a little? > > > > TIA > > > > Graham > > (A very old coder, who in his twilight years is trying to stick purely to > > LC rather than try to recycle his misspent youth, where several now > extinct > > low- and high-level languages had to be mastered). > > > > > On 16 Feb 2018, at 00:42, Trevor DeVore via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > On Thu, Feb 15, 2018 at 4:30 PM Mike Kerner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > >> Check the wiki instead of the readme.md. The documentation is > > extensive. > > >> https://github.com/trevordevore/levure/wiki > > > > > > > > > The wiki is definitely where you want to end up. The readme has a short > > > description and points users to the wiki documentation to learn more. > > > > > > ? > > > Trevor DeVore > > > > > >> > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode 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 lists at mangomultimedia.com Mon Feb 19 10:25:59 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 19 Feb 2018 15:25:59 +0000 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> Message-ID: On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > @Trevor > That would be good advice to add to the wiki as a "trying out and > transitioning to Levure" item I agree. Somebody should write that up and submit a PR :-) ? Trevor DeVore > From MikeKerner at roadrunner.com Mon Feb 19 10:37:01 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 19 Feb 2018 10:37:01 -0500 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> Message-ID: Then you have to throw these things out more often so the bread-and-butter cult can do your bidding, my crusty master On Mon, Feb 19, 2018 at 10:25 AM, Trevor DeVore via use-livecode < use-livecode at lists.runrev.com> wrote: > On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > @Trevor > > That would be good advice to add to the wiki as a "trying out and > > transitioning to Levure" item > > > I agree. Somebody should write that up and submit a PR :-) > > ? > Trevor DeVore > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 Feb 19 10:41:05 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 19 Feb 2018 10:41:05 -0500 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> Message-ID: And wait, don't you have a Documentation Doughboy? On Mon, Feb 19, 2018 at 10:37 AM, Mike Kerner wrote: > Then you have to throw these things out more often so the bread-and-butter > cult can do your bidding, my crusty master > > On Mon, Feb 19, 2018 at 10:25 AM, Trevor DeVore via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > @Trevor >> > That would be good advice to add to the wiki as a "trying out and >> > transitioning to Levure" item >> >> >> I agree. Somebody should write that up and submit a PR :-) >> >> ? >> Trevor DeVore >> >> > >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > 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 lists at mangomultimedia.com Mon Feb 19 10:45:01 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 19 Feb 2018 15:45:01 +0000 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> Message-ID: :-) Usually it is just a matter of someone asking the right question. It is easier to respond to a question then to set aside time to consider all of the questions people may be having and try to proactively create docs. Unfortunately my time for extracurricular projects has been very limited as of late. ? Trevor DeVore ScreenSteps On Mon, Feb 19, 2018 at 9:37 AM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Then you have to throw these things out more often so the bread-and-butter > cult can do your bidding, my crusty master > > On Mon, Feb 19, 2018 at 10:25 AM, Trevor DeVore via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > @Trevor > > > That would be good advice to add to the wiki as a "trying out and > > > transitioning to Levure" item > > > > > > I agree. Somebody should write that up and submit a PR :-) > > > > ? > > Trevor DeVore > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Mon Feb 19 11:23:23 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 19 Feb 2018 11:23:23 -0500 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> Message-ID: Issue filed, let's discuss over there. On Mon, Feb 19, 2018 at 10:45 AM, Trevor DeVore via use-livecode < use-livecode at lists.runrev.com> wrote: > :-) > > Usually it is just a matter of someone asking the right question. It is > easier to respond to a question then to set aside time to consider all of > the questions people may be having and try to proactively create docs. > Unfortunately my time for extracurricular projects has been very limited as > of late. > > ? > Trevor DeVore > ScreenSteps > > On Mon, Feb 19, 2018 at 9:37 AM Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Then you have to throw these things out more often so the > bread-and-butter > > cult can do your bidding, my crusty master > > > > On Mon, Feb 19, 2018 at 10:25 AM, Trevor DeVore via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > @Trevor > > > > That would be good advice to add to the wiki as a "trying out and > > > > transitioning to Levure" item > > > > > > > > > I agree. Somebody should write that up and submit a PR :-) > > > > > > ? > > > Trevor DeVore > > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From livfoss at mac.com Mon Feb 19 14:51:14 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 19 Feb 2018 20:51:14 +0100 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> Message-ID: <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> I understand the problem. It looks as if I might have a short window of around 3 days where I could see if I could get Levure to work for me. If (and it is only an if) I manage this, I will try to write it up. Graham > On 19 Feb 2018, at 16:45, Trevor DeVore via use-livecode wrote: > > :-) > > Usually it is just a matter of someone asking the right question. It is > easier to respond to a question then to set aside time to consider all of > the questions people may be having and try to proactively create docs. > Unfortunately my time for extracurricular projects has been very limited as > of late. > > ? > Trevor DeVore > ScreenSteps > > On Mon, Feb 19, 2018 at 9:37 AM Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Then you have to throw these things out more often so the bread-and-butter >> cult can do your bidding, my crusty master >> >> On Mon, Feb 19, 2018 at 10:25 AM, Trevor DeVore via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> @Trevor >>>> That would be good advice to add to the wiki as a "trying out and >>>> transitioning to Levure" item >>> >>> >>> I agree. Somebody should write that up and submit a PR :-) >>> >>> ? >>> Trevor DeVore >>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> -- >> 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 gcanyon at gmail.com Mon Feb 19 15:30:28 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 19 Feb 2018 12:30:28 -0800 Subject: Navigator Update -- full drag and drop Message-ID: You can now drag and drop from Navigator windows to LC stacks, and from Navigator windows to other Navigator windows. You can: Drag controls and bookmarks from Navigator to a stack to add and position controls. (Note, this always duplicates the control even if you're dragging a control that is already on the target card). Drag controls and bookmarks from Navigator to another Navigator to add controls or bookmarks. Drag cards and groups to copy them from one stack to another. You can get Navigator here . Documentation will be updated over the next day or two. From MikeKerner at roadrunner.com Mon Feb 19 15:34:01 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 19 Feb 2018 15:34:01 -0500 Subject: Levure update 0.9.5 In-Reply-To: <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> Message-ID: I wouldn't do it if you only have 3 days. I'd spend the effort on other parts of your project instead. It will take longer than 3 days to get yourself into the Levure groove, IMHO. It's well worth it, but you can't just jump in and be off and going. On Mon, Feb 19, 2018 at 2:51 PM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > I understand the problem. It looks as if I might have a short window of > around 3 days where I could see if I could get Levure to work for me. If > (and it is only an if) I manage this, I will try to write it up. > > Graham > > > On 19 Feb 2018, at 16:45, Trevor DeVore via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > :-) > > > > Usually it is just a matter of someone asking the right question. It is > > easier to respond to a question then to set aside time to consider all of > > the questions people may be having and try to proactively create docs. > > Unfortunately my time for extracurricular projects has been very limited > as > > of late. > > > > ? > > Trevor DeVore > > ScreenSteps > > > > On Mon, Feb 19, 2018 at 9:37 AM Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Then you have to throw these things out more often so the > bread-and-butter > >> cult can do your bidding, my crusty master > >> > >> On Mon, Feb 19, 2018 at 10:25 AM, Trevor DeVore via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> @Trevor > >>>> That would be good advice to add to the wiki as a "trying out and > >>>> transitioning to Levure" item > >>> > >>> > >>> I agree. Somebody should write that up and submit a PR :-) > >>> > >>> ? > >>> Trevor DeVore > >>> > >>>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > >> > >> -- > >> 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 dunbarx at aol.com Mon Feb 19 16:07:39 2018 From: dunbarx at aol.com (dunbarx) Date: Mon, 19 Feb 2018 14:07:39 -0700 (MST) Subject: Am I Dreaming? In-Reply-To: References: <1518904632048-0.post@n4.nabble.com> <41b0da67-d825-4c78-adfc-694d0dff10bd@gmail.com> <161a9c693f8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1519074459419-0.post@n4.nabble.com> Richmond. Not the first time I have been caught replying to the last person that posted, that being the way the nabble thing works, and why I alway sign my name. In this instance, of course, Roger did indeed sign his name, and so the above comment is valueless. Oh, and as for the name typo, since I am sloppy now and then, this comment as well is valueless. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From brian at milby7.com Mon Feb 19 16:56:07 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 19 Feb 2018 15:56:07 -0600 Subject: libsodium on LiveCode? In-Reply-To: References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> Message-ID: Made my first attempt to just initialize the library and something is not working: Message execution error: Error description: LCB Error in file C:/Users/milby/Dropbox/LiveCode/Downloads/lcSodium/sodium.lcb at line 34: unable to load foreign library Hint: runtime Here's all that the LCB does: private __safe foreign handler _sodium_init() returns CInt binds to "c:libsodium-23>sodium_init!stdcall" public handler sodiumInit() returns Integer return _sodium_init() --this is line 34 end handler DLLs are in code\x86-win32 and code\x86-win64 (tried with and without the !stdcall) I probably need to start with something a little simpler ;) From monte at appisle.net Mon Feb 19 17:09:11 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 20 Feb 2018 09:09:11 +1100 Subject: libsodium on LiveCode? In-Reply-To: References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> Message-ID: It probably depends on how these are used as to what you want here, however, if all of these are data coming from LCS then I?d suggest you want your LCB handlers to take in Data and then use something like: __safe foreign handler MCDataGetBytePtr(in pData as Data) returns Pointer binds to "? __safe foreign handler MCDataGetLength(in pData as Data) returns LCUIndex binds to "" public handler DoSomething(in pPK as Data) if MCDataGetLength(pPK) is not 32 then throw ?PK not 32 bytes" end if variable tPK as Pointer put MCDataGetBytePtr(pPK) into tPK libsodiumfunction(tPK) Cheers Monte > On 19 Feb 2018, at 5:11 pm, Brian Milby via use-livecode wrote: > > Looks like most of the functions use OpenSSL. > > > Started looking at the headers and there are over 650 function calls in > libsodium. Got bogged down pretty fast though. > > Trying to look at some type mappings and am a little confused on how to do > the following: > > unsigned char *pk > const unsigned char *seed > unsigned char pk[32] > const unsigned char seed[32] > > I know that the const means that it will be in only and the others are > either inout or out. I?m really hoping that we don?t need to use > ?MCAggregateTypeInfo? followed by 32 ?c? characters. (They don?t use > numbers in the headers but rather #define values). > On Sun, Feb 18, 2018 at 11:02 AM Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 02/17/2018 10:53 AM, Brian Milby via use-livecode wrote: >>> I found a thread from a year ago that mentions libsodium: >>> >> http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-td4712554i20.html >>> >>> I was wondering if anyone had taken a look at what it would take to build >>> something usable within LiveCode? My guess is that this is something >> that >>> could be addressed as a LCB library to hook into native compiled code for >>> each platform. The project itself looks to have make files for all of >> the >>> platforms of interest in this community. >> >> Interesting - I thought we were already linked into libsodium, but I see >> it's not in the thirdparty directory in the source code. At least not in >> the foss version. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Mon Feb 19 17:19:09 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 20 Feb 2018 09:19:09 +1100 Subject: libsodium on LiveCode? In-Reply-To: References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> Message-ID: <916BE82E-045E-407B-8237-D41DCB385644@appisle.net> > On 20 Feb 2018, at 8:56 am, Brian Milby via use-livecode wrote: > > Made my first attempt to just initialize the library and something is not > working: > > Message execution error: > Error description: LCB Error in file > C:/Users/milby/Dropbox/LiveCode/Downloads/lcSodium/sodium.lcb at line 34: > unable to load foreign library > Hint: runtime > > Here's all that the LCB does: > > private __safe foreign handler _sodium_init() returns CInt binds to > "c:libsodium-23>sodium_init!stdcall" > public handler sodiumInit() returns Integer > return _sodium_init() --this is line 34 > end handler > > DLLs are in code\x86-win32 and code\x86-win64 > (tried with and without the !stdcall) > > I probably need to start with something a little simpler ;) From monte at appisle.net Mon Feb 19 18:02:07 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 20 Feb 2018 10:02:07 +1100 Subject: libsodium on LiveCode? In-Reply-To: References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> Message-ID: <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> Hi Brian Looks like there?s an issues in the code folder stuff. At the moment it will look for `code\x86-win` when deploying a standalone it seems. I will patch it in a bit to `code\x86-win32`. By the looks of the IDE extension loading code it will be actually work for win or win32 (it does a filter with `*-win*` on the folders) at the moment so this is unlikely to be your problem. For 64 bit it would be `code\x86_64-win32` however that?s only for the FileMaker plugin at the moment so also unlikely to be your problem. So? just to confirm. Your dll is called libsodium-23.dll and is built for x86? You might want to dump exports to check the dll https://stackoverflow.com/questions/1548637/is-there-any-native-dll-export-functions-viewer Note you should not use `__safe` here and instead call the function from within an unsafe block. Cheers Monte > On 20 Feb 2018, at 8:56 am, Brian Milby via use-livecode wrote: > > Made my first attempt to just initialize the library and something is not > working: > > Message execution error: > Error description: LCB Error in file > C:/Users/milby/Dropbox/LiveCode/Downloads/lcSodium/sodium.lcb at line 34: > unable to load foreign library > Hint: runtime > > Here's all that the LCB does: > > private __safe foreign handler _sodium_init() returns CInt binds to > "c:libsodium-23>sodium_init!stdcall" > public handler sodiumInit() returns Integer > return _sodium_init() --this is line 34 > end handler > > DLLs are in code\x86-win32 and code\x86-win64 > (tried with and without the !stdcall) > > I probably need to start with something a little simpler ;) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From niconiko at gmail.com Mon Feb 19 20:01:51 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Tue, 20 Feb 2018 10:01:51 +0900 Subject: position of text-curson within field Message-ID: I'm trying to script a special backspace script. As is the usual backspace behavior, I still want the char to the left of the flashing cursor to be deleted. Wherever that cursor happens to be. But because the backscape key cannot get passed, it seemsI have to manually delete that character to the left of the flashing cursor (wherever the cursor happens to be). So, how do I find out in terms of relative character position (eg. char 275 of field x) where within a text field is the flashing cursor? Something like: on backspaceKey put the <> in field x into tPos -- e.g. tPos = char 275 of field x delete char tPos of field x put the number of lines in field x into field "Nr of lines" end backspaceKey As you can see, the reason I'm interrupting the backspace key is to find out the number of lines in a field after a char is deleted. -- Nicolas Cueto From ahsoftware at sonic.net Mon Feb 19 20:42:20 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 19 Feb 2018 17:42:20 -0800 Subject: position of text-curson within field In-Reply-To: References: Message-ID: <728a7190-3fcf-2b9c-9d39-d94b89f1f909@sonic.net> On 02/19/2018 05:01 PM, Nicolas Cueto via use-livecode wrote: > As you can see, the reason I'm interrupting the backspace key is to find > out the number of lines in a field after a char is deleted. I would do that differently: local sHowManyLines on backspaceKey send "howManyLinesNow" to me in 0 milliseconds pass backspaceKey end backspaceKey on howManyLinesNow put the number of lines of me into sHowManyLines end howManyLinesNow -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Mon Feb 19 20:50:25 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 19 Feb 2018 17:50:25 -0800 Subject: xkcd predictions for the 2018 cve list Message-ID: turns out the cloud is just other people's computers. https://xkcd.com/1957/ ...and there's a tooltip... -- Mark Wieder ahsoftware at gmail.com From niconiko at gmail.com Mon Feb 19 20:59:39 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Tue, 20 Feb 2018 10:59:39 +0900 Subject: position of text-curson within field In-Reply-To: <728a7190-3fcf-2b9c-9d39-d94b89f1f909@sonic.net> References: <728a7190-3fcf-2b9c-9d39-d94b89f1f909@sonic.net> Message-ID: Thanks, Mark. Strange, during devpt I couldn't press "apply" in the script editor when I had the line "pass backspaceKey"... Maybe I misspelt... -- Nicolas Cueto On 20 February 2018 at 10:42, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 02/19/2018 05:01 PM, Nicolas Cueto via use-livecode wrote: > > As you can see, the reason I'm interrupting the backspace key is to find >> out the number of lines in a field after a char is deleted. >> > > I would do that differently: > > local sHowManyLines > > on backspaceKey > send "howManyLinesNow" to me in 0 milliseconds > pass backspaceKey > end backspaceKey > > on howManyLinesNow > put the number of lines of me into sHowManyLines > end howManyLinesNow > > -- > 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 james at thehales.id.au Mon Feb 19 21:38:57 2018 From: james at thehales.id.au (James Hale) Date: Tue, 20 Feb 2018 13:38:57 +1100 Subject: Sub-to-srt updated Message-ID: <02FB9233-21E2-48D9-876B-ADA379971F7B@thehales.id.au> The Sub-to-srt stack on Livecode share has now been updated. The interface has been simplified and frame rate conversions can now be applied to converted ssa and sub files. For those who came in late...(apologies to L Falk) Sub-to-srt is a conversion utility ofr subtitles. It will convert either "sub" or "ssa" subtitle files to the more common "srt" format. It will also change the timing of "srt" subtitles to a different frame rate, if required. For example your subtitle might be from a NTSC broadcast (30 fps) but your video file might be from a PAL video source (25 fps) Most subtitles available on www.opensubtitles.org will indicate the frame rate of their source. enjoy! James From brian at milby7.com Tue Feb 20 00:44:19 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 19 Feb 2018 23:44:19 -0600 Subject: libsodium on LiveCode? In-Reply-To: <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> Message-ID: I was finally able to get the init to return a 0 or 1 (success or already initialized). I switched to `code\x86-win` - not sure if that had any effect based on the other major change I made... Turns out I was using the wrong version of the dll. If anyone else wants to try, here's the path that actually worked: \libsodium-1.0.16-msvc.zip\Win32\Release\v100\dynamic\libsodium.dll (2 other files there that I included as well) I was initially trying a different archive, but then switched to the msvc version. I started with v141 which didn't work. I went ahead and tried v100 which did. There are also v110, v120, and v140. I don't know what the differences are, but at this point am just happy that I can get the library initialized. I'll eventually try others and try to figure out what the numbers mean. @Monte, I was using __safe based on a thread that Mark W commented in on the forum. Essentially if the library is returning just an integer then it would probably be safe. http://forums.livecode.com/viewtopic.php?f=93&t=30429 Thanks on the hints on sending data to the library. I'm also going to need to receive keys back from the library. I'm guessing that where it is listed as pK[32] that it will overwrite the data in the passed in string. There are other calls that use a pointer and a length as separate arguments to the function, so the calls provided will be useful there (those are for encrypting/decrypting content). I'll probably need to dive into the source to understand that a bit more (unless their api docs cover it). Now that I can actually talk to the code, I should be able to experiment. Here's something that I got working to return the version: private __safe foreign handler _sodium_library_version_major() returns CInt binds to "c:libsodium>sodium_library_version_major" private __safe foreign handler _sodium_library_version_minor() returns CInt binds to "c:libsodium>sodium_library_version_minor" public handler sodiumVersion() returns String variable tResult as String put "Version " into tResult put _sodium_library_version_major() formatted as string after tResult put "." after tResult put _sodium_library_version_minor() formatted as string after tResult return tResult --"Version 10.1" end handler From monte at appisle.net Tue Feb 20 01:19:34 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 20 Feb 2018 17:19:34 +1100 Subject: libsodium on LiveCode? In-Reply-To: References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> Message-ID: <993EA851-D0AB-4A62-8F49-0FDBFA7976B7@appisle.net> > On 20 Feb 2018, at 4:44 pm, Brian Milby via use-livecode wrote: > > I was finally able to get the init to return a 0 or 1 (success or already > initialized). I switched to `code\x86-win` - not sure if that had any > effect based on the other major change I made? I think it will find both win and win32 in the IDE at the moment. I have just submitted patches. It?s bug 20991. > Turns out I was using the wrong version of the dll. If anyone else wants > to try, here's the path that actually worked: > \libsodium-1.0.16-msvc.zip\Win32\Release\v100\dynamic\libsodium.dll (2 > other files there that I included as well) > I was initially trying a different archive, but then switched to the msvc > version. I started with v141 which didn't work. I went ahead and tried > v100 which did. There are also v110, v120, and v140. I don't know what > the differences are, but at this point am just happy that I can get the > library initialized. I'll eventually try others and try to figure out what > the numbers mean. These are VS toolchain versions. v140 is 2015 and v141 is 2017. I?m not sure if dynamic in that path refers to it being a dll v lib or the CRT linking. If there?s a folder with static/libsodium.dll then use that. It may be that resolves your issue with v141... > > @Monte, I was using __safe based on a thread that Mark W commented in on > the forum. Essentially if the library is returning just an integer then it > would probably be safe. > http://forums.livecode.com/viewtopic.php?f=93&t=30429 Ah, well, I?m not as smart as Mark so I just let everything that?s not in the engine default to unsafe ;-) > > Thanks on the hints on sending data to the library. I'm also going to need > to receive keys back from the library. I'm guessing that where it is > listed as pK[32] that it will overwrite the data in the passed in string. > There are other calls that use a pointer and a length as separate arguments > to the function, so the calls provided will be useful there (those are for > encrypting/decrypting content). I'll probably need to dive into the source > to understand that a bit more (unless their api docs cover it). So you need a buffer as inout for the library to write to? Something like this. __safe foreign handler MCDataCreateWithBytesAndRelease(in pBytes as Pointer, in pCount as LCUIndex, out rData as Data) returns CBool binds to "" __safe foreign handler MCMemoryAllocate(in pSize as LCUIndex, out rBlock as Pointer) returns CBool binds to "? __safe foreign handler MCMemoryDeallocate(in pBlock as Pointer) returns nothing binds to "? variable tBuffer as Pointer if not MCMemoryAllocate(32, tBuffer) then throw ?uh oh? end if CallThingThatSetsBuffer(tBuffer) variable tData as Data if not MCDataCreateWithBytesAndRelease(tBuffer, 23, tData) then MCMemoryDeallocate(tBuffer) throw ?uh oh" end if return tData > > Now that I can actually talk to the code, I should be able to experiment. > > > Here's something that I got working to return the version: > > private __safe foreign handler _sodium_library_version_major() returns CInt > binds to "c:libsodium>sodium_library_version_major" > private __safe foreign handler _sodium_library_version_minor() returns CInt > binds to "c:libsodium>sodium_library_version_minor" > public handler sodiumVersion() returns String > variable tResult as String > put "Version " into tResult > put _sodium_library_version_major() formatted as string after tResult > put "." after tResult > put _sodium_library_version_minor() formatted as string after tResult > return tResult --"Version 10.1" > end handler > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Feb 20 02:20:19 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 19 Feb 2018 23:20:19 -0800 Subject: Survey on Navigator features Message-ID: Calling all Navigator users: can you fill out this (very) brief survey to help me understand what needs to be done with Navigator? https://www.surveymonkey.com/r/8V3Y2D5 Thanks! From livfoss at mac.com Tue Feb 20 07:46:36 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 20 Feb 2018 13:46:36 +0100 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> Message-ID: Ha, that was my instinct really. I very much admire Trevor?s work, but I do think there?s quite a change of mindset involved, and from the very limited stuff I?ve seen, not very much step-by-step instructions on how to do things. Nowadays I really want to stick to the ?everyone an code? ethos, although in the past I was happy with any amount of technical tweaking. I will go around the houses once again to try to do app updating simply from within LC scripts. I do have a fair notion about what do do. I don?t know what I?ll do about Levure in the future. Perhaps I should just admit defeat. Cheers Graham (My mood is influenced no doubt by hideously wet and cold weather in the South of France? will I ever get back on my bike?) > On 19 Feb 2018, at 21:34, Mike Kerner via use-livecode wrote: > > I wouldn't do it if you only have 3 days. I'd spend the effort on other > parts of your project instead. It will take longer than 3 days to get > yourself into the Levure groove, IMHO. It's well worth it, but you can't > just jump in and be off and going. > > On Mon, Feb 19, 2018 at 2:51 PM, Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I understand the problem. It looks as if I might have a short window of >> around 3 days where I could see if I could get Levure to work for me. If >> (and it is only an if) I manage this, I will try to write it up. >> >> Graham >> >>> On 19 Feb 2018, at 16:45, Trevor DeVore via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> :-) >>> >>> Usually it is just a matter of someone asking the right question. It is >>> easier to respond to a question then to set aside time to consider all of >>> the questions people may be having and try to proactively create docs. >>> Unfortunately my time for extracurricular projects has been very limited >> as >>> of late. >>> >>> ? >>> Trevor DeVore >>> ScreenSteps >>> >>> On Mon, Feb 19, 2018 at 9:37 AM Mike Kerner via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Then you have to throw these things out more often so the >> bread-and-butter >>>> cult can do your bidding, my crusty master >>>> >>>> On Mon, Feb 19, 2018 at 10:25 AM, Trevor DeVore via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>> @Trevor >>>>>> That would be good advice to add to the wiki as a "trying out and >>>>>> transitioning to Levure" item >>>>> >>>>> >>>>> I agree. Somebody should write that up and submit a PR :-) >>>>> >>>>> ? >>>>> Trevor DeVore >>>>> >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> >>>> >>>> -- >>>> 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." > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 20 09:33:56 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 20 Feb 2018 09:33:56 -0500 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> Message-ID: I wouldn't give up on it. Levure is a really important development in the LC universe, and one that is worth integrating into your work in the medium term, but it is definitely a more advanced tool, like carbon frames and high-pressure tires. On Tue, Feb 20, 2018 at 7:46 AM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > Ha, that was my instinct really. I very much admire Trevor?s work, but I > do think there?s quite a change of mindset involved, and from the very > limited stuff I?ve seen, not very much step-by-step instructions on how to > do things. Nowadays I really want to stick to the ?everyone an code? ethos, > although in the past I was happy with any amount of technical tweaking. > > I will go around the houses once again to try to do app updating simply > from within LC scripts. I do have a fair notion about what do do. > > I don?t know what I?ll do about Levure in the future. Perhaps I should > just admit defeat. > > Cheers > > Graham > > (My mood is influenced no doubt by hideously wet and cold weather in the > South of France? will I ever get back on my bike?) > > > On 19 Feb 2018, at 21:34, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I wouldn't do it if you only have 3 days. I'd spend the effort on other > > parts of your project instead. It will take longer than 3 days to get > > yourself into the Levure groove, IMHO. It's well worth it, but you can't > > just jump in and be off and going. > > > > On Mon, Feb 19, 2018 at 2:51 PM, Graham Samuel via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I understand the problem. It looks as if I might have a short window of > >> around 3 days where I could see if I could get Levure to work for me. If > >> (and it is only an if) I manage this, I will try to write it up. > >> > >> Graham > >> > >>> On 19 Feb 2018, at 16:45, Trevor DeVore via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> :-) > >>> > >>> Usually it is just a matter of someone asking the right question. It > is > >>> easier to respond to a question then to set aside time to consider all > of > >>> the questions people may be having and try to proactively create docs. > >>> Unfortunately my time for extracurricular projects has been very > limited > >> as > >>> of late. > >>> > >>> ? > >>> Trevor DeVore > >>> ScreenSteps > >>> > >>> On Mon, Feb 19, 2018 at 9:37 AM Mike Kerner via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> Then you have to throw these things out more often so the > >> bread-and-butter > >>>> cult can do your bidding, my crusty master > >>>> > >>>> On Mon, Feb 19, 2018 at 10:25 AM, Trevor DeVore via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>>> On Mon, Feb 19, 2018 at 8:53 AM Mike Kerner via use-livecode < > >>>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>>> @Trevor > >>>>>> That would be good advice to add to the wiki as a "trying out and > >>>>>> transitioning to Levure" item > >>>>> > >>>>> > >>>>> I agree. Somebody should write that up and submit a PR :-) > >>>>> > >>>>> ? > >>>>> Trevor DeVore > >>>>> > >>>>>> > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at lists.runrev.com > >>>>> Please visit this url to subscribe, unsubscribe and manage your > >>>>> subscription preferences: > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> 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." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue Feb 20 10:21:19 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Feb 2018 15:21:19 +0000 Subject: Text Styles: Expanded, condensed In-Reply-To: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <90A3DF5A-07DD-4EBD-BB01-EED1E63CD092@iotecdigital.com> How odd. Last Friday I ran into the same thing, and came to that conclusion deductively, because I tried using bold style with a font that I know didn't have that typeface. Bob S > On Feb 17, 2018, at 08:51 , J. Landman Gay via use-livecode wrote: > > LC no longer manipulates text directly to produce styles, it now uses the equivalent font. This happens with all text styles including bold, italic, etc. If the font family includes a styled version it is used, otherwise there is no change. > > I can't remember if the swap happens automatically in all cases. Recently I needed a bold font and it didn't work, I had to install the bold version of the font and use that instead. I think that was because the bold version was its own font family. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From thatkeith at mac.com Tue Feb 20 10:45:31 2018 From: thatkeith at mac.com (Keith Martin) Date: Tue, 20 Feb 2018 15:45:31 +0000 Subject: Text Styles: Expanded, condensed In-Reply-To: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: On 17 Feb 2018, at 16:51, J. Landman Gay via use-livecode wrote: > LC no longer manipulates text directly to produce styles, it now uses > the equivalent font. And as a typographer, let me say YAY! Distorted type hurts my soul. :( k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) --- From gcanyon at gmail.com Tue Feb 20 11:17:00 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 20 Feb 2018 08:17:00 -0800 Subject: xkcd predictions for the 2018 cve list In-Reply-To: References: Message-ID: http://www.schneierfacts.com On Mon, Feb 19, 2018 at 5:50 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > turns out the cloud is just other people's computers. > > https://xkcd.com/1957/ > > ...and there's a tooltip... > > -- > 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 Tue Feb 20 11:09:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Feb 2018 16:09:38 +0000 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> Message-ID: <0BD606EE-8E34-4E30-B426-3CB5028FFDD4@iotecdigital.com> He has some youtube videos, which after watching I understood the process well enough to know that it would be a fairly major rewrite of my projects to incorporate. It looks really cool, and I keep telling myself I'm going to do this soon. Bob S > On Feb 20, 2018, at 04:46 , Graham Samuel via use-livecode wrote: > > Ha, that was my instinct really. I very much admire Trevor?s work, but I do think there?s quite a change of mindset involved, and from the very limited stuff I?ve seen, not very much step-by-step instructions on how to do things. Nowadays I really want to stick to the ?everyone an code? ethos, although in the past I was happy with any amount of technical tweaking. From rdimola at evergreeninfo.net Tue Feb 20 11:34:29 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 20 Feb 2018 11:34:29 -0500 Subject: Text Styles: Expanded, condensed In-Reply-To: References: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <003b01d3aa68$b10b39e0$1321ada0$@net> Keith +1 MS Word is the worst when it comes to this. I once spent 1/2 day trying to figure out why a PDFed Word file had font issues. I turns out that this Word doc was being passed around and not all users had all the fonts or faces. So Word changed the text using an unavailable font face by "bold"ing the plain face by fattening up the glyphs. So the kerning changed and when the doc was PDFed Acrobat could not figure out what was going on with the fonts and did not embed the proper fonts. The PDF would not pass pre-flight. The only solution was to re-style the affect text with the proper face. (funny note: After fixing the file about 3 years later we received a different file with the same problems and after some investigation we found out it was the "grandson" of that original problematic file) This was a few years ago but from what I remember the are 3 ways a font can be described: 1) the displayed font name. 2) the internal font name 3) the font face description. This was evident by looking at the font name/faces as presented to the user in MS word, InDesign and Windows fonts control panel (not to mention the file names many times being cryptic at best). I started using TT and Type 1 fonts for composition back in 1994. We had many font issues over the years and I figured that the industry would get it together. In 2018 there are still font naming inconsistencies between various programs and OS platforms. When will this ever get straightened out? 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 Keith Martin via use-livecode Sent: Tuesday, February 20, 2018 10:46 AM To: How to use LiveCode Cc: Keith Martin Subject: Re: Text Styles: Expanded, condensed On 17 Feb 2018, at 16:51, J. Landman Gay via use-livecode wrote: > LC no longer manipulates text directly to produce styles, it now uses > the equivalent font. And as a typographer, let me say YAY! Distorted type hurts my soul. :( k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) --- _______________________________________________ use-livecode mailing list use-livecode at 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 Feb 20 11:32:23 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Feb 2018 16:32:23 +0000 Subject: Text Styles: Expanded, condensed In-Reply-To: <003b01d3aa68$b10b39e0$1321ada0$@net> References: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <003b01d3aa68$b10b39e0$1321ada0$@net> Message-ID: <63442C1F-65EA-47E5-B97A-08DC8A889E30@iotecdigital.com> Probably not. As I like to point out on occasion, everyone subscribes to standards. Their OWN standards. ;-) Bob S > On Feb 20, 2018, at 08:34 , Ralph DiMola via use-livecode wrote: > > I started using TT and Type 1 fonts for composition back in 1994. We > had many font issues over the years and I figured that the industry would > get it together. In 2018 there are still font naming inconsistencies between > various programs and OS platforms. When will this ever get straightened > out? > > Ralph DiMola From thatkeith at mac.com Tue Feb 20 12:03:35 2018 From: thatkeith at mac.com (Keith Martin) Date: Tue, 20 Feb 2018 17:03:35 +0000 Subject: Text Styles: Expanded, condensed In-Reply-To: <003b01d3aa68$b10b39e0$1321ada0$@net> References: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <003b01d3aa68$b10b39e0$1321ada0$@net> Message-ID: On 20 Feb 2018, at 16:34, Ralph DiMola wrote: > We > had many font issues over the years and I figured that the industry > would > get it together. Given that the font world calls eighteenth century font designs 'Modern' and early/mid 19th century sans-serifs 'Grotesque', I wouldn't hold my breath... ;) k --- Keith Martin Senior Lecturer, LCC (University of the Arts London) --- From bobsneidar at iotecdigital.com Tue Feb 20 11:51:00 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Feb 2018 16:51:00 +0000 Subject: Am I Dreaming? In-Reply-To: References: Message-ID: <917DE4E3-F5F1-43F3-9B98-FF481CC78ABA@iotecdigital.com> Each script pane used to remember the position of the cursor, even if you closed the CE and reopened it. That was nice. No longer though. On several occassions I deleted existing code thinking my cursor was where I left it, only to find the selection had somehow translated from another pane to the one I was typing in. I'm in the habit now of looking to see if what I typed is what I expected, and undoing (however many times necessary) to correct the error. Bob S > On Feb 17, 2018, at 07:58 , Roger Guay via use-livecode wrote: > > In days of yore, didn?t the Script Editor remember where you were last working and open to that scrolled position the next time you opened it? Unless I?m dreaming, that was a nice feature. > > > Best, > > Roger From MikeKerner at roadrunner.com Tue Feb 20 12:20:48 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 20 Feb 2018 12:20:48 -0500 Subject: Levure update 0.9.5 In-Reply-To: <0BD606EE-8E34-4E30-B426-3CB5028FFDD4@iotecdigital.com> References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> <0BD606EE-8E34-4E30-B426-3CB5028FFDD4@iotecdigital.com> Message-ID: I'm interested in hearing more about other people who are thinking about moving existing projects over. I've moved several small ones over (and built a couple from scratch), and have been thinking about moving my bigger ones. I'm not sure how much work it's going to be to rewrite anything, though (which is why I'm curious to hear what others think before I decide to move something big and get stuck). Geoff has tackled one of the bigger issues with Navigator (scriptifying stacks and chained behaviors). That seems to be the biggest barrier to getting moved for me. On Tue, Feb 20, 2018 at 11:09 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > He has some youtube videos, which after watching I understood the process > well enough to know that it would be a fairly major rewrite of my projects > to incorporate. It looks really cool, and I keep telling myself I'm going > to do this soon. > > Bob S > > > > On Feb 20, 2018, at 04:46 , Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Ha, that was my instinct really. I very much admire Trevor?s work, but I > do think there?s quite a change of mindset involved, and from the very > limited stuff I?ve seen, not very much step-by-step instructions on how to > do things. Nowadays I really want to stick to the ?everyone an code? ethos, > although in the past I was happy with any amount of technical tweaking. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 irog at mac.com Tue Feb 20 12:25:24 2018 From: irog at mac.com (Roger Guay) Date: Tue, 20 Feb 2018 09:25:24 -0800 Subject: Am I Dreaming? In-Reply-To: <917DE4E3-F5F1-43F3-9B98-FF481CC78ABA@iotecdigital.com> References: <917DE4E3-F5F1-43F3-9B98-FF481CC78ABA@iotecdigital.com> Message-ID: <70DA9128-1800-41D0-BB4E-579E83AE14C7@mac.com> Same here, Bob. It seems like this should be an easy thing to fix! Roger > On Feb 20, 2018, at 8:51 AM, Bob Sneidar via use-livecode wrote: > > Each script pane used to remember the position of the cursor, even if you closed the CE and reopened it. That was nice. No longer though. On several occassions I deleted existing code thinking my cursor was where I left it, only to find the selection had somehow translated from another pane to the one I was typing in. I'm in the habit now of looking to see if what I typed is what I expected, and undoing (however many times necessary) to correct the error. > > Bob S > > >> On Feb 17, 2018, at 07:58 , Roger Guay via use-livecode wrote: >> >> In days of yore, didn?t the Script Editor remember where you were last working and open to that scrolled position the next time you opened it? Unless I?m dreaming, that was a nice feature. >> >> >> Best, >> >> Roger > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Tue Feb 20 12:33:27 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 20 Feb 2018 12:33:27 -0500 Subject: Text Styles: Expanded, condensed In-Reply-To: References: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <003b01d3aa68$b10b39e0$1321ada0$@net> Message-ID: <005401d3aa70$edb29840$c917c8c0$@net> K, That's a amusing observation of font names. If a MS Word doc is using the Adobe Helvetica and the next user only has a MonoType Helvetica, then Word will substitute the MonoType font without warning. Then if the next user has neither font, Word will substitute a "Helvetica like" font, again without warning. A PDF created from this document will be problematic when pre-flighted.. I'm planning to use LC to produce "print ready" PDFs. +100 to the mother ship for removing LiveCode's phony font styling . Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 From: Keith Martin [mailto:thatkeith at mac.com] Sent: Tuesday, February 20, 2018 12:04 PM To: How to use LiveCode Cc: Ralph DiMola Subject: Re: Text Styles: Expanded, condensed On 20 Feb 2018, at 16:34, Ralph DiMola wrote: We had many font issues over the years and I figured that the industry would get it together. Given that the font world calls eighteenth century font designs 'Modern' and early/mid 19th century sans-serifs 'Grotesque', I wouldn't hold my breath... ;) k _____ Keith Martin Senior Lecturer, LCC (University of the Arts London) _____ From johnpatten at me.com Tue Feb 20 12:44:17 2018 From: johnpatten at me.com (JOHN PATTEN) Date: Tue, 20 Feb 2018 09:44:17 -0800 Subject: LiveCode and iOS Simulator Set Up Message-ID: Hi All, I am trying to set up a new school Mac laptop with Xcode so that I can run the iOS simulator on it with Livecode. I have tried LiveCode 8.1.7 and 8.1.9 with Xcode most recent version of Xcode, 9.0, and 9.1. Each time I attempt to launch the simulator in LiveCode I get the message, ?The simulator seems to be taking a long time to launch??. Eventually, it times out and the app never launches in the simulator. I?m guessing I am not using the correct versions of LiveCode or, possibly, Xcode? Is there a link to documentation on how to get the simulator to work? Thank you! From merakosp at gmail.com Tue Feb 20 13:03:39 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 20 Feb 2018 18:03:39 +0000 Subject: LiveCode and iOS Simulator Set Up In-Reply-To: References: Message-ID: Hi John, For LC 8.1.9 you have to use Xcode 9.2 if you are on MacOS 10.12.6+. Moreover, you have to open the simulator first *from Xcode*. See this thread fro more details: http://forums.livecode.com/viewtopic.php?f=49&t=30592 Best, Panos -- On Tue, Feb 20, 2018 at 5:44 PM, JOHN PATTEN via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi All, > > I am trying to set up a new school Mac laptop with Xcode so that I can run > the iOS simulator on it with Livecode. > > I have tried LiveCode 8.1.7 and 8.1.9 with Xcode most recent version of > Xcode, 9.0, and 9.1. Each time I attempt to launch the simulator in > LiveCode I get the message, ?The simulator seems to be taking a long time > to launch??. Eventually, it times out and the app never launches in the > simulator. > > I?m guessing I am not using the correct versions of LiveCode or, possibly, > Xcode? Is there a link to documentation on how to get the simulator to > work? > > 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 ambassador at fourthworld.com Tue Feb 20 14:42:35 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 20 Feb 2018 11:42:35 -0800 Subject: Levure update 0.9.5 In-Reply-To: References: Message-ID: Mike Kerner wrote: > I'm not sure how much work it's going to be to rewrite anything, > though (which is why I'm curious to hear what others think before > I decide to move something big and get stuck). Levure appears to offer a very good framework. The LC IDE offers another set of useful ideas. revIgniter offers a good framework for still other projects, and (despite his letting the page go 404) Andre's Sparkle offers a good framework too. And there are others ways of working, almost as many as we have developers using LiveCode. The JavaScript world has 23,477 frameworks, and the PHP world offers a choice from among 48,392 frameworks. :) It's code. Many ways to skin all manner of animals. Or to put skin back on. Or trade skin with other creature, or replace their innards. In a universe of pixels all things are possible. Choose the tooling that fits well with what you're working on. Or choose parts of things that work for you, and parts of others. Or write something entirely new to scratch your itch. We hope that LC's growth will mirror the more widely-used languages, in which many frameworks and components spring up, some interoperable, some discrete, most useful, a few just for fun. If there's anything I've learned from the Linux world, it's that users benefit from the inevitable diversity that naturally evolves in all healthy growing ecosystems. One of the many things I admire about Trevor is how he actively encourages people to use the parts of his work that make the most sense for the task at hand, blending with other things as the work makes most beneficial. -- Richard Gaskin Fourth World Systems From lists at mangomultimedia.com Tue Feb 20 14:56:34 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 20 Feb 2018 13:56:34 -0600 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> <0BD606EE-8E34-4E30-B426-3CB5028FFDD4@iotecdigital.com> Message-ID: On Tue, Feb 20, 2018 at 11:20 AM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > I'm interested in hearing more about other people who are thinking about > moving existing projects over. I've moved several small ones over (and > built a couple from scratch), and have been thinking about moving my bigger > ones. I'm not sure how much work it's going to be to rewrite anything, > though (which is why I'm curious to hear what others think before I decide > to move something big and get stuck). Geoff has tackled one of the bigger > issues with Navigator (scriptifying stacks and chained behaviors). That > seems to be the biggest barrier to getting moved for me. Remember that you don?t have to scriptify anything in order to move a project over to Levure. Scriptifying stacks is only necessary in order to properly incorporate version control software (VCS) into your project. Levure itself doesn?t care whether or not your stacks are binary or script only. I *think* this is the bare minimum someone would need to do if they wanted to move their app to Levure: 1) Pull out library, frontscript, back scripts from app and put in proper folders in Levure app. 2) Pull out any code that runs at app startup and place in the `InitializeApplication` or `OpenApplication` handlers in the Levure `app.livecodescript` script. Make sure and open the first stack the user should see at the end of the `OpenApplication` handler. 3) Pull out any code that needs to run when the application quits and place it in `PreShutdownApplication` in the Levure `app.livecodescript` script. 4) Pull out your UI stacks and place them in the proper folder structure for Levure. 5) Configure the standalone.livecode stack for your app, making sure to include any externals or extensions your app uses. Once you?ve finished the above steps and your app runs as it did before then you can choose to go back and scriptify your stacks. You could start with the libraries, front and back scripts. Then move to the UI stacks using something like Navigator or the PI in LC 8 or 9 to convert control scripts to behaviors one at a time. If you step back and look at what Levure is doing it isn?t terribly complicated conceptually: * It provides a project structure for your UI stacks, library stacks, behavior stacks, etc. Because Levure projects use YAML files and the file system they are VCS friendly. * It provides a plugin system (helpers) that allows you to drop in functionality. Because of these qualities, Levure can automate the launching, packaging, and updating of your app. It can also facilitate the addition of features which require multiple stacks and/or extensions. -- Trevor DeVore ScreenSteps www.screensteps.com From irog at mac.com Tue Feb 20 15:32:57 2018 From: irog at mac.com (Roger Guay) Date: Tue, 20 Feb 2018 12:32:57 -0800 Subject: LiveCode and iOS Simulator Set Up In-Reply-To: References: Message-ID: <7CD2F02E-7FB7-4E97-887A-256D07146977@mac.com> I?m having the same problem, John. Here?s is what I wrote to Dan just a few days ago: First off, I?m in Mac OS 10.13.3 so I?m not sure this will help. The simulator has been consistently giving me the message ?The simulator seems to be taking a long time to launch?.? I respond to this message with No, the simulator stays open but unloaaded. I then find I can go to the Simulator menu and select my device under Hardware and everything works. HTH, Roger > On Feb 20, 2018, at 9:44 AM, JOHN PATTEN via use-livecode wrote: > > Hi All, > > I am trying to set up a new school Mac laptop with Xcode so that I can run the iOS simulator on it with Livecode. > > I have tried LiveCode 8.1.7 and 8.1.9 with Xcode most recent version of Xcode, 9.0, and 9.1. Each time I attempt to launch the simulator in LiveCode I get the message, ?The simulator seems to be taking a long time to launch??. Eventually, it times out and the app never launches in the simulator. > > I?m guessing I am not using the correct versions of LiveCode or, possibly, Xcode? Is there a link to documentation on how to get the simulator to work? > > 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 Tue Feb 20 16:37:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Feb 2018 21:37:09 +0000 Subject: Text Styles: Expanded, condensed In-Reply-To: <005401d3aa70$edb29840$c917c8c0$@net> References: <161a4adc8a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <003b01d3aa68$b10b39e0$1321ada0$@net> <005401d3aa70$edb29840$c917c8c0$@net> Message-ID: <46190730-C91A-4DFA-86C8-5090DD0F0B43@iotecdigital.com> Having come up through the golden age of digital prepress, I learned early on that either everyone working on a project that was involved in type had to have the exact same fonts from the exact same foundries, or else risk any number of issues. Nothing worse than getting the finished product and THEN discovering there were type issues. There used to be multi-user font server technologies that allowed one font library to be shared between multiple users, and the way it did it is for display purposes, the end users only got access to the raster fonts, which were themselves free, and when access to the high resolution vector versions was required, only one user could do so at a time. Since the raster versions are so rarely accessed, this was a quite workable system, although not very much to the liking of the font foundries, as you can imagine. I'm not sure what ever happened to those systems. There were two I was familiar with, one was Suitcase by Extensis, and the other I cannot remember the name of, Font wrangler or something like it. There are others now, including an offerring from Adobe, but I doubt all of them offer font sharing. Professional products allow the embedding of typefaces in their documents. Word is not one of those. That is a shame because Word is still to this day the best book layout application, providing for footnote links that flow with the anchors, so you don't have to manually redo all your footnotes every time the document reflows. Bob S > On Feb 20, 2018, at 09:33 , Ralph DiMola via use-livecode wrote: > > K, > > > > That's a amusing observation of font names. > > > > If a MS Word doc is using the Adobe Helvetica and the next user only has a > MonoType Helvetica, then Word will substitute the MonoType font without > warning. Then if the next user has neither font, Word will substitute a > "Helvetica like" font, again without warning. A PDF created from this > document will be problematic when pre-flighted.. > > > > I'm planning to use LC to produce "print ready" PDFs. +100 to the mother > ship for removing LiveCode's phony font styling . > > > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Tue Feb 20 16:42:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Feb 2018 21:42:41 +0000 Subject: Levure update 0.9.5 In-Reply-To: References: <96CC13F4-85C3-42A1-AD18-F4B1CE0C6964@mac.com> <205A6B54-D003-44CA-9E94-22400B6307DF@mac.com> <0BD606EE-8E34-4E30-B426-3CB5028FFDD4@iotecdigital.com> Message-ID: <327A28EB-7BA0-46DE-8247-2AC875125C9A@iotecdigital.com> Well since you put it THAT way... ;-P I will offer this advice, and maybe it's not really needed, but I keep all the files necessary for a project in a single folder for that project, much like Levure does. For the purposes of cutting over, it may help to make a duplicate of your project and "Levureize" that, making it the default for that project when you are done. Bob S > On Feb 20, 2018, at 11:56 , Trevor DeVore via use-livecode wrote: > > On Tue, Feb 20, 2018 at 11:20 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I'm interested in hearing more about other people who are thinking about >> moving existing projects over. I've moved several small ones over (and >> built a couple from scratch), and have been thinking about moving my bigger >> ones. I'm not sure how much work it's going to be to rewrite anything, >> though (which is why I'm curious to hear what others think before I decide >> to move something big and get stuck). Geoff has tackled one of the bigger >> issues with Navigator (scriptifying stacks and chained behaviors). That >> seems to be the biggest barrier to getting moved for me. > > > Remember that you don?t have to scriptify anything in order to move a > project over to Levure. Scriptifying stacks is only necessary in order to > properly incorporate version control software (VCS) into your project. > Levure itself doesn?t care whether or not your stacks are binary or script > only. > > I *think* this is the bare minimum someone would need to do if they wanted > to move their app to Levure: > > 1) Pull out library, frontscript, back scripts from app and put in proper > folders in Levure app. > 2) Pull out any code that runs at app startup and place in the > `InitializeApplication` or `OpenApplication` handlers in the Levure > `app.livecodescript` script. Make sure and open the first stack the user > should see at the end of the `OpenApplication` handler. > 3) Pull out any code that needs to run when the application quits and place > it in `PreShutdownApplication` in the Levure `app.livecodescript` script. > 4) Pull out your UI stacks and place them in the proper folder structure > for Levure. > 5) Configure the standalone.livecode stack for your app, making sure to > include any externals or extensions your app uses. > > Once you?ve finished the above steps and your app runs as it did before > then you can choose to go back and scriptify your stacks. You could start > with the libraries, front and back scripts. Then move to the UI stacks > using something like Navigator or the PI in LC 8 or 9 to convert control > scripts to behaviors one at a time. > > If you step back and look at what Levure is doing it isn?t terribly > complicated conceptually: > > * It provides a project structure for your UI stacks, library stacks, > behavior stacks, etc. Because Levure projects use YAML files and the file > system they are VCS friendly. > * It provides a plugin system (helpers) that allows you to drop in > functionality. > > Because of these qualities, Levure can automate the launching, packaging, > and updating of your app. It can also facilitate the addition of features > which require multiple stacks and/or extensions. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Tue Feb 20 17:24:47 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 20 Feb 2018 22:24:47 +0000 Subject: AcceleraterRendering - when to turn off Message-ID: I have a heck a time with our new app on android One stack works fine. But we going one stack to another, (not in iOS) is a problem. Seems to be subtle issues with one the follow (although on the surface they seem to be same) 1) it is better to set the acceleratedRendering of this stack to false -- on closeCard -- on closeStack -- on library stack, used to close one stack and one open another Go window did not work, as it never gets the handler that set stack to landscape. so it back to go cardOrStackObject # e.g go "gems" (or this string) go card 3 of "gems" wait 100 milliseconds with messages close stack oStackName wait 100 milliseconds with messages it "wait" is android issue 2) The issue is the same with mobile controls. When is a safe delete them? -- on closeCard -- on closeStack -- on library stack, used to close one stack and one open another BR From alex at tweedly.net Tue Feb 20 17:45:06 2018 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 20 Feb 2018 22:45:06 +0000 Subject: Bug? or unexpected feature ?? Message-ID: <77970369-f4ab-6b18-7236-b7884918641c@tweedly.net> This is on LC Server (various versions). My main script is simply > > put "folder1/folder2/my_script.livecode" into temp1 > > put "about to try" && temp1 & "
" > start using stack temp1 > > hereweare Inside the sub-directory "folder1/folder2" I have a script-only stack "my_script.livecode", which says > script "mine" > > command hereweare > ? put "here we are inside folder1/folder2/" > end hereweare And, as expected, when I run the script, it outputs: about to try folder1/folder2/my_script.livecode here we are inside folder1/folder2/ I happen to have a same-named script file "my_script.livecode" at the top level (with slightly different content) - but that of course doesn't matter *until* I delete the lower-down file (i.e. folder1/folder2/myscript.livecode). Then, somehow,??? 'start using stack temp1' ? doesn't fail (which I think it should), but instead it loads in the stack script at the top level. Surely "start using stack: shouldn't ignore the relative path specified ? Anyway - it does, and produces as output about to try folder1/folder2/my_script.livecode here we are on top which is the output given by the top-level version of the library script. So - is that a bug or a feature I've failed to understand :-) ? Thanks Alex. From livfoss at mac.com Tue Feb 20 18:15:08 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 21 Feb 2018 00:15:08 +0100 Subject: A little Levure-oriented question Message-ID: I?m following the Levure discussion and of course Trevor's pronouncements with great interest. One thing strikes me - is there really a universally understood meaning to the term ?UI stack?? I do understand the concept of separating the UI from the logic of an app, but any UI must contain **some** logic, mustn?t it? In the LC world, by ?logic? of course I really mean code. What level of coding is permissible to allow in a UI stack, do people think? I have a feeling that some folks? idea of this is going to be very different from some others?. Perhaps there is an orthodoxy about this, but I am not familiar with it. Graham From jacque at hyperactivesw.com Tue Feb 20 18:25:07 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Feb 2018 17:25:07 -0600 Subject: Features and shortcomings of html5 Message-ID: <4b7fee7a-fe0e-b801-495a-d8604446aca4@hyperactivesw.com> I've been asked if I can convert a stack to HTML5, which I haven't worked with yet. I'd like to know, in general, what can be done and what can't. What are the limitations? The examples I've seen are mostly basic, usually just a one-card stack with image or graphic manipulations. I'm also aware of the fairly long initial load time, though I guess that's been cut back a bit. The stack I will be working with will require many cards, navigation, and possibly changing stacks (probably in the same window.) What else would I need to consider? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lists at mangomultimedia.com Tue Feb 20 18:43:42 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 20 Feb 2018 17:43:42 -0600 Subject: A little Levure-oriented question In-Reply-To: References: Message-ID: On Tue, Feb 20, 2018 at 5:15 PM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > I?m following the Levure discussion and of course Trevor's pronouncements > with great interest. One thing strikes me - is there really a universally > understood meaning to the term ?UI stack?? I do understand the concept of > separating the UI from the logic of an app, but any UI must contain > **some** logic, mustn?t it? In the LC world, by ?logic? of course I really > mean code. What level of coding is permissible to allow in a UI stack, do > people think? I have a feeling that some folks? idea of this is going to be > very different from some others?. Perhaps there is an orthodoxy about this, > but I am not familiar with it. > In Levure a UI stack is just a stack that is used as a window to display a user interface to the user. In LiveCode the term stack is overloaded. It can be a library, a front script, a back script, or a stack that is actually displays to the user. Actually it can be both a stack that displays an interface to the user and a library/frontscript/backscript). So Levure encourages you to organize your stacks based on how they are used. In Levure a UI stack will be added to the list of stackFiles property of the main Levure app stack. This allows you to reference the stack by name (e.g. stack ?MyStack?) without having to load all of the UI stacks into memory when the application starts up. My general rule is that I place all code that is specific to a specific UI stack in the behaviors attached to the stack, cards, and controls of that stack. Any code that is shared is pushed down into a library. The controls in my stacks have very little code. They simply call handlers that reside in the card or stack behaviors. -- Trevor DeVore ScreenSteps www.screensteps.com From MikeKerner at roadrunner.com Tue Feb 20 19:04:34 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 20 Feb 2018 19:04:34 -0500 Subject: A little Levure-oriented question In-Reply-To: References: Message-ID: You can move as much or as little as you like. I prefer to move everything and use an external text editor whenever I want to edit code. The .rev or .livecode stack file for me, then has multiple cards with the layouts and the objects, but no code in it. I also have taken to removing all substacks and making them separate, especially since in many cases those substacks are modules or libraries. That makes version control of those submodules and libraries far simpler for me. On Tue, Feb 20, 2018 at 6:43 PM, Trevor DeVore via use-livecode < use-livecode at lists.runrev.com> wrote: > On Tue, Feb 20, 2018 at 5:15 PM, Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I?m following the Levure discussion and of course Trevor's pronouncements > > with great interest. One thing strikes me - is there really a universally > > understood meaning to the term ?UI stack?? I do understand the concept of > > separating the UI from the logic of an app, but any UI must contain > > **some** logic, mustn?t it? In the LC world, by ?logic? of course I > really > > mean code. What level of coding is permissible to allow in a UI stack, do > > people think? I have a feeling that some folks? idea of this is going to > be > > very different from some others?. Perhaps there is an orthodoxy about > this, > > but I am not familiar with it. > > > > In Levure a UI stack is just a stack that is used as a window to display a > user interface to the user. In LiveCode the term stack is overloaded. It > can be a library, a front script, a back script, or a stack that is > actually displays to the user. Actually it can be both a stack that > displays an interface to the user and a library/frontscript/backscript). > So > Levure encourages you to organize your stacks based on how they are used. > In Levure a UI stack will be added to the list of stackFiles property of > the main Levure app stack. This allows you to reference the stack by name > (e.g. stack ?MyStack?) without having to load all of the UI stacks into > memory when the application starts up. > > My general rule is that I place all code that is specific to a specific UI > stack in the behaviors attached to the stack, cards, and controls of that > stack. Any code that is shared is pushed down into a library. > > The controls in my stacks have very little code. They simply call handlers > that reside in the card or stack behaviors. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.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 rdimola at evergreeninfo.net Tue Feb 20 19:09:57 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 20 Feb 2018 19:09:57 -0500 Subject: AcceleraterRendering - when to turn off In-Reply-To: References: Message-ID: <00b101d3aaa8$51e02cb0$f5a08610$@net> S, #1 After the Android acceleratedRendering crash was fixed I have been leaving it on at all times and have not had any problems. I thought that only one stack at a time on mobile so I never close them. #2. I delete all mobile controls on close card. I delete mobile scrollers only on resizestack. 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: Tuesday, February 20, 2018 5:25 PM To: How LiveCode Cc: Sannyasin Brahmanathaswami Subject: AcceleraterRendering - when to turn off I have a heck a time with our new app on android One stack works fine. But we going one stack to another, (not in iOS) is a problem. Seems to be subtle issues with one the follow (although on the surface they seem to be same) 1) it is better to set the acceleratedRendering of this stack to false -- on closeCard -- on closeStack -- on library stack, used to close one stack and one open another Go window did not work, as it never gets the handler that set stack to landscape. so it back to go cardOrStackObject # e.g go "gems" (or this string) go card 3 of "gems" wait 100 milliseconds with messages close stack oStackName wait 100 milliseconds with messages it "wait" is android issue 2) The issue is the same with mobile controls. When is a safe delete them? -- on closeCard -- on closeStack -- on library stack, used to close one stack and one open another 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 bobsneidar at iotecdigital.com Tue Feb 20 19:40:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Feb 2018 00:40:12 +0000 Subject: A little Levure-oriented question In-Reply-To: References: Message-ID: Script Only stacks make versioning and multiuser development environments possible, at least from the coding aspect of things. They cannot be password protected however, nor can they have properties, so even a faceless application which needed to avail these features would still need a UI stack. Also, objects whose code is unique and never changes would not benefit from a versioning system or as a behavior. It's probably simpler just to code the object. My 2? Bob S > On Feb 20, 2018, at 15:15 , Graham Samuel via use-livecode wrote: > > I?m following the Levure discussion and of course Trevor's pronouncements with great interest. One thing strikes me - is there really a universally understood meaning to the term ?UI stack?? I do understand the concept of separating the UI from the logic of an app, but any UI must contain **some** logic, mustn?t it? In the LC world, by ?logic? of course I really mean code. What level of coding is permissible to allow in a UI stack, do people think? I have a feeling that some folks? idea of this is going to be very different from some others?. Perhaps there is an orthodoxy about this, but I am not familiar with it. > > Graham From MikeKerner at roadrunner.com Tue Feb 20 20:35:14 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 20 Feb 2018 20:35:14 -0500 Subject: A little Levure-oriented question In-Reply-To: References: Message-ID: AFA the password protection goes, the traditional stack is only required when you _distribute_ the app. You do not need to store it that way. When you build a Levure app, it automatically creates a binary stack, installs the code, and password protects it. You get the best of both worlds: On your system and in your VCS you have the script as straight text, and when you distribute it, you get encrypted. You are absolutely correct that scripts that never change don't benefit from version control (and really, for short scripts, the value of version control is also limited). In this case, the reason why I like to have this code stored in SOS's is because if I ever accidentally change one of these scripts, my git tool will flag it as a change that has to be committed. On Tue, Feb 20, 2018 at 7:40 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Script Only stacks make versioning and multiuser development environments > possible, at least from the coding aspect of things. They cannot be > password protected however, nor can they have properties, so even a > faceless application which needed to avail these features would still need > a UI stack. Also, objects whose code is unique and never changes would not > benefit from a versioning system or as a behavior. It's probably simpler > just to code the object. My 2? > > Bob S > > > > On Feb 20, 2018, at 15:15 , Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I?m following the Levure discussion and of course Trevor's > pronouncements with great interest. One thing strikes me - is there really > a universally understood meaning to the term ?UI stack?? I do understand > the concept of separating the UI from the logic of an app, but any UI must > contain **some** logic, mustn?t it? In the LC world, by ?logic? of course I > really mean code. What level of coding is permissible to allow in a UI > stack, do people think? I have a feeling that some folks? idea of this is > going to be very different from some others?. Perhaps there is an orthodoxy > about this, but I am not familiar with it. > > > > Graham > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From hh at hyperhh.de Tue Feb 20 21:09:42 2018 From: hh at hyperhh.de (hh) Date: Wed, 21 Feb 2018 03:09:42 +0100 Subject: Features and shortcomings of html5 Message-ID: <2857DC09-EE74-4B02-9BCB-1448B4DE603D@hyperhh.de> > JLG wrote: > The examples I've seen are mostly basic, usually just a one-card stack with image > or graphic manipulations. What examples if not mine (and the few I link to) did you see? Would be very glad to know some more. > The stack I will be working with will require many cards, navigation, and possibly > changing stacks (probably in the same window.) So you didn't even try the basic ones for that. There is also ... 1. ... "TerminalZero". Compile it with the version you want and you have a simple tool to test what works and what doesn't work in that version. 2. ... "Navigation" for card deletion/creating example (with use of several fonts). 3. ... "Video-Fun" for using sound/video. 4. ... "Do as JavaScript" in case your methods are too slow for HTML5 or not yet implemented. 5. ... "FetchURL" for simplest networking. 6. ... "Oriented Text" for testing how an embedded widget works. If the probably in "probably in the same window" is not 100% then you may be lost. Most of the examples are from the LC 8.0 times where HTML5 deployment was "very" experimental (what makes them "basic"). They especially show now, to which part the speed improvement is due to the improved browser you use and not to LC. Currently Safari is in general best, Firefox and Chrome are next, then Opera (which is in turn best with special things). A time-execution factor of up to 10 between them is not unusual. And Internet explorer and Edge don't work at all with HTML5 standalones. > What else would I need to consider? 1. Start with searching LiveCode-Quality-Control-Center for "HTML5". 2. Start with using a card full of buttons, text fields and other controls you need. 3. Measure the execution time of your core routines in several browsers/OSes. Then optimize or work around- Hope you'll share soon your great collection of advanced (working) HTML5 examples. > JLG wrote: > I've been asked if I can convert a stack to HTML5, which I haven't > worked with yet. I'd like to know, in general, what can be done and what > can't. What are the limitations? > > The examples I've seen are mostly basic, usually just a one-card stack > with image or graphic manipulations. I'm also aware of the fairly long > initial load time, though I guess that's been cut back a bit. The stack > I will be working with will require many cards, navigation, and possibly > changing stacks (probably in the same window.) > > What else would I need to consider? From hh at hyperhh.de Tue Feb 20 21:35:22 2018 From: hh at hyperhh.de (hh) Date: Wed, 21 Feb 2018 03:35:22 +0100 Subject: Features and shortcomings of html5 Message-ID: <52282BF6-E122-4B13-93C2-59CE015E263B@hyperhh.de> Forgot to say: **** There are a LOT of improvements in the HTML5 standalone builder from LC 8.0.2 to 9.0.0-dp10. **** It is especially Ian who does a good job in that field. But it is also a lot of work to recompile older standalones and to remove work arounds that are no longer needed. Probably it is best to remove all old examples. It is the same with widgets. LCB changes are very sparsely documented. Instead of being angry that 'old widgets' don't run any more just remove them. From terry.judd at unimelb.edu.au Tue Feb 20 22:05:10 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Wed, 21 Feb 2018 03:05:10 +0000 Subject: Features and shortcomings of html5 In-Reply-To: <4b7fee7a-fe0e-b801-495a-d8604446aca4@hyperactivesw.com> References: <4b7fee7a-fe0e-b801-495a-d8604446aca4@hyperactivesw.com> Message-ID: I've converted a couple of interactive simulations to HTML5 and they worked and performed surprisingly well (once I'd removed and coded around a few wait statements). Multiple cards are fine but I haven't tried switching between stacks. Text display isn't that great out of the box but that shouldn't be too much of an issue unless you have pretty strict formatting requirements (you can load fonts but I'm not sure whether it's worth the trouble). The biggest drawback for me has been around networking but that seems to have been substantially improved in recent releases (I haven't had a chance to explore these yet). It's certainly worth a quick try of exporting an existing stack with LC community and seeing what works and what doesn't to get a sense of whether a full on conversion is warranted. Terry... ?On 21/02/2018 10:25 am, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: I've been asked if I can convert a stack to HTML5, which I haven't worked with yet. I'd like to know, in general, what can be done and what can't. What are the limitations? The examples I've seen are mostly basic, usually just a one-card stack with image or graphic manipulations. I'm also aware of the fairly long initial load time, though I guess that's been cut back a bit. The stack I will be working with will require many cards, navigation, and possibly changing stacks (probably in the same window.) What else would I need to consider? -- 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 brian at milby7.com Tue Feb 20 22:57:35 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 21 Feb 2018 03:57:35 +0000 Subject: libsodium on LiveCode? In-Reply-To: <993EA851-D0AB-4A62-8F49-0FDBFA7976B7@appisle.net> References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> <993EA851-D0AB-4A62-8F49-0FDBFA7976B7@appisle.net> Message-ID: Monte, you are awesome! With your help I was able to generate a key pair using libSodium. That means that we are one huge step closer to asymmetric key generation and use within LC. For each tool chain they provided a static and dynamic directory. The static just contained a .lib file. The dynamic contains 3 or 4 files. Starting at 140 a .pdb file is added. The latest one that works is v120. Thanks for the help! From monte at appisle.net Tue Feb 20 23:12:56 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 21 Feb 2018 15:12:56 +1100 Subject: libsodium on LiveCode? In-Reply-To: References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> <993EA851-D0AB-4A62-8F49-0FDBFA7976B7@appisle.net> Message-ID: <6619A2C5-451A-4B46-A73B-FF4380E74D39@appisle.net> > On 21 Feb 2018, at 2:57 pm, Brian Milby wrote: > > Monte, you are awesome! Cheers! Not feeling so awesome today? been banging my head on something all day and getting nowhere :-( > > With your help I was able to generate a key pair using libSodium. That means that we are one huge step closer to asymmetric key generation and use within LC. Hmm? have you seen tsNetGenerateKey ? > > For each tool chain they provided a static and dynamic directory. The static just contained a .lib file. The dynamic contains 3 or 4 files. Starting at 140 a .pdb file is added. The latest one that works is v120. > > Thanks for the help! OK, I?m not sure why they aren?t working. The main thing I?d look for is if they are built to dynamic link to the CRT and you don?t have the corresponding version of MSVS or the redistributable packages installed. You could try installing this and then test 140 https://www.microsoft.com/en-au/download/details.aspx?id=48145 Cheers Monte From jacque at hyperactivesw.com Tue Feb 20 23:28:41 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Feb 2018 22:28:41 -0600 Subject: Features and shortcomings of html5 In-Reply-To: <2857DC09-EE74-4B02-9BCB-1448B4DE603D@hyperhh.de> References: <2857DC09-EE74-4B02-9BCB-1448B4DE603D@hyperhh.de> Message-ID: <9b47cbb9-2fb9-8b16-ac99-31193fd9ba96@hyperactivesw.com> On 2/20/18 8:09 PM, hh via use-livecode wrote: > What examples if not mine (and the few I link to) did you see? Would be very glad to know > some more. I found some by Bernd in the forums that demonstrated a few different techniques. > So you didn't even try the basic ones for that. I tried a couple of yours when you announced them here a long time ago, but I couldn't find them today when I searched the forum. I had you in mind specifically but couldn't find a link to the download page. I was on Skype with the client at the time and wasn't able to do an extensive search, even though I did look for your name. My client looked at Bernd's work while we talked and liked it. There is also ... > > 1. ... "TerminalZero". Compile it with the version you want and you have a simple tool > to test what works and what doesn't work in that version. > 2. ... "Navigation" for card deletion/creating example (with use of several fonts). > 3. ... "Video-Fun" for using sound/video. > 4. ... "Do as JavaScript" in case your methods are too slow for HTML5 or not yet implemented. > 5. ... "FetchURL" for simplest networking. > 6. ... "Oriented Text" for testing how an embedded widget works. > > If the probably in "probably in the same window" is not 100% then you may be lost. Thanks, that gives me some idea and TerminalZero sounds interesting, but I still need a web link. I don't know yet exactly what we will need, nor does my client who will be re-selling to someone else. She needs to get more info about the customization we'd require, which is why I couldn't ask more specific questions yet. > > Most of the examples are from the LC 8.0 times where HTML5 deployment was "very" > experimental (what makes them "basic"). They especially show now, to which part the speed > improvement is due to the improved browser you use and not to LC. > Currently Safari is in general best, Firefox and Chrome are next, then Opera (which is in > turn best with special things). > A time-execution factor of up to 10 between them is not unusual. And Internet explorer and > Edge don't work at all with HTML5 standalones. That's an important limitation. > >> What else would I need to consider? > > 1. Start with searching LiveCode-Quality-Control-Center for "HTML5". > 2. Start with using a card full of buttons, text fields and other controls you need. > 3. Measure the execution time of your core routines in several browsers/OSes. > > Then optimize or work around- > Hope you'll share soon your great collection of advanced (working) HTML5 examples. We are in the exploratory phase right now but if the project does go through, you will be able to see the finished product at the customer web site. For now I just need some general guidelines to help my client steer her customer in the right direction. Thanks for your thoughts, hh. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Feb 20 23:45:54 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Feb 2018 22:45:54 -0600 Subject: Features and shortcomings of html5 In-Reply-To: References: <4b7fee7a-fe0e-b801-495a-d8604446aca4@hyperactivesw.com> Message-ID: Thanks Terry, that's helpful. I get the feeling that we can do almost anything internal to LC's engine, but things that require a call out to the OS are harder. I did a quick conversion of a simple stack way back when HTML5 was first released and got pretty good results, but the load time was murderous and I dropped it as unusable until it got faster. I haven't tried it since that was improved, maybe it's okay now. The deal is, my client and I have fast internet connections and we're willing to wait a bit for the stack to load, but if this project goes through it could be used by anyone including, as she told me, "by people in Nairobi" who may be on slow connections or even cell data. We're also considering writing mobile apps instead, but her customer is hoping to integrate directly with their web site. At any rate, thanks for the feedback. On 2/20/18 9:05 PM, Terry Judd via use-livecode wrote: > I've converted a couple of interactive simulations to HTML5 and they worked and performed surprisingly well (once I'd removed and coded around a few wait statements). Multiple cards are fine but I haven't tried switching between stacks. Text display isn't that great out of the box but that shouldn't be too much of an issue unless you have pretty strict formatting requirements (you can load fonts but I'm not sure whether it's worth the trouble). The biggest drawback for me has been around networking but that seems to have been substantially improved in recent releases (I haven't had a chance to explore these yet). > > It's certainly worth a quick try of exporting an existing stack with LC community and seeing what works and what doesn't to get a sense of whether a full on conversion is warranted. > > Terry... > > ?On 21/02/2018 10:25 am, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: > > I've been asked if I can convert a stack to HTML5, which I haven't > worked with yet. I'd like to know, in general, what can be done and what > can't. What are the limitations? > > The examples I've seen are mostly basic, usually just a one-card stack > with image or graphic manipulations. I'm also aware of the fairly long > initial load time, though I guess that's been cut back a bit. The stack > I will be working with will require many cards, navigation, and possibly > changing stacks (probably in the same window.) > > What else would I need to consider? > > -- > 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 brian at milby7.com Tue Feb 20 23:50:28 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 21 Feb 2018 04:50:28 +0000 Subject: libsodium on LiveCode? In-Reply-To: <6619A2C5-451A-4B46-A73B-FF4380E74D39@appisle.net> References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> <993EA851-D0AB-4A62-8F49-0FDBFA7976B7@appisle.net> <6619A2C5-451A-4B46-A73B-FF4380E74D39@appisle.net> Message-ID: Had not seen the tsNet handler, but that is an RSA key. Scuttlebutt uses a different key type. There are other useful things in the library. There is some overlap, but enough different to make it worthy of an effort. I?ll need to take a look at the MS links. Hopefully the rest of today and tomorrow will go better! On Tue, Feb 20, 2018 at 10:13 PM Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On 21 Feb 2018, at 2:57 pm, Brian Milby wrote: > > > > Monte, you are awesome! > > Cheers! Not feeling so awesome today? been banging my head on something > all day and getting nowhere :-( > > > > With your help I was able to generate a key pair using libSodium. That > means that we are one huge step closer to asymmetric key generation and use > within LC. > > Hmm? have you seen tsNetGenerateKey ? > > > > For each tool chain they provided a static and dynamic directory. The > static just contained a .lib file. The dynamic contains 3 or 4 files. > Starting at 140 a .pdb file is added. The latest one that works is v120. > > > > Thanks for the help! > > OK, I?m not sure why they aren?t working. The main thing I?d look for is > if they are built to dynamic link to the CRT and you don?t have the > corresponding version of MSVS or the redistributable packages installed. > You could try installing this and then test 140 > https://www.microsoft.com/en-au/download/details.aspx?id=48145 < > https://www.microsoft.com/en-au/download/details.aspx?id=48145> > > 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 terry.judd at unimelb.edu.au Wed Feb 21 00:01:45 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Wed, 21 Feb 2018 05:01:45 +0000 Subject: Features and shortcomings of html5 In-Reply-To: References: <4b7fee7a-fe0e-b801-495a-d8604446aca4@hyperactivesw.com> Message-ID: <6BEEEF97-99D8-44A2-A34C-EF8DD63A23FE@unimelb.edu.au> Yeah, you are still in for a bit of a wait for the initial load to complete but that doesn't seem to have deterred my users yet (they were pre-warned about the delay), even those who were accessing the sims from outside the university network. Not sure that I'd want to attempt to deliver it over anything less than a 4G mobile network though, and if the cost of data use is an issue for the end user then... Terry ?On 21/02/2018 3:46 pm, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: Thanks Terry, that's helpful. I get the feeling that we can do almost anything internal to LC's engine, but things that require a call out to the OS are harder. I did a quick conversion of a simple stack way back when HTML5 was first released and got pretty good results, but the load time was murderous and I dropped it as unusable until it got faster. I haven't tried it since that was improved, maybe it's okay now. The deal is, my client and I have fast internet connections and we're willing to wait a bit for the stack to load, but if this project goes through it could be used by anyone including, as she told me, "by people in Nairobi" who may be on slow connections or even cell data. We're also considering writing mobile apps instead, but her customer is hoping to integrate directly with their web site. At any rate, thanks for the feedback. On 2/20/18 9:05 PM, Terry Judd via use-livecode wrote: > I've converted a couple of interactive simulations to HTML5 and they worked and performed surprisingly well (once I'd removed and coded around a few wait statements). Multiple cards are fine but I haven't tried switching between stacks. Text display isn't that great out of the box but that shouldn't be too much of an issue unless you have pretty strict formatting requirements (you can load fonts but I'm not sure whether it's worth the trouble). The biggest drawback for me has been around networking but that seems to have been substantially improved in recent releases (I haven't had a chance to explore these yet). > > It's certainly worth a quick try of exporting an existing stack with LC community and seeing what works and what doesn't to get a sense of whether a full on conversion is warranted. > > Terry... > > On 21/02/2018 10:25 am, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: > > I've been asked if I can convert a stack to HTML5, which I haven't > worked with yet. I'd like to know, in general, what can be done and what > can't. What are the limitations? > > The examples I've seen are mostly basic, usually just a one-card stack > with image or graphic manipulations. I'm also aware of the fairly long > initial load time, though I guess that's been cut back a bit. The stack > I will be working with will require many cards, navigation, and possibly > changing stacks (probably in the same window.) > > What else would I need to consider? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Wed Feb 21 00:16:41 2018 From: hh at hyperhh.de (hh) Date: Wed, 21 Feb 2018 06:16:41 +0100 Subject: Features and shortcomings of html5 Message-ID: The laoding delay is very much dependent on how you configure your server. If the server is optimized I have here with Safari < 9 secs for the first load and < 3 secs for a reload, using the server of the first link below. The standalones mentioned are here [EU] http://hyperhh.org/html5/index-large.html or here (same content) [US] http://hh.on-rev.com/html5/index-large.html And here is an info: Forums/HTML5/Successful_test Download right now what you need, because I'll remove soon all those unneeded "basic experiments" (and, that's my method, trash them here also). p.s. You will have no luck running more than a primitive demo on mobile, no matter the connection speed. From hh at hyperhh.de Wed Feb 21 00:37:18 2018 From: hh at hyperhh.de (hh) Date: Wed, 21 Feb 2018 06:37:18 +0100 Subject: Features and shortcomings of html5 Message-ID: <978C8D9F-BBF9-495D-8AB4-05876628E8B7@hyperhh.de> So, here is one thing you have to keep in mind: The same-origin-policy for networking. http://hyperhh.de/html5/testFetch-9.0.0-dp-7X.html works with loading images but this one fails: http://hyperhh.org/html5/testFetch-9.0.0-dp-7X.html There is no other difference but using .org instead of .de Both point to identic files (files to load have relative paths). From bobsneidar at iotecdigital.com Wed Feb 21 10:34:39 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Feb 2018 15:34:39 +0000 Subject: libsodium on LiveCode? In-Reply-To: <6619A2C5-451A-4B46-A73B-FF4380E74D39@appisle.net> References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> <993EA851-D0AB-4A62-8F49-0FDBFA7976B7@appisle.net> <6619A2C5-451A-4B46-A73B-FF4380E74D39@appisle.net> Message-ID: <22EBEE42-ACAF-4509-B0C1-637164313F43@iotecdigital.com> Sounds like my day yesterday. Hope you have a breakthrough today! Bob S > On Feb 20, 2018, at 20:12 , Monte Goulding via use-livecode wrote: > >> Monte, you are awesome! > > Cheers! Not feeling so awesome today? been banging my head on something all day and getting nowhere :-( > From livfoss at mac.com Wed Feb 21 11:46:20 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 21 Feb 2018 17:46:20 +0100 Subject: A little Levure-oriented question In-Reply-To: References: Message-ID: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> OK, i?m a bit confused. If we look at a non-faceless application, then the user will be interacting with it via the UI. This means that stuff like clicking and dragging has to be dealt with. I see that this can all be done by a library that works out where the ?mouseUp? or whatever came from and then handles what is needed to be done and sent back to the user, but can there really be no code at all in the stack the user sees? What about a game-like interface, where the movement of objects relative to one another is something that has to be captured? I suppose what I?m saying is that if the essence of the app is the interaction between the objects the user sees, then abstracting the objects? behaviour away from the primary interface only has the merit that it?s better for version control, doesn?t it? Or am I seeing it all wrong? Graham > On 21 Feb 2018, at 01:04, Mike Kerner via use-livecode wrote: > > You can move as much or as little as you like. I prefer to move everything > and use an external text editor whenever I want to edit code. The .rev or > .livecode stack file for me, then has multiple cards with the layouts and > the objects, but no code in it. I also have taken to removing all > substacks and making them separate, especially since in many cases those > substacks are modules or libraries. That makes version control of those > submodules and libraries far simpler for me. > > On Tue, Feb 20, 2018 at 6:43 PM, Trevor DeVore via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On Tue, Feb 20, 2018 at 5:15 PM, Graham Samuel via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I?m following the Levure discussion and of course Trevor's pronouncements >>> with great interest. One thing strikes me - is there really a universally >>> understood meaning to the term ?UI stack?? I do understand the concept of >>> separating the UI from the logic of an app, but any UI must contain >>> **some** logic, mustn?t it? In the LC world, by ?logic? of course I >> really >>> mean code. What level of coding is permissible to allow in a UI stack, do >>> people think? I have a feeling that some folks? idea of this is going to >> be >>> very different from some others?. Perhaps there is an orthodoxy about >> this, >>> but I am not familiar with it. >>> >> >> In Levure a UI stack is just a stack that is used as a window to display a >> user interface to the user. In LiveCode the term stack is overloaded. It >> can be a library, a front script, a back script, or a stack that is >> actually displays to the user. Actually it can be both a stack that >> displays an interface to the user and a library/frontscript/backscript). >> So >> Levure encourages you to organize your stacks based on how they are used. >> In Levure a UI stack will be added to the list of stackFiles property of >> the main Levure app stack. This allows you to reference the stack by name >> (e.g. stack ?MyStack?) without having to load all of the UI stacks into >> memory when the application starts up. >> >> My general rule is that I place all code that is specific to a specific UI >> stack in the behaviors attached to the stack, cards, and controls of that >> stack. Any code that is shared is pushed down into a library. >> >> The controls in my stacks have very little code. They simply call handlers >> that reside in the card or stack behaviors. >> >> -- >> Trevor DeVore >> ScreenSteps >> www.screensteps.com >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Feb 21 12:59:09 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 21 Feb 2018 12:59:09 -0500 Subject: A little Levure-oriented question In-Reply-To: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> Message-ID: You do not have to have a single line of code in the .rev/.livecode file. You can have behaviors assigned to each object, card, and the stack. Those behaviors would be assigned to script-only stack files (.livecodescript). The first line of a SOS is the word "script", then a name, enclosed in quotes. That name does not have to be related to anything, or have any meaning. After that first line would be the code/handlers, etc. If you like, you can consolidate your code into only a few SOS's, or you can have an SOS as the behavior for every single object. On Wed, Feb 21, 2018 at 11:46 AM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > OK, i?m a bit confused. If we look at a non-faceless application, then the > user will be interacting with it via the UI. This means that stuff like > clicking and dragging has to be dealt with. I see that this can all be done > by a library that works out where the ?mouseUp? or whatever came from and > then handles what is needed to be done and sent back to the user, but can > there really be no code at all in the stack the user sees? What about a > game-like interface, where the movement of objects relative to one another > is something that has to be captured? I suppose what I?m saying is that if > the essence of the app is the interaction between the objects the user > sees, then abstracting the objects? behaviour away from the primary > interface only has the merit that it?s better for version control, doesn?t > it? Or am I seeing it all wrong? > > Graham > > > On 21 Feb 2018, at 01:04, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > You can move as much or as little as you like. I prefer to move > everything > > and use an external text editor whenever I want to edit code. The .rev > or > > .livecode stack file for me, then has multiple cards with the layouts and > > the objects, but no code in it. I also have taken to removing all > > substacks and making them separate, especially since in many cases those > > substacks are modules or libraries. That makes version control of those > > submodules and libraries far simpler for me. > > > > On Tue, Feb 20, 2018 at 6:43 PM, Trevor DeVore via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> On Tue, Feb 20, 2018 at 5:15 PM, Graham Samuel via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> I?m following the Levure discussion and of course Trevor's > pronouncements > >>> with great interest. One thing strikes me - is there really a > universally > >>> understood meaning to the term ?UI stack?? I do understand the concept > of > >>> separating the UI from the logic of an app, but any UI must contain > >>> **some** logic, mustn?t it? In the LC world, by ?logic? of course I > >> really > >>> mean code. What level of coding is permissible to allow in a UI stack, > do > >>> people think? I have a feeling that some folks? idea of this is going > to > >> be > >>> very different from some others?. Perhaps there is an orthodoxy about > >> this, > >>> but I am not familiar with it. > >>> > >> > >> In Levure a UI stack is just a stack that is used as a window to > display a > >> user interface to the user. In LiveCode the term stack is overloaded. It > >> can be a library, a front script, a back script, or a stack that is > >> actually displays to the user. Actually it can be both a stack that > >> displays an interface to the user and a library/frontscript/ > backscript). > >> So > >> Levure encourages you to organize your stacks based on how they are > used. > >> In Levure a UI stack will be added to the list of stackFiles property of > >> the main Levure app stack. This allows you to reference the stack by > name > >> (e.g. stack ?MyStack?) without having to load all of the UI stacks into > >> memory when the application starts up. > >> > >> My general rule is that I place all code that is specific to a specific > UI > >> stack in the behaviors attached to the stack, cards, and controls of > that > >> stack. Any code that is shared is pushed down into a library. > >> > >> The controls in my stacks have very little code. They simply call > handlers > >> that reside in the card or stack behaviors. > >> > >> -- > >> Trevor DeVore > >> ScreenSteps > >> www.screensteps.com > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 livfoss at mac.com Wed Feb 21 13:58:56 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 21 Feb 2018 19:58:56 +0100 Subject: A little Levure-oriented question In-Reply-To: References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> Message-ID: But if there?s no code in the UI stack, how do the handlers in the SOS know what object has invoked them? I mean of course you can work out the caller, but it?s much easier to say on mouseUp doSomethingJustForMe(myCoordinates end mouseUp than working it all out later, isn?t it? Doubtless this is a dumb question, but I told you I was confused. Graham > On 21 Feb 2018, at 18:59, Mike Kerner via use-livecode wrote: > > You do not have to have a single line of code in the .rev/.livecode file. > You can have behaviors assigned to each object, card, and the stack. Those > behaviors would be assigned to script-only stack files (.livecodescript). > The first line of a SOS is the word "script", then a name, enclosed in > quotes. That name does not have to be related to anything, or have any > meaning. After that first line would be the code/handlers, etc. > If you like, you can consolidate your code into only a few SOS's, or you > can have an SOS as the behavior for every single object. > > On Wed, Feb 21, 2018 at 11:46 AM, Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> OK, i?m a bit confused. If we look at a non-faceless application, then the >> user will be interacting with it via the UI. This means that stuff like >> clicking and dragging has to be dealt with. I see that this can all be done >> by a library that works out where the ?mouseUp? or whatever came from and >> then handles what is needed to be done and sent back to the user, but can >> there really be no code at all in the stack the user sees? What about a >> game-like interface, where the movement of objects relative to one another >> is something that has to be captured? I suppose what I?m saying is that if >> the essence of the app is the interaction between the objects the user >> sees, then abstracting the objects? behaviour away from the primary >> interface only has the merit that it?s better for version control, doesn?t >> it? Or am I seeing it all wrong? >> >> Graham >> >>> On 21 Feb 2018, at 01:04, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> You can move as much or as little as you like. I prefer to move >> everything >>> and use an external text editor whenever I want to edit code. The .rev >> or >>> .livecode stack file for me, then has multiple cards with the layouts and >>> the objects, but no code in it. I also have taken to removing all >>> substacks and making them separate, especially since in many cases those >>> substacks are modules or libraries. That makes version control of those >>> submodules and libraries far simpler for me. >>> >>> On Tue, Feb 20, 2018 at 6:43 PM, Trevor DeVore via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> On Tue, Feb 20, 2018 at 5:15 PM, Graham Samuel via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> I?m following the Levure discussion and of course Trevor's >> pronouncements >>>>> with great interest. One thing strikes me - is there really a >> universally >>>>> understood meaning to the term ?UI stack?? I do understand the concept >> of >>>>> separating the UI from the logic of an app, but any UI must contain >>>>> **some** logic, mustn?t it? In the LC world, by ?logic? of course I >>>> really >>>>> mean code. What level of coding is permissible to allow in a UI stack, >> do >>>>> people think? I have a feeling that some folks? idea of this is going >> to >>>> be >>>>> very different from some others?. Perhaps there is an orthodoxy about >>>> this, >>>>> but I am not familiar with it. >>>>> >>>> >>>> In Levure a UI stack is just a stack that is used as a window to >> display a >>>> user interface to the user. In LiveCode the term stack is overloaded. It >>>> can be a library, a front script, a back script, or a stack that is >>>> actually displays to the user. Actually it can be both a stack that >>>> displays an interface to the user and a library/frontscript/ >> backscript). >>>> So >>>> Levure encourages you to organize your stacks based on how they are >> used. >>>> In Levure a UI stack will be added to the list of stackFiles property of >>>> the main Levure app stack. This allows you to reference the stack by >> name >>>> (e.g. stack ?MyStack?) without having to load all of the UI stacks into >>>> memory when the application starts up. >>>> >>>> My general rule is that I place all code that is specific to a specific >> UI >>>> stack in the behaviors attached to the stack, cards, and controls of >> that >>>> stack. Any code that is shared is pushed down into a library. >>>> >>>> The controls in my stacks have very little code. They simply call >> handlers >>>> that reside in the card or stack behaviors. >>>> >>>> -- >>>> Trevor DeVore >>>> ScreenSteps >>>> www.screensteps.com >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> >>> -- >>> On the first day, God created the heavens and the Earth >>> On the second day, God created the oceans. >>> On the third day, God put the animals on hold for a few hours, >>> and did a little diving. >>> And God said, "This is good." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Feb 21 14:13:58 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 21 Feb 2018 14:13:58 -0500 Subject: A little Levure-oriented question In-Reply-To: References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> Message-ID: "me" in a behavior script is the calling object. From jacque at hyperactivesw.com Wed Feb 21 14:23:57 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 21 Feb 2018 13:23:57 -0600 Subject: Features and shortcomings of html5 In-Reply-To: References: Message-ID: Thanks for the links, I'll keep them. The inability to use a mobile browser is a deal-breaker. That's exactly what I needed to know to decide the path forward, it's a significant limitation. On 2/20/18 11:16 PM, hh via use-livecode wrote: > The laoding delay is very much dependent on how you configure your > server. If the server is optimized I have here with Safari < 9 secs > for the first load and < 3 secs for a reload, using the server of the > first link below. > > The standalones mentioned are here [EU] > http://hyperhh.org/html5/index-large.html > or here (same content) [US] > http://hh.on-rev.com/html5/index-large.html > > And here is an info: Forums/HTML5/Successful_test > > Download right now what you need, because I'll remove soon all those > unneeded "basic experiments" (and, that's my method, trash them here > also). > > p.s. You will have no luck running more than a primitive demo on mobile, > no matter the connection speed. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jerry at jhjensen.com Wed Feb 21 14:26:18 2018 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 21 Feb 2018 11:26:18 -0800 Subject: A little Levure-oriented question In-Reply-To: References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> Message-ID: The engine is what actually starts execution of the SOS - the engine knows who called. ?me? is a keyword set up by the engine. In a behavior script it is the caller. Is this what you were wondering about or did I misunderstand? .Jerry > On Feb 21, 2018, at 10:58 AM, Graham Samuel via use-livecode wrote: > > But if there?s no code in the UI stack, how do the handlers in the SOS know what object has invoked them? I mean of course you can work out the caller, but it?s much easier to say > > on mouseUp > doSomethingJustForMe(myCoordinates > end mouseUp > > than working it all out later, isn?t it? From jacque at hyperactivesw.com Wed Feb 21 14:50:53 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 21 Feb 2018 13:50:53 -0600 Subject: A little Levure-oriented question In-Reply-To: References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> Message-ID: <1ff02fd8-ef78-2d42-2c67-fb3e31f046fb@hyperactivesw.com> On 2/21/18 12:58 PM, Graham Samuel via use-livecode wrote: > But if there?s no code in the UI stack, how do the handlers in the SOS know what object has invoked them? A behavior acts as though every object with the assigned behavior has that script copied into itself. That means that "me" always refers to the object with the behavior, and each instance of the behavior keeps its own separate script local variables. Without a behavior, you'd need to put a mouseUp handler that calls "doSomething" into each button, and doSomthing would live in a card or stack script. Then doSomething would have to get the name of the target to know the caller, and also keep track of any local variables independently. I'm working with a project that uses a lot of script-only stacks. It uses a combination of embedded ("normal") scripts and SOS. Handlers that only apply to a single object or card are usually written into the stack or control as usual. Handlers that are used in more than one place are moved to SOS either as behaviors or libraries. Libraries work like stacks in use, behaviors can be shared among different objects. For example, we have a behavior that creates and manages a native scroller on mobile. Whenever we need a native scroller for a field, we assign that SOS as a behavior of the field. The field itself has no script, the behavior does it all. From what I've read so far here, you don't actually have to convert everything to script-only stacks. You can convert some, or none, or all. I believe Trevor said that you can use other functions outside of the script management features -- for example, built-in functions that compile the app or do auto-update, etc. Your point about not needing SOS for a single developer is, I think, correct. But even if you're the only one working on a stack, you may still want to track changes and updates in a versioning system. Whatever you want to track, you'd convert to a SOS because versioning systems work only with text files. I haven't made the move myself either, but I'm interested in what is possible so I've been following this thread. Don't feel bad about asking, some of us are lurking. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lists at mangomultimedia.com Wed Feb 21 15:01:53 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 21 Feb 2018 14:01:53 -0600 Subject: A little Levure-oriented question In-Reply-To: References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> Message-ID: On Wed, Feb 21, 2018 at 12:58 PM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > But if there?s no code in the UI stack, how do the handlers in the SOS > know what object has invoked them? I mean of course you can work out the > caller, but it?s much easier to say > > on mouseUp > doSomethingJustForMe(myCoordinates > end mouseUp > > than working it all out later, isn?t it? > > Doubtless this is a dumb question, but I told you I was confused. > Not dumb at all. You are right that attaching the mouseUp handler to the object that receives the mouse click is easier. Where you are mistaken is in your belief that the UI stack does contain code and the logic is not handled in a library. The UI stack does in fact have code, it just happens to be in behaviors that are script only stacks. Let me provide an example of an About window which would be organized in the following file system structure in Levure: app/ ui/ about/ about.livecode behaviors/ card.livecodescript Now assume that the about.livecode stack file has a field that shows the version information and a button named ?Acknowledgements? that opens a PDF when you click on it. The card.livecodescript is a SOS that is assigned to the behavior property of card 1 in the about.livecode stack file. Any code in that card.livecodescript SOS acts as if it is the actual code assigned to the script property of card 1. The code just happens to live outside of about.livecode. So card.livecodescript can contain our primary handlers that do all of the work: ``` on preOpenCard ShowVersion end preOpenCard command ShowVersion # Display current version in field ? end ShowVersion command uiShowAcknowledgements # Launch PDF ? end uiShowAcknowledgements ``` The ?Acknowledgements? button can now call the `uiShowAcknowledgements` handler in the card script (which is really the card.livecodescript SOS that is assigned to the behavior of the card). ``` on mouseUp uiShowAcknowledgements end mouseUp ``` In the example above, the code in the button is actually assigned to the script property of the ?Acknowledgements? button and is part of the about.livecode stack file. Not in some behavior. The code for the card script is stored in a SOS that is assigned to the behavior property of the card. This code lives outside of about.livecode stack file. Now, you could move the ?Acknowledgements? button code into a SOS as well. In that case you would create a new SOS, move the script in the button to the SOS, and then assign the SOS to the behavior property of the button. Here is what the new file structure would look like: app/ ui/ about/ about.livecode behaviors/ card.livecodescript acknowledgement_button.livecodescript You wouldn?t have to change the `on mouseUp` code at all because behavior scripts act as if they are the actual script of the control they are assigned to. Hopefully that clarifies things a little bit. -- Trevor DeVore ScreenSteps www.screensteps.com From tfabacher at gmail.com Wed Feb 21 16:10:50 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Wed, 21 Feb 2018 16:10:50 -0500 Subject: LiveCode Widget Factory Message-ID: Hello LiveCoders, I hope all is going well. As Kevin announced before...Gurgen, myself, the DP team and the FANTASTIC LiveCode team [providing wonderful support] are working on creating LCB widgets that will catapult the LC platform and improve productivity. I have been in touch with a few people to get their ideas and needs, but I wanted to reach out and check with the community. At first, we have decided to focus these for round one: Basic Native UI elements Native Maps Voice to Text Bluetooth Device Connection Beacons Security/Fingerprint Playing sound/music in the background when the phone sleeps like Spotify or iTunes. For Phase Two we are looking at... BarCode Scanner & Maker Charts iCal like Calendar [Day, Week, Month, Year] Clipboard for mobile We are mostly looking at creating many UI elements and functionality that is native and not accessible now and other widgets that will save days of coding by grouping functionality into one simple widget [with the difficult code encapsulated]. A few of the controls will be open sourced but the vast majority will be for sale at a reasonable price. Sorry, Gurgen and Team don't work for free and my landlord does not have an open source building, so please save the digital trees with replies of why we should be open source. We are excited and will be working VERY hard. Good News, DP was VERY successful at the Seaside Summit in UEA. We also have two LiveCode based startups selected to be profiled at Collision Conference https://collisionconf.com in April. One App is coded for Android, iOS, Windows, MacOS, LINUX local Server & TV HDMI output and a big LiveCode Server implementation for the cloud. It uses TCP, UDP, HTTPS, and SFTP protocols. Extensive encryption and a distributed network that will have 200,000 simultaneous global users. WOW...all of this with one code base - that is the power of LiveCode. --DP & LC teams From bobsneidar at iotecdigital.com Wed Feb 21 16:33:08 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Feb 2018 21:33:08 +0000 Subject: A little Levure-oriented question In-Reply-To: References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> Message-ID: <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> The target. Bob S > On Feb 21, 2018, at 10:58 , Graham Samuel via use-livecode wrote: > > But if there?s no code in the UI stack, how do the handlers in the SOS know what object has invoked them? From roger.e.eller at sealedair.com Wed Feb 21 16:57:45 2018 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 21 Feb 2018 16:57:45 -0500 Subject: LiveCode Widget Factory In-Reply-To: References: Message-ID: This sounds fantastic!!! I have to ask, when you say "Native", do you mean it should work on ANY of the "LiveCode-supported" platforms, both desktop and/or mobile? ~Roger On Wed, Feb 21, 2018 at 4:10 PM, Todd Fabacher via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello LiveCoders, > > I hope all is going well. As Kevin announced before...Gurgen, myself, the > DP team and the FANTASTIC LiveCode team [providing wonderful support] are > working on creating LCB widgets that will catapult the LC platform and > improve productivity. > > I have been in touch with a few people to get their ideas and needs, but I > wanted to reach out and check with the community. At first, we have decided > to focus these for round one: > > Basic Native UI elements > Native Maps > Voice to Text > Bluetooth Device Connection > Beacons > Security/Fingerprint > Playing sound/music in the background when the phone sleeps like Spotify or > iTunes. > > For Phase Two we are looking at... > BarCode Scanner & Maker > Charts > iCal like Calendar [Day, Week, Month, Year] > Clipboard for mobile > > We are mostly looking at creating many UI elements and functionality that > is native and not accessible now and other widgets that will save days of > coding by grouping functionality into one simple widget [with the difficult > code encapsulated]. > > A few of the controls will be open sourced but the vast majority will be > for sale at a reasonable price. Sorry, Gurgen and Team don't work for free > and my landlord does not have an open source building, so please save the > digital trees with replies of why we should be open source. > > We are excited and will be working VERY hard. Good News, DP was VERY > successful at the Seaside Summit in UEA. We also have two LiveCode based > startups selected to be profiled at Collision Conference > https://collisionconf.com in April. One App is coded for Android, iOS, > Windows, MacOS, LINUX local Server & TV HDMI output and a big LiveCode > Server implementation for the cloud. It uses TCP, UDP, HTTPS, and SFTP > protocols. Extensive encryption and a distributed network that will have > 200,000 simultaneous global users. WOW...all of this with one code base - > that is the power of LiveCode. > > --DP & LC teams > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Feb 21 17:56:28 2018 From: hh at hyperhh.de (hh) Date: Wed, 21 Feb 2018 23:56:28 +0100 Subject: LiveCode Widget Factory Message-ID: <8BD0F2F0-CEDD-46ED-BDA2-7D90B2DB0395@hyperhh.de> > Todd F. wrote: > I have been in touch with a few people to get their ideas and needs, > but I wanted to reach out and check with the community. > At first, wehave decided to focus these for round one: > Basic Native UI elements, Native Maps .... Please start with *cross-platform-native* widgets for all of the UI elements in the LC Tools (which all are "basic"). Alone reaching that single target before 2021 would be a little wonder. I admire what is possible already now with LCB. Alone the problem are not missing ideas/unknown needs but it is the still experimental state of LCB. From charles at techstrategies.com.au Wed Feb 21 17:58:54 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 22 Feb 2018 08:58:54 +1000 Subject: libsodium on LiveCode? In-Reply-To: References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> <993EA851-D0AB-4A62-8F49-0FDBFA7976B7@appisle.net> <6619A2C5-451A-4B46-A73B-FF4380E74D39@appisle.net> Message-ID: What type of key do you need to generate? > On 21 Feb 2018, at 2:50 pm, Brian Milby via use-livecode wrote: > > Had not seen the tsNet handler, but that is an RSA key. Scuttlebutt uses a > different key type. There are other useful things in the library. There is > some overlap, but enough different to make it worthy of an effort. > > I?ll need to take a look at the MS links. > > Hopefully the rest of today and tomorrow will go better! > On Tue, Feb 20, 2018 at 10:13 PM Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> >>> On 21 Feb 2018, at 2:57 pm, Brian Milby wrote: >>> >>> Monte, you are awesome! >> >> Cheers! Not feeling so awesome today? been banging my head on something >> all day and getting nowhere :-( >>> >>> With your help I was able to generate a key pair using libSodium. That >> means that we are one huge step closer to asymmetric key generation and use >> within LC. >> >> Hmm? have you seen tsNetGenerateKey ? >>> >>> For each tool chain they provided a static and dynamic directory. The >> static just contained a .lib file. The dynamic contains 3 or 4 files. >> Starting at 140 a .pdb file is added. The latest one that works is v120. >>> >>> Thanks for the help! >> >> OK, I?m not sure why they aren?t working. The main thing I?d look for is >> if they are built to dynamic link to the CRT and you don?t have the >> corresponding version of MSVS or the redistributable packages installed. >> You could try installing this and then test 140 >> https://www.microsoft.com/en-au/download/details.aspx?id=48145 < >> https://www.microsoft.com/en-au/download/details.aspx?id=48145> >> >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 21 18:48:15 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Wed, 21 Feb 2018 15:48:15 -0800 Subject: LiveCode Widget Factory In-Reply-To: <8BD0F2F0-CEDD-46ED-BDA2-7D90B2DB0395@hyperhh.de> References: <8BD0F2F0-CEDD-46ED-BDA2-7D90B2DB0395@hyperhh.de> Message-ID: This is a wonderful development and should add tremendously to Livecode?s desirability as a development platform. Bill P William Prothero http://es.earthednet.org On Feb 21, 2018, at 2:56 PM, hh via use-livecode wrote: >> Todd F. wrote: >> I have been in touch with a few people to get their ideas and needs, >> but I wanted to reach out and check with the community. >> At first, wehave decided to focus these for round one: >> Basic Native UI elements, Native Maps .... > > Please start with *cross-platform-native* widgets for all of the UI elements in > the LC Tools (which all are "basic"). > > Alone reaching that single target before 2021 would be a little wonder. > > I admire what is possible already now with LCB. Alone the problem are not missing > ideas/unknown needs but it is the still experimental state of LCB. > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Feb 21 19:27:37 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 22 Feb 2018 01:27:37 +0100 Subject: A little Levure-oriented question In-Reply-To: <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> Message-ID: <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> It?s very late here, so a brief reply to a brief reply. I know about ?the target?. Believe it or not I also know about behaviours and can use them. But if I have a Big Green Button in my UI, I want a handler which does something if and only if the Big Green Button is clicked on. Obviously in my SOS I can have some ?universal? code that says something like if the target is ?bigGreenButton? then do something related only to this particular object ? But isn?t that just making the whole thing more complicated than it need be? Maybe I will understand this clearly in the morning - who knows? Graham > On 21 Feb 2018, at 22:33, Bob Sneidar via use-livecode wrote: > > The target. > > Bob S > > >> On Feb 21, 2018, at 10:58 , Graham Samuel via use-livecode wrote: >> >> But if there?s no code in the UI stack, how do the handlers in the SOS know what object has invoked 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 From MikeKerner at roadrunner.com Wed Feb 21 20:50:41 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 21 Feb 2018 20:50:41 -0500 Subject: A little Levure-oriented question In-Reply-To: <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> Message-ID: Graham, You don't need universal code to make this happen. What Trevor was talking about yesterday was that he likes using universal handlers in card scripts (or card behaviors in this case). For your example all you have to do is take the script of the big green button, make it a SOS, and assign that SOS as the behavior of the big green button. You don't have to have a behavior shared between a bunch of objects. From brian at milby7.com Wed Feb 21 20:59:52 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 22 Feb 2018 01:59:52 +0000 Subject: libsodium on LiveCode? In-Reply-To: References: <2e150014-5ab7-066f-2074-d41a9f2e1078@sonic.net> <73D38B49-54B8-4313-BF0B-AA35681A7554@appisle.net> <993EA851-D0AB-4A62-8F49-0FDBFA7976B7@appisle.net> <6619A2C5-451A-4B46-A73B-FF4380E74D39@appisle.net> Message-ID: Here is a paragraph from scuttlebutt.nz which documents what I?m looking to interface with: In nacl both types of keys are used, signing keys are ed25519 keys, and exchange keys are curve25519 keys. sign uses ed25519 keys, and scalarmult takes curve25519. box takes two exchange keys, and then uses scalarmult internally. There is also another function secretbox that just takes a symmetric key, say the output of scalarmult. So it is a bit more than just getting a key pair. Thanks, Brian On Wed, Feb 21, 2018 at 4:58 PM Charles Warwick < charles at techstrategies.com.au> wrote: > What type of key do you need to generate? > > > On 21 Feb 2018, at 2:50 pm, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Had not seen the tsNet handler, but that is an RSA key. Scuttlebutt uses > a > > different key type. There are other useful things in the library. There > is > > some overlap, but enough different to make it worthy of an effort. > > > > I?ll need to take a look at the MS links. > > > > Hopefully the rest of today and tomorrow will go better! > > On Tue, Feb 20, 2018 at 10:13 PM Monte Goulding via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> > >> > >>> On 21 Feb 2018, at 2:57 pm, Brian Milby wrote: > >>> > >>> Monte, you are awesome! > >> > >> Cheers! Not feeling so awesome today? been banging my head on something > >> all day and getting nowhere :-( > >>> > >>> With your help I was able to generate a key pair using libSodium. That > >> means that we are one huge step closer to asymmetric key generation and > use > >> within LC. > >> > >> Hmm? have you seen tsNetGenerateKey ? > >>> > >>> For each tool chain they provided a static and dynamic directory. The > >> static just contained a .lib file. The dynamic contains 3 or 4 files. > >> Starting at 140 a .pdb file is added. The latest one that works is v120. > >>> > >>> Thanks for the help! > >> > >> OK, I?m not sure why they aren?t working. The main thing I?d look for is > >> if they are built to dynamic link to the CRT and you don?t have the > >> corresponding version of MSVS or the redistributable packages installed. > >> You could try installing this and then test 140 > >> https://www.microsoft.com/en-au/download/details.aspx?id=48145 < > >> https://www.microsoft.com/en-au/download/details.aspx?id=48145> > >> > >> 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 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 Feb 21 23:41:49 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 22 Feb 2018 04:41:49 +0000 Subject: Just Checking in my posts made it Message-ID: <7FA5CAFA-2E5E-4A10-9D07-D5FB19AE8FDE@hindu.org> Checking BR From brahma at hindu.org Wed Feb 21 23:48:31 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 22 Feb 2018 04:48:31 +0000 Subject: AcceleraterRendering - when to turn off/on Message-ID: <6D0E1F37-8F75-40F3-8812-2F14E5AF99D7@hindu.org> Having a heck a time with our new app on android One stack works fine. But we are going one stack to another, (not in iOS) is a problem. Seems to be subtle issues with one of the follow (although on the surface they seem to be same) 1) it is better to set the acceleratedRendering of this stack to false -- on closeCard -- on closeStack -- on library stack, used to close one stack and one open another Go window did not work, as it never gets the handler that set stack to landscape. So it back to go cardOrStackObject # e.g go "gems" (or this string) go card 3 of "gems" wait 100 milliseconds with messages close stack oStackName wait 100 milliseconds with messages "wait" is android issue. I don?t need it for iOS 2) The issue is the same with mobile controls. When is a safe delete them? -- on closeCard -- on closeStack -- on library stack, used to close one stack and one open another BR Svasti Astu, Be Well Brahmanathaswami www.himalayanacademy.com Get SivaSiva App Today--It's Free! iOS: https://itunes.apple.com/us/app/sivasiva/id1271260502?mt=8 Android: https://play.google.com/store/apps/details?id=com.himalayanacademy.sivasiva From jacque at hyperactivesw.com Thu Feb 22 00:20:05 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 21 Feb 2018 23:20:05 -0600 Subject: A little Levure-oriented question In-Reply-To: <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> Message-ID: <161bbf44b88.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I'm not a purist, I'd put the handler in the big green button. Especially if it's short. There are no hard rules about this stuff. I suppose I'll have to dodge flying fruit now. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 21, 2018 6:29:52 PM Graham Samuel via use-livecode wrote: > It?s very late here, so a brief reply to a brief reply. I know about ?the > target?. Believe it or not I also know about behaviours and can use them. > But if I have a Big Green Button in my UI, I want a handler which does > something if and only if the Big Green Button is clicked on. Obviously in > my SOS I can have some ?universal? code that says something like > > if the target is ?bigGreenButton? then > do something related only to this particular object > ? > > But isn?t that just making the whole thing more complicated than it need be? > > Maybe I will understand this clearly in the morning - who knows? > > Graham > >> On 21 Feb 2018, at 22:33, Bob Sneidar via use-livecode >> wrote: >> >> The target. >> >> Bob S >> >> >>> On Feb 21, 2018, at 10:58 , Graham Samuel via use-livecode >>> wrote: >>> >>> But if there?s no code in the UI stack, how do the handlers in the SOS know >>> what object has invoked 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Feb 22 00:41:24 2018 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 21 Feb 2018 21:41:24 -0800 Subject: A little Levure-oriented question In-Reply-To: <161bbf44b88.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> <161bbf44b88.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Me too. .Jerry > On Feb 21, 2018, at 9:20 PM, J. Landman Gay via use-livecode wrote: > > I'm not a purist, I'd put the handler in the big green button. Especially if it's short. There are no hard rules about this stuff. > > I suppose I'll have to dodge flying fruit now. From tfabacher at gmail.com Thu Feb 22 06:38:31 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Thu, 22 Feb 2018 06:38:31 -0500 Subject: LiveCode Widget Factory Message-ID: Thanks...But nobody gave any suggestions???? Roger Eller wrote: do you mean it should work on ANY of the "LiveCode-supported" platforms, both desktop and/or mobile? --Honestly, our main focus will be mobile at first, but our goal is all platforms. As you can see in the list, many are mobile issues that LiveCode currently has no access to.We will try but all platforms may come after we have completed the mobile and worked out the bugs for LCB. hh wrote: Please start with *cross-platform-native* widgets for all of the UI elements in the LC Tools (which all are "basic"). --Yes, Ali has provided a good multiplatform example of a button. We are taking this example and creating a structure/template for all basic UI widgets. This is our goal, but the #1 goal right now is mobile and getting them in a widget store for people to purchase and use. But before 2021 should not be an issue. We need to get the LC platform access to Native functionality to the coders because the competition is doing this. We need it to get new members and keep existing community members. BTW HH, thanks for the LBC property sample app you did, it was helpful. --Todd From matthias_livecode_150811 at m-r-d.de Thu Feb 22 06:48:49 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 22 Feb 2018 12:48:49 +0100 Subject: LiveCode Widget Factory In-Reply-To: References: Message-ID: Todd, that sounds really promising. Any ideas already if the ?to be payed? widgets are offered as a yearly subscription or for a time payment? Widget request: A widget that allows to place an icon (including menu function) into the menu bar on Mac OSX or into the task bar on the right (don?t know the exact expression in english for that area) on Windows I know LC already allows this on Windows, but a widget which supports both OSes would be better. So one has to code it once for both instead of coding it for each OS seperately. Regards, Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 21.02.2018 um 22:10 schrieb Todd Fabacher via use-livecode >: > > Hello LiveCoders, > > I hope all is going well. As Kevin announced before...Gurgen, myself, the > DP team and the FANTASTIC LiveCode team [providing wonderful support] are > working on creating LCB widgets that will catapult the LC platform and > improve productivity. > > I have been in touch with a few people to get their ideas and needs, but I > wanted to reach out and check with the community. At first, we have decided > to focus these for round one: > > Basic Native UI elements > Native Maps > Voice to Text > Bluetooth Device Connection > Beacons > Security/Fingerprint > Playing sound/music in the background when the phone sleeps like Spotify or > iTunes. > > For Phase Two we are looking at... > BarCode Scanner & Maker > Charts > iCal like Calendar [Day, Week, Month, Year] > Clipboard for mobile > > We are mostly looking at creating many UI elements and functionality that > is native and not accessible now and other widgets that will save days of > coding by grouping functionality into one simple widget [with the difficult > code encapsulated]. > > A few of the controls will be open sourced but the vast majority will be > for sale at a reasonable price. Sorry, Gurgen and Team don't work for free > and my landlord does not have an open source building, so please save the > digital trees with replies of why we should be open source. > > We are excited and will be working VERY hard. Good News, DP was VERY > successful at the Seaside Summit in UEA. We also have two LiveCode based > startups selected to be profiled at Collision Conference > https://collisionconf.com in April. One App is coded for Android, iOS, > Windows, MacOS, LINUX local Server & TV HDMI output and a big LiveCode > Server implementation for the cloud. It uses TCP, UDP, HTTPS, and SFTP > protocols. Extensive encryption and a distributed network that will have > 200,000 simultaneous global users. WOW...all of this with one code base - > that is the power of LiveCode. > > --DP & LC teams > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tel +49 5741 310000 ?https://matthiasrebbe.eu ? From livfoss at mac.com Thu Feb 22 08:25:13 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 22 Feb 2018 14:25:13 +0100 Subject: A little Levure-oriented question In-Reply-To: <161bbf44b88.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> <161bbf44b88.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4521A288-6C70-4319-8264-DE20520278DF@mac.com> Jacque always dishes out common sense IMHO. Thanks for that. I would shield you from the flying fruit if I could. I guess my heretical thinking is based on two ideas: 1. Setting the behavior of an object (my Big Green Button) looks just like scripting it to me: I mean for this to work, the object has to be qualified by a reference to something outside its local environment: OK, it?s not exactly code, but it seems to me philosophically similar. So the UI stack is tied, however lightly, to the SOS undergrowth. 2. When I?ve used behaviors myself, it?s to allow essentially the same script to be used for many objects, with the extremely useful ability to hang on to the local context: I once used behaviors for cells ina spreadsheet-like display, for example - whereas in my current example, I proposed that the Big Green Button was unique and wouldn?t want to share its primary handler with anyone else (though of course it would probably use some common library routines in any complicated set up). If in my example there was a Big Red Button, it would have an entirely different function from the Green one, so there would be no room for the shared code a behavior provides. So the use of behaviors in this kind of setup looks kind of forced to me. But perhaps I am overestimating the extent to which behaviors come into the picture. Changing the subject a bit, I once wrote a very simple DC circuit simulator, in which there were different components like a light bulb, a motor, a buzzer etc. When the user ?switched? the circuit on (by clicking on an object representing a switch), the program sent the same message - ?applyVoltage?- to each object. Each object had its own applyVoltage handler (method, in O-O parlance) for reacting to the circuit going live, so the bulb lit up, the motor rotated etc. This is kind of the inverse of the behavior idea - this is the same message being sent to multiple objects rather than multiple objects using the same script. I wonder how a Levure-framed app would deal with such a structure. Perhaps it wouldn?t notice at all. Graham PS My UK spell checker **really** wants behavior to be behaviour, but this is not among its synonyms, regrettably. > On 22 Feb 2018, at 06:20, J. Landman Gay via use-livecode wrote: > > I'm not a purist, I'd put the handler in the big green button. Especially if it's short. There are no hard rules about this stuff. > > I suppose I'll have to dodge flying fruit now. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On February 21, 2018 6:29:52 PM Graham Samuel via use-livecode wrote: > >> It?s very late here, so a brief reply to a brief reply. I know about ?the target?. Believe it or not I also know about behaviours and can use them. But if I have a Big Green Button in my UI, I want a handler which does something if and only if the Big Green Button is clicked on. Obviously in my SOS I can have some ?universal? code that says something like >> >> if the target is ?bigGreenButton? then >> do something related only to this particular object >> ? >> >> But isn?t that just making the whole thing more complicated than it need be? >> >> Maybe I will understand this clearly in the morning - who knows? >> >> Graham >> >>> On 21 Feb 2018, at 22:33, Bob Sneidar via use-livecode wrote: >>> >>> The target. >>> >>> Bob S >>> >>> >>>> On Feb 21, 2018, at 10:58 , Graham Samuel via use-livecode wrote: >>>> >>>> But if there?s no code in the UI stack, how do the handlers in the SOS know what object has invoked 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Thu Feb 22 09:56:35 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 22 Feb 2018 08:56:35 -0600 Subject: A little Levure-oriented question In-Reply-To: <4521A288-6C70-4319-8264-DE20520278DF@mac.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> <161bbf44b88.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4521A288-6C70-4319-8264-DE20520278DF@mac.com> Message-ID: On Thu, Feb 22, 2018 at 7:25 AM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > 2. When I?ve used behaviors myself, it?s to allow essentially the same > script to be used for many objects, with the extremely useful ability to > hang on to the local context: I once used behaviors for cells ina > spreadsheet-like display, for example - whereas in my current example, I > proposed that the Big Green Button was unique and wouldn?t want to share > its primary handler with anyone else (though of course it would probably > use some common library routines in any complicated set up). If in my > example there was a Big Red Button, it would have an entirely different > function from the Green one, so there would be no room for the shared code > a behavior provides. So the use of behaviors in this kind of setup looks > kind of forced to me. But perhaps I am overestimating the extent to which > behaviors come into the picture. > Whether or not it is forced depends on your goals. I have two goals - manage my app using git and be able to edit all scripts in an external text editor (I use Sublime Text). If I don?t move the button behavior out into an SOS then it won?t play well in my text editor. As an example, two days ago I was cleaning out unused code in a project. In Sublime Text I searched my project for calls to a handler. The handler was called from a couple of button scripts inside of a binary LiveCode stack file (I had not converted every script in the stack to a SOS behavior). In the search results in Sublime Text I couldn?t see what the actual script was, just that a binary file had a reference to the string I was searching for. I want to be able to read the script. Also, if I end up changing the button script (I?ve been known to rename handlers if I want to clarify what it does) then I want my git history to show me exactly what changed. If I save the script as part of a binary stack I can?t see what changed. If I store the script in an SOS then I can. > Changing the subject a bit, I once wrote a very simple DC circuit > simulator, in which there were different components like a light bulb, a > motor, a buzzer etc. When the user ?switched? the circuit on (by clicking > on an object representing a switch), the program sent the same message - > ?applyVoltage?- to each object. Each object had its own applyVoltage > handler (method, in O-O parlance) for reacting to the circuit going live, > so the bulb lit up, the motor rotated etc. This is kind of the inverse of > the behavior idea - this is the same message being sent to multiple objects > rather than multiple objects using the same script. I wonder how a > Levure-framed app would deal with such a structure. Perhaps it wouldn?t > notice at all. Whether or not you use Levure would have no effect on how you solve this particular problem. Levure encourages the developer to organize your stacks using the file system and to organize stacks within folders based on how they are used (window, library, behavior, etc.). One benefit of following Levure?s suggestion is that your app becomes more VCS-friendly. How you organize objects on your cards or architect solutions to problems such as this falls outside the scope of Levure. -- Trevor DeVore ScreenSteps www.screensteps.com From smudge.andy at googlemail.com Thu Feb 22 09:57:23 2018 From: smudge.andy at googlemail.com (AndyP) Date: Thu, 22 Feb 2018 07:57:23 -0700 (MST) Subject: LiveCode Widget Factory In-Reply-To: References: Message-ID: <1519311443936-0.post@n4.nabble.com> Maybe a bit off the wall, but, how about some non visual Android widgets. Eg a widget for accessing Google Ad-mob which has a status of visible in the ide but hidden in the compiled version. The properties are for your keys etc. Again for Google LeaderBoards etc. As for visual.. look here https://framework7.io/ On the RHS is a running demo of all of the components which can be live switched between Material and iOS ... should give you enough ideas :-) Looking forward to your creations. Andy ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Thu Feb 22 10:42:28 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 22 Feb 2018 15:42:28 +0000 Subject: A little Levure-oriented question In-Reply-To: <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> Message-ID: <85FA1A98-7FF6-431C-8041-D63306C16F3A@iotecdigital.com> If you watch Trevor's youtube videos you will see he makes allowance for this. No need to behaviorize a script that will never change, and only applies to one object. You could, but no one says you have to. In fact, if you don't have a need for versioning, don't use a foreign text editor, don't share common code between multiple objects, and don't need the features a git repository can give you, then you don't need behaviors. I didn't start using them until I got tired of editing code in identical buttons in 15 different modules every time I had to change something. I don't particularly need Levure either for most of what it does, but I really like Sublime Text, and would like to use that if I could. Bob S > On Feb 21, 2018, at 16:27 , Graham Samuel via use-livecode wrote: > > It?s very late here, so a brief reply to a brief reply. I know about ?the target?. Believe it or not I also know about behaviours and can use them. But if I have a Big Green Button in my UI, I want a handler which does something if and only if the Big Green Button is clicked on. Obviously in my SOS I can have some ?universal? code that says something like > > if the target is ?bigGreenButton? then > do something related only to this particular object > ? > > But isn?t that just making the whole thing more complicated than it need be? > > Maybe I will understand this clearly in the morning - who knows? > > Graham From ambassador at fourthworld.com Thu Feb 22 10:42:51 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 22 Feb 2018 07:42:51 -0800 Subject: LiveCode Widget Factory In-Reply-To: References: Message-ID: <9d0918e7-2eae-2eb8-0d98-8b1a54afbbff@fourthworld.com> Todd Fabacher wrote: > As Kevin announced before... Where was this announced? -- Richard Gaskin Fourth World Systems From sean at pidigital.co.uk Thu Feb 22 11:20:21 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 22 Feb 2018 16:20:21 +0000 Subject: mergAVPlayerCreateFromURL in IDE Message-ID: Hi, Is there any way to get mergAVPlayerCreateFromURL to work within the IDE? I would like to test it without building a standalone for bug locating. Thanks Sean Cole *Pi Digital * From MikeKerner at roadrunner.com Thu Feb 22 11:35:00 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 22 Feb 2018 11:35:00 -0500 Subject: A little Levure-oriented question In-Reply-To: <85FA1A98-7FF6-431C-8041-D63306C16F3A@iotecdigital.com> References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> <85FA1A98-7FF6-431C-8041-D63306C16F3A@iotecdigital.com> Message-ID: The ST integration is one of the things that is really slick about Levure. Atom is a more polished editor, but you can configure ST to send a packet to LC when you save an SOS. Levure projects open a socket to listen for that signal, and when it receives the signal, reloads the script you just saved, so your edits are live. Now if I could just get the indent rules working better in ST (or Atom) I'd be even happier. From ambassador at fourthworld.com Thu Feb 22 12:09:09 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 22 Feb 2018 09:09:09 -0800 Subject: A little Levure-oriented question In-Reply-To: References: Message-ID: <20f186ee-f08b-b345-6527-27ab412de5b3@fourthworld.com> Mike Kerner wrote: > The ST integration is one of the things that is really slick about > Levure. "ST"? A quick Google search brought up this page of 173 possible meanings for that acronym, so I feel I'm getting close. https://www.acronymfinder.com/ST.html "Space Telescope"? "SuperTux"? "Starship Trooper"? Any of those integrations would be awesome. Hint? -- Richard Gaskin Fourth World Systems From hh at hyperhh.de Thu Feb 22 12:32:54 2018 From: hh at hyperhh.de (hh) Date: Thu, 22 Feb 2018 18:32:54 +0100 Subject: LiveCode Widget Factory Message-ID: <33481FC5-70D2-41BD-855D-5C236F08AB71@hyperhh.de> > Todd F. wrote: > Yes, Ali has provided a good multiplatform example of a button. We are > taking this example and creating a structure/template for all basic UI > widgets. This is our goal, but the #1 goal right now is mobile and getting > them in a widget store for people to purchase and use. But before 2021 > should not be an issue. You had always a lot of impressing reality-based ideas. But here you speak of non-existing widgets in a close to non-existing widgets centre (the word "store" has such a negative sound). Why not simply start with facts, an own "cross-platform-native" widget? One beyond a "Hello " example? > BTW HH, thanks for the LBC property sample app you did, it was helpful. If you mean the Controlkit: It is free, cross-platform, and there are around 100 downloads. Who should live from 100 downloads? Probably it is this crazy Apple world: Let people pay for a big part of hot air. And they will luckily buy it and praise that part of hot air. But Apple has the monopole for that. From tom at makeshyft.com Thu Feb 22 12:40:16 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 22 Feb 2018 12:40:16 -0500 Subject: LiveCode Widget Factory In-Reply-To: <33481FC5-70D2-41BD-855D-5C236F08AB71@hyperhh.de> References: <33481FC5-70D2-41BD-855D-5C236F08AB71@hyperhh.de> Message-ID: Hey Todd, your suggestions for the widgets are as good as any that I may have The voice to speech is interesting to me, I'm assuming its a wrapper for googles TTS API? Thanks for your efforts and commitment to the community On Thu, Feb 22, 2018 at 12:32 PM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Todd F. wrote: > > Yes, Ali has provided a good multiplatform example of a button. We are > > taking this example and creating a structure/template for all basic UI > > widgets. This is our goal, but the #1 goal right now is mobile and > getting > > them in a widget store for people to purchase and use. But before 2021 > > should not be an issue. > > You had always a lot of impressing reality-based ideas. > But here you speak of non-existing widgets in a close to non-existing > widgets > centre (the word "store" has such a negative sound). > Why not simply start with facts, an own "cross-platform-native" widget? > One beyond a "Hello " example? > > > BTW HH, thanks for the LBC property sample app you did, it was helpful. > > If you mean the Controlkit: It is free, cross-platform, and there are > around > 100 downloads. Who should live from 100 downloads? > > Probably it is this crazy Apple world: Let people pay for a big part of > hot air. And they will luckily buy it and praise that part of hot air. > But Apple has the monopole for 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 livfoss at mac.com Thu Feb 22 12:59:44 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 22 Feb 2018 18:59:44 +0100 Subject: A little Levure-oriented question In-Reply-To: References: <632790AD-7E92-4772-B4E5-D647DCA79452@mac.com> <59D667B3-D9DA-4577-8F8D-987CAD47F0F8@iotecdigital.com> <3E55C850-4EE2-48DF-842C-4CBD5B32FEA6@mac.com> <161bbf44b88.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4521A288-6C70-4319-8264-DE20520278DF@mac.com> Message-ID: <69F4927A-268F-4834-B8B1-2536FC005E0C@mac.com> Thanks for your patience, Trevor. I will stop tyre-kicking now and decide whether or not my particular project work merits taking the Levure plunge! Graham > On 22 Feb 2018, at 15:56, Trevor DeVore via use-livecode wrote: > > On Thu, Feb 22, 2018 at 7:25 AM, Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> 2. When I?ve used behaviors myself, it?s to allow essentially the same >> script to be used for many objects, with the extremely useful ability to >> hang on to the local context: I once used behaviors for cells ina >> spreadsheet-like display, for example - whereas in my current example, I >> proposed that the Big Green Button was unique and wouldn?t want to share >> its primary handler with anyone else (though of course it would probably >> use some common library routines in any complicated set up). If in my >> example there was a Big Red Button, it would have an entirely different >> function from the Green one, so there would be no room for the shared code >> a behavior provides. So the use of behaviors in this kind of setup looks >> kind of forced to me. But perhaps I am overestimating the extent to which >> behaviors come into the picture. >> > > Whether or not it is forced depends on your goals. > > I have two goals - manage my app using git and be able to edit all scripts > in an external text editor (I use Sublime Text). If I don?t move the button > behavior out into an SOS then it won?t play well in my text editor. As an > example, two days ago I was cleaning out unused code in a project. In > Sublime Text I searched my project for calls to a handler. The handler was > called from a couple of button scripts inside of a binary LiveCode stack > file (I had not converted every script in the stack to a SOS behavior). In > the search results in Sublime Text I couldn?t see what the actual script > was, just that a binary file had a reference to the string I was searching > for. I want to be able to read the script. Also, if I end up changing the > button script (I?ve been known to rename handlers if I want to clarify what > it does) then I want my git history to show me exactly what changed. If I > save the script as part of a binary stack I can?t see what changed. If I > store the script in an SOS then I can. > > >> Changing the subject a bit, I once wrote a very simple DC circuit >> simulator, in which there were different components like a light bulb, a >> motor, a buzzer etc. When the user ?switched? the circuit on (by clicking >> on an object representing a switch), the program sent the same message - >> ?applyVoltage?- to each object. Each object had its own applyVoltage >> handler (method, in O-O parlance) for reacting to the circuit going live, >> so the bulb lit up, the motor rotated etc. This is kind of the inverse of >> the behavior idea - this is the same message being sent to multiple objects >> rather than multiple objects using the same script. I wonder how a >> Levure-framed app would deal with such a structure. Perhaps it wouldn?t >> notice at all. > > > Whether or not you use Levure would have no effect on how you solve this > particular problem. Levure encourages the developer to organize your stacks > using the file system and to organize stacks within folders based on how > they are used (window, library, behavior, etc.). One benefit of following > Levure?s suggestion is that your app becomes more VCS-friendly. How you > organize objects on your cards or architect solutions to problems such as > this falls outside the scope of Levure. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.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 Thu Feb 22 13:03:23 2018 From: paul at livecode.org (Paul Hibbert) Date: Thu, 22 Feb 2018 10:03:23 -0800 Subject: LiveCode Widget Factory In-Reply-To: References: Message-ID: <2F7C9E54-10F4-419B-820E-1E5C7C3228D7@livecode.org> Not sure this is feasible yet, I?m still in the early research stage, but I?ve just seen a point where one of the iOS apps that I built for my own personal use could be made much more useful if it could communicate with Apple Watch, it?s basically for quickly and easily recording times of certain events, so not very complex. Could a widget be used for communicating with Apple Watch? I appreciate the watch app would probably need to be built with Xcode or Swift, but if a LC app could communicate with it, that would be awesome and definitely worth paying for. Paul > On Feb 22, 2018, at 3:38 AM, Todd Fabacher via use-livecode wrote: > > Thanks...But nobody gave any suggestions???? From livfoss at mac.com Thu Feb 22 13:11:39 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 22 Feb 2018 19:11:39 +0100 Subject: A little Levure-oriented question In-Reply-To: <20f186ee-f08b-b345-6527-27ab412de5b3@fourthworld.com> References: <20f186ee-f08b-b345-6527-27ab412de5b3@fourthworld.com> Message-ID: <974BBEC8-AFEF-457A-BE8E-E6B52E711BAD@mac.com> Just read in Trevor?s reply to me - it?s Sublime Text. No, I?d never heard of it either. Myself, I have been happy editing with what comes with LC, which probably goes to show something a bit negative about me. (Rant-style observation: I see really that what the whole Levure thing is doing is moving towards a more industrial-scale development context for LiveCode. This is great if you need it. In the past I worked on (for my sins, even tried to manage) software development projects with more than 50 participants. In those days we had pretty lousy tools for version control etc. I do appreciate that such things have moved on and are an essential part of modern team development. In the past, LC and its predecessors, including especially HyperCard, were conceived as one-man-band type of development tools, I think. There are still a lot of people like that out there, and I admit to being one. This is not to say we?re all hobbyists - some of us are certainly developing stuff that we believe will be seen as professional by paying users, but we do not operate in that industrial context. All development needs discipline, sure, but individual developers do have to consider the cost in labour of committing to a new and different way of doing things, IMHO. Rant ends) Back to the grindstone. Graham > On 22 Feb 2018, at 18:09, Richard Gaskin via use-livecode wrote: > > Mike Kerner wrote: > > The ST integration is one of the things that is really slick about > > Levure. > > "ST"? > > A quick Google search brought up this page of 173 possible meanings for that acronym, so I feel I'm getting close. > https://www.acronymfinder.com/ST.html > > "Space Telescope"? "SuperTux"? "Starship Trooper"? > > Any of those integrations would be awesome. > > Hint? > > -- > Richard Gaskin > Fourth World Systems > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 22 13:26:28 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 22 Feb 2018 18:26:28 +0000 Subject: A little Levure-oriented question In-Reply-To: <20f186ee-f08b-b345-6527-27ab412de5b3@fourthworld.com> References: <20f186ee-f08b-b345-6527-27ab412de5b3@fourthworld.com> Message-ID: <11FC715F-3E15-4DDD-9F9C-98A078B44D34@iotecdigital.com> Integration for Starship Troppers is still in beta. Bob S > On Feb 22, 2018, at 09:09 , Richard Gaskin via use-livecode wrote: > > "Space Telescope"? "SuperTux"? "Starship Trooper"? From lists at mangomultimedia.com Thu Feb 22 14:38:54 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 22 Feb 2018 13:38:54 -0600 Subject: A little Levure-oriented question In-Reply-To: <974BBEC8-AFEF-457A-BE8E-E6B52E711BAD@mac.com> References: <20f186ee-f08b-b345-6527-27ab412de5b3@fourthworld.com> <974BBEC8-AFEF-457A-BE8E-E6B52E711BAD@mac.com> Message-ID: On Thu, Feb 22, 2018 at 12:11 PM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > Just read in Trevor?s reply to me - it?s Sublime Text. No, I?d never heard > of it either. Myself, I have been happy editing with what comes with LC, > which probably goes to show something a bit negative about me. > Why would it be a negative? If it works for your needs then that is great. You can get all of your work done in a single location. > (Rant-style observation: I see really that what the whole Levure thing is > doing is moving towards a more industrial-scale development context for > LiveCode. FWIW I am the only developer that regularly contributes to my apps built on top of Levure. That won?t always be the case and when the time comes it will be easy to add people. But version control isn?t synonymous with industrial-scale. Nor is using folders to organize your Livecode project files rather than a monolithic binary stack. Using version control provides quality control in my workflow and makes it easier to fix mistakes. For example: * No code change ever gets into my project without being reviewed at least twice. Once while I?m writing it, and a second time when I?m committing the changes I?ve made to Git. I?ve caught many mistakes through this review process. * If I happen to make a change in my software that unintentionally breaks something I can review the Git commit and see all of the changes I made. I can then easily reverse those changes. * I have a complete audit trail of all changes made so I can see where I might have introduced issues. In addition I can work on multiple new features at once, yet easily deploy a hot fix if a customer finds something that needs fixing right away. Version control isn?t for everybody and may not be worth the hassle for you. There is nothing wrong with that. But I wouldn?t dismiss it as being something that only teams use. -- Trevor DeVore ScreenSteps www.screensteps.com From sundown at pacifier.com Thu Feb 22 15:24:40 2018 From: sundown at pacifier.com (JB) Date: Thu, 22 Feb 2018 12:24:40 -0800 Subject: shell - memory Message-ID: If I use a shell that calls a external and it does something like read a 2 GB file into memory but it is not put into a Livecode variable or any field etc. does that used memory get connected to Livecode memory limits since a Livecode shell called the external? JB ' From jacque at hyperactivesw.com Thu Feb 22 15:39:00 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 22 Feb 2018 14:39:00 -0600 Subject: AcceleraterRendering - when to turn off/on In-Reply-To: <6D0E1F37-8F75-40F3-8812-2F14E5AF99D7@hindu.org> References: <6D0E1F37-8F75-40F3-8812-2F14E5AF99D7@hindu.org> Message-ID: On 2/21/18 10:48 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > 2) The issue is the same with mobile controls. > When is a safe delete them? Usually native mobile controls are deleted on closeCard. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu Feb 22 16:38:48 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 22 Feb 2018 13:38:48 -0800 Subject: A little Levure-oriented question In-Reply-To: <974BBEC8-AFEF-457A-BE8E-E6B52E711BAD@mac.com> References: <974BBEC8-AFEF-457A-BE8E-E6B52E711BAD@mac.com> Message-ID: Bob Sneidar wrote: > Richard wrote: >> Mike Kerner wrote: >>> The ST integration is one of the things that is really slick about >>> Levure. >> >> "ST"? >>... >> "Space Telescope"? "SuperTux"? "Starship Trooper"? >> >> Any of those integrations would be awesome. > > Integration for Starship Troopers is still in beta. I'm anxious to get my hands on it, as I'll need for for my new widget library, Perpetual Changelog. ;) Graham Samuel wrote: > Just read in Trevor?s reply to me - it?s Sublime Text. Ah, right. Of course. Thanks. I hear it's a nice editor. UDAs can be confusing. > (Rant-style observation: I see really that what the whole Levure thing > is doing is moving towards a more industrial-scale development context > for LiveCode. This is great if you need it. In the past I worked on > (for my sins, even tried to manage) software development projects with > more than 50 participants. In those days we had pretty lousy tools for > version control etc. I do appreciate that such things have moved on > and are an essential part of modern team development. In the past, LC > and its predecessors, including especially HyperCard, were conceived > as one-man-band type of development tools, I think. There are still a > lot of people like that out there, and I admit to being one. This is > not to say we?re all hobbyists - some of us are certainly developing > stuff that we believe will be seen as professional by paying users, > but we do not operate in that industrial context. All development > needs discipline, sure, but individual developers do have to consider > the cost in labour of committing to a new and different way of doing > things, IMHO. Rant ends) Good rant. I had a similar reflection this morning reading a forum post in which Mark Wieder was waxing about the benefits of declaring variables. It got me thinking: Variable declaration + coded descriptions of objects rather than laying them out visually + separation of code from UI = an ever more C-like workflow. If these practices were the norm back when many of us got started, we might have just taken up C. Or if we prefer more typing, Pascal. :) Today, the logical choice would be JavaScript, no longer just the only language in browsers but also great on servers and even some native mobile and desktop app packagers. Many of the benefits of C but with the sort of live coding scripters enjoy. While there are some nice things unique to xTalks as a language family (esp. the under-appreciated value of having GUI objects as native language elements rather than tossed in after the fact from completely separate third-party frameworks as though making applications is somehow an afterthought), the real allure of The xTalk Way is the whole gestalt, including the secret charm of binary stack files, and how it shapes a very different way of working. You can make something useful, ship that one file to someone else, and they have something useful - no assembly, no compilation process, no folders full of tiny files to sift through. Just make, share, enjoy a single simple file. We still have that. And I hope we never lose that as an option. But now we also have other options available to us, which open up many more doors than could be possible without. So whatever process you use, if you're having fun and your users are having fun, keep doing it. And if you need to bring in other developers, now you can more easily than before. And if your clients demand managing the code base in Git, no problem. The simplicity of HyperCard will never be matched, but not so much because of design, but because needs have changed since 1987. Computing went from being a fringe hobby to achieving multi-device ubiquity. Our collective knowledge of computing systems, and our expectations of what we want from them, have expanded along the way. With the world of options opening up across all of software development, and in our LiveCode world along with it, we can dream a wider range of more interesting dreams than ever before. If I have any concern at all it's for the UX, the tender loving care that can only come from eyes unjaded by years of staring at C compilers, to keep the LC experience as clean and inviting as it can be for the next generation of xTalkers. -- 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 Feb 22 16:43:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 22 Feb 2018 21:43:12 +0000 Subject: A little Levure-oriented question In-Reply-To: References: <974BBEC8-AFEF-457A-BE8E-E6B52E711BAD@mac.com> Message-ID: <64861ABB-C76A-4BF0-A04F-411286397EEA@iotecdigital.com> The only way I can see for that to be a bad thing is if it became the new and ONLY way to develop in Livecode. So long as they are options, I do not see what all the fuss is about. Bob S > On Feb 22, 2018, at 13:38 , Richard Gaskin via use-livecode wrote: > > Good rant. I had a similar reflection this morning reading a forum post > in which Mark Wieder was waxing about the benefits of declaring > variables. It got me thinking: > > Variable declaration > + coded descriptions of objects rather than laying them out visually > + separation of code from UI > = an ever more C-like workflow. > > If these practices were the norm back when many of us got started, we > might have just taken up C. Or if we prefer more typing, Pascal. :) From ambassador at fourthworld.com Thu Feb 22 17:10:49 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 22 Feb 2018 14:10:49 -0800 Subject: A little Levure-oriented question In-Reply-To: <64861ABB-C76A-4BF0-A04F-411286397EEA@iotecdigital.com> References: <64861ABB-C76A-4BF0-A04F-411286397EEA@iotecdigital.com> Message-ID: Bob Sneidar wrote: > The only way I can see for that to be a bad thing is if it became the > new and ONLY way to develop in Livecode. So long as they are options, > I do not see what all the fuss is about. Amen, brother. Options are liberating, requirements are limiting. My only fuss is to make sure the breadth of options remains wide, and that the simplest are invitingly presented as the entry point for new scripters. Those who identify as pro devs looking to save time on GUIs can find their way beyond a beginner's guidance, as long as they're motivated to do so by having seen great examples (don't get me started about what I've seen in the Android app store). But the beginner knows nothing, so we want to tell the most inviting tale, to guide them into a story of the shortest path they've ever imagined between conceiving of an app and handing a standalone of it to a friend. This is a story LiveCode can tell uniquely well, provided we aim to be good storytellers. -- Richard Gaskin Fourth World Systems From monte at appisle.net Thu Feb 22 17:14:20 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Feb 2018 09:14:20 +1100 Subject: mergAVPlayerCreateFromURL in IDE In-Reply-To: References: Message-ID: <15539350-DE49-4BBD-A6C9-20F6A0D42BDC@appisle.net> Yes it should work on Mac in the IDE. I don?t know if it has ever been used much because player objects make more sense on desktop. Looks like you need to set the visible to true after creating it but on iOS that probably isn?t required... Cheers Monte > On 23 Feb 2018, at 3:20 am, Sean Cole (Pi) via use-livecode wrote: > > Hi, > > Is there any way to get mergAVPlayerCreateFromURL to work within the IDE? I > would like to test it without building a standalone for bug locating. > > Thanks > Sean Cole > *Pi Digital * > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Feb 22 17:25:30 2018 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Thu, 22 Feb 2018 23:25:30 +0100 Subject: LiveCode Widget Factory In-Reply-To: References: Message-ID: <1472E528-272D-4207-853D-1F0FE77C5A33@derbrill.de> TL;DR will we be able to use those commercial widgets in an open source context? If so, which license would fit? Hey Todd, Hoping not to waste your time here. This might be a long mail and I am unsure if I am to hit the send button at all. Having had one too many this evening I finally find some time again to take a peek at what is happening in the LiveCode universe. As nowadays I mostly only skim the lists I was about to wish you good luck thinking this will be nice stuff, but not for me. Nowadays I do not code much anymore. No more commercial projects. Making ends meet as a consultant nowadays. I have the luxury to look after one project that must be released under an open source license. I would have no problem at all paying for widgets for the project, however in the end I will have to put the end result under an open source license (not necessarily GPL, this is enforced by the need that the community version must be able to be used.) I do own a LC Indy subscription. I have just learned that something like a community plus version exists. That made me actually curious. Because it seems that that version is like community, but may use commercial widgets! Do you know what license requirements the end result of a compile of such a version needs to meet? I would love to be able to use all the nice stuff. No trouble paying up if it is good. But what I realese using those widgets I am willing to pay for if I include them must be open source. Is there a solution to that? If that would be an option, I?ll more than happily switch from GPL3 to something else, but how would that work? Mothership? Cheers, Malte From sean at pidigital.co.uk Thu Feb 22 21:34:41 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Fri, 23 Feb 2018 02:34:41 +0000 Subject: mergAVPlayerCreateFromURL in IDE In-Reply-To: <15539350-DE49-4BBD-A6C9-20F6A0D42BDC@appisle.net> References: <15539350-DE49-4BBD-A6C9-20F6A0D42BDC@appisle.net> Message-ID: Ok, weird. So, after working out that mergAVPlayerCreateFromURL needs to use a 'put' command as a function, the video would play but not be visible despite that property being set to true. Further investigation showed that the rect when set to 0,0,1024,768 would read back (using mergAVPlayerGet) as 0,-768,1024,768. If I set it to 0,0,512,384, it returns 0,-384,512,384. Setting to 0,200,512,384 returns 0,-384,512,184. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On 22 February 2018 at 22:14, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > Yes it should work on Mac in the IDE. I don?t know if it has ever been > used much because player objects make more sense on desktop. Looks like you > need to set the visible to true after creating it but on iOS that probably > isn?t required... > > Cheers > > Monte > > > On 23 Feb 2018, at 3:20 am, Sean Cole (Pi) via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > Is there any way to get mergAVPlayerCreateFromURL to work within the > IDE? I > > would like to test it without building a standalone for bug locating. > > > > Thanks > > Sean Cole > > *Pi Digital * > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Thu Feb 22 22:07:13 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Feb 2018 14:07:13 +1100 Subject: mergAVPlayerCreateFromURL in IDE In-Reply-To: References: <15539350-DE49-4BBD-A6C9-20F6A0D42BDC@appisle.net> Message-ID: <20859EA4-9178-4EFA-82A6-5E0BD4E8B236@appisle.net> Hmm? that seems unpleasant. Unfortunately it probably hasn?t been used much before on mac so if you can post a bug report with your issues that would be good. What was the reason you are using mergAVPlayer instead of the engine player/mobile control options? Cheers Monte > On 23 Feb 2018, at 1:34 pm, Sean Cole (Pi) via use-livecode wrote: > > Ok, weird. So, after working out that mergAVPlayerCreateFromURL needs to > use a 'put' command as a function, the video would play but not be > visible despite that property being set to true. Further investigation > showed that the rect when set to 0,0,1024,768 would read back (using > mergAVPlayerGet) as 0,-768,1024,768. If I set it to 0,0,512,384, it returns > 0,-384,512,384. Setting to 0,200,512,384 returns 0,-384,512,184. > > > Sean Cole > *Pi Digital Productions Ltd* > www.pidigital.co.uk > +44(1634)402193 > +44(7702)116447 > 'Don't try to think outside the box. Just remember the truth: There is no > box!' > 'For then you realise it is not the box you are trying to look outside of, > but it is yourself!' > > eMail Ts & Cs Pi Digital > Productions Ltd is a UK registered limited company, no. 5255609 > > On 22 February 2018 at 22:14, Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> Yes it should work on Mac in the IDE. I don?t know if it has ever been >> used much because player objects make more sense on desktop. Looks like you >> need to set the visible to true after creating it but on iOS that probably >> isn?t required... >> >> Cheers >> >> Monte >> >>> On 23 Feb 2018, at 3:20 am, Sean Cole (Pi) via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi, >>> >>> Is there any way to get mergAVPlayerCreateFromURL to work within the >> IDE? I >>> would like to test it without building a standalone for bug locating. >>> >>> Thanks >>> Sean Cole >>> *Pi Digital * >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Thu Feb 22 22:30:29 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Feb 2018 14:30:29 +1100 Subject: LiveCode Widget Factory In-Reply-To: <1472E528-272D-4207-853D-1F0FE77C5A33@derbrill.de> References: <1472E528-272D-4207-853D-1F0FE77C5A33@derbrill.de> Message-ID: > On 23 Feb 2018, at 9:25 am, Malte Pfaff-Brill via use-livecode wrote: > > TL;DR will we be able to use those commercial widgets in an open source context? If so, which license would fit? Hi Malte Community Plus is not open source. The only open source edition of LiveCode is Community so you need to use extensions that are licensed with GPL 3 compatible licenses https://www.gnu.org/licenses/license-list.en.html#GPLCompatibleLicenses Cheers Monte From ambassador at fourthworld.com Thu Feb 22 23:13:05 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 22 Feb 2018 20:13:05 -0800 Subject: LiveCode Widget Factory In-Reply-To: References: Message-ID: <3facfe5b-9047-ddad-ec23-e715592ef0c1@fourthworld.com> Monte Goulding wrote: > Community Plus is not open source. The only open source edition > of LiveCode is Community so you need to use extensions that are > licensed with GPL 3 compatible licenses I'll be the first to admit I have a hard time keeping up with the details that distinguish the various editions, but from the web site: Just like LiveCode Community this is an open source edition of LiveCode and carries with it the same requirement for making your code open and shareable. Where it differs from the Open Source edition is in all of the extra goodies it comes with. https://livecode.com/products/community-plus-edition/ ? -- Richard Gaskin Fourth World Systems From monte at appisle.net Thu Feb 22 23:22:23 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Feb 2018 15:22:23 +1100 Subject: LiveCode Widget Factory In-Reply-To: <3facfe5b-9047-ddad-ec23-e715592ef0c1@fourthworld.com> References: <3facfe5b-9047-ddad-ec23-e715592ef0c1@fourthworld.com> Message-ID: <8F2A96BF-3182-49BB-810D-E0D7C2CC750C@appisle.net> > On 23 Feb 2018, at 3:13 pm, Richard Gaskin via use-livecode wrote: > > I'll be the first to admit I have a hard time keeping up with the details that distinguish the various editions, but from the web site: > > Just like LiveCode Community this is an open source edition of > LiveCode and carries with it the same requirement for making your > code open and shareable. Where it differs from the Open Source > edition is in all of the extra goodies it comes with. > > https://livecode.com/products/community-plus-edition/ > > ? Poorly worded perhaps. The intent is the license requires user code to be open sourced and un-password protectable while the LC edition/engine itself is not. I must confess I don?t know much about the particulars of the license we have used, however, I know it permits commercial extensions and even password protected stacks (presuming the protection was done on indy or business) to be used. Cheers Monte From ambassador at fourthworld.com Thu Feb 22 23:43:15 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 22 Feb 2018 20:43:15 -0800 Subject: LiveCode Widget Factory In-Reply-To: <8F2A96BF-3182-49BB-810D-E0D7C2CC750C@appisle.net> References: <8F2A96BF-3182-49BB-810D-E0D7C2CC750C@appisle.net> Message-ID: <8faf9f5f-5d15-4c2f-9de9-5bb0be2e281f@fourthworld.com> Monte Goulding wrote: >> On 23 Feb 2018, at 3:13 pm, Richard Gaskin wrote: >> >> I'll be the first to admit I have a hard time keeping up with the >> details that distinguish the various editions, but from the web site: >> >> Just like LiveCode Community this is an open source edition of >> LiveCode and carries with it the same requirement for making your >> code open and shareable. Where it differs from the Open Source >> edition is in all of the extra goodies it comes with. >> >> https://livecode.com/products/community-plus-edition/ >> >> ? > > Poorly worded perhaps. The intent is the license requires user code > to be open sourced and un-password protectable while the LC > edition/engine itself is not. I must confess I don?t know much about > the particulars of the license we have used, however, I know it > permits commercial extensions and even password protected stacks > (presuming the protection was done on indy or business) to be used. Thanks. Curious. I searched for "license" on that page and couldn't find a link to one. Do you know where I might be able to review the license before purchasing? -- Richard Gaskin Fourth World Systems From ahsoftware at sonic.net Thu Feb 22 23:47:59 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 22 Feb 2018 20:47:59 -0800 Subject: LiveCode Widget Factory In-Reply-To: <8F2A96BF-3182-49BB-810D-E0D7C2CC750C@appisle.net> References: <3facfe5b-9047-ddad-ec23-e715592ef0c1@fourthworld.com> <8F2A96BF-3182-49BB-810D-E0D7C2CC750C@appisle.net> Message-ID: <7fc3d31d-2cca-2a91-8349-61cfe142456a@sonic.net> On 02/22/2018 08:22 PM, Monte Goulding via use-livecode wrote: > Poorly worded perhaps. The intent is the license requires user code to be open sourced and un-password protectable while the LC edition/engine itself is not. I must confess I don?t know much about the particulars of the license we have used, however, I know it permits commercial extensions and even password protected stacks (presuming the protection was done on indy or business) to be used. The licensing is even weirder than that: "This edition only allows you to use commercial extensions (including protected code) purchased through the LiveCode marketplace. You may not attempt to circumvent this restriction by using commercial extensions created elsewhere." "This Licensed Edition is not compatible with the terms of the GPL and such software may not be incorporated or utilized with this Licensed Edition." -- Mark Wieder ahsoftware at gmail.com From monte at appisle.net Thu Feb 22 23:48:36 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Feb 2018 15:48:36 +1100 Subject: LiveCode Widget Factory In-Reply-To: <8faf9f5f-5d15-4c2f-9de9-5bb0be2e281f@fourthworld.com> References: <8F2A96BF-3182-49BB-810D-E0D7C2CC750C@appisle.net> <8faf9f5f-5d15-4c2f-9de9-5bb0be2e281f@fourthworld.com> Message-ID: <1F8CBA9A-84B2-4AFA-8549-56D9CD05C4B4@appisle.net> > On 23 Feb 2018, at 3:43 pm, Richard Gaskin via use-livecode wrote: > > Thanks. > > Curious. I searched for "license" on that page and couldn't find a link to one. Do you know where I might be able to review the license before purchasing? I?m not sure if our licenses are linked anywhere other than bundled with the app sorry. Cheers Monte From brian at milby7.com Thu Feb 22 23:50:12 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 22 Feb 2018 22:50:12 -0600 Subject: Password Checker Message-ID: Read this interesting article about a half billion PW database of compromised passwords that I thought I'd share: *https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/ * *on* mouseUp *local* tSHAData, tSHAHex, tList *put* messageDigest(the text of field "password", "SHA-1") into tSHAData *repeat* for each byte tByte in tSHAData *put* format("%02X",bytetonum(tByte)) after tSHAHex *end* *repeat* *put* url ("https://api.pwnedpasswords.com/range/" & char 1 to 5 of tSHAHex) into tList *delete* char 1 to 3 of tList *-- delete the BOM* *filter* tList with (char 6 to -1 of tSHAHex) & "*" *set* the itemdel to ":" *put* item 2 of tList into field "hits" *end* mouseUp I've written some code that uses the new v2 API. You send the first 5 characters of the SHA1 of your password and get a list back of matches. You can then see if the rest of the hash is in the list and get the number of times it appears on the list. "123123" appears 2048411 times for example. I'm sure that someone can tighten it up some, but just wanted to make something in LiveCode that could use the API. You can also download the full database of SHA1 values (8.75GB) if you would want to use to provide a service. Links are in the article (he prefers that you use a torrent). Thanks, Brian From monte at appisle.net Thu Feb 22 23:53:29 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Feb 2018 15:53:29 +1100 Subject: LiveCode Widget Factory In-Reply-To: <7fc3d31d-2cca-2a91-8349-61cfe142456a@sonic.net> References: <3facfe5b-9047-ddad-ec23-e715592ef0c1@fourthworld.com> <8F2A96BF-3182-49BB-810D-E0D7C2CC750C@appisle.net> <7fc3d31d-2cca-2a91-8349-61cfe142456a@sonic.net> Message-ID: <58AEED3B-1E1F-4A6E-AECE-F516DF99E97E@appisle.net> > On 23 Feb 2018, at 3:47 pm, Mark Wieder via use-livecode wrote: > > The licensing is even weirder than that: > > "This edition only allows you to use commercial extensions (including protected code) purchased through the LiveCode marketplace. You may not attempt to circumvent this restriction by using commercial extensions created elsewhere.? Woops, forgot that bit. Not that weird though? the idea is an entry level that can also enjoy commercial extensions. We already have an entry level that can enjoy open source extensions ;-) Cheers Monte From ahsoftware at sonic.net Fri Feb 23 01:21:30 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 22 Feb 2018 22:21:30 -0800 Subject: LiveCode Widget Factory In-Reply-To: <58AEED3B-1E1F-4A6E-AECE-F516DF99E97E@appisle.net> References: <3facfe5b-9047-ddad-ec23-e715592ef0c1@fourthworld.com> <8F2A96BF-3182-49BB-810D-E0D7C2CC750C@appisle.net> <7fc3d31d-2cca-2a91-8349-61cfe142456a@sonic.net> <58AEED3B-1E1F-4A6E-AECE-F516DF99E97E@appisle.net> Message-ID: <8bf16a21-3429-32cc-443c-8c86ffd4b16f@sonic.net> On 02/22/2018 08:53 PM, Monte Goulding via use-livecode wrote: > > >> On 23 Feb 2018, at 3:47 pm, Mark Wieder via use-livecode wrote: >> >> The licensing is even weirder than that: >> >> "This edition only allows you to use commercial extensions (including protected code) purchased through the LiveCode marketplace. You may not attempt to circumvent this restriction by using commercial extensions created elsewhere.? > > Woops, forgot that bit. Not that weird though? the idea is an entry level that can also enjoy commercial extensions. We already have an entry level that can enjoy open source extensions ;-) Yeah, I get that part. No worries. I'm baffled, though, by the restriction on where you can get extensions. -- Mark Wieder ahsoftware at gmail.com From kevin at livecode.com Fri Feb 23 05:12:31 2018 From: kevin at livecode.com (Kevin Miller) Date: Fri, 23 Feb 2018 10:12:31 +0000 Subject: LiveCode Widget Factory In-Reply-To: <9d0918e7-2eae-2eb8-0d98-8b1a54afbbff@fourthworld.com> References: <9d0918e7-2eae-2eb8-0d98-8b1a54afbbff@fourthworld.com> Message-ID: In my LiveCode Global team report in January. Kind regards, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 22/02/2018, 15:42, "use-livecode on behalf of Richard Gaskin via use-livecode" wrote: >Todd Fabacher wrote: > > > As Kevin announced before... > >Where was this announced? > >-- > Richard Gaskin > Fourth World Systems > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Fri Feb 23 06:09:18 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Fri, 23 Feb 2018 11:09:18 +0000 Subject: mergAVPlayerCreateFromURL in IDE In-Reply-To: <20859EA4-9178-4EFA-82A6-5E0BD4E8B236@appisle.net> References: <15539350-DE49-4BBD-A6C9-20F6A0D42BDC@appisle.net> <20859EA4-9178-4EFA-82A6-5E0BD4E8B236@appisle.net> Message-ID: The reason for using this as opposed to the engine/mobile controls is CODE ONCE. mergAV works for both Mac AND iOS which are the two platforms my client requires it for. According to the dictionary, the player object is only for Mac, Windows and Linux still. So I would have to set up a heap of conditionals for iOS and then Mac. But, seeing as this bug won't get fixed anytime soon and my client is waiting for this new feature to be added I'm going to have to go down this route anyway. This is the issue I face all too often with LiveCode. Hunting for hours for the reason why something small doesn't do what it's supposed to (this has taken 8hrs to track down! ?) and then coming to the realisation that the bug fix cycle is too damned long compared to the quick turnarounds I have with my clients (often between a few days to a couple of weeks) so end up spending more time coming up with workarounds. Here's a recipe: 1. New stack and card with a single button. 2. mouseUp handler in button to call showMedia 3. Card script contain: local sPlayerID on showMedia put 0,0,512,384 into tRect put mergAVPlayerCreateFromURL(" https://livecode.pidigital.co.uk/HappyClip.mp4") into sPlayerID mergAVPlayerSet sPlayerID, "visible", "true" mergAVPlayerSet sPlayerID, "rect", tRect mergAVPlayerSet sPlayerID,"visible","true" mergAVPlayerSet sPlayerID, "rect", tRect put mergAVPlayerGet(sPlayerID,"rect") into tRect2 put mergAVPlayerGet(sPlayerID,"rate") into tRate put mergAVPlayerGet(sPlayerID,"visible") into tVis put mergAVPlayerGet(sPlayerID,"duration") into tDuration put mergAVPlayerGet(sPlayerID,"current time") into tCurr put (sPlayerID &cr& gMedia &cr& tRect &cr& tRect2 &cr& tVis &cr& tRate & cr& tDuration &cr& tCurr) mergAVPlayerDo sPlayerID, "play" end showMedia on AVPlayerItemDidPlayToEndTimeNotification pPlayerID mergAVPlayerRelease pPlayerID end AVPlayerItemDidPlayToEndTimeNotification Notice what happens when you delete the last line that sets the Rect. Setting the Visible property has no effect but the order of Visible and Rect setters have an effect on the Rect value. On an iOS device and the simulator, it works fine either way. Mac and IDE it does not. Have fun. I'll copy paste this into a bug report. Then get on to making the workaround so my client can finally get what he could have had yesterday! #LCneverFitForPurpose Sean Cole *Pi Digital * On 23 February 2018 at 03:07, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > Hmm? that seems unpleasant. Unfortunately it probably hasn?t been used > much before on mac so if you can post a bug report with your issues that > would be good. What was the reason you are using mergAVPlayer instead of > the engine player/mobile control options? > > Cheers > > Monte > > > On 23 Feb 2018, at 1:34 pm, Sean Cole (Pi) via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Ok, weird. So, after working out that mergAVPlayerCreateFromURL needs to > > use a 'put' command as a function, the video would play but not be > > visible despite that property being set to true. Further investigation > > showed that the rect when set to 0,0,1024,768 would read back (using > > mergAVPlayerGet) as 0,-768,1024,768. If I set it to 0,0,512,384, it > returns > > 0,-384,512,384. Setting to 0,200,512,384 returns 0,-384,512,184. > > > > > > Sean Cole > > *Pi Digital Productions Ltd* > > www.pidigital.co.uk > > +44(1634)402193 > > +44(7702)116447 > > 'Don't try to think outside the box. Just remember the truth: There is no > > box!' > > 'For then you realise it is not the box you are trying to look outside > of, > > but it is yourself!' > > > > eMail Ts & Cs Pi Digital > > Productions Ltd is a UK registered limited company, no. 5255609 > > > > On 22 February 2018 at 22:14, Monte Goulding via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> > >> Yes it should work on Mac in the IDE. I don?t know if it has ever been > >> used much because player objects make more sense on desktop. Looks like > you > >> need to set the visible to true after creating it but on iOS that > probably > >> isn?t required... > >> > >> Cheers > >> > >> Monte > >> > >>> On 23 Feb 2018, at 3:20 am, Sean Cole (Pi) via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Hi, > >>> > >>> Is there any way to get mergAVPlayerCreateFromURL to work within the > >> IDE? I > >>> would like to test it without building a standalone for bug locating. > >>> > >>> Thanks > >>> Sean Cole > >>> *Pi Digital * > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Fri Feb 23 07:19:45 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 23 Feb 2018 13:19:45 +0100 Subject: LC 9 DP11 hangs with "Loading Libraries" on Windows 10 Message-ID: Hi, i am using LC 9 DP11 on Mac OSX since its release without any noteworthy problems. Today i installed LC 9 DP11 on a Windows 10 Pro 64bit and have the problem that LC stops loading right after the splash screen pops up and shows the text "Loading libraries". With a newly installed LC 8.1.9 i do not see this behavior. What i?ve tried so far: - disabled Antivirus / Firewall - deleted the preferences file - reinstalled LC9 DP11 All without success. Does anyone else run into this? What should i try next? Regards, Matthias From panos.merakos at livecode.com Fri Feb 23 07:42:03 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Fri, 23 Feb 2018 12:42:03 +0000 Subject: LC 9 DP11 hangs with "Loading Libraries" on Windows 10 In-Reply-To: References: Message-ID: Hi Matthias, The IDE writes to a log file every time it is launched. The file is: C:/Users/your_username/AppData/Local/RunRev/Logs/LiveCodeToolsLog.txt This file contains logs from *every* LC version, and from *every* LC edition. So you might want to delete it (or rename it to LiveCodeToolsLog_old.txt) first and *then* restart LC, so as the new file "LiveCodeToolsLog.txt" will contain only the current log. If you don't see anything helpful at the log, file a bug report and attach the file to the report so as we investigate this further. Best, Panos -- On Fri, Feb 23, 2018 at 12:19 PM, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > i am using LC 9 DP11 on Mac OSX since its release without any noteworthy > problems. > > Today i installed LC 9 DP11 on a Windows 10 Pro 64bit and have the problem > that LC stops loading right after the splash screen pops up and shows the > text "Loading libraries". > With a newly installed LC 8.1.9 i do not see this behavior. > > What i?ve tried so far: > - disabled Antivirus / Firewall > - deleted the preferences file > - reinstalled LC9 DP11 > > All without success. > > Does anyone else run into this? > > What should i try next? > > Regards, > 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 -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From matthias_livecode_150811 at m-r-d.de Fri Feb 23 08:08:04 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 23 Feb 2018 14:08:04 +0100 Subject: LC 9 DP11 hangs with "Loading Libraries" on Windows 10 In-Reply-To: References: Message-ID: <11758210-122F-49D0-88E6-5A1EE6484116@m-r-d.de> Hi Panos, thanks for your comment. Unfortunately i cannot see anything helpful. The log stops at "Loading library revIDELibrary" I will file a bug. Regards, Matthias > Am 23.02.2018 um 13:42 schrieb panagiotis merakos via use-livecode : > > Hi Matthias, > > The IDE writes to a log file every time it is launched. The file is: > > C:/Users/your_username/AppData/Local/RunRev/Logs/LiveCodeToolsLog.txt > > This file contains logs from *every* LC version, and from *every* LC > edition. So you might want to delete it (or rename it to > LiveCodeToolsLog_old.txt) first and *then* restart LC, so as the new file > "LiveCodeToolsLog.txt" will contain only the current log. > > If you don't see anything helpful at the log, file a bug report and attach > the file to the report so as we investigate this further. > > Best, > Panos > -- > > > > On Fri, Feb 23, 2018 at 12:19 PM, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com > wrote: > >> Hi, >> >> i am using LC 9 DP11 on Mac OSX since its release without any noteworthy >> problems. >> >> Today i installed LC 9 DP11 on a Windows 10 Pro 64bit and have the problem >> that LC stops loading right after the splash screen pops up and shows the >> text "Loading libraries". >> With a newly installed LC 8.1.9 i do not see this behavior. >> >> What i?ve tried so far: >> - disabled Antivirus / Firewall >> - deleted the preferences file >> - reinstalled LC9 DP11 >> >> All without success. >> >> Does anyone else run into this? >> >> What should i try next? >> >> Regards, >> 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 > > > > > -- > 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 roger.e.eller at sealedair.com Fri Feb 23 08:51:56 2018 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 23 Feb 2018 08:51:56 -0500 Subject: Password Checker In-Reply-To: References: Message-ID: There seems to be a missing handler, "messageDigest". ~Roger On Thu, Feb 22, 2018 at 11:50 PM, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Read this interesting article about a half billion PW database of > compromised passwords that I thought I'd share: > > *https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/ > * > > *on* mouseUp > *local* tSHAData, tSHAHex, tList > *put* messageDigest(the text of field "password", "SHA-1") into tSHAData > *repeat* for each byte tByte in tSHAData > *put* format("%02X",bytetonum(tByte)) after tSHAHex > *end* *repeat* > *put* url ("https://api.pwnedpasswords.com/range/" & char 1 to 5 of > tSHAHex) into tList > *delete* char 1 to 3 of tList *-- delete the BOM* > *filter* tList with (char 6 to -1 of tSHAHex) & "*" > *set* the itemdel to ":" > *put* item 2 of tList into field "hits" > *end* mouseUp > > I've written some code that uses the new v2 API. You send the first 5 > characters of the SHA1 of your password and get a list back of matches. > You can then see if the rest of the hash is in the list and get the number > of times it appears on the list. "123123" appears 2048411 times for > example. > > I'm sure that someone can tighten it up some, but just wanted to make > something in LiveCode that could use the API. > > You can also download the full database of SHA1 values (8.75GB) if you > would want to use to provide a service. Links are in the article (he > prefers that you use a torrent). > > Thanks, > Brian > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Fri Feb 23 09:10:40 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 23 Feb 2018 14:10:40 +0000 Subject: Password Checker In-Reply-To: References: Message-ID: That is built in for LC9. You can use sha1digest though. On Fri, Feb 23, 2018 at 7:52 AM Roger Eller via use-livecode < use-livecode at lists.runrev.com> wrote: > There seems to be a missing handler, "messageDigest". > > ~Roger > > > On Thu, Feb 22, 2018 at 11:50 PM, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Read this interesting article about a half billion PW database of > > compromised passwords that I thought I'd share: > > > > *https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/ > > * > > > > *on* mouseUp > > *local* tSHAData, tSHAHex, tList > > *put* messageDigest(the text of field "password", "SHA-1") into > tSHAData > > *repeat* for each byte tByte in tSHAData > > *put* format("%02X",bytetonum(tByte)) after tSHAHex > > *end* *repeat* > > *put* url ("https://api.pwnedpasswords.com/range/" & char 1 to 5 of > > tSHAHex) into tList > > *delete* char 1 to 3 of tList *-- delete the BOM* > > *filter* tList with (char 6 to -1 of tSHAHex) & "*" > > *set* the itemdel to ":" > > *put* item 2 of tList into field "hits" > > *end* mouseUp > > > > I've written some code that uses the new v2 API. You send the first 5 > > characters of the SHA1 of your password and get a list back of matches. > > You can then see if the rest of the hash is in the list and get the > number > > of times it appears on the list. "123123" appears 2048411 times for > > example. > > > > I'm sure that someone can tighten it up some, but just wanted to make > > something in LiveCode that could use the API. > > > > You can also download the full database of SHA1 values (8.75GB) if you > > would want to use to provide a service. Links are in the article (he > > prefers that you use a torrent). > > > > Thanks, > > Brian > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Feb 23 13:52:23 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 23 Feb 2018 18:52:23 +0000 Subject: LiveCode Widget Factory In-Reply-To: References: Message-ID: Hi Todd, One thing that is REALLY missing is a widget to print from Android - specifically Receipt printers preferably via bluetooth and via Wifi - both for people out and about on business, either having a portable printer. It seems google cloudprint doesnt have any reciept printers (epson/star/Fujitsu using the epson ESC protocol) on its list of supported printers. So I am using 8 inch Windows 10 tablets for ease of use - the customers don't care but I do. I also attach a printer to a windows tablet with an app running on the tablet waiting for the information to print from the Android tablet . There are two ways of doing it that I can see. 1 - An app that is installed on the android tablet that you invoke with a pdf of what needs to be printed - Worldwide developer market for that - just look at stackoverflow -- which could bring new people into the fold. 2. A widget priced on two levels with or without source although I would open source this (but still charge - any developer who wouldn't pay for it should be shot at dawn without a last meal) because many people will add to the printers supported. If you can't or won't then charge extra for the source code , cos as sure as eggs is eggs it will need to be tweaked. The other important widget is that for the Beacons which is on your list - If you can give access to the low level routines in the widget - or even create a script only stack that would mean more flexibility so we can "override" certain defaults - unless you've thought of everything ;-) Thanks and good luck Regard Lagi On 22 February 2018 at 11:38, Todd Fabacher via use-livecode wrote: > Thanks...But nobody gave any suggestions???? > > > Roger Eller wrote: do you mean it should work on ANY of the > "LiveCode-supported" platforms, both desktop and/or mobile? > > --Honestly, our main focus will be mobile at first, but our goal is all > platforms. As you can see in the list, many are mobile issues that > LiveCode currently has no access to.We will try but all platforms may come > after we have completed the mobile and worked out the bugs for LCB. > > > hh wrote: Please start with *cross-platform-native* widgets for all of the > UI elements in > the LC Tools (which all are "basic"). > > --Yes, Ali has provided a good multiplatform example of a button. We are > taking this example and creating a structure/template for all basic UI > widgets. This is our goal, but the #1 goal right now is mobile and getting > them in a widget store for people to purchase and use. But before 2021 > should not be an issue. We need to get the LC platform access to Native > functionality to the coders because the competition is doing this. We need > it to get new members and keep existing community members. > > BTW HH, thanks for the LBC property sample app you did, it was helpful. > > > --Todd > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Feb 23 17:18:54 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 23 Feb 2018 14:18:54 -0800 Subject: LiveCode back on TIOBE Message-ID: <608d8394-d956-1a80-a67b-d5e66a13a45d@fourthworld.com> For the first time in a while, LiveCode is back on the TIOBE Index of the top 100 most popular programming languages: https://www.tiobe.com/tiobe-index/ During the Kickstarter campaign and for a year or so after, LC was there off and on every few months. But though I don't check monthly, I haven't seen it there in a while, so this is encouraging. If it remains on the list consistently going forward, we'll have a reasonably good indicator of overall language adoption growth. FWIW, this is the first month I can recall seeing where LiveCode was on this list but Xojo wasn't. Other observations of note in the Feb 2018 index: - Swift is still in the top 50 (#16, pretty good), but trending down, with a double-arrow suggesting more decline over last month than others in decline. - Python and VB.net are up, VB up more. Both VB editions are IIRC now open source and available for multiple platforms. - If you look at the line chart in the middle of the page, even the most popular languages have an overall slight downward trend, suggesting greater diversification. My take on this: - Multi-platform languages are growing more than platform-specific ones. - Programming is becoming increasingly polyglot, where fixation on one or two languages across one's career is gone in favor of expertise with a wider range of languages, each for different tasks. For LC fans this could bode well, since at this stage few pros are in a position to replace their tooling with LC, but everyone can augment their tooling with it, since probably nothing else is a productive for making multi-platform GUIs. -- Richard Gaskin Fourth World Systems From roland.huettmann at gmail.com Fri Feb 23 17:26:23 2018 From: roland.huettmann at gmail.com (R.H.) Date: Fri, 23 Feb 2018 23:26:23 +0100 Subject: Help needed / corrupted application stack after quit through splash stack Message-ID: Using Indy 8.1.9 desktop standalone without encryption (same problem with earlier versions and community version), Windows 7, 8, 10, different machines and different users of a large company. Before filing a bug report or sending a help request, maybe there is a help here... This is an urgent question as it is highly critical for the in-house distribution of this LiveCode application to the sales team of a large company right now. I can not really reproduce the problem using my own machine, but it happened on my machine, on other peoples machines, more or less often. I developed the app using the splash stack method (small login stack that is made to be a standalone and actual application stack in a subfolder called). It works. At least for all users when opening the first time. Problems appear when opening the app through the splash screen login stack a second time after quitting. The compiled LiveCode engine of the splash stack often enough cannot find the application stack any longer because it is corrupted. Analyzing the situation, I think, it seems to be a problem quitting the standalone app resulting in a corrupt application stack (the splash screen standalone is not affected). In case of corruption of the application stack, I then find two visible files in the subfolder with the original filename of the application stack, one shows a tilde "???" at the end of the filename (an indication of corruption). Currently, I do not know how to generate a detailed error report for such standalone. I have a friend who experiences this problem each time, and each time he wants to use my app, he then takes a fresh copy that is good only for a 1-time-usage ))). The quit command is sent from the application stack. Here are the handlers in the application stack: on closeStack saveAndQuit pass closeStack /* goes to splash stack, engine ... tested with and without. */ end closeStack command saveAndQuit lock cursor /* Tested with and without locking and showing cursor */ set the cursor to watch save this stack /* auto save, takes a long time, between 10-30 secs */ wait 100 milliseconds with messages /* does it help? Probably not. */ unlock cursor /* Testing with or without*/ lock messages /* Force quit. Tested with and without. */ quit /* Should quit safely and not corrupt the stack, but stack sometimes is corrupted */ end saveAndQuit Any suggestions I highly appreciated. Thanks to all Roland From roland.huettmann at gmail.com Fri Feb 23 17:33:29 2018 From: roland.huettmann at gmail.com (R.H.) Date: Fri, 23 Feb 2018 23:33:29 +0100 Subject: Quit Command corrupts standalone (stack called by standalone splash) Message-ID: // Quit Command corrupts standalone (stack called by standalone splash) Using Indy 8.1.9 desktop standalone without encryption (same problem with earlier versions and community version), Windows 7, 8, 10, different machines and different users of a large company. // Before filing a bug report or sending a help request, maybe there is a help here... This is an urgent question as it is highly critical for the in-house distribution of this LiveCode application to the sales team of a large company right now. I can not really reproduce the problem using my own machine, but it happened on my machine, on other peoples machines, more or less often. I developed the app using the splash stack method (small login stack that is made to be a standalone and actual application stack in a subfolder called). It works. At least for all users when opening the first time. Problems appear when opening the app through the splash screen login stack a second time after quitting. The compiled LiveCode engine of the splash stack often enough cannot find the application stack any longer because it is corrupted. Analyzing the situation, I think, it seems to be a problem quitting the standalone app resulting in a corrupt application stack (the splash screen standalone is not affected). In case of corruption of the application stack, I then find two visible files in the subfolder with the original filename of the application stack, one shows a tilde "???" at the end of the filename (an indication of corruption). Currently, I do not know how to generate a detailed error report for such standalone. I have a friend who experiences this problem each time, and each time he wants to use my app, he then takes a fresh copy that is good only for a 1-time-usage ))). The quit command is sent from the application stack. Here are the handlers in the application stack: on closeStack saveAndQuit pass closeStack /* goes to splash stack, engine ... tested with and without. */ end closeStack command saveAndQuit lock cursor /* Tested with and without locking and showing cursor */ set the cursor to watch save this stack /* auto save, takes a long time, between 10-30 secs */ wait 100 milliseconds with messages /* does it help? Probably not. */ unlock cursor /* Testing with or without*/ lock messages /* Force quit. Tested with and without. */ quit /* Should quit safely and not corrupt the stack, but stack sometimes is corrupted */ end saveAndQuit Any suggestions I highly appreciated. Thanks to all Roland From bodine at bodinetraininggames.com Fri Feb 23 18:20:22 2018 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 23 Feb 2018 16:20:22 -0700 (MST) Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: Message-ID: <1519428022915-0.post@n4.nabble.com> Hi Roland. The "~" file is the original (uncorrupted, unsaved) version of your stack before LC executed your Save cmd. If you remove the "~" from the filename, you'll probably find you can open that. LC creates the "~" file at the start of the save operation and, if all goes well, removes that file when save is complete. My guess is your problem is rooted in the lengthy save time in the quit routine. Here are a couple ideas of how you could deal with that: 1) Do the save within a try/catch statement so you can deal with any error. 2) If you are just saving some user data like prefs or fairly minor stuff, then why not save that into a separate substack outside of your main application stack? That should greatly shorten the time it takes to save. Hope that helps. Tom Bodine -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From revdev at pdslabs.net Fri Feb 23 19:19:36 2018 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 23 Feb 2018 16:19:36 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: <1519428022915-0.post@n4.nabble.com> References: <1519428022915-0.post@n4.nabble.com> Message-ID: Roland, I believe Tom is exactly right. I would restructure your two closing handlers like this: local sMyFilename on closeStack ??? put the filename of me into sMyFilename ??? saveMe ??? send "quitMe" in 1 second end closeStack command saveMe ?? lock cursor /* Tested with and without locking and showing cursor */ ?? set the cursor to watch ?? save this stack /* auto save, takes a long time, between 10-30 secs */ end saveMe command quitMe ?? if there is a file sMyFilename then ????? unlock cursor ????? lock messages ????? quit ?? else ????? send "quitMe" to me in 0.5 seconds -- or in your preferred time ?? end if end quitMe The above was not tested but it should solve the problem. HTH - Phil Davis On 2/23/18 3:20 PM, tbodine via use-livecode wrote: > Hi Roland. > > The "~" file is the original (uncorrupted, unsaved) version of your stack > before LC executed your Save cmd. If you remove the "~" from the filename, > you'll probably find you can open that. LC creates the "~" file at the start > of the save operation and, if all goes well, removes that file when save is > complete. > > My guess is your problem is rooted in the lengthy save time in the quit > routine. Here are a couple ideas of how you could deal with that: > > 1) Do the save within a try/catch statement so you can deal with any error. > > 2) If you are just saving some user data like prefs or fairly minor stuff, > then why not save that into a separate substack outside of your main > application stack? That should greatly shorten the time it takes to save. > > Hope that helps. > > Tom Bodine > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From selander at tkf.att.ne.jp Sat Feb 24 08:06:33 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 24 Feb 2018 22:06:33 +0900 Subject: playing a video in Win7? Message-ID: <5A916359.6060103@tkf.att.ne.jp> Hi, Trying to simply play an h264 video on LC 9 in a player on a Win7 machine. Quicktime installed. I have .mov, .mp4, .mv4 videos that all play fine on Mac osx /and/ in QT on the Win7 machine. But I can only get .wmv to play in the LC player object on Win7. Have to create a little in-house app for a Win7 user... Very first time to use LC on Windows. Any hints? Much appreciated. Tim Selander Tokyo, Japan From klaus at major-k.de Sat Feb 24 08:18:02 2018 From: klaus at major-k.de (Klaus major-k) Date: Sat, 24 Feb 2018 14:18:02 +0100 Subject: playing a video in Win7? In-Reply-To: <5A916359.6060103@tkf.att.ne.jp> References: <5A916359.6060103@tkf.att.ne.jp> Message-ID: <6B13DCB0-D535-474E-806B-6E35A8F4F7E3@major-k.de> Hi Tim, > Am 24.02.2018 um 14:06 schrieb Tim Selander via use-livecode : > > Hi, > > Trying to simply play an h264 video on LC 9 in a player on a Win7 machine. Quicktime installed. > I have .mov, .mp4, .mv4 videos that all play fine on Mac osx /and/ in QT on the Win7 machine. > But I can only get .wmv to play in the LC player object on Win7. > Have to create a little in-house app for a Win7 user... Very first time to use LC on Windows. > Any hints? Much appreciated. if possible, install these filter (plug-ins for WMP) on the target machine, which will let you play MP4 and a lot more formats in a player object on Windows: > Tim Selander > Tokyo, Japan Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From selander at tkf.att.ne.jp Sat Feb 24 09:04:22 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 24 Feb 2018 23:04:22 +0900 Subject: another mac to Windows gotcha Message-ID: <5A9170E6.6080002@tkf.att.ne.jp> Hi, Trying my first little LC app on Windows. I wrote an app on osx and am now trying to get it to work in a Win7 machine. On the mac app, I use ctrl-J, ctrl-K, and ctrl-L to control the video player. JKL is pretty standard video player control in video editing software. On the mac app, the card script 'listens' for controlkeydown, and if the other key is J K or L, sends the appropriate go, stop, reverse command to the player. Have just discovered controlkeydown is not available on windows. Is there an equivalent? What would the windows guy and gals here use? Thanks, Tim Selander Tokyo, Japan From paul at researchware.com Sat Feb 24 09:44:54 2018 From: paul at researchware.com (Paul Dupuis) Date: Sat, 24 Feb 2018 09:44:54 -0500 Subject: another mac to Windows gotcha In-Reply-To: <5A9170E6.6080002@tkf.att.ne.jp> References: <5A9170E6.6080002@tkf.att.ne.jp> Message-ID: <54cfde26-37b0-2969-0dcc-65e6dcf1847e@researchware.com> controlKeyDown is absolutely available on Windows. See the dictionary entry in LC8.1.9 for example. What version of LiveCode are you using? On 2/24/2018 9:04 AM, Tim Selander via use-livecode wrote: > Hi, > > Trying my first little LC app on Windows. I wrote an app on osx and am > now trying to get it to work in a Win7 machine. > > On the mac app, I use ctrl-J, ctrl-K, and ctrl-L to control the video > player. JKL is pretty standard video player control in video editing > software. > > On the mac app, the card script 'listens' for controlkeydown, and if > the other key is J K or L, sends the appropriate go, stop, reverse > command to the player. > > Have just discovered controlkeydown is not available on windows. Is > there an equivalent? What would the windows guy and gals here use? > > Thanks, > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From selander at tkf.att.ne.jp Sat Feb 24 10:16:03 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 25 Feb 2018 00:16:03 +0900 Subject: another mac to Windows gotcha In-Reply-To: <54cfde26-37b0-2969-0dcc-65e6dcf1847e@researchware.com> References: <5A9170E6.6080002@tkf.att.ne.jp> <54cfde26-37b0-2969-0dcc-65e6dcf1847e@researchware.com> Message-ID: <5A9181B3.5080906@tkf.att.ne.jp> Hi Paul, Using 9.0 dp11 community. After sending the post, I found in the dictionary that for windows, commandkeydown message. After changing my script from controlkeydown to commandkeydown, it worked. Sort of. My next problem is that on the LC/osx I use: if pkeyname is "j" then set the playrate of player videoplayer to -1 if pkeyname is "k" then set the playrate of player videoplayer to 0 if pkeyname is "l" then set the playrate of player videoplayer to 1 to start, stop or reverse the player from the keyboard. This worked great in LC/osx, but is not working in win7/LC. I changed the lines to if pkeyname is "k" then stop player videoplayer if pkeyname is "l" then start player videoplayer and that works in win7/lc. But can't figure out how to send a play in reverse command from the keyboard yet. Tim Selander Tokyo, Japan On 2018.02.24 23:44, Paul Dupuis via use-livecode wrote: > controlKeyDown is absolutely available on Windows. See the dictionary > entry in LC8.1.9 for example. What version of LiveCode are you using? > > > On 2/24/2018 9:04 AM, Tim Selander via use-livecode wrote: >> Hi, >> >> Trying my first little LC app on Windows. I wrote an app on osx and am >> now trying to get it to work in a Win7 machine. >> >> On the mac app, I use ctrl-J, ctrl-K, and ctrl-L to control the video >> player. JKL is pretty standard video player control in video editing >> software. >> >> On the mac app, the card script 'listens' for controlkeydown, and if >> the other key is J K or L, sends the appropriate go, stop, reverse >> command to the player. >> >> Have just discovered controlkeydown is not available on windows. Is >> there an equivalent? What would the windows guy and gals here use? >> >> Thanks, >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bogdanoff at me.com Sat Feb 24 10:26:17 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 24 Feb 2018 10:26:17 -0500 Subject: another mac to Windows gotcha In-Reply-To: <5A9181B3.5080906@tkf.att.ne.jp> References: <5A9170E6.6080002@tkf.att.ne.jp> <54cfde26-37b0-2969-0dcc-65e6dcf1847e@researchware.com> <5A9181B3.5080906@tkf.att.ne.jp> Message-ID: <0B7E5C48-1ABB-44FC-98DE-C74F2793A5B9@me.com> Tim, Try both commands in order: set playRate, then start. Peter Bogdanoff > On Feb 24, 2018, at 10:16 AM, Tim Selander via use-livecode wrote: > > Hi Paul, > > Using 9.0 dp11 community. After sending the post, I found in the dictionary that for windows, commandkeydown message. After changing my script from controlkeydown to commandkeydown, it worked. Sort of. > > My next problem is that on the LC/osx I use: > if pkeyname is "j" then set the playrate of player videoplayer to -1 > if pkeyname is "k" then set the playrate of player videoplayer to 0 > if pkeyname is "l" then set the playrate of player videoplayer to 1 > > to start, stop or reverse the player from the keyboard. This worked great in LC/osx, but is not working in win7/LC. > > I changed the lines to > if pkeyname is "k" then stop player videoplayer > if pkeyname is "l" then start player videoplayer > > and that works in win7/lc. But can't figure out how to send a play in reverse command from the keyboard yet. > > Tim Selander > Tokyo, Japan > > >> On 2018.02.24 23:44, Paul Dupuis via use-livecode wrote: >> controlKeyDown is absolutely available on Windows. See the dictionary >> entry in LC8.1.9 for example. What version of LiveCode are you using? >> >> >>> On 2/24/2018 9:04 AM, Tim Selander via use-livecode wrote: >>> Hi, >>> >>> Trying my first little LC app on Windows. I wrote an app on osx and am >>> now trying to get it to work in a Win7 machine. >>> >>> On the mac app, I use ctrl-J, ctrl-K, and ctrl-L to control the video >>> player. JKL is pretty standard video player control in video editing >>> software. >>> >>> On the mac app, the card script 'listens' for controlkeydown, and if >>> the other key is J K or L, sends the appropriate go, stop, reverse >>> command to the player. >>> >>> Have just discovered controlkeydown is not available on windows. Is >>> there an equivalent? What would the windows guy and gals here use? >>> >>> Thanks, >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Sat Feb 24 10:32:44 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 25 Feb 2018 00:32:44 +0900 Subject: another mac to Windows gotcha In-Reply-To: <0B7E5C48-1ABB-44FC-98DE-C74F2793A5B9@me.com> References: <5A9170E6.6080002@tkf.att.ne.jp> <54cfde26-37b0-2969-0dcc-65e6dcf1847e@researchware.com> <5A9181B3.5080906@tkf.att.ne.jp> <0B7E5C48-1ABB-44FC-98DE-C74F2793A5B9@me.com> Message-ID: <5A91859C.7030402@tkf.att.ne.jp> Hi Peter, Tried if pkeyname is "j" then set the playrate of player videoplayer to -1 start player videplayer end if Results in a pause in playback as long as I am holding ctrl-j, as soon as that's released, forward play resumes. Thanks. Tim On 2018.02.25 0:26, Peter Bogdanoff via use-livecode wrote: > Tim, > > Try both commands in order: set playRate, then start. > > Peter Bogdanoff > >> On Feb 24, 2018, at 10:16 AM, Tim Selander via use-livecode wrote: >> >> Hi Paul, >> >> Using 9.0 dp11 community. After sending the post, I found in the dictionary that for windows, commandkeydown message. After changing my script from controlkeydown to commandkeydown, it worked. Sort of. >> >> My next problem is that on the LC/osx I use: >> if pkeyname is "j" then set the playrate of player videoplayer to -1 >> if pkeyname is "k" then set the playrate of player videoplayer to 0 >> if pkeyname is "l" then set the playrate of player videoplayer to 1 >> >> to start, stop or reverse the player from the keyboard. This worked great in LC/osx, but is not working in win7/LC. >> >> I changed the lines to >> if pkeyname is "k" then stop player videoplayer >> if pkeyname is "l" then start player videoplayer >> >> and that works in win7/lc. But can't figure out how to send a play in reverse command from the keyboard yet. >> >> Tim Selander >> Tokyo, Japan >> >> >>> On 2018.02.24 23:44, Paul Dupuis via use-livecode wrote: >>> controlKeyDown is absolutely available on Windows. See the dictionary >>> entry in LC8.1.9 for example. What version of LiveCode are you using? >>> >>> >>>> On 2/24/2018 9:04 AM, Tim Selander via use-livecode wrote: >>>> Hi, >>>> >>>> Trying my first little LC app on Windows. I wrote an app on osx and am >>>> now trying to get it to work in a Win7 machine. >>>> >>>> On the mac app, I use ctrl-J, ctrl-K, and ctrl-L to control the video >>>> player. JKL is pretty standard video player control in video editing >>>> software. >>>> >>>> On the mac app, the card script 'listens' for controlkeydown, and if >>>> the other key is J K or L, sends the appropriate go, stop, reverse >>>> command to the player. >>>> >>>> Have just discovered controlkeydown is not available on windows. Is >>>> there an equivalent? What would the windows guy and gals here use? >>>> >>>> Thanks, >>>> >>>> Tim Selander >>>> Tokyo, Japan >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 24 11:00:24 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Feb 2018 08:00:24 -0800 Subject: widget properties Message-ID: <95328921-a342-967b-6a32-7a10c596b463@fourthworld.com> When we query the properties of any object, we get an array that lets us understand and even reproduce that object easily. Except with widgets. When we query the properties of a widget we get only the subset of properties common to all widgets, but none of the properties unique to any given widget type. Should the widget spec be enhanced to map its unique properties to be included among "the properties" array? -- Richard Gaskin Fourth World Systems From brian at milby7.com Sat Feb 24 11:12:46 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 24 Feb 2018 16:12:46 +0000 Subject: widget properties In-Reply-To: <95328921-a342-967b-6a32-7a10c596b463@fourthworld.com> References: <95328921-a342-967b-6a32-7a10c596b463@fourthworld.com> Message-ID: Doe this get what you want: export widget to array arrayVar On Sat, Feb 24, 2018 at 10:01 AM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > When we query the properties of any object, we get an array that lets us > understand and even reproduce that object easily. > > Except with widgets. > > When we query the properties of a widget we get only the subset of > properties common to all widgets, but none of the properties unique to > any given widget type. > > Should the widget spec be enhanced to map its unique properties to be > included among "the properties" array? > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Sat Feb 24 11:29:04 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 24 Feb 2018 16:29:04 +0000 Subject: widget properties In-Reply-To: References: <95328921-a342-967b-6a32-7a10c596b463@fourthworld.com> Message-ID: I meant ?does? To get what you want (if different than above) would require something defined within each widget to export the desired internal information. One other thing that could be done is to extend the export to include everything that the engine knows about the widget (i.e. add the properties array to it). Thanks, Brian On Sat, Feb 24, 2018 at 10:12 AM Brian Milby wrote: > Doe this get what you want: > export widget to array arrayVar > On Sat, Feb 24, 2018 at 10:01 AM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> When we query the properties of any object, we get an array that lets us >> understand and even reproduce that object easily. >> >> Except with widgets. >> >> When we query the properties of a widget we get only the subset of >> properties common to all widgets, but none of the properties unique to >> any given widget type. >> >> Should the widget spec be enhanced to map its unique properties to be >> included among "the properties" array? >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From hh at hyperhh.de Sat Feb 24 12:57:56 2018 From: hh at hyperhh.de (hh) Date: Sat, 24 Feb 2018 18:57:56 +0100 Subject: widget properties Message-ID: <9D303199-4809-4FAC-B5F2-223ACC919924@hyperhh.de> > Richard G. wrote: > When we query the properties of any object, we get an array that lets us > understand and even reproduce that object easily. > > Except with widgets. > > When we query the properties of a widget we get only the subset of > properties common to all widgets, but none of the properties unique to > any given widget type. > > Should the widget spec be enhanced to map its unique properties to be > included among "the properties" array? A widget is not an ordinary "object". It's more like a micro-standalone. You'll get what the author provides, as with a standalone or an external. The documentation and property-infos are a *lot* of work and will raise the price of a widget (if not free), just as with standalones or externals. > Brian M. wrote: > One other thing that could be done is to extend the export to include > everything that the engine knows about the widget (i.e. add the > properties array to it). The widget author can already do that by defining a list of persistent properties. Why should the engine override that? From gcanyon at gmail.com Sat Feb 24 14:23:08 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 24 Feb 2018 11:23:08 -0800 Subject: Navigator Update Message-ID: Navigator has been updated to include: -- Filtering in the Stack List (both using the filter field, and the more robust filter command). -- A fix for an issue where editing properties could show the editor in HTMLtext mode, meaning that properties would be set incorrectly. -- A new Save All command when right-clicking on stacks, which saves the stack itself and all the stackfile files referenced by the stack. NOTE: this will not save any stackfiles referenced in substacks of a mainstack. Should it? -- A new command Open in New Navigator when right-clicking on any set of containers: groups, cards, or stacks -- which will open all of the containers, each in their own copy of Navigator. -- I've also started work preparing to reduce the number of global variables Navigator uses. If you check, you'll see that Navigator uses global variables prefixed gSB, which stands for "Script Buddy," which was Navigator's name when it was first started out *way* back when. Those globals are going down, someday... You can get Navigator here . Or get it from GitHub: Navigator's GitHub page From brian at milby7.com Sat Feb 24 14:41:54 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 24 Feb 2018 19:41:54 +0000 Subject: widget properties In-Reply-To: <9D303199-4809-4FAC-B5F2-223ACC919924@hyperhh.de> References: <9D303199-4809-4FAC-B5F2-223ACC919924@hyperhh.de> Message-ID: > > Brian M. wrote: > > One other thing that could be done is to extend the export to include > > everything that the engine knows about the widget (i.e. add the > > properties array to it). > > The widget author can already do that by defining a list of persistent > properties. Why should the engine override that? I see this as a unification rather than override. When a stack is saved it asks each widget what it wants to save but also includes other properties too (rect, layer, id, ...). From brian at milby7.com Sat Feb 24 15:18:10 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 24 Feb 2018 20:18:10 +0000 Subject: widget properties In-Reply-To: References: <9D303199-4809-4FAC-B5F2-223ACC919924@hyperhh.de> Message-ID: Now I?m really confused: put the properties of widget id 1004 into tA Results in an empty tA. If I put something into tA[?rect?] and then set the properties to tA then it does move to that rect. Is that just my 2 computers (Mac and Win10)? I checked 9DP11 and 8.1.7 (will get the latest 8 now though). On Sat, Feb 24, 2018 at 1:41 PM Brian Milby wrote: > > Brian M. wrote: >> > One other thing that could be done is to extend the export to include >> > everything that the engine knows about the widget (i.e. add the >> > properties array to it). >> >> The widget author can already do that by defining a list of persistent >> properties. Why should the engine override that? > > > I see this as a unification rather than override. When a stack is saved > it asks each widget what it wants to save but also includes other > properties too (rect, layer, id, ...). > From ambassador at fourthworld.com Sat Feb 24 15:19:35 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Feb 2018 12:19:35 -0800 Subject: widget properties In-Reply-To: References: Message-ID: Brian Milby wrote: >> > Brian M. wrote: >> > One other thing that could be done is to extend the export to >> > include everything that the engine knows about the widget (i.e. >> > add the properties array to it). >> >> The widget author can already do that by defining a list of >> persistent properties. Why should the engine override that? > > I see this as a unification rather than override. Exactly. My request is almost exactly as you worded it, but in reverse: rather than adding the info obtainable from the universally-supported "the properties" to something widget-specific, I'm suggesting the engine have an enhancement to add the widget-specific info to the universally-supported "the properties" info. This suggestion would seem to address hh's concern as well: > The documentation and property-infos are a *lot* of work and will > raise the price of a widget (if not free), just as with standalones > or externals. By having an engine-level enhancement to include the values already supplied by the widget per the widget spec included in the existing "the properties" function, we would then have one universal array to work with which would adequately describe any object with no additional work needed from any widget developer. Consider the LC IDE's Inspector: to populate its controls it obtains "the properties" from all LC-native objects, and "the properties" + widget-specific info from widgets. If the engine included the widget-specific info in "the properties", the Inspector need only query one place to obtain all relevant info about an object. And given that "the properties" was introduced to provide a universal way of obtaining object info, and that widgets were introduced as a way to provide native-like objects without requiring engine-level implementation, honoring the purpose of "the properties" by extending it to include widget-specific info would seem every bit as useful as having "the properties" has been until the introduction of widgets. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From merakosp at gmail.com Sat Feb 24 16:07:53 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Sat, 24 Feb 2018 21:07:53 +0000 Subject: another mac to Windows gotcha In-Reply-To: <5A91859C.7030402@tkf.att.ne.jp> References: <5A9170E6.6080002@tkf.att.ne.jp> <54cfde26-37b0-2969-0dcc-65e6dcf1847e@researchware.com> <5A9181B3.5080906@tkf.att.ne.jp> <0B7E5C48-1ABB-44FC-98DE-C74F2793A5B9@me.com> <5A91859C.7030402@tkf.att.ne.jp> Message-ID: Hi Tim, I am not sure if the DirectShow player (with is the API used by the LC player on Windows) supports negative playrate: https://msdn.microsoft.com/en-us/library/windows/desktop/dd377591(v=vs.85).aspx There is also a bug report about it: http://quality.livecode.com/show_bug.cgi?id=19129 Best, Panos -- On Sat, Feb 24, 2018 at 3:32 PM, Tim Selander via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Peter, > > Tried > if pkeyname is "j" then > set the playrate of player videoplayer to -1 > start player videplayer > end if > > Results in a pause in playback as long as I am holding ctrl-j, as soon as > that's released, forward play resumes. > > Thanks. > > Tim > > > > On 2018.02.25 0:26, Peter Bogdanoff via use-livecode wrote: > >> Tim, >> >> Try both commands in order: set playRate, then start. >> >> Peter Bogdanoff >> >> On Feb 24, 2018, at 10:16 AM, Tim Selander via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Hi Paul, >>> >>> Using 9.0 dp11 community. After sending the post, I found in the >>> dictionary that for windows, commandkeydown message. After changing my >>> script from controlkeydown to commandkeydown, it worked. Sort of. >>> >>> My next problem is that on the LC/osx I use: >>> if pkeyname is "j" then set the playrate of player videoplayer to -1 >>> if pkeyname is "k" then set the playrate of player videoplayer to 0 >>> if pkeyname is "l" then set the playrate of player videoplayer to 1 >>> >>> to start, stop or reverse the player from the keyboard. This worked >>> great in LC/osx, but is not working in win7/LC. >>> >>> I changed the lines to >>> if pkeyname is "k" then stop player videoplayer >>> if pkeyname is "l" then start player videoplayer >>> >>> and that works in win7/lc. But can't figure out how to send a play in >>> reverse command from the keyboard yet. >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> >>> On 2018.02.24 23:44, Paul Dupuis via use-livecode wrote: >>>> controlKeyDown is absolutely available on Windows. See the dictionary >>>> entry in LC8.1.9 for example. What version of LiveCode are you using? >>>> >>>> >>>> On 2/24/2018 9:04 AM, Tim Selander via use-livecode wrote: >>>>> Hi, >>>>> >>>>> Trying my first little LC app on Windows. I wrote an app on osx and am >>>>> now trying to get it to work in a Win7 machine. >>>>> >>>>> On the mac app, I use ctrl-J, ctrl-K, and ctrl-L to control the video >>>>> player. JKL is pretty standard video player control in video editing >>>>> software. >>>>> >>>>> On the mac app, the card script 'listens' for controlkeydown, and if >>>>> the other key is J K or L, sends the appropriate go, stop, reverse >>>>> command to the player. >>>>> >>>>> Have just discovered controlkeydown is not available on windows. Is >>>>> there an equivalent? What would the windows guy and gals here use? >>>>> >>>>> Thanks, >>>>> >>>>> Tim Selander >>>>> Tokyo, Japan >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 24 16:17:08 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 24 Feb 2018 15:17:08 -0600 Subject: Password Checker In-Reply-To: References: Message-ID: I just got around to trying this -- *very* useful, thanks for posting it. There are no matches for any of my passwords I've tried so far. :) On the other hand, even "AbrahamLincoln" has 128 matches. And you have to insert commas to read the number returned for "qwerty". On 2/22/18 10:50 PM, Brian Milby via use-livecode wrote: > Read this interesting article about a half billion PW database of > compromised passwords that I thought I'd share: > > *https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/ > * > > *on* mouseUp > *local* tSHAData, tSHAHex, tList > *put* messageDigest(the text of field "password", "SHA-1") into tSHAData > *repeat* for each byte tByte in tSHAData > *put* format("%02X",bytetonum(tByte)) after tSHAHex > *end* *repeat* > *put* url ("https://api.pwnedpasswords.com/range/" & char 1 to 5 of > tSHAHex) into tList > *delete* char 1 to 3 of tList *-- delete the BOM* > *filter* tList with (char 6 to -1 of tSHAHex) & "*" > *set* the itemdel to ":" > *put* item 2 of tList into field "hits" > *end* mouseUp > > I've written some code that uses the new v2 API. You send the first 5 > characters of the SHA1 of your password and get a list back of matches. > You can then see if the rest of the hash is in the list and get the number > of times it appears on the list. "123123" appears 2048411 times for > example. > > I'm sure that someone can tighten it up some, but just wanted to make > something in LiveCode that could use the API. > > You can also download the full database of SHA1 values (8.75GB) if you > would want to use to provide a service. Links are in the article (he > prefers that you use a torrent). > > Thanks, > Brian > _______________________________________________ > use-livecode mailing list > use-livecode 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 hh at hyperhh.de Sat Feb 24 16:38:15 2018 From: hh at hyperhh.de (hh) Date: Sat, 24 Feb 2018 22:38:15 +0100 Subject: widget properties Message-ID: > Richard G. wrote: > I'm suggesting the engine have an enhancement to add the widget-specific info > to the universally-supported "the properties" info. It would be possible to simply add all the info that the property inspector can display. But that can also easily be scripted by the user of the widget. Or use the demo-stacks of the widget's author (I usually provide these) which contain (parts of) setter and getter scripts. [You can set the settable properties to an array. So you can get in just the same way an array of gettable properties. This needs only a list of gettable/settable properties in the dictionary.] > Brian M. wrote: > Now I?m really confused: > > put the properties of widget id 1004 into tA > > Results in an empty tA. If I put something into tA[?rect?] and then set the > properties to tA then it does move to that rect. That's correct(*). Setting tA is just an array of (valid) properties to set, needed also when using a widget as popup. The properties returns the widget property "properties" which is usually empty. (*) "rect" is a LCS property of the widget, the widget author can currently set such properties only by posting to the widget's script object. From that it is a bug, all gettable/settable LCS properties of the widget (see https://livecode.com/topic/accessing-livecode-control-properties/) should populate the "the properties"-array (this list is missing "rect"). From ambassador at fourthworld.com Sat Feb 24 17:11:48 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Feb 2018 14:11:48 -0800 Subject: widget properties In-Reply-To: References: Message-ID: <1d15eaef-ccdf-fe5a-8bbb-e1778554d798@fourthworld.com> hh wrote: >> Richard G. wrote: >> I'm suggesting the engine have an enhancement to add >> the widget-specific info to the universally-supported >> "the properties" info. > > It would be possible to simply add all the info that the property > inspector can display. But that can also easily be scripted by the > user of the widget. > Or use the demo-stacks of the widget's author (I usually provide > these) which contain (parts of) setter and getter scripts. Exactly. There are many workarounds available. What's missing is support for the universal method by which we can obtain property info, "the properties" function. Given that the engine is apparently already able to obtain that info, adding it to the universal mechanism for this should seem short work, 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 ali.lloyd at livecode.com Sat Feb 24 18:08:15 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sat, 24 Feb 2018 23:08:15 +0000 Subject: widget properties In-Reply-To: <1d15eaef-ccdf-fe5a-8bbb-e1778554d798@fourthworld.com> References: <1d15eaef-ccdf-fe5a-8bbb-e1778554d798@fourthworld.com> Message-ID: Not much has changed since this question was last asked: http://lists.runrev.com/pipermail/use-livecode/2015-October/219630.html The question here really is what you want to use the properties property for. It is not correct to say that the properties property is used to create the property inspector - that is in fact done from property definition files. There are things that are properties that you might not want to present in a property inspector, and there are things that you might want to present in the property inspector that are not strictly properties. Hence we maintain these lists: https://github.com/livecode/livecode-ide/tree/develop/Toolset/resources/supporting_files/property_definitions Because the 'classic controls' are somewhat multipurpose, the notion of control type isn't fine-grained enough to use the properties property for a good property inspector. In the property definition files, they are split up into control types (more like how widgets should be, i.e. one widget kind per distinct functionality) The VCS-related use case for an expanded properties property still exists though, as far as I can tell, although 'properties' is kind of a bad name for it. Actually I think it might be better to add 'export' syntax for classic controls. The nice thing about the export syntax is that you get exactly the distinct pieces of information required to reconstruct the widget (according to the widget author's implementation). It might actually be a completely distinct representation of the widget state than that provided by a list of properties and their values (although in practice, it's usually a subset of the properties). On Sat, Feb 24, 2018 at 10:11 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > hh wrote: > > >> Richard G. wrote: > >> I'm suggesting the engine have an enhancement to add > >> the widget-specific info to the universally-supported > >> "the properties" info. > > > > It would be possible to simply add all the info that the property > > inspector can display. But that can also easily be scripted by the > > user of the widget. > > Or use the demo-stacks of the widget's author (I usually provide > > these) which contain (parts of) setter and getter scripts. > > Exactly. There are many workarounds available. > > What's missing is support for the universal method by which we can > obtain property info, "the properties" function. > > Given that the engine is apparently already able to obtain that info, > adding it to the universal mechanism for this should seem short work, 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Sat Feb 24 18:11:53 2018 From: hh at hyperhh.de (hh) Date: Sun, 25 Feb 2018 00:11:53 +0100 Subject: widget properties Message-ID: > Richard G. wrote: > What's missing is support for the universal method by which we can > obtain property info, "the properties" function. In order to work with a widget you have to know what the single properties do. I can't see what should be the purpose of such a "full list". > Given that the engine is apparently already able to obtain that info, > adding it to the universal mechanism for this should seem short work, no? Yes, this last part. Using "the properties" you can get what's implemented for use in the property inspector, but NO short work for the author's part: (a) The LCS-LCB conversions are not simple, e.g. = Number-Text conversions (for lists), = LCB hast true lists, LCS not, = LCS has arrays with numbers as keys, LCB not. The widget's author has to implement all such conversions. (b) The property inspector has not enough (appropriate) tabs for a widget with a lot of properties. With my first widgets the properties-part needed up to 70% of work and code lines. I have it down to 10% now and I will reduce that for new and updated widgets to a short list (which is not a property). Will introduce preferences files instead. From brian at milby7.com Sat Feb 24 18:56:03 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 24 Feb 2018 23:56:03 +0000 Subject: widget properties In-Reply-To: References: <1d15eaef-ccdf-fe5a-8bbb-e1778554d798@fourthworld.com> Message-ID: @Ali... I?ve been mulling over the very idea of extending the export mechanism. What I would propose is to add an $object key that would contain the engine related things required to recreate the widget. The same could be done for any LC object (using $kind to identify the classic control/object type or possibly just ?classic control?). Possibly more than one additional key. In theory, you could export a whole stack as an array this way. The export code currently just processes widgets, but a modification there would not be that difficult. The functions used to load/save an object would need mirror functions to load/return an array. Once that is done, things higher up would need similar treatment (card/stack). I just have not had the time to sit down and try to implement my thoughts. > The VCS-related use case for an expanded properties property still exists > though, as far as I can tell, although 'properties' is kind of a bad name > for it. Actually I think it might be better to add 'export' syntax for > classic controls. The nice thing about the export syntax is that you get > exactly the distinct pieces of information required to reconstruct the > widget (according to the widget author's implementation). It might actually > be a completely distinct representation of the widget state than that > provided by a list of properties and their values (although in practice, > it's usually a subset of the properties). > From ambassador at fourthworld.com Sat Feb 24 19:25:21 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Feb 2018 16:25:21 -0800 Subject: widget properties In-Reply-To: References: Message-ID: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> Ali Lloyd wrote: > Not much has changed since this question was last asked: > http://lists.runrev.com/pipermail/use-livecode/2015-October/219630.html So it seems, hence my question. :) > The question here really is what you want to use the properties > property for. My interest this morning came from a property sheet I build some years ago as an alternative to an inspector. There are many good reasons why a property sheet is a much better fit for an IDE, but we can save that for another thread. Another reason Kevin asked Scott Raney to add "the properties" as a universal representation of object props back around '00 was for the rapid things we can do for new object creation. As an array, the value lends itself particularly well for a wide range of needs. For example, taking the delta between two objects gives you a great way to concisely express what would be needed to reproduce one from the other. Such conciseness is esp. useful in Internet applications. Another would be transferable styles. I can make a button or field how I like it, and then store only the things I care about to represent that "style". Later I can union that subset with "the properties" of another object of that type and have them applied in one simple and highly efficient move. There may be other reasons this was requested as a universal way of representing object properties. That's just the short list of things that come to mind off the top of my head right now. > It is not correct to say that the properties property is used to > create the property inspector I don't know anyone who said that. But imagine how much simpler it would be to make an Inspector if "the properties" were completed to handle this new class of objects. In fact, add that to the use-case list above. Having one universal means of getting and setting object properties en masse is very helpful. And we've had it for more than a decade and a half. And we have it still, except for one new class of objects, widgets. If we extend this mechanism to include the data the engine already knows about properties, widgets will be elevated to first class objects like anything else. Isn't having widgets behave more like engine-native controls the reason we use them over compound groups? >- that is in fact done from property definition files. There are things > that are properties that you might not want to present in a property > inspector, and there are things that you might want to present in the > property inspector that are not strictly properties. Hence we maintain > these lists: > https://github.com/livecode/livecode-ide/tree/develop/Toolset/resources/supporting_files/property_definitions I'm familiar with the existing mechanisms, but help me understand: which scriptable properties would a widget have which would not be of interest to a scripter? > Because the 'classic controls' are somewhat multipurpose, the notion > of control type isn't fine-grained enough to use the properties > property for a good property inspector. Agreed. Another good argument for a property sheet, but that's for another thread. Either way, it's a settable value which can be scripted. Scripting them will be simpler and more enjoyable to write with one consistent mechanism for all object types. All I'm suggesting is that we remove a limitation that makes widgets second-class citizens in the LC object world. And since the information is already available, it would seem a relatively easy task, at least as far as powerful feature-completeness requests go, yes? -- 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 Feb 24 19:37:22 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Feb 2018 16:37:22 -0800 Subject: widget properties In-Reply-To: References: Message-ID: hh wrote: >> Richard G. wrote: >> What's missing is support for the universal method by which we can >> obtain property info, "the properties" function. > > In order to work with a widget you have to know what the single > properties do. That is true of all objects of all properties. > I can't see what should be the purpose of such a "full list". Consider the list I included in my reply to Ali, and spend some time experimenting. LC's associative arrays are very powerful and very flexible. With union and intersect, even more so. All sorts of rapid object styling, replication, serializing for transport, and so much more becomes trivial and fun. Sure, I could write my own functions to do this. And if I'm the only one who's interested it wouldn't take me long. But the ease and power of this way of working with "the properties" has become second nature to me because many years ago Kevin had the insight to request that array from the then-engine-maintainer. If he hadn't asked for that, I might still be stuck in the ancient xTalk way of doing these things, manually maintaining lists of properties and slavishly applying them one at a time in line after line of long blocks of code. So I'm good either way. I'm just thinking about the next generation of LiveCode scripters. If we abandon "the properties" as the universal array representation for all types, we either lose the value of that function by making it into a "sometimes" thing, or reduce the value of widgets by not treating them as "real" objects. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ahsoftware at sonic.net Sat Feb 24 19:49:20 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 24 Feb 2018 16:49:20 -0800 Subject: widget properties In-Reply-To: References: <1d15eaef-ccdf-fe5a-8bbb-e1778554d798@fourthworld.com> Message-ID: <882136a1-f395-d038-03e1-93b936a804a2@sonic.net> On 02/24/2018 03:08 PM, Ali Lloyd via use-livecode wrote: > The VCS-related use case for an expanded properties property still exists > though, as far as I can tell, although 'properties' is kind of a bad name > for it. Actually I think it might be better to add 'export' syntax for > classic controls. The nice thing about the export syntax is that you get > exactly the distinct pieces of information required to reconstruct the > widget (according to the widget author's implementation). It might actually > be a completely distinct representation of the widget state than that > provided by a list of properties and their values (although in practice, > it's usually a subset of the properties). I've always found the property lists in the engine clumsy and hard to maintain, in addition to them not being accessible outside the engine other than getting a subset through "the properties". It's actually very easy to reconstruct objects with a property list that may contain non-settable entries. I do this with preference files all the time to stay out of trouble... local tList -- contains the cr-separated properties as -- tPropertyNametValue local tObject -- the object whose properties we're setting local tProperty, tValue repeat for each line tLine in tList put item 1 of tLine into tProperty put item 2 of tLine into tValue try set the tProperty of tObject to tValue end try end repeat -- Mark Wieder ahsoftware at gmail.com From christer at mindcrea.com Sun Feb 25 04:49:18 2018 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Sun, 25 Feb 2018 11:49:18 +0200 Subject: High Sierra, LC & Xcode Message-ID: Any experience on the set of OS/X High Sierra, with the latest update patch, LiveCode 8.1.9 and Xcode 9.3 Beta? Shoul I revert to Sierra and Xcode previous versions? Actually, trying to adhere to the Apple requirement of having all apps to iPhone X, which then requested me to load the latest Xcode. With my 2010 MacBook Pro (High Sierra, LC 8.1.9, Xcode 9.3 Beta), with 8GB the simulator start takes well over 10 minutes - haven't bee able to get the test app to load into the simulator, yet. Still being fresh to iOS deployment, with a fully operational and tested app on Android devices, I just cannot find out a good guide whaat exact steps to take to get the process done. For example, do I have to load Xcode before trying to start the simulation from LC? How exactly should I do the app property provisioning; should I first define the app in Xcode (it let me try to create app related password, then spitted out its own, neither works to let me log in...)? Loading has now taken more than 20 minutes...the line clock still rotates... Christer Pyyhti? MindCrea Ltd christer at mindcrea.com From richmondmathewson at gmail.com Sun Feb 25 05:09:53 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 25 Feb 2018 12:09:53 +0200 Subject: send "keyUp" / "rawKeyUp" ? Message-ID: Erm . . . I want to set up a stack that will list an end-user's keyDowns by sending their system a set of rawKeyUps . . . PseudoCode: in a button: on mouseUp send "rawKeyDown" to key 113 end mouseUp in the cardScript: on rawKeyDown XX get keyUp XX put XX somewhere useful end rawKeyDown Richmond. From merakosp at gmail.com Sun Feb 25 06:00:11 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Sun, 25 Feb 2018 11:00:11 +0000 Subject: High Sierra, LC & Xcode In-Reply-To: References: Message-ID: Hi Christer, Xcode 9.3 is not supported yet (as it is still in beta). You have to download Xcode 9.2 to use with LC 8.1.9 in MacOS Sierra or High Sierra. Best, Panos -- On Sun, Feb 25, 2018 at 9:49 AM, Pyyhti? Christer via use-livecode < use-livecode at lists.runrev.com> wrote: > Any experience on the set of OS/X High Sierra, with the latest update > patch, LiveCode 8.1.9 and Xcode 9.3 Beta? > > Shoul I revert to Sierra and Xcode previous versions? Actually, trying to > adhere to the Apple requirement of having all apps to iPhone X, which then > requested me to load the latest Xcode. > > With my 2010 MacBook Pro (High Sierra, LC 8.1.9, Xcode 9.3 Beta), with 8GB > the simulator start takes well over 10 minutes - haven't bee able to get > the test app to load into the simulator, yet. > > Still being fresh to iOS deployment, with a fully operational and tested > app on Android devices, I just cannot find out a good guide whaat exact > steps to take to get the process done. For example, do I have to load > Xcode before trying to start the simulation from LC? How exactly should I > do the app property provisioning; should I first define the app in Xcode > (it let me try to create app related password, then spitted out its own, > neither works to let me log in...)? > > Loading has now taken more than 20 minutes...the line clock still > rotates... > > Christer Pyyhti? > MindCrea Ltd > christer at mindcrea.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 merakosp at gmail.com Sun Feb 25 06:03:28 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Sun, 25 Feb 2018 11:03:28 +0000 Subject: High Sierra, LC & Xcode In-Reply-To: References: Message-ID: Moreover, you'll have to start the simulator first *from Xcode*, then wait until it fully loads, and then use the LC Test button to send your app to the simulator. See this thread for more details: http://forums.livecode.com/viewtopic.php?f=49&t=30592 Best, Panos -- On Sun, Feb 25, 2018 at 11:00 AM, panagiotis merakos wrote: > Hi Christer, > > Xcode 9.3 is not supported yet (as it is still in beta). You have to > download Xcode 9.2 to use with LC 8.1.9 in MacOS Sierra or High Sierra. > > Best, > Panos > -- > > On Sun, Feb 25, 2018 at 9:49 AM, Pyyhti? Christer via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Any experience on the set of OS/X High Sierra, with the latest update >> patch, LiveCode 8.1.9 and Xcode 9.3 Beta? >> >> Shoul I revert to Sierra and Xcode previous versions? Actually, trying >> to adhere to the Apple requirement of having all apps to iPhone X, which >> then requested me to load the latest Xcode. >> >> With my 2010 MacBook Pro (High Sierra, LC 8.1.9, Xcode 9.3 Beta), with >> 8GB the simulator start takes well over 10 minutes - haven't bee able to >> get the test app to load into the simulator, yet. >> >> Still being fresh to iOS deployment, with a fully operational and tested >> app on Android devices, I just cannot find out a good guide whaat exact >> steps to take to get the process done. For example, do I have to load >> Xcode before trying to start the simulation from LC? How exactly should I >> do the app property provisioning; should I first define the app in Xcode >> (it let me try to create app related password, then spitted out its own, >> neither works to let me log in...)? >> >> Loading has now taken more than 20 minutes...the line clock still >> rotates... >> >> Christer Pyyhti? >> MindCrea Ltd >> christer at mindcrea.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 jbv at souslelogo.com Sun Feb 25 08:50:35 2018 From: jbv at souslelogo.com (jbv) Date: Sun, 25 Feb 2018 14:50:35 +0100 Subject: Question about the result Message-ID: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> Hi list According to LC dictionary, the result "Returns the status of the last command that was executed". But I had 2 unexpected experiences on my on-rev account recently : 1- a line such as put URL ("http://mydomain.com/index.php?" & it) into myVar never went through (because it was corrupted : contained some extra characters such as ascii 10), however the result remained empty. 2- when trying to create a zip archive revZipOpenArchive "home/myaccount/public_html/dir1/dir2/dir3", "write" the name of directory "dir2" had been changed and therefore "dir3" could not be found; however the result remained empty. I know that in the 2nd case I could use the sysError function, but according to the doc, the result shouldn't be empty anyway... So my question : am I expecting too much from the result, like containing some useful error message every time something doesn't work as expected ? Thanks in advance. jbv From bonnmike at gmail.com Sun Feb 25 09:13:25 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 25 Feb 2018 07:13:25 -0700 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: Message-ID: A quick example placed in the card script. local sKeysPushed --keys kept in this variable for the example on rawkeydown pkey if sKeysPushed is empty then put pkey into sKeysPushed else put comma & pkey after sKeysPushed end if -- You would want to remove this block of course, but for testing -- it lets you push the shift key to see whats been captured if the shiftkey is down then put sKeysPushed end if pass rawkeydown --pass the key end rawkeydown I know it was just pseudocode, but as far as I know you can't "send" a message to a key so.. If you want to be able to click a button to send a rawkeydown (rather than just typing them) you could use something like: on mouseup send "rawkeydown 110" to this card end mouseup or on mouseup displatch "rawkeydown" with (any item of "119,240,43") -- wrote: > Erm . . . > > I want to set up a stack that will list an end-user's keyDowns by sending > their system > a set of rawKeyUps . . . > > PseudoCode: > > in a button: > > on mouseUp > send "rawKeyDown" to key 113 > end mouseUp > > in the cardScript: > > on rawKeyDown XX > get keyUp XX > put XX somewhere useful > end rawKeyDown > > Richmond. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Feb 25 09:48:27 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 25 Feb 2018 07:48:27 -0700 Subject: Question about the result In-Reply-To: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> Message-ID: In the first case, I would check all 3 locations.. Since i'm assuming the first part of the url (yourdomain.com/index.php?) is correct, the put URL is most likely succeeding in connecting to the url, so you would need to look at the contents of myVar to see what if anything was actually returned. In a case where the url is actually able to be hit, 'the result' will be empty, but the value returned from the server may be invalid data. It still wouldn't hurt to look at "it" also, IIRC sometimes useful info will appear there. (though in this case, my guess is that garbled info is in myVar) Of course, if the url is invalid, then the result should tell you so. As for the second.. If I test from the message box, revzipopenarchive seems to do pretty much.. um.. Nothing. Doesn't open an archive, doesn't return an error message.. Nothing in it, or the result.. Weird. So I put code in a button and things behaved as expected. (when specifying a path with no permissions, the result told me so. Same with an invalid path. (this is on 9 dp 11) No clue why it won't work from the message box, or if its related to what happened on your end. On Sun, Feb 25, 2018 at 6:50 AM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi list > > According to LC dictionary, the result "Returns the status of the last > command that was executed". But I had 2 unexpected experiences on my > on-rev account recently : > 1- a line such as > put URL ("http://mydomain.com/index.php?" & it) into myVar > never went through (because it was corrupted : contained some extra > characters such as ascii 10), however the result remained empty. > > 2- when trying to create a zip archive > revZipOpenArchive "home/myaccount/public_html/dir1/dir2/dir3", "write" > the name of directory "dir2" had been changed and therefore "dir3" could > not be found; however the result remained empty. > > I know that in the 2nd case I could use the sysError function, but > according to the doc, the result shouldn't be empty anyway... > So my question : am I expecting too much from the result, like containing > some useful error message every time something doesn't work as expected ? > > Thanks in advance. > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 25 10:22:12 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 25 Feb 2018 17:22:12 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: Message-ID: <31d843b5-f0e0-9593-8fb5-ddd9a45da917@gmail.com> Either I did not explain things very well or you got hold of the wrong end of the stick (or, most probably a bit of both: probably the latter as a consequence of the former). Imagine, if you will, I need to know what an end-user's standard keyboard layout is. Let's call our theoretical end-user Farhad, and Iranian who uses an Iranian keyboard layout (something I don't know), and let's call our me Richmond owing to a slight lack of imagination on my part; and I use a US English keyboard layout, which I know, but isn't useful information under the circumstances. Now if I click on the key that yields a rawKey of 113 I get a "q". If Farhad clicks on the key that yields a rawKey of 113 he gets a "? And I am unable to type close-quotes there. So I should like to find a way to fake someone pressing down on a key on their home-computer to see what the keyUp result is. Now I realise I cannot SEND a command telling the key on the keyboard to do "a pianola" and depress itself (wouldn't that be fun?). It would, however, be groovy if one could work out Farhad's keys without having him to go "bash, bash" all the way along the rows of his keyboard. Richmond. On 25/2/2018 4:13 pm, Mike Bonner via use-livecode wrote: > A quick example placed in the card script. > > local sKeysPushed --keys kept in this variable for the example > > on rawkeydown pkey > if sKeysPushed is empty then > put pkey into sKeysPushed > else > put comma & pkey after sKeysPushed > end if > > -- You would want to remove this block of course, but for testing > -- it lets you push the shift key to see whats been captured > if the shiftkey is down then > put sKeysPushed > end if > > pass rawkeydown --pass the key > > end rawkeydown > > I know it was just pseudocode, but as far as I know you can't "send" a > message to a key so.. > If you want to be able to click a button to send a rawkeydown (rather than > just typing them) you could use something like: > > on mouseup > send "rawkeydown 110" to this card > end mouseup > > or > on mouseup > displatch "rawkeydown" with (any item of "119,240,43") -- random keys to send > end mouseup > > Now.. If you need to track keypresses while NOT actively using your > application, it requires a different method. You'd need to use a different > method. You would need to use a send loop and check the keysdown and build > up your keys list that way. Using this method would be problematic though, > for example.. A user holds a key down long enough for several loops to > happen, so the keysdown would show the key multiple times. Which might be > appropriate if autorepeat is being used, but then you have no idea how many > "repeats" there were because its based on the repeat rate. It would be > very difficult to have much accuracy using this method. (easiest might be > to check current keysdown against previous keysdown and only log if there > is a difference, then use your own noggin to realize that litle is little) > > > On Sun, Feb 25, 2018 at 3:09 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Erm . . . >> >> I want to set up a stack that will list an end-user's keyDowns by sending >> their system >> a set of rawKeyUps . . . >> >> PseudoCode: >> >> in a button: >> >> on mouseUp >> send "rawKeyDown" to key 113 >> end mouseUp >> >> in the cardScript: >> >> on rawKeyDown XX >> get keyUp XX >> put XX somewhere useful >> end rawKeyDown >> >> 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 jbv at souslelogo.com Sun Feb 25 10:26:49 2018 From: jbv at souslelogo.com (jbv) Date: Sun, 25 Feb 2018 16:26:49 +0100 Subject: Question about the result In-Reply-To: References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> Message-ID: Mike Thanks for your reply. Actually, in the 2 cases I mentioned, I was able to find the origin of the problem. The only point I was trying to make is that each time the result was of no help since it remained empty. On Sun, February 25, 2018 3:48 pm, Mike Bonner via use-livecode wrote: > In the first case, I would check all 3 locations.. Since i'm assuming the > first part of the url (yourdomain.com/index.php?) is correct, the put > URL > is most likely succeeding in connecting to the url, so you would need to > look at the contents of myVar to see what if anything was actually > returned. In a case where the url is actually able to be hit, 'the > result' will be empty, but the value returned from the server may be > invalid data. It still wouldn't hurt to look at "it" also, IIRC sometimes > useful info will appear there. (though in this case, my guess is that > garbled info is in myVar) Of course, if the url is invalid, then the > result should tell you so. > > As for the second.. If I test from the message box, revzipopenarchive > seems to do pretty much.. um.. Nothing. Doesn't open an archive, doesn't > return an error message.. Nothing in it, or the result.. Weird. So I put > code in a button and things behaved as expected. (when specifying a path > with no permissions, the result told me so. Same with an invalid path. > (this is > on 9 dp 11) > > No clue why it won't work from the message box, or if its related to what > happened on your end. > > On Sun, Feb 25, 2018 at 6:50 AM, jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi list >> >> >> According to LC dictionary, the result "Returns the status of the last >> command that was executed". But I had 2 unexpected experiences on my >> on-rev account recently : 1- a line such as >> put URL ("http://mydomain.com/index.php?" & it) into myVar never went >> through (because it was corrupted : contained some extra characters such >> as ascii 10), however the result remained empty. >> >> 2- when trying to create a zip archive >> revZipOpenArchive "home/myaccount/public_html/dir1/dir2/dir3", "write" >> the name of directory "dir2" had been changed and therefore "dir3" >> could not be found; however the result remained empty. >> >> I know that in the 2nd case I could use the sysError function, but >> according to the doc, the result shouldn't be empty anyway... So my >> question : am I expecting too much from the result, like containing some >> useful error message every time something doesn't work as expected ? >> >> Thanks in advance. >> jbv >> >> >> _______________________________________________ >> use-livecode mailing list use-livecode at lists.runrev.com Please visit this >> url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list use-livecode at lists.runrev.com Please visit this > url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From ali.lloyd at livecode.com Sun Feb 25 10:57:57 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sun, 25 Feb 2018 15:57:57 +0000 Subject: widget properties In-Reply-To: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> References: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> Message-ID: > > My interest this morning came from a property sheet I build some years > ago as an alternative to an inspector. There are many good reasons why > a property sheet is a much better fit for an IDE, but we can save that > for another thread. > > Another reason Kevin asked Scott Raney to add "the properties" as a > universal representation of object props back around '00 was for the > rapid things we can do for new object creation. > > As an array, the value lends itself particularly well for a wide range > of needs. > > For example, taking the delta between two objects gives you a great way > to concisely express what would be needed to reproduce one from the > other. Such conciseness is esp. useful in Internet applicationsL These seem to me to be perfect examples of why export to tVar would be useful to extend to all objects. > Another would be transferable styles. I can make a button or field how > I like it, and then store only the things I care about to represent that > "style". Later I can union that subset with "the properties" of another > object of that type and have them applied in one simple and highly > efficient move. > > There may be other reasons this was requested as a universal way of > representing object properties. That's just the short list of things > that come to mind off the top of my head right now. > > > It is not correct to say that the properties property is used to > > create the property inspector > > I don't know anyone who said that. But imagine how much simpler it > would be to make an Inspector if "the properties" were completed to > handle this new class of objects. > > You did, in your earlier email ;-) > Consider the LC IDE's Inspector: to populate its controls it obtains > "the properties" from all LC-native objects, and "the properties" + > widget-specific info from widgets. In fact, add that to the use-case list above. > > Having one universal means of getting and setting object properties en > masse is very helpful. > Unless you meant 'the properties' abstractly. If that's the case then there is such a function - it is in the IDE library and the IDE does use it on all object types to generate the property inspector. > And we've had it for more than a decade and a half. > > And we have it still, except for one new class of objects, widgets. > > If we extend this mechanism to include the data the engine already knows > about properties, widgets will be elevated to first class objects like > anything else. > > Isn't having widgets behave more like engine-native controls the reason > we use them over compound groups? > > I'm not trying to argue that we shouldn't extend the properties property - actually efficiency may indeed be one of the best reasons in terms of being able to set a bunch of properties in one go. I'm just trying to gather information to figure out the priority of such a thing. > >- that is in fact done from property definition files. There are things > > that are properties that you might not want to present in a property > > inspector, and there are things that you might want to present in the > > property inspector that are not strictly properties. Hence we maintain > > these lists: > > > > https://github.com/livecode/livecode-ide/tree/develop/Toolset/resources/supporting_files/property_definitions > > I'm familiar with the existing mechanisms, but help me understand: which > scriptable properties would a widget have which would not be of interest > to a scripter? > I didn't say they aren't of interest to the scripter, I said you might not want to present them in a property inspector. And it's not just widgets, all objects have properties that are not really relevant to the property inspector. Most obviously, the properties property. Others are, for example, the noncontiguousHilites of a standard text field, or the menuHistory of a default button. Many widgets have other properties that overlap, for example the itemArray of the navigation bar, which overlaps with (in fact subsumes) the itemLabels, itemIcons, itemSelectedIcons etc. See the navigation bar's itemArray editor in the PI - in my view this is much nicer than a set of fields. Another type would be transient properties of mobile native objects - eg the 'focused' property of the android native field which is not saved with the object. It is completely unuseful to set this property via PI in the IDE, but still needs to be a property so you can set it from script. As the existence of such properties is subject to the whims of the widget author, they could crop up anywhere, hence the desire to make the ones that *should* show up part of the metadata. > > Because the 'classic controls' are somewhat multipurpose, the notion > > of control type isn't fine-grained enough to use the properties > > property for a good property inspector. > > Agreed. Another good argument for a property sheet, but that's for > another thread. > I don't understand how that's an argument for a property sheet - surely that just means you get a property sheet where some of the things do nothing or something you didn't expect. But yes, that's for another thread. > Either way, it's a settable value which can be scripted. > > Scripting them will be simpler and more enjoyable to write with one > consistent mechanism for all object types. > > All I'm suggesting is that we remove a limitation that makes widgets > second-class citizens in the LC object world. > > And since the information is already available, it would seem a > relatively easy task, at least as far as powerful feature-completeness > requests go, yes? > > Again, I am not arguing that there shouldn't be a properties property extended to widgets. I see that efficiency and property sheets are reasonable use-cases for it. The trick is to ensure that the VCS use-case can be extricated. If we have export for all object types, there's no reason (other than backwards compatibility) that the properties property couldn't return the value of every single gettable property of an object type. I wonder if the properties of should actually be a function, to avoid there always being a property that (for obvious reasons) cannot be returned by a properties property. From bonnmike at gmail.com Sun Feb 25 11:26:19 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 25 Feb 2018 09:26:19 -0700 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: <31d843b5-f0e0-9593-8fb5-ddd9a45da917@gmail.com> References: <31d843b5-f0e0-9593-8fb5-ddd9a45da917@gmail.com> Message-ID: Hmm. On linux you might be able to use a shell command to get some info, though I don't know enough about theh output to be much help. the command xkbcom :0 - dumps a truckload of info, might be useful for your task. I'm guessing there is a way to do this on macos too but I don't currently have access to a mac. Unsure about how to go about it on windows. For example, on my system one of the first lines contains qwerty as part of the line. The only issue with this, is that custom mapings are possible, though it looks like the aliases are part of the information. I've seen operating systems do the "press the key to the right of the left shift key.." sequence to determine base layout (which again, wouldn't cover every base if the user has changed the keyboard map, so you might need to have them press every key... xkbcom might get around that if you can figure out enough to interpret the results) On Sun, Feb 25, 2018 at 8:22 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > Either I did not explain things very well or you got hold of the wrong end > of the stick > (or, most probably a bit of both: probably the latter as a consequence of > the former). > > Imagine, if you will, I need to know what an end-user's standard keyboard > layout is. > Let's call our theoretical end-user Farhad, and Iranian who uses an > Iranian keyboard layout > (something I don't know), and let's call our me Richmond owing to a slight > lack of imagination > on my part; and I use a US English keyboard layout, which I know, but > isn't useful information > under the circumstances. > > Now if I click on the key that yields a rawKey of 113 I get a "q". > > If Farhad clicks on the key that yields a rawKey of 113 he gets a "? > > And I am unable to type close-quotes there. > > So I should like to find a way to fake someone pressing down on a key on > their home-computer > to see what the keyUp result is. > > Now I realise I cannot SEND a command telling the key on the keyboard to do > "a pianola" and depress itself (wouldn't that be fun?). > > It would, however, be groovy if one could work out Farhad's keys without > having him to > go "bash, bash" all the way along the rows of his keyboard. > > Richmond. > > > > On 25/2/2018 4:13 pm, Mike Bonner via use-livecode wrote: > >> A quick example placed in the card script. >> >> local sKeysPushed --keys kept in this variable for the example >> >> on rawkeydown pkey >> if sKeysPushed is empty then >> put pkey into sKeysPushed >> else >> put comma & pkey after sKeysPushed >> end if >> >> -- You would want to remove this block of course, but for testing >> -- it lets you push the shift key to see whats been captured >> if the shiftkey is down then >> put sKeysPushed >> end if >> >> pass rawkeydown --pass the key >> >> end rawkeydown >> >> I know it was just pseudocode, but as far as I know you can't "send" a >> message to a key so.. >> If you want to be able to click a button to send a rawkeydown (rather than >> just typing them) you could use something like: >> >> on mouseup >> send "rawkeydown 110" to this card >> end mouseup >> >> or >> on mouseup >> displatch "rawkeydown" with (any item of "119,240,43") --> random keys to send >> end mouseup >> >> Now.. If you need to track keypresses while NOT actively using your >> application, it requires a different method. You'd need to use a >> different >> method. You would need to use a send loop and check the keysdown and >> build >> up your keys list that way. Using this method would be problematic >> though, >> for example.. A user holds a key down long enough for several loops to >> happen, so the keysdown would show the key multiple times. Which might be >> appropriate if autorepeat is being used, but then you have no idea how >> many >> "repeats" there were because its based on the repeat rate. It would be >> very difficult to have much accuracy using this method. (easiest might be >> to check current keysdown against previous keysdown and only log if there >> is a difference, then use your own noggin to realize that litle is little) >> >> >> On Sun, Feb 25, 2018 at 3:09 AM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Erm . . . >>> >>> I want to set up a stack that will list an end-user's keyDowns by sending >>> their system >>> a set of rawKeyUps . . . >>> >>> PseudoCode: >>> >>> in a button: >>> >>> on mouseUp >>> send "rawKeyDown" to key 113 >>> end mouseUp >>> >>> in the cardScript: >>> >>> on rawKeyDown XX >>> get keyUp XX >>> put XX somewhere useful >>> end rawKeyDown >>> >>> Richmond. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Feb 25 11:36:20 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 25 Feb 2018 09:36:20 -0700 Subject: Question about the result In-Reply-To: References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> Message-ID: Ah, well the only useful part of my answer then would regard the first issue. The result remaining empty was the correct response because the base url was valid, so the command didn't fail to connect to the url, and no 404 type or other type errors were returned as part of the headers. As for the other part, if anyone can educate me.. Why doesn't revzipopenarchive work from the message box (at all) but works fine in a script. Rather frustrating to test something in the msg box and have it misbehave simply because its coming from the msg box. On Sun, Feb 25, 2018 at 8:26 AM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike > Thanks for your reply. > Actually, in the 2 cases I mentioned, I was able to find the origin of the > problem. > The only point I was trying to make is that each time the result was of no > help since it remained empty. > > On Sun, February 25, 2018 3:48 pm, Mike Bonner via use-livecode wrote: > > In the first case, I would check all 3 locations.. Since i'm assuming the > > first part of the url (yourdomain.com/index.php?) is correct, the put > > URL > > is most likely succeeding in connecting to the url, so you would need to > > look at the contents of myVar to see what if anything was actually > > returned. In a case where the url is actually able to be hit, 'the > > result' will be empty, but the value returned from the server may be > > invalid data. It still wouldn't hurt to look at "it" also, IIRC sometimes > > useful info will appear there. (though in this case, my guess is that > > garbled info is in myVar) Of course, if the url is invalid, then the > > result should tell you so. > > > > As for the second.. If I test from the message box, revzipopenarchive > > seems to do pretty much.. um.. Nothing. Doesn't open an archive, doesn't > > return an error message.. Nothing in it, or the result.. Weird. So I put > > code in a button and things behaved as expected. (when specifying a path > > with no permissions, the result told me so. Same with an invalid path. > > (this is > > on 9 dp 11) > > > > No clue why it won't work from the message box, or if its related to what > > happened on your end. > > > > On Sun, Feb 25, 2018 at 6:50 AM, jbv via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi list > >> > >> > >> According to LC dictionary, the result "Returns the status of the last > >> command that was executed". But I had 2 unexpected experiences on my > >> on-rev account recently : 1- a line such as > >> put URL ("http://mydomain.com/index.php?" & it) into myVar never went > >> through (because it was corrupted : contained some extra characters such > >> as ascii 10), however the result remained empty. > >> > >> 2- when trying to create a zip archive > >> revZipOpenArchive "home/myaccount/public_html/dir1/dir2/dir3", "write" > >> the name of directory "dir2" had been changed and therefore "dir3" > >> could not be found; however the result remained empty. > >> > >> I know that in the 2nd case I could use the sysError function, but > >> according to the doc, the result shouldn't be empty anyway... So my > >> question : am I expecting too much from the result, like containing some > >> useful error message every time something doesn't work as expected ? > >> > >> Thanks in advance. > >> jbv > >> > >> > >> _______________________________________________ > >> use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > >> url to subscribe, unsubscribe and manage your subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > > _______________________________________________ > > use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > > url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 25 11:57:19 2018 From: jbv at souslelogo.com (jbv) Date: Sun, 25 Feb 2018 17:57:19 +0100 Subject: Question about the result In-Reply-To: References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> Message-ID: <7aac58d9dd56e4a669010fbabade928b.squirrel@sage.on-rev.com> On Sun, February 25, 2018 5:36 pm, Mike Bonner via use-livecode wrote: > Ah, well the only useful part of my answer then would regard the first > issue. The result remaining empty was the correct response because the > base url was valid, so the command didn't fail to connect to the url, and > no 404 type or other type errors were returned as part of the headers. > Actually, when I wrote "never went through", that's exactly what happened : the request never went through, the server never received that request and therefore never returned anything. And even more surprising, the line put URL ("http://mydomain.com/index.php?" & it) into myVar didn't block the execution of the script and the following lines were executed, and myVar was empty. That's the reason why I was surprised to see that the result was empty as well; I would expect something like "data corrupted" or "impossible to send request"... And also to have the script blocked by that line... From bonnmike at gmail.com Sun Feb 25 12:20:57 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 25 Feb 2018 10:20:57 -0700 Subject: Question about the result In-Reply-To: <7aac58d9dd56e4a669010fbabade928b.squirrel@sage.on-rev.com> References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> <7aac58d9dd56e4a669010fbabade928b.squirrel@sage.on-rev.com> Message-ID: That is rather strange. Most of the time LC is exactly what I expect, but then there are those head scratcher issues that keep me flummoxed. <-- (word of the day) On Sun, Feb 25, 2018 at 9:57 AM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > On Sun, February 25, 2018 5:36 pm, Mike Bonner via use-livecode wrote: > > Ah, well the only useful part of my answer then would regard the first > > issue. The result remaining empty was the correct response because the > > base url was valid, so the command didn't fail to connect to the url, and > > no 404 type or other type errors were returned as part of the headers. > > > > Actually, when I wrote "never went through", that's exactly what happened : > the request never went through, the server never received that request and > therefore never returned anything. And even more surprising, the line > put URL ("http://mydomain.com/index.php?" & it) into myVar > didn't block the execution of the script and the following lines were > executed, > and myVar was empty. > > That's the reason why I was surprised to see that the result was empty as > well; > I would expect something like "data corrupted" or "impossible to send > request"... > And also to have the script blocked by that line... > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 25 12:33:34 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 25 Feb 2018 09:33:34 -0800 Subject: widget properties In-Reply-To: References: Message-ID: <80a9f57d-7d24-64ce-1d76-5a9528c30d90@fourthworld.com> Ali Lloyd wrote: > Richard wrote: >> For example, taking the delta between two objects gives you a great >> way to concisely express what would be needed to reproduce one from >> the other. Such conciseness is esp. useful in Internet applicationsL > > These seem to me to be perfect examples of why export to tVar > would be useful to extend to all objects. Whether we use what we've been using for all types, or add all types to the newer currently-widget-specific syntax, is fine by me. It's encouraging that you share an interest in this. Whatever syntax you prefer would be fine by me. >> > It is not correct to say that the properties property is used to >> > create the property inspector >> >> I don't know anyone who said that. But imagine how much simpler it >> would be to make an Inspector if "the properties" were completed to >> handle this new class of objects. >> > You did, in your earlier email ;-) If I did say that it does rather than that it could, I'll trust your memory on that. I have been prone to optimism. In the conversation we're having I didn't, because I've recently poked around in the IDE enough to have a sense of how the Inspector works. Chipp, Geoff, Ken, Pete, I, and others use "the properties" for our respective prop viewing/editing tools. This may be why revNavigator's prop sheet doesn't support widgets; Chipp's doesn't either, and discovering that my own doesn't is what prompted this thread. > Unless you meant 'the properties' abstractly. If that's the case then > there is such a function - it is in the IDE library and the IDE does > use it on all object types to generate the property inspector. Yes, as I wrote to hh yesterday this isn't a show-stopper by any means. LC is a very flexible language, and there's little we can't script. My request here to treat widgets like first-class objects using the same long-standing mechanism we enjoy for all other objects is more akin to the recent extension of the "files" and "folders" functions: It never killed any of us to have to write our own custom functions to get the working directory, change to the one we're interested in, get the files/folders, and restore the working directory to what it was, and then return the list. But it's oh so very convenient to have that functionality built into the engine now. Same with obtaining a prop array: those of us who make good use of "the properties" won't fall over dead if we have to add additional code to support one newer object class. It would just be oh so very convenient to have that built into the engine. If it were, all tools and libraries written to use "the properties" would work for widgets as well. As it is, widgets are unsupported by all of them, until every author gets around to adding the additional code needed for that one object type. For those invested in promoting widget adoption, the choice would seem clear. > I'm not trying to argue that we shouldn't extend the properties > property - actually efficiency may indeed be one of the best reasons > in terms of being able to set a bunch of properties in one go. I'm > just trying to gather information to figure out the priority of such > a thing. Your interest is much appreciated. >> I'm familiar with the existing mechanisms, but help me understand: >> which scriptable properties would a widget have which would not be of >> interest to a scripter? > > I didn't say they aren't of interest to the scripter, I said you might > not want to present them in a property inspector. And it's not just > widgets, all objects have properties that are not really relevant to > the property inspector. Most obviously, the properties property. Of course (though it does conjure amusing ideas of recursion; "It's properties all the way down" ). And the script property as well, handled separately given its special role. I'm fine with continuing that. > Others are, for example, the noncontiguousHilites of a standard text > field, or the menuHistory of a default button. Many widgets have other > properties that overlap, for example the itemArray of the navigation > bar, which overlaps with (in fact subsumes) the itemLabels, itemIcons, > itemSelectedIcons etc. Thank you, those are very good examples. The completeness of "the properties" does not oblige any toolmaker to present information in ways that aren't useful. > Again, I am not arguing that there shouldn't be a properties property > extended to widgets. I see that efficiency and property sheets are > reasonable use-cases for it. The trick is to ensure that the VCS > use-case can be extricated. If we have export for all object types, > there's no reason (other than backwards compatibility) that the > properties property couldn't return the value of every single gettable > property of an object type. > > I wonder if the properties of should actually be a function, to > avoid there always being a property that (for obvious reasons) cannot > be returned by a properties property. For me personally, it doesn't matter much if we use what we've been using or use something new. But anyone invested in promoting widgets may want to give weight to existing syntax, to allow existing tools and libraries to support widgets immediately. There's always a more perfect way to do anything. But as they say, perfect is the enemy of results. On this, as someone who would like to see widgets thrive, I would favor anything that offers even just incremental advantage, making the most of every opportunity to promote widgets as viable first-class objects. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Sun Feb 25 12:38:27 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 25 Feb 2018 10:38:27 -0700 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: <31d843b5-f0e0-9593-8fb5-ddd9a45da917@gmail.com> Message-ID: Just realized, if all you need to know (On linux) is the basic keyboard information, you can likely do this.. put url "file:/etc/default/keyboard" into and then parse it. Mine contains KBMODEL="pc105" KBLAYOUT="us" KBVARIANT="" KBOPTIONS="" BACKSPACE="guess" On windows, if the system has powershell (uncertain as to versions?) you might be able to get useful information set the hideconsolewindows to true set the shellcommand to "powershell" get shell("(Get-Culture).keyboardLayoutID") This will put a number into "it" in my case, 1033. Looking at this page.. https://www.science.co.il/language/Locale-codes.php shows that 1033 is en_us. Alternatively, also with powershell set the hideconsolewindows to true set the shellcommand to "powershell" get shell("Get--WinUserLanguageList") At which point IT contains something like.. *LanguageTag : en-US* *Autonym : English (United States)* *EnglishName : English* *LocalizedName : English (United States)* *ScriptName : Latin script* *InputMethodTips : {0409:00000409}* *Spellchecking : True* *Handwriting : False* The number for InputMethodTips means qwerty us, and is in the registry key (for me) The registry key: HKEY_CURRENT_USER\Keyboard Layout\Preload\1 contains the same 0409 number so perhaps queryRegister could be used to grab that. If the user is using a different preferred layout (overriding normal mapping,) it might show in HKEY_CURRENT_USER\Keyboard Layout\Substitutes\1 For example, looking at the number 00010409 denotes 409 english us keyboard layout overridden to be a dvorak layout. After all this, i'm thinking that having the user do a nice keyboard faceroll might still be the easiest solution. On Sun, Feb 25, 2018 at 9:26 AM, Mike Bonner wrote: > Hmm. On linux you might be able to use a shell command to get some info, > though I don't know enough about theh output to be much help. > > the command xkbcom :0 - dumps a truckload of info, might be useful for > your task. > I'm guessing there is a way to do this on macos too but I don't currently > have access to a mac. > Unsure about how to go about it on windows. > > For example, on my system one of the first lines contains qwerty as part > of the line. The only issue with this, is that custom mapings are > possible, though it looks like the aliases are part of the information. > > I've seen operating systems do the "press the key to the right of the left > shift key.." sequence to determine base layout (which again, wouldn't cover > every base if the user has changed the keyboard map, so you might need to > have them press every key... xkbcom might get around that if you can > figure out enough to interpret the results) > > > > On Sun, Feb 25, 2018 at 8:22 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Either I did not explain things very well or you got hold of the wrong >> end of the stick >> (or, most probably a bit of both: probably the latter as a consequence of >> the former). >> >> Imagine, if you will, I need to know what an end-user's standard keyboard >> layout is. >> Let's call our theoretical end-user Farhad, and Iranian who uses an >> Iranian keyboard layout >> (something I don't know), and let's call our me Richmond owing to a >> slight lack of imagination >> on my part; and I use a US English keyboard layout, which I know, but >> isn't useful information >> under the circumstances. >> >> Now if I click on the key that yields a rawKey of 113 I get a "q". >> >> If Farhad clicks on the key that yields a rawKey of 113 he gets a "? >> >> And I am unable to type close-quotes there. >> >> So I should like to find a way to fake someone pressing down on a key on >> their home-computer >> to see what the keyUp result is. >> >> Now I realise I cannot SEND a command telling the key on the keyboard to >> do >> "a pianola" and depress itself (wouldn't that be fun?). >> >> It would, however, be groovy if one could work out Farhad's keys without >> having him to >> go "bash, bash" all the way along the rows of his keyboard. >> >> Richmond. >> >> >> >> On 25/2/2018 4:13 pm, Mike Bonner via use-livecode wrote: >> >>> A quick example placed in the card script. >>> >>> local sKeysPushed --keys kept in this variable for the example >>> >>> on rawkeydown pkey >>> if sKeysPushed is empty then >>> put pkey into sKeysPushed >>> else >>> put comma & pkey after sKeysPushed >>> end if >>> >>> -- You would want to remove this block of course, but for testing >>> -- it lets you push the shift key to see whats been captured >>> if the shiftkey is down then >>> put sKeysPushed >>> end if >>> >>> pass rawkeydown --pass the key >>> >>> end rawkeydown >>> >>> I know it was just pseudocode, but as far as I know you can't "send" a >>> message to a key so.. >>> If you want to be able to click a button to send a rawkeydown (rather >>> than >>> just typing them) you could use something like: >>> >>> on mouseup >>> send "rawkeydown 110" to this card >>> end mouseup >>> >>> or >>> on mouseup >>> displatch "rawkeydown" with (any item of "119,240,43") -->> random keys to send >>> end mouseup >>> >>> Now.. If you need to track keypresses while NOT actively using your >>> application, it requires a different method. You'd need to use a >>> different >>> method. You would need to use a send loop and check the keysdown and >>> build >>> up your keys list that way. Using this method would be problematic >>> though, >>> for example.. A user holds a key down long enough for several loops to >>> happen, so the keysdown would show the key multiple times. Which might >>> be >>> appropriate if autorepeat is being used, but then you have no idea how >>> many >>> "repeats" there were because its based on the repeat rate. It would be >>> very difficult to have much accuracy using this method. (easiest might >>> be >>> to check current keysdown against previous keysdown and only log if there >>> is a difference, then use your own noggin to realize that litle is >>> little) >>> >>> >>> On Sun, Feb 25, 2018 at 3:09 AM, Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Erm . . . >>>> >>>> I want to set up a stack that will list an end-user's keyDowns by >>>> sending >>>> their system >>>> a set of rawKeyUps . . . >>>> >>>> PseudoCode: >>>> >>>> in a button: >>>> >>>> on mouseUp >>>> send "rawKeyDown" to key 113 >>>> end mouseUp >>>> >>>> in the cardScript: >>>> >>>> on rawKeyDown XX >>>> get keyUp XX >>>> put XX somewhere useful >>>> end rawKeyDown >>>> >>>> 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 richmondmathewson at gmail.com Sun Feb 25 13:06:05 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 25 Feb 2018 20:06:05 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: <31d843b5-f0e0-9593-8fb5-ddd9a45da917@gmail.com> Message-ID: <6d99dec8-dc91-9faf-3eb3-49df9c08b7e6@gmail.com> That's great, but I'm currently working on a Macintosh. Richmond. On 25/2/2018 7:38 pm, Mike Bonner via use-livecode wrote: > Just realized, if all you need to know (On linux) is the basic keyboard > information, you can likely do this.. > > put url "file:/etc/default/keyboard" into > and then parse it. Mine contains > KBMODEL="pc105" > KBLAYOUT="us" > KBVARIANT="" > KBOPTIONS="" > BACKSPACE="guess" > > On windows, if the system has powershell (uncertain as to versions?) you > might be able to get useful information > > set the hideconsolewindows to true > set the shellcommand to "powershell" > get shell("(Get-Culture).keyboardLayoutID") > > This will put a number into "it" in my case, 1033. > Looking at this page.. https://www.science.co.il/language/Locale-codes.php > shows that 1033 is en_us. > > Alternatively, also with powershell > > set the hideconsolewindows to true > set the shellcommand to "powershell" > get shell("Get--WinUserLanguageList") > > At which point IT contains something like.. > *LanguageTag : en-US* > *Autonym : English (United States)* > *EnglishName : English* > *LocalizedName : English (United States)* > *ScriptName : Latin script* > *InputMethodTips : {0409:00000409}* > *Spellchecking : True* > *Handwriting : False* > > The number for InputMethodTips means qwerty us, and is in the registry key > (for me) > The registry key: HKEY_CURRENT_USER\Keyboard Layout\Preload\1 > contains the same 0409 number so perhaps queryRegister could be used to > grab that. > > If the user is using a different preferred layout (overriding normal > mapping,) it might show in > HKEY_CURRENT_USER\Keyboard Layout\Substitutes\1 > For example, looking at the number 00010409 denotes 409 english us keyboard > layout overridden to be a dvorak layout. > > After all this, i'm thinking that having the user do a nice keyboard > faceroll might still be the easiest solution. > > On Sun, Feb 25, 2018 at 9:26 AM, Mike Bonner wrote: > >> Hmm. On linux you might be able to use a shell command to get some info, >> though I don't know enough about theh output to be much help. >> >> the command xkbcom :0 - dumps a truckload of info, might be useful for >> your task. >> I'm guessing there is a way to do this on macos too but I don't currently >> have access to a mac. >> Unsure about how to go about it on windows. >> >> For example, on my system one of the first lines contains qwerty as part >> of the line. The only issue with this, is that custom mapings are >> possible, though it looks like the aliases are part of the information. >> >> I've seen operating systems do the "press the key to the right of the left >> shift key.." sequence to determine base layout (which again, wouldn't cover >> every base if the user has changed the keyboard map, so you might need to >> have them press every key... xkbcom might get around that if you can >> figure out enough to interpret the results) >> >> >> >> On Sun, Feb 25, 2018 at 8:22 AM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Either I did not explain things very well or you got hold of the wrong >>> end of the stick >>> (or, most probably a bit of both: probably the latter as a consequence of >>> the former). >>> >>> Imagine, if you will, I need to know what an end-user's standard keyboard >>> layout is. >>> Let's call our theoretical end-user Farhad, and Iranian who uses an >>> Iranian keyboard layout >>> (something I don't know), and let's call our me Richmond owing to a >>> slight lack of imagination >>> on my part; and I use a US English keyboard layout, which I know, but >>> isn't useful information >>> under the circumstances. >>> >>> Now if I click on the key that yields a rawKey of 113 I get a "q". >>> >>> If Farhad clicks on the key that yields a rawKey of 113 he gets a "? >>> >>> And I am unable to type close-quotes there. >>> >>> So I should like to find a way to fake someone pressing down on a key on >>> their home-computer >>> to see what the keyUp result is. >>> >>> Now I realise I cannot SEND a command telling the key on the keyboard to >>> do >>> "a pianola" and depress itself (wouldn't that be fun?). >>> >>> It would, however, be groovy if one could work out Farhad's keys without >>> having him to >>> go "bash, bash" all the way along the rows of his keyboard. >>> >>> Richmond. >>> >>> >>> >>> On 25/2/2018 4:13 pm, Mike Bonner via use-livecode wrote: >>> >>>> A quick example placed in the card script. >>>> >>>> local sKeysPushed --keys kept in this variable for the example >>>> >>>> on rawkeydown pkey >>>> if sKeysPushed is empty then >>>> put pkey into sKeysPushed >>>> else >>>> put comma & pkey after sKeysPushed >>>> end if >>>> >>>> -- You would want to remove this block of course, but for testing >>>> -- it lets you push the shift key to see whats been captured >>>> if the shiftkey is down then >>>> put sKeysPushed >>>> end if >>>> >>>> pass rawkeydown --pass the key >>>> >>>> end rawkeydown >>>> >>>> I know it was just pseudocode, but as far as I know you can't "send" a >>>> message to a key so.. >>>> If you want to be able to click a button to send a rawkeydown (rather >>>> than >>>> just typing them) you could use something like: >>>> >>>> on mouseup >>>> send "rawkeydown 110" to this card >>>> end mouseup >>>> >>>> or >>>> on mouseup >>>> displatch "rawkeydown" with (any item of "119,240,43") -->>> random keys to send >>>> end mouseup >>>> >>>> Now.. If you need to track keypresses while NOT actively using your >>>> application, it requires a different method. You'd need to use a >>>> different >>>> method. You would need to use a send loop and check the keysdown and >>>> build >>>> up your keys list that way. Using this method would be problematic >>>> though, >>>> for example.. A user holds a key down long enough for several loops to >>>> happen, so the keysdown would show the key multiple times. Which might >>>> be >>>> appropriate if autorepeat is being used, but then you have no idea how >>>> many >>>> "repeats" there were because its based on the repeat rate. It would be >>>> very difficult to have much accuracy using this method. (easiest might >>>> be >>>> to check current keysdown against previous keysdown and only log if there >>>> is a difference, then use your own noggin to realize that litle is >>>> little) >>>> >>>> >>>> On Sun, Feb 25, 2018 at 3:09 AM, Richmond Mathewson via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Erm . . . >>>>> I want to set up a stack that will list an end-user's keyDowns by >>>>> sending >>>>> their system >>>>> a set of rawKeyUps . . . >>>>> >>>>> PseudoCode: >>>>> >>>>> in a button: >>>>> >>>>> on mouseUp >>>>> send "rawKeyDown" to key 113 >>>>> end mouseUp >>>>> >>>>> in the cardScript: >>>>> >>>>> on rawKeyDown XX >>>>> get keyUp XX >>>>> put XX somewhere useful >>>>> end rawKeyDown >>>>> >>>>> 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 Sun Feb 25 13:32:14 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 25 Feb 2018 11:32:14 -0700 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: <6d99dec8-dc91-9faf-3eb3-49df9c08b7e6@gmail.com> References: <31d843b5-f0e0-9593-8fb5-ddd9a45da917@gmail.com> <6d99dec8-dc91-9faf-3eb3-49df9c08b7e6@gmail.com> Message-ID: My apologies. I assumed you knew how the keyboard was laid out on your mac. For other peoples macs, you might read this page. https://stackoverflow.com/questions/21597804/determine-os-x-keyboard-layout-input-source-in-the-terminal-a-script . (goes off to napland) On Sun, Feb 25, 2018 at 11:06 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > That's great, but I'm currently working on a Macintosh. > > Richmond. > > On 25/2/2018 7:38 pm, Mike Bonner via use-livecode wrote: > >> Just realized, if all you need to know (On linux) is the basic keyboard >> information, you can likely do this.. >> >> put url "file:/etc/default/keyboard" into >> and then parse it. Mine contains >> KBMODEL="pc105" >> KBLAYOUT="us" >> KBVARIANT="" >> KBOPTIONS="" >> BACKSPACE="guess" >> >> On windows, if the system has powershell (uncertain as to versions?) you >> might be able to get useful information >> >> set the hideconsolewindows to true >> set the shellcommand to "powershell" >> get shell("(Get-Culture).keyboardLayoutID") >> >> This will put a number into "it" in my case, 1033. >> Looking at this page.. https://www.science.co.il/lang >> uage/Locale-codes.php >> shows that 1033 is en_us. >> >> Alternatively, also with powershell >> >> set the hideconsolewindows to true >> set the shellcommand to "powershell" >> get shell("Get--WinUserLanguageList") >> >> At which point IT contains something like.. >> *LanguageTag : en-US* >> *Autonym : English (United States)* >> *EnglishName : English* >> *LocalizedName : English (United States)* >> *ScriptName : Latin script* >> *InputMethodTips : {0409:00000409}* >> *Spellchecking : True* >> *Handwriting : False* >> >> >> The number for InputMethodTips means qwerty us, and is in the registry key >> (for me) >> The registry key: HKEY_CURRENT_USER\Keyboard Layout\Preload\1 >> contains the same 0409 number so perhaps queryRegister could be used to >> grab that. >> >> If the user is using a different preferred layout (overriding normal >> mapping,) it might show in >> HKEY_CURRENT_USER\Keyboard Layout\Substitutes\1 >> For example, looking at the number 00010409 denotes 409 english us >> keyboard >> layout overridden to be a dvorak layout. >> >> After all this, i'm thinking that having the user do a nice keyboard >> faceroll might still be the easiest solution. >> >> On Sun, Feb 25, 2018 at 9:26 AM, Mike Bonner wrote: >> >> Hmm. On linux you might be able to use a shell command to get some info, >>> though I don't know enough about theh output to be much help. >>> >>> the command xkbcom :0 - dumps a truckload of info, might be useful for >>> your task. >>> I'm guessing there is a way to do this on macos too but I don't currently >>> have access to a mac. >>> Unsure about how to go about it on windows. >>> >>> For example, on my system one of the first lines contains qwerty as part >>> of the line. The only issue with this, is that custom mapings are >>> possible, though it looks like the aliases are part of the information. >>> >>> I've seen operating systems do the "press the key to the right of the >>> left >>> shift key.." sequence to determine base layout (which again, wouldn't >>> cover >>> every base if the user has changed the keyboard map, so you might need to >>> have them press every key... xkbcom might get around that if you can >>> figure out enough to interpret the results) >>> >>> >>> >>> On Sun, Feb 25, 2018 at 8:22 AM, Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Either I did not explain things very well or you got hold of the wrong >>>> end of the stick >>>> (or, most probably a bit of both: probably the latter as a consequence >>>> of >>>> the former). >>>> >>>> Imagine, if you will, I need to know what an end-user's standard >>>> keyboard >>>> layout is. >>>> Let's call our theoretical end-user Farhad, and Iranian who uses an >>>> Iranian keyboard layout >>>> (something I don't know), and let's call our me Richmond owing to a >>>> slight lack of imagination >>>> on my part; and I use a US English keyboard layout, which I know, but >>>> isn't useful information >>>> under the circumstances. >>>> >>>> Now if I click on the key that yields a rawKey of 113 I get a "q". >>>> >>>> If Farhad clicks on the key that yields a rawKey of 113 he gets a "? >>>> >>>> And I am unable to type close-quotes there. >>>> >>>> So I should like to find a way to fake someone pressing down on a key on >>>> their home-computer >>>> to see what the keyUp result is. >>>> >>>> Now I realise I cannot SEND a command telling the key on the keyboard to >>>> do >>>> "a pianola" and depress itself (wouldn't that be fun?). >>>> >>>> It would, however, be groovy if one could work out Farhad's keys without >>>> having him to >>>> go "bash, bash" all the way along the rows of his keyboard. >>>> >>>> Richmond. >>>> >>>> >>>> >>>> On 25/2/2018 4:13 pm, Mike Bonner via use-livecode wrote: >>>> >>>> A quick example placed in the card script. >>>>> >>>>> local sKeysPushed --keys kept in this variable for the example >>>>> >>>>> on rawkeydown pkey >>>>> if sKeysPushed is empty then >>>>> put pkey into sKeysPushed >>>>> else >>>>> put comma & pkey after sKeysPushed >>>>> end if >>>>> >>>>> -- You would want to remove this block of course, but for testing >>>>> -- it lets you push the shift key to see whats been captured >>>>> if the shiftkey is down then >>>>> put sKeysPushed >>>>> end if >>>>> >>>>> pass rawkeydown --pass the key >>>>> >>>>> end rawkeydown >>>>> >>>>> I know it was just pseudocode, but as far as I know you can't "send" a >>>>> message to a key so.. >>>>> If you want to be able to click a button to send a rawkeydown (rather >>>>> than >>>>> just typing them) you could use something like: >>>>> >>>>> on mouseup >>>>> send "rawkeydown 110" to this card >>>>> end mouseup >>>>> >>>>> or >>>>> on mouseup >>>>> displatch "rawkeydown" with (any item of "119,240,43") -->>>> of >>>>> random keys to send >>>>> end mouseup >>>>> >>>>> Now.. If you need to track keypresses while NOT actively using your >>>>> application, it requires a different method. You'd need to use a >>>>> different >>>>> method. You would need to use a send loop and check the keysdown and >>>>> build >>>>> up your keys list that way. Using this method would be problematic >>>>> though, >>>>> for example.. A user holds a key down long enough for several loops to >>>>> happen, so the keysdown would show the key multiple times. Which might >>>>> be >>>>> appropriate if autorepeat is being used, but then you have no idea how >>>>> many >>>>> "repeats" there were because its based on the repeat rate. It would be >>>>> very difficult to have much accuracy using this method. (easiest might >>>>> be >>>>> to check current keysdown against previous keysdown and only log if >>>>> there >>>>> is a difference, then use your own noggin to realize that litle is >>>>> little) >>>>> >>>>> >>>>> On Sun, Feb 25, 2018 at 3:09 AM, Richmond Mathewson via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Erm . . . >>>>> >>>>>> I want to set up a stack that will list an end-user's keyDowns by >>>>>> sending >>>>>> their system >>>>>> a set of rawKeyUps . . . >>>>>> >>>>>> PseudoCode: >>>>>> >>>>>> in a button: >>>>>> >>>>>> on mouseUp >>>>>> send "rawKeyDown" to key 113 >>>>>> end mouseUp >>>>>> >>>>>> in the cardScript: >>>>>> >>>>>> on rawKeyDown XX >>>>>> get keyUp XX >>>>>> put XX somewhere useful >>>>>> end rawKeyDown >>>>>> >>>>>> 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 paul at researchware.com Sun Feb 25 13:44:51 2018 From: paul at researchware.com (Paul Dupuis) Date: Sun, 25 Feb 2018 13:44:51 -0500 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: Message-ID: <7d9217f4-a68a-6b0f-7305-5fba711a58ac@researchware.com> See the dictionary entry for the "type" command. This sends rawKeyUp|rawKeyDown messages This might let you construct a stack that "calibrates" (or whatever you want to call it) what keys on any keyboard generate what keyDown number and what characters On 2/25/2018 5:09 AM, Richmond Mathewson via use-livecode wrote: > Erm . . . > > I want to set up a stack that will list an end-user's keyDowns by > sending their system > a set of rawKeyUps . . . > > PseudoCode: > > in a button: > > on mouseUp > ?send "rawKeyDown" to key 113 > end mouseUp > > in the cardScript: > > on rawKeyDown XX > ? get keyUp XX > ? put XX somewhere useful > end rawKeyDown > > 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 christer at mindcrea.com Sun Feb 25 14:06:55 2018 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Sun, 25 Feb 2018 21:06:55 +0200 Subject: High Sierra, LC & Xcode Message-ID: <78D39D81-B836-4CC0-9DC7-309345D4CBA2@mindcrea.com> Thank you for the responses. So, took a step too much in the future. Let you know how it goes with Xcode 9.2. Amazing learning by trying. Christer Pyyhti? MindCrea Ltd christer at mindcrea.com From richmondmathewson at gmail.com Sun Feb 25 14:25:49 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 25 Feb 2018 21:25:49 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: <31d843b5-f0e0-9593-8fb5-ddd9a45da917@gmail.com> <6d99dec8-dc91-9faf-3eb3-49df9c08b7e6@gmail.com> Message-ID: <2bdde056-66fd-2435-7b16-4c2772fa631b@gmail.com> Ha, Ha: I do know how my keyboard is laid out. I know, for instance, that if I hit the "q" key I get a raw key code of 113. What I don't know is what "Walid" in Lahore will get when he hits the key on his Mac/Win/Linux keyboard when he hits the key that yields a raw key code of 113 and is in the same position as the "q" key on my keyboard. Richmond. On 25/2/2018 8:32 pm, Mike Bonner via use-livecode wrote: > My apologies. I assumed you knew how the keyboard was laid out on your > mac. For other peoples macs, you might read this page. > https://stackoverflow.com/questions/21597804/determine-os-x-keyboard-layout-input-source-in-the-terminal-a-script > . > (goes off to napland) > > On Sun, Feb 25, 2018 at 11:06 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> That's great, but I'm currently working on a Macintosh. >> >> Richmond. >> >> On 25/2/2018 7:38 pm, Mike Bonner via use-livecode wrote: >> >>> Just realized, if all you need to know (On linux) is the basic keyboard >>> information, you can likely do this.. >>> >>> put url "file:/etc/default/keyboard" into >>> and then parse it. Mine contains >>> KBMODEL="pc105" >>> KBLAYOUT="us" >>> KBVARIANT="" >>> KBOPTIONS="" >>> BACKSPACE="guess" >>> >>> On windows, if the system has powershell (uncertain as to versions?) you >>> might be able to get useful information >>> >>> set the hideconsolewindows to true >>> set the shellcommand to "powershell" >>> get shell("(Get-Culture).keyboardLayoutID") >>> >>> This will put a number into "it" in my case, 1033. >>> Looking at this page.. https://www.science.co.il/lang >>> uage/Locale-codes.php >>> shows that 1033 is en_us. >>> >>> Alternatively, also with powershell >>> >>> set the hideconsolewindows to true >>> set the shellcommand to "powershell" >>> get shell("Get--WinUserLanguageList") >>> >>> At which point IT contains something like.. >>> *LanguageTag : en-US* >>> *Autonym : English (United States)* >>> *EnglishName : English* >>> *LocalizedName : English (United States)* >>> *ScriptName : Latin script* >>> *InputMethodTips : {0409:00000409}* >>> *Spellchecking : True* >>> *Handwriting : False* >>> >>> >>> The number for InputMethodTips means qwerty us, and is in the registry key >>> (for me) >>> The registry key: HKEY_CURRENT_USER\Keyboard Layout\Preload\1 >>> contains the same 0409 number so perhaps queryRegister could be used to >>> grab that. >>> >>> If the user is using a different preferred layout (overriding normal >>> mapping,) it might show in >>> HKEY_CURRENT_USER\Keyboard Layout\Substitutes\1 >>> For example, looking at the number 00010409 denotes 409 english us >>> keyboard >>> layout overridden to be a dvorak layout. >>> >>> After all this, i'm thinking that having the user do a nice keyboard >>> faceroll might still be the easiest solution. >>> >>> On Sun, Feb 25, 2018 at 9:26 AM, Mike Bonner wrote: >>> >>> Hmm. On linux you might be able to use a shell command to get some info, >>>> though I don't know enough about theh output to be much help. >>>> >>>> the command xkbcom :0 - dumps a truckload of info, might be useful for >>>> your task. >>>> I'm guessing there is a way to do this on macos too but I don't currently >>>> have access to a mac. >>>> Unsure about how to go about it on windows. >>>> >>>> For example, on my system one of the first lines contains qwerty as part >>>> of the line. The only issue with this, is that custom mapings are >>>> possible, though it looks like the aliases are part of the information. >>>> >>>> I've seen operating systems do the "press the key to the right of the >>>> left >>>> shift key.." sequence to determine base layout (which again, wouldn't >>>> cover >>>> every base if the user has changed the keyboard map, so you might need to >>>> have them press every key... xkbcom might get around that if you can >>>> figure out enough to interpret the results) >>>> >>>> >>>> >>>> On Sun, Feb 25, 2018 at 8:22 AM, Richmond Mathewson via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Either I did not explain things very well or you got hold of the wrong >>>>> end of the stick >>>>> (or, most probably a bit of both: probably the latter as a consequence >>>>> of >>>>> the former). >>>>> >>>>> Imagine, if you will, I need to know what an end-user's standard >>>>> keyboard >>>>> layout is. >>>>> Let's call our theoretical end-user Farhad, and Iranian who uses an >>>>> Iranian keyboard layout >>>>> (something I don't know), and let's call our me Richmond owing to a >>>>> slight lack of imagination >>>>> on my part; and I use a US English keyboard layout, which I know, but >>>>> isn't useful information >>>>> under the circumstances. >>>>> >>>>> Now if I click on the key that yields a rawKey of 113 I get a "q". >>>>> >>>>> If Farhad clicks on the key that yields a rawKey of 113 he gets a "? >>>>> >>>>> And I am unable to type close-quotes there. >>>>> >>>>> So I should like to find a way to fake someone pressing down on a key on >>>>> their home-computer >>>>> to see what the keyUp result is. >>>>> >>>>> Now I realise I cannot SEND a command telling the key on the keyboard to >>>>> do >>>>> "a pianola" and depress itself (wouldn't that be fun?). >>>>> >>>>> It would, however, be groovy if one could work out Farhad's keys without >>>>> having him to >>>>> go "bash, bash" all the way along the rows of his keyboard. >>>>> >>>>> Richmond. >>>>> >>>>> >>>>> >>>>> On 25/2/2018 4:13 pm, Mike Bonner via use-livecode wrote: >>>>> >>>>> A quick example placed in the card script. >>>>>> local sKeysPushed --keys kept in this variable for the example >>>>>> >>>>>> on rawkeydown pkey >>>>>> if sKeysPushed is empty then >>>>>> put pkey into sKeysPushed >>>>>> else >>>>>> put comma & pkey after sKeysPushed >>>>>> end if >>>>>> >>>>>> -- You would want to remove this block of course, but for testing >>>>>> -- it lets you push the shift key to see whats been captured >>>>>> if the shiftkey is down then >>>>>> put sKeysPushed >>>>>> end if >>>>>> >>>>>> pass rawkeydown --pass the key >>>>>> >>>>>> end rawkeydown >>>>>> >>>>>> I know it was just pseudocode, but as far as I know you can't "send" a >>>>>> message to a key so.. >>>>>> If you want to be able to click a button to send a rawkeydown (rather >>>>>> than >>>>>> just typing them) you could use something like: >>>>>> >>>>>> on mouseup >>>>>> send "rawkeydown 110" to this card >>>>>> end mouseup >>>>>> >>>>>> or >>>>>> on mouseup >>>>>> displatch "rawkeydown" with (any item of "119,240,43") -->>>>> of >>>>>> random keys to send >>>>>> end mouseup >>>>>> >>>>>> Now.. If you need to track keypresses while NOT actively using your >>>>>> application, it requires a different method. You'd need to use a >>>>>> different >>>>>> method. You would need to use a send loop and check the keysdown and >>>>>> build >>>>>> up your keys list that way. Using this method would be problematic >>>>>> though, >>>>>> for example.. A user holds a key down long enough for several loops to >>>>>> happen, so the keysdown would show the key multiple times. Which might >>>>>> be >>>>>> appropriate if autorepeat is being used, but then you have no idea how >>>>>> many >>>>>> "repeats" there were because its based on the repeat rate. It would be >>>>>> very difficult to have much accuracy using this method. (easiest might >>>>>> be >>>>>> to check current keysdown against previous keysdown and only log if >>>>>> there >>>>>> is a difference, then use your own noggin to realize that litle is >>>>>> little) >>>>>> >>>>>> >>>>>> On Sun, Feb 25, 2018 at 3:09 AM, Richmond Mathewson via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Erm . . . >>>>>> >>>>>>> I want to set up a stack that will list an end-user's keyDowns by >>>>>>> sending >>>>>>> their system >>>>>>> a set of rawKeyUps . . . >>>>>>> >>>>>>> PseudoCode: >>>>>>> >>>>>>> in a button: >>>>>>> >>>>>>> on mouseUp >>>>>>> send "rawKeyDown" to key 113 >>>>>>> end mouseUp >>>>>>> >>>>>>> in the cardScript: >>>>>>> >>>>>>> on rawKeyDown XX >>>>>>> get keyUp XX >>>>>>> put XX somewhere useful >>>>>>> end rawKeyDown >>>>>>> >>>>>>> Richmond. >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>>> >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sun Feb 25 14:50:04 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 25 Feb 2018 21:50:04 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: <7d9217f4-a68a-6b0f-7305-5fba711a58ac@researchware.com> References: <7d9217f4-a68a-6b0f-7305-5fba711a58ac@researchware.com> Message-ID: <919c5194-607f-a006-acda-90fbaa7f1779@gmail.com> That looks like a good way to start (even though it is the wrong way round). The next questions (now I'm on a roll, I'll keep rolling) are these: 1. How do I type a rawKey command? I probably cannot. 2. If I have a script that runs type "q" how do I trap therawKeyDown and the rawKeyUp codes so I can get them into a field? In terms of calibration all this will do is nothing as a stack that has type "q" is a script will do just that regardless of the end-user's keyboard layout. I just set my keyboard layout on my ancient iMac (10.7.5) to Bangla (Bengali), which wouldn't know a "q" to save its life. My test stack still typed a "q" into my field. I wonder what rawKeyDown and rawKeyUp the type command actually sent? I have a fantasy that goes a bit like this: Pseudocode select after field "ff" send "rawKeyUp[113]" but LiveCode "doesn't love me" that much. Richmond. On 25/2/2018 8:44 pm, Paul Dupuis via use-livecode wrote: > See the dictionary entry for the "type" command. This sends > rawKeyUp|rawKeyDown messages > > This might let you construct a stack that "calibrates" (or whatever you > want to call it) what keys on any keyboard generate what keyDown number > and what characters > > > On 2/25/2018 5:09 AM, Richmond Mathewson via use-livecode wrote: >> Erm . . . >> >> I want to set up a stack that will list an end-user's keyDowns by >> sending their system >> a set of rawKeyUps . . . >> >> PseudoCode: >> >> in a button: >> >> on mouseUp >> send "rawKeyDown" to key 113 >> end mouseUp >> >> in the cardScript: >> >> on rawKeyDown XX >> get keyUp XX >> put XX somewhere useful >> end rawKeyDown >> >> 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 Sun Feb 25 14:57:23 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 25 Feb 2018 21:57:23 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: <919c5194-607f-a006-acda-90fbaa7f1779@gmail.com> References: <7d9217f4-a68a-6b0f-7305-5fba711a58ac@researchware.com> <919c5194-607f-a006-acda-90fbaa7f1779@gmail.com> Message-ID: <3ff24942-81f6-8951-6e9b-71f2399ec513@gmail.com> Here we go again: I reply to my own posting: So: I have 2 fields and a button; the button having this sort of script: on mouseUp put empty into fld "fff" select after fld "fff" type "q" end mouseUp and the cardScript of the stack having this sort of script: on rawKeyDown RD put empty into fld "sss" put RD into fld "sss" end rawKeyDown at which point, on clicking on the button I get "113" in field "sss", and, oddly enough, empty in field "fff". Of course that doesn't help me at all as I want to do things the other way round: i.e. I want to send a rawKeyDown signal that fakes typing on the key on my keyboard that has the underlying rawKey code of 113. Richmond. On 25/2/2018 9:50 pm, Richmond Mathewson wrote: > That looks like a good way to start (even though it is the wrong way > round). > > The next questions (now I'm on a roll, I'll keep rolling) are these: > > 1. How do I type a rawKey command? I probably cannot. > > 2. If I have a script that runs type "q" how do I trap therawKeyDown > and the rawKeyUp codes > so I can get them into a field? > > In terms of calibration all this will do is nothing as a stack that > has type "q" is a script will > do just that regardless of the end-user's keyboard layout. > > I just set my keyboard layout on my ancient iMac (10.7.5) to Bangla > (Bengali), which wouldn't know > a "q" to save its life. > > My test stack still typed a "q" into my field. > > I wonder what rawKeyDown and rawKeyUp the type command actually sent? > > I have a fantasy that goes a bit like this: > > Pseudocode > > select after field "ff" > send "rawKeyUp[113]" > > but LiveCode "doesn't love me" that much. > > Richmond. > > On 25/2/2018 8:44 pm, Paul Dupuis via use-livecode wrote: >> See the dictionary entry for the "type" command. This sends >> rawKeyUp|rawKeyDown messages >> >> This might let you construct a stack that "calibrates" (or whatever you >> want to call it) what keys on any keyboard generate what keyDown number >> and what characters >> >> >> On 2/25/2018 5:09 AM, Richmond Mathewson via use-livecode wrote: >>> Erm . . . >>> >>> I want to set up a stack that will list an end-user's keyDowns by >>> sending their system >>> a set of rawKeyUps . . . >>> >>> PseudoCode: >>> >>> in a button: >>> >>> on mouseUp >>> send "rawKeyDown" to key 113 >>> end mouseUp >>> >>> in the cardScript: >>> >>> on rawKeyDown XX >>> get keyUp XX >>> put XX somewhere useful >>> end rawKeyDown >>> >>> 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 bonnmike at gmail.com Sun Feb 25 15:02:33 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 25 Feb 2018 13:02:33 -0700 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: <919c5194-607f-a006-acda-90fbaa7f1779@gmail.com> References: <7d9217f4-a68a-6b0f-7305-5fba711a58ac@researchware.com> <919c5194-607f-a006-acda-90fbaa7f1779@gmail.com> Message-ID: If you add rawkeydown handlers to your field, and then use the "type" command to type into them, you'll trap the key code being sent (which will always be the same for q no matter the keyboard) but there is then no relationship to the actual key on the keyboard that I can see. As for your 2 field experiment, if you add pass rawkeydown in your second handler, does it solve the problem? Catching rawkeydown without passing it, should indeed keep anything from appearing in the field. On Sun, Feb 25, 2018 at 12:50 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > That looks like a good way to start (even though it is the wrong way > round). > > The next questions (now I'm on a roll, I'll keep rolling) are these: > > 1. How do I type a rawKey command? I probably cannot. > > 2. If I have a script that runs type "q" how do I trap therawKeyDown and > the rawKeyUp codes > so I can get them into a field? > > In terms of calibration all this will do is nothing as a stack that has > type "q" is a script will > do just that regardless of the end-user's keyboard layout. > > I just set my keyboard layout on my ancient iMac (10.7.5) to Bangla > (Bengali), which wouldn't know > a "q" to save its life. > > My test stack still typed a "q" into my field. > > I wonder what rawKeyDown and rawKeyUp the type command actually sent? > > I have a fantasy that goes a bit like this: > > Pseudocode > > select after field "ff" > send "rawKeyUp[113]" > > but LiveCode "doesn't love me" that much. > > Richmond. > > On 25/2/2018 8:44 pm, Paul Dupuis via use-livecode wrote: > >> See the dictionary entry for the "type" command. This sends >> rawKeyUp|rawKeyDown messages >> >> This might let you construct a stack that "calibrates" (or whatever you >> want to call it) what keys on any keyboard generate what keyDown number >> and what characters >> >> >> On 2/25/2018 5:09 AM, Richmond Mathewson via use-livecode wrote: >> >>> Erm . . . >>> >>> I want to set up a stack that will list an end-user's keyDowns by >>> sending their system >>> a set of rawKeyUps . . . >>> >>> PseudoCode: >>> >>> in a button: >>> >>> on mouseUp >>> send "rawKeyDown" to key 113 >>> end mouseUp >>> >>> in the cardScript: >>> >>> on rawKeyDown XX >>> get keyUp XX >>> put XX somewhere useful >>> end rawKeyDown >>> >>> 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 richmondmathewson at gmail.com Sun Feb 25 15:17:37 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 25 Feb 2018 22:17:37 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: <7d9217f4-a68a-6b0f-7305-5fba711a58ac@researchware.com> <919c5194-607f-a006-acda-90fbaa7f1779@gmail.com> Message-ID: <9aa03b70-8d31-0f7f-e5e9-ac571d78eb94@gmail.com> 11 years ago there was a discussion involving "SendKeys()" http://use-livecode.runrev.narkive.com/9tOIimV9/simulating-keystrokes but I can find no mention of this in the LiveCode documentation. Richmond. On 25/2/2018 10:02 pm, Mike Bonner via use-livecode wrote: > If you add rawkeydown handlers to your field, and then use the "type" > command to type into them, you'll trap the key code being sent (which will > always be the same for q no matter the keyboard) but there is then no > relationship to the actual key on the keyboard that I can see. > > As for your 2 field experiment, if you add pass rawkeydown in your second > handler, does it solve the problem? Catching rawkeydown without passing > it, should indeed keep anything from appearing in the field. > > On Sun, Feb 25, 2018 at 12:50 PM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> That looks like a good way to start (even though it is the wrong way >> round). >> >> The next questions (now I'm on a roll, I'll keep rolling) are these: >> >> 1. How do I type a rawKey command? I probably cannot. >> >> 2. If I have a script that runs type "q" how do I trap therawKeyDown and >> the rawKeyUp codes >> so I can get them into a field? >> >> In terms of calibration all this will do is nothing as a stack that has >> type "q" is a script will >> do just that regardless of the end-user's keyboard layout. >> >> I just set my keyboard layout on my ancient iMac (10.7.5) to Bangla >> (Bengali), which wouldn't know >> a "q" to save its life. >> >> My test stack still typed a "q" into my field. >> >> I wonder what rawKeyDown and rawKeyUp the type command actually sent? >> >> I have a fantasy that goes a bit like this: >> >> Pseudocode >> >> select after field "ff" >> send "rawKeyUp[113]" >> >> but LiveCode "doesn't love me" that much. >> >> Richmond. >> >> On 25/2/2018 8:44 pm, Paul Dupuis via use-livecode wrote: >> >>> See the dictionary entry for the "type" command. This sends >>> rawKeyUp|rawKeyDown messages >>> >>> This might let you construct a stack that "calibrates" (or whatever you >>> want to call it) what keys on any keyboard generate what keyDown number >>> and what characters >>> >>> >>> On 2/25/2018 5:09 AM, Richmond Mathewson via use-livecode wrote: >>> >>>> Erm . . . >>>> >>>> I want to set up a stack that will list an end-user's keyDowns by >>>> sending their system >>>> a set of rawKeyUps . . . >>>> >>>> PseudoCode: >>>> >>>> in a button: >>>> >>>> on mouseUp >>>> send "rawKeyDown" to key 113 >>>> end mouseUp >>>> >>>> in the cardScript: >>>> >>>> on rawKeyDown XX >>>> get keyUp XX >>>> put XX somewhere useful >>>> end rawKeyDown >>>> >>>> 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 monte at appisle.net Sun Feb 25 16:45:36 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 26 Feb 2018 08:45:36 +1100 Subject: widget properties In-Reply-To: References: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> Message-ID: <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> > On 26 Feb 2018, at 2:57 am, Ali Lloyd via use-livecode wrote: > > The trick is to ensure that the VCS use-case > can be extricated. I think probably the VCS use-case is a non-issue right now. I?m not sure if anyone is still using lcVCS but script only stacks + stackFiles with no scripts is significantly simpler to deal with. Either way export object covers that better. > If we have export for all object types, there's no > reason (other than backwards compatibility) that the properties property > couldn't return the value of every single gettable property of an object > type. Yes there is. If we include all the different forms of text for example (htmlText, text, rtfText, styledText) then we have to have even more complicated precedence rules than we currently do when setting. I would suggest if we can look at all the metadata we need in the IDE about an object property and provide a way to access as much of that as possible by introspecting the object most people would be happy regardless of whether we provide an array prop to get and set it in one hit. Just about all the data is there already in the property tables. Cheers Monte From ambassador at fourthworld.com Sun Feb 25 17:18:03 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 25 Feb 2018 14:18:03 -0800 Subject: widget properties In-Reply-To: <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> References: <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> Message-ID: Monte wrote: > I think probably the VCS use-case is a non-issue right now. Agreed. >> If we have export for all object types, there's no >> reason (other than backwards compatibility) that the properties >> property couldn't return the value of every single gettable property >> of an object type. > > Yes there is. If we include all the different forms of text for > example (htmlText, text, rtfText, styledText) then we have to have > even more complicated precedence rules than we currently do when > setting. FWIW, if it keeps things simpler I wouldn't change anything at all in "the properties" beyond adding the export info for widgets. Below I've copied the list of keys from getting "the properties" of a field. Neither rtfText nor even text are there, because both are permutations of the one form that covers what's needed to reproduce field contents, htmlText. Apparently a fair bit of thought went into "the properties". Unless there's a show-stopping need to alter it, I'd leave it as-is, add the widget info, and move on to other tasks. If something more complete or somehow different is needed in the future, the future would be a good time to address it. :) That is, maintain what we have, and take your time thinking through a new form of this sort of array representation of an object as that need becomes defined. As much as I appreciate the interest in this, my own needs are modest, and I know that you folks have quite a queue filled with other things. altId autoHilite autoTab backColor backPattern behavior blendLevel borderColor borderPattern borderWidth bottomColor bottomPattern cantSelect colorOverlay cursorMovement disabled dontSearch dontWrap dropShadow firstIndent fixedLineHeight focusColor focusPattern foreColor forePattern hGrid hiliteColor hilitedLines hilitePattern hScroll hScrollbar htmlText id ink innerGlow innerShadow layer layerMode listBehavior lockLoc lockText margins multipleHilites name noncontiguousHilites opaque outerGlow rect scrollbarWidth shadow shadowColor shadowOffset shadowPattern sharedText showBorder showFocusBorder showLines style tabStops textAlign textDirection textFont textHeight textSize textStyle threeD threeDHilite toggleHilites toolTip topColor topPattern traversalOn vGrid visible vScroll vScrollbar -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ali.lloyd at livecode.com Sun Feb 25 17:45:29 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sun, 25 Feb 2018 22:45:29 +0000 Subject: widget properties In-Reply-To: <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> References: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> Message-ID: > > > > If we have export for all object types, there's no > > reason (other than backwards compatibility) that the properties property > > couldn't return the value of every single gettable property of an object > > type. > > Yes there is. If we include all the different forms of text for example > (htmlText, text, rtfText, styledText) then we have to have even more > complicated precedence rules than we currently do when setting. > > No there isn't, because if you aren't using it to completely import an object (i.e. set the properties of obj1 to the properties of obj2) it's your lookout what properties you include in the array to set - so just don't include all the forms of text. From jacque at hyperactivesw.com Sun Feb 25 18:55:25 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 25 Feb 2018 17:55:25 -0600 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: <3ff24942-81f6-8951-6e9b-71f2399ec513@gmail.com> References: <7d9217f4-a68a-6b0f-7305-5fba711a58ac@researchware.com> <919c5194-607f-a006-acda-90fbaa7f1779@gmail.com> <3ff24942-81f6-8951-6e9b-71f2399ec513@gmail.com> Message-ID: On 2/25/18 1:57 PM, Richmond Mathewson via use-livecode wrote: > I want to send a rawKeyDown signal that fakes typing on the key on my > keyboard > that has the underlying rawKey code of 113. What does this give you on a non-US keyboard (untested): type numToChar(113) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Sun Feb 25 21:53:48 2018 From: hh at hyperhh.de (hh) Date: Mon, 26 Feb 2018 03:53:48 +0100 Subject: hhMockup Message-ID: ["hhMockup" is an enhanced version of the stack I used to produce the demos for my LCGlobal talk "Perspective and affine transformations of images" in Nov 2017.] The stack contains a *very fast* version of the perspective image-transformation given in Raspberry Pi stacks collection #85 (pure LC Script): JavaScript is used for the lengthy transforms of the imageData and applying a few image filters. Everything else, especially the computation of the "perspective matrix" and all the display is still LC Script. You can scale, skew, translate and rotate in single or combined actions and perspective transform images up to screen size. *** The perspective transform is also used to show images in a given MOCKUP frame. There is also demo of running a gif (EM's jockey) in such mockup frames. There are still more details to explore, e.g. expanding the transform of the control polygon (and by that the image) horizontally, vertically or both. Download "hhMockup" from "Sample Stacks" (or http://livecodeshare.runrev.com/stack/867). The stack is tested to run using LC 8/9 on Mac/ Win 7+10/ Ubuntu (a few issues on linux, use latest LC 8/9 there). You can import your images and export your transformed artwork. Have fun! From monte at appisle.net Sun Feb 25 22:20:13 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 26 Feb 2018 14:20:13 +1100 Subject: widget properties In-Reply-To: References: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> Message-ID: <4421CB74-E626-46C6-A595-088B1F774AE0@appisle.net> > On 26 Feb 2018, at 9:45 am, Ali Lloyd via use-livecode wrote: > >> No there isn't, because if you aren't using it to completely import an > object (i.e. set the properties of obj1 to the properties of obj2) it's > your lookout what properties you include in the array to set - so just > don't include all the forms of text. I must have misunderstood. I thought you were proposing adding all gettable properties to the properties and not changing the way set works (i.e. iterating all elements and setting them one at a time). Cheers Monte From brian at milby7.com Sun Feb 25 22:47:37 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 26 Feb 2018 03:47:37 +0000 Subject: widget properties In-Reply-To: <4421CB74-E626-46C6-A595-088B1F774AE0@appisle.net> References: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> <4421CB74-E626-46C6-A595-088B1F774AE0@appisle.net> Message-ID: My 0.02 is that export should mirror what the engine saves to the stack file such that import could exactly recreate an object (with some logic on how to handle ID collisions - overwrite, throw error, assign new ID...) On Sun, Feb 25, 2018 at 9:21 PM Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On 26 Feb 2018, at 9:45 am, Ali Lloyd via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> No there isn't, because if you aren't using it to completely import an > > object (i.e. set the properties of obj1 to the properties of obj2) it's > > your lookout what properties you include in the array to set - so just > > don't include all the forms of text. > > I must have misunderstood. I thought you were proposing adding all > gettable properties to the properties and not changing the way set works > (i.e. iterating all elements and setting them one at a time). > > 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 Feb 25 22:52:13 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 26 Feb 2018 14:52:13 +1100 Subject: widget properties In-Reply-To: References: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> <4421CB74-E626-46C6-A595-088B1F774AE0@appisle.net> Message-ID: > On 26 Feb 2018, at 2:47 pm, Brian Milby wrote: > > My 0.02 is that export should mirror what the engine saves to the stack file such that import could exactly recreate an object (with some logic on how to handle ID collisions - overwrite, throw error, assign new ID...) Yes that makes sense. It would also be nice if we could somehow apply that exported data to an existing object. Cheers Monte From hh at hyperhh.de Sun Feb 25 23:01:59 2018 From: hh at hyperhh.de (hh) Date: Mon, 26 Feb 2018 05:01:59 +0100 Subject: widget properties Message-ID: > Brian M. wrote: > My 0.02 is that export should mirror what the engine saves to the stack > file such that import could exactly recreate an object (with some logic on > how to handle ID collisions - overwrite, throw error, assign new ID...) If you are developing and testing a widget this would make you crazy. What I want are some persistent properties from "OnSave" and "OnLoad" but NOT the saved state of a probable buggy widget. And if I open a stack half a year later while the widget was updated, then I want, as it is currently, the new version without deleting and reinstalling all widgets of that kind (think of a stack that has a lot of svg-icon-widgets). From brian at milby7.com Sun Feb 25 23:03:07 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 26 Feb 2018 04:03:07 +0000 Subject: widget properties In-Reply-To: References: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> <4421CB74-E626-46C6-A595-088B1F774AE0@appisle.net> Message-ID: Exactly... that would be the overwrite option I was thinking about. import object from array tMyArray [with OverwriteID] import object from array tMyArray [with AutoID] If neither option specified and the ID exists, an error would be thrown. On Sun, Feb 25, 2018 at 9:52 PM Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On 26 Feb 2018, at 2:47 pm, Brian Milby wrote: > > > > My 0.02 is that export should mirror what the engine saves to the stack > file such that import could exactly recreate an object (with some logic on > how to handle ID collisions - overwrite, throw error, assign new ID...) > > Yes that makes sense. It would also be nice if we could somehow apply that > exported data to an existing object. > > 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 brian at milby7.com Sun Feb 25 23:10:33 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 26 Feb 2018 04:10:33 +0000 Subject: widget properties In-Reply-To: References: Message-ID: I?m not sure I follow. The proposal I?m making is no different than what the engine does today, just allowing the same information to be saved to an array. The internal state of the widget is the same as what would be used on export/import. It just adds the other properties (rect, ...) to the array. I?ll need to look again, but I think that export uses OnSave to get the array. Import uses OnLoad. This would save the step of setting the other properties. On Sun, Feb 25, 2018 at 10:02 PM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Brian M. wrote: > > My 0.02 is that export should mirror what the engine saves to the stack > > file such that import could exactly recreate an object (with some logic > on > > how to handle ID collisions - overwrite, throw error, assign new ID...) > > If you are developing and testing a widget this would make you crazy. > What I want are some persistent properties from "OnSave" and "OnLoad" but > NOT the saved state of a probable buggy widget. > > And if I open a stack half a year later while the widget was updated, > then I want, as it is currently, the new version without deleting and > reinstalling all widgets of that kind (think of a stack that has a lot of > svg-icon-widgets). > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Mon Feb 26 00:02:45 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 26 Feb 2018 05:02:45 +0000 Subject: widget properties In-Reply-To: References: Message-ID: Looking at the source, when a stack is saved, here is the general flow for an individual widget (widget.cpp): OnSave called to get internal widget state (array) Write uint1 OT_WIDGET to indicate a widget Save the object state Save the widget kind Save the internal widget state Save the property sets Suggestion is to add the object state ($object) and property sets ($props) to the existing export array. Once the object state function was in place, most of the work to add other classic controls would already be done. The couple of OnLoad handlers that I?ve looked into seem to handle extra data fine since it is just ignored. It gets lost on save though. This is some of the things that came to light when vertical was added to the segmented control. This should not have any impact to this idea. On Sun, Feb 25, 2018 at 10:10 PM Brian Milby wrote: > I?m not sure I follow. The proposal I?m making is no different than what > the engine does today, just allowing the same information to be saved to an > array. The internal state of the widget is the same as what would be used > on export/import. It just adds the other properties (rect, ...) to the > array. > > I?ll need to look again, but I think that export uses OnSave to get the > array. Import uses OnLoad. This would save the step of setting the other > properties. > > On Sun, Feb 25, 2018 at 10:02 PM hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > Brian M. wrote: >> > My 0.02 is that export should mirror what the engine saves to the stack >> > file such that import could exactly recreate an object (with some logic >> on >> > how to handle ID collisions - overwrite, throw error, assign new ID...) >> >> If you are developing and testing a widget this would make you crazy. >> What I want are some persistent properties from "OnSave" and "OnLoad" but >> NOT the saved state of a probable buggy widget. >> >> And if I open a stack half a year later while the widget was updated, >> then I want, as it is currently, the new version without deleting and >> reinstalling all widgets of that kind (think of a stack that has a lot of >> svg-icon-widgets). >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From ali.lloyd at livecode.com Mon Feb 26 01:30:59 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Mon, 26 Feb 2018 06:30:59 +0000 Subject: widget properties In-Reply-To: <4421CB74-E626-46C6-A595-088B1F774AE0@appisle.net> References: <882a0b2e-8a55-84a3-1c9b-a27b53549987@fourthworld.com> <82EB6ED7-7F80-487E-B1E2-C91C8C718DE9@appisle.net> <4421CB74-E626-46C6-A595-088B1F774AE0@appisle.net> Message-ID: You didn't misunderstand, that is (almost) exactly what I'm suggesting (once we had import/export for all objects), although I think the way set works should probably be tweaked so that we *don't* do any manual fettling - we just document that setting certain groups of properties via the properties is undefined behavior. If you want to set *all* the properties of an object to the same as another, don't do it like that, use export/import instead. Essentially my point of view is that a properties property should return all properties. Otherwise it can't really work with widgets. The manual fettling for the order of properties to set isn't really compatible with the fact that widget authors can define properties in innumerable ways that we don't know in advance, unless we force widget authors to provide the equivalent of the engine's s_preprocess_props. I just realised though that you can't set if it's a function, so it would have to be a property, and then you couldn't include the properties property :-( On Mon, Feb 26, 2018 at 3:20 AM Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > I must have misunderstood. I thought you were proposing adding all > gettable properties to the properties and not changing the way set works > (i.e. iterating all elements and setting them one at a time). > > Cheers > > Monte > From richmondmathewson at gmail.com Mon Feb 26 03:56:07 2018 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 26 Feb 2018 10:56:07 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: <7d9217f4-a68a-6b0f-7305-5fba711a58ac@researchware.com> <919c5194-607f-a006-acda-90fbaa7f1779@gmail.com> <3ff24942-81f6-8951-6e9b-71f2399ec513@gmail.com> Message-ID: <8139d4cd-8c0b-91b7-5b31-d0646d6970ba@gmail.com> It always give a "q" as that is the Unicode name for "q". Richmond. On 26.02.2018 01:55, J. Landman Gay via use-livecode wrote: > On 2/25/18 1:57 PM, Richmond Mathewson via use-livecode wrote: >> I want to send a rawKeyDown signal that fakes typing on the key on my >> keyboard >> that has the underlying rawKey code of 113. > > What does this give you on a non-US keyboard (untested): > > ? type numToChar(113) > > From revdev at pdslabs.net Mon Feb 26 04:33:04 2018 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 26 Feb 2018 01:33:04 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: <1519428022915-0.post@n4.nabble.com> Message-ID: <40886e6a-472a-e499-8384-e3ea9aff8611@pdslabs.net> Let me improve this a bit. On 2/23/18 4:19 PM, Phil Davis via use-livecode wrote: > Roland, > > I believe Tom is exactly right. I would restructure your two closing > handlers like this: > > > local sMyFilename > > on closeStack > ??? put the filename of me into sMyFilename > ??? saveMe > ??? send "quitMe" in 1 second > end closeStack on closeStack ??? put the filename of me into sMyFilename ??? send "quitMe" to me in 1 second ??? saveMe end closeStack "quitMe" should be sent before 'saveMe' is executed, because the 'save' command is blocking. It would prevent 'quitMe' from being sent until (in this case) 1 second after 'saveMe' has finished. Thanks - Phil > > > command saveMe > ?? lock cursor /* Tested with and without locking and showing cursor */ > ?? set the cursor to watch > ?? save this stack /* auto save, takes a long time, between 10-30 secs */ > end saveMe > > > command quitMe > ?? if there is a file sMyFilename then > ????? unlock cursor > ????? lock messages > ????? quit > ?? else > ????? send "quitMe" to me in 0.5 seconds -- or in your preferred time > ?? end if > end quitMe > > > The above was not tested but it should solve the problem. > > HTH - > Phil Davis > > > > On 2/23/18 3:20 PM, tbodine via use-livecode wrote: >> Hi Roland. >> >> The "~" file is the original? (uncorrupted, unsaved) version of your >> stack >> before LC executed your Save cmd. If you remove the "~" from the >> filename, >> you'll probably find you can open that. LC creates the "~" file at >> the start >> of the save operation and, if all goes well, removes that file when >> save is >> complete. >> >> My guess is your problem is rooted in the lengthy save time in the quit >> routine. Here are a couple ideas of how you could deal with that: >> >> 1) Do the save within a try/catch statement so you can deal with any >> error. >> >> 2) If you are just saving some user data like prefs or fairly minor >> stuff, >> then why not save that into a separate substack outside of your main >> application stack? That should greatly shorten the time it takes to >> save. >> >> Hope that helps. >> >> Tom Bodine >> >> >> >> -- >> Sent from: >> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > -- Phil Davis From roland.huettmann at gmail.com Mon Feb 26 07:13:41 2018 From: roland.huettmann at gmail.com (R.H.) Date: Mon, 26 Feb 2018 13:13:41 +0100 Subject: Quit Command corrupts standalone (stack called by standalone splash) Message-ID: Thanks, Phil and Tom I already replied, but I cannot see my first reply to your answers. Did it appear in the list? Phil: >> "quitMe" should be sent before 'saveMe' is executed, because the 'save' command is blocking. It would prevent 'quitMe' from being sent until (in this case) 1 second after 'saveMe' has finished. Well, it is blocking. Issuing "quit" just quits if messages are locked.So, to quit before save would require not to force a quit. Right? I will test. The main problem is that the IDE is ok, even though saving takes a long time, but no errors I can see. The standalones are the culprit, and I have limited to access to other peoples computers using my standalones. And on my machine the problem does not appear regularly. // I hope this message appears, otherwise I will have to check what is wrong sending messages to the list. // Thanks Roland From christer at mindcrea.com Mon Feb 26 08:28:58 2018 From: christer at mindcrea.com (=?utf-8?Q?Pyyhti=C3=A4_Christer?=) Date: Mon, 26 Feb 2018 15:28:58 +0200 Subject: Xcode 9.2 & LC 8.1.9 Message-ID: <41356969-F61D-4C71-AB35-D789ABA61BF8@mindcrea.com> Combination Xcode 9.2 and LC 8.1.9 creating iOS app states: There was an error while saving the standalone application ..then about 20 ines of groups of numbers and different command logs. However, it sloowly starts in simulator, directly from LC - provided that you select only one device from the menu. Tried carefully make sure the profiles were set up etc. Of course it can depend on having High Sierra installed, as it was recommended if you want to install Xcode 9.3, which is required for iPhone X. Any hints? PS. I would definitely recommend NOT installing High Sierra. It cuts the performance, messes up your contacts, applications crash all the time, application windows disappear and you need to kill them to get back. High Sierra in my opinion is a big disaster. Christer Pyyhti? MindCrea Ltd christer at mindcrea.com From merakosp at gmail.com Mon Feb 26 08:47:06 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Mon, 26 Feb 2018 13:47:06 +0000 Subject: Xcode 9.2 & LC 8.1.9 In-Reply-To: <41356969-F61D-4C71-AB35-D789ABA61BF8@mindcrea.com> References: <41356969-F61D-4C71-AB35-D789ABA61BF8@mindcrea.com> Message-ID: Hi Christer, >>>>>There was an error while saving the standalone application >>>>>..then about 20 ines of groups of numbers and different command logs. Without seeing the logs it is difficult to guess what is wrong. Another thing to note is that when using a new Xcode version, you have to make sure the the Xcode command-line tools are updated correctly (to match the particular Xcode version). You can do that either from a terminal, or from Xcode itself: >From terminal: sudo xcode-select -s /path/to/xcode9.2.app >From Xcode9.2: - Launch Xcode 9.2 - Go to Xcode -> Preferences -> Locations - In the Command Line Tools dropdown, choose "Xcode 9.2" Then quit LC, clear the Prefs and set the path to Xcode 9.2 in LC mobile prefs. Hopefully this should work. Some other things to note: You can support iPhone X with Xcode9.2 as well, you don't need Xcode9.3. I have installed High Sierra 10.13.2 in one of our office Macs and it is OK for me so far. Hope this helps, Panos -- On Mon, Feb 26, 2018 at 1:28 PM, Pyyhti? Christer via use-livecode < use-livecode at lists.runrev.com> wrote: > Combination Xcode 9.2 and LC 8.1.9 creating iOS app states: > > There was an error while saving the standalone application > ..then about 20 ines of groups of numbers and different command logs. > > However, it sloowly starts in simulator, directly from LC - provided that > you select only one device from the menu. > > Tried carefully make sure the profiles were set up etc. > > Of course it can depend on having High Sierra installed, as it was > recommended if you want to install Xcode 9.3, which is required for iPhone > X. > > Any hints? > > PS. I would definitely recommend NOT installing High Sierra. It cuts the > performance, messes up your contacts, applications crash all the time, > application windows disappear and you need to kill them to get back. High > Sierra in my opinion is a big disaster. > > Christer Pyyhti? > MindCrea Ltd > christer at mindcrea.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 Mon Feb 26 09:45:43 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 26 Feb 2018 14:45:43 +0000 Subject: [ANN] This Week in LiveCode 118 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 #118 here: https://goo.gl/NzB8We 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 Feb 26 09:46:28 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 26 Feb 2018 09:46:28 -0500 Subject: Question about the result In-Reply-To: References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> <7aac58d9dd56e4a669010fbabade928b.squirrel@sage.on-rev.com> Message-ID: It would be nice if we had more consistent locations to check for feedback, without special cases and provisos. For example, returning a value from a function and a command (forget "for value" and "for error") populate it or the result depending on whether we are using a command or a function. One of the side effects of adding "for value" and "for result" is that some of the error reporting we used to receive if we coded for the incorrect handler type has gone away. On Sun, Feb 25, 2018 at 12:20 PM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > That is rather strange. Most of the time LC is exactly what I expect, but > then there are those head scratcher issues that keep me flummoxed. <-- > (word of the day) > > On Sun, Feb 25, 2018 at 9:57 AM, jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > On Sun, February 25, 2018 5:36 pm, Mike Bonner via use-livecode wrote: > > > Ah, well the only useful part of my answer then would regard the first > > > issue. The result remaining empty was the correct response because the > > > base url was valid, so the command didn't fail to connect to the url, > and > > > no 404 type or other type errors were returned as part of the headers. > > > > > > > Actually, when I wrote "never went through", that's exactly what > happened : > > the request never went through, the server never received that request > and > > therefore never returned anything. And even more surprising, the line > > put URL ("http://mydomain.com/index.php?" & it) into myVar > > didn't block the execution of the script and the following lines were > > executed, > > and myVar was empty. > > > > That's the reason why I was surprised to see that the result was empty as > > well; > > I would expect something like "data corrupted" or "impossible to send > > request"... > > And also to have the script blocked by that line... > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Feb 26 11:26:29 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Feb 2018 08:26:29 -0800 Subject: widget properties In-Reply-To: References: Message-ID: Ali Lloyd wrote: > Essentially my point of view is that a properties property should > return all properties. Otherwise it can't really work with widgets. Would it simplify things if what is needed for widgets is done for widgets, and the current data derived from engine-native objects remains as-is? -- Richard Gaskin Fourth World Systems From revdev at pdslabs.net Mon Feb 26 12:32:12 2018 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 26 Feb 2018 09:32:12 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: Message-ID: <18440aee-3f43-9728-e528-5af76d08904c@pdslabs.net> Hi Roland, This is the only reply of yours that I see. On 2/26/18 4:13 AM, R.H. via use-livecode wrote: > Thanks, Phil and Tom > > I already replied, but I cannot see my first reply to your answers. > > Did it appear in the list? > > > Phil: >>> "quitMe" should be sent before 'saveMe' is executed, because the 'save' > command is blocking. It would prevent 'quitMe' from being sent until (in > this case) 1 second after 'saveMe' has finished. > > Well, it is blocking. Issuing "quit" just quits if messages are locked.So, > to quit before save would require not to force a quit. Right? I will test. You're right, but that's not what my code does. It sends 'quitMe' (which contains the 'quit') 1 second after 'saveMe' has started. As you may know, 'send in x seconds' adds 'quitMe' to the pendingMessages queue, so it will execute as soon as the designated time has passed AND no other handler is running. For what it's worth, the correction I made to my own code is still not correct. The whole thing should look like this: local sMyTildeFilename on closeStack ??? -- create a path to the 'tilde' file (which doesn't yet exist) ??? put (the filename of me & "~") into sMyTildeFilename ??? -- add 'quitMe' to the pendingMessages ??? send "quitMe" in 1 second ??? -- save this stack ??? saveMe end closeStack command saveMe ?? lock cursor ?? set the cursor to watch ?? save me -- creates the tilde file at beginning, deletes it at end end saveMe command quitMe ?? -- wait until tilde file is gone, then quit ?? if there is a file sMyTildeFilename -- 'save' has not completed yet ?? then -- try again later ?????? send "quitMe" to me in 0.5 seconds ?? else ? ?? ? unlock cursor ?? ? ? lock messages ?? ??? quit ?? end if end quitMe Phil > > The main problem is that the IDE is ok, even though saving takes a long > time, but no errors I can see. The standalones are the culprit, and I have > limited to access to other peoples computers using my standalones. And on > my machine the problem does not appear regularly. > > // I hope this message appears, otherwise I will have to check what is > wrong sending messages to the list. // > > Thanks > 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 > -- Phil Davis From ambassador at fourthworld.com Mon Feb 26 14:07:50 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Feb 2018 11:07:50 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: Message-ID: Stack file corruption is very rare with LiveCode. It has happened now and then, but is rare enough (and of course serious enough) to merit attention by the LC team. Even if we can mitigate the issue by altering your code, the main question remains: why does a save operation become interrupted, and is that interruption caused by external factors or from an internal bug? Unless you know the cause of the corruption (failing hard drive, flaky network with mounted network drive, use of Dropbox or other synced folder with unpredictable behavior, etc.) it may be helpful opening a bug report if only to allow the team to investigate the corrupted file to see if it brings their attention to something internal which may need refinement. -- Richard Gaskin Fourth World Systems From brahma at hindu.org Mon Feb 26 15:57:53 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 26 Feb 2018 20:57:53 +0000 Subject: Android Java Virtual Machines Message-ID: <24008E81-F915-4B92-9301-8F5BE3044997@hindu.org> I was using java jdk1.8.0_121.jdk Even though documentation says it should work (any above 1.6 should work) It an attempt of get to jdk1.8.0_152.jdk, I had installed Java 9, inadvertently. To make a long story short, I installed sdkman to manage my Java (very cool, http://sdkman.io/) Any ended with up /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk No, I am wondering if my built on a Pixel is different from when it was jdk1.8.0_121.jdk. Does anyone have two JDK installed to found out? I nervous about messing with my Java script set up. BR From martyknappster at gmail.com Mon Feb 26 17:52:59 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Mon, 26 Feb 2018 14:52:59 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: Message-ID: <7E0E4CF4-FEC2-4AC7-BAEB-F691E215C436@gmail.com> Richard, could you elaborate on the issues with Dropbox? Is there a recommended procedure for dealing with it? Marty On Feb 26, 2018, at 11:07 AM, Richard Gaskin via use-livecode wrote: > Stack file corruption is very rare with LiveCode. It has happened now and then, but is rare enough (and of course serious enough) to merit attention by the LC team. > > Even if we can mitigate the issue by altering your code, the main question remains: why does a save operation become interrupted, and is that interruption caused by external factors or from an internal bug? > > Unless you know the cause of the corruption (failing hard drive, flaky network with mounted network drive, use of Dropbox or other synced folder with unpredictable behavior, etc.) it may be helpful opening a bug report if only to allow the team to investigate the corrupted file to see if it brings their attention to something internal which may need refinement. > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 26 20:14:30 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Feb 2018 17:14:30 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: <7E0E4CF4-FEC2-4AC7-BAEB-F691E215C436@gmail.com> References: <7E0E4CF4-FEC2-4AC7-BAEB-F691E215C436@gmail.com> Message-ID: Knapp Martin wrote: > Richard, could you elaborate on the issues with Dropbox? I first came across it in a search at Google for "dropbox sqlite", looking for tips on making the most of that relationship. What I found was a long series of support forum and blog posts filled with horror stories of out of sync or corrupted DB files. Some merely lose a record. Others lose the DB. And so many have no problem at all that it seems like something we should all be doing, until you look into it far enough to find those who've lost records or the entire DB. Of all the things I've read, this forum post covered more ground more succinctly than most: ---- tl;dr: Dropbox fails the ACID test for databases. So does its competitor Box, which works the same way. Use it for SQLite databases only if your transfer time exceeds its synch time. Dropbox does not share files across the internet. It copies changed files from one computer to its server, then from that server to all the other computers which have access to that shared folder. Dropbox copies an entire file every time a part of it is updated. If you have a 200GB database and delete one row, it needs to copy the entire database file to all the other computers that can access it. While that works fine for small files, it will involve a lot of traffic as your files grow in size. If two copies of the file are updated at the same time on different computers, the changes made in one copy disappear. Your user-interface will ask you which one you want, but you may not have enough knowledge to pick the 'best' one. If Dropbox decides to take a copy while SQLite is in the middle of processing a transaction, you will temporarily have a copy of the database with a partially-processed transaction on all the computers which have access to that shared area. Dropbox doesn?t understand that the database file and the journal file go together, even if they?re in the same folder. And in order to stop one user from hogging its servers there?s sometimes a short delay between when it updates its copy of one file and when it updates its copy of another file. So it?s possible for one computer which has a copy of the database to have a newer database file than its journal file, or vice versa. SQLite autorepairs files when it finds a database file and a journal file which don?t match. I don?t know what it would do under the above two conditions. And what it would do would vary depending on which file Dropbox decided to copy first. Given all the above, I might use Dropbox or Box to promulgate copies of a SQLite database, but only if (A) I had an backup of a recent version and the backup system does not involve Dropbox/Box. (B) If I was fairly sure that if I used one computer to update the database, none of the other computers would try to open the file (even just for reading) until a couple of minutes after the updates were done and the service had had time to sync both database and journal file. ---- http://sqlite.1065341.n5.nabble.com/Sqlite-Dropbox-tp95173p95177.html > Is there a recommended procedure for dealing with it? This vendor who uses SQLite for their data storage has the simplest solution for sharing their files via Dropbox: Don't do it. ;) At least, not directly, but this isn't going to work for so many users who don't spend much time monkeying with files directly: https://www.maxqda.com/faq/a-13-can-i-store-my-maxqda-projects-in-cloud-based-services-like-dropbox If the SQlite + Dropbox combo were super-robust we wouldn't see so many purpose-built sync systems out there. Sync systems aren't fun to write and eat a lot of time, so if devs could avoid it so simply they would. But they don't. So many proprietary syncs out there, almost a new one for every app that syncs. And if you look into sync, you find just about every app that came up with a syncing method has a very long blog post about their sync 2.0, needed after whatever they came up with when they got started didn't work out. Every OS vendor has a sync system in their APIs, but for obvious lock-in reasons none of them are compatible with any other. So it's left up to us to figure this stuff out, a million developers all repeating the same wheel-building exercises of Evernote and every other sync-based system.... -- 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 martyknappster at gmail.com Mon Feb 26 20:37:26 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Mon, 26 Feb 2018 17:37:26 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: <7E0E4CF4-FEC2-4AC7-BAEB-F691E215C436@gmail.com> Message-ID: <7A3C18FA-BA75-4DB6-9873-0BB027321094@gmail.com> Thanks for the in-depth reply. Are there known issues with saving LC stacks to Dropbox? I was thinking of Roland's issue with corruption and Phil's suggested fix of watching the file with the tilde character before allowing a quit to complete. I have an app where users create documents (stacks) and saving them to Dropbox is a built-in option. I have one customer who stores their stacks on a network server and a few times they've ended up with a corrupted stack. These stacks are 1-2 mb in size, so nothing huge, but they are of critical importance. I don?t know of anyone having trouble with Dropbox specifically, but if I can do something to make the process more robust, then that would be of great interest. Marty > Knapp Martin wrote: > > > Richard, could you elaborate on the issues with Dropbox? > > I first came across it in a search at Google for "dropbox sqlite", looking for tips on making the most of that relationship. What I found was a long series of support forum and blog posts filled with horror stories of out of sync or corrupted DB files. > > Some merely lose a record. Others lose the DB. And so many have no problem at all that it seems like something we should all be doing, until you look into it far enough to find those who've lost records or the entire DB. > > Of all the things I've read, this forum post covered more ground more succinctly than most: > > ---- > tl;dr: Dropbox fails the ACID test for databases. So does its > competitor Box, which works the same way. Use it for SQLite > databases only if your transfer time exceeds its synch time. > > > > Dropbox does not share files across the internet. It copies > changed files from one computer to its server, then from that > server to all the other computers which have access to that > shared folder. > > Dropbox copies an entire file every time a part of it is updated. > If you have a 200GB database and delete one row, it needs to copy > the entire database file to all the other computers that can > access it. While that works fine for small files, it will involve > a lot of traffic as your files grow in size. > > If two copies of the file are updated at the same time on different > computers, the changes made in one copy disappear. Your > user-interface will ask you which one you want, but you may not > have enough knowledge to pick the 'best' one. > > If Dropbox decides to take a copy while SQLite is in the middle > of processing a transaction, you will temporarily have a copy of > the database with a partially-processed transaction on all the > computers which have access to that shared area. > > Dropbox doesn?t understand that the database file and the journal > file go together, even if they?re in the same folder. And in order > to stop one user from hogging its servers there?s sometimes a short > delay between when it updates its copy of one file and when it > updates its copy of another file. So it?s possible for one computer > which has a copy of the database to have a newer database file than > its journal file, or vice versa. > > SQLite autorepairs files when it finds a database file and a journal > file which don?t match. I don?t know what it would do under the > above two conditions. And what it would do would vary depending on > which file Dropbox decided to copy first. > > Given all the above, I might use Dropbox or Box to promulgate copies > of a SQLite database, but only if > (A) I had an backup of a recent version and the backup system does > not involve Dropbox/Box. > (B) If I was fairly sure that if I used one computer to update the > database, none of the other computers would try to open the file > (even just for reading) until a couple of minutes after the updates > were done and the service had had time to sync both database and > journal file. > ---- > http://sqlite.1065341.n5.nabble.com/Sqlite-Dropbox-tp95173p95177.html > > > > > Is there a recommended procedure for dealing with it? > > This vendor who uses SQLite for their data storage has the simplest solution for sharing their files via Dropbox: Don't do it. ;) At least, not directly, but this isn't going to work for so many users who don't spend much time monkeying with files directly: > > https://www.maxqda.com/faq/a-13-can-i-store-my-maxqda-projects-in-cloud-based-services-like-dropbox > > > If the SQlite + Dropbox combo were super-robust we wouldn't see so many purpose-built sync systems out there. Sync systems aren't fun to write and eat a lot of time, so if devs could avoid it so simply they would. > > But they don't. So many proprietary syncs out there, almost a new one for every app that syncs. > > And if you look into sync, you find just about every app that came up with a syncing method has a very long blog post about their sync 2.0, needed after whatever they came up with when they got started didn't work out. > > Every OS vendor has a sync system in their APIs, but for obvious lock-in reasons none of them are compatible with any other. > > So it's left up to us to figure this stuff out, a million developers all repeating the same wheel-building exercises of Evernote and every other sync-based system.... > > -- > 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 ahsoftware at sonic.net Mon Feb 26 21:22:08 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 26 Feb 2018 18:22:08 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: <7E0E4CF4-FEC2-4AC7-BAEB-F691E215C436@gmail.com> Message-ID: <80252dab-92dc-2d3f-ef88-a705bf536fcc@sonic.net> On 02/26/2018 05:14 PM, Richard Gaskin via use-livecode wrote: > Knapp Martin wrote: > > > Richard, could you elaborate on the issues with Dropbox? > > I first came across it in a search at Google for "dropbox sqlite", > looking for tips on making the most of that relationship.? What I found > was a long series of support forum and blog posts filled with horror > stories of out of sync or corrupted DB files. To counteract some of the FUD, storing a large multiuser database in the cloud with long sync times and no proper locking is just a bad idea in the first place. But unless you've got a particularly huge LiveCode stack, you're not going to see this kind of syncing problem. And typically a Dropbox folder is confined to one user, even if it's replicated on multiple machines, so you're not going to run into multiuser issues. I have quite a lot of files stored on Dropbox, but they're fairly small so the update sync time is very fast. And if the sync fails because of network issues, the cloud copy isn't updated. But I wouldn't put a database on Dropbox precisely because of the problems listed in that article. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Mon Feb 26 22:38:01 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Feb 2018 19:38:01 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: <7A3C18FA-BA75-4DB6-9873-0BB027321094@gmail.com> References: <7A3C18FA-BA75-4DB6-9873-0BB027321094@gmail.com> Message-ID: Knapp Martin wrote: > Thanks for the in-depth reply. Are there known issues with saving LC > stacks to Dropbox? I was thinking of Roland's issue with corruption > and Phil's suggested fix of watching the file with the tilde character > before allowing a quit to complete. I have an app where users create > documents (stacks) and saving them to Dropbox is a built-in option. My hunch (read, "I'm likely wrong, wait for something more definitive from someone on the core team or Brian Milby, since he reads the engine source ) is that LC files are less prone to a wide range of disk-related issues by virtue of being written in a single pass. HyperCard, FileMaker, SQLite, and others are read and written in pages, which works more reliably in some (SQLite) than others (no one misses HC's 504 errors ). Moving stuff in and out of portions of a file that may not change much otherwise isn't necessarily brittle in itself (SQLite as a reputation for being enormously robust), but we can envision how larger SQLite files may confuse a syncing system that can only move chunks of data over a network so quickly. Since LC files are, near as I recall, written fresh from beginning to end with each save command, the result is usually a cleaner file than with some paging systems. And it's also faster to write everything in one pass than writing the same amount of data by moving back and forth throughout a file, so my hunch would be that LC stack files would likely be less prone to error when synced over Dropbox than SQLite files. But by no means should this be taken as gospel, and certainly not as any indication that we should drop SQLite and use stack files instead. Different formats for different purposes. And as Mark Wieder noted, some of the biggest challenges with syncing occur with multiple users accessing a given resource simultaneously. Those are very real challenges, which may be why so many developers over the years keep writing their own sync mechanisms, with no single solution having emerged as the one-size-fits-all answer. Consider this scenario with stack files, for example: Mark writes a stack, then I open it, then you open it. You and I are both making changes, and I save mine a few seconds before you save yours. In that scenario, what's on disk? When I get back to work on the file tomorrow, I'll likely be disappointed to find that everything I'd done is now gone. I can see only your changes, since yours were the last saved and when you saved you hadn't yet updated to have a copy with my changes. So after Dropbox faithfully performs everything we ask it to do, my changes are gone forever. Write-locking can help with things like that, and that's a subject in itself. At what level of granularity should we lock? And before editing begins do we first compare what's in memory with what's in the data store to ensure what we're about to edit is the most recent copy? How do we handle conflicts, when one inevitably occurs? So many ways to handle sync.... > I have one customer who stores their stacks on a network server and > a few times they've ended up with a corrupted stack. Corruption is very interesting to me. Lost data is usually explainable through simple multiuser workflow weaknesses, such as inadequate locking mechanisms. But corruption in LC means something interrupted the write, or overwrote portions before the write was completed. And since LC stacks files are written in a single pass, whatever caused it to corrupt was very efficient at it, as it had little time to do it in. I can conceive of a possible scenario in which neither Dropbox nor LC has a bug per se at all, but which may account for corruption: 1. Your app issues a save command on a large stack. 2. Dropbox begins syncing the file to the server. 3. Your friend has the same file open on his machine. 4. On his machine, Dropbox notices the server has a newer version, and prepares to update his copy. 5. He starts a save in his stack. 6. Dropbox has written a portion of the stack from the server to his disk, but stopped when it noticed the file was being updated. 7. After your friend's save is done, the corrupted stack is then copied to the server, where it later propagates to your machine. RESULT: everyone now has the same file, and it's broken. I haven't studied the file system triggers and server monitoring that trigger reads and writes in Dropbox. And if it's proprietary, chances are no one outside that company has either. There are many ways that imagined scenario might for all I know be accounted for in the way Dropbox is written. But there may also be other scenarios that can produce the same corrupted result that I haven't thought of. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ahsoftware at sonic.net Mon Feb 26 23:16:11 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 26 Feb 2018 20:16:11 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: <7A3C18FA-BA75-4DB6-9873-0BB027321094@gmail.com> Message-ID: <8f914404-b2dc-245e-dd58-02b9f8d37692@sonic.net> On 02/26/2018 07:38 PM, Richard Gaskin via use-livecode wrote: > Consider this scenario with stack files, for example: > > Mark writes a stack, then I open it, then you open it.? You and I are > both making changes, and I save mine a few seconds before you save > yours. In that scenario, what's on disk? Keep in mind the Dropbox and Box are primarily single-user storage applications. I can, for instance, give read access to others, and if I'm feeling wild and crazy I can even give write access, but I have to go out of my way to do this. Normally I'm the only one who can write or even read the files in my folder, even though they're synced to multiple machines under my control. > Corruption is very interesting to me.? Lost data is usually explainable > through simple multiuser workflow weaknesses, such as inadequate locking > mechanisms.? But corruption in LC means something interrupted the write, > or overwrote portions before the write was completed.? And since LC > stacks files are written in a single pass, whatever caused it to corrupt > was very efficient at it, as it had little time to do it in. I *have* had corrupted LiveCode stacks before, and I can count them on two fingers of one hand. One of them was actually sitting in my Dropbox folder, so who knows what happened to it? But my favorite thing about Dropbox is that it stores earlier versions of your files, so I just reverted to an earlier copy of that stack and carried on. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Tue Feb 27 02:37:51 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Feb 2018 01:37:51 -0600 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: <7A3C18FA-BA75-4DB6-9873-0BB027321094@gmail.com> Message-ID: <161d6323898.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On February 26, 2018 9:40:58 PM Richard Gaskin via use-livecode wrote: > There are many ways that imagined scenario might for all I know be > accounted for in the way Dropbox is written. But there may also be > other scenarios that can produce the same corrupted result that I > haven't thought of. Just so Marty won't worry too much, Dropbox handles file conflicts: https://www.dropbox.com/help/syncing-uploads/conflicted-copy "If two people change the same file at the same time, Dropbox won't try to merge the changes. Instead, it will save the original file as well as a second version which has the same name but is appended with "conflicted copy," the name of the person or computer responsible, and the date the conflict occurred. By creating a conflicted file, Dropbox ensures that all changes are preserved and nobody will overwrite another person's hard work." I've seen this happen. It's a pain trying to merge the changes if there are too many but nothing gets lost. I've seen the occasional corrupted LC stack, most recently just last night, but it was an extreme edge case no one else is likely to encounter and I think I know what happened. The solution was "don't do that." -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From toolbook at kestner.de Tue Feb 27 05:15:20 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 27 Feb 2018 11:15:20 +0100 Subject: Can't play anymore mp4 videos with 8.1.7 Message-ID: <006401d3afb3$e0847420$a18d5c60$@kestner.de> Hello, I have some windows machines, which doesn't play anymore my mp4 videos with LC 8.1.7 / 8.1.9 I am using mp4 videos with the standard player object (no quicktime). So that mp4 videos can be played on windows machines you need a mp4 video filter. All my customers install the LAV filter (mp4 filter) and that worked fine with my LC 8.1.4 program. I updated my program with LC 8.1.7 and my videos still play fine on most windows machines, also on my machines. Now I get feedback from two customers, where my videos don't play anymore, the videoscreen just stays black, no error message, the result is empty. My same program has already run fine at these two customers with the 8.1.4 version, so the LAV filters are installed. I made some tests, but couldn' track the issue down. I gave one of theses customers three identical version of my program. One build with LC 8.1.4, one with 8.1.7 one with 8.1.9 without any other changes. Only the 8.1.4 version shows the videos. On the other hand the videos are played fine at most other customers also with my 8.1.7 version. So it seems, like there has something been changed in the LC 8.1.7 engine, which doesn't affect all computers, but some and I have no idea, where to look for. Does anybody from the mothership knows, what has been changed in the multimedia API? Any ideas, what I can do or how I could narrow the issue, if there are no error messages? Thanks for any ideas Tiemo From roland.huettmann at gmail.com Tue Feb 27 10:40:07 2018 From: roland.huettmann at gmail.com (R.H.) Date: Tue, 27 Feb 2018 16:40:07 +0100 Subject: Quit Command corrupts standalone (stack called by standalone splash) Message-ID: Hi Richard and all contributing... Thanks a lot for all answer...))) I have received the corrupted files from clients (original stack that is split into two files during save I guess) and will prepare a bug report attaching them together with the original stack. It is very difficult to know about which machines are creating the problem. Definitely, it happens on other peoples machines using Windows 7 and 10, and it happened before on my own. The standalone will start showing strange behaviors especially when the user clicks the standard Windows close button on the upper left corner. That should usually invoke the "closeStack" handler. Using my own "Quit" menu seems to be safer. Using try and catch and various ways of quitting and saving did not make any difference. The error message using "catch" in the "try" statement should have been written to a separate file on the client's machine, but it did not even create a file. In the IDE there are no errors visible. What happens is that on the user's machine the blueish mouse wheel is turning and then there is no longer any mouse action even on the Desktop and the window turns white and the app becomes non-responsive. After a while, about 30 seconds to 1 minute, the app disappears and also there is no longer any process visible. I will once again try sending a copy without any "save" and just a forced quit and see what happens. Then user would have to save manually before closing -- if that could be a reason for the corrupted file. This is using Indy 8.1.9 but happened in earlier versions as well. Roland From bobsneidar at iotecdigital.com Tue Feb 27 11:09:00 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 16:09:00 +0000 Subject: [OT] Marked as phishing Message-ID: <9A745AFC-C3E3-40CE-B9E9-D534EE161FE7@iotecdigital.com> All my livecode list messages have this at the top: [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] This may be our own Microsoft Online Protection doing this. Anyone else seeing this? Bob S From bobsneidar at iotecdigital.com Tue Feb 27 11:11:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 16:11:35 +0000 Subject: LC 9 DP11 hangs with "Loading Libraries" on Windows 10 In-Reply-To: <11758210-122F-49D0-88E6-5A1EE6484116@m-r-d.de> References: <11758210-122F-49D0-88E6-5A1EE6484116@m-r-d.de> Message-ID: My guess is there is something wrong with that library or the next one in line. Bob S > On Feb 23, 2018, at 05:08 , Matthias Rebbe via use-livecode wrote: > > Hi Panos, > > thanks for your comment. > > Unfortunately i cannot see anything helpful. The log stops at "Loading library revIDELibrary" > > I will file a bug. > > Regards, > Matthias From bobsneidar at iotecdigital.com Tue Feb 27 11:25:59 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 16:25:59 +0000 Subject: Password Checker In-Reply-To: References: Message-ID: I would highly recommend NOT typing ANY current password you are using into a web page like this. If no one knew about it before, they sure as hell know it now! Whether they avail themselves of it is anyone's guess. Bob S > On Feb 24, 2018, at 13:17 , J. Landman Gay via use-livecode wrote: > > I just got around to trying this -- *very* useful, thanks for posting it. > > There are no matches for any of my passwords I've tried so far. :) On > the other hand, even "AbrahamLincoln" has 128 matches. And you have to > insert commas to read the number returned for "qwerty". > From gcanyon at gmail.com Tue Feb 27 11:38:40 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 27 Feb 2018 08:38:40 -0800 Subject: [OT] Marked as phishing In-Reply-To: <9A745AFC-C3E3-40CE-B9E9-D534EE161FE7@iotecdigital.com> References: <9A745AFC-C3E3-40CE-B9E9-D534EE161FE7@iotecdigital.com> Message-ID: For years gmail would occasionally mark list messages as spam, enough so that I created a rule to filter them to save them (since there wasn't any way to slap gmail and say "not spam!"). It hasn't happened in some time, I'm not sure how long. On Tue, Feb 27, 2018 at 8:09 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > All my livecode list messages have this at the top: > > [This message was identified as a phishing scam. Learn about phishing at > http://aka.ms/LearnAboutPhishing] > > This may be our own Microsoft Online Protection doing this. Anyone else > seeing this? > > Bob S > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Feb 27 12:57:09 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Feb 2018 11:57:09 -0600 Subject: Password Checker In-Reply-To: References: Message-ID: <161d8693508.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I wouldn't type into that web page either. I used Brian's handler that uses their API and only sends a few characters of the hash to the database. The article explains how it works and includes ways to set up the system on your own server if you want. After reading through it I was convinced it was a safe check. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 27, 2018 10:26:48 AM Bob Sneidar via use-livecode wrote: > I would highly recommend NOT typing ANY current password you are using into > a web page like this. If no one knew about it before, they sure as hell > know it now! Whether they avail themselves of it is anyone's guess. > > Bob S > > >> On Feb 24, 2018, at 13:17 , J. Landman Gay via use-livecode >> wrote: >> >> I just got around to trying this -- *very* useful, thanks for posting it. >> >> There are no matches for any of my passwords I've tried so far. :) On >> the other hand, even "AbrahamLincoln" has 128 matches. And you have to >> insert commas to read the number returned for "qwerty". >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 27 13:55:53 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 27 Feb 2018 13:55:53 -0500 Subject: Password Checker In-Reply-To: <161d8693508.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <161d8693508.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Troy is a beast in the security community, so I would not be too worried about him doing something nefarious. He is constantly working with white hats and blue teams to get on top of issues as soon as there is even a peep on the dark web. On Tue, Feb 27, 2018 at 12:57 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I wouldn't type into that web page either. I used Brian's handler that > uses their API and only sends a few characters of the hash to the database. > The article explains how it works and includes ways to set up the system on > your own server if you want. After reading through it I was convinced it > was a safe check. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On February 27, 2018 10:26:48 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > I would highly recommend NOT typing ANY current password you are using >> into a web page like this. If no one knew about it before, they sure as >> hell know it now! Whether they avail themselves of it is anyone's guess. >> >> Bob S >> >> >> On Feb 24, 2018, at 13:17 , J. Landman Gay via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> I just got around to trying this -- *very* useful, thanks for posting it. >>> >>> There are no matches for any of my passwords I've tried so far. :) On >>> the other hand, even "AbrahamLincoln" has 128 matches. And you have to >>> insert commas to read the number returned for "qwerty". >>> >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From jacque at hyperactivesw.com Tue Feb 27 15:20:56 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Feb 2018 14:20:56 -0600 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: References: Message-ID: On 2/27/18 9:40 AM, R.H. via use-livecode wrote: > The standalone will start showing strange behaviors especially when the > user clicks the standard Windows close button on the upper left corner. > That should usually invoke the "closeStack" handler. I'd submit a bug report for this, but as a workaround, try a closeStackRequest handler to save the stack. This message happens before closeStack is sent, and may be a safer way to manage the file. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Feb 27 15:27:22 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Feb 2018 14:27:22 -0600 Subject: Password Checker In-Reply-To: References: <161d8693508.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4959314f-6b03-e0a0-b592-053ebb754a18@hyperactivesw.com> Right, I wasn't worried about Troy's site. But I read through the comments and there was a criticism that the site was vulnerable to malicious intrusions. Because I wasn't using the site itself I didn't worry. Troy also explained why the critcism wasn't entirely valid, but the commenter was still fairly vicious about it. On 2/27/18 12:55 PM, Mike Kerner via use-livecode wrote: > Troy is a beast in the security community, so I would not be too worried > about him doing something nefarious. He is constantly working with white > hats and blue teams to get on top of issues as soon as there is even a peep > on the dark web. > > On Tue, Feb 27, 2018 at 12:57 PM, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I wouldn't type into that web page either. I used Brian's handler that >> uses their API and only sends a few characters of the hash to the database. >> The article explains how it works and includes ways to set up the system on >> your own server if you want. After reading through it I was convinced it >> was a safe check. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On February 27, 2018 10:26:48 AM Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I would highly recommend NOT typing ANY current password you are using >>> into a web page like this. If no one knew about it before, they sure as >>> hell know it now! Whether they avail themselves of it is anyone's guess. >>> >>> Bob S >>> >>> >>> On Feb 24, 2018, at 13:17 , J. Landman Gay via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> I just got around to trying this -- *very* useful, thanks for posting it. >>>> >>>> There are no matches for any of my passwords I've tried so far. :) On >>>> the other hand, even "AbrahamLincoln" has 128 matches. And you have to >>>> insert commas to read the number returned for "qwerty". >>>> >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 bobsneidar at iotecdigital.com Tue Feb 27 16:16:43 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 21:16:43 +0000 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: Message-ID: <32DFB02C-10A2-471C-8F26-10C2BFD44F1C@iotecdigital.com> Do you mean: send "rawKeyDown" WITH 113? Bob S > On Feb 25, 2018, at 02:09 , Richmond Mathewson via use-livecode wrote: > > on mouseUp > send "rawKeyDown" to key 113 > end mouseUp > > in the cardScript: > > on rawKeyDown XX > get keyUp XX > put XX somewhere useful > end rawKeyDown > > Richmond. From bobsneidar at iotecdigital.com Tue Feb 27 16:30:22 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 21:30:22 +0000 Subject: Question about the result In-Reply-To: References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> Message-ID: <7655A451-2515-4F7C-A866-3489E443B988@iotecdigital.com> This is a long standing gripe by some. Many functions return empty if no error was encountered. As previously mentioned, if you were able to contact a URL and it returned data, then from the engine's perspective, there was no error. Some have suggested a feature/fix to the result that it would always return something, instead of just empty, but that would require a great deal of refactoring by everyone who's code checks the result in any way. That kind of change is like pulling the last tooth from a ravenous lion. Who will perform the surgery, and then suffer the ire of the general LC community? There would have to be some other variable that was returned instead, like the realresult or the extendedresult (extresult) or the result ["successmsg"]. Bob S > On Feb 25, 2018, at 07:26 , jbv via use-livecode wrote: > > Mike > Thanks for your reply. > Actually, in the 2 cases I mentioned, I was able to find the origin of the > problem. > The only point I was trying to make is that each time the result was of no > help since it remained empty. From bobsneidar at iotecdigital.com Tue Feb 27 16:33:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 21:33:33 +0000 Subject: Question about the result In-Reply-To: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> Message-ID: <99B94D3A-B7EC-44DE-81F0-5D51404CF033@iotecdigital.com> That is curious. I actually get data back from that exact URL! I know you were using my domain.com as a placeholder, but that domain is a real one! Bob S > On Feb 25, 2018, at 05:50 , jbv via use-livecode wrote: > > put URL ("http://mydomain.com/index.php?" & it) into myVar From bobsneidar at iotecdigital.com Tue Feb 27 16:37:45 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 21:37:45 +0000 Subject: Question about the result In-Reply-To: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> References: <93184399f787e7005375a1ee8725f96e.squirrel@sage.on-rev.com> Message-ID: Ohay when I substitute bobbybleh.com for the domain, I get: tsneterr: (6) Could not resolve host: bobbybleh.com in the result. Bob S > On Feb 25, 2018, at 05:50 , jbv via use-livecode wrote: > > put URL ("http://mydomain.com/index.php?" & it) into myVar From bobsneidar at iotecdigital.com Tue Feb 27 16:40:58 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 21:40:58 +0000 Subject: widget properties In-Reply-To: References: Message-ID: <731BDB30-CD37-4462-BEBB-A15646546A3A@iotecdigital.com> +1 Sounds like a good idea. The only bugaboo I see is if the properties of a widget were in some other format than an LC string, but I don't know that. Bob S > On Feb 24, 2018, at 12:19 , Richard Gaskin via use-livecode wrote: > > [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] > > Brian Milby wrote: > > >> > Brian M. wrote: > >> > One other thing that could be done is to extend the export to > >> > include everything that the engine knows about the widget (i.e. > >> > add the properties array to it). > >> > >> The widget author can already do that by defining a list of > >> persistent properties. Why should the engine override that? > > > > I see this as a unification rather than override. > > Exactly. My request is almost exactly as you worded it, but in reverse: > rather than adding the info obtainable from the universally-supported > "the properties" to something widget-specific, I'm suggesting the engine > have an enhancement to add the widget-specific info to the > universally-supported "the properties" info. > > This suggestion would seem to address hh's concern as well: > > The documentation and property-infos are a *lot* of work and will > > raise the price of a widget (if not free), just as with standalones > > or externals. > > By having an engine-level enhancement to include the values already > supplied by the widget per the widget spec included in the existing "the > properties" function, we would then have one universal array to work > with which would adequately describe any object with no additional work > needed from any widget developer. > > Consider the LC IDE's Inspector: to populate its controls it obtains > "the properties" from all LC-native objects, and "the properties" + > widget-specific info from widgets. > > If the engine included the widget-specific info in "the properties", the > Inspector need only query one place to obtain all relevant info about an > object. > > And given that "the properties" was introduced to provide a universal > way of obtaining object info, and that widgets were introduced as a way > to provide native-like objects without requiring engine-level > implementation, honoring the purpose of "the properties" by extending it > to include widget-specific info would seem every bit as useful as having > "the properties" has been until the introduction of widgets. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Feb 27 16:56:44 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Feb 2018 21:56:44 +0000 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: <1519428022915-0.post@n4.nabble.com> References: <1519428022915-0.post@n4.nabble.com> Message-ID: <9B1B44C4-5CAE-439C-B928-A153A838EF35@iotecdigital.com> I save all my stacks on closeTack, that is until I ran into problems with Windows sandboxing in a standalone. I had to conditionally save stacks only if I was in development. Bob S > On Feb 23, 2018, at 15:20 , tbodine via use-livecode wrote: > > Hi Roland. > > The "~" file is the original (uncorrupted, unsaved) version of your stack > before LC executed your Save cmd. If you remove the "~" from the filename, > you'll probably find you can open that. LC creates the "~" file at the start > of the save operation and, if all goes well, removes that file when save is > complete. > > My guess is your problem is rooted in the lengthy save time in the quit > routine. Here are a couple ideas of how you could deal with that: > > 1) Do the save within a try/catch statement so you can deal with any error. > > 2) If you are just saving some user data like prefs or fairly minor stuff, > then why not save that into a separate substack outside of your main > application stack? That should greatly shorten the time it takes to save. > > Hope that helps. > > Tom Bodine From mark at canelasoftware.com Tue Feb 27 17:00:36 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Tue, 27 Feb 2018 14:00:36 -0800 Subject: Navigator Update In-Reply-To: References: Message-ID: <4F521A2A-1F2D-438B-BBC8-1CF724EEDD03@canelasoftware.com> > On Feb 24, 2018, at 11:23 AM, Geoff Canyon via use-livecode wrote: > > -- A new command Open in New Navigator when right-clicking on any set of > containers: groups, cards, or stacks -- which will open all of the > containers, each in their own copy of Navigator. Hi Geoff, If I use this feature on a group, I get a replica of the original Navigator window. Am I supposed to see just the group and its controls in the new Navigator window? Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com From ali.lloyd at livecode.com Tue Feb 27 18:28:07 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Tue, 27 Feb 2018 23:28:07 +0000 Subject: LC 9 DP11 hangs with "Loading Libraries" on Windows 10 In-Reply-To: References: <11758210-122F-49D0-88E6-5A1EE6484116@m-r-d.de> Message-ID: Ah, I have just realised this may well be caused by http://quality.livecode.com/show_bug.cgi?id=20970 You could try the workaround described there. On Tue, Feb 27, 2018 at 4:11 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > My guess is there is something wrong with that library or the next one in > line. > > Bob S > > > > On Feb 23, 2018, at 05:08 , Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Panos, > > > > thanks for your comment. > > > > Unfortunately i cannot see anything helpful. The log stops at "Loading > library revIDELibrary" > > > > I will file a bug. > > > > Regards, > > 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 martyknappster at gmail.com Tue Feb 27 18:36:44 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Tue, 27 Feb 2018 15:36:44 -0800 Subject: Quit Command corrupts standalone (stack called by standalone splash) In-Reply-To: <40886e6a-472a-e499-8384-e3ea9aff8611@pdslabs.net> References: <1519428022915-0.post@n4.nabble.com> <40886e6a-472a-e499-8384-e3ea9aff8611@pdslabs.net> Message-ID: <6B0A75BD-5830-4C1F-985D-126EA5B4542F@gmail.com> What about using shutDownRequest? If you don?t pass it, it prevents the quit from happening. Marty > Let me improve this a bit. > > > On 2/23/18 4:19 PM, Phil Davis via use-livecode wrote: >> Roland, >> >> I believe Tom is exactly right. I would restructure your two closing handlers like this: >> >> >> local sMyFilename >> >> on closeStack >> put the filename of me into sMyFilename >> saveMe >> send "quitMe" in 1 second >> end closeStack > > on closeStack > put the filename of me into sMyFilename > send "quitMe" to me in 1 second > saveMe > end closeStack > > > "quitMe" should be sent before 'saveMe' is executed, because the 'save' command is blocking. It would prevent 'quitMe' from being sent until (in this case) 1 second after 'saveMe' has finished. > > Thanks - > Phil > >> >> >> command saveMe >> lock cursor /* Tested with and without locking and showing cursor */ >> set the cursor to watch >> save this stack /* auto save, takes a long time, between 10-30 secs */ >> end saveMe >> >> >> command quitMe >> if there is a file sMyFilename then >> unlock cursor >> lock messages >> quit >> else >> send "quitMe" to me in 0.5 seconds -- or in your preferred time >> end if >> end quitMe >> >> >> The above was not tested but it should solve the problem. >> >> HTH - >> Phil Davis >> >> >> >> On 2/23/18 3:20 PM, tbodine via use-livecode wrote: >>> Hi Roland. >>> >>> The "~" file is the original (uncorrupted, unsaved) version of your stack >>> before LC executed your Save cmd. If you remove the "~" from the filename, >>> you'll probably find you can open that. LC creates the "~" file at the start >>> of the save operation and, if all goes well, removes that file when save is >>> complete. >>> >>> My guess is your problem is rooted in the lengthy save time in the quit >>> routine. Here are a couple ideas of how you could deal with that: >>> >>> 1) Do the save within a try/catch statement so you can deal with any error. >>> >>> 2) If you are just saving some user data like prefs or fairly minor stuff, >>> then why not save that into a separate substack outside of your main >>> application stack? That should greatly shorten the time it takes to save. >>> >>> Hope that helps. >>> >>> Tom Bodine >>> >>> >>> >>> -- >>> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > > -- > 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 gcanyon at gmail.com Tue Feb 27 18:55:02 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 27 Feb 2018 15:55:02 -0800 Subject: Navigator Update In-Reply-To: <4F521A2A-1F2D-438B-BBC8-1CF724EEDD03@canelasoftware.com> References: <4F521A2A-1F2D-438B-BBC8-1CF724EEDD03@canelasoftware.com> Message-ID: Yep, you should be able to select any combination of stacks, cards, and groups, then select Open in New Navigator and get a new Navigator for each one of them, showing the controls for them. If some aspect of the targeting process fails, it does so silently because Navigator has the "rev" prefix and skips debugging. Also, as it turns out (I spent a few minutes between sentences looking at this) I made a mistake in parsing targets into globals. It's fixed in my local copy. I'm going to look at the other thing you sent in, and then post an update in a bit. gc On Tue, Feb 27, 2018 at 2:00 PM, Mark Talluto via use-livecode < use-livecode at lists.runrev.com> wrote: > > On Feb 24, 2018, at 11:23 AM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > -- A new command Open in New Navigator when right-clicking on any set of > > containers: groups, cards, or stacks -- which will open all of the > > containers, each in their own copy of Navigator. > > Hi Geoff, > > If I use this feature on a group, I get a replica of the original > Navigator window. Am I supposed to see just the group and its controls in > the new Navigator window? > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > canelasoftware.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 gcanyon at gmail.com Tue Feb 27 19:27:08 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 27 Feb 2018 16:27:08 -0800 Subject: Navigator Update In-Reply-To: References: <4F521A2A-1F2D-438B-BBC8-1CF724EEDD03@canelasoftware.com> Message-ID: Fixed. It's up on GitHub and at the download. On Tue, Feb 27, 2018 at 3:55 PM, Geoff Canyon wrote: > Yep, you should be able to select any combination of stacks, cards, and > groups, then select Open in New Navigator and get a new Navigator for each > one of them, showing the controls for them. If some aspect of the targeting > process fails, it does so silently because Navigator has the "rev" prefix > and skips debugging. Also, as it turns out (I spent a few minutes between > sentences looking at this) I made a mistake in parsing targets into > globals. It's fixed in my local copy. I'm going to look at the other thing > you sent in, and then post an update in a bit. > > gc > > On Tue, Feb 27, 2018 at 2:00 PM, Mark Talluto via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > On Feb 24, 2018, at 11:23 AM, Geoff Canyon via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > -- A new command Open in New Navigator when right-clicking on any set of >> > containers: groups, cards, or stacks -- which will open all of the >> > containers, each in their own copy of Navigator. >> >> Hi Geoff, >> >> If I use this feature on a group, I get a replica of the original >> Navigator window. Am I supposed to see just the group and its controls in >> the new Navigator window? >> >> Best regards, >> >> Mark Talluto >> livecloud.io >> nursenotes.net >> canelasoftware.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 mark at canelasoftware.com Tue Feb 27 19:45:38 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Tue, 27 Feb 2018 16:45:38 -0800 Subject: Navigator Update In-Reply-To: References: <4F521A2A-1F2D-438B-BBC8-1CF724EEDD03@canelasoftware.com> Message-ID: <971A0EF5-EEB3-4BE0-976D-86E7D3E1457C@canelasoftware.com> Tested. Working. Thx. Mark Talluto > On Feb 27, 2018, at 4:27 PM, Geoff Canyon wrote: > > Fixed. It's up on GitHub and at the download. > > On Tue, Feb 27, 2018 at 3:55 PM, Geoff Canyon > wrote: > Yep, you should be able to select any combination of stacks, cards, and groups, then select Open in New Navigator and get a new Navigator for each one of them, showing the controls for them. If some aspect of the targeting process fails, it does so silently because Navigator has the "rev" prefix and skips debugging. Also, as it turns out (I spent a few minutes between sentences looking at this) I made a mistake in parsing targets into globals. It's fixed in my local copy. I'm going to look at the other thing you sent in, and then post an update in a bit. > > gc > > On Tue, Feb 27, 2018 at 2:00 PM, Mark Talluto via use-livecode > wrote: > > On Feb 24, 2018, at 11:23 AM, Geoff Canyon via use-livecode > wrote: > > > > -- A new command Open in New Navigator when right-clicking on any set of > > containers: groups, cards, or stacks -- which will open all of the > > containers, each in their own copy of Navigator. > > Hi Geoff, > > If I use this feature on a group, I get a replica of the original Navigator window. Am I supposed to see just the group and its controls in the new Navigator window? > > Best regards, > > Mark Talluto > livecloud.io > > nursenotes.net > > canelasoftware.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 gcanyon at gmail.com Wed Feb 28 00:14:45 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 27 Feb 2018 21:14:45 -0800 Subject: You should avoid using "Open in New Navigator" in Navigator Message-ID: I've updated GitHub and the download to remove it for now. Under some circumstances (that I can't replicate just yet) "Open in New Navigator" can fail in a way that seems to mess with the dialogs in the IDE. If you happen to trigger this, you'll likely see a dialog that contains the word "something" and no buttons; I saw this during development, but thought it was banished (I didn't know it was possible to mess up dialogs, and I still don't know how it's even possible to open a dialog with no buttons, and it's not even my code that's opening the dialog -- I think). If it happens to you, apologies, and pressing the enter key should (did, for me) dismiss it. Restarting LC is the best recourse. In any case, don't use that function if you do see it, and this copy of Navigator has it disabled for now: Get Navigator here . Or get it from GitHub: Navigator's GitHub page From richmondmathewson at gmail.com Wed Feb 28 03:32:45 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 28 Feb 2018 10:32:45 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: <32DFB02C-10A2-471C-8F26-10C2BFD44F1C@iotecdigital.com> References: <32DFB02C-10A2-471C-8F26-10C2BFD44F1C@iotecdigital.com> Message-ID: No, I don't: (Handler: can't find handler) near "rawKeyDown", char 1 Richmond. On 27/2/2018 11:16 pm, Bob Sneidar via use-livecode wrote: > Do you mean: > > send "rawKeyDown" WITH 113? > > Bob S > > >> On Feb 25, 2018, at 02:09 , Richmond Mathewson via use-livecode wrote: >> >> on mouseUp >> send "rawKeyDown" to key 113 >> end mouseUp >> >> in the cardScript: >> >> on rawKeyDown XX >> get keyUp XX >> put XX somewhere useful >> end rawKeyDown >> >> 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 Feb 28 04:06:57 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 28 Feb 2018 10:06:57 +0100 Subject: IDE Cursor icon often hangs on windows Message-ID: <002801d3b073$7c6ef350$754cd9f0$@kestner.de> Hello, On Windows, since LC 8 the icon of the cursor often "hangs", it just keeps the icon from the last action and doesn't changes back to the standard pointer icon when moving around the screen, so that I often have to select any action with the "resize cursor" - just an example. It's not essential, but a little bit annoying. Anything I can do? Is it known? Shall a file a bug report, though it will be hard to make a recepie? Tiemo From hh at hyperhh.de Wed Feb 28 04:19:11 2018 From: hh at hyperhh.de (hh) Date: Wed, 28 Feb 2018 10:19:11 +0100 Subject: send "keyUp" / "rawKeyUp" ? Message-ID: If I understand correctly what you have in mind then you could try the following. Clicking the button will place one copy of numToCodepoint(M) into both fld 1 and fld 2. Type into the fields as usual, especially you can delete. Typing outside the fields ("blind") will put one copy of space&char into fld 1 and two copies of space&char into fld 2. on mouseUp put 113 into M send "rawkeyDown M" to me end mouseUp In card's script: on rawKeyDown N if the target contains "field " then pass rawKeyDown put numToCodepoint(N) into X send "keyUp X" to me put space & X after fld 1 end rawKeyDown on keyUp K if the target contains "field " then pass keyUp put space & K after fld 2 end keyUp > Richmond M. wrote: > Here we go again: I reply to my own posting: > > So: I have 2 fields and a button; the button having this sort of script: > > on mouseUp > put empty into fld "fff" > select after fld "fff" > type "q" > end mouseUp > > and the cardScript of the stack having this sort of script: > > on rawKeyDown RD > put empty into fld "sss" > put RD into fld "sss" > end rawKeyDown > > at which point, on clicking on the button I get "113" > in field "sss", and, oddly enough, empty in field "fff". > > Of course that doesn't help me at all as I want to do things the other > way round: > > i.e. I want to send a rawKeyDown signal that fakes typing on the key on > my keyboard that has the underlying rawKey code of 113. From richmondmathewson at gmail.com Wed Feb 28 05:08:45 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 28 Feb 2018 12:08:45 +0200 Subject: send "keyUp" / "rawKeyUp" ? In-Reply-To: References: Message-ID: <85370980-313e-61c9-f3bc-2a98995799cb@gmail.com> Well . . . That puts "q" into both fields with a US English keyboard layout . . . & ?? ???? (whoops) it ALSO puts "q" into both fields with a Bulgarian keyboard layout. So "NBG" I'm afraid. Thanks for the suggestion :-) Richmond. P.S. Had to change 'N' to 'M'. On 28/2/2018 11:19 am, hh via use-livecode wrote: > If I understand correctly what you have in mind then you could > try the following. > > Clicking the button will place one copy of numToCodepoint(M) > into both fld 1 and fld 2. > Type into the fields as usual, especially you can delete. > Typing outside the fields ("blind") will put one copy of > space&char into fld 1 and two copies of space&char into fld 2. > > on mouseUp > put 113 into M > send "rawkeyDown M" to me > end mouseUp > > In card's script: > > on rawKeyDown N > if the target contains "field " > then pass rawKeyDown > put numToCodepoint(N) into X > send "keyUp X" to me > put space & X after fld 1 > end rawKeyDown > > on keyUp K > if the target contains "field " > then pass keyUp > put space & K after fld 2 > end keyUp > >> Richmond M. wrote: >> Here we go again: I reply to my own posting: >> >> So: I have 2 fields and a button; the button having this sort of script: >> >> on mouseUp >> put empty into fld "fff" >> select after fld "fff" >> type "q" >> end mouseUp >> >> and the cardScript of the stack having this sort of script: >> >> on rawKeyDown RD >> put empty into fld "sss" >> put RD into fld "sss" >> end rawKeyDown >> >> at which point, on clicking on the button I get "113" >> in field "sss", and, oddly enough, empty in field "fff". >> >> Of course that doesn't help me at all as I want to do things the other >> way round: >> >> i.e. I want to send a rawKeyDown signal that fakes typing on the key on >> my keyboard that has the underlying rawKey code of 113. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From williamdesmet at gmail.com Wed Feb 28 06:28:54 2018 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 28 Feb 2018 12:28:54 +0100 Subject: CameraControl gives wrong rect and rotated preview on iPad Message-ID: Hi there, What's wrong with cameraControl on iPad? In the IDE everything works fine: cameracontrol is shown on the given rect. On iPad the rect is much smaller and the preview is rotated. In the standalone iPad settings 'Landscape Left' and 'landscape Rght' are activated. Is this a bug? I am on LC 8.1.8. greetings, William From livfoss at mac.com Wed Feb 28 06:38:48 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 28 Feb 2018 12:38:48 +0100 Subject: Background color in an 'answer' dialog? Message-ID: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> I have created hundreds of LC ?answer? commands in my time, and as far as I can remember they all had white backgrounds. Recently I accidentally created one with a lovely red background, showing up in standalones on both Mac High Sierra and Windows 7. Well, it would be lovely if i wanted it that way? When I edited some lines of script, the background reverted to white! There is nothing in the LC Dictionary suggesting that this color can be set - can anyone say what I did and how to control the color? Graham From merakosp at gmail.com Wed Feb 28 06:55:24 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 28 Feb 2018 11:55:24 +0000 Subject: Background color in an 'answer' dialog? In-Reply-To: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> Message-ID: Hi Graham, You can set this by script, something like: set the backcolor of stack "answer dialog" to red;answer "Hello" Best, Panos -- On Wed, Feb 28, 2018 at 11:38 AM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > I have created hundreds of LC ?answer? commands in my time, and as far as > I can remember they all had white backgrounds. Recently I accidentally > created one with a lovely red background, showing up in standalones on both > Mac High Sierra and Windows 7. Well, it would be lovely if i wanted it that > way? > > When I edited some lines of script, the background reverted to white! > > There is nothing in the LC Dictionary suggesting that this color can be > set - can anyone say what I did and how to control the color? > > Graham > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Feb 28 07:20:47 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 28 Feb 2018 14:20:47 +0200 Subject: [OT] Haiku OS Message-ID: <879ca67e-3865-d30c-7f46-bef5d9fbb21c@gmail.com> https://www.haiku-os.org/ Does anyone know if Haiku OS; 1. Shows any sign whatsoever of gaining any traction? 2. Is there any point of attempting to compile LiveCode for Haiku OS (beyond a spare time project)? Richmond. From roland.huettmann at gmail.com Wed Feb 28 07:22:09 2018 From: roland.huettmann at gmail.com (R.H.) Date: Wed, 28 Feb 2018 13:22:09 +0100 Subject: IDE Cursor icon often hangs on windows Message-ID: I have this same problem of hanging cursor on Windows in the Script Editor. Clicking outside of the SE changes the cursor to normal behavior. But it is a bit annoying, yes. A bug report would be nice. Roland From dunbarx at aol.com Wed Feb 28 08:43:04 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 28 Feb 2018 06:43:04 -0700 (MST) Subject: Background color in an 'answer' dialog? In-Reply-To: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> Message-ID: <1519825384638-0.post@n4.nabble.com> This is a great example of the maxim "Everything in LC is simply a stack" Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dunbarx at aol.com Wed Feb 28 08:50:04 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 28 Feb 2018 06:50:04 -0700 (MST) Subject: Background color in an 'answer' dialog? In-Reply-To: <1519825384638-0.post@n4.nabble.com> References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> Message-ID: <1519825804594-0.post@n4.nabble.com> As a follow-up, is there anywhere a list of all IDE stacks? For example, the stack named "answer dialog", though perfectly logical, is not listed anywhere, and the names of some stacks, like the script editor, have changed over the several LC versions. It is a great way to get oneself in real trouble, but also useful if one wants red answer dialog boxes. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From merakosp at gmail.com Wed Feb 28 08:59:19 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 28 Feb 2018 13:59:19 +0000 Subject: Background color in an 'answer' dialog? In-Reply-To: <1519825804594-0.post@n4.nabble.com> References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> <1519825804594-0.post@n4.nabble.com> Message-ID: Hi Craig, You can "force" all the (open) IDE stacks to appear in the Project Browser: in the menubar: "View" -> "Show IDE stacks in Lists" Another way is to type in the msg box: put the name of the mousestack but do NOT press Enter yet. Then place the cursor over the stack whose name you want to know, and then press Enter. Hope this helps, Panos -- On Wed, Feb 28, 2018 at 1:50 PM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > As a follow-up, is there anywhere a list of all IDE stacks? For example, > the > stack named "answer dialog", though perfectly logical, is not listed > anywhere, and the names of some stacks, like the script editor, have > changed > over the several LC versions. > > It is a great way to get oneself in real trouble, but also useful if one > wants red answer dialog boxes. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Wed Feb 28 08:59:19 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 28 Feb 2018 13:59:19 +0000 Subject: Background color in an 'answer' dialog? In-Reply-To: <1519825804594-0.post@n4.nabble.com> References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> <1519825804594-0.post@n4.nabble.com> Message-ID: Hi Craig, You can "force" all the (open) IDE stacks to appear in the Project Browser: in the menubar: "View" -> "Show IDE stacks in Lists" Another way is to type in the msg box: put the name of the mousestack but do NOT press Enter yet. Then place the cursor over the stack whose name you want to know, and then press Enter. Hope this helps, Panos -- On Wed, Feb 28, 2018 at 1:50 PM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > As a follow-up, is there anywhere a list of all IDE stacks? For example, > the > stack named "answer dialog", though perfectly logical, is not listed > anywhere, and the names of some stacks, like the script editor, have > changed > over the several LC versions. > > It is a great way to get oneself in real trouble, but also useful if one > wants red answer dialog boxes. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Wed Feb 28 09:50:50 2018 From: dunbarx at aol.com (dunbarx) Date: Wed, 28 Feb 2018 07:50:50 -0700 (MST) Subject: Background color in an 'answer' dialog? In-Reply-To: References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> <1519825804594-0.post@n4.nabble.com> Message-ID: <1519829450879-0.post@n4.nabble.com> Panos. Ah, of course. Thanks. I see one can get into real trouble. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From harrison at all-auctions.com Wed Feb 28 09:52:54 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 28 Feb 2018 09:52:54 -0500 Subject: [OT] Haiku OS In-Reply-To: <879ca67e-3865-d30c-7f46-bef5d9fbb21c@gmail.com> References: <879ca67e-3865-d30c-7f46-bef5d9fbb21c@gmail.com> Message-ID: <077397EA-5A04-4041-9DE6-E9E13A161B5A@all-auctions.com> Hi Richmond, Current Official Version Information Version: R1/Alpha 4.1 Release date: November 14th, 2012 Computer platform: x86-32 Something that hasn?t seen an update since 2012 probably isn?t getting much traction at all. I hope you find this information somewhat helpful. Rick > On Feb 28, 2018, at 7:20 AM, Richmond Mathewson via use-livecode wrote: > > https://www.haiku-os.org/ > > Does anyone know if Haiku OS; > > 1. Shows any sign whatsoever of gaining any traction? > > 2. Is there any point of attempting to compile LiveCode for Haiku OS (beyond a spare time project)? > > 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 williamdesmet at gmail.com Wed Feb 28 09:56:41 2018 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 28 Feb 2018 15:56:41 +0100 Subject: [OT] Haiku OS In-Reply-To: <077397EA-5A04-4041-9DE6-E9E13A161B5A@all-auctions.com> References: <879ca67e-3865-d30c-7f46-bef5d9fbb21c@gmail.com> <077397EA-5A04-4041-9DE6-E9E13A161B5A@all-auctions.com> Message-ID: This is probably more interesting: https://www.omgubuntu.co.uk/2018/02/google-enable-linux-apps-chrome-os-recent-code-commits-suggest greetings, William 2018-02-28 15:52 GMT+01:00 Rick Harrison via use-livecode < use-livecode at lists.runrev.com>: > Hi Richmond, > > Current Official Version Information > > Version: R1/Alpha 4.1 > Release date: November 14th, 2012 > Computer platform: x86-32 > Something that hasn?t seen an update since 2012 > probably isn?t getting much traction at all. > > I hope you find this information somewhat helpful. > > Rick > > > On Feb 28, 2018, at 7:20 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > https://www.haiku-os.org/ > > > > Does anyone know if Haiku OS; > > > > 1. Shows any sign whatsoever of gaining any traction? > > > > 2. Is there any point of attempting to compile LiveCode for Haiku OS > (beyond a spare time project)? > > > > 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 livfoss at mac.com Wed Feb 28 10:01:40 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 28 Feb 2018 16:01:40 +0100 Subject: Background color in an 'answer' dialog? In-Reply-To: <1519825804594-0.post@n4.nabble.com> References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> <1519825804594-0.post@n4.nabble.com> Message-ID: Craig, you make an excellent point. We now know there is a stack named ?answer dialog? and that it has properties you can set. Surely the documentation should explain this somewhere? By the way, when I said my red background had disappeared, it hadn?t. It?s just that when you I through the script in the IDE, the background comes up white, whereas in the standalone (both platforms), it comes up red. A bug, surely? I will see if I can boil it down far enough to report it. Graham > On 28 Feb 2018, at 14:50, dunbarx via use-livecode wrote: > > As a follow-up, is there anywhere a list of all IDE stacks? For example, the > stack named "answer dialog", though perfectly logical, is not listed > anywhere, and the names of some stacks, like the script editor, have changed > over the several LC versions. > > It is a great way to get oneself in real trouble, but also useful if one > wants red answer dialog boxes. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Wed Feb 28 10:05:57 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 28 Feb 2018 16:05:57 +0100 Subject: Background color in an 'answer' dialog? In-Reply-To: <1519825804594-0.post@n4.nabble.com> References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> <1519825804594-0.post@n4.nabble.com> Message-ID: Should have said ?when I run through the script in the IDE??. Sorry ===== Craig, you make an excellent point. We now know there is a stack named ?answer dialog? and that it has properties you can set. Surely the documentation should explain this somewhere? By the way, when I said my red background had disappeared, it hadn?t. It?s just that when you I through the script in the IDE, the background comes up white, whereas in the standalone (both platforms), it comes up red. A bug, surely? I will see if I can boil it down far enough to report it. Graham > On 28 Feb 2018, at 14:50, dunbarx via use-livecode wrote: > > As a follow-up, is there anywhere a list of all IDE stacks? For example, the > stack named "answer dialog", though perfectly logical, is not listed > anywhere, and the names of some stacks, like the script editor, have changed > over the several LC versions. > > It is a great way to get oneself in real trouble, but also useful if one > wants red answer dialog boxes. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Wed Feb 28 10:15:14 2018 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 28 Feb 2018 10:15:14 -0500 Subject: [OT] Haiku OS In-Reply-To: <077397EA-5A04-4041-9DE6-E9E13A161B5A@all-auctions.com> References: <879ca67e-3865-d30c-7f46-bef5d9fbb21c@gmail.com> <077397EA-5A04-4041-9DE6-E9E13A161B5A@all-auctions.com> Message-ID: AROS however is quite good, and has some 2018 activity. http://aros.sourceforge.net/ http://aros.sourceforge.net/pictures/screenshots/ ~Roger On Wed, Feb 28, 2018 at 9:52 AM, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Richmond, > > Current Official Version Information > > Version: R1/Alpha 4.1 > Release date: November 14th, 2012 > Computer platform: x86-32 > Something that hasn?t seen an update since 2012 > probably isn?t getting much traction at all. > > I hope you find this information somewhat helpful. > > Rick > > > On Feb 28, 2018, at 7:20 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > https://www.haiku-os.org/ > > > > Does anyone know if Haiku OS; > > > > 1. Shows any sign whatsoever of gaining any traction? > > > > 2. Is there any point of attempting to compile LiveCode for Haiku OS > (beyond a spare time project)? > > > > 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 ambassador at fourthworld.com Wed Feb 28 10:24:43 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Feb 2018 07:24:43 -0800 Subject: IDE Cursor icon often hangs on windows In-Reply-To: <002801d3b073$7c6ef350$754cd9f0$@kestner.de> References: <002801d3b073$7c6ef350$754cd9f0$@kestner.de> Message-ID: <7d8c98fa-0e02-c4d8-2040-0324383ae62a@fourthworld.com> Tiemo Hollmann wrote: > On Windows, since LC 8 the icon of the cursor often "hangs", it just > keeps the icon from the last action and doesn't changes back to the > standard pointer icon when moving around the screen, so that I often > have to select any action with the "resize cursor" - just an example. > > It's not essential, but a little bit annoying. Anything I can do? > Is it known? Shall a file a bug report, though it will be hard to make > a recepie? If you do file a bug report please post the URL here. I've seen this with v9 under Ubuntu, but haven't reported it yet as it's intermittent and I haven't yet found a recipe. If I do come up with a recipe I'll share it here. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From devin_asay at byu.edu Wed Feb 28 10:41:41 2018 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 28 Feb 2018 15:41:41 +0000 Subject: Background color in an 'answer' dialog? In-Reply-To: References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> <1519825804594-0.post@n4.nabble.com> Message-ID: Graham, I think what is happening is that when you run in the IDE the parent stack of the answer dialog stack is the LiveCode engine, which sets a platform-appropriate background color (or no background color) for all child stacks. When you include it in a standalone, your stack-made-standalone becomes the parent stack, and whatever background color is set for that stack is inherited by the answer dialog stack. At least I have seen this happen with standalones that have a stack color set, and I?m fairly certain this is what you?re seeing. What happens if you change your main stack?s background color then rebuild the standalone? Devin On Feb 28, 2018, at 8:01 AM, Graham Samuel via use-livecode > wrote: Craig, you make an excellent point. We now know there is a stack named ?answer dialog? and that it has properties you can set. Surely the documentation should explain this somewhere? By the way, when I said my red background had disappeared, it hadn?t. It?s just that when you I through the script in the IDE, the background comes up white, whereas in the standalone (both platforms), it comes up red. A bug, surely? I will see if I can boil it down far enough to report it. Graham On 28 Feb 2018, at 14:50, dunbarx via use-livecode > wrote: As a follow-up, is there anywhere a list of all IDE stacks? For example, the stack named "answer dialog", though perfectly logical, is not listed anywhere, and the names of some stacks, like the script editor, have changed over the several LC versions. It is a great way to get oneself in real trouble, but also useful if one wants red answer dialog boxes. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University From ambassador at fourthworld.com Wed Feb 28 10:44:23 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Feb 2018 07:44:23 -0800 Subject: [OT] Haiku OS In-Reply-To: <879ca67e-3865-d30c-7f46-bef5d9fbb21c@gmail.com> References: <879ca67e-3865-d30c-7f46-bef5d9fbb21c@gmail.com> Message-ID: <33235a12-32e3-7ff9-ba57-08adc2dafba1@fourthworld.com> Richmond Mathewson wrote: > https://www.haiku-os.org/ > > Does anyone know if Haiku OS; > > 1. Shows any sign whatsoever of gaining any traction? Slim to none. Microsoft owns the desktop, Linux is the de-facto standard beyond the desktop, Apple owns the high-end of the market. I see little room in that mix for another OS. Everything changes, and it's likely that sooner or later a new OS will come along that'll wow us all. But with all due respect to the great ideas in the project I don't think it'll be Haiku OS, mainly because it's a desktop-only OS in a multi-device world, with little in its underpinnings suggesting it can be easily adapted to new form factors. > 2. Is there any point of attempting to compile LiveCode for Haiku OS > (beyond a spare time project)? In all honesty I can imagine few activities which could produce a lower ROI. It might have been different. Haiku OS is the open source fork of Jean-Louis Gass?e's BeOS, at one time the front-runner when Apple was shopping for a replacement for what we now call Mac Classic. But once Jobs' NeXT became a candidate, even at its much higher acquisition price, being a Unix meant a larger supporting ecosystem, a proven standard calming to developers and investors alike. It's almost too bad, since BeOS has a lot of great ideas, all the way down to the metadata-rich file system, arguably well ahead of its time. But history has spoken, and at this time I see little profit in deploying apps to Haiku OS. That said, as a learning exercise studying Haiku OS can be very fruitful. There really are some great ideas in there. -- 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 preid at reidit.co.uk Wed Feb 28 10:51:24 2018 From: preid at reidit.co.uk (Peter Reid) Date: Wed, 28 Feb 2018 15:51:24 +0000 Subject: Size of screen diagonal? In-Reply-To: References: Message-ID: <15A526C0-3F0E-4F65-ADA1-7966ECFDA8C3@reidit.co.uk> I'm developing a desktop app for Mac & PC that displays photos of coins. I'd like to display them at real size but I can't find the properties for the current screen (i.e. the one that my app is running on. I can get the screen colour depth, resolution, scaling factor, etc. but not the physical size on the screen such as "27 inch diagonal" or physical px per inch. Can anyone tell me how to get this info, either using just LiveCode or via Mac/PC shell/command scripts? Thanks Pete -- Peter Reid Loughborough, UK From ambassador at fourthworld.com Wed Feb 28 10:56:01 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Feb 2018 07:56:01 -0800 Subject: Background color in an 'answer' dialog? In-Reply-To: <1519825804594-0.post@n4.nabble.com> References: <1519825804594-0.post@n4.nabble.com> Message-ID: <7029b94a-de5c-2139-d047-63759158b1ed@fourthworld.com> dunbarx wrote: > As a follow-up, is there anywhere a list of all IDE stacks? For > example, the stack named "answer dialog", though perfectly logical, > is not listed anywhere, and the names of some stacks, like the script > editor, have changed over the several LC versions. For stacks in memory, Panos' suggestion of changing Prefs to show IDE stacks is great. For stack files (including script-only stacks) on disk, see the Toolset folder in your LC app bundle/folder. For super-quick access to IDE scripts, consider devolution's MPath, which not only has a checkbox for showing LC scripts, but even more easily that can be toggled with the space bar while the MPath pane is open: http://fourthworld.net/lc/devo3-mpath.png Designed for quick access for scripting, everything in devolution's MPath pane has hot key shortcuts: http://fourthworld.net/lc/devo-mpath-help.png The devolution plugin for LC is freely available here: http://fourthworld.com/products/devolution/ > It is a great way to get oneself in real trouble, but also useful if > one wants red answer dialog boxes. Yes, "if". ;) Tip: given the frequency of new LC builds, I've found it very helpful to automate IDE modification through scripts triggered on launch, as opposed to modifying the IDE stacks on disk. Two benefits to this approach: 1. If you like your changes, they'll survive LC updates. 2. If you don't like your changes, reverting back requires nothing more than removing your plugin and re-launching. -- 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 Feb 28 11:01:36 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 28 Feb 2018 16:01:36 +0000 Subject: Navigator Update In-Reply-To: References: <4F521A2A-1F2D-438B-BBC8-1CF724EEDD03@canelasoftware.com> Message-ID: <0E994AD9-B7A3-4571-AA38-B49118928787@iotecdigital.com> I just installed this and it looks to be really handy! Do you have a Paypal presence? Bob S > On Feb 27, 2018, at 16:27 , Geoff Canyon via use-livecode wrote: > > Fixed. It's up on GitHub and at the download. From ambassador at fourthworld.com Wed Feb 28 11:04:48 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Feb 2018 08:04:48 -0800 Subject: Size of screen diagonal? In-Reply-To: <15A526C0-3F0E-4F65-ADA1-7966ECFDA8C3@reidit.co.uk> References: <15A526C0-3F0E-4F65-ADA1-7966ECFDA8C3@reidit.co.uk> Message-ID: <16cb55fe-9d69-e18d-82ba-d1ec06e9936e@fourthworld.com> Peter Reid wrote: > I'm developing a desktop app for Mac & PC that displays photos of > coins. I'd like to display them at real size but I can't find the > properties for the current screen (i.e. the one that my app is running > on. I can get the screen colour depth, resolution, scaling factor, > etc. but not the physical size on the screen such as "27 inch > diagonal" or physical px per inch. > > Can anyone tell me how to get this info, either using just LiveCode or > via Mac/PC shell/command scripts? Given the wide and growing variety of screen ratios, diagonal screen dimensions are less useful for this task. I think pixelDensity of what you're looking for, but be forewarned: I spent an afternoon some time ago measuring a variety of on-screen elements across all the devices in my test pool, using a physical ruler placed on the screen. What I found is that LC seems to do as good a job as Android itself in attempting to maintain consistent sizing among such a wide range of physical display characteristics (dot pitch, etc.). Not surprising, since AFAIK LC uses the recommended OS APIs for its resolution independence. But the downside is that I was able to measure differences in even the most standard elements like the status bar. Not much, just a millimeter or two across some devices. So if a fairly-close-but-not-perfect rendering will suffice, I think the pixelDensity function will guide your metrics. -- 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 Feb 28 11:15:23 2018 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 28 Feb 2018 11:15:23 -0500 Subject: Another server question (mixing node.js and LC) Message-ID: <16892098-A6C3-4631-B9C2-2E3D51F43084@gmail.com> Hello, I have another server question. I really like scripting with LC, because I can make improvements very quickly. This is important because of my very limited free time. But, I want to be able to handle many many concurrent server requests, the way node.js does. Would it work to have node take In a request, launch an LC cgi executable to process the request, set an event listener to wait for LC to send the results back to Node, then have node return the results to the user? This is not unlike using Apache to launch LC CGI processes, but the asynchronous nature of node would, presumably, tie up fewer system resources and allow for larger concurrency. This could mean having a couple thousand LC processes running at any one time - would that be okay as long as the server had enough RAM? In general, would this work for a system that hand to handle, say, 10,000 server requests per minute? Sent from my iPhone From hh at hyperhh.de Wed Feb 28 11:25:13 2018 From: hh at hyperhh.de (hh) Date: Wed, 28 Feb 2018 17:25:13 +0100 Subject: send "keyUp" / "rawKeyUp" ? Message-ID: Read again. Got it now. What you effectively want is the (current) foreign keyMapping. This is done by the OS, not gettable by LiveCode AFAIK. Apple even doesn't has a file to check, Linux and Win have. Look what they do: https://wiki.archlinux.org/index.php/Keyboard_configuration_in_console https://github.com/randyrants/sharpkeys http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele Here is what Apple did similar to that what you have in mind? https://support.apple.com/de-de/HT201794 From mark at canelasoftware.com Wed Feb 28 11:26:55 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 28 Feb 2018 08:26:55 -0800 Subject: You should avoid using "Open in New Navigator" in Navigator In-Reply-To: References: Message-ID: On Feb 27, 2018, at 9:14 PM, Geoff Canyon via use-livecode wrote: > > I've updated GitHub and the download to remove it for now. Under some > circumstances (that I can't replicate just yet) "Open in New Navigator" can > fail in a way that seems to mess with the dialogs in the IDE. If you happen > to trigger this, you'll likely see a dialog that contains the word > "something" and no buttons; I saw this during development, but thought it > was banished (I didn't know it was possible to mess up dialogs, and I still > don't know how it's even possible to open a dialog with no buttons, and > it's not even my code that's opening the dialog -- I think). > > If it happens to you, apologies, and pressing the enter key should (did, > for me) dismiss it. Restarting LC is the best recourse. > > In any case, don't use that function if you do see it, and this copy of > Navigator has it disabled for now: > > Get Navigator here > . Or get it > from GitHub: Navigator's GitHub page All great code/projects have bugs. I am sure you will figure this out Geoff. The feature will be very useful when it returns. This bug mainly affects LC 9 dp11. In the LC 8 series it simply does not work, but does not have any negative effect that I can see. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com From ahsoftware at sonic.net Wed Feb 28 11:51:27 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 28 Feb 2018 08:51:27 -0800 Subject: IDE Cursor icon often hangs on windows In-Reply-To: <7d8c98fa-0e02-c4d8-2040-0324383ae62a@fourthworld.com> References: <002801d3b073$7c6ef350$754cd9f0$@kestner.de> <7d8c98fa-0e02-c4d8-2040-0324383ae62a@fourthworld.com> Message-ID: <4679730d-3974-4021-28ca-13e02e82fbe1@sonic.net> On 02/28/2018 07:24 AM, Richard Gaskin via use-livecode wrote: > If you do file a bug report please post the URL here.? I've seen this > with v9 under Ubuntu, but haven't reported it yet as it's intermittent > and I haven't yet found a recipe. Same here. I see this all the time. It's annoying and intermittent. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Wed Feb 28 11:52:00 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 28 Feb 2018 16:52:00 +0000 Subject: Background color in an 'answer' dialog? In-Reply-To: <7029b94a-de5c-2139-d047-63759158b1ed@fourthworld.com> References: <1519825804594-0.post@n4.nabble.com> <7029b94a-de5c-2139-d047-63759158b1ed@fourthworld.com> Message-ID: Richard, That is super helpful. I?ve had Devolution loaded for a while but was using PB to get to IDE scripts. This will be so much better/faster. Thanks, Brian On Wed, Feb 28, 2018 at 9:56 AM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > > For super-quick access to IDE scripts, consider devolution's MPath, > which not only has a checkbox for showing LC scripts, but even more > easily that can be toggled with the space bar while the MPath pane is open: > http://fourthworld.net/lc/devo3-mpath.png > > Designed for quick access for scripting, everything in devolution's > MPath pane has hot key shortcuts: > http://fourthworld.net/lc/devo-mpath-help.png > > The devolution plugin for LC is freely available here: > http://fourthworld.com/products/devolution/ > > From livfoss at mac.com Wed Feb 28 12:02:06 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 28 Feb 2018 18:02:06 +0100 Subject: Background color in an 'answer' dialog? In-Reply-To: References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> <1519825804594-0.post@n4.nabble.com> Message-ID: Thanks Devin, that?s a great explanation - my program, which is just a one stack-one card helper app, did start off with a red background. Later I changed the card background (remember, there?s only one card) but forgot about the stack background since it didn?t show. So there you have it. We do seem to have found a smallish hole in the documentation about this sort of thing. Perhaps that?s what I should be reporting to the Quality Centre. While I?m on to explanations, in all my years of using LC and its predecessors, I have never understood what the right hand column in the ?colors? tab of the object inspector is for. The left hand column is straightforward: one just picks a color, for example ?background fill?. But the next column leads to a strange popup list of icons (some are called ?standard icons?, whatever that means). Why would I want my background fill to be a repeat of a lot of little forward arrows, for example? And if I did this by mistake, how can I delete this choice? I could not find a way. Proper patterns, as in wallpaper, I find easier to understand, even if I?ve never used them. Am I missing some tremendous feature? Or is this just of archeological interest? Just askin? Cheers Graham > On 28 Feb 2018, at 16:41, Devin Asay via use-livecode wrote: > > Graham, > > I think what is happening is that when you run in the IDE the parent stack of the answer dialog stack is the LiveCode engine, which sets a platform-appropriate background color (or no background color) for all child stacks. When you include it in a standalone, your stack-made-standalone becomes the parent stack, and whatever background color is set for that stack is inherited by the answer dialog stack. At least I have seen this happen with standalones that have a stack color set, and I?m fairly certain this is what you?re seeing. What happens if you change your main stack?s background color then rebuild the standalone? > > Devin > > > On Feb 28, 2018, at 8:01 AM, Graham Samuel via use-livecode > wrote: > > Craig, you make an excellent point. We now know there is a stack named ?answer dialog? and that it has properties you can set. Surely the documentation should explain this somewhere? > > By the way, when I said my red background had disappeared, it hadn?t. It?s just that when you I through the script in the IDE, the background comes up white, whereas in the standalone (both platforms), it comes up red. A bug, surely? I will see if I can boil it down far enough to report it. > > Graham > > On 28 Feb 2018, at 14:50, dunbarx via use-livecode > wrote: > > As a follow-up, is there anywhere a list of all IDE stacks? For example, the > stack named "answer dialog", though perfectly logical, is not listed > anywhere, and the names of some stacks, like the script editor, have changed > over the several LC versions. > > It is a great way to get oneself in real trouble, but also useful if one > wants red answer dialog boxes. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > 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 mark at canelasoftware.com Wed Feb 28 12:06:30 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Wed, 28 Feb 2018 09:06:30 -0800 Subject: Size of screen diagonal? In-Reply-To: <15A526C0-3F0E-4F65-ADA1-7966ECFDA8C3@reidit.co.uk> References: <15A526C0-3F0E-4F65-ADA1-7966ECFDA8C3@reidit.co.uk> Message-ID: <34859DFA-E140-4492-9599-CD82CD786B46@canelasoftware.com> On Feb 28, 2018, at 7:51 AM, Peter Reid via use-livecode wrote: > > I'm developing a desktop app for Mac & PC that displays photos of coins. I'd like to display them at real size but I can't find the properties for the current screen (i.e. the one that my app is running on. I can get the screen colour depth, resolution, scaling factor, etc. but not the physical size on the screen such as "27 inch diagonal" or physical px per inch. > > Can anyone tell me how to get this info, either using just LiveCode or via Mac/PC shell/command scripts? We make vision testing software. This requires very accurate representations of visuals on screen. For this we ask the user to enter in the diagonal screen size. Because this is a vertical app, that comes along with installation services, this is normally done by the installer. You will get accurate sizing using this method. For the wider spectrum of users, we can get those values if you have control over the range of devices they are using. For one app, iOS only, we ask them to select the device they are using. We still use diagonal screen size as the metric for the math under the hood. For truly horizontal markets, having them enter in the value may or may not be acceptable. If the tool requires the utmost in accuracy, then the user may be asked. For UI layout purposes, pixelDensity() may be enough to get you through. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com From ambassador at fourthworld.com Wed Feb 28 12:22:12 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Feb 2018 09:22:12 -0800 Subject: Another server question (mixing node.js and LC) In-Reply-To: <16892098-A6C3-4631-B9C2-2E3D51F43084@gmail.com> References: <16892098-A6C3-4631-B9C2-2E3D51F43084@gmail.com> Message-ID: <35633bfb-8110-340a-e604-71494fa8e2ef@fourthworld.com> jonathandlynch wrote: > I have another server question. I really like scripting with LC, > because I can make improvements very quickly. This is important > because of my very limited free time. > > But, I want to be able to handle many many concurrent server requests, > the way node.js does. Good timing. Geoff Canyon and I have been corresponding about a related matter, comparing performance of LC Server with PHP. PHP7 is such a radical improvement over PHP5 that it's almost unfair to compare it any scripting language now. But it also prompts me to wonder: is there anything in those PHP speed improvements which could be applied to LC? But that's for the future, and for CGI. In the here-and-now, you're exploring a different but very interesting area: > Would it work to have node take In a request, launch an LC cgi > executable to process the request, set an event listener to wait > for LC to send the results back to Node, then have node return > the results to the user? > > This is not unlike using Apache to launch LC CGI processes, but > the asynchronous nature of node would, presumably, tie up fewer > system resources and allow for larger concurrency. This could mean > having a couple thousand LC processes running at any one time - would > that be okay as long as the server had enough RAM? > > In general, would this work for a system that hand to handle, say, > 10,000 server requests per minute? A minute's a long time. That's only 167 connections per second. Likely difficult for any CGI, and certainly for LC (see general performance relative to PHP, and the 70+% of LC boot time spent initializing fonts that are almost never used in CGIs - BZ# 14115). But there are other ways beyond CGI. A couple years ago Pierre Sahores and I traded notes here on this list about tests run with LC socket servers. There's a lot across multiple threads, but this may be a good starting point: http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html One thing is clear: if high concurrency is a requirement, use something dedicated to manage comms between connected clients and a pool of workers. My own tests were measuring lchttpd against Apache, a different model but instructive here because it's still about socket comms. What I found was that an httpd written in LC was outmatched by Apache two-fold. But that also means that a quickly-thrown-together httpd script in LC was about half as fast as the world's most popular httpd written in C by hundreds of contributors specializing in that task. So, promising for certain tasks. :) The key with my modded fork of the old mchttpd stack was rewriting all socket comms to use callbacks. The original used callbacks only for incoming POST, but I extended that to include all writes as well. Applying this to your scenario: client client client -------- -------- -------- \ | / ........internet....... \ | / |----------- HTTP SERVER -----------| | / | \ | | worker worker worker | |-----------------------------------| While LC could be used in the role of the HTTP SERVER, that would be wasteful. It's not an interesting job, and dedicated tools like Node.js and NginX will outperform it many-fold. Let the experts handle the boring parts. :) The value LC brings to the table is application-specific. So we let a dedicated tool broker comms between external clients and a pool of workers, where the workers could be LC standalones. That's where much of Pierre's experiments have focused, and where the most interesting and productive use of LC lies in a scenario where load requirements exceed practical limitations of LC as a CGI. The boost goes beyond the RAM savings from having a separate LC instance for each CGI request: as a persistent process, it obviates the font-loading and other init that take up so much time in an LC CGI. As with the lchttpd experiments, using callbacks for all sockets comms between the LC-based workers and the HTTP SERVER will be essential for keep throughput optimal. TL;DR: I think you're on the right track for a possible solution that optimizes your development time without prohibitively impeding scalability. The suitability of this comes down to: what exactly does each transaction do? 167 transactions/sec may not be much, or it might be a lot. If a given transaction is fairly modest, I'd say it's probably worth the time to put together a test system to try it out. But if a transaction is CPU intensive, or heavily I/O bound, or otherwise taking up a lot of time, the radical changes in PHP7 may make it a better bet, esp. if run as FastCGI. Can you tell us more about what a given transaction involves? -- 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 Feb 28 12:29:15 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 28 Feb 2018 19:29:15 +0200 Subject: Size of screen diagonal? In-Reply-To: <15A526C0-3F0E-4F65-ADA1-7966ECFDA8C3@reidit.co.uk> References: <15A526C0-3F0E-4F65-ADA1-7966ECFDA8C3@reidit.co.uk> Message-ID: <62c9a988-a217-3a6a-9dbe-f49ce1ebc7e0@gmail.com> I'm not really sure how you would go about this. For instance: I have a 2006 iMac that uses both its in-built monitor and another second one. System Info tells me that my in-built display is 20.1 inches, but nothing about my other one beyond the fact that it is a VGA display. However, my Xubuntu machine does report the dimensions of the monitor connected to it accurately (NEC Corporation 21"). Richmond. On 28/2/2018 5:51 pm, Peter Reid via use-livecode wrote: > I'm developing a desktop app for Mac & PC that displays photos of coins. I'd like to display them at real size but I can't find the properties for the current screen (i.e. the one that my app is running on. I can get the screen colour depth, resolution, scaling factor, etc. but not the physical size on the screen such as "27 inch diagonal" or physical px per inch. > > Can anyone tell me how to get this info, either using just LiveCode or via Mac/PC shell/command scripts? > > Thanks > > Pete > -- > Peter Reid > Loughborough, UK > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Feb 28 12:38:51 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 28 Feb 2018 09:38:51 -0800 Subject: You should avoid using "Open in New Navigator" in Navigator In-Reply-To: References: Message-ID: I downloaded LC 9. I wasn't able to replicate the spurious/borked dialogs, but I was able to get the command to fail. I fixed a few things, and tweaked a few things. I am unable to make this update fail. Please have a look at this and see if it still fails in your environment. You can get it at either of these locations. Thx gc https://www.dropbox.com/s/kyjelfzsfl0p4nt/new_navigator_test.zip?dl=0 https://github.com/gcanyon/navigator/tree/OpenInNewNavigatorFix On Wed, Feb 28, 2018 at 8:26 AM, Mark Talluto via use-livecode < use-livecode at lists.runrev.com> wrote: > On Feb 27, 2018, at 9:14 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I've updated GitHub and the download to remove it for now. Under some > > circumstances (that I can't replicate just yet) "Open in New Navigator" > can > > fail in a way that seems to mess with the dialogs in the IDE. If you > happen > > to trigger this, you'll likely see a dialog that contains the word > > "something" and no buttons; I saw this during development, but thought it > > was banished (I didn't know it was possible to mess up dialogs, and I > still > > don't know how it's even possible to open a dialog with no buttons, and > > it's not even my code that's opening the dialog -- I think). > > > > If it happens to you, apologies, and pressing the enter key should (did, > > for me) dismiss it. Restarting LC is the best recourse. > > > > In any case, don't use that function if you do see it, and this copy of > > Navigator has it disabled for now: > > > > Get Navigator here > > . Or get > it > > from GitHub: Navigator's GitHub page navigator> > > > All great code/projects have bugs. I am sure you will figure this out > Geoff. The feature will be very useful when it returns. This bug mainly > affects LC 9 dp11. In the LC 8 series it simply does not work, but does not > have any negative effect that I can see. > > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > canelasoftware.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 Wed Feb 28 12:41:56 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 28 Feb 2018 11:41:56 -0600 Subject: IDE Cursor icon often hangs on windows In-Reply-To: <7d8c98fa-0e02-c4d8-2040-0324383ae62a@fourthworld.com> References: <002801d3b073$7c6ef350$754cd9f0$@kestner.de> <7d8c98fa-0e02-c4d8-2040-0324383ae62a@fourthworld.com> Message-ID: <161dd81a2a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> This has been happening for years, it just may be more frequent now. I've had a handler in my private backscript for probably 10 years that does "unlock cursor" when I type "uc" in the message box. There's no consistent recipe. My best guess is that it happens when the cursor is moving so fast that any messages that track the mouse are either not sent or the mouse is no longer over the original control when it is received. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 28, 2018 9:26:21 AM Richard Gaskin via use-livecode wrote: > Tiemo Hollmann wrote: > > > On Windows, since LC 8 the icon of the cursor often "hangs", it just > > keeps the icon from the last action and doesn't changes back to the > > standard pointer icon when moving around the screen, so that I often > > have to select any action with the "resize cursor" - just an example. > > > > It's not essential, but a little bit annoying. Anything I can do? > > Is it known? Shall a file a bug report, though it will be hard to make > > a recepie? > > If you do file a bug report please post the URL here. I've seen this > with v9 under Ubuntu, but haven't reported it yet as it's intermittent > and I haven't yet found a recipe. If I do come up with a recipe I'll > share it here. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Feb 28 12:44:05 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 28 Feb 2018 09:44:05 -0800 Subject: Navigator Update In-Reply-To: <0E994AD9-B7A3-4571-AA38-B49118928787@iotecdigital.com> References: <4F521A2A-1F2D-438B-BBC8-1CF724EEDD03@canelasoftware.com> <0E994AD9-B7A3-4571-AA38-B49118928787@iotecdigital.com> Message-ID: My wife does: poeticalias at mac.com. I'm glad it's useful to you! gc On Wed, Feb 28, 2018 at 8:01 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I just installed this and it looks to be really handy! Do you have a > Paypal presence? > > Bob S > > > > > On Feb 27, 2018, at 16:27 , Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Fixed. It's up on GitHub and at the download. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Feb 28 12:48:53 2018 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 28 Feb 2018 12:48:53 -0500 Subject: Another server question (mixing node.js and LC) In-Reply-To: <35633bfb-8110-340a-e604-71494fa8e2ef@fourthworld.com> References: <16892098-A6C3-4631-B9C2-2E3D51F43084@gmail.com> <35633bfb-8110-340a-e604-71494fa8e2ef@fourthworld.com> Message-ID: <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> Thank you, Richard A given transaction involves processing a user request, making two or three requests to the database, and returning around 500 kB to the user. I certainly don?t need to load fonts in the LC process. Can that be turned off? I like the idea of maintaining a queue of running LC processes and growing or shrinking it as needed based on request load. How does the http server know which process to access? I know that node.js has a pretty simple code for launching a CGI process and listening for a result. I don?t know how it would do that with an already-running process. Sent from my iPhone > On Feb 28, 2018, at 12:22 PM, Richard Gaskin via use-livecode wrote: > > jonathandlynch wrote: > > > I have another server question. I really like scripting with LC, > > because I can make improvements very quickly. This is important > > because of my very limited free time. > > > > But, I want to be able to handle many many concurrent server requests, > > the way node.js does. > > Good timing. Geoff Canyon and I have been corresponding about a related matter, comparing performance of LC Server with PHP. > > PHP7 is such a radical improvement over PHP5 that it's almost unfair to compare it any scripting language now. But it also prompts me to wonder: is there anything in those PHP speed improvements which could be applied to LC? > > > But that's for the future, and for CGI. In the here-and-now, you're exploring a different but very interesting area: > > > Would it work to have node take In a request, launch an LC cgi > > executable to process the request, set an event listener to wait > > for LC to send the results back to Node, then have node return > > the results to the user? > > > > This is not unlike using Apache to launch LC CGI processes, but > > the asynchronous nature of node would, presumably, tie up fewer > > system resources and allow for larger concurrency. This could mean > > having a couple thousand LC processes running at any one time - would > > that be okay as long as the server had enough RAM? > > > > In general, would this work for a system that hand to handle, say, > > 10,000 server requests per minute? > > A minute's a long time. That's only 167 connections per second. > > Likely difficult for any CGI, and certainly for LC (see general performance relative to PHP, and the 70+% of LC boot time spent initializing fonts that are almost never used in CGIs - BZ# 14115). > > But there are other ways beyond CGI. > > A couple years ago Pierre Sahores and I traded notes here on this list about tests run with LC socket servers. There's a lot across multiple threads, but this may be a good starting point: > http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html > > One thing is clear: if high concurrency is a requirement, use something dedicated to manage comms between connected clients and a pool of workers. > > My own tests were measuring lchttpd against Apache, a different model but instructive here because it's still about socket comms. What I found was that an httpd written in LC was outmatched by Apache two-fold. But that also means that a quickly-thrown-together httpd script in LC was about half as fast as the world's most popular httpd written in C by hundreds of contributors specializing in that task. > > So, promising for certain tasks. :) > > The key with my modded fork of the old mchttpd stack was rewriting all socket comms to use callbacks. The original used callbacks only for incoming POST, but I extended that to include all writes as well. > > Applying this to your scenario: > > client client client > -------- -------- -------- > \ | / > ........internet....... > \ | / > |----------- HTTP SERVER -----------| > | / | \ | > | worker worker worker | > |-----------------------------------| > > > While LC could be used in the role of the HTTP SERVER, that would be wasteful. It's not an interesting job, and dedicated tools like Node.js and NginX will outperform it many-fold. Let the experts handle the boring parts. :) > > The value LC brings to the table is application-specific. So we let a dedicated tool broker comms between external clients and a pool of workers, where the workers could be LC standalones. > > That's where much of Pierre's experiments have focused, and where the most interesting and productive use of LC lies in a scenario where load requirements exceed practical limitations of LC as a CGI. > > The boost goes beyond the RAM savings from having a separate LC instance for each CGI request: as a persistent process, it obviates the font-loading and other init that take up so much time in an LC CGI. > > As with the lchttpd experiments, using callbacks for all sockets comms between the LC-based workers and the HTTP SERVER will be essential for keep throughput optimal. > > > TL;DR: I think you're on the right track for a possible solution that optimizes your development time without prohibitively impeding scalability. > > > The suitability of this comes down to: what exactly does each transaction do? > > 167 transactions/sec may not be much, or it might be a lot. > > If a given transaction is fairly modest, I'd say it's probably worth the time to put together a test system to try it out. > > But if a transaction is CPU intensive, or heavily I/O bound, or otherwise taking up a lot of time, the radical changes in PHP7 may make it a better bet, esp. if run as FastCGI. > > Can you tell us more about what a given transaction involves? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Wed Feb 28 12:58:52 2018 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 28 Feb 2018 17:58:52 +0000 Subject: Background color in an 'answer' dialog? In-Reply-To: References: <6DFB2995-F4DB-41B3-82BC-FEDCA06BCFE9@mac.com> <1519825384638-0.post@n4.nabble.com> <1519825804594-0.post@n4.nabble.com> Message-ID: <9F6B90B7-0DFA-4F87-AD2A-291C4B7698A4@byu.edu> > On Feb 28, 2018, at 10:02 AM, Graham Samuel via use-livecode wrote: > While I?m on to explanations, in all my years of using LC and its predecessors, I have never understood what the right hand column in the ?colors? tab of the object inspector is for. Choosing a background pattern (as you?ve discovered.) > The left hand column is straightforward: one just picks a color, for example ?background fill?. But the next column leads to a strange popup list of icons (some are called ?standard icons?, whatever that means). Why would I want my background fill to be a repeat of a lot of little forward arrows, for example? ?Standard icons? is in an option list, and the next option on the list is Default Patterns. That gives you a slightly less-unusable selection of background patterns you can apply to your object. The feature is really more useful for setting an image of your choice as the background of an object. Just import the image and use: set the backgroundPattern of fld 1 to 10003 # the id of the imported image > And if I did this by mistake, how can I delete this choice? I could not find a way. It?s not clearly indicated. Right click on the pattern box in the right column and choose ?Reset to default?. > Proper patterns, as in wallpaper, I find easier to understand, even if I?ve never used them. Am I missing some tremendous feature? Or is this just of archeological interest? > See above re setting the backgroundPattern. There are lots of instances where it can be useful. A field with a fancy border, for one example. HTH Devin Devin Asay Director Office of Digital Humanities Brigham Young University From jonathandlynch at gmail.com Wed Feb 28 13:26:05 2018 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 28 Feb 2018 13:26:05 -0500 Subject: Another server question (mixing node.js and LC) In-Reply-To: <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> References: <16892098-A6C3-4631-B9C2-2E3D51F43084@gmail.com> <35633bfb-8110-340a-e604-71494fa8e2ef@fourthworld.com> <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> Message-ID: In reading about fastCGI and LC, it seems rather experimental. I am just wondering if replacing Apache with node.js as the http server would give us the necessary concurrency capacity for using LC server on a large scale. Basically, I am soon going to start pitching augmented tours (idea suggested by guys at a business incubator) to tourism companies, using Augmented Earth, and I don?t want to have the server crash if a large number of people are using it all at once. Sent from my iPhone > On Feb 28, 2018, at 12:48 PM, jonathandlynch at gmail.com wrote: > > Thank you, Richard > > A given transaction involves processing a user request, making two or three requests to the database, and returning around 500 kB to the user. > > I certainly don?t need to load fonts in the LC process. Can that be turned off? > > I like the idea of maintaining a queue of running LC processes and growing or shrinking it as needed based on request load. > > How does the http server know which process to access? > > I know that node.js has a pretty simple code for launching a CGI process and listening for a result. I don?t know how it would do that with an already-running process. > > Sent from my iPhone > >> On Feb 28, 2018, at 12:22 PM, Richard Gaskin via use-livecode wrote: >> >> jonathandlynch wrote: >> >>> I have another server question. I really like scripting with LC, >>> because I can make improvements very quickly. This is important >>> because of my very limited free time. >>> >>> But, I want to be able to handle many many concurrent server requests, >>> the way node.js does. >> >> Good timing. Geoff Canyon and I have been corresponding about a related matter, comparing performance of LC Server with PHP. >> >> PHP7 is such a radical improvement over PHP5 that it's almost unfair to compare it any scripting language now. But it also prompts me to wonder: is there anything in those PHP speed improvements which could be applied to LC? >> >> >> But that's for the future, and for CGI. In the here-and-now, you're exploring a different but very interesting area: >> >>> Would it work to have node take In a request, launch an LC cgi >>> executable to process the request, set an event listener to wait >>> for LC to send the results back to Node, then have node return >>> the results to the user? >>> >>> This is not unlike using Apache to launch LC CGI processes, but >>> the asynchronous nature of node would, presumably, tie up fewer >>> system resources and allow for larger concurrency. This could mean >>> having a couple thousand LC processes running at any one time - would >>> that be okay as long as the server had enough RAM? >>> >>> In general, would this work for a system that hand to handle, say, >>> 10,000 server requests per minute? >> >> A minute's a long time. That's only 167 connections per second. >> >> Likely difficult for any CGI, and certainly for LC (see general performance relative to PHP, and the 70+% of LC boot time spent initializing fonts that are almost never used in CGIs - BZ# 14115). >> >> But there are other ways beyond CGI. >> >> A couple years ago Pierre Sahores and I traded notes here on this list about tests run with LC socket servers. There's a lot across multiple threads, but this may be a good starting point: >> http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html >> >> One thing is clear: if high concurrency is a requirement, use something dedicated to manage comms between connected clients and a pool of workers. >> >> My own tests were measuring lchttpd against Apache, a different model but instructive here because it's still about socket comms. What I found was that an httpd written in LC was outmatched by Apache two-fold. But that also means that a quickly-thrown-together httpd script in LC was about half as fast as the world's most popular httpd written in C by hundreds of contributors specializing in that task. >> >> So, promising for certain tasks. :) >> >> The key with my modded fork of the old mchttpd stack was rewriting all socket comms to use callbacks. The original used callbacks only for incoming POST, but I extended that to include all writes as well. >> >> Applying this to your scenario: >> >> client client client >> -------- -------- -------- >> \ | / >> ........internet....... >> \ | / >> |----------- HTTP SERVER -----------| >> | / | \ | >> | worker worker worker | >> |-----------------------------------| >> >> >> While LC could be used in the role of the HTTP SERVER, that would be wasteful. It's not an interesting job, and dedicated tools like Node.js and NginX will outperform it many-fold. Let the experts handle the boring parts. :) >> >> The value LC brings to the table is application-specific. So we let a dedicated tool broker comms between external clients and a pool of workers, where the workers could be LC standalones. >> >> That's where much of Pierre's experiments have focused, and where the most interesting and productive use of LC lies in a scenario where load requirements exceed practical limitations of LC as a CGI. >> >> The boost goes beyond the RAM savings from having a separate LC instance for each CGI request: as a persistent process, it obviates the font-loading and other init that take up so much time in an LC CGI. >> >> As with the lchttpd experiments, using callbacks for all sockets comms between the LC-based workers and the HTTP SERVER will be essential for keep throughput optimal. >> >> >> TL;DR: I think you're on the right track for a possible solution that optimizes your development time without prohibitively impeding scalability. >> >> >> The suitability of this comes down to: what exactly does each transaction do? >> >> 167 transactions/sec may not be much, or it might be a lot. >> >> If a given transaction is fairly modest, I'd say it's probably worth the time to put together a test system to try it out. >> >> But if a transaction is CPU intensive, or heavily I/O bound, or otherwise taking up a lot of time, the radical changes in PHP7 may make it a better bet, esp. if run as FastCGI. >> >> Can you tell us more about what a given transaction involves? >> >> -- >> 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 Wed Feb 28 14:27:23 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 28 Feb 2018 12:27:23 -0700 Subject: Another server question (mixing node.js and LC) In-Reply-To: References: <16892098-A6C3-4631-B9C2-2E3D51F43084@gmail.com> <35633bfb-8110-340a-e604-71494fa8e2ef@fourthworld.com> <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> Message-ID: One thing you might do if you were to decide to stick with apache would be to make sure you use either the worker mpm or events mpm (sounds like events would be the one you wanted for this) (read more on this page... https://httpd.apache.org/docs/2.4/misc/perf-tuning.html ) to get better performance. Alternatively as Richard mentioned, there is nginx, which might be just what the doctor ordered. Basically, a request comes in, is handed off to the your lc script, and when a response is ready, it handles it and sends it back to the client, meanwhile still being able to listen for, and accept new requests. At least this is what I get from my reading, some of which are older postings. Sounds pretty much like what you are thinking of doing with node.js. I'm also wondering where a docker swarm might fit into your needs. multiple containers with a custom nginx image that can run your scripts, with load balancing and auto failover could be a great thing, and still be very lightweight. (the nginx docker on alpine is amazingly tiny, lightweight) I've no clue how performance and reliability might compare to node.js for this. On Wed, Feb 28, 2018 at 11:26 AM, Jonathan Lynch via use-livecode < use-livecode at lists.runrev.com> wrote: > In reading about fastCGI and LC, it seems rather experimental. I am just > wondering if replacing Apache with node.js as the http server would give us > the necessary concurrency capacity for using LC server on a large scale. > > Basically, I am soon going to start pitching augmented tours (idea > suggested by guys at a business incubator) to tourism companies, using > Augmented Earth, and I don?t want to have the server crash if a large > number of people are using it all at once. > > Sent from my iPhone > > > On Feb 28, 2018, at 12:48 PM, jonathandlynch at gmail.com wrote: > > > > Thank you, Richard > > > > A given transaction involves processing a user request, making two or > three requests to the database, and returning around 500 kB to the user. > > > > I certainly don?t need to load fonts in the LC process. Can that be > turned off? > > > > I like the idea of maintaining a queue of running LC processes and > growing or shrinking it as needed based on request load. > > > > How does the http server know which process to access? > > > > I know that node.js has a pretty simple code for launching a CGI process > and listening for a result. I don?t know how it would do that with an > already-running process. > > > > Sent from my iPhone > > > >> On Feb 28, 2018, at 12:22 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> jonathandlynch wrote: > >> > >>> I have another server question. I really like scripting with LC, > >>> because I can make improvements very quickly. This is important > >>> because of my very limited free time. > >>> > >>> But, I want to be able to handle many many concurrent server requests, > >>> the way node.js does. > >> > >> Good timing. Geoff Canyon and I have been corresponding about a > related matter, comparing performance of LC Server with PHP. > >> > >> PHP7 is such a radical improvement over PHP5 that it's almost unfair to > compare it any scripting language now. But it also prompts me to wonder: > is there anything in those PHP speed improvements which could be applied to > LC? > >> > >> > >> But that's for the future, and for CGI. In the here-and-now, you're > exploring a different but very interesting area: > >> > >>> Would it work to have node take In a request, launch an LC cgi > >>> executable to process the request, set an event listener to wait > >>> for LC to send the results back to Node, then have node return > >>> the results to the user? > >>> > >>> This is not unlike using Apache to launch LC CGI processes, but > >>> the asynchronous nature of node would, presumably, tie up fewer > >>> system resources and allow for larger concurrency. This could mean > >>> having a couple thousand LC processes running at any one time - would > >>> that be okay as long as the server had enough RAM? > >>> > >>> In general, would this work for a system that hand to handle, say, > >>> 10,000 server requests per minute? > >> > >> A minute's a long time. That's only 167 connections per second. > >> > >> Likely difficult for any CGI, and certainly for LC (see general > performance relative to PHP, and the 70+% of LC boot time spent > initializing fonts that are almost never used in CGIs - BZ# 14115). > >> > >> But there are other ways beyond CGI. > >> > >> A couple years ago Pierre Sahores and I traded notes here on this list > about tests run with LC socket servers. There's a lot across multiple > threads, but this may be a good starting point: > >> http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html > >> > >> One thing is clear: if high concurrency is a requirement, use > something dedicated to manage comms between connected clients and a pool of > workers. > >> > >> My own tests were measuring lchttpd against Apache, a different model > but instructive here because it's still about socket comms. What I found > was that an httpd written in LC was outmatched by Apache two-fold. But > that also means that a quickly-thrown-together httpd script in LC was about > half as fast as the world's most popular httpd written in C by hundreds of > contributors specializing in that task. > >> > >> So, promising for certain tasks. :) > >> > >> The key with my modded fork of the old mchttpd stack was rewriting all > socket comms to use callbacks. The original used callbacks only for > incoming POST, but I extended that to include all writes as well. > >> > >> Applying this to your scenario: > >> > >> client client client > >> -------- -------- -------- > >> \ | / > >> ........internet....... > >> \ | / > >> |----------- HTTP SERVER -----------| > >> | / | \ | > >> | worker worker worker | > >> |-----------------------------------| > >> > >> > >> While LC could be used in the role of the HTTP SERVER, that would be > wasteful. It's not an interesting job, and dedicated tools like Node.js > and NginX will outperform it many-fold. Let the experts handle the boring > parts. :) > >> > >> The value LC brings to the table is application-specific. So we let a > dedicated tool broker comms between external clients and a pool of workers, > where the workers could be LC standalones. > >> > >> That's where much of Pierre's experiments have focused, and where the > most interesting and productive use of LC lies in a scenario where load > requirements exceed practical limitations of LC as a CGI. > >> > >> The boost goes beyond the RAM savings from having a separate LC > instance for each CGI request: as a persistent process, it obviates the > font-loading and other init that take up so much time in an LC CGI. > >> > >> As with the lchttpd experiments, using callbacks for all sockets comms > between the LC-based workers and the HTTP SERVER will be essential for keep > throughput optimal. > >> > >> > >> TL;DR: I think you're on the right track for a possible solution that > optimizes your development time without prohibitively impeding scalability. > >> > >> > >> The suitability of this comes down to: what exactly does each > transaction do? > >> > >> 167 transactions/sec may not be much, or it might be a lot. > >> > >> If a given transaction is fairly modest, I'd say it's probably worth > the time to put together a test system to try it out. > >> > >> But if a transaction is CPU intensive, or heavily I/O bound, or > otherwise taking up a lot of time, the radical changes in PHP7 may make it > a better bet, esp. if run as FastCGI. > >> > >> Can you tell us more about what a given transaction involves? > >> > >> -- > >> 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 bonnmike at gmail.com Wed Feb 28 14:37:31 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 28 Feb 2018 12:37:31 -0700 Subject: building deb packages Message-ID: I decided to see how hard it was to turn LC into a deb package. So far it hasn't been too difficult, the only thing I need to find again is how to have the icon auto update during the install. (as it is, to see the lc icon one must log out and in for it to show up, otherwise its the generic icon that shows... I have the answer to that specific thing.. I just need to remember where I put it. :) I built the .deb package on ubuntu 16.4. Currently, I don't know if it will function as is on earlier versions, and would also like others to test. This is the x64 version. Any of you who like messing with vm's, would you mind downloading it and seeing if it will work? (I'd rather a safe check in a vm rather than a production system obviously, though there isn't all that much that could go wrong.. i'm still paranoid) The link to it is here: https://www.dropbox.com/s/49d4g6n4fi7nabz/livecode_9.0.0_dp_11_x64.deb?dl=0 To install, at a command prompt run: dpkg -i livecode_9.0.0_dp_11_x64.deb I added some dependencies to the deb, but i'm unsure (so far) what might need to be adjusted for earlier versions (if anything.) Still trying to get a handle on how it all works. (it seems deceptively simple, so i'm pretty sure i'm missing something!) Thanks From jonathandlynch at gmail.com Wed Feb 28 14:49:41 2018 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 28 Feb 2018 14:49:41 -0500 Subject: Another server question (mixing node.js and LC) In-Reply-To: References: <16892098-A6C3-4631-B9C2-2E3D51F43084@gmail.com> <35633bfb-8110-340a-e604-71494fa8e2ef@fourthworld.com> <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> Message-ID: I think you might be right, Mike. I have been reading about benchmark tests between node, Apache, and ningx. Node does not seem to live up to the hype at all. Sent from my iPhone > On Feb 28, 2018, at 2:27 PM, Mike Bonner via use-livecode wrote: > > One thing you might do if you were to decide to stick with apache would be > to make sure you use either the worker mpm or events mpm (sounds like > events would be the one you wanted for this) (read more on this page... > https://httpd.apache.org/docs/2.4/misc/perf-tuning.html ) to get better > performance. > > Alternatively as Richard mentioned, there is nginx, which might be just > what the doctor ordered. Basically, a request comes in, is handed off to > the your lc script, and when a response is ready, it handles it and sends > it back to the client, meanwhile still being able to listen for, and accept > new requests. At least this is what I get from my reading, some of which > are older postings. Sounds pretty much like what you are thinking of doing > with node.js. > > I'm also wondering where a docker swarm might fit into your needs. multiple > containers with a custom nginx image that can run your scripts, with load > balancing and auto failover could be a great thing, and still be very > lightweight. (the nginx docker on alpine is amazingly tiny, lightweight) > > I've no clue how performance and reliability might compare to node.js for > this. > > On Wed, Feb 28, 2018 at 11:26 AM, Jonathan Lynch via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> In reading about fastCGI and LC, it seems rather experimental. I am just >> wondering if replacing Apache with node.js as the http server would give us >> the necessary concurrency capacity for using LC server on a large scale. >> >> Basically, I am soon going to start pitching augmented tours (idea >> suggested by guys at a business incubator) to tourism companies, using >> Augmented Earth, and I don?t want to have the server crash if a large >> number of people are using it all at once. >> >> Sent from my iPhone >> >>> On Feb 28, 2018, at 12:48 PM, jonathandlynch at gmail.com wrote: >>> >>> Thank you, Richard >>> >>> A given transaction involves processing a user request, making two or >> three requests to the database, and returning around 500 kB to the user. >>> >>> I certainly don?t need to load fonts in the LC process. Can that be >> turned off? >>> >>> I like the idea of maintaining a queue of running LC processes and >> growing or shrinking it as needed based on request load. >>> >>> How does the http server know which process to access? >>> >>> I know that node.js has a pretty simple code for launching a CGI process >> and listening for a result. I don?t know how it would do that with an >> already-running process. >>> >>> Sent from my iPhone >>> >>>> On Feb 28, 2018, at 12:22 PM, Richard Gaskin via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> >>>> jonathandlynch wrote: >>>> >>>>> I have another server question. I really like scripting with LC, >>>>> because I can make improvements very quickly. This is important >>>>> because of my very limited free time. >>>>> >>>>> But, I want to be able to handle many many concurrent server requests, >>>>> the way node.js does. >>>> >>>> Good timing. Geoff Canyon and I have been corresponding about a >> related matter, comparing performance of LC Server with PHP. >>>> >>>> PHP7 is such a radical improvement over PHP5 that it's almost unfair to >> compare it any scripting language now. But it also prompts me to wonder: >> is there anything in those PHP speed improvements which could be applied to >> LC? >>>> >>>> >>>> But that's for the future, and for CGI. In the here-and-now, you're >> exploring a different but very interesting area: >>>> >>>>> Would it work to have node take In a request, launch an LC cgi >>>>> executable to process the request, set an event listener to wait >>>>> for LC to send the results back to Node, then have node return >>>>> the results to the user? >>>>> >>>>> This is not unlike using Apache to launch LC CGI processes, but >>>>> the asynchronous nature of node would, presumably, tie up fewer >>>>> system resources and allow for larger concurrency. This could mean >>>>> having a couple thousand LC processes running at any one time - would >>>>> that be okay as long as the server had enough RAM? >>>>> >>>>> In general, would this work for a system that hand to handle, say, >>>>> 10,000 server requests per minute? >>>> >>>> A minute's a long time. That's only 167 connections per second. >>>> >>>> Likely difficult for any CGI, and certainly for LC (see general >> performance relative to PHP, and the 70+% of LC boot time spent >> initializing fonts that are almost never used in CGIs - BZ# 14115). >>>> >>>> But there are other ways beyond CGI. >>>> >>>> A couple years ago Pierre Sahores and I traded notes here on this list >> about tests run with LC socket servers. There's a lot across multiple >> threads, but this may be a good starting point: >>>> http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html >>>> >>>> One thing is clear: if high concurrency is a requirement, use >> something dedicated to manage comms between connected clients and a pool of >> workers. >>>> >>>> My own tests were measuring lchttpd against Apache, a different model >> but instructive here because it's still about socket comms. What I found >> was that an httpd written in LC was outmatched by Apache two-fold. But >> that also means that a quickly-thrown-together httpd script in LC was about >> half as fast as the world's most popular httpd written in C by hundreds of >> contributors specializing in that task. >>>> >>>> So, promising for certain tasks. :) >>>> >>>> The key with my modded fork of the old mchttpd stack was rewriting all >> socket comms to use callbacks. The original used callbacks only for >> incoming POST, but I extended that to include all writes as well. >>>> >>>> Applying this to your scenario: >>>> >>>> client client client >>>> -------- -------- -------- >>>> \ | / >>>> ........internet....... >>>> \ | / >>>> |----------- HTTP SERVER -----------| >>>> | / | \ | >>>> | worker worker worker | >>>> |-----------------------------------| >>>> >>>> >>>> While LC could be used in the role of the HTTP SERVER, that would be >> wasteful. It's not an interesting job, and dedicated tools like Node.js >> and NginX will outperform it many-fold. Let the experts handle the boring >> parts. :) >>>> >>>> The value LC brings to the table is application-specific. So we let a >> dedicated tool broker comms between external clients and a pool of workers, >> where the workers could be LC standalones. >>>> >>>> That's where much of Pierre's experiments have focused, and where the >> most interesting and productive use of LC lies in a scenario where load >> requirements exceed practical limitations of LC as a CGI. >>>> >>>> The boost goes beyond the RAM savings from having a separate LC >> instance for each CGI request: as a persistent process, it obviates the >> font-loading and other init that take up so much time in an LC CGI. >>>> >>>> As with the lchttpd experiments, using callbacks for all sockets comms >> between the LC-based workers and the HTTP SERVER will be essential for keep >> throughput optimal. >>>> >>>> >>>> TL;DR: I think you're on the right track for a possible solution that >> optimizes your development time without prohibitively impeding scalability. >>>> >>>> >>>> The suitability of this comes down to: what exactly does each >> transaction do? >>>> >>>> 167 transactions/sec may not be much, or it might be a lot. >>>> >>>> If a given transaction is fairly modest, I'd say it's probably worth >> the time to put together a test system to try it out. >>>> >>>> But if a transaction is CPU intensive, or heavily I/O bound, or >> otherwise taking up a lot of time, the radical changes in PHP7 may make it >> a better bet, esp. if run as FastCGI. >>>> >>>> Can you tell us more about what a given transaction involves? >>>> >>>> -- >>>> Richard Gaskin >>>> Fourth World Systems >>>> Software Design and Development for the Desktop, Mobile, and the Web >>>> ____________________________________________________________________ >>>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Wed Feb 28 18:20:32 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 01 Mar 2018 00:20:32 +0100 Subject: Internet checking? Message-ID: I know this is a golden oldie, but I can?t find a reference? I have a script that wants to check a file on a server, and basically to do nothing if the program is offline. Remind me, is there an easy way to tell from within an LC standalone if the internet is not accessible? I don?t want my program to hang. I understand the URLStatus will eventually tell me if access did not occur, but I don?t understand how to limit the waiting time to something reasonable. I notice that some browsers can actually display a message saying something like ?you are not connected to the internet? - how do they do that? TIA Graham From bobsneidar at iotecdigital.com Wed Feb 28 18:40:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 28 Feb 2018 23:40:03 +0000 Subject: Internet checking? In-Reply-To: References: Message-ID: <23639B17-D71D-4E94-A375-097EE5468D64@iotecdigital.com> Here is a script I use. A lot of this stuff won't make sense because it is part of my interface with sqlYoga, but the core is a repeat loop where I open a socket to the server, then check if the socket is among the lines of the openSockets. If it is I exit the repeat loop and close the socket, then return true, otherwise I wait 1 second, then try again. After 5 failed attempts I alert the user and offer to try again (2 repeat loops) until t he user cancels in which case I exit to top. This has worked fairly well for me. On the flip side I religiously ensure I close the database connection after I am done with it, but of course you are using it to access a file. Same principle though. Bob S > On Feb 28, 2018, at 15:20 , Graham Samuel via use-livecode wrote: > > [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] > > I know this is a golden oldie, but I can?t find a reference? I have a script that wants to check a file on a server, and basically to do nothing if the program is offline. > > Remind me, is there an easy way to tell from within an LC standalone if the internet is not accessible? I don?t want my program to hang. I understand the URLStatus will eventually tell me if access did not occur, but I don?t understand how to limit the waiting time to something reasonable. I notice that some browsers can actually display a message saying something like ?you are not connected to the internet? - how do they do that? > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Wed Feb 28 20:48:38 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 28 Feb 2018 17:48:38 -0800 Subject: building deb packages In-Reply-To: References: Message-ID: <6379bf8b-6ee5-1ae6-95b9-1306c46a09f8@sonic.net> On 02/28/2018 11:37 AM, Mike Bonner via use-livecode wrote: > I decided to see how hard it was to turn LC into a deb package. So far it > hasn't been too difficult, the only thing I need to find again is how to > have the icon auto update during the install. (as it is, to see the lc icon > one must log out and in for it to show up, otherwise its the generic icon > that shows... I have the answer to that specific thing.. I just need to > remember where I put it. :) > > I built the .deb package on ubuntu 16.4. Currently, I don't know if it > will function as is on earlier versions, and would also like others to > test. This is the x64 version. > > Any of you who like messing with vm's, would you mind downloading it and > seeing if it will work? (I'd rather a safe check in a vm rather than a > production system obviously, though there isn't all that much that could go > wrong.. i'm still paranoid) > > The link to it is here: > https://www.dropbox.com/s/49d4g6n4fi7nabz/livecode_9.0.0_dp_11_x64.deb?dl=0 > > To install, at a command prompt run: dpkg -i livecode_9.0.0_dp_11_x64.deb > > I added some dependencies to the deb, but i'm unsure (so far) what might > need to be adjusted for earlier versions (if anything.) Still trying to > get a handle on how it all works. (it seems deceptively simple, so i'm > pretty sure i'm missing something!) Installed properly here on linux Mint 17.3. I opened with the Gdebi package installer first rather than following my first instinct to go with a commandline. That let me look at the install directories, and everything seemed fine, so I clicked install. No problems installing, and it showed up properly in the menu. A few things here: You might want to change the download link - Dropbox lets you do this in a couple of different ways, and the one you selected requires that the downloader have a Dropbox account as well. You can alternately create a download link that anyone can use without needing an account. The installer installs to the /opt/livecode directory, which doesn't offer the option of installing just for the current user. That doesn't bother me, since it's what I wanted anyway, so I'm just noting it. Also, I'm not sure if it's desirable or feasible to create a .deb installer that would only install for the current user. And the size of the installer is a bit of a boggler. The installer from the downloads.livecode page is a bit under 400MB, and the .deb installer is 628MB. That seems like a lot of overhead. Just curious. -- Mark Wieder ahsoftware at gmail.com From bonnmike at gmail.com Wed Feb 28 21:24:00 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 28 Feb 2018 19:24:00 -0700 Subject: building deb packages In-Reply-To: <6379bf8b-6ee5-1ae6-95b9-1306c46a09f8@sonic.net> References: <6379bf8b-6ee5-1ae6-95b9-1306c46a09f8@sonic.net> Message-ID: Thanks for testing! Tickled that it actually worked. As far as installing for individual use, I haven't stumbled on a way to do that, so i'm not sure if its possible either. Thanks for the reminder about the link. It does work easier by changing the dl=0 to a 1, so here's the alternate link. (I did choose "copy public link" but it defaults to that page where you have to choose between direct download or download to Dropbox. The new link should fix that. ) https://www.dropbox.com/s/49d4g6n4fi7nabz/livecode_9.0.0_dp_11_x64.deb?dl=1 There is default compression used when building the deb, but obviously it needs to be tweaked. Not much real overhead as all it does is bundle up the proper directory structure, with a control file (straight text) that sets some parameters. I'll see if I can get better encryption because it is a big on the large side. If I can get things shrunk down and reliable, would you (or anyone) be interested in a selection of versions converted to deb? I don't think it would be very difficult to automate much of it. The only hard part on my end is the horrendously slow up connection I have. (runs a little under a half a Mbps.) Reading while answering, I think I may have some compression clues to follow up. Thanks Mark On Wed, Feb 28, 2018 at 6:48 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 02/28/2018 11:37 AM, Mike Bonner via use-livecode wrote: > >> I decided to see how hard it was to turn LC into a deb package. So far it >> hasn't been too difficult, the only thing I need to find again is how to >> have the icon auto update during the install. (as it is, to see the lc >> icon >> one must log out and in for it to show up, otherwise its the generic icon >> that shows... I have the answer to that specific thing.. I just need to >> remember where I put it. :) >> >> I built the .deb package on ubuntu 16.4. Currently, I don't know if it >> will function as is on earlier versions, and would also like others to >> test. This is the x64 version. >> >> Any of you who like messing with vm's, would you mind downloading it and >> seeing if it will work? (I'd rather a safe check in a vm rather than a >> production system obviously, though there isn't all that much that could >> go >> wrong.. i'm still paranoid) >> >> The link to it is here: >> https://www.dropbox.com/s/49d4g6n4fi7nabz/livecode_9.0.0_dp_ >> 11_x64.deb?dl=0 >> >> To install, at a command prompt run: dpkg -i livecode_9.0.0_dp_11_x64.deb >> >> I added some dependencies to the deb, but i'm unsure (so far) what might >> need to be adjusted for earlier versions (if anything.) Still trying to >> get a handle on how it all works. (it seems deceptively simple, so i'm >> pretty sure i'm missing something!) >> > > Installed properly here on linux Mint 17.3. I opened with the Gdebi > package installer first rather than following my first instinct to go with > a commandline. That let me look at the install directories, and everything > seemed fine, so I clicked install. No problems installing, and it showed up > properly in the menu. > > A few things here: > > You might want to change the download link - Dropbox lets you do this in a > couple of different ways, and the one you selected requires that the > downloader have a Dropbox account as well. You can alternately create a > download link that anyone can use without needing an account. > > The installer installs to the /opt/livecode directory, which doesn't offer > the option of installing just for the current user. That doesn't bother me, > since it's what I wanted anyway, so I'm just noting it. Also, I'm not sure > if it's desirable or feasible to create a .deb installer that would only > install for the current user. > > And the size of the installer is a bit of a boggler. The installer from > the downloads.livecode page is a bit under 400MB, and the .deb installer is > 628MB. That seems like a lot of overhead. Just curious. > > > -- > 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 gcanyon at gmail.com Wed Feb 28 23:44:40 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 28 Feb 2018 20:44:40 -0800 Subject: "Open in New Navigator" is back Message-ID: Thanks to Mark Talluto for pointing out the issues with it. It does what it says on the tin: right-click on any set of groups, cards, or stacks, select Open in New Navigator and each one opens in a new copy of Navigator. gc