From peter.brett at livecode.com Wed Mar 1 05:31:31 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 1 Mar 2017 10:31:31 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> Message-ID: On 28/02/2017 15:46, Bob Sneidar via use-livecode wrote: > Thanks for that Peter! I've been thinking about a way to encrypt data > for storage in database systems for things like passwords and server > credentials. Now to figure out how to decrypt it... Hi Bob, Never store user passwords in clear text, or in any encoding that can be reversed. Both message digest algorithms and HMACs are intended to be *one-way* functions -- this is one of their important properties. If you are handling passwords, then this is a pretty decent page with good guidelines on how to do it safely and securely: https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet Note that the HMAC definition I posted earlier is a simplified version; it would probably be a good idea to have a library that provides the full spec described in https://tools.ietf.org/html/rfc2104 Also, I'm wondering whether to add an Argon2 or PBKDF2 implementation to the engine to help with this. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From peter.brett at livecode.com Wed Mar 1 07:47:22 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 1 Mar 2017 12:47:22 +0000 Subject: RSYNC still uses MD5 and... In-Reply-To: References: Message-ID: <74c3ec2b-01b9-5624-bebc-7c34428ecc55@livecode.com> On 01/03/2017 02:39, Alejandro Tejada via use-livecode wrote: > RSYNC would be a nice and useful addition > to LiveCode engine. > > https://en.wikipedia.org/wiki/Rsync > > Could RSYNC be implemented fast enough > using only LiveCode scripts? The way that rsync uses hashes isn't at all problematic. If an attacker has the level of access to be able to introduce hash collisions into files that you're copying using rsync, then you have bigger problems than the hash collisions! In my opinion, rsync isn't a wheel that needs to be reinvented using LiveCode. :-) However, yes, since rsync is almost entirely constrained by IO bandwidth, there's no reason that you couldn't rewrite it to be fast enough using LiveCode. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From mark.rauterkus at gmail.com Wed Mar 1 08:25:52 2017 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Wed, 1 Mar 2017 08:25:52 -0500 Subject: Anyone doing a LiveCode Community Chat Bot? Wondering Message-ID: Hi, LiveCode seems like a great too for the creation of a Chat Bot, or multiple chat bots. Is anyone doing (or done) an open source / community chat bot with LiveCode? Just read two interesting articles. Pointers below: #1 I turned my mobile app into a chatbot. Here?s why. https://medium.freecodecamp.com/why-i-converted-my-app-to-a-chatbot-96355596725c#.mbp9zk44j #2 What it?s like to build and market a chatbot when you?re only 14 years old https://medium.freecodecamp.com/the-ups-and-downs-of-building-and-marketing-a-chat-bot-when-youre-14-8a072830b43c#.tmxs0bksa -- Ta. Mark Rauterkus Mark at Rauterkus.com http://CLOH.org From roger.e.eller at sealedair.com Wed Mar 1 09:04:07 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 1 Mar 2017 09:04:07 -0500 Subject: Anyone doing a LiveCode Community Chat Bot? Wondering In-Reply-To: References: Message-ID: I am very interested in AI bots. It would be really cool to use LiveCode to interface with the Google Home, or Amazon Echo API. Through kickstarter, I have supported the DashBot in hopes that it's core OS can run apps made with LiveCode. I don't have it yet, but I am hoping it has Android inside. https://techcrunch.com/2016/11/26/become-michael-knight-with-dashbot-an-ai-for-your-car/ ~Roger On Wed, Mar 1, 2017 at 8:25 AM, Mark Rauterkus via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > LiveCode seems like a great too for the creation of a Chat Bot, or multiple > chat bots. > > Is anyone doing (or done) an open source / community chat bot with > LiveCode? > > Just read two interesting articles. Pointers below: > > > #1 > I turned my mobile app into a chatbot. Here?s why. > https://medium.freecodecamp.com/why-i-converted-my-app-to- > a-chatbot-96355596725c#.mbp9zk44j > > #2 > What it?s like to build and market a chatbot when you?re only 14 years old > https://medium.freecodecamp.com/the-ups-and-downs-of- > building-and-marketing-a-chat-bot-when-youre-14-8a072830b43c#.tmxs0bksa > > > > > -- > Ta. > > > Mark Rauterkus Mark at Rauterkus.com > http://CLOH.org > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dvglasgow at gmail.com Wed Mar 1 09:39:49 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Wed, 1 Mar 2017 14:39:49 +0000 Subject: Dragging widgets In-Reply-To: References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> Message-ID: > On 1 Mar 2017, at 12:08 am, Bob Sneidar via use-livecode wrote: > > As to that, everything you do on a computer, INCLUDING typing code, is an illusion. A DOS prompt is an illusion in it's own right. So is a light bulb on a panel that was turned on by some signal from a computing device. All a computer can really do is move numbers from one register to another in a predefined way. By calling the LC GUI an illusion, you are simply removing yourself one more layer from the last illusion. So?. there is no spoon? Oh Wow! Look at that! My code (and this email) is writing itself when I just tilt my head and look meaningfully at the screen. Couldn?t resist. Best Wishes, David Glasgow From bobsneidar at iotecdigital.com Wed Mar 1 10:37:33 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 1 Mar 2017 15:37:33 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> Message-ID: <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> Hi Peter. Very informative thank you. In the example, [protected form] = [salt] + protect([protection func], [salt] + [credential]); It looks like they are saying to prepent the salt prior to the protect function (in the case of LC that would be encrypt) but if someone got access to the SQL database, wouldn't that give part of the secret away? Isn't the salt value a way to further obscure the credential, making something like a hash table more difficult? I use a salt value that only I know, and I password protect the stack that uses it. Seems to me that prepending the salt to the protected form is like giving someone my user name but not my password. The other team is starting on the 50 yard line (in American sports vernacular). Bob S > On Mar 1, 2017, at 02:31 , Peter TB Brett via use-livecode wrote: > > If you are handling passwords, then this is a pretty decent page with good guidelines on how to do it safely and securely: > > https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet From bobsneidar at iotecdigital.com Wed Mar 1 10:42:21 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 1 Mar 2017 15:42:21 +0000 Subject: Dragging widgets In-Reply-To: References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> Message-ID: Read the post I was responding to. Richmond seemed to be making the point that the GUI of Livecode presented an illusion to the end user that they were working with a "real" app. As I said, I may have misconstrued his meaning, but that was what it seemed like he was saying. Bob S > On Mar 1, 2017, at 06:39 , David V Glasgow via use-livecode wrote: > > So?. there is no spoon? > > Oh Wow! Look at that! My code (and this email) is writing itself when I just tilt my head and look meaningfully at the screen. > > Couldn?t resist. > > Best Wishes, > David Glasgow From richmondmathewson at gmail.com Wed Mar 1 10:58:11 2017 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 1 Mar 2017 17:58:11 +0200 Subject: Dragging widgets In-Reply-To: References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> Message-ID: <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> I'm sorry if that is how you understood my posting. What I meant was that many people don't really want to look "under the hood" of the illusion created by the desktop manager and so forth, with its artifacts such as icons, folders and images, to any of the abstraction layers underneath. The WIMP GUI has, by and large, become the standard way people interact with computers, and the family line that started with Hypercard was initially meant for standard people, not for people who delighted in getting themselves smeared in oil and whatever from messing around beneath the GUI. LiveCode is "real", and part of its "reality" involves sustaining the illusion that one can program with 'objects', dragging them around, rotating them, flipping them, and spreading "jam" on them as if they were slices of bread on a table rather than complicated congeries of numbers. The messy way that one currently imports SVG images into LiveCode mucks up that illusion. The fact that LiveCode can now import vector graphics is wonderful, and it was not that I wanted to describe as "sucking". What sucks is that, owing to the way one has to import SVG graphics the "standard" import model is broken, and it allows us to see some of the sub-GUI stuff. Richmond. On 01/03/17 17:42, Bob Sneidar via use-livecode wrote: > Read the post I was responding to. Richmond seemed to be making the point that the GUI of Livecode presented an illusion to the end user that they were working with a "real" app. As I said, I may have misconstrued his meaning, but that was what it seemed like he was saying. > > Bob S > > >> On Mar 1, 2017, at 06:39 , David V Glasgow via use-livecode wrote: >> >> So?. there is no spoon? >> >> Oh Wow! Look at that! My code (and this email) is writing itself when I just tilt my head and look meaningfully at the screen. >> >> Couldn?t resist. >> >> Best Wishes, >> David Glasgow > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peter.brett at livecode.com Wed Mar 1 11:01:40 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 1 Mar 2017 16:01:40 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> Message-ID: On 01/03/2017 15:37, Bob Sneidar via use-livecode wrote: > Hi Peter. Very informative thank you. In the example, > > [protected form] = [salt] + protect([protection func], [salt] + > [credential]); > > It looks like they are saying to prepent the salt prior to the > protect function (in the case of LC that would be encrypt) but if > someone got access to the SQL database, wouldn't that give part of > the secret away? Isn't the salt value a way to further obscure the > credential, making something like a hash table more difficult? > > I use a salt value that only I know, and I password protect the stack > that uses it. Seems to me that prepending the salt to the protected > form is like giving someone my user name but not my password. The > other team is starting on the 50 yard line (in American sports > vernacular). The idea of a password storage scheme is to make it extremely costly for an attacker to recover the original passwords, even given _total_ information about the scheme. When evaluating a scheme, you should always assume that if someone has got access to your password database, they have also got access to anything else on that server or any server connected to it -- potentially including your secret salt. By appending the salt to the front of the protected form, you can use a different salt for every single password in your database. Even if someone knows a password already (e.g. because they have an account on your server), they gain no information about any of the other passwords in the database. Password storage schemes like Argon2 go one step further and put all of the parameters for the protected form into the protected string. This allows the parameters to be modified for newly-stored passwords while still being able to verify old passwords. They are also tuned to ensure that it takes a long time to compute the protected form (usually around 0.1 to 0.5 ms). That's long enough that knowing _all_ the parameters still makes it infeasible to figure out what the original password was. In summary: salt values shouldn't need to be secret. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From livfoss at mac.com Wed Mar 1 11:35:09 2017 From: livfoss at mac.com (Graham Samuel) Date: Wed, 01 Mar 2017 17:35:09 +0100 Subject: Dragging widgets In-Reply-To: <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> Message-ID: <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> I don?t always agree with Richmond (to put it mildly) but here I feel very close to his position. I think that the mother ship's attempts to make LC more up to date and at the same time more relevant to commercial software production are laudable, and even necessary to ensure the product stays in the game, so to speak. But (and there certainly is a ?but?) there is a danger that the whole LC environment might move away from the very powerful ?everyone can code? ideal. It may be simply that this list is preoccupying itself with more arcane stuff that?s outside the comfort zone of most LC developers, but instinctively I feel the danger is real. Maybe there should be a ?who benefits?? test applied to new stuff, especially stuff that breaks the existing model. Just my two Brexit-affected Eurocents Graham > On 1 Mar 2017, at 16:58, Richmond via use-livecode wrote: > > I'm sorry if that is how you understood my posting. > > What I meant was that many people don't really want to look "under the hood" of the illusion > created by the desktop manager and so forth, with its artifacts such as icons, folders and images, > to any of the abstraction layers underneath. > > The WIMP GUI has, by and large, become the standard way people interact with computers, > and the family line that started with Hypercard was initially meant for standard people, not > for people who delighted in getting themselves smeared in oil and whatever from messing around > beneath the GUI. > > LiveCode is "real", and part of its "reality" involves sustaining the illusion that one can program with > 'objects', dragging them around, rotating them, flipping them, and spreading "jam" on them as if > they were slices of bread on a table rather than complicated congeries of numbers. > > The messy way that one currently imports SVG images into LiveCode mucks up that illusion. > > The fact that LiveCode can now import vector graphics is wonderful, and it was not that I wanted > to describe as "sucking". What sucks is that, owing to the way one has to import SVG graphics > the "standard" import model is broken, and it allows us to see some of the sub-GUI stuff. > > Richmond. > > On 01/03/17 17:42, Bob Sneidar via use-livecode wrote: >> Read the post I was responding to. Richmond seemed to be making the point that the GUI of Livecode presented an illusion to the end user that they were working with a "real" app. As I said, I may have misconstrued his meaning, but that was what it seemed like he was saying. >> >> Bob S >> >> >>> On Mar 1, 2017, at 06:39 , David V Glasgow via use-livecode wrote: >>> >>> So?. there is no spoon? >>> >>> Oh Wow! Look at that! My code (and this email) is writing itself when I just tilt my head and look meaningfully at the screen. >>> >>> Couldn?t resist. >>> >>> Best Wishes, >>> David Glasgow >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 1 13:22:48 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 1 Mar 2017 10:22:48 -0800 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: References: Message-ID: This thread title asks: "What are the chances this will be addressed in LC?" The answer turns out to be: "Quite good - pull request submitted, status changed to 'Awaiting Build'" - i.e. "done!" http://quality.livecode.com/show_bug.cgi?id=14223 Many thanks to Peter Brett for addressing this, and implementing it in such a nice way. From the pull request linked to in the bug report it seems we now have a new messageDigest function: get messageDigest( , ) (Note: there's discussion in the pull request about the param order, and I'm inferring here; the actual implementation may be the other way around, with type first and then message - Peter, Monte, where did that land?) ...where (if I read the notes correctly; Peter please correct me if I'm wrong) can be any of the following: md5 sha1 sha2 sha3 Awesome! With those we should be set for several years. This will mean that from v9.0 dp6 forward you'll probably want to avoid using the older md5Digest and sha1Digest functions in favor of this new syntax. If you need the older hash algos the new function apparently supports them, but of course if you need a cryptographic-quality hash use sha2 or sha3. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brahma at hindu.org Wed Mar 1 14:40:32 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 1 Mar 2017 19:40:32 +0000 Subject: Dragging widgets In-Reply-To: <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> Message-ID: <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> Graham Samual wrote: But (and there certainly is a ?but?) there is a danger that the whole LC environment might move away from the very powerful ?everyone can code? ideal. It may be simply that this list is preoccupying itself with more arcane stuff that?s outside the comfort zone of most LC developers, but instinctively I feel the danger is real. Maybe there should be a ?who benefits?? test applied to new stuff, especially stuff that breaks the existing model. Just my two Brexit-affected Eurocents Graham ------- BR: Ditto what Graham has said. The "danger" is very real?.I just downloaded HYPE from Tumult: this is where some serious competition is coming from. One of my "non programmer" editors here, who knows Keynote really well makes "Hollywood grade" presentations? can be building in HYPE in a few days? the HTML5 layer is completely hidden?unless he really *wants* to get into the JS (he never, ever will). I plan to start using it myself to? for projects I had started in LC but which clearly cannot be taken to the next level in LC. From peter.brett at livecode.com Wed Mar 1 15:00:13 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 1 Mar 2017 20:00:13 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: References: Message-ID: <418e6264-4dbd-dcc7-c5ce-2017c4ad98ab@livecode.com> On 01/03/2017 18:22, Richard Gaskin via use-livecode wrote: > The answer turns out to be: "Quite good - pull request submitted, status > changed to 'Awaiting Build'" - i.e. "done!" > > http://quality.livecode.com/show_bug.cgi?id=14223 > > Many thanks to Peter Brett for addressing this, and implementing it in > such a nice way. Hold your horses, Richard, I'm still waiting for the official Mark Waddingham stamp of approval for making changes to the LiveCode language! There's a still a chance that it'll change a bit before it actually makes its way into a release. Peter ;-) -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From richmondmathewson at gmail.com Wed Mar 1 15:23:58 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 1 Mar 2017 22:23:58 +0200 Subject: Dragging widgets In-Reply-To: <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> Message-ID: <510121ee-9ad5-cee2-48e1-75fb7c23e808@gmail.com> Name dropping like that (HYPE from Tumult) inevitably makes me want to check the thing out. http://tumult.com/hype/ It certainly looks very impressive . . . BUT: 1. It is confined to one platform (Mac OS X 10.8 and up). 2. Its output seems to be HTML5 only. As I only stretch to Mac OS 10.7.5 at present my comments are only based by what I can see on the website. This does not mean that LiveCode should rest on its laurels. Richmond. On 3/1/17 9:40 pm, Sannyasin Brahmanathaswami via use-livecode wrote: > Graham Samual wrote: > > But (and there certainly is a ?but?) there is a danger that the whole LC environment might move away from the very powerful ?everyone can code? ideal. It may be simply that this list is preoccupying itself with more arcane stuff that?s outside the comfort zone of most LC developers, but instinctively I feel the danger is real. > > Maybe there should be a ?who benefits?? test applied to new stuff, especially stuff that breaks the existing model. > > Just my two Brexit-affected Eurocents > > Graham > ------- > > BR: Ditto what Graham has said. The "danger" is very real?.I just downloaded HYPE from Tumult: this is where some serious competition is coming from. One of my "non programmer" editors here, who knows Keynote really well makes "Hollywood grade" presentations? can be building in HYPE in a few days? the HTML5 layer is completely hidden?unless he really *wants* to get into the JS (he never, ever will). I plan to start using it myself to? for projects I had started in LC but which clearly cannot be taken to the next level in LC. > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Wed Mar 1 16:07:00 2017 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 01 Mar 2017 22:07:00 +0100 Subject: Dragging widgets In-Reply-To: <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> Message-ID: > 1. mar. 2017 kl. 20.40 skrev Sannyasin Brahmanathaswami via use-livecode : > > I just downloaded HYPE from Tumult: this is where some serious competition is coming from. If animated content is what you want to build, then, yes. But it is nowhere near the functionality we expect and get from LC. From time to time I use Hype to make animated and interactive content for my students, but when I need to make some serious applications that rely on variables, arrays, writing to and reading from external files, manipulate files and folders on the host system, use controls like radio buttons or check boxes, use menus or editable fields, there is no way this can be done in Hype 3.0 without writing html, css and java script manually. The kind of actions you are able to use are limited to mouse/touch actions. Personally I am no big fan of menu driven scripting. I prefer to write my own code and find that this is very often quicker than navigating meny different menus. I like the way they have managed to implement html/css/javascript in a seamless way though, and I had hoped that this was the kind of implementation we would get in LC. Regards Tore Nilsen From capellan2000 at gmail.com Wed Mar 1 16:42:20 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 1 Mar 2017 16:42:20 -0500 Subject: Image Manipulation by javascript/HTML5 using a widget Message-ID: Using browser widget in LC 8.1.3, I could not open and run any webGL demo webpage, but according to the website html5test.org this browser widget is Chrome 47 and could run webGL, but not webGL2... :( Al On Tue, 28 Feb 2017, Jonathan Lynch wrote: > Thank you. There's a whole ton of javascript libraries out there that allow > some great effects. I have not yet learned webgl, but I know we could do > some very cool warps with it. I don't have much knowledge in that area, > but I look forward to all the stuff that you and others with a high-level of > image manipulation skills could create. From capellan2000 at gmail.com Wed Mar 1 16:59:19 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 1 Mar 2017 16:59:19 -0500 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? Message-ID: Peter Brett wrote: > Hold your horses, Richard, I'm still waiting for the official > Mark Waddingham stamp of approval for making changes > to the LiveCode language! > There's a still a chance that it'll change a bit before it > actually makes its way into a release. This is real good news! :D Any chance that we get BZip2, Deflate and ZLib compression too? http://quality.livecode.com/show_bug.cgi?id=10594 Al From jonathandlynch at gmail.com Wed Mar 1 17:28:05 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 1 Mar 2017 17:28:05 -0500 Subject: Image Manipulation by javascript/HTML5 using a widget In-Reply-To: References: Message-ID: <3A56114F-07A9-480C-9A61-62C5B431FD16@gmail.com> I am running webglearth pretty well, so I know it can be done. Sent from my iPhone > On Mar 1, 2017, at 4:42 PM, Alejandro Tejada via use-livecode wrote: > > Using browser widget in LC 8.1.3, I could not open and run > any webGL demo webpage, but according to the website > html5test.org this browser widget is Chrome 47 and could run > webGL, but not webGL2... :( > > Al > >> On Tue, 28 Feb 2017, Jonathan Lynch wrote: >> Thank you. There's a whole ton of javascript libraries out there that > allow >> some great effects. I have not yet learned webgl, but I know we could do >> some very cool warps with it. I don't have much knowledge in that area, >> but I look forward to all the stuff that you and others with a high-level > of >> image manipulation skills could create. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 1 21:40:00 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 2 Mar 2017 02:40:00 +0000 Subject: Dragging widgets In-Reply-To: References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> Message-ID: <320AE4B0-CA90-4F6F-BB38-ADF628774F02@hindu.org> Yes, of course, Hype is nowhere near the scope of LC. my interest is just what you describe: an environment for smooth easy-to-build animation and, if it can also be deployed on a web site without having to load the entire Emscriptem , so much the better. A full graphic mini-novel-story (6 minutes user driven) I would prefer to do it in LC, because the scope of the back end is so much bigger, but it's just too hard compared to something like HYPE to do a) easily b) look really good. So if we could build it in HTML5, if we could only fully integrate the browser widget in the message path we would have our Dosai and Sambar too. Plus you get the bonus of being able to deploy on web without having to wait for the entire Emscripten engine to load. and, back on point, being able to touch-drag any object is simply the default expectation for a newbie coming from that GUI/Front End/UI design space over to check out LC? On 3/1/17, 11:07 AM, "use-livecode on behalf of Tore Nilsen via use-livecode" wrote: If animated content is what you want to build, then, yes. But it is nowhere near the functionality we expect and get from LC. From time to time I use Hype to make animated and interactive content for my students, but when I need to make some serious applications that rely on variables, arrays, writing to and reading from external files, manipulate files and folders on the host system, use controls like radio buttons or check boxes, use menus or editable fields, there is no way this can be done in Hype 3.0 without writing html, css and java script manually. The kind of actions you are able to use are limited to mouse/touch actions. Personally I am no big fan of menu driven scripting. I prefer to write my own code and find that this is very often quicker than navigating meny different menus. I like the way they have managed to implement html/css/javascript in a seamless way though, and I had hoped that this was the kind of implementation we would get in LC. Regards Tore Nilsen From capellan2000 at gmail.com Wed Mar 1 21:54:11 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 1 Mar 2017 21:54:11 -0500 Subject: Anyone doing a LiveCode Community Chat Bot? Wondering Message-ID: Chatbots in LiveCode? Look at this site: https://sites.google.com/a/pgcps.org/livecode/artificial-intelligence Check first student's examples. Download this LC compatible very old stack (adapted from a HyperCard stack) requires some easy fixes to run well in LC 8: http://www.capellan2000.000space.com/spectresmart.zip Years ago, I remember that someone wrote in the mail list about creating a LiveCode version of ALICE: http://www.pandorabots.com/pandora/talk?botid=f5d922d97e345aa1 but no updates after this first mention. Al From jerry at jhjensen.com Wed Mar 1 22:22:10 2017 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 1 Mar 2017 19:22:10 -0800 Subject: Anyone doing a LiveCode Community Chat Bot? Wondering In-Reply-To: References: Message-ID: <9F1C9557-40EE-403E-B877-B7B124ADA0E3@jhjensen.com> From times past. I don?t know the current status. http://bjoernke.com/index.irev?target=chatrev .Jerry > On Mar 1, 2017, at 5:25 AM, Mark Rauterkus via use-livecode wrote: > > Hi, > > LiveCode seems like a great too for the creation of a Chat Bot, or multiple > chat bots. > > Is anyone doing (or done) an open source / community chat bot with LiveCode? > > Just read two interesting articles. Pointers below: > > > #1 > I turned my mobile app into a chatbot. Here?s why. > https://medium.freecodecamp.com/why-i-converted-my-app-to-a-chatbot-96355596725c#.mbp9zk44j > > #2 > What it?s like to build and market a chatbot when you?re only 14 years old > https://medium.freecodecamp.com/the-ups-and-downs-of-building-and-marketing-a-chat-bot-when-youre-14-8a072830b43c#.tmxs0bksa > > > > > -- > Ta. > > > Mark Rauterkus Mark at Rauterkus.com > http://CLOH.org > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Wed Mar 1 22:27:48 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 1 Mar 2017 22:27:48 -0500 Subject: Anyone doing a LiveCode Community Chat Bot? Wondering Message-ID: Now that I remember, Scott McDonald also included a chatbot "Dr. Eliza" in his book about LiveCode games (page 71-77): http://livecodegamedeveloper.com/blog/2014-02-24/Coding-Nine-LiveCode-Games-Sample.pdf On Wed, Mar 1, 2017 at 9:54 PM, Alejandro Tejada wrote: > Chatbots in LiveCode? > > Look at this site: > https://sites.google.com/a/pgcps.org/livecode/artificial-intelligence > Check first student's examples. > Download this LC compatible very old stack (adapted from a HyperCard > stack) requires some easy fixes to run well in LC 8: > http://www.capellan2000.000space.com/spectresmart.zip > > Years ago, I remember that someone wrote in the mail list about creating a > LiveCode version of ALICE: > http://www.pandorabots.com/pandora/talk?botid=f5d922d97e345aa1 > but no updates after this first mention. > > Al > > From brahma at hindu.org Wed Mar 1 22:40:05 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 2 Mar 2017 03:40:05 +0000 Subject: CompositorType Android Performance Message-ID: we are having some issues with performance of our new app on Android, moving from one card/stack to another or dynamically updated the interface on the same card?) without navigating to another card or stack) can take 3-5 seconds, Turning on the accelerated rendering of a stack causees it to crash when navigating from one stack (B) to another (A) , when we issue a command to dynamically update the interface of stack A on returning to that card. ( Bug confirmed with HQ but no resolution yet.) So I went hunting and found an old thread on the forums, which also discusses Android performance related to compostorType settings. There's been no more discussion since Apr '16 http://forums.livecode.com/search.php?sid=192d835ccba0ebcb501a069f71a7a11c I'm working on Mac and when I query the stack with msg box I get a compositorType setting of "coreGraphics" but I'm not setting that. there is earlier discussion on the forum thread about explicitly setting compositor to openGL, tilesize and cache limit etc. another post there sounds exactly like what we are experiencing "I'm not sure if this is related - but on Android I was recently experiencing a big delay in re-drawing a new card (with associated animations) when switching between cards. After a lot of experimentation I was able to solve this by turning Accelerated Rendering OFF. If I really needed AR (it turns out that I don't in my current project) I'd experiment with turning it off on close card, then on again after open card." but no resolution or robust recommendations after that? Any updates on this sphere, learned best practices and experiences for Android? App requirements are 1) dynamically redrawing sub-groups of a main group on click of one subgroup (whole group is rebuilt-card redrawn) 2) moving from one stack (b) back to another (a) where stack (a) has it's main scrolling group rebuilt. This all works fine on iOS and also Nexus5, but we may be deployed on smaller android devices?so looking to optimize as best we can. BR From jacque at hyperactivesw.com Thu Mar 2 00:54:16 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 1 Mar 2017 23:54:16 -0600 Subject: CompositorType Android Performance In-Reply-To: References: Message-ID: On 3/1/17 9:40 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > So I went hunting and found an old thread on the forums, which also > discusses Android performance related to compostorType settings. > > There's been no more discussion since Apr '16 I never did quite understand how to adjust the compositorType and the other properties. Shortly after acceleratedRendering was introduced, LC started applying default settings for us, and since then I haven't bothered to change them. In fact, there's a warning in the dictionary that unless we know what we're doing, we're better off leaving the defaults alone. So I do. > http://forums.livecode.com/search.php?sid=192d835ccba0ebcb501a069f71a7a11c > > I'm working on Mac and when I query the stack with msg box I get a > compositorType setting of "coreGraphics" but I'm not setting that. That's the default for Mac. They're listed in the dictionary under acceleratedRendering. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Thu Mar 2 03:07:51 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 2 Mar 2017 10:07:51 +0200 Subject: Dragging widgets In-Reply-To: References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> Message-ID: <3348c9d2-9d6d-d073-9c6d-1db10a084874@gmail.com> No, HYPE is not 'serious' competition; it might be something that squishes LiveCode's HTML5 extension if LiveCode don't buck up and get on with things in that direction. On 3/1/17 11:07 pm, Tore Nilsen via use-livecode wrote: >> 1. mar. 2017 kl. 20.40 skrev Sannyasin Brahmanathaswami via use-livecode : >> >> I just downloaded HYPE from Tumult: this is where some serious competition is coming from. > If animated content is what you want to build, then, yes. But it is nowhere near the functionality we expect and get from LC. From time to time I use Hype to make animated and interactive content for my students, but when I need to make some serious applications that rely on variables, arrays, writing to and reading from external files, manipulate files and folders on the host system, use controls like radio buttons or check boxes, use menus or editable fields, there is no way this can be done in Hype 3.0 without writing html, css and java script manually. > > The kind of actions you are able to use are limited to mouse/touch actions. Personally I am no big fan of menu driven scripting. Is menu driven scripting really programming? (500-900 words, on my desk by Monday). Why do I feel that menu driven scripting is like driving an automatic car (last time I drove one of those I crashed it by using my left foot to press on the "clutch"), while LiveCode feels like driving a manual transmission car, and C++, PASCAL, et al are rather like building your own car before you drive the thing? > I prefer to write my own code and find that this is very often quicker than navigating meny different menus.*I like the way they have managed to implement html/css/javascript in a > seamless way though, and I had hoped that this was the kind of > implementation we would get in LC.* Very well said. > > Regards > Tore Nilsen > _______________________________________________ > Richmond. From smudge.andy at googlemail.com Thu Mar 2 03:16:47 2017 From: smudge.andy at googlemail.com (AndyP) Date: Thu, 2 Mar 2017 00:16:47 -0800 (PST) Subject: Anyone doing a LiveCode Community Chat Bot? Wondering In-Reply-To: References: Message-ID: <1488442607681-4712773.post@n4.nabble.com> Have a look here http://newsletters.livecode.com/july/issue152/newsletter2.php ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode TinyIDE Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Anyone-doing-a-LiveCode-Community-Chat-Bot-Wondering-tp4712750p4712773.html Sent from the Revolution - User mailing list archive at Nabble.com. From danoldboy at gmail.com Thu Mar 2 04:27:30 2017 From: danoldboy at gmail.com (Dan Brown) Date: Thu, 2 Mar 2017 09:27:30 +0000 Subject: Dragging widgets In-Reply-To: <3348c9d2-9d6d-d073-9c6d-1db10a084874@gmail.com> References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> <3348c9d2-9d6d-d073-9c6d-1db10a084874@gmail.com> Message-ID: Eve looks to be the a very promising language for producing html5 applications. The browser IDE is clean and beautifully presented http://play.witheve.com/#/examples/flappy.eve On Thu, Mar 2, 2017 at 8:07 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > No, HYPE is not 'serious' competition; it might be something that squishes > LiveCode's HTML5 extension > if LiveCode don't buck up and get on with things in that direction. > > On 3/1/17 11:07 pm, Tore Nilsen via use-livecode wrote: > >> 1. mar. 2017 kl. 20.40 skrev Sannyasin Brahmanathaswami via use-livecode < >>> use-livecode at lists.runrev.com>: >>> >>> I just downloaded HYPE from Tumult: this is where some serious >>> competition is coming from. >>> >> If animated content is what you want to build, then, yes. But it is >> nowhere near the functionality we expect and get from LC. From time to time >> I use Hype to make animated and interactive content for my students, but >> when I need to make some serious applications that rely on variables, >> arrays, writing to and reading from external files, manipulate files and >> folders on the host system, use controls like radio buttons or check boxes, >> use menus or editable fields, there is no way this can be done in Hype 3.0 >> without writing html, css and java script manually. >> >> The kind of actions you are able to use are limited to mouse/touch >> actions. Personally I am no big fan of menu driven scripting. >> > > Is menu driven scripting really programming? (500-900 words, on my desk by > Monday). > > Why do I feel that menu driven scripting is like driving an automatic car > (last time I drove one > of those I crashed it by using my left foot to press on the "clutch"), > while LiveCode feels like > driving a manual transmission car, and C++, PASCAL, et al are rather like > building your own > car before you drive the thing? > > I prefer to write my own code and find that this is very often quicker >> than navigating meny different menus.*I like the way they have managed to >> implement html/css/javascript in a seamless way though, and I had hoped >> that this was the kind of implementation we would get in LC.* >> > > Very well said. > > >> Regards >> Tore Nilsen >> _______________________________________________ >> >> 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 matthias_livecode_150811 at m-r-d.de Thu Mar 2 04:32:44 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 2 Mar 2017 10:32:44 +0100 Subject: FTP file upload with non-ascii characters in filename In-Reply-To: <61850B41-AD91-47D3-83F3-6192D1D21A5E@m-r-d.de> References: <40097D21-717F-4EF4-A744-0418ADC3ECCE@m-r-d.de> <7DD7340C-B71A-4008-99EF-195655BBAF4B@iotecdigital.com> <84F9E864-F232-4649-8D6C-0E5AED3191BE@m-r-d.de> <15a85801480.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <61850B41-AD91-47D3-83F3-6192D1D21A5E@m-r-d.de> Message-ID: <700C19FC-63F2-48E0-B57B-6BDEC2F3D4AD@m-r-d.de> My problem is solved now. I found out that 1. it works w/o problems under Windows 2. it works under Mac OS X if i unload/disable tsNET So i contacted Charles Warwick. This is his answer ?> "OS X / Linux filesystems are all UTF-8, so you need to convert the filename to UTF-8 format before calling libUrlFtpUploadFile. Try changing the end of your mouseUp handler to look like this: ... libURLSetStatusCallback "uploadProgress", the long ID of me put textencode(tSourceFile, "UTF-8") into tSourceFile liburlftpuploadfile tSourceFile,tURL ,?uploadComplete" ... Let me know if that resolves your issue or not. It seemed to fix the issue on my Mac. If it does - since this seems to only be an issue with tsNet loaded - I will modify the libUrl wrapper for tsNet so it automatically does that conversion on those platforms in the next LC version to keep compatibility with those not using tsNet.? Am 28.02.2017 um 18:10 schrieb Matthias Rebbe via use-livecode >: > > > It seems it?s not a problem with non-ascii in general. > > If i first put the content of the file, which i want to upload and which contains non-ascii chars in its filename, > into a variable and urlencode the filename of the target file, then i am able to upload the file using "liburlftpupload tData, tTargetURL" without problems. > > But if i use "liburlftpfileupload tSourceFilePath, tTargetURL? to upload the same file using source file path and target URL, then i get an error. > It works with files wihtout non-ascii chars in their filenames. > > Is it possible that there is a problem with libURL and non-ascii filenames? > > Regards, > Matthias > > >> Am 28.02.2017 um 17:14 schrieb J. Landman Gay via use-livecode >>: >> >> Maybe textDecode(filename) would work. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com > >> HyperActive Software | http://www.hyperactivesw.com > >> >> >> >> On February 28, 2017 10:01:47 AM Matthias Rebbe via use-livecode >> wrote: >> >>> >>>> Am 28.02.2017 um 16:36 schrieb Bob Sneidar via use-livecode > >>>: >>>> >>>> Is the need because the files already exist, or is it because you cannot control the source of the files? If possible, the files should probably be renamed on the other end to make them "compatible" with all file systems. If not, then maybe urlEncode/urlDecode or the ISO functions may work for you. >>>> >>> >>> Thanks Bob. That?s what i am doing right now. >>> >>> As i cannot guarantee that my customer won?t use such filenames, i will implement a function that removes and replaces all characters that are non-ascii. >>> >>> Although, i am wondering how ftp clients like transmit are able to handle such non-ascii characters. Anyway. >>> >>> Regards, >>> >>> Matthias >>> >>>> Bob S >>>> >>>> >>>>> On Feb 28, 2017, at 24:23 , Matthias Rebbe via use-livecode > >>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> i need to upload files with non-ascii characters in the filename and this has to work on Win and Mac OS X. >>>>> >>>>> >>>>> >>>>> 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 > >> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com > >> >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> >>> >>> >>> >>> Matthias Rebbe >>> Bramkampsieke 13 >>> 32312 L?bbecke >>> Tel +49 5741 310000 >>> +49 160 5504462 >>> Fax: +49 5741 310002 >>> eMail: matthias at m-r-d.de > >> >>> >>> BR5 Konverter - BR5 -> MP3 >> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From axwald at gmail.com Thu Mar 2 05:20:30 2017 From: axwald at gmail.com (axwald) Date: Thu, 2 Mar 2017 02:20:30 -0800 (PST) Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> Message-ID: <1488450030137-4712777.post@n4.nabble.com> Hi, Dr Peter Brett wrote > On 24/02/2017 18:47, axwald via use-livecode wrote: > [...] >> Not a specialist regarding this, but wouldn't it be possible to interface >> such? >>> https://github.com/jedisct1/libsodium >> >> @Lagi: The first customer already called to ask if I'd use "this security >> risk" - thanks "LibHash-Hmac" (Richard posted the URL) I could deny >> [...] > > If you're using SHA-1 to implement an HMAC, you should already be using > the recommended formulation: > > hmac := hash(key | hash(key | message)) [...] What I meant mentioning the "LibHash-Hmac" lib is that it contains a "sha256digest" function already that is, to my understanding at least, a SHA2 implementation. And that it's not only about the real danger of having one's hash cracked, it's more about the publicity this crack received, and the nosy questions that are coming in now from customers that read about it in the news. And, for sure, will never understand any detailed explanation. The other thing, about libsodium, was the idea not to roll our own crypto code, but instead to interface a commonly used, audited, verified & accepted open source crypto library. And just provide the wrapper as a plugin. No idea if such would be possible - this is beyond my knowledge. But for real security sensitive coding there's no way but to use audited code anyways. It would be a great benefit to have such available in LiveCode, IMHO. Another benefit would be that such a wrapper plugin could be made available not only for the most bleeding edge versions of LC - so that commercial coders that are forced to use more settled versions for speed, productivity & reliability are not left out in the dark & cold, again. Have fun! ----- ? Livecode programming until the cat hits the fan ? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SHA1-cracked-What-are-the-chances-this-will-be-addressed-in-LC-tp4712554p4712777.html Sent from the Revolution - User mailing list archive at Nabble.com. From iphonelagi at gmail.com Thu Mar 2 05:35:34 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 2 Mar 2017 10:35:34 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <1488450030137-4712777.post@n4.nabble.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <1488450030137-4712777.post@n4.nabble.com> Message-ID: Excellent points Axwald especially the last paragraph. Happy Happy Happy Fun Fun Fun!! ;-) On 2 March 2017 at 10:20, axwald via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > > Dr Peter Brett wrote > > On 24/02/2017 18:47, axwald via use-livecode wrote: > > [...] > >> Not a specialist regarding this, but wouldn't it be possible to > interface > >> such? > >>> https://github.com/jedisct1/libsodium > >> > >> @Lagi: The first customer already called to ask if I'd use "this > security > >> risk" - thanks "LibHash-Hmac" (Richard posted the URL) I could deny > >> [...] > > > > If you're using SHA-1 to implement an HMAC, you should already be using > > the recommended formulation: > > > > hmac := hash(key | hash(key | message)) [...] > > What I meant mentioning the "LibHash-Hmac" lib is that it contains a > "sha256digest" function already that is, to my understanding at least, a > SHA2 implementation. And that it's not only about the real danger of having > one's hash cracked, it's more about the publicity this crack received, and > the nosy questions that are coming in now from customers that read about it > in the news. And, for sure, will never understand any detailed explanation. > > The other thing, about libsodium, was the idea not to roll our own crypto > code, but instead to interface a commonly used, audited, verified & > accepted > open source crypto library. And just provide the wrapper as a plugin. > No idea if such would be possible - this is beyond my knowledge. But for > real security sensitive coding there's no way but to use audited code > anyways. It would be a great benefit to have such available in LiveCode, > IMHO. > > Another benefit would be that such a wrapper plugin could be made available > not only for the most bleeding edge versions of LC - so that commercial > coders that are forced to use more settled versions for speed, productivity > & reliability are not left out in the dark & cold, again. > > Have fun! > > > > ----- > ? Livecode programming until the cat hits the fan ? > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/SHA1-cracked-What-are-the-chances- > this-will-be-addressed-in-LC-tp4712554p4712777.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Thu Mar 2 06:37:22 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 2 Mar 2017 06:37:22 -0500 Subject: Dragging widgets In-Reply-To: <3348c9d2-9d6d-d073-9c6d-1db10a084874@gmail.com> References: <15a869f304c-5032-8bd4@webstg-m07.mail.aol.com> <365d2b00-8a3e-d035-65b0-5ed161085ba0@gmail.com> <6CFBF700-3FF4-41CC-9BFB-67FF14D7FD44@mac.com> <5E2E3737-C014-4EEB-92F2-53AD33855253@hindu.org> <3348c9d2-9d6d-d073-9c6d-1db10a084874@gmail.com> Message-ID: On Mar 2, 2017 3:08 AM, "Richmond Mathewson via use-livecode" < use-livecode at lists.runrev.com> wrote: > Is menu driven scripting really programming? (500-900 words, on my desk by Monday). > > Why do I feel that menu driven scripting is like driving an automatic car (last time I drove one > of those I crashed it by using my left foot to press on the "clutch"), while LiveCode feels like > driving a manual transmission car, and C++, PASCAL, et al are rather like building your own > car before you drive the thing? > >> I prefer to write my own code and find that this is very often quicker > Richmond. There used to be (might still be / haven't checked) a menu in the LC Script Editor to "Insert control structure" which was good for noobs to get started with switch statements, etc. ~Roger From gregory.lypny at videotron.ca Thu Mar 2 09:30:14 2017 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Thu, 2 Mar 2017 09:30:14 -0500 Subject: Blowing Away the Cobwebs Message-ID: <5C220690-AA44-4F4D-A888-96CF750418CB@videotron.ca> Hi everyone, I?m getting back to LiveCode after a fairly long absence, having been sidetracked by a massive text analysis project that required me to depend a lot on Mathematica. I?m hoping you can help with a few ad hoc questions. Does LiveCode have a matrix inverse function? I thought it did but I can?t find one. I did find the matrix multiplication function. Is there a tutorial (for dummies) on writing externals? I?d like to export some of my Mathematica code to C and use LiveCode to build a UI. I don?t know C, but I do know that Mathematica code can be exported as C. Is it possible to give fields rounded corners? I don?t see a radius property in the field inspector. I can create one by overlaying a field with a graphics rectangle that has rounded corners, but if the field property exists, I?d rather use it. Regards, Greg From th.douez at gmail.com Thu Mar 2 12:35:22 2017 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 2 Mar 2017 18:35:22 +0100 Subject: Howto read-write-import-export SAP tables Message-ID: Hi, Is there some ways to interact with SAP databases (windows)? I need to: import / export datas to / from SAP modules read / write datas. My knowledge in this area is close to zero, so any hints or links are very much welcomed. Kind regards, Thierry -- ------------------------------------------------ Thierry Douez - http ?s? ://sunny-tdz.com From MikeKerner at roadrunner.com Thu Mar 2 13:51:59 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 2 Mar 2017 13:51:59 -0500 Subject: Howto read-write-import-export SAP tables In-Reply-To: References: Message-ID: Most ERP systems have an API and external connectors. You might have to have SAP do the work, though. Look up DBCO On Thu, Mar 2, 2017 at 12:35 PM, Thierry Douez via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > Is there some ways to interact with SAP databases (windows)? > > I need to: > > import / export datas to / from SAP modules > > read / write datas. > > My knowledge in this area is close to zero, so any hints or links > are very much welcomed. > > Kind regards, > > Thierry > > -- > ------------------------------------------------ > Thierry Douez - http > ?s? > ://sunny-tdz.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- 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 capellan2000 at gmail.com Thu Mar 2 14:28:37 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 2 Mar 2017 15:28:37 -0400 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? Message-ID: How difficult would be to guess a sha1 digest, if we repeat it many, many times? Just as Peter Brett wrote in a previous message: put sha1Digest(sha1Digest(sha1Digest(tData))) -- 3 times!!!!! Al From dochawk at gmail.com Thu Mar 2 15:09:16 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 2 Mar 2017 12:09:16 -0800 Subject: Anyone doing a LiveCode Community Chat Bot? Wondering In-Reply-To: References: Message-ID: On Wed, Mar 1, 2017 at 7:27 PM, Alejandro Tejada via use-livecode < use-livecode at lists.runrev.com> wrote: > Now that I remember, Scott McDonald also included a chatbot "Dr. Eliza" in > his book about LiveCode games (page 71-77): > And how did that make you feel? :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From MikeKerner at roadrunner.com Thu Mar 2 15:18:01 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 2 Mar 2017 15:18:01 -0500 Subject: Release 9.0.0 DP-5 In-Reply-To: <13a73e8e-b868-6da8-728d-ac5a5dbba0cd@gmail.com> References: <13a73e8e-b868-6da8-728d-ac5a5dbba0cd@gmail.com> Message-ID: Something else that would be good: If I could go back to being able to test right to the device, instead of having to build a standalone and then install it. I forget whose plugin let me do that, but I miss that, especially when I'm testing things that don't work well in the simulator (like the camera) On Sat, Feb 25, 2017 at 3:20 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > For anyone other than myself who might possibly care about this sort of > thing: > > 9.0.0 DP-4 runs on Mac OS 10.7.5 > > while > > 9.0.0 DP-5 does not > > [which means that when I want to explore its features I shall use the > Linux version] > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From peter.brett at livecode.com Thu Mar 2 17:55:28 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Thu, 2 Mar 2017 22:55:28 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: References: Message-ID: <301e1fdd-183a-dad4-df91-8a61a6f1c35c@livecode.com> On 02/03/2017 19:28, Alejandro Tejada via use-livecode wrote: > How difficult would be to guess a sha1 digest, if we repeat it many, > many times? Just as Peter Brett wrote in a previous message: > > put sha1Digest(sha1Digest(sha1Digest(tData))) -- 3 times!!!!! Don't do this. It will make it _easier_ to generate collisions, because each successive iteration loses some information from the input -- i.e. the scheme you suggest _reduces_ security. When performing repeated hashing, you need to feed the original data in again at each stage. See this Stack Overflow answer for a very detailed explanation: https://stackoverflow.com/a/17396367/266449 The summary is that you need the following formulation to ensure security for repeated hashing: put sha1Digest(tData & sha1Digest(tData & sha1Digest(tData))) -- etcetera. Peter -- Dr Peter Brett LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From dochawk at gmail.com Thu Mar 2 18:13:01 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 2 Mar 2017 15:13:01 -0800 Subject: "ouch: the beginning of the end" Message-ID: I just got off the phone with the court clerk in Reno, and received the beginning of the end . . .I figured it would come from some state or anther in a year or two, but they are requiring me to use the *exact* pdf as propagated by the court. As livecode is not capable of rendering a pdf page or an eps, this means I am going to have to code pdf merging externally, while also working with .png or .jpg background images in livecode to place onto blank pages. With the need to maintain both of these, I'll be doing most of the work for on the parallel program--which may need to be fundamentally different in mac/linux, windows, iOS, and android--at which point, it will make sense to move as much as possible to the new platform. *sigh* It's 2017; asking to be able to display an eps and keep it as part of the pdf generated doesn't seem like it's asking much. .png/.jpg simply aren't acceptable solutions for my output, as the density required will produce insanely large .pdf files. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Thu Mar 2 18:24:55 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 2 Mar 2017 17:24:55 -0600 Subject: "ouch: the beginning of the end" In-Reply-To: References: Message-ID: <57457f3f-2b46-941b-a3c2-8641327c8514@hyperactivesw.com> On 3/2/17 5:13 PM, Dr. Hawkins via use-livecode wrote: > It's 2017; asking to be able to display an eps and keep it as part of the > pdf generated doesn't seem like it's asking much. I don't know much about EPS or how it relates to PDF. But on Linux, LC supports EPS objects. Mac is sorta/kinda Linux. I wonder if something could be done about that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Thu Mar 2 18:41:31 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 2 Mar 2017 15:41:31 -0800 Subject: "ouch: the beginning of the end" In-Reply-To: <57457f3f-2b46-941b-a3c2-8641327c8514@hyperactivesw.com> References: <57457f3f-2b46-941b-a3c2-8641327c8514@hyperactivesw.com> Message-ID: On Thu, Mar 2, 2017 at 3:24 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I don't know much about EPS or how it relates to PDF. But on Linux, LC > supports EPS objects. Mac is sorta/kinda Linux. I wonder if something could > be done about that. > At thepdf export level (building code for the variant of Forth that styles itself "postscript"), it should be pretty much identical. (in fact, it should *be* identical for *everything* save for any variation in line termination used in the filename of the external [if it be external] eps). Displaying at screen res can't possibly be all that hard; it's a one-time render that would only change if the pixelDensity (?) was changed (I actually do that to scale output windows to readable size). I used to use .eps as background images when I did this in openoffice ten years ago . . . (the only feature I can name offhand that openCalc can has that excel doesn't. Oh, and the openWriter display editor--years ago, I found my students were doing their stat homework in with openWriter because, unlike Word, it's equation editor is useful) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Thu Mar 2 18:42:12 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 2 Mar 2017 15:42:12 -0800 Subject: Is it just the IDE that crashes, or are standalone at risk? In-Reply-To: References: <8B5CDDB0-054D-4A7D-BFC9-47310ECFCA3C@iotecdigital.com> Message-ID: And today I note that most of the crashes come while attempting to save stacks (thus my suspicion that it's related to that specific bug) From revolution at derbrill.de Thu Mar 2 19:55:33 2017 From: revolution at derbrill.de (Malte Brill) Date: Fri, 3 Mar 2017 01:55:33 +0100 Subject: Howto read-write-import-export SAP tables In-Reply-To: References: Message-ID: <68F0968A-CFEB-4315-BB82-C147E8F8D0A4@derbrill.de> Hi Thierry, it might be easier to send IDOCs to SAP, which could either be FIX Record files (if transfered by SAP ALE), or XML (if connector like PO is set up). Check Transaction WE60 to get an XSD. SAP might need a connector to accept the iDOCs (like for Example PO), but with all possible customisations and User exits I would not dare to write directly to the SAP DB. :-) Cheers, Malte From capellan2000 at gmail.com Thu Mar 2 20:02:05 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 2 Mar 2017 21:02:05 -0400 Subject: ouch: the beginning of the end Message-ID: I have used LiveCode (then MetaCard) to write content in PDF templates, so I do not understand the requirement that file should have no changes. Al From richmondmathewson at gmail.com Fri Mar 3 04:27:52 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 3 Mar 2017 11:27:52 +0200 Subject: "ouch: the beginning of the end" In-Reply-To: <57457f3f-2b46-941b-a3c2-8641327c8514@hyperactivesw.com> References: <57457f3f-2b46-941b-a3c2-8641327c8514@hyperactivesw.com> Message-ID: I'm not sure whether it does that any more. I have just tried to import an EPS file in LC 9.0.0 DP-5 on Linux and couldn't find any menu that would let me do that. Richmond. On 3/3/17 1:24 am, J. Landman Gay via use-livecode wrote: > On 3/2/17 5:13 PM, Dr. Hawkins via use-livecode wrote: >> It's 2017; asking to be able to display an eps and keep it as part of >> the >> pdf generated doesn't seem like it's asking much. > > I don't know much about EPS or how it relates to PDF. But on Linux, LC > supports EPS objects. Mac is sorta/kinda Linux. I wonder if something > could be done about that. > From dochawk at gmail.com Fri Mar 3 10:24:34 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Mar 2017 07:24:34 -0800 Subject: ouch: the beginning of the end In-Reply-To: References: Message-ID: On Thu, Mar 2, 2017 at 5:02 PM, Alejandro Tejada via use-livecode < use-livecode at lists.runrev.com> wrote: > I have used LiveCode (then MetaCard) to write content > in PDF templates, so I do not understand the requirement > that file should have no changes. > The file I upload needs to be indistinguishable from the pdf the court issues to fill in at any arbitrary density. At the moment, I'm simply recreating by pasting into fields. What *should* be happening is placing fields over an eps made from the court's own pdf. This particular form was the breaking point: http://www.nvb.uscourts.gov/downloads/mmm/forms/NVB105-3_OrderDebtorsMtnReferraltoMMM.pdf I have created paragraph by paragraph, but I now have a clerk insisting that it be this exact pdf--so I have to go back to my original plan. With livecode, this *should* happen by turning it into page by page eps's, putting each on a card, and laying fields over them, and then "printing" to a pdf file. Unfortunately, due to the lack of eps support, the only possible way is to make png's, put the fields in front of those, delete the png when printing, and then use shell tools (pdftk, pdfjar, pdftools, etc.) to overlay each page of my livecode output onto the form pdf. This is fairly straightforward on unix (mac, linux). However, I need to insure that the third party software is installed, and for good measure, support at least two ways of doing it. Windows? beats me. iOS? I'd be shocked if the tools are there. I'd have to license the code. android? beats me again. But all in all, I've lost "write once". -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Fri Mar 3 10:25:04 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Mar 2017 07:25:04 -0800 Subject: "ouch: the beginning of the end" In-Reply-To: References: <57457f3f-2b46-941b-a3c2-8641327c8514@hyperactivesw.com> Message-ID: On Fri, Mar 3, 2017 at 1:27 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > I have just tried to import an EPS file in LC 9.0.0 DP-5 on Linux > and couldn't find any menu that would let me do that. > Didn't that depend upon the linux in question supporting display postscript, anyway? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From heather at livecode.com Fri Mar 3 11:55:30 2017 From: heather at livecode.com (Heather Laine) Date: Fri, 3 Mar 2017 16:55:30 +0000 Subject: ouch: the beginning of the end In-Reply-To: References: Message-ID: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> Its likely I'm being dense here... but does the PDF viewer not meet your needs? https://livecode.com/products/livecode-platform/pdf-viewer/ Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 3 Mar 2017, at 15:24, Dr. Hawkins via use-livecode wrote: > > On Thu, Mar 2, 2017 at 5:02 PM, Alejandro Tejada via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I have used LiveCode (then MetaCard) to write content >> in PDF templates, so I do not understand the requirement >> that file should have no changes. >> > > The file I upload needs to be indistinguishable from the pdf the court > issues to fill in at any arbitrary density. > > At the moment, I'm simply recreating by pasting into fields. What *should* be > happening is placing fields over an eps made from the court's own pdf. > > This particular form was the breaking point: > http://www.nvb.uscourts.gov/downloads/mmm/forms/NVB105-3_OrderDebtorsMtnReferraltoMMM.pdf > > I have created paragraph by paragraph, but I now have a clerk insisting > that it be this exact pdf--so I have to go back to my original plan. With > livecode, this *should* happen by turning it into page by page eps's, > putting each on a card, and laying fields over them, and then "printing" to > a pdf file. > > Unfortunately, due to the lack of eps support, the only possible way is to > make png's, put the fields in front of those, delete the png when printing, > and then use shell tools (pdftk, pdfjar, pdftools, etc.) to overlay each > page of my livecode output onto the form pdf. > > This is fairly straightforward on unix (mac, linux). However, I need to > insure that the third party software is installed, and for good measure, > support at least two ways of doing it. > > Windows? beats me. > > iOS? I'd be shocked if the tools are there. I'd have to license the code. > > android? beats me again. > > But all in all, I've lost "write once". > > > -- > 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 rdimola at evergreeninfo.net Fri Mar 3 12:34:24 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 3 Mar 2017 12:34:24 -0500 Subject: ouch: the beginning of the end In-Reply-To: References: Message-ID: <001301d29444$67700fd0$36502f70$@net> I use Acrobat API and the JSO in VB to edit "original" PDFs. One can add fields, add pull down lists w/java, edit existing fields, execute java in the PDF, extract/change text, add/delete bookmarks and everything else you can do(and more) in the Acrobat GUI. On my to-do list is creating a LC external to gain LC access to Acrobat API and the JSO in LC. The Acrobat structures are heavily typed so I don't know how practical/possible this interface would be. It might require some LCB glue? I don't know if the Acrobat API and JSO is available on platforms other than Windows. If I had a LC Acrobat API/JSO external I would lose VB fast. 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 Dr. Hawkins via use-livecode Sent: Friday, March 03, 2017 10:25 AM To: How to use LiveCode Cc: Dr. Hawkins; Alejandro Tejada Subject: Re: ouch: the beginning of the end On Thu, Mar 2, 2017 at 5:02 PM, Alejandro Tejada via use-livecode < use-livecode at lists.runrev.com> wrote: > I have used LiveCode (then MetaCard) to write content in PDF > templates, so I do not understand the requirement that file should > have no changes. > The file I upload needs to be indistinguishable from the pdf the court issues to fill in at any arbitrary density. At the moment, I'm simply recreating by pasting into fields. What *should* be happening is placing fields over an eps made from the court's own pdf. This particular form was the breaking point: http://www.nvb.uscourts.gov/downloads/mmm/forms/NVB105-3_OrderDebtorsMtnRefe rraltoMMM.pdf I have created paragraph by paragraph, but I now have a clerk insisting that it be this exact pdf--so I have to go back to my original plan. With livecode, this *should* happen by turning it into page by page eps's, putting each on a card, and laying fields over them, and then "printing" to a pdf file. Unfortunately, due to the lack of eps support, the only possible way is to make png's, put the fields in front of those, delete the png when printing, and then use shell tools (pdftk, pdfjar, pdftools, etc.) to overlay each page of my livecode output onto the form pdf. This is fairly straightforward on unix (mac, linux). However, I need to insure that the third party software is installed, and for good measure, support at least two ways of doing it. Windows? beats me. iOS? I'd be shocked if the tools are there. I'd have to license the code. android? beats me again. But all in all, I've lost "write once". -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Fri Mar 3 12:59:50 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Mar 2017 09:59:50 -0800 Subject: ouch: the beginning of the end In-Reply-To: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> Message-ID: On Fri, Mar 3, 2017 at 8:55 AM, Heather Laine via use-livecode < use-livecode at lists.runrev.com> wrote: > Its likely I'm being dense here... but does the PDF viewer not meet your > needs? > No; it really isn't even in the same range. What I absolutely need is to be able to use an eps (or an arbitrarily sized png) as an inserted image in the same way as a jpg, gif, or png. There might be one on a page, or there might be a few, and they would display for the user on a regular card, with regular functionality of the other objects on my card. Then, when done, the page region of that card prints out as a pdf, the eps and everything on top of it (as a practical matter, all are fields) print out to my output pdf just like any other card. The output part is easy. While my Forth and PostScript are to rusty to remember the right verbs, it would be something like: put "begin image" & cr & file:"the_eps_to_include.eps" & cr & "end image" & cr after thePDFoutputSoFar As for on screen display, an eps should be far simpler than the containers for video and so forth. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Fri Mar 3 13:00:31 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 3 Mar 2017 18:00:31 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> Message-ID: <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> It looks like the encrypt command is already using this method if the "with salt" arguement is provided? At least the encrypted result starts with "salted" and at least part of the salt value. Bob S > On Mar 1, 2017, at 07:37 , Bob Sneidar via use-livecode wrote: > > Hi Peter. Very informative thank you. In the example, > > [protected form] = [salt] + protect([protection func], [salt] + [credential]); From dangmacguy at gmail.com Fri Mar 3 13:52:53 2017 From: dangmacguy at gmail.com (Bruce Pokras) Date: Fri, 3 Mar 2017 13:52:53 -0500 Subject: [ANN] XLSX Library ready for a test - Looking for testers In-Reply-To: References: Message-ID: <4B89CCAB-F2E8-4E2B-9C08-5FDBBB046226@gmail.com> Hello Zryip, Worked flawlessly on my old Excel for Mac 2011. Looking forward to the final version because I may have some applications for it. Regards, Bruce Pokras Blazing Dawn Software www.blazingdawn.com > On Nov 30, 2016, at 6:36 PM, zryip theSlug wrote: > > Dear LiveCode Users, > > We are working on a new Library capable to read / write / update xlsx > files without the help of MS Excel. > The Library is dealing natively with LiveCode (and the help of revXML > and revZip) with the Office Open XML format. > > We are actually in alpha version and we have prepared a small > application for validating our capability to generate xlsx files > readable by every solution capable of opening an xlsx file: MS Excel > standalone or online, OpenOffice, LibreOffice, Google Sheets, etc > > For extending our tests to different environments and applications we > are looking for some testers ready to help: > - by playing with our "Salestore report generator" application. Few > clicks are required for preparing the report + 30 secs to 1 minute, > the time for the Lib to create a report of about 700 lines * 8 columns > with styles and formulae. > - opening the generated xlsx file with the solution they have. > - reporting the result of their tests by dropping me a small note. > > We have prepared different versions of our test application: linux, > mac and windows. > All the versions are available by following this link: > http://www.aslugontheroad.com/download/category/9-salestore-report-generator-xlsx-lib-test > > > Thanks in advance for any help. > > > Best Regards, > -- > Zryip TheSlug > http://www.aslugontheroad.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Mar 3 13:54:36 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 3 Mar 2017 20:54:36 +0200 Subject: ouch: the beginning of the end In-Reply-To: References: Message-ID: <8dc446ea-28b8-e6b2-3ddf-ee72c30dfa59@gmail.com> By the way . . . I have to send various PDF forms to my sons in the USA and Germany with my signature on the original PDF. I open the PDF in GIMP, add a layer to the relevant page, and overlay a PNG of my signature (I signed my name using my Wacom tablet into GIMP and extracted the pen colours from the white background to make a PNG image of my signature surrounded by transparency), then export the page as a PDF. My sons then print out the PDFs with my signature on them where they are. Of course this has nothing whatsoever to do with LiveCode. Richmond. On 3/3/17 5:24 pm, Dr. Hawkins via use-livecode wrote: > On Thu, Mar 2, 2017 at 5:02 PM, Alejandro Tejada via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I have used LiveCode (then MetaCard) to write content >> in PDF templates, so I do not understand the requirement >> that file should have no changes. >> > The file I upload needs to be indistinguishable from the pdf the court > issues to fill in at any arbitrary density. > > At the moment, I'm simply recreating by pasting into fields. What *should* be > happening is placing fields over an eps made from the court's own pdf. > > This particular form was the breaking point: > http://www.nvb.uscourts.gov/downloads/mmm/forms/NVB105-3_OrderDebtorsMtnReferraltoMMM.pdf > > I have created paragraph by paragraph, but I now have a clerk insisting > that it be this exact pdf--so I have to go back to my original plan. With > livecode, this *should* happen by turning it into page by page eps's, > putting each on a card, and laying fields over them, and then "printing" to > a pdf file. > > Unfortunately, due to the lack of eps support, the only possible way is to > make png's, put the fields in front of those, delete the png when printing, > and then use shell tools (pdftk, pdfjar, pdftools, etc.) to overlay each > page of my livecode output onto the form pdf. > > This is fairly straightforward on unix (mac, linux). However, I need to > insure that the third party software is installed, and for good measure, > support at least two ways of doing it. > > Windows? beats me. > > iOS? I'd be shocked if the tools are there. I'd have to license the code. > > android? beats me again. > > But all in all, I've lost "write once". > > From richmondmathewson at gmail.com Fri Mar 3 13:56:12 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 3 Mar 2017 20:56:12 +0200 Subject: ouch: the beginning of the end In-Reply-To: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> Message-ID: I think Dr Hawkins wants to enter data into the PDF documents rather than either view them or extract data from them. Richmond. On 3/3/17 6:55 pm, Heather Laine via use-livecode wrote: > Its likely I'm being dense here... but does the PDF viewer not meet your needs? > > https://livecode.com/products/livecode-platform/pdf-viewer/ > > Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > >> On 3 Mar 2017, at 15:24, Dr. Hawkins via use-livecode wrote: >> >> On Thu, Mar 2, 2017 at 5:02 PM, Alejandro Tejada via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I have used LiveCode (then MetaCard) to write content >>> in PDF templates, so I do not understand the requirement >>> that file should have no changes. >>> >> The file I upload needs to be indistinguishable from the pdf the court >> issues to fill in at any arbitrary density. >> >> At the moment, I'm simply recreating by pasting into fields. What *should* be >> happening is placing fields over an eps made from the court's own pdf. >> >> This particular form was the breaking point: >> http://www.nvb.uscourts.gov/downloads/mmm/forms/NVB105-3_OrderDebtorsMtnReferraltoMMM.pdf >> >> I have created paragraph by paragraph, but I now have a clerk insisting >> that it be this exact pdf--so I have to go back to my original plan. With >> livecode, this *should* happen by turning it into page by page eps's, >> putting each on a card, and laying fields over them, and then "printing" to >> a pdf file. >> >> Unfortunately, due to the lack of eps support, the only possible way is to >> make png's, put the fields in front of those, delete the png when printing, >> and then use shell tools (pdftk, pdfjar, pdftools, etc.) to overlay each >> page of my livecode output onto the form pdf. >> >> This is fairly straightforward on unix (mac, linux). However, I need to >> insure that the third party software is installed, and for good measure, >> support at least two ways of doing it. >> >> Windows? beats me. >> >> iOS? I'd be shocked if the tools are there. I'd have to license the code. >> >> android? beats me again. >> >> But all in all, I've lost "write once". >> >> >> -- >> 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 richmondmathewson at gmail.com Fri Mar 3 13:57:42 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 3 Mar 2017 20:57:42 +0200 Subject: ouch: the beginning of the end In-Reply-To: References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> Message-ID: <6601a7d9-de83-e2cf-4150-d0d797f8c0c1@gmail.com> On 3/3/17 7:59 pm, Dr. Hawkins via use-livecode wrote: > On Fri, Mar 3, 2017 at 8:55 AM, Heather Laine via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Its likely I'm being dense here... but does the PDF viewer not meet your >> needs? >> > No; it really isn't even in the same range. > > What I absolutely need is to be able to use an eps (or an arbitrarily sized > png) as an inserted image in the same way as a jpg, gif, or png. GIMP can be used to do all of this. Richmond. > > There might be one on a page, or there might be a few, and they would > display for the user on a regular card, with regular functionality of the > other objects on my card. > > Then, when done, the page region of that card prints out as a pdf, the eps > and everything on top of it (as a practical matter, all are fields) print > out to my output pdf just like any other card. > > The output part is easy. While my Forth and PostScript are to rusty to > remember the right verbs, it would be something like: > > put "begin image" & cr & file:"the_eps_to_include.eps" & cr & "end image" & > cr after thePDFoutputSoFar > > > As for on screen display, an eps should be far simpler than the containers > for video and so forth. > > > > From richmondmathewson at gmail.com Fri Mar 3 14:11:07 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 3 Mar 2017 21:11:07 +0200 Subject: [ANN] XLSX Library ready for a test - Looking for testers In-Reply-To: <4B89CCAB-F2E8-4E2B-9C08-5FDBBB046226@gmail.com> References: <4B89CCAB-F2E8-4E2B-9C08-5FDBBB046226@gmail.com> Message-ID: Interestingly enough when I tried this out on my plastic iMac running Mac OS 10.7.5 it exported the .xlsx document, but when I attempted to open it with Excel 2011 I got this: "Excel could not open myReport.xlsx because some content is unreadable. Do you want to open and repair this workbook? "If Excel cannot repair the file, some data may be lost." I clicked on 'Open and Repair' and got this: Repair Result to myReport 05341.xmlErrors were detected in file 'HOME:Users:richmondmathewson:Desktop:myReport.xlsx'Removed Records: Merge cells from /xl/worksheets/sheet1.xml I changed some of the data . . . Richmond. On 3/3/17 8:52 pm, Bruce Pokras via use-livecode wrote: > Hello Zryip, > > Worked flawlessly on my old Excel for Mac 2011. Looking forward to the final version because I may have some applications for it. > > Regards, > > Bruce Pokras > Blazing Dawn Software > www.blazingdawn.com > >> On Nov 30, 2016, at 6:36 PM, zryip theSlug wrote: >> >> Dear LiveCode Users, >> >> We are working on a new Library capable to read / write / update xlsx >> files without the help of MS Excel. >> The Library is dealing natively with LiveCode (and the help of revXML >> and revZip) with the Office Open XML format. >> >> We are actually in alpha version and we have prepared a small >> application for validating our capability to generate xlsx files >> readable by every solution capable of opening an xlsx file: MS Excel >> standalone or online, OpenOffice, LibreOffice, Google Sheets, etc >> >> For extending our tests to different environments and applications we >> are looking for some testers ready to help: >> - by playing with our "Salestore report generator" application. Few >> clicks are required for preparing the report + 30 secs to 1 minute, >> the time for the Lib to create a report of about 700 lines * 8 columns >> with styles and formulae. >> - opening the generated xlsx file with the solution they have. >> - reporting the result of their tests by dropping me a small note. >> >> We have prepared different versions of our test application: linux, >> mac and windows. >> All the versions are available by following this link: >> http://www.aslugontheroad.com/download/category/9-salestore-report-generator-xlsx-lib-test >> >> >> Thanks in advance for any help. >> >> >> Best Regards, >> -- >> Zryip TheSlug >> http://www.aslugontheroad.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Fri Mar 3 14:26:24 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Mar 2017 11:26:24 -0800 Subject: ouch: the beginning of the end In-Reply-To: <6601a7d9-de83-e2cf-4150-d0d797f8c0c1@gmail.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <6601a7d9-de83-e2cf-4150-d0d797f8c0c1@gmail.com> Message-ID: On Fri, Mar 3, 2017 at 10:57 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > What I absolutely need is to be able to use an eps (or an arbitrarily sized >> png) as an inserted image in the same way as a jpg, gif, or png. >> > > GIMP can be used to do all of this. > Well, yes, but the whole point of this is for me to be able to ship a program that generates filled forms (bankruptcy petitions, schedules, etc.). Shipping a program to techno-illiterate customers that relies on livecode calling gimp . . . And I don't so much want to enter the data into the pdf documents as expected by the documents, but put my own data on top of the existing pdf, whether the author thought data belonged there or not . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Fri Mar 3 14:27:07 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Mar 2017 11:27:07 -0800 Subject: ouch: the beginning of the end In-Reply-To: References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> Message-ID: On Fri, Mar 3, 2017 at 9:59 AM, Dr. Hawkins wrote: > > As for on screen display, an eps should be far simpler than the containers > for video and so forth. > Also, an eps is/should be the preferred format for a business's logo, for the same scaling reasons. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Fri Mar 3 15:44:06 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 3 Mar 2017 22:44:06 +0200 Subject: ouch: the beginning of the end In-Reply-To: References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> Message-ID: <99005c26-b328-a159-1f74-a74351a99637@gmail.com> What's wrong with an SVG image? Richmond. On 3/3/17 9:27 pm, Dr. Hawkins via use-livecode wrote: > On Fri, Mar 3, 2017 at 9:59 AM, Dr. Hawkins wrote: > >> As for on screen display, an eps should be far simpler than the containers >> for video and so forth. >> > Also, an eps is/should be the preferred format for a business's logo, for > the same scaling reasons. > > From paul at researchware.com Fri Mar 3 16:29:33 2017 From: paul at researchware.com (Paul Dupuis) Date: Fri, 3 Mar 2017 16:29:33 -0500 Subject: ouch: the beginning of the end In-Reply-To: References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> Message-ID: <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> So the XPDF viewer lets you grab the text from PDFs, the formattedRect of any selected Text, and the page (or ant portion of the rendered page) as an Image in addition to just viewing a PDF I assume the issue that you view EPS as high resolution for the purposes of printing the PDF form back out with your layered fields filled in. You can grad what ever resolution of a PDF page you want with XPDF. You set the scaling to say 400% and then get the page image and scale the image to 25% and you have a image at normal size but at 4x screen resolution. Want more resolution, set the PDF scale to 800% and fetch the page image. Have a super high resolution printer - keep scaling! It seems to me XPDF is capable of doing everything you need to do. If the forms have labels for the fields, such as: Name: [space on the pdf to type or write a name] You can just enter a list of the text of the labels, search the PDF text for the keywords/phases, get the formatedRect, and autocreate a transparent field for the data offset to the right of the coordinate of the formatted rect. From dochawk at gmail.com Fri Mar 3 17:09:58 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Mar 2017 14:09:58 -0800 Subject: ouch: the beginning of the end In-Reply-To: <99005c26-b328-a159-1f74-a74351a99637@gmail.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <99005c26-b328-a159-1f74-a74351a99637@gmail.com> Message-ID: On Fri, Mar 3, 2017 at 12:44 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > What's wrong with an SVG image? > > I suppose those work too. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Fri Mar 3 17:20:58 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 3 Mar 2017 14:20:58 -0800 Subject: ouch: the beginning of the end In-Reply-To: <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> Message-ID: On Fri, Mar 3, 2017 at 1:29 PM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > So the XPDF viewer lets you grab the text from PDFs, the formattedRect > of any selected Text, and the page (or ant portion of the rendered page) > as an Image in addition to just viewing a PDF > I have *absolutely* no use for the text, unless I'm completely replacing the pdf with fields. I don't need a reproduction of the PDF in livecode; I already have tools for that. I need the pdf itself. AFAIK, it is impossible to take text from a pdf of unknown creation source (or possibly pieced together by different editors) and maintain the exact spacing. Just for openers, I find font sizes that were apparently, say, 6.2, or line heights of 12.2, or that it three lines were generated with the Mxyzptlk font that some employee happened to have on his computer and he thought would be nice for that part. A clerk or secretary printing the government version and my version on acetate sheets to see if they line up to the pixel is an actual concern I have to face (yes, there are folks with that much time on their hands). In the early 90s, I dropped this project (then in SuperCard 1.5) when the clerk at the time told me that we would have to be exact *to the pixel* of the new scanners they had coming in (which, to this date, have not happened). > I assume the issue that you view EPS as high resolution for the purposes > of printing the PDF form back out with your layered fields filled in. > > You can grad what ever resolution of a PDF page you want with XPDF. You > set the scaling to say 400% and then get the page image and scale the > image to 25% and you have a image at normal size but at 4x screen > resolution. Want more resolution, set the PDF scale to 800% and fetch > the page image. Have a super high resolution printer - keep scaling! > Except that I have a fairly tight size limits on uploaded files, and arbitrarily large files will trample that fast on a 100 page pdf. > > It seems to me XPDF is capable of doing everything you need to do. > > If the forms have labels for the fields, such as: > > Name: [space on the pdf to type or write a name] > > Nope; don't need that at all. My software generates rules on how the contents of each field depends on others. I need to be laying my own fields in software, with the names I give them (you don't think the government would remain all that consistent between documents, do you? :) besides, they don't define most of the names I need anyway). What I need is to be able to use an eps or a pdf as a display object, and to export a pdf with that object. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Fri Mar 3 17:29:55 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 3 Mar 2017 16:29:55 -0600 Subject: Release 9.0.0 DP-5 In-Reply-To: References: <13a73e8e-b868-6da8-728d-ac5a5dbba0cd@gmail.com> Message-ID: <0243f5cc-d2da-9727-bff4-41c2c72bd5a2@hyperactivesw.com> On 3/2/17 2:18 PM, Mike Kerner via use-livecode wrote: > Something else that would be good: If I could go back to being able to > test right to the device, instead of having to build a standalone and then > install it. I forget whose plugin let me do that, but I miss that, It's built-in, always has been (unless I'm not understanding what you mean.) If your phone is cabled to the computer, when you click the Test button it builds to the connected device. I haven't had to build an iOS app for a while so maybe something changed there, but it does work on Android. I occasionally have trouble getting my Mac to recognize that my Android phone is attached. In that case, I go to Terminal and do: ./adb stop-server ./adb start-server ./adb devices And it usually lists the device. If adb can see it, so can LC. I've only had that fail once, and no matter what I did the phone didn't show up. It turned out that I'd plugged the phone into the wrong one of three cables snaking around my desk, and the USB charger at the other end beligerantly refused to respond. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Fri Mar 3 19:37:14 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 3 Mar 2017 19:37:14 -0500 Subject: Release 9.0.0 DP-5 In-Reply-To: <0243f5cc-d2da-9727-bff4-41c2c72bd5a2@hyperactivesw.com> References: <13a73e8e-b868-6da8-728d-ac5a5dbba0cd@gmail.com> <0243f5cc-d2da-9727-bff4-41c2c72bd5a2@hyperactivesw.com> Message-ID: No, I found it. It's mergDeploy. It turns out it is working, but only as long as I have it load at startup. If I select it from the Development menu, it doesn't recognize the device correctly. On Fri, Mar 3, 2017 at 5:29 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 3/2/17 2:18 PM, Mike Kerner via use-livecode wrote: > >> Something else that would be good: If I could go back to being able to >> test right to the device, instead of having to build a standalone and then >> install it. I forget whose plugin let me do that, but I miss that, >> > > It's built-in, always has been (unless I'm not understanding what you > mean.) If your phone is cabled to the computer, when you click the Test > button it builds to the connected device. I haven't had to build an iOS app > for a while so maybe something changed there, but it does work on Android. > > I occasionally have trouble getting my Mac to recognize that my Android > phone is attached. In that case, I go to Terminal and do: > > ./adb stop-server > ./adb start-server > ./adb devices > > And it usually lists the device. If adb can see it, so can LC. > > I've only had that fail once, and no matter what I did the phone didn't > show up. It turned out that I'd plugged the phone into the wrong one of > three cables snaking around my desk, and the USB charger at the other end > beligerantly refused to respond. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bobsneidar at iotecdigital.com Fri Mar 3 22:25:19 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 4 Mar 2017 03:25:19 +0000 Subject: "ouch: the beginning of the end" In-Reply-To: <57457f3f-2b46-941b-a3c2-8641327c8514@hyperactivesw.com> References: <57457f3f-2b46-941b-a3c2-8641327c8514@hyperactivesw.com> Message-ID: <0237CAAD-3A13-4F48-B8D4-158E0180BA9C@iotecdigital.com> Bite your tongue@ It's full blown Unix we are told!! ;-) Bob S > On Mar 2, 2017, at 15:24 , J. Landman Gay via use-livecode wrote: > > Mac is sorta/kinda Linux. I wonder if something could be done about that. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com From bobsneidar at iotecdigital.com Fri Mar 3 22:33:39 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 4 Mar 2017 03:33:39 +0000 Subject: "ouch: the beginning of the end" In-Reply-To: References: Message-ID: <69E1734E-F8E4-4C1E-B247-EFC8C27888DA@iotecdigital.com> Do you mean you want to take 2 or more PDF's and combine them? That is what merging PDF's means I think. If this is the issue, I think we had a thread about this a while back where virtually any PDF editing app is capable of this. In addition, with OS X you can select multiple PDF's and open them at once and it will combine them in Acrobat or Reader. Only Acrobat will be able to save as though, given security requirements are met. I don't think Livecode will make a good PDF Authoring Application tool if that is what you are shooting for. Bob S > On Mar 2, 2017, at 15:13 , Dr. Hawkins via use-livecode wrote: > > As livecode is not capable of rendering a pdf page or an eps, this means I > am going to have to code pdf merging externally, while also working with > .png or .jpg background images in livecode to place onto blank pages. From bobsneidar at iotecdigital.com Fri Mar 3 23:07:46 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 4 Mar 2017 04:07:46 +0000 Subject: ouch: the beginning of the end In-Reply-To: References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <6601a7d9-de83-e2cf-4150-d0d797f8c0c1@gmail.com> Message-ID: <430EF827-CE07-4322-8898-86F3D2E9FDAB@iotecdigital.com> err... are the forms already created? Or are you trying to create the forms from scratch programaticaly? If the former, I wrote an application that does just that. I first create a fillable form, then (for OS other than OS X) I create an FDF file using a simple one liner Javascript command and then add an Open File action that imports data from that fdf file. Otherwise (for OS X using Acrobat) I use Applescript to tell Javascript to fill the form. The app is capable of importing any fillable PDF form, and then creating links between the fillable form controls, and SQL database table.columns. It can even use Livecode Expressions to fill the forms. Once the associations are made, I save the binary of the PDF form and the associations (as an array) in my SQL database. To recreate a form, I simply write the binary of the blank form out to any file system, then run a script to populate it. I use it every day to fill out service invoices, install forms, site surveys etc. If however you are trying to create a PDF from scratch, I have great compassion for you. When researching if I would be able to write this app, I determined that if I had to go that route, I would not even begin. I think that elephant is much too big to eat. Even one byte at a time. Contact me off list if you want to do a remote session so you can see what I am talking about. Bob S > On Mar 3, 2017, at 11:26 , Dr. Hawkins via use-livecode wrote: > > Well, yes, but the whole point of this is for me to be able to ship a > program that generates filled forms (bankruptcy petitions, schedules, etc.). From bobsneidar at iotecdigital.com Fri Mar 3 23:10:14 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 4 Mar 2017 04:10:14 +0000 Subject: ouch: the beginning of the end In-Reply-To: <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> Message-ID: <8811D3C5-2B00-4392-A984-BBB919466D53@iotecdigital.com> What is this XPDF viewer you speak of? Not showing up in the LC dictionary. Bob S > On Mar 3, 2017, at 13:29 , Paul Dupuis via use-livecode wrote: > > So the XPDF viewer lets you grab the text from PDFs, the formattedRect > of any selected Text, and the page (or ant portion of the rendered page) > as an Image in addition to just viewing a PDF From brahma at hindu.org Sat Mar 4 00:07:55 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 4 Mar 2017 05:07:55 +0000 Subject: Remote debugger In-Reply-To: References: <9a99a712-e72b-c8e2-f991-afc59449b40e@hyperactivesw.com> <9E1ED5E0-CE98-4764-9B8F-D1317C269AC4@appisle.net> Message-ID: <2D23D11D-F63F-4E1A-8BE1-ABA3F09744D7@hindu.org> I'm very late to this party. Where is the documentation? I set the inclusion, run test target my android ? nexus 5 and the dialog opens "Do you want to start remote debugging" I say yes? click through my app on the phone until finally it crashes and quits. Dialog in the IDE opens "Remote debugging session ended" OK, I did not set any break points? but there do we find information? any log file. From the thread here I'm not seeing the original announcement/link to documention? sounds marvelous! On 2/24/17, 9:48 AM, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: I'd suggest that documentation make it clear what permissions and inclusions need to be set up. I'm not sure I'd make the permission automatic, since the final standalone may not want that permission set and the developer will probably forget to unset it, especially if they didn't know it was turned on in the first place. From jacque at hyperactivesw.com Sat Mar 4 01:52:00 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 4 Mar 2017 00:52:00 -0600 Subject: Remote debugger In-Reply-To: <2D23D11D-F63F-4E1A-8BE1-ABA3F09744D7@hindu.org> References: <9a99a712-e72b-c8e2-f991-afc59449b40e@hyperactivesw.com> <9E1ED5E0-CE98-4764-9B8F-D1317C269AC4@appisle.net> <2D23D11D-F63F-4E1A-8BE1-ABA3F09744D7@hindu.org> Message-ID: <56c53f0c-4ffb-d095-3174-00a8474523da@hyperactivesw.com> So far, all I've found is the blog post: It's really great for debugging, a huge step forward. The only glitch I found was that I couldn't figure out how to turn it off. I removed all breakpoints and hit the Test button again. As expected, I didn't get the dialog but the app on the phone just hung at the point where the breakpoints used to be. I had to quit and restart LC and test again before it behaved normally. I didn't have the external embedded in the stack, since I was running live from the Test button with my phone cabled to the Mac. I just relied on the automatic debugging that happens with a cabled device. On 3/3/17 11:07 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > I'm very late to this party. > > Where is the documentation? > > I set the inclusion, run test target my android ? nexus 5 and the > dialog opens "Do you want to start remote debugging" I say yes? click > through my app on the phone until finally it crashes and quits. > Dialog in the IDE opens "Remote debugging session ended" > > OK, I did not set any break points? but there do we find information? > any log file. > > From the thread here I'm not seeing the original announcement/link to > documention? sounds marvelous! > > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From iphonelagi at gmail.com Sat Mar 4 05:05:07 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Sat, 4 Mar 2017 10:05:07 +0000 Subject: ouch: the beginning of the end In-Reply-To: References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> Message-ID: Maybe I'm being dense here but If You HAVE tom use the ACTUAL government PDF and be pixel perfect then how can you be printing anything of any type out as a pdf whether with eps or any changed fields - maybe I haen't read all the posts but am I missing something? Can you explain in 1 place without assuming anything in the least amount of words what the workflow is what you want to input what you want to get out and where does the eps fit into this - if you are suppose to use THE mandated pdf. I really want to understand the problem - other than government bureaucracy/incomptence/stupidity - take your pick Regards Lagi Regards lagi On 3 March 2017 at 22:20, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Fri, Mar 3, 2017 at 1:29 PM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > So the XPDF viewer lets you grab the text from PDFs, the formattedRect > > of any selected Text, and the page (or ant portion of the rendered page) > > as an Image in addition to just viewing a PDF > > > > I have *absolutely* no use for the text, unless I'm completely replacing > the pdf with fields. > > I don't need a reproduction of the PDF in livecode; I already have tools > for that. I need the pdf itself. > > AFAIK, it is impossible to take text from a pdf of unknown creation source > (or possibly pieced together by different editors) and maintain the exact > spacing. Just for openers, I find font sizes that were apparently, say, > 6.2, or line heights of 12.2, or that it three lines were generated with > the Mxyzptlk font that some employee happened to have on his computer and > he thought would be nice for that part. > > A clerk or secretary printing the government version and my version on > acetate sheets to see if they line up to the pixel is an actual concern I > have to face (yes, there are folks with that much time on their hands). In > the early 90s, I dropped this project (then in SuperCard 1.5) when the > clerk at the time told me that we would have to be exact *to the pixel* of > the new scanners they had coming in (which, to this date, have not > happened). > > > > I assume the issue that you view EPS as high resolution for the purposes > > of printing the PDF form back out with your layered fields filled in. > > > > You can grad what ever resolution of a PDF page you want with XPDF. You > > set the scaling to say 400% and then get the page image and scale the > > image to 25% and you have a image at normal size but at 4x screen > > resolution. Want more resolution, set the PDF scale to 800% and fetch > > the page image. Have a super high resolution printer - keep scaling! > > > > Except that I have a fairly tight size limits on uploaded files, and > arbitrarily large files will trample that fast on a 100 page pdf. > > > > > > It seems to me XPDF is capable of doing everything you need to do. > > > > If the forms have labels for the fields, such as: > > > > Name: [space on the pdf to type or write a name] > > > > Nope; don't need that at all. > > My software generates rules on how the contents of each field depends on > others. I need to be laying my own fields in software, with the names I > give them (you don't think the government would remain all that consistent > between documents, do you? :) besides, they don't define most of the names > I need anyway). > > What I need is to be able to use an eps or a pdf as a display object, and > to export a pdf with that object. > > > > -- > 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 paul at researchware.com Sat Mar 4 10:55:40 2017 From: paul at researchware.com (Paul Dupuis) Date: Sat, 4 Mar 2017 10:55:40 -0500 Subject: ouch: the beginning of the end In-Reply-To: <8811D3C5-2B00-4392-A984-BBB919466D53@iotecdigital.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> <8811D3C5-2B00-4392-A984-BBB919466D53@iotecdigital.com> Message-ID: On 3/3/2017 11:10 PM, Bob Sneidar via use-livecode wrote: > What is this XPDF viewer you speak of? Not showing up in the LC dictionary. > > Bob S Available only with Business License and for a while it was missing from the Dictionary, but you can find it in LC 8.1.3 or the latest 9.0 dp builds. Just type XPDF into the search box for the Livecode script dictionary. It is an external for accessing PDFs. From brahma at hindu.org Sat Mar 4 11:55:42 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 4 Mar 2017 16:55:42 +0000 Subject: Remote debugger In-Reply-To: <56c53f0c-4ffb-d095-3174-00a8474523da@hyperactivesw.com> References: <9a99a712-e72b-c8e2-f991-afc59449b40e@hyperactivesw.com> <9E1ED5E0-CE98-4764-9B8F-D1317C269AC4@appisle.net> <2D23D11D-F63F-4E1A-8BE1-ABA3F09744D7@hindu.org> <56c53f0c-4ffb-d095-3174-00a8474523da@hyperactivesw.com> Message-ID: <74FCF5C6-834C-4F67-A78B-056D3C803883@hindu.org> J. Landman Gay wrote: So far, all I've found is the blog post: Thanks. Seems easier for android because you can run test to the device on a tethered phone, but I can't do that with iPHone (or can we?) you can only test in the simulator?.which doesn't always seem to behave exactly as it does on the phone itself. 9 dp5 looks good but is breaking gradients in some of my graphic objects and corrupting the graphic completely..well that was happening before? it went away in 8.1.3 but is back now in 9? From blueback09 at gmail.com Sat Mar 4 12:25:03 2017 From: blueback09 at gmail.com (Matt Maier) Date: Sat, 4 Mar 2017 09:25:03 -0800 Subject: revZip functions, compressing and extracting folder for transfer Message-ID: Is there an overview or tutorial on how to use the revZip functions? Do I have to use each individual function to manually describe the process of creating and using a zip archive? Like, to create the archive, do I have to write my own code to open it, repeat for each file and/or each folder, find and specify the name and contents and format of each file, then close it, then remember to delete it later...or is there a command somewhere that just takes a folder and returns a zipped version of that folder? The same question for extracting an archive. Do I have to open it, enumerate the files, repeat for each file and/or folder, figure out that file's name, contents, and format, copy the file to an appropriate new file, then close it, then remember to delete it later...or is there a command that just takes a *.zip and returns an extracted folder? I already spent a couple hours trying various combinations of quotes around the parameters to add something to an archive before I figured out put the data into the URL as a binfile manually. Then this morning I ran across a different revZip function to add a file directly, instead of raw data, which I guess is what I was doing. So it would be nice to find out that there's already a function that does all of the obvious zip archive stuff automatically and correctly. From jacque at hyperactivesw.com Sat Mar 4 14:47:42 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 4 Mar 2017 13:47:42 -0600 Subject: revZip functions, compressing and extracting folder for transfer In-Reply-To: References: Message-ID: On 3/4/17 11:25 AM, Matt Maier via use-livecode wrote: > Is there an overview or tutorial on how to use the revZip functions? Under the Help menu, choose Sample Stacks and search for "revZip". There are a couple of stacks there. Also under the Help menu, choose Tutorials. There is one lesson on using revZip. I think there used to be a sample stack included inside the Mac app bundle, or inside the Windows app folder, but I don't see it now in LC 9. It may be in an older version. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dave at applicationinsight.com Sat Mar 4 14:58:39 2017 From: dave at applicationinsight.com (Dave Kilroy) Date: Sat, 4 Mar 2017 19:58:39 +0000 Subject: Remote debugger Message-ID: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> Nope I can?t get this working in iOS or Android :( however it does fire in the iOS simulator http://quality.livecode.com/show_bug.cgi?id=19367 From dochawk at gmail.com Sat Mar 4 15:10:26 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 4 Mar 2017 12:10:26 -0800 Subject: ouch: the beginning of the end In-Reply-To: <430EF827-CE07-4322-8898-86F3D2E9FDAB@iotecdigital.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <6601a7d9-de83-e2cf-4150-d0d797f8c0c1@gmail.com> <430EF827-CE07-4322-8898-86F3D2E9FDAB@iotecdigital.com> Message-ID: On Fri, Mar 3, 2017 at 8:07 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > err... are the forms already created? Or are you trying to create the > forms from scratch programaticaly? If the former, I wrote an application > that does just that. I first create a fillable form, then (for OS other > than OS X) I create an FDF file using a simple one liner Javascript command > and then add an Open File action that imports data from that fdf file. > Otherwise (for OS X using Acrobat) I use Applescript to tell Javascript to > fill the form. > I've considered such an approach, but 1) It shouldn't be that much work, 2) it takes something external 3) it takes different approaches on different platforms 4) it means that I'm counting on something *after* my customer modifies the supposed output to create the actual output. 5) Some of what I need to do generates the forms on the fly, with the same block repeated with different information. In some cases, I have a block such as the entries on the second page at http://www.uscourts.gov/file/18734/download . The same page could repeat thirty times or more with 3-10 entries per page, with each "block" on each page linking to a separate SQL entry. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Mar 4 15:10:45 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 4 Mar 2017 12:10:45 -0800 Subject: ouch: the beginning of the end In-Reply-To: <8811D3C5-2B00-4392-A984-BBB919466D53@iotecdigital.com> References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> <8811D3C5-2B00-4392-A984-BBB919466D53@iotecdigital.com> Message-ID: On Fri, Mar 3, 2017 at 8:10 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > What is this XPDF viewer you speak of? Not showing up in the LC dictionary. a unix pdf display program. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Sat Mar 4 15:18:38 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 4 Mar 2017 14:18:38 -0600 Subject: Remote debugger In-Reply-To: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> Message-ID: <3d012062-25ca-b9a7-ceb5-64c6cadf3876@hyperactivesw.com> On 3/4/17 1:58 PM, Dave Kilroy via use-livecode wrote: > Nope I can?t get this working in iOS or Android :( however it does fire in the iOS simulator > > http://quality.livecode.com/show_bug.cgi?id=19367 Looks like you fell into the same trap I did. You have to enable internet permissions on Android. Not sure about iOS but you might try making WiFi mandatory. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revdev at pdslabs.net Sat Mar 4 15:49:53 2017 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 4 Mar 2017 12:49:53 -0800 Subject: revZip functions, compressing and extracting folder for transfer In-Reply-To: References: Message-ID: <1bd392e8-372e-3951-5e73-af5b2b745075@pdslabs.net> Here is a sanitized version of a simple zip library stack I use in projects. It keeps me from having to get down into the nuts and bolts every time I want to zip a file: https://www.dropbox.com/s/t8z27p8cy5ir1v9/libZip.livecode?dl=0 HTH - Phil Davis On 3/4/17 9:25 AM, Matt Maier via use-livecode wrote: > Is there an overview or tutorial on how to use the revZip functions? > > Do I have to use each individual function to manually describe the process > of creating and using a zip archive? > > Like, to create the archive, do I have to write my own code to open it, > repeat for each file and/or each folder, find and specify the name and > contents and format of each file, then close it, then remember to delete it > later...or is there a command somewhere that just takes a folder and > returns a zipped version of that folder? > > The same question for extracting an archive. Do I have to open it, > enumerate the files, repeat for each file and/or folder, figure out that > file's name, contents, and format, copy the file to an appropriate new > file, then close it, then remember to delete it later...or is there a > command that just takes a *.zip and returns an extracted folder? > > I already spent a couple hours trying various combinations of quotes around > the parameters to add something to an archive before I figured out put the > data into the URL as a binfile manually. Then this morning I ran across a > different revZip function to add a file directly, instead of raw data, > which I guess is what I was doing. So it would be nice to find out that > there's already a function that does all of the obvious zip archive stuff > automatically and correctly. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis From bodine at bodinetraininggames.com Sat Mar 4 15:52:30 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Sat, 4 Mar 2017 12:52:30 -0800 (PST) Subject: UI design problem Message-ID: <1488660750002-4712829.post@n4.nabble.com> Hi Livecoders. I am hoping you'll have some ideas for solving a UI design/coding problem. My app lets users create simple presentation screens, one per card. The user can import a picture and add a headline (text field) to the card. And since the user will sometimes want the text to be over the image, the text field is always the top layer. The problem is the text field often blocks the user from grabbing and moving the image control below. (Both the field and image are meant to be movable.) My many attempts to solve this have wandered into "rat's nest" territory, so I'm hoping some of you will know a simple way to pass a mousedown from a text field to an image control. Thanks! Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/UI-design-problem-tp4712829.html Sent from the Revolution - User mailing list archive at Nabble.com. From tom at makeshyft.com Sat Mar 4 16:12:35 2017 From: tom at makeshyft.com (Tom Glod) Date: Sat, 4 Mar 2017 16:12:35 -0500 Subject: UI design problem In-Reply-To: <1488660750002-4712829.post@n4.nabble.com> References: <1488660750002-4712829.post@n4.nabble.com> Message-ID: the solution is simple ..... look up how to pass messages, it is easy and made for in situations such as this. pass mousedown On Sat, Mar 4, 2017 at 3:52 PM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Livecoders. > > I am hoping you'll have some ideas for solving a UI design/coding problem. > My app lets users create simple presentation screens, one per card. The > user > can import a picture and add a headline (text field) to the card. And > since > the user will sometimes want the text to be over the image, the text field > is always the top layer. > > The problem is the text field often blocks the user from grabbing and > moving > the image control below. (Both the field and image are meant to be > movable.) > > My many attempts to solve this have wandered into "rat's nest" territory, > so > I'm hoping some of you will know a simple way to pass a mousedown from a > text field to an image control. > > Thanks! > Tom B. > > > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/UI-design-problem-tp4712829.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Tom Glod* CEO @ *MakeShyft R.D.A* - www.makeshyft.com Developer of *U.M.P* - www.IamUMP.com From paul at researchware.com Sat Mar 4 16:10:56 2017 From: paul at researchware.com (Paul Dupuis) Date: Sat, 4 Mar 2017 16:10:56 -0500 Subject: ouch: the beginning of the end In-Reply-To: References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> <8811D3C5-2B00-4392-A984-BBB919466D53@iotecdigital.com> Message-ID: <7dc71168-b4a8-49a7-61a7-8e2eb2c6c4d8@researchware.com> On 3/4/2017 3:10 PM, Dr. Hawkins via use-livecode wrote: > On Fri, Mar 3, 2017 at 8:10 PM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> What is this XPDF viewer you speak of? Not showing up in the LC dictionary. > > a unix pdf display program. > > XPDF is not a "unix pdf display program" - it is a LiveCode supported external (like the revZip or revXML libraries) for opening, display, and extracting content from PDFs. It can extract text or image content, all or just portions, and a lot more. It is for LiveCode Business License holders, so it is not available for the open source or Indy editions. It does not write PDFs - you have LiveCode's built in print to PDF for that. It just reads, displays, and extract content from PDFs. It is supported on Windows and OSX. It is available in LC 8 and 9 From bodine at bodinetraininggames.com Sat Mar 4 17:04:10 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Sat, 4 Mar 2017 14:04:10 -0800 (PST) Subject: UI design problem In-Reply-To: References: <1488660750002-4712829.post@n4.nabble.com> Message-ID: <1488665050418-4712832.post@n4.nabble.com> Dr. Hawkins via use-livecode wrote > pass mousedown "Pass mousedown" doesn't work here. (Message does not travel down to the image control below the field.) I used a send "mousedown" which does travel through, but what doesn't work then is the "grab image 'blah'" line in the mousedown handler attached to the image. The same mousedown handler works fine to grab the image when I click directly on the image control. Tom -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/UI-design-problem-tp4712829p4712832.html Sent from the Revolution - User mailing list archive at Nabble.com. From jonathandlynch at gmail.com Sat Mar 4 17:19:55 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 4 Mar 2017 17:19:55 -0500 Subject: UI design problem In-Reply-To: <1488665050418-4712832.post@n4.nabble.com> References: <1488660750002-4712829.post@n4.nabble.com> <1488665050418-4712832.post@n4.nabble.com> Message-ID: <4D4FBDF6-611D-4C5F-8097-760E0E55450F@gmail.com> The message would pass up the message path, to the group that owns both targets. That is where you would place the script to decide which object to move. The following code will help you know which object was clicked: Put word 1 of the target into tObjectType If tObjectType = "field" then -- do whatever you want with the field Else if tObjectType = "image" then -- do whatever with the image End if Sent from my iPhone > On Mar 4, 2017, at 5:04 PM, tbodine via use-livecode wrote: > > Dr. Hawkins via use-livecode wrote >> pass mousedown > > "Pass mousedown" doesn't work here. (Message does not travel down to the > image control below the field.) > I used a send "mousedown" which does travel through, but what doesn't work > then is the "grab image 'blah'" line in the mousedown handler attached to > the image. The same mousedown handler works fine to grab the image when I > click directly on the image control. > > Tom > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/UI-design-problem-tp4712829p4712832.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Sat Mar 4 17:19:55 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 4 Mar 2017 17:19:55 -0500 Subject: UI design problem In-Reply-To: <1488665050418-4712832.post@n4.nabble.com> References: <1488660750002-4712829.post@n4.nabble.com> <1488665050418-4712832.post@n4.nabble.com> Message-ID: <4D4FBDF6-611D-4C5F-8097-760E0E55450F@gmail.com> The message would pass up the message path, to the group that owns both targets. That is where you would place the script to decide which object to move. The following code will help you know which object was clicked: Put word 1 of the target into tObjectType If tObjectType = "field" then -- do whatever you want with the field Else if tObjectType = "image" then -- do whatever with the image End if Sent from my iPhone > On Mar 4, 2017, at 5:04 PM, tbodine via use-livecode wrote: > > Dr. Hawkins via use-livecode wrote >> pass mousedown > > "Pass mousedown" doesn't work here. (Message does not travel down to the > image control below the field.) > I used a send "mousedown" which does travel through, but what doesn't work > then is the "grab image 'blah'" line in the mousedown handler attached to > the image. The same mousedown handler works fine to grab the image when I > click directly on the image control. > > Tom > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/UI-design-problem-tp4712829p4712832.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dave at applicationinsight.com Sat Mar 4 17:35:40 2017 From: dave at applicationinsight.com (Dave Kilroy) Date: Sat, 4 Mar 2017 22:35:40 +0000 Subject: Remote debugger In-Reply-To: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> Message-ID: Thanks Jacque - but I?m not convinced that?s it - I set that (for android) plus Internet, Remote Debugger - and have tried various combinations of including and not including tsNet - and have rebooted by mac and router ? but I don?t think I tried making wifi required for iOS, will try that in the morning One thing I am suspicious of however is gRevDevelopment - when I look at my menu sections in the IDE I can see it?s set, but when I check in the message box it show false - if I set it to true (via the message box or in code) then I can get the message box to report it as true, and it shows in the menus as true - but if I then save and quit and relaunch LiveCode it again shows true in the menus but reports as false via the message box! So I guess it?s likely that each time I build for iOS/Android its going out with gRevDevelopment set to false And what is extra weird is that this behaviour of the gRevDevelopment not having much/any relationship to the settings in the IDE?s menus is the same in earlier version of LC 8, 7 and even 6 I obviously don?t understand what gRevDevelopment does! > Looks like you fell into the same trap I did. You have to enable > internet permissions on Android. Not sure about iOS but you might try > making WiFi mandatory. > > -- > Jacqueline Landman Gay | [hidden email] > HyperActive Software | http://www.hyperactivesw.com > From tom at makeshyft.com Sat Mar 4 17:16:45 2017 From: tom at makeshyft.com (Tom Glod) Date: Sat, 4 Mar 2017 17:16:45 -0500 Subject: UI design problem In-Reply-To: <1488665050418-4712832.post@n4.nabble.com> References: <1488660750002-4712829.post@n4.nabble.com> <1488665050418-4712832.post@n4.nabble.com> Message-ID: ahhh.... how do you know if the user wants to move the image or the text? maybe use a modifier key to help you differentiate between what the user wants to grab. if controlKey() is down then ... or maybe give a hotkey to select either text or image..... and maybe a red border around the selection while its selected so that the user knows what is selected? On Sat, Mar 4, 2017 at 5:04 PM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > Dr. Hawkins via use-livecode wrote > > pass mousedown > > "Pass mousedown" doesn't work here. (Message does not travel down to the > image control below the field.) > I used a send "mousedown" which does travel through, but what doesn't work > then is the "grab image 'blah'" line in the mousedown handler attached to > the image. The same mousedown handler works fine to grab the image when I > click directly on the image control. > > Tom > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/UI-design-problem-tp4712829p4712832.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Tom Glod* CEO @ *MakeShyft R.D.A* - www.makeshyft.com Developer of *U.M.P* - www.IamUMP.com From dochawk at gmail.com Sat Mar 4 18:39:15 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 4 Mar 2017 15:39:15 -0800 Subject: ouch: the beginning of the end In-Reply-To: References: <3E8AE2E3-F789-4FFB-A920-B93D08FE2129@livecode.com> <24b61f3a-e733-22d4-116c-eff80250d77d@researchware.com> Message-ID: On Sat, Mar 4, 2017 at 2:05 AM, Lagi Pittas via use-livecode < use-livecode at lists.runrev.com> wrote: > If You HAVE tom use the ACTUAL government PDF and be pixel perfect then how > can you be printing anything of any type out as a pdf > whether with eps or any changed fields - maybe I haen't read all the posts > but am I missing something? > Overlaying the output fields on top of the eps. When viewed/printed, it looks like the original has been typed upon. > > Can you explain in 1 place without assuming anything in the least amount of > words what the workflow is what you want to input what you want to get out > and where does the eps fit into this - if you are suppose to use THE > mandated pdf. > I break it into pieces, rather than using the whole page, as parts repeat. I've tossed together a video showing this at dochawkbk.com/eps_example.720.mov. I suppose a widget that could display an eps would do on-screen (but then again, for on-screen a 72dpi image will do), but that wouldn't solve the print to pdf issue (but as I mentioned elsewhere, I think that only takes one line of code. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Mar 4 18:43:40 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 4 Mar 2017 15:43:40 -0800 Subject: UI design problem In-Reply-To: <1488665050418-4712832.post@n4.nabble.com> References: <1488660750002-4712829.post@n4.nabble.com> <1488665050418-4712832.post@n4.nabble.com> Message-ID: On Sat, Mar 4, 2017 at 2:04 PM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > Dr. Hawkins via use-livecode wrote > > pass mousedown > > Err, no I didn't :) But my though would be after pasting, to move the image control (slider, group, whatever) to the top level, and to hide it while printing. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Mar 4 18:43:40 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 4 Mar 2017 15:43:40 -0800 Subject: UI design problem In-Reply-To: <1488665050418-4712832.post@n4.nabble.com> References: <1488660750002-4712829.post@n4.nabble.com> <1488665050418-4712832.post@n4.nabble.com> Message-ID: On Sat, Mar 4, 2017 at 2:04 PM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > Dr. Hawkins via use-livecode wrote > > pass mousedown > > Err, no I didn't :) But my though would be after pasting, to move the image control (slider, group, whatever) to the top level, and to hide it while printing. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From tom at makeshyft.com Sat Mar 4 19:34:28 2017 From: tom at makeshyft.com (Tom Glod) Date: Sat, 4 Mar 2017 19:34:28 -0500 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> Message-ID: this discussion has been very useful on many fronts. I'm going to have fewer nightmares about security. On Fri, Mar 3, 2017 at 1:00 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > It looks like the encrypt command is already using this method if the > "with salt" arguement is provided? At least the encrypted result starts > with "salted" and at least part of the salt value. > > Bob S > > > > On Mar 1, 2017, at 07:37 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Peter. Very informative thank you. In the example, > > > > [protected form] = [salt] + protect([protection func], [salt] + > [credential]); > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Tom Glod* CEO @ *MakeShyft R.D.A* - www.makeshyft.com Developer of *U.M.P* - www.IamUMP.com From MikeKerner at roadrunner.com Sat Mar 4 19:54:20 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 4 Mar 2017 19:54:20 -0500 Subject: Remote debugger In-Reply-To: References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> Message-ID: I have it working on ios, but I have found several bugs with it. It's the first try... On Sat, Mar 4, 2017 at 5:35 PM, Dave Kilroy via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Jacque - but I?m not convinced that?s it - I set that (for android) > plus Internet, Remote Debugger - and have tried various combinations of > including and not including tsNet - and have rebooted by mac and router ? > but I don?t think I tried making wifi required for iOS, will try that in > the morning > > One thing I am suspicious of however is gRevDevelopment - when I look at > my menu sections in the IDE I can see it?s set, but when I check in the > message box it show false - if I set it to true (via the message box or in > code) then I can get the message box to report it as true, and it shows in > the menus as true - but if I then save and quit and relaunch LiveCode it > again shows true in the menus but reports as false via the message box! So > I guess it?s likely that each time I build for iOS/Android its going out > with gRevDevelopment set to false > > And what is extra weird is that this behaviour of the gRevDevelopment not > having much/any relationship to the settings in the IDE?s menus is the same > in earlier version of LC 8, 7 and even 6 > > I obviously don?t understand what gRevDevelopment does! > > > > > Looks like you fell into the same trap I did. You have to enable > > internet permissions on Android. Not sure about iOS but you might try > > making WiFi mandatory. > > > > -- > > Jacqueline Landman Gay | [hidden email] < > http://runtime-revolution.278305.n4.nabble.com/user/ > SendEmail.jtp?type=node&node=4712827&i=0> > > HyperActive Software | http://www.hyperactivesw.com < > http://www.hyperactivesw.com/> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From rdimola at evergreeninfo.net Sat Mar 4 20:07:22 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 4 Mar 2017 20:07:22 -0500 Subject: Script Profiler In-Reply-To: References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> Message-ID: <002b01d2954c$d8c5cae0$8a5160a0$@net> Both the Remote Debugger and Script Profiler are exciting. There's only one of me so I went for the script profiler first. Looked at the LC lesson and it seemed simple enough... Enable, do some stuff in your stack and the disable. I did that and the Profiler screen pops up but it's empty. Am I missing something? How do I set the message/handler level to be profiled? Say I want to see how long it takes to resize the stack. I first profile the script in the resizestack handler but not any deeper. I then see that one of the handlers called in the resizestack hander takes too long so now I want to profile just that handler. Has anybody got this working? Thanks Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From brahma at hindu.org Sat Mar 4 22:35:38 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 5 Mar 2017 03:35:38 +0000 Subject: Can you test: Send Back in 9 dp5 is broken Message-ID: <9C7CB90F-C425-43D0-9592-E556980675C6@hindu.org> Can you test this -- open a card in Stack A with many groups on it. -- set select grouped object to true in the ID tool bar "Select Grouped" -- select an object # mine is corrupted graphic whose gradient keeps gettins "wacked" but the IDE. -- delete it -- go to another stack B # mine is a stack where I keep graphics with gradients to paste back in after LC breaks them. -- select a graphic object; -- copy it -- go back to stack A -- paste the graphic.. -- with that graphic selected. click cmd - [ to set it back expect: graphic should drop back just one layer from the top. result: all groups on the card disappeared! Svasti Astu, Be Well Brahmanathaswami www.himalayanacademy.com From brahma at hindu.org Sun Mar 5 01:37:35 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 5 Mar 2017 06:37:35 +0000 Subject: Remote debugger In-Reply-To: References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> Message-ID: <9A58A15E-C444-403E-AD2A-48350CDDDD00@hindu.org> Eureka! I got it working on Andrioid --TSNet, check --internet, check --remote debugger, check --internet permissions, check -- manually set gRevDevelopment to true (in msg box) # confirmed it is false even when checked in the IDE (weird) -- set break point in a script -- plug in Nexus5 with USB? -- build standalone -- run: Yes! I'm asked if I want to run the debug session. I found where there is a problem on android in a script that runs just fine on iOS and OSX desktop) So far, so good; but I could "escape out" -- my app is locked upon the phone, (because I'm in the script editor no doubt) app and IDE on my desktop is locked. There was no way to return to development and look at the source.. I had to quit my main stack and start it again? on the phone I went to settings/Apps/SivaSiva -- force stop?did not have to quit LC though? Svasti Astu, Be Well Brahmanathaswami www.himalayanacademy.com On 3/4/17, 2:54 PM, "use-livecode on behalf of Mike Kerner via use-livecode" wrote: I have it working on ios, but I have found several bugs with it. It's the first try... From brahma at hindu.org Sun Mar 5 01:53:18 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 5 Mar 2017 06:53:18 +0000 Subject: Remote debugger In-Reply-To: <9A58A15E-C444-403E-AD2A-48350CDDDD00@hindu.org> References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> <9A58A15E-C444-403E-AD2A-48350CDDDD00@hindu.org> Message-ID: <8E712806-1DEC-4B37-A48E-A66903F41FE2@hindu.org> Never mind? went thru the whole process again. on android ? force stop the app and then the IDE says the debugging session closed. Awesome I found an obscure bug or rather difference binfile://someAppPath/Unicode.txt into myNewText works on iOS and Mac OSX but not on android only 1 slash allowed.. binfile:/someAppPath/Unicode.txt into myNewText #now works everywhere This is a great step forward! Thank you Monte for the hard work! BR On 3/4/17, 8:37 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" wrote: So far, so good; but I could "escape out" -- my app is locked upon the phone, (because I'm in the script editor no doubt) app and IDE on my desktop is locked. There was no way to return to development and look at the source.. I had to quit my main stack and start it again? on the phone I went to settings/Apps/SivaSiva -- force stop?did not have to quit LC though? From jiml at netrin.com Sun Mar 5 14:26:14 2017 From: jiml at netrin.com (Jim Lambert) Date: Sun, 5 Mar 2017 11:26:14 -0800 Subject: UI design problem In-Reply-To: References: Message-ID: Food for thought. Presumably text in the field is editable by the user. Therefore the field text cannot be locked and mousedowns will be used for text selection rather than grabbing of the entire field, correct? Is the field user resizable? If so, do you present the user with dotted border and resize handles? Could clicking on the field?s (or image?s) border trigger the grab rather than a click within its content area? Jim Lambert From capellan2000 at gmail.com Sun Mar 5 15:33:21 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 5 Mar 2017 15:33:21 -0500 Subject: ouch: the beginning of the end Message-ID: Using the free command line utility PDFTK, I could fill a pdf with interactive fields using just a text file formatted as a fdf document (that you could generate with LiveCode). Tested and works in Windows and Ubuntu Linux. Could you test if this works on MacOSX? pdftk.exe C:\PDFwithForms.pdf fill_form C:\data.fdf output FilledPDF.pdf flatten There are many samples of PDF and matching FDF files inside these compressed folders from Adobe: http://www.adobe.com/devnet/acrobat/fdftoolkit.html Al From bodine at bodinetraininggames.com Sun Mar 5 15:52:27 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Sun, 5 Mar 2017 12:52:27 -0800 (PST) Subject: UI design problem In-Reply-To: References: <1488660750002-4712829.post@n4.nabble.com> Message-ID: <1488747147470-4712846.post@n4.nabble.com> Thanks Jim. Jim Lambert wrote > Presumably text in the field is editable by the user. > Therefore the field text cannot be locked and mousedowns will be used for > text selection rather than grabbing of the entire field, correct? > > Is the field user resizable? A right-click toggles the text field between being editable-text or a movable block of text, but there are no resize handles on the text field. The image, however, has resize handles. When text and image overlap, I use the mousechar to figure out the user's intent. (If the user clicked on blank space, I treat that as an image click and pass the click through to the image control to make it movable. If the user clicked on headline text or the space between words, then the text block becomes movable.) I narrowed my original issue down to this: "grab" doesn't work for a mousedown that is passed through to another object. So I bailed on "grab" and I'm using the mouseStillDown message to make either the text or image follow the mouse until released. Spent way to much time on this! Thanks to all for your suggestions. Tom -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/UI-design-problem-tp4712829p4712846.html Sent from the Revolution - User mailing list archive at Nabble.com. From monte at appisle.net Sun Mar 5 20:00:55 2017 From: monte at appisle.net (Monte Goulding) Date: Mon, 6 Mar 2017 12:00:55 +1100 Subject: Remote debugger In-Reply-To: <8E712806-1DEC-4B37-A48E-A66903F41FE2@hindu.org> References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> <9A58A15E-C444-403E-AD2A-48350CDDDD00@hindu.org> <8E712806-1DEC-4B37-A48E-A66903F41FE2@hindu.org> Message-ID: Hi Folks gREVDevelopment is not necessary for the remote debugger to function. I have create an enhancement report for the remote debugger to automatically turn on android internet permissions: http://quality.livecode.com/show_bug.cgi?id=19370 The new version of mergDeploy didn?t make DP 5. Hopefully it will make the next DP but as I have been off for a week I?m not sure if work is complete on that and it will be in the one after. This will enable the IDE to recognise attached iOS devices and the Test button to install apps onto them. The only difference to Android is you need to tap the app icon on the device to start it running. Cheers Monte > On 5 Mar 2017, at 5:53 pm, Sannyasin Brahmanathaswami via use-livecode wrote: > > Never mind? went thru the whole process again. on android ? force stop the app and then the IDE says the debugging session closed. > > Awesome I found an obscure bug or rather difference > > binfile://someAppPath/Unicode.txt into myNewText > > works on iOS and Mac OSX > > but not on android > > only 1 slash allowed.. > > binfile:/someAppPath/Unicode.txt into myNewText #now works everywhere > > This is a great step forward! Thank you Monte for the hard work! > > BR > > > > On 3/4/17, 8:37 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" wrote: > > So far, so good; but I could "escape out" -- my app is locked upon the phone, (because I'm in the script editor no doubt) app and IDE on my desktop is locked. There was no way to return to development and look at the source.. I had to quit my main stack and start it again? on the phone I went to settings/Apps/SivaSiva -- force stop?did not have to quit LC though? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Mar 5 21:00:10 2017 From: niconiko at gmail.com (Nicolas Cueto) Date: Mon, 6 Mar 2017 11:00:10 +0900 Subject: align field scrolls Message-ID: Hi. The part I've got working... Two clickable scrolling fields (fld1, fld2), same height and width. Click a fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching line. (fld1 is French text, fld2 is an English gloss.) The part I would welcome your help with... If, say, the hilited line on fld1 is kinda halfway down, how do I get the hilited line on fld2 to also be kinda halfway down? Here's my scrolling-magic script: set the scroll of fld2 to (tMatchingLineNr - 1) * \ the textHeight of fld2 - the textHeight of fld2 set the hilitedline of fld2 to tMatchingLineNr Of course, this ends up with the hilited line of fld2 being at the top. How do I get it to scroll just that little bit more so that it aligns with the hilited line as seen in fld1? Thank you. -- Nicolas Cueto From paul at livecode.org Sun Mar 5 21:26:06 2017 From: paul at livecode.org (Paul Hibbert) Date: Sun, 5 Mar 2017 18:26:06 -0800 Subject: align field scrolls In-Reply-To: References: Message-ID: I have a stack that does a similar thing, but with numbers and I just use the following script in the main field; on scrollBarDrag pScroll set the vScroll of fld ?lineNumbers" to pScroll end scrollBarDrag Provided both fields have the same number of lines and the text properties are identical they should stay aligned correctly. Or a simpler version would be; set the vScroll of fld 2 to the vScroll of fld 1 Paul > On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode wrote: > > Hi. > > The part I've got working... > > Two clickable scrolling fields (fld1, fld2), same height and width. Click a > fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching > line. (fld1 is French text, fld2 is an English gloss.) > > The part I would welcome your help with... > > If, say, the hilited line on fld1 is kinda halfway down, how do I get the > hilited line on fld2 to also be kinda halfway down? > > Here's my scrolling-magic script: > > set the scroll of fld2 to (tMatchingLineNr - 1) * \ > the textHeight of fld2 - the textHeight of fld2 > set the hilitedline of fld2 to tMatchingLineNr > > Of course, this ends up with the hilited line of fld2 being at the top. > How do I get it to scroll just that little bit more so that it aligns with > the hilited line as seen in fld1? > > > Thank you. > > -- > 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 niconiko at gmail.com Sun Mar 5 21:45:38 2017 From: niconiko at gmail.com (Nicolas Cueto) Date: Mon, 6 Mar 2017 11:45:38 +0900 Subject: align field scrolls In-Reply-To: References: Message-ID: > Provided both fields have the same number of lines... ?I should've added that the fields do not contain the same number of lines. They are identical, though, in size and text properties. Thanks, Paul. -- Nicolas Cueto On 6 March 2017 at 11:26, Paul Hibbert via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a stack that does a similar thing, but with numbers and I just use > the following script in the main field; > > on scrollBarDrag pScroll > set the vScroll of fld ?lineNumbers" to pScroll > > end scrollBarDrag > > Provided both fields have the same number of lines and the text properties > are identical they should stay aligned correctly. > > Or a simpler version would be; > set the vScroll of fld 2 to the vScroll of fld 1 > > Paul > > > > > On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi. > > > > The part I've got working... > > > > Two clickable scrolling fields (fld1, fld2), same height and width. > Click a > > fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching > > line. (fld1 is French text, fld2 is an English gloss.) > > > > The part I would welcome your help with... > > > > If, say, the hilited line on fld1 is kinda halfway down, how do I get the > > hilited line on fld2 to also be kinda halfway down? > > > > Here's my scrolling-magic script: > > > > set the scroll of fld2 to (tMatchingLineNr - 1) * \ > > the textHeight of fld2 - the textHeight of fld2 > > set the hilitedline of fld2 to tMatchingLineNr > > > > Of course, this ends up with the hilited line of fld2 being at the top. > > How do I get it to scroll just that little bit more so that it aligns > with > > the hilited line as seen in fld1? > > > > > > Thank you. > > > > -- > > 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peter.brett at livecode.com Mon Mar 6 05:53:50 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 6 Mar 2017 10:53:50 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> Message-ID: On 03/03/2017 18:00, Bob Sneidar via use-livecode wrote: > It looks like the encrypt command is already using this method if > the "with salt" arguement is provided? At least the encrypted result > starts with "salted" and at least part of the salt value. > Hi Bob, The "encrypt" command provides symmetric cryptographic functions, i.e. you can decrypt the result again to get the cleartext back. This is _not_ a desirable property for a password storage system; you should always use one-way (asymmetric) functions, such as a cryptographic hash. Peter -- Dr Peter Brett lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From peter.brett at livecode.com Mon Mar 6 06:25:02 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Mon, 6 Mar 2017 11:25:02 +0000 Subject: [ANN] This Week in LiveCode 73 Message-ID: <8fb29315-111d-cf4e-2316-0b7354e6c8ea@livecode.com> Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #73 here: https://goo.gl/SBNgjA This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. Peter -- Dr Peter Brett lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From harrison at all-auctions.com Mon Mar 6 09:39:14 2017 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 6 Mar 2017 09:39:14 -0500 Subject: align field scrolls In-Reply-To: References: Message-ID: Hi Nicolas, Does the number of lines increase or decrease between executions? Have you tried to add or subtract a constant to adjust for the difference? Rick > On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode wrote: > >> Provided both fields have the same number of lines... > > > ?I should've added that the fields do not contain the same number of > lines. They are identical, though, in size and text properties. > > Thanks, Paul. > > -- > Nicolas Cueto > > > On 6 March 2017 at 11:26, Paul Hibbert via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I have a stack that does a similar thing, but with numbers and I just use >> the following script in the main field; >> >> on scrollBarDrag pScroll >> set the vScroll of fld ?lineNumbers" to pScroll >> >> end scrollBarDrag >> >> Provided both fields have the same number of lines and the text properties >> are identical they should stay aligned correctly. >> >> Or a simpler version would be; >> set the vScroll of fld 2 to the vScroll of fld 1 >> >> Paul >> >> >> >>> On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi. >>> >>> The part I've got working... >>> >>> Two clickable scrolling fields (fld1, fld2), same height and width. >> Click a >>> fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching >>> line. (fld1 is French text, fld2 is an English gloss.) >>> >>> The part I would welcome your help with... >>> >>> If, say, the hilited line on fld1 is kinda halfway down, how do I get the >>> hilited line on fld2 to also be kinda halfway down? >>> >>> Here's my scrolling-magic script: >>> >>> set the scroll of fld2 to (tMatchingLineNr - 1) * \ >>> the textHeight of fld2 - the textHeight of fld2 >>> set the hilitedline of fld2 to tMatchingLineNr >>> >>> Of course, this ends up with the hilited line of fld2 being at the top. >>> How do I get it to scroll just that little bit more so that it aligns >> with >>> the hilited line as seen in fld1? >>> >>> >>> Thank you. >>> >>> -- >>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Mon Mar 6 09:06:27 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 6 Mar 2017 06:06:27 -0800 (PST) Subject: align field scrolls In-Reply-To: References: Message-ID: <1488809187912-4712853.post@n4.nabble.com> So if your two fields have different number of lines, you must scale the "slave" field to the "master. You cannot just align their scroll values. If the master has, say 100 lines, and the slave 75, you simply set the ratio of the scroll of the master to its total line count to the ratio of the slave's similar properties. You may need the "trunc" function to avoid unnecessary pain and suffering. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/align-field-scrolls-tp4712848p4712853.html Sent from the Revolution - User mailing list archive at Nabble.com. From paul at researchware.com Mon Mar 6 10:27:58 2017 From: paul at researchware.com (Paul Dupuis) Date: Mon, 6 Mar 2017 10:27:58 -0500 Subject: align field scrolls In-Reply-To: References: Message-ID: <670ae303-ed85-4eda-a852-4eefe0d905b7@researchware.com> You need 3 controls: 2 fields with the vertical scrollbars turned off and a vertical scroller Set the min of the vertical scrollbar to 0 and the max to the "max(the formattedHeight of field X,formattedHeight of field Y) In the scrollbar, add the script: on scrollbarDrag newPosition set the vScroll of field X to newPosition set the vScroll of field Y to newPosition end scrollbarDrag On 3/6/2017 9:39 AM, Rick Harrison via use-livecode wrote: > Hi Nicolas, > > Does the number of lines increase or decrease between executions? > > Have you tried to add or subtract a constant to adjust for the difference? > > Rick > >> On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode wrote: >> >>> Provided both fields have the same number of lines... >> >> ?I should've added that the fields do not contain the same number of >> lines. They are identical, though, in size and text properties. >> >> Thanks, Paul. >> >> -- >> Nicolas Cueto >> >> >> On 6 March 2017 at 11:26, Paul Hibbert via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I have a stack that does a similar thing, but with numbers and I just use >>> the following script in the main field; >>> >>> on scrollBarDrag pScroll >>> set the vScroll of fld ?lineNumbers" to pScroll >>> >>> end scrollBarDrag >>> >>> Provided both fields have the same number of lines and the text properties >>> are identical they should stay aligned correctly. >>> >>> Or a simpler version would be; >>> set the vScroll of fld 2 to the vScroll of fld 1 >>> >>> Paul >>> >>> >>> >>>> On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> Hi. >>>> >>>> The part I've got working... >>>> >>>> Two clickable scrolling fields (fld1, fld2), same height and width. >>> Click a >>>> fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching >>>> line. (fld1 is French text, fld2 is an English gloss.) >>>> >>>> The part I would welcome your help with... >>>> >>>> If, say, the hilited line on fld1 is kinda halfway down, how do I get the >>>> hilited line on fld2 to also be kinda halfway down? >>>> >>>> Here's my scrolling-magic script: >>>> >>>> set the scroll of fld2 to (tMatchingLineNr - 1) * \ >>>> the textHeight of fld2 - the textHeight of fld2 >>>> set the hilitedline of fld2 to tMatchingLineNr >>>> >>>> Of course, this ends up with the hilited line of fld2 being at the top. >>>> How do I get it to scroll just that little bit more so that it aligns >>> with >>>> the hilited line as seen in fld1? >>>> >>>> >>>> Thank you. >>>> >>>> -- >>>> 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 >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Mon Mar 6 10:40:48 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 6 Mar 2017 08:40:48 -0700 Subject: align field scrolls In-Reply-To: <670ae303-ed85-4eda-a852-4eefe0d905b7@researchware.com> References: <670ae303-ed85-4eda-a852-4eefe0d905b7@researchware.com> Message-ID: An alternate solution.. If you put item 2 of the selectedloc of the first field - item 2 of the selectedloc of the second field into tScroll -- you can then set the vscroll of field "your second field" to the vscroll of field "your second field" - tScroll On Mon, Mar 6, 2017 at 8:27 AM, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > You need 3 controls: 2 fields with the vertical scrollbars turned off > and a vertical scroller > > > Set the min of the vertical scrollbar to 0 and the max to the "max(the > formattedHeight of field X,formattedHeight of field Y) > > In the scrollbar, add the script: > > on scrollbarDrag newPosition > set the vScroll of field X to newPosition > set the vScroll of field Y to newPosition > end scrollbarDrag > > > On 3/6/2017 9:39 AM, Rick Harrison via use-livecode wrote: > > Hi Nicolas, > > > > Does the number of lines increase or decrease between executions? > > > > Have you tried to add or subtract a constant to adjust for the > difference? > > > > Rick > > > >> On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >>> Provided both fields have the same number of lines... > >> > >> ?I should've added that the fields do not contain the same number of > >> lines. They are identical, though, in size and text properties. > >> > >> Thanks, Paul. > >> > >> -- > >> Nicolas Cueto > >> > >> > >> On 6 March 2017 at 11:26, Paul Hibbert via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> I have a stack that does a similar thing, but with numbers and I just > use > >>> the following script in the main field; > >>> > >>> on scrollBarDrag pScroll > >>> set the vScroll of fld ?lineNumbers" to pScroll > >>> > >>> end scrollBarDrag > >>> > >>> Provided both fields have the same number of lines and the text > properties > >>> are identical they should stay aligned correctly. > >>> > >>> Or a simpler version would be; > >>> set the vScroll of fld 2 to the vScroll of fld 1 > >>> > >>> Paul > >>> > >>> > >>> > >>>> On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>>> Hi. > >>>> > >>>> The part I've got working... > >>>> > >>>> Two clickable scrolling fields (fld1, fld2), same height and width. > >>> Click a > >>>> fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a > matching > >>>> line. (fld1 is French text, fld2 is an English gloss.) > >>>> > >>>> The part I would welcome your help with... > >>>> > >>>> If, say, the hilited line on fld1 is kinda halfway down, how do I get > the > >>>> hilited line on fld2 to also be kinda halfway down? > >>>> > >>>> Here's my scrolling-magic script: > >>>> > >>>> set the scroll of fld2 to (tMatchingLineNr - 1) * \ > >>>> the textHeight of fld2 - the textHeight of fld2 > >>>> set the hilitedline of fld2 to tMatchingLineNr > >>>> > >>>> Of course, this ends up with the hilited line of fld2 being at the > top. > >>>> How do I get it to scroll just that little bit more so that it aligns > >>> with > >>>> the hilited line as seen in fld1? > >>>> > >>>> > >>>> Thank you. > >>>> > >>>> -- > >>>> 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 > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 6 12:01:38 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 6 Mar 2017 12:01:38 -0500 Subject: Remote debugger In-Reply-To: References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> <9A58A15E-C444-403E-AD2A-48350CDDDD00@hindu.org> <8E712806-1DEC-4B37-A48E-A66903F41FE2@hindu.org> Message-ID: Monte, A couple of things: 1) There may be a crash bug related to mergDeploy (19365). I don't KNOW that's mergDeploy related, but if MD is enabled, LC crashes, and if it is not, it doesn't. 2) Seeing !n instead of device name (19376) On Sun, Mar 5, 2017 at 8:00 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Folks > > gREVDevelopment is not necessary for the remote debugger to function. > > I have create an enhancement report for the remote debugger to > automatically turn on android internet permissions: > http://quality.livecode.com/show_bug.cgi?id=19370 < > http://quality.livecode.com/show_bug.cgi?id=19370> > > The new version of mergDeploy didn?t make DP 5. Hopefully it will make the > next DP but as I have been off for a week I?m not sure if work is complete > on that and it will be in the one after. This will enable the IDE to > recognise attached iOS devices and the Test button to install apps onto > them. The only difference to Android is you need to tap the app icon on the > device to start it running. > > Cheers > > Monte > > > > On 5 Mar 2017, at 5:53 pm, Sannyasin Brahmanathaswami via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Never mind? went thru the whole process again. on android ? force stop > the app and then the IDE says the debugging session closed. > > > > Awesome I found an obscure bug or rather difference > > > > binfile://someAppPath/Unicode.txt into myNewText > > > > works on iOS and Mac OSX > > > > but not on android > > > > only 1 slash allowed.. > > > > binfile:/someAppPath/Unicode.txt into myNewText #now works everywhere > > > > This is a great step forward! Thank you Monte for the hard work! > > > > BR > > > > > > > > On 3/4/17, 8:37 PM, "use-livecode on behalf of Sannyasin > Brahmanathaswami via use-livecode" on behalf of use-livecode at lists.runrev.com> wrote: > > > > So far, so good; but I could "escape out" -- my app is locked upon > the phone, (because I'm in the script editor no doubt) app and IDE on my > desktop is locked. There was no way to return to development and look at > the source.. I had to quit my main stack and start it again? on the phone I > went to settings/Apps/SivaSiva -- force stop?did not have to quit LC though? > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode 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 andre at andregarzia.com Mon Mar 6 14:07:44 2017 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 6 Mar 2017 16:07:44 -0300 Subject: [ANN] Release 9.0.0 DP-5 In-Reply-To: References: Message-ID: On Thu, Feb 23, 2017 at 5:41 PM, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > - Implementation of a remote debugger (Business only): > Run a standalone for the local platform from the IDE and debug it whilst it > runs locally > Run a standalone for iOS or Android from the IDE and debug it whilst it > runs on a directly connected Android or iOS device > First congratulations on the new (tentative) release. Lots of good improvements there. Still, the fact that debugging is considered a business level feature doesn't work for me. Any software developer who is shipping products and is serious about them will use a debugger. This feature should be in the community version or at least the indy one. Just like the TS Net arbitrary difference between licenses, this is another "business decision" where HQ is shooting itself on the foot. Any other platform tool will have debugger in their most basic offerings and by debugger I mean "ability to debug (as in stepper) on deployed platforms". The fact that these decisions are being taken, where the HQ appears to be focusing more and more on business licensees feels like I am being forced into such license. At this moment, I am starting to wonder if there is any reason to be indy at all. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From monte at appisle.net Mon Mar 6 14:19:31 2017 From: monte at appisle.net (Monte Goulding) Date: Tue, 7 Mar 2017 06:19:31 +1100 Subject: Remote debugger In-Reply-To: References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> <9A58A15E-C444-403E-AD2A-48350CDDDD00@hindu.org> <8E712806-1DEC-4B37-A48E-A66903F41FE2@hindu.org> Message-ID: > On 7 Mar 2017, at 4:01 am, Mike Kerner via use-livecode wrote: > > 1) There may be a crash bug related to mergDeploy (19365). I don't KNOW > that's mergDeploy related, but if MD is enabled, LC crashes, and if it is > not, it doesn't. > 2) Seeing !n instead of device name (19376) Hopefully the new version of mergDeploy will have fixed those already ;-) From roger.e.eller at sealedair.com Mon Mar 6 14:25:10 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 6 Mar 2017 14:25:10 -0500 Subject: Remote debugger In-Reply-To: References: <55F395FE-5275-45AD-8FC8-C916117BD840@applicationinsight.com> <9A58A15E-C444-403E-AD2A-48350CDDDD00@hindu.org> <8E712806-1DEC-4B37-A48E-A66903F41FE2@hindu.org> Message-ID: Where can the new version be found? Is this page still maintained? http://mergext.com/plugins/mergdeploy/ On Mon, Mar 6, 2017 at 2:19 PM, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 7 Mar 2017, at 4:01 am, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > 1) There may be a crash bug related to mergDeploy (19365). I don't KNOW > > that's mergDeploy related, but if MD is enabled, LC crashes, and if it is > > not, it doesn't. > > 2) Seeing !n instead of device name (19376) > > Hopefully the new version of mergDeploy will have fixed those already ;-) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andre at andregarzia.com Mon Mar 6 14:11:17 2017 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 6 Mar 2017 16:11:17 -0300 Subject: the screenpixelscale on Microsoft SurfaceBook? In-Reply-To: References: Message-ID: Hey Trevor, This is a Surface Pro 4 with Intel HD 520 running latest Windows 10 at 2736x1284 with 200% display scaling. The screenPixelScale reported is 2 on LC 8.1.2 I can't have my machine go to 3000x2000, sorry. On Tue, Feb 28, 2017 at 2:20 PM, Trevor DeVore via use-livecode < use-livecode at lists.runrev.com> wrote: > Does anyone have access to a Microsoft SurfaceBook with an Intel HD 520 > card at 3000x2000 running the latest version of Windows 10? If so can you > tell me what LiveCode 8 reports for the screenPixelScale property if the > display scaling is set to 200% or 150%? I had a bug report today that makes > me think that the property is returning the wrong value. > > If you aren?t familiar with where the display scaling is set see this web > page: > > https://www.thurrott.com/windows/windows-10/4597/windows-10-feature-focus- > display-scaling > > Thanks, > > -- > Trevor DeVore > Outcome & ScreenSteps > www.outcomeapp.io - 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 -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From MikeKerner at roadrunner.com Mon Mar 6 15:12:33 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 6 Mar 2017 15:12:33 -0500 Subject: [ANN] Release 9.0.0 DP-5 In-Reply-To: References: Message-ID: You can't build ios with community, so that's moot. Besides, this is not debugging, this is remote debugging, and if anything screams "premium", it's a feature like this. Anyone who has been building for mobile since we could do that with LC has been working with their own personal debugging hacks. You can debug mobile, on the device, without this tool. If LC corporate isn't focused on sales and improving revenue, then we're all going to be without LC, because even though LC is OSS, someone has to pay for all the effort that goes into it. Community doesn't pay the bills, and almost nobody outside of LC corporate is doing anything about the codebase - just go on git and have a look. On Mon, Mar 6, 2017 at 2:07 PM, Andre Garzia via use-livecode < use-livecode at lists.runrev.com> wrote: > On Thu, Feb 23, 2017 at 5:41 PM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > - Implementation of a remote debugger (Business only): > > Run a standalone for the local platform from the IDE and debug it whilst > it > > runs locally > > Run a standalone for iOS or Android from the IDE and debug it whilst it > > runs on a directly connected Android or iOS device > > > > First congratulations on the new (tentative) release. Lots of good > improvements there. > > Still, the fact that debugging is considered a business level feature > doesn't work for me. Any software developer who is shipping products and is > serious about them will use a debugger. This feature should be in the > community version or at least the indy one. > > Just like the TS Net arbitrary difference between licenses, this is another > "business decision" where HQ is shooting itself on the foot. Any other > platform tool will have debugger in their most basic offerings and by > debugger I mean "ability to debug (as in stepper) on deployed platforms". > > The fact that these decisions are being taken, where the HQ appears to be > focusing more and more on business licensees feels like I am being forced > into such license. At this moment, I am starting to wonder if there is any > reason to be indy at all. > > > > > -- > http://www.andregarzia.com -- All We Do Is Code. > http://fon.nu -- minimalist url shortening service. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dochawk at gmail.com Mon Mar 6 15:31:28 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 6 Mar 2017 12:31:28 -0800 Subject: "ouch: the beginning of the end" In-Reply-To: References: Message-ID: On Mon, Mar 6, 2017 at 12:02 PM, Andre Garzia wrote: > If your objective is just displaying a PDF then you can use a RevBrowser > window to do that, and even use PDF.js if you want: > The intent is to display the pdf file that is about to be created, so that the user can modify it. Also, to generate that file. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From andre at andregarzia.com Mon Mar 6 15:02:57 2017 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 6 Mar 2017 17:02:57 -0300 Subject: "ouch: the beginning of the end" In-Reply-To: References: Message-ID: Hi, If your objective is just displaying a PDF then you can use a RevBrowser window to do that, and even use PDF.js if you want: https://mozilla.github.io/pdf.js/ This would allow you to display the files as they are but won't help you change or create new files. On Thu, Mar 2, 2017 at 8:13 PM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > I just got off the phone with the court clerk in Reno, and received the > beginning of the end . . .I figured it would come from some state or anther > in a year or two, but they are requiring me to use the *exact* pdf as > propagated by the court. > > As livecode is not capable of rendering a pdf page or an eps, this means I > am going to have to code pdf merging externally, while also working with > .png or .jpg background images in livecode to place onto blank pages. > > With the need to maintain both of these, I'll be doing most of the work for > on the parallel program--which may need to be fundamentally different in > mac/linux, windows, iOS, and android--at which point, it will make sense to > move as much as possible to the new platform. > > *sigh* > > It's 2017; asking to be able to display an eps and keep it as part of the > pdf generated doesn't seem like it's asking much. > > .png/.jpg simply aren't acceptable solutions for my output, as the density > required will produce insanely large .pdf files. > > -- > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From ambassador at fourthworld.com Mon Mar 6 17:23:38 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 6 Mar 2017 14:23:38 -0800 Subject: [ANN] Release 9.0.0 DP-5 In-Reply-To: References: Message-ID: <41d4e1e0-5363-598f-ce0a-eb3b93aaeda2@fourthworld.com> Andre Garzia wrote: > The fact that these decisions are being taken, where the HQ appears > to be focusing more and more on business licensees feels like I am > being forced into such license. At this moment, I am starting to > wonder if there is any reason to be indy at all. ...or Community. Finding the best mix of features for the the two proprietary licenses and the open source edition is a challenge. I spent the last several days at the SoCal Linux Expo, and had good talks with team members from NginX, MariaDB, Nextcloud, and Ubuntu. Those are among the strongest open source projects around, and all of them keep the projects going by offering paid services and software packages aimed at the enterprise audience. On the surface it would appear that what they're doing is similar to what LiveCode is doing, and in some broad respects I suppose it is. But I believe there are also at least two key differences: - The for-fee-only offerings from those other companies are indeed specialized for larger customers, and the core free (libre and gratis) software is full-featured to the point of being best-of- breed. - The communities surrounding those projects contribute a much larger percentage of the core free software. With LiveCode, the company restricts a broader range of functionality to the proprietary editions, but they're also paying for a much larger percentage of programmer-hours going into the package. Personally, I believe a healthy long-term balance would be more on par with those other projects, with more stuff shared across all editions and having that become possible because more of it comes from the community. The tricky part is how to get from here to there. Many of those projects are technologies that some of the world's biggest companies rely on, and many of those companies have full-time employees dedicated to contributing to those open source projects. At Heroku, for example, they maintain two full-timers whose only job is to submit pull requests for postgreSQL, and Google pays for a lot of the development of Python. The LiveCode world does not yet have a Google or Heroku in our community covering payroll for full-time engine developers. So the question at hand for all of us, company and community alike, is: What is the best balance of free and non-free offerings that will not only grow the platform, but also keep the ship running in order to pursue that growth? I don't have an easy answer on this. But I believe it is a very important question. And it may be harder to answer for this project than for others, for a great many reasons related to both the market the project serves and the complexity of delivering rich GUI authoring for so many platforms. As just one comparison, my understanding is that the LiveCode code base is at least 30% larger than the code base for NginX. Not only is LC a bigger project by that measure, but also arguably in terms of code complexity, because the touch-points for NGinX are limited to a relatively small number of OS APIs for networking and file I/O, but LiveCode needs those along with a vast number of broadly-varying GUI messaging APIs on top of that. As I ponder this question, I recognize that while I'm not in a position to cover full-time salaries for LiveCode contributors, I can invest a certain percentage of my time each week to the project in light of the many practical benefits it offers my company. -- Richard Gaskin LiveCode Community Liaison richard at livecode.org From jiml at netrin.com Mon Mar 6 18:00:21 2017 From: jiml at netrin.com (Jim Lambert) Date: Mon, 6 Mar 2017 15:00:21 -0800 Subject: UI design problem In-Reply-To: References: Message-ID: > tbodine wrote: > > I'm using the mouseStillDown message to make either the text or image > follow the mouse until released. Glad you solved it. Jim Lambert From niconiko at gmail.com Mon Mar 6 18:08:22 2017 From: niconiko at gmail.com (Nicolas Cueto) Date: Tue, 7 Mar 2017 08:08:22 +0900 Subject: align field scrolls In-Reply-To: References: <670ae303-ed85-4eda-a852-4eefe0d905b7@researchware.com> Message-ID: Mike Bonner's solution -- using selectedLoc to set vScroll -- matches exactly the scrolling effect I'm after. Thank you, everyone. And, thank you Mike! -- Nicolas Cueto On 7 March 2017 at 00:40, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > An alternate solution.. > If you > put item 2 of the selectedloc of the first field - item 2 of the > selectedloc of the second field into tScroll > > -- you can then > set the vscroll of field "your second field" to the vscroll of field "your > second field" - tScroll > > On Mon, Mar 6, 2017 at 8:27 AM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > You need 3 controls: 2 fields with the vertical scrollbars turned off > > and a vertical scroller > > > > > > Set the min of the vertical scrollbar to 0 and the max to the "max(the > > formattedHeight of field X,formattedHeight of field Y) > > > > In the scrollbar, add the script: > > > > on scrollbarDrag newPosition > > set the vScroll of field X to newPosition > > set the vScroll of field Y to newPosition > > end scrollbarDrag > > > > > > On 3/6/2017 9:39 AM, Rick Harrison via use-livecode wrote: > > > Hi Nicolas, > > > > > > Does the number of lines increase or decrease between executions? > > > > > > Have you tried to add or subtract a constant to adjust for the > > difference? > > > > > > Rick > > > > > >> On Mar 5, 2017, at 9:45 PM, Nicolas Cueto via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >> > > >>> Provided both fields have the same number of lines... > > >> > > >> ?I should've added that the fields do not contain the same number of > > >> lines. They are identical, though, in size and text properties. > > >> > > >> Thanks, Paul. > > >> > > >> -- > > >> Nicolas Cueto > > >> > > >> > > >> On 6 March 2017 at 11:26, Paul Hibbert via use-livecode < > > >> use-livecode at lists.runrev.com> wrote: > > >> > > >>> I have a stack that does a similar thing, but with numbers and I just > > use > > >>> the following script in the main field; > > >>> > > >>> on scrollBarDrag pScroll > > >>> set the vScroll of fld ?lineNumbers" to pScroll > > >>> > > >>> end scrollBarDrag > > >>> > > >>> Provided both fields have the same number of lines and the text > > properties > > >>> are identical they should stay aligned correctly. > > >>> > > >>> Or a simpler version would be; > > >>> set the vScroll of fld 2 to the vScroll of fld 1 > > >>> > > >>> Paul > > >>> > > >>> > > >>> > > >>>> On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode < > > >>> use-livecode at lists.runrev.com> wrote: > > >>>> Hi. > > >>>> > > >>>> The part I've got working... > > >>>> > > >>>> Two clickable scrolling fields (fld1, fld2), same height and width. > > >>> Click a > > >>>> fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a > > matching > > >>>> line. (fld1 is French text, fld2 is an English gloss.) > > >>>> > > >>>> The part I would welcome your help with... > > >>>> > > >>>> If, say, the hilited line on fld1 is kinda halfway down, how do I > get > > the > > >>>> hilited line on fld2 to also be kinda halfway down? > > >>>> > > >>>> Here's my scrolling-magic script: > > >>>> > > >>>> set the scroll of fld2 to (tMatchingLineNr - 1) * \ > > >>>> the textHeight of fld2 - the textHeight of fld2 > > >>>> set the hilitedline of fld2 to tMatchingLineNr > > >>>> > > >>>> Of course, this ends up with the hilited line of fld2 being at the > > top. > > >>>> How do I get it to scroll just that little bit more so that it > aligns > > >>> with > > >>>> the hilited line as seen in fld1? > > >>>> > > >>>> > > >>>> Thank you. > > >>>> > > >>>> -- > > >>>> 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 > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode at lists.runrev.com > > >>> Please visit this url to subscribe, unsubscribe and manage your > > >>> subscription preferences: > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at lists.runrev.com > > >> Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 6 19:11:01 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 7 Mar 2017 00:11:01 +0000 Subject: ouch: the beginning of the end In-Reply-To: References: Message-ID: <43C413EC-7E37-4163-9F5D-FDDD32DA6BA9@iotecdigital.com> I can tell you that FDF files work on virtually every PDF viewer/editor for any platform. But the PDF has to be set up to "read" the FDF file when it opens, otherwise you need to create a button that asks for the file (using javascript) and then populates from whatever file the user selects. Originally, this was the ONLY way my app worked, before I started using Applescript and Javascript to fill under OS X. Also it should be noted that an FDF created on another platform is considered "untrusted" by Windows, and you have to give the OS permission to proceed, otherwise the auto-fill feature will not work. Bob S > On Mar 5, 2017, at 12:33 , Alejandro Tejada via use-livecode wrote: > > Using the free command line utility PDFTK, > I could fill a pdf with interactive fields using > just a text file formatted as a fdf document > (that you could generate with LiveCode). > Tested and works in Windows and Ubuntu Linux. > Could you test if this works on MacOSX? > > pdftk.exe C:\PDFwithForms.pdf fill_form C:\data.fdf output FilledPDF.pdf > flatten > > There are many samples of PDF and matching FDF files inside > these compressed folders from Adobe: > http://www.adobe.com/devnet/acrobat/fdftoolkit.html > > Al From jemirandav at gmail.com Mon Mar 6 20:57:47 2017 From: jemirandav at gmail.com (Javier Miranda V.) Date: Mon, 6 Mar 2017 21:57:47 -0400 Subject: Android SDK Message-ID: Hi friends, I installed the most current release of the Android SDK and all the packages starting form?Android 4.0.3 (API Level 15) package up to?7.1.1 (API Level 25). ?I am using a OS X Sierra, so the SDK was installed in?/Users/javiermiranda/Library/Android/sdk ? (I navigate to that directory and effectively I verify the SDK is there). ?The problem is that that folder is not recognized as a valid Android SDK Saludos,? Javier Miranda V. From capellan2000 at gmail.com Mon Mar 6 21:31:31 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 6 Mar 2017 22:31:31 -0400 Subject: ouch: the beginning of the end Message-ID: Hi Bob, on Tue Mar 7 2017, Bob Sneidar wrote: > the PDF has to be set up to "read" the FDF file when it opens No, after using "flatten" in PDFTK, the FDF content is embedded into the PDF file. For this reason, all interactive fields are not editable anymore. Does anyone try this command in MacOSX? I tested PDFTK in Windows and Ubuntu and this works fine: pdftk.exe C:\PDFwithForms.pdf fill_form C:\data.fdf output FilledPDF.pdf flatten There are many samples of PDF and matching FDF files inside these compressed folders from Adobe: http://www.adobe.com/devnet/acrobat/fdftoolkit.html By the way, PDFTK Pro version is only 4 dollars. Dr. Hawkins, Could you include a Pro license of PDFTK with each copy of your software? This would cover all your present and future uses of PDF in your own software. Al From richmondmathewson at gmail.com Tue Mar 7 06:44:56 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 7 Mar 2017 13:44:56 +0200 Subject: [ANN] Release 9.0.0 DP-5 In-Reply-To: <41d4e1e0-5363-598f-ce0a-eb3b93aaeda2@fourthworld.com> References: <41d4e1e0-5363-598f-ce0a-eb3b93aaeda2@fourthworld.com> Message-ID: <57e7c137-36a7-d8a9-ab9c-c21d3fc63d5a@gmail.com> One of the points that might be brought up at this point is that LiveCode in presented as a complete programming language/packet in itself; there is no indication given that users of LiveCode are expected to know other, lower-level languages too. I suspect that a very high proportion of people who use LiveCode, whether one of the 2 commercial offerings, or the free offering, do so just because they have either (like myself) done their level best to forget all the command-line languages of their youth, or don't know any and don't wish to learn any. Richmond. On 3/7/17 12:23 am, Richard Gaskin via use-livecode wrote: > Andre Garzia wrote: > > > The fact that these decisions are being taken, where the HQ appears > > to be focusing more and more on business licensees feels like I am > > being forced into such license. At this moment, I am starting to > > wonder if there is any reason to be indy at all. > > ...or Community. > > Finding the best mix of features for the the two proprietary licenses > and the open source edition is a challenge. > > I spent the last several days at the SoCal Linux Expo, and had good > talks with team members from NginX, MariaDB, Nextcloud, and Ubuntu. > > Those are among the strongest open source projects around, and all of > them keep the projects going by offering paid services and software > packages aimed at the enterprise audience. > > On the surface it would appear that what they're doing is similar to > what LiveCode is doing, and in some broad respects I suppose it is. > > But I believe there are also at least two key differences: > > - The for-fee-only offerings from those other companies are indeed > specialized for larger customers, and the core free (libre and > gratis) software is full-featured to the point of being best-of- > breed. > > - The communities surrounding those projects contribute a much larger > percentage of the core free software. > > With LiveCode, the company restricts a broader range of functionality > to the proprietary editions, but they're also paying for a much larger > percentage of programmer-hours going into the package. > > Personally, I believe a healthy long-term balance would be more on par > with those other projects, with more stuff shared across all editions > and having that become possible because more of it comes from the > community. > > The tricky part is how to get from here to there. > > Many of those projects are technologies that some of the world's > biggest companies rely on, and many of those companies have full-time > employees dedicated to contributing to those open source projects. At > Heroku, for example, they maintain two full-timers whose only job is > to submit pull requests for postgreSQL, and Google pays for a lot of > the development of Python. > > The LiveCode world does not yet have a Google or Heroku in our > community covering payroll for full-time engine developers. > > So the question at hand for all of us, company and community alike, is: > > What is the best balance of free and non-free offerings > that will not only grow the platform, but also keep the > ship running in order to pursue that growth? > > I don't have an easy answer on this. But I believe it is a very > important question. > > And it may be harder to answer for this project than for others, for a > great many reasons related to both the market the project serves and > the complexity of delivering rich GUI authoring for so many platforms. > > As just one comparison, my understanding is that the LiveCode code > base is at least 30% larger than the code base for NginX. Not only is > LC a bigger project by that measure, but also arguably in terms of > code complexity, because the touch-points for NGinX are limited to a > relatively small number of OS APIs for networking and file I/O, but > LiveCode needs those along with a vast number of broadly-varying GUI > messaging APIs on top of that. > > As I ponder this question, I recognize that while I'm not in a > position to cover full-time salaries for LiveCode contributors, I can > invest a certain percentage of my time each week to the project in > light of the many practical benefits it offers my company. > From toolbook at kestner.de Tue Mar 7 07:07:24 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 7 Mar 2017 13:07:24 +0100 Subject: Trouble playing videos with MS DirectShow LC 8 Message-ID: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> Hello, With LC 8.1.2 I changed the video standard in my programs from Quicktime to the new standard interface DirectShow on Windows. I recoded all videos to mp4 with Intel QSV H.264. On my developing W10 machine everything works fine in the IDE and standalone. Now after release it looks like my developing machine is "the only one" which can play the new videos in my new LiveCode program. On a W7, W8 and other W10 machine I get the error "could not create movie reference" when setting the filename of the player object. Actually the DirectShow standard should be available from W7 to W10 and when just double clicking the video, it can be played on all those other machines with the standard video player, so it doesn't seem to be an codec issue. On the other hand something from the environment must be different on my developing machine. I also tried to build a new standalone with LC 9.0 dp3, but testing the standalone it show the same issue. Has anybody any idea, where to start searching? What could be different on my developing machine as on all other machines? Are there any known system requirements for using DirectShow? (which I have set unconsciously on my machine) Thanks for any ideas Tiemo From bleiler at buffalo.edu Tue Mar 7 09:39:58 2017 From: bleiler at buffalo.edu (Bleiler, Timothy) Date: Tue, 7 Mar 2017 14:39:58 +0000 Subject: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> Message-ID: Make sure your file references to the movie are relative and not absolute. I?ve made that mistake once or twice. Tim Bleiler, Ph.D. Instructional Designer, HSIT University at Buffalo > On Mar 7, 2017, at 7:07 AM, Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > > > With LC 8.1.2 I changed the video standard in my programs from Quicktime to > the new standard interface DirectShow on Windows. I recoded all videos to > mp4 with Intel QSV H.264. > > On my developing W10 machine everything works fine in the IDE and > standalone. Now after release it looks like my developing machine is "the > only one" which can play the new videos in my new LiveCode program. > > On a W7, W8 and other W10 machine I get the error "could not create movie > reference" when setting the filename of the player object. > > Actually the DirectShow standard should be available from W7 to W10 and when > just double clicking the video, it can be played on all those other machines > with the standard video player, so it doesn't seem to be an codec issue. On > the other hand something from the environment must be different on my > developing machine. > > I also tried to build a new standalone with LC 9.0 dp3, but testing the > standalone it show the same issue. > > > > Has anybody any idea, where to start searching? > > What could be different on my developing machine as on all other machines? > > Are there any known system requirements for using DirectShow? (which I have > set unconsciously on my machine) > > > > Thanks for any ideas > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Tue Mar 7 10:19:47 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 7 Mar 2017 16:19:47 +0100 Subject: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> Message-ID: <00d701d29756$42dd32a0$c89797e0$@kestner.de> Hi Tim, choosing a video file via ask dialog and setting the filename of the player object to it sets an absolute path and that works on my machine fine. Thank you for that hint Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Bleiler, Timothy via use-livecode Gesendet: Dienstag, 7. M?rz 2017 15:40 An: How to use LiveCode Cc: Bleiler, Timothy Betreff: Re: Trouble playing videos with MS DirectShow LC 8 Make sure your file references to the movie are relative and not absolute. I?ve made that mistake once or twice. Tim Bleiler, Ph.D. Instructional Designer, HSIT University at Buffalo > On Mar 7, 2017, at 7:07 AM, Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > > > With LC 8.1.2 I changed the video standard in my programs from > Quicktime to the new standard interface DirectShow on Windows. I > recoded all videos to > mp4 with Intel QSV H.264. > > On my developing W10 machine everything works fine in the IDE and > standalone. Now after release it looks like my developing machine is > "the only one" which can play the new videos in my new LiveCode program. > > On a W7, W8 and other W10 machine I get the error "could not create > movie reference" when setting the filename of the player object. > > Actually the DirectShow standard should be available from W7 to W10 > and when just double clicking the video, it can be played on all those > other machines with the standard video player, so it doesn't seem to > be an codec issue. On the other hand something from the environment > must be different on my developing machine. > > I also tried to build a new standalone with LC 9.0 dp3, but testing > the standalone it show the same issue. > > > > Has anybody any idea, where to start searching? > > What could be different on my developing machine as on all other machines? > > Are there any known system requirements for using DirectShow? (which I > have set unconsciously on my machine) > > > > Thanks for any ideas > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Mar 7 10:28:48 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 7 Mar 2017 15:28:48 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> Message-ID: <007B1875-8817-4CFA-AC28-7D75B5C7C7B9@iotecdigital.com> Thanks Peter. But then how will I know programmatically if the password is correct or not? Bob S > On Mar 6, 2017, at 02:53 , Peter TB Brett via use-livecode wrote: > > > > On 03/03/2017 18:00, Bob Sneidar via use-livecode wrote: >> It looks like the encrypt command is already using this method if >> the "with salt" arguement is provided? At least the encrypted result >> starts with "salted" and at least part of the salt value. >> > > Hi Bob, > > The "encrypt" command provides symmetric cryptographic functions, i.e. > you can decrypt the result again to get the cleartext back. This is _not_ a desirable property for a password storage system; you should always use one-way (asymmetric) functions, such as a cryptographic hash. > > Peter > > -- > Dr Peter Brett From toolbook at kestner.de Tue Mar 7 10:28:48 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 7 Mar 2017 16:28:48 +0100 Subject: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> Message-ID: <00d801d29757$84dbec40$8e93c4c0$@kestner.de> Making some further tests, I discovered that there must be a relation to mp4 video files. I tested the same standalone with an old avi file and that worked, but not with some different mp4 files But it can't be something in general, because the mp4 file can be played fine with the same standalone on my W10 machine. So I am still searching for an idea, what could be different on my machine to "all" others. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB via use-livecode Gesendet: Dienstag, 7. M?rz 2017 13:07 An: LiveCode User Liste senden Cc: Tiemo Hollmann TB Betreff: Trouble playing videos with MS DirectShow LC 8 Hello, With LC 8.1.2 I changed the video standard in my programs from Quicktime to the new standard interface DirectShow on Windows. I recoded all videos to mp4 with Intel QSV H.264. On my developing W10 machine everything works fine in the IDE and standalone. Now after release it looks like my developing machine is "the only one" which can play the new videos in my new LiveCode program. On a W7, W8 and other W10 machine I get the error "could not create movie reference" when setting the filename of the player object. Actually the DirectShow standard should be available from W7 to W10 and when just double clicking the video, it can be played on all those other machines with the standard video player, so it doesn't seem to be an codec issue. On the other hand something from the environment must be different on my developing machine. I also tried to build a new standalone with LC 9.0 dp3, but testing the standalone it show the same issue. Has anybody any idea, where to start searching? What could be different on my developing machine as on all other machines? Are there any known system requirements for using DirectShow? (which I have set unconsciously on my machine) Thanks for any ideas Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Tue Mar 7 10:37:05 2017 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Tue, 7 Mar 2017 15:37:05 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <007B1875-8817-4CFA-AC28-7D75B5C7C7B9@iotecdigital.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> <007B1875-8817-4CFA-AC28-7D75B5C7C7B9@iotecdigital.com> Message-ID: You encrypt the trial password and compare the encrypted values. Bill William Prothero http://ed.earthednet.org > On Mar 7, 2017, at 3:28 PM, Bob Sneidar via use-livecode wrote: > > Thanks Peter. But then how will I know programmatically if the password is correct or not? > > Bob S > > >> On Mar 6, 2017, at 02:53 , Peter TB Brett via use-livecode wrote: >> >> >> >>> On 03/03/2017 18:00, Bob Sneidar via use-livecode wrote: >>> It looks like the encrypt command is already using this method if >>> the "with salt" arguement is provided? At least the encrypted result >>> starts with "salted" and at least part of the salt value. >>> >> >> Hi Bob, >> >> The "encrypt" command provides symmetric cryptographic functions, i.e. >> you can decrypt the result again to get the cleartext back. This is _not_ a desirable property for a password storage system; you should always use one-way (asymmetric) functions, such as a cryptographic hash. >> >> Peter >> >> -- >> Dr Peter Brett > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 7 10:46:18 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 7 Mar 2017 15:46:18 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <007B1875-8817-4CFA-AC28-7D75B5C7C7B9@iotecdigital.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> <007B1875-8817-4CFA-AC28-7D75B5C7C7B9@iotecdigital.com> Message-ID: NVM I think I see. I hash the user's password entry and compare the value to what is stored. But if the stored hash is an asymmetric one and cannot be decrypted, what is all the fuss about? Rainbow tables are all that is left, and you cannot create rainbow tables for every possible methodology. I'm wondering if this is much ado about nothing? No matter how a password is stored, it can always theoretically be compromised once someone gains access to the storage system. I get that having a different seed for each password makes it more difficult to be able to decrypt a captured hash in transit, but passwords MUST be stored somewhere, and if so, then encrypted, and if so, then never completely safely. Bob S > On Mar 7, 2017, at 07:28 , Bob Sneidar via use-livecode wrote: > >> Hi Bob, >> >> The "encrypt" command provides symmetric cryptographic functions, i.e. >> you can decrypt the result again to get the cleartext back. This is _not_ a desirable property for a password storage system; you should always use one-way (asymmetric) functions, such as a cryptographic hash. >> >> Peter >> >> -- >> Dr Peter Brett From bleiler at buffalo.edu Tue Mar 7 10:55:13 2017 From: bleiler at buffalo.edu (Bleiler, Timothy) Date: Tue, 7 Mar 2017 15:55:13 +0000 Subject: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <00d801d29757$84dbec40$8e93c4c0$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> Message-ID: I?m certainly no expert on video encoding but since you used the Intel QSV H.264 encoder I?m wondering if the Livecode implementation of DirectShow does not support that hardware based encoder. You might have better luck and broader compatibilty using something like the default encoder in Handbrake. Tim Bleiler On Mar 7, 2017, at 10:28 AM, Tiemo Hollmann TB via use-livecode > wrote: Making some further tests, I discovered that there must be a relation to mp4 video files. I tested the same standalone with an old avi file and that worked, but not with some different mp4 files But it can't be something in general, because the mp4 file can be played fine with the same standalone on my W10 machine. So I am still searching for an idea, what could be different on my machine to "all" others. Tiemo From jacque at hyperactivesw.com Tue Mar 7 11:00:32 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 07 Mar 2017 10:00:32 -0600 Subject: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <00d801d29757$84dbec40$8e93c4c0$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> Message-ID: <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Do the other machines have the mp4 codec installed? Most versions of Windows didn't ship with it, you had to install it separately. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 7, 2017 9:32:22 AM Tiemo Hollmann TB via use-livecode wrote: > Making some further tests, I discovered that there must be a relation to mp4 > video files. > I tested the same standalone with an old avi file and that worked, but not > with some different mp4 files > But it can't be something in general, because the mp4 file can be played > fine with the same standalone on my W10 machine. > So I am still searching for an idea, what could be different on my machine > to "all" others. > > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Tiemo Hollmann TB via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 13:07 > An: LiveCode User Liste senden > Cc: Tiemo Hollmann TB > Betreff: Trouble playing videos with MS DirectShow LC 8 > > Hello, > > > > With LC 8.1.2 I changed the video standard in my programs from Quicktime to > the new standard interface DirectShow on Windows. I recoded all videos to > mp4 with Intel QSV H.264. > > On my developing W10 machine everything works fine in the IDE and > standalone. Now after release it looks like my developing machine is "the > only one" which can play the new videos in my new LiveCode program. > > On a W7, W8 and other W10 machine I get the error "could not create movie > reference" when setting the filename of the player object. > > Actually the DirectShow standard should be available from W7 to W10 and when > just double clicking the video, it can be played on all those other machines > with the standard video player, so it doesn't seem to be an codec issue. On > the other hand something from the environment must be different on my > developing machine. > > I also tried to build a new standalone with LC 9.0 dp3, but testing the > standalone it show the same issue. > > > > Has anybody any idea, where to start searching? > > What could be different on my developing machine as on all other machines? > > Are there any known system requirements for using DirectShow? (which I have > set unconsciously on my machine) > > > > Thanks for any ideas > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peter.brett at livecode.com Tue Mar 7 11:04:58 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 7 Mar 2017 16:04:58 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <007B1875-8817-4CFA-AC28-7D75B5C7C7B9@iotecdigital.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> <007B1875-8817-4CFA-AC28-7D75B5C7C7B9@iotecdigital.com> Message-ID: <00f7c937-4932-b27c-fb58-b98b83e30f86@livecode.com> On 07/03/2017 15:28, Bob Sneidar via use-livecode wrote: > Thanks Peter. But then how will I know programmatically if the password is correct or not? Hi Bob, Here's a worked example of what I'm talking about. Peter --------------------------------------------------------- /* Compute a hash-based message authentication code using the SHA-1 hash. This is broken; it should correctly follow RFC 2104. */ private function hmacSha1 pKey, pMessage return sha1digest(pKey & sha1digest(pKey & pMessage)) end hmacSha1 /* Generate a 160-bit salt value suitable for use when storing a password */ private function generateSalt return randomBytes(20) end generateSalt /* Convert the specified cleartext password string to an secure string suitable for storage using the specified salt, which should be a base 64-encoded string. */ private function securePassword pPasswordString, pSaltData local tPasswordData put textEncode(pPasswordString, "UTF-8") into tPasswordData return base64Encode(pSaltData) & comma & \ base64Encode(hmacSha1(pSaltData, tPasswordData)) end securePassword /* Get the salt part of a secured password string */ private function getSecurePasswordSalt pSecurePassword return base64Decode(item 1 of pSecurePassword) end getSecurePasswordSalt /* Store a new password. Use this when a user creates a new account or changes their password for any reason */ function storePassword pPasswordString return securePassword(pPasswordString, generateSalt()) end storePassword /* Verify a password. Use this when a user tries to log in. Returns true if the password is correct and false otherwise. */ function verifyPassword pPasswordString, pSecurePassword local tSaltData, tTrialString put getSecurePasswordSalt(pSecurePassword) into tSaltData put securePassword(pPasswordString, tSaltData) into tTrialString return tTrialString is pSecurePassword end verifyPassword --------------------------------------------------------- private command _testAssert pDesc, pCondition if pCondition then put "ok -" && pDesc & return after msg else put "not ok -" && pDesc & return after msg end if end _testAssert command _testPasswordDemo local tSecured put storePassword("correct horse battery staple") into tSecured put "# Stored:" && tSecured & return into msg _testAssert "bad password", \ not verifyPassword("hunter2", tSecured) _testAssert "good password", \ verifyPassword("correct horse battery staple", tSecured) end _testPasswordDemo From toolbook at kestner.de Tue Mar 7 11:46:21 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 7 Mar 2017 17:46:21 +0100 Subject: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> Message-ID: <00e101d29762$5ac7d300$10577900$@kestner.de> Hi Tim, hmm, I didn't knew, that this codec is a hardware based codec. Do you think it definitely is tied to special intel hardware and won't run on every hardware and can't be added by a software codec? Btw. It runs also fine on my iMac. That would be really bad for me, because it was the only codec my Sorenson squeeze offered me for H.264, where I can step frame by frame thru the video, what is a must for my app. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Bleiler, Timothy via use-livecode Gesendet: Dienstag, 7. M?rz 2017 16:55 An: How to use LiveCode Cc: Bleiler, Timothy Betreff: Re: Trouble playing videos with MS DirectShow LC 8 I?m certainly no expert on video encoding but since you used the Intel QSV H.264 encoder I?m wondering if the Livecode implementation of DirectShow does not support that hardware based encoder. You might have better luck and broader compatibilty using something like the default encoder in Handbrake. Tim Bleiler On Mar 7, 2017, at 10:28 AM, Tiemo Hollmann TB via use-livecode > wrote: Making some further tests, I discovered that there must be a relation to mp4 video files. I tested the same standalone with an old avi file and that worked, but not with some different mp4 files But it can't be something in general, because the mp4 file can be played fine with the same standalone on my W10 machine. So I am still searching for an idea, what could be different on my machine to "all" others. Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Tue Mar 7 11:48:52 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 7 Mar 2017 17:48:52 +0100 Subject: AW: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <00e201d29762$b42c7f90$1c857eb0$@kestner.de> Hi Jacque, that's what I also already thought of. But I haven't found yet, how/where I could check for it. I have an old nice tool, called gspot, which usually tells me everything about any video, but it doesn't work with theses H.264 mp4's. I was on the intel site and downloaded a media sdk, installed it on one of those not working machines, but without success. But actually I don't even know, if that codec is part of that media sdk, they don't describe the detailed content. So it was a shot into the dark and I didn't found yet a dedicated download for that codec. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode Gesendet: Dienstag, 7. M?rz 2017 17:01 An: How to use LiveCode Cc: J. Landman Gay Betreff: Re: AW: Trouble playing videos with MS DirectShow LC 8 Do the other machines have the mp4 codec installed? Most versions of Windows didn't ship with it, you had to install it separately. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 7, 2017 9:32:22 AM Tiemo Hollmann TB via use-livecode wrote: > Making some further tests, I discovered that there must be a relation > to mp4 video files. > I tested the same standalone with an old avi file and that worked, but > not with some different mp4 files But it can't be something in > general, because the mp4 file can be played fine with the same > standalone on my W10 machine. > So I am still searching for an idea, what could be different on my > machine to "all" others. > > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag von Tiemo Hollmann TB via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 13:07 > An: LiveCode User Liste senden > Cc: Tiemo Hollmann TB > Betreff: Trouble playing videos with MS DirectShow LC 8 > > Hello, > > > > With LC 8.1.2 I changed the video standard in my programs from > Quicktime to the new standard interface DirectShow on Windows. I > recoded all videos to > mp4 with Intel QSV H.264. > > On my developing W10 machine everything works fine in the IDE and > standalone. Now after release it looks like my developing machine is > "the only one" which can play the new videos in my new LiveCode program. > > On a W7, W8 and other W10 machine I get the error "could not create > movie reference" when setting the filename of the player object. > > Actually the DirectShow standard should be available from W7 to W10 > and when just double clicking the video, it can be played on all those > other machines with the standard video player, so it doesn't seem to > be an codec issue. On the other hand something from the environment > must be different on my developing machine. > > I also tried to build a new standalone with LC 9.0 dp3, but testing > the standalone it show the same issue. > > > > Has anybody any idea, where to start searching? > > What could be different on my developing machine as on all other machines? > > Are there any known system requirements for using DirectShow? (which I > have set unconsciously on my machine) > > > > Thanks for any ideas > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Mar 7 11:51:37 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 7 Mar 2017 16:51:37 +0000 Subject: SHA1 cracked .... What are the chances this will be addressed in LC? In-Reply-To: <00f7c937-4932-b27c-fb58-b98b83e30f86@livecode.com> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> <007B1875-8817-4CFA-AC28-7D75B5C7C7B9@iotecdigital.com> <00f7c937-4932-b27c-fb58-b98b83e30f86@livecode.com> Message-ID: <086DD62D-B418-424E-8CE0-838CD8BFE792@iotecdigital.com> Thanks Peter. I see some things in there that help me understand better what the salting does. I will probably incorporate this in my app fairly soon. I store passwords for various things, and want to make sure they are as secure as possible. Once I get it working I think I will put up a sample stack using these algo's. Bob S > On Mar 7, 2017, at 08:04 , Peter TB Brett via use-livecode wrote: > > On 07/03/2017 15:28, Bob Sneidar via use-livecode wrote: >> Thanks Peter. But then how will I know programmatically if the password is correct or not? > > Hi Bob, > > Here's a worked example of what I'm talking about. > > Peter From toolbook at kestner.de Tue Mar 7 11:51:20 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 7 Mar 2017 17:51:20 +0100 Subject: AW: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <00e201d29762$b42c7f90$1c857eb0$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> Message-ID: <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> ... and as I mentioned, the videos play fine on all machines outside of LiveCode in the standard platform videoPlayer, what says to me that it can't be a codec issue - as far as I see Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB via use-livecode Gesendet: Dienstag, 7. M?rz 2017 17:49 An: 'How to use LiveCode' Cc: Tiemo Hollmann TB Betreff: AW: AW: Trouble playing videos with MS DirectShow LC 8 Hi Jacque, that's what I also already thought of. But I haven't found yet, how/where I could check for it. I have an old nice tool, called gspot, which usually tells me everything about any video, but it doesn't work with theses H.264 mp4's. I was on the intel site and downloaded a media sdk, installed it on one of those not working machines, but without success. But actually I don't even know, if that codec is part of that media sdk, they don't describe the detailed content. So it was a shot into the dark and I didn't found yet a dedicated download for that codec. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode Gesendet: Dienstag, 7. M?rz 2017 17:01 An: How to use LiveCode Cc: J. Landman Gay Betreff: Re: AW: Trouble playing videos with MS DirectShow LC 8 Do the other machines have the mp4 codec installed? Most versions of Windows didn't ship with it, you had to install it separately. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 7, 2017 9:32:22 AM Tiemo Hollmann TB via use-livecode wrote: > Making some further tests, I discovered that there must be a relation > to mp4 video files. > I tested the same standalone with an old avi file and that worked, but > not with some different mp4 files But it can't be something in > general, because the mp4 file can be played fine with the same > standalone on my W10 machine. > So I am still searching for an idea, what could be different on my > machine to "all" others. > > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag von Tiemo Hollmann TB via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 13:07 > An: LiveCode User Liste senden > Cc: Tiemo Hollmann TB > Betreff: Trouble playing videos with MS DirectShow LC 8 > > Hello, > > > > With LC 8.1.2 I changed the video standard in my programs from > Quicktime to the new standard interface DirectShow on Windows. I > recoded all videos to > mp4 with Intel QSV H.264. > > On my developing W10 machine everything works fine in the IDE and > standalone. Now after release it looks like my developing machine is > "the only one" which can play the new videos in my new LiveCode program. > > On a W7, W8 and other W10 machine I get the error "could not create > movie reference" when setting the filename of the player object. > > Actually the DirectShow standard should be available from W7 to W10 > and when just double clicking the video, it can be played on all those > other machines with the standard video player, so it doesn't seem to > be an codec issue. On the other hand something from the environment > must be different on my developing machine. > > I also tried to build a new standalone with LC 9.0 dp3, but testing > the standalone it show the same issue. > > > > Has anybody any idea, where to start searching? > > What could be different on my developing machine as on all other machines? > > Are there any known system requirements for using DirectShow? (which I > have set unconsciously on my machine) > > > > Thanks for any ideas > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Tue Mar 7 12:21:45 2017 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 7 Mar 2017 09:21:45 -0800 Subject: AW: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> Message-ID: <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> If you pick the video file with a file dialog and set the filename of the player to "it", will it play then? If so, maybe you're having a path issue. Phil Davis On 3/7/17 8:51 AM, Tiemo Hollmann TB via use-livecode wrote: > ... and as I mentioned, the videos play fine on all machines outside of LiveCode in the standard platform videoPlayer, what says to me that it can't be a codec issue - as far as I see > > Tiemo > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 17:49 > An: 'How to use LiveCode' > Cc: Tiemo Hollmann TB > Betreff: AW: AW: Trouble playing videos with MS DirectShow LC 8 > > Hi Jacque, > > that's what I also already thought of. But I haven't found yet, how/where I could check for it. I have an old nice tool, called gspot, which usually tells me everything about any video, but it doesn't work with theses H.264 mp4's. I was on the intel site and downloaded a media sdk, installed it on one of those not working machines, but without success. But actually I don't even know, if that codec is part of that media sdk, they don't describe the detailed content. So it was a shot into the dark and I didn't found yet a dedicated download for that codec. > > Tiemo > > > > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 17:01 > An: How to use LiveCode > Cc: J. Landman Gay > Betreff: Re: AW: Trouble playing videos with MS DirectShow LC 8 > > Do the other machines have the mp4 codec installed? Most versions of Windows didn't ship with it, you had to install it separately. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On March 7, 2017 9:32:22 AM Tiemo Hollmann TB via use-livecode wrote: > >> Making some further tests, I discovered that there must be a relation >> to mp4 video files. >> I tested the same standalone with an old avi file and that worked, but >> not with some different mp4 files But it can't be something in >> general, because the mp4 file can be played fine with the same >> standalone on my W10 machine. >> So I am still searching for an idea, what could be different on my >> machine to "all" others. >> >> Tiemo >> >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag von Tiemo Hollmann TB via use-livecode >> Gesendet: Dienstag, 7. M?rz 2017 13:07 >> An: LiveCode User Liste senden >> Cc: Tiemo Hollmann TB >> Betreff: Trouble playing videos with MS DirectShow LC 8 >> >> Hello, >> >> >> >> With LC 8.1.2 I changed the video standard in my programs from >> Quicktime to the new standard interface DirectShow on Windows. I >> recoded all videos to >> mp4 with Intel QSV H.264. >> >> On my developing W10 machine everything works fine in the IDE and >> standalone. Now after release it looks like my developing machine is >> "the only one" which can play the new videos in my new LiveCode program. >> >> On a W7, W8 and other W10 machine I get the error "could not create >> movie reference" when setting the filename of the player object. >> >> Actually the DirectShow standard should be available from W7 to W10 >> and when just double clicking the video, it can be played on all those >> other machines with the standard video player, so it doesn't seem to >> be an codec issue. On the other hand something from the environment >> must be different on my developing machine. >> >> I also tried to build a new standalone with LC 9.0 dp3, but testing >> the standalone it show the same issue. >> >> >> >> Has anybody any idea, where to start searching? >> >> What could be different on my developing machine as on all other machines? >> >> Are there any known system requirements for using DirectShow? (which I >> have set unconsciously on my machine) >> >> >> >> Thanks for any ideas >> >> Tiemo >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 toolbook at kestner.de Tue Mar 7 12:47:25 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 7 Mar 2017 18:47:25 +0100 Subject: AW: AW: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> Message-ID: <000001d2976a$e29be200$a7d3a600$@kestner.de> Yes, it plays fine on my development machine by selecting it via a dialog, but not on the other machines. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Phil Davis via use-livecode Gesendet: Dienstag, 7. M?rz 2017 18:22 An: How to use LiveCode Cc: Phil Davis Betreff: Re: AW: AW: Trouble playing videos with MS DirectShow LC 8 If you pick the video file with a file dialog and set the filename of the player to "it", will it play then? If so, maybe you're having a path issue. Phil Davis On 3/7/17 8:51 AM, Tiemo Hollmann TB via use-livecode wrote: > ... and as I mentioned, the videos play fine on all machines outside > of LiveCode in the standard platform videoPlayer, what says to me that > it can't be a codec issue - as far as I see > > Tiemo > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag von Tiemo Hollmann TB via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 17:49 > An: 'How to use LiveCode' > Cc: Tiemo Hollmann TB > Betreff: AW: AW: Trouble playing videos with MS DirectShow LC 8 > > Hi Jacque, > > that's what I also already thought of. But I haven't found yet, how/where I could check for it. I have an old nice tool, called gspot, which usually tells me everything about any video, but it doesn't work with theses H.264 mp4's. I was on the intel site and downloaded a media sdk, installed it on one of those not working machines, but without success. But actually I don't even know, if that codec is part of that media sdk, they don't describe the detailed content. So it was a shot into the dark and I didn't found yet a dedicated download for that codec. > > Tiemo > > > > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag von J. Landman Gay via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 17:01 > An: How to use LiveCode > Cc: J. Landman Gay > Betreff: Re: AW: Trouble playing videos with MS DirectShow LC 8 > > Do the other machines have the mp4 codec installed? Most versions of Windows didn't ship with it, you had to install it separately. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On March 7, 2017 9:32:22 AM Tiemo Hollmann TB via use-livecode wrote: > >> Making some further tests, I discovered that there must be a relation >> to mp4 video files. >> I tested the same standalone with an old avi file and that worked, >> but not with some different mp4 files But it can't be something in >> general, because the mp4 file can be played fine with the same >> standalone on my W10 machine. >> So I am still searching for an idea, what could be different on my >> machine to "all" others. >> >> Tiemo >> >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag von Tiemo Hollmann TB via use-livecode >> Gesendet: Dienstag, 7. M?rz 2017 13:07 >> An: LiveCode User Liste senden >> Cc: Tiemo Hollmann TB >> Betreff: Trouble playing videos with MS DirectShow LC 8 >> >> Hello, >> >> >> >> With LC 8.1.2 I changed the video standard in my programs from >> Quicktime to the new standard interface DirectShow on Windows. I >> recoded all videos to >> mp4 with Intel QSV H.264. >> >> On my developing W10 machine everything works fine in the IDE and >> standalone. Now after release it looks like my developing machine is >> "the only one" which can play the new videos in my new LiveCode program. >> >> On a W7, W8 and other W10 machine I get the error "could not create >> movie reference" when setting the filename of the player object. >> >> Actually the DirectShow standard should be available from W7 to W10 >> and when just double clicking the video, it can be played on all >> those other machines with the standard video player, so it doesn't >> seem to be an codec issue. On the other hand something from the >> environment must be different on my developing machine. >> >> I also tried to build a new standalone with LC 9.0 dp3, but testing >> the standalone it show the same issue. >> >> >> >> Has anybody any idea, where to start searching? >> >> What could be different on my developing machine as on all other machines? >> >> Are there any known system requirements for using DirectShow? (which >> I have set unconsciously on my machine) >> >> >> >> Thanks for any ideas >> >> Tiemo >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 revdev at pdslabs.net Tue Mar 7 12:57:47 2017 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 7 Mar 2017 09:57:47 -0800 Subject: AW: AW: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <000001d2976a$e29be200$a7d3a600$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> Message-ID: Is it possible there is some kind of permissions issue on the other machines? (Shooting in the dark here - I'm not up on Windows permissions but maybe you are.) Phil On 3/7/17 9:47 AM, Tiemo Hollmann TB via use-livecode wrote: > Yes, it plays fine on my development machine by selecting it via a dialog, but not on the other machines. > > Tiemo > > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Phil Davis via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 18:22 > An: How to use LiveCode > Cc: Phil Davis > Betreff: Re: AW: AW: Trouble playing videos with MS DirectShow LC 8 > > If you pick the video file with a file dialog and set the filename of the player to "it", will it play then? If so, maybe you're having a path issue. > > Phil Davis > > > On 3/7/17 8:51 AM, Tiemo Hollmann TB via use-livecode wrote: >> ... and as I mentioned, the videos play fine on all machines outside >> of LiveCode in the standard platform videoPlayer, what says to me that >> it can't be a codec issue - as far as I see >> >> Tiemo >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag von Tiemo Hollmann TB via use-livecode >> Gesendet: Dienstag, 7. M?rz 2017 17:49 >> An: 'How to use LiveCode' >> Cc: Tiemo Hollmann TB >> Betreff: AW: AW: Trouble playing videos with MS DirectShow LC 8 >> >> Hi Jacque, >> >> that's what I also already thought of. But I haven't found yet, how/where I could check for it. I have an old nice tool, called gspot, which usually tells me everything about any video, but it doesn't work with theses H.264 mp4's. I was on the intel site and downloaded a media sdk, installed it on one of those not working machines, but without success. But actually I don't even know, if that codec is part of that media sdk, they don't describe the detailed content. So it was a shot into the dark and I didn't found yet a dedicated download for that codec. >> >> Tiemo >> >> >> >> >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag von J. Landman Gay via use-livecode >> Gesendet: Dienstag, 7. M?rz 2017 17:01 >> An: How to use LiveCode >> Cc: J. Landman Gay >> Betreff: Re: AW: Trouble playing videos with MS DirectShow LC 8 >> >> Do the other machines have the mp4 codec installed? Most versions of Windows didn't ship with it, you had to install it separately. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On March 7, 2017 9:32:22 AM Tiemo Hollmann TB via use-livecode wrote: >> >>> Making some further tests, I discovered that there must be a relation >>> to mp4 video files. >>> I tested the same standalone with an old avi file and that worked, >>> but not with some different mp4 files But it can't be something in >>> general, because the mp4 file can be played fine with the same >>> standalone on my W10 machine. >>> So I am still searching for an idea, what could be different on my >>> machine to "all" others. >>> >>> Tiemo >>> >>> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >>> Auftrag von Tiemo Hollmann TB via use-livecode >>> Gesendet: Dienstag, 7. M?rz 2017 13:07 >>> An: LiveCode User Liste senden >>> Cc: Tiemo Hollmann TB >>> Betreff: Trouble playing videos with MS DirectShow LC 8 >>> >>> Hello, >>> >>> >>> >>> With LC 8.1.2 I changed the video standard in my programs from >>> Quicktime to the new standard interface DirectShow on Windows. I >>> recoded all videos to >>> mp4 with Intel QSV H.264. >>> >>> On my developing W10 machine everything works fine in the IDE and >>> standalone. Now after release it looks like my developing machine is >>> "the only one" which can play the new videos in my new LiveCode program. >>> >>> On a W7, W8 and other W10 machine I get the error "could not create >>> movie reference" when setting the filename of the player object. >>> >>> Actually the DirectShow standard should be available from W7 to W10 >>> and when just double clicking the video, it can be played on all >>> those other machines with the standard video player, so it doesn't >>> seem to be an codec issue. On the other hand something from the >>> environment must be different on my developing machine. >>> >>> I also tried to build a new standalone with LC 9.0 dp3, but testing >>> the standalone it show the same issue. >>> >>> >>> >>> Has anybody any idea, where to start searching? >>> >>> What could be different on my developing machine as on all other machines? >>> >>> Are there any known system requirements for using DirectShow? (which >>> I have set unconsciously on my machine) >>> >>> >>> >>> Thanks for any ideas >>> >>> Tiemo >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > -- > Phil Davis > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis From klaus at major-k.de Tue Mar 7 13:24:22 2017 From: klaus at major-k.de (Klaus major-k) Date: Tue, 7 Mar 2017 19:24:22 +0100 Subject: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> Message-ID: <471D5310-2CE1-46A4-A462-49EF4BC51F7F@major-k.de> Hi Tiemo, just made a little test on my "stock" Win10 installation (Parallels on my Mac). WindowsMediaPlayer plays any MP4 fine, but nothing appears in the player of Livecode!? So this is definitively a LC issue! Then I downloaded and installed the latest LAVFilter codec package: Et voila, I can play these MP4, which did not play before, in LC!? Does not make any sense actually!? > On 3/7/17 9:47 AM, Tiemo Hollmann TB via use-livecode wrote: >> Yes, it plays fine on my development machine by selecting it via a dialog, but not on the other machines. >> >> Tiemo Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Tue Mar 7 13:13:32 2017 From: klaus at major-k.de (Klaus major-k) Date: Tue, 7 Mar 2017 19:13:32 +0100 Subject: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> Message-ID: <524A8D7B-2FA6-4DFF-853C-2CC33447A176@major-k.de> Hi Tiemo, just made a little test on my "stock" Win10 installation (Parallels on my Mac). WindowsMediaPlayer plays any MP4 fine, but nothing appears in the player of Livecode!? So this is definitively a LC issue! Then I downloaded and installed the latest LAVFilter codec package: Et voila, I can play these MP4, which did not play before, in LC!? Does not make any sense actually!? > On 3/7/17 9:47 AM, Tiemo Hollmann TB via use-livecode wrote: >> Yes, it plays fine on my development machine by selecting it via a dialog, but not on the other machines. >> >> Tiemo Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From klaus at major-k.de Tue Mar 7 13:34:35 2017 From: klaus at major-k.de (Klaus major-k) Date: Tue, 7 Mar 2017 19:34:35 +0100 Subject: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <471D5310-2CE1-46A4-A462-49EF4BC51F7F@major-k.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> <471D5310-2CE1-46A4-A462-49EF4BC51F7F@major-k.de> Message-ID: <4BFCFA2A-60E3-4061-96A5-15A5EF8C2D8E@major-k.de> Additional info: All my MP4s are created with Handbrake with the open source x264 (H.264) codec and run even fine out of the box on my big LG flatscreen (driven by WebOS)! > Am 07.03.2017 um 19:24 schrieb Klaus major-k via use-livecode : > > Hi Tiemo, > > just made a little test on my "stock" Win10 installation (Parallels on my Mac). > > WindowsMediaPlayer plays any MP4 fine, but nothing appears in the player of Livecode!? > So this is definitively a LC issue! > > Then I downloaded and installed the latest LAVFilter codec package: > > Et voila, I can play these MP4, which did not play before, in LC!? > Does not make any sense actually!? > >> On 3/7/17 9:47 AM, Tiemo Hollmann TB via use-livecode wrote: >>> Yes, it plays fine on my development machine by selecting it via a dialog, but not on the other machines. >>> >>> Tiemo Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ambassador at fourthworld.com Tue Mar 7 14:31:53 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 7 Mar 2017 11:31:53 -0800 Subject: [ANN] Release 9.0.0 DP-5 In-Reply-To: <57e7c137-36a7-d8a9-ab9c-c21d3fc63d5a@gmail.com> References: <57e7c137-36a7-d8a9-ab9c-c21d3fc63d5a@gmail.com> Message-ID: <4505135e-8f99-3323-f8f5-9379d5ba238a@fourthworld.com> Richmond Mathewson wrote: > One of the points that might be brought up at this point is that > LiveCode in presented as a complete programming language/packet > in itself; there is no indication given that users of LiveCode > are expected to know other, lower-level languages too. > > I suspect that a very high proportion of people who use LiveCode, > whether one of the 2 commercial offerings, or the free offering, > do so just because they have either (like myself) done their level > best to forget all the command-line languages of their youth, or > don't know any and don't wish to learn any. With engine code, much of LC's community - including me - is in the same place as those using other scripting engines: as scripters, relatively few among us have the C chops to contribute to that part of the project. But with LiveCode we have options beyond the engine itself. As you noted, it's more than just a scripting engine, it's a complete IDE, and with LiveCode everything in the IDE is written in LiveCode. Those in a position to contribute fixes and enhancements can search the bug DB for items involving the IDE. And to make that even easier Peter Brett provides a shortlist in each weekly community newsletter, grouped by difficulty - here's the most recent: Help needed! Want to get involved in the LiveCode open source project but don?t know where to start? Try one of these: - (Easy) Update & complete documentation for "the processor" - (Easy) selectionChanged does not appear in the player object page of the dictionary - (Easy) Fix format of "mobileControlDo" dictionary entries - (Medium) Add info on manipulating field contents to the User Guide - (Medium) Make guide outlines in the Dictionary expand/collapse with repeated clicks - (Medium) Reduce whitespace in Dictionary - (Hard) Allow Windows line endings in script-only stacks - (Hard) Create a LiveCode Community build for Raspberry Pi -- Richard Gaskin LiveCode Community Laison richard at livecode.org From revolution at derbrill.de Tue Mar 7 18:56:59 2017 From: revolution at derbrill.de (Malte Brill) Date: Wed, 8 Mar 2017 00:56:59 +0100 Subject: [Long] Moving a REST request from Desktop to Server In-Reply-To: References: Message-ID: <57C8F00D-1980-4785-AC95-B38F1A18D8BD@derbrill.de> Hi all, I am trying to move a request I do from a desktop app to a liveCode server script and am facing the problem that some of the stuff I use (most of it libURL stuff) is not available on the server. Now I wonder how I could translate it? Scenario is the following: Problem is libURLLastRHHeaders() is unavailable on server and can not easiely be copied from libURL Anyone got an idea? local sCookieHeader on mouseUp local tURL,tUser,tPassWord,tCookie,tSubmitId,tsubmit,tJson,tJsonArray local test try set the httpHeaders to empty put ?aUser" into tUser put ?aPassword" into tPassWord put "264812" into tSubmitID put "Log+in" into tSubmit get libURLFormData("userName", tUser,"password", tPassword,"submit",tSubmit,"submitID",tSubmitId) ? not available on Server, but can be copied from libURL post it to url "http://test.com/login.php" _storeCookies libURLLastRHHeaders() ? needed to authenticate. libURLLastRHHeaders unavailable set the httpHeaders to sCookieHeader put fld "URL" into tURL put URL tURL into tJson catch theErr put theErr end try end mouseUp ## Parse header returned from a server and create a cookie header that ## can be sent back: Cookie: cookie1;cookie2;cookie3;... private command _StoreCookies pHeader local theCharNo,theCookieLine,theLineNo,theOffset put empty into sCookieHeader put 0 into theOffset repeat forever put lineoffset("Set-Cookie:", pHeader, theOffset) into theLineNo if theLineNo > 0 then add theOffset to theLineNo put line theLineNo of pHeader into theCookieLine delete word 1 of theCookieLine ## Set-Cookie: put offset(";", theCookieLine) into theCharNo if theCharNo > 0 then delete char theCharNo to -1 of theCookieLine end if put theCookieLine & ";" after sCookieHeader put theLineNo into theOffset else exit repeat end if end repeat if the last char of sCookieHeader is ";" then delete the last char of sCookieHeader end if if sCookieHeader is not empty then put "Cookie: " before sCookieHeader end if return empty end _StoreCookies From matthias_livecode_150811 at m-r-d.de Tue Mar 7 19:09:38 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 8 Mar 2017 01:09:38 +0100 Subject: should i report it as a bug when a library is not included into a standalone when "search for required inclusions" is selected Message-ID: Hi, maybe a dumb question, but should i report it as a bug when a library is not automatically included into a standalone when "search for required inclusions" is selected in the standalone settings? Regards, Matthias From bobsneidar at iotecdigital.com Tue Mar 7 19:23:48 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 8 Mar 2017 00:23:48 +0000 Subject: should i report it as a bug when a library is not included into a standalone when "search for required inclusions" is selected In-Reply-To: References: Message-ID: <88FCFEC2-6652-4EEB-A6C0-45AF539C4D09@iotecdigital.com> If there is nothing unusual in how you start using the library, like in a do command or something, I think so. Bob S > On Mar 7, 2017, at 16:09 , Matthias Rebbe via use-livecode wrote: > > Hi, > > maybe a dumb question, but should i report it as a bug when a library is not automatically included into a standalone when "search for required inclusions" is selected in the standalone settings? > > Regards, > Matthias From ambassador at fourthworld.com Tue Mar 7 19:28:11 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 7 Mar 2017 16:28:11 -0800 Subject: [Long] Moving a REST request from Desktop to Server In-Reply-To: <57C8F00D-1980-4785-AC95-B38F1A18D8BD@derbrill.de> References: <57C8F00D-1980-4785-AC95-B38F1A18D8BD@derbrill.de> Message-ID: Malte Brill wrote: > I am trying to move a request I do from a desktop app to a liveCode > server script and am facing the problem that some of the stuff I use > (most of it libURL stuff) is not available on the server. Now I > wonder how I could translate it? Have you considered running a standalone as your CGI? Standalones can be run facelessly with a -ui flag, and while they require a one-time cost to set up a library to read stdin and parse the request and env vars, once you're set up you get something LiveCode Server can't offer: complete compatibility with the LiveCode Script desktop syntax. LC Server is great for many things, but since it doesn't work like LC on the desktop I don't use it for anything beyond testing. I need to debug, and by not using the Server engine I can run my scripts right in the IDE. Last week I was going to put together some notes on this to make using LC standalones as CGIs easier, but as luck would have it I couldn't get either Server or a standalone running as a CGI on either of my shared hosting accounts, for reasons that appear to be related to the RAM requirements from font loading: http://quality.livecode.com/show_bug.cgi?id=14115 I have a workaround for that (thanks to some clever assist from Peter Brett and Mark Waddingham), but it's kinda funky and non-obvious to set up, so while it might work okay for me once in a while it's not the sort of thing I want to tell other people is reflective of how we do things in the LC world. We are, after all, about simplicity, or at least strive for it. But if you're on a VPS (about half our users are*) perhaps we can continue this discussion and explore simple means of using standalones as CGIs. It really is a much simpler overall workflow once you get it going. * I ran this survey on the LC forums - if you haven't voted please chime in on how you use LC on servers: POLL: LiveCode Server deployment http://forums.livecode.com/viewtopic.php?f=15&t=26772 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Tue Mar 7 20:36:15 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 7 Mar 2017 20:36:15 -0500 Subject: breakpoints being ignored Message-ID: Explain this one: 8.1.3 create a stack put a button on it add some script click in the margin to add a breakpoint - it shows grey with red border run the script breakpoint doesn't activate Add a "breakpoint" line as the first line in the script execute again breakpoint still doesn't fire. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dochawk at gmail.com Tue Mar 7 20:56:21 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 7 Mar 2017 17:56:21 -0800 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: On Tue, Mar 7, 2017 at 5:36 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > breakpoint still doesn't fire. This is why I call them "Pirate Code Dots" (pad). The IDE sees them as merely advisory . . . And I'm again seeing the behavior that a red dot in a script that hasn't yet hit a breakpoint is often ignored. Or, with a break, a dialog, and another break, the break after the dialog is ignored. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From MikeKerner at roadrunner.com Tue Mar 7 21:12:44 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 7 Mar 2017 21:12:44 -0500 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: It's ignoring the "breakpoint" text, too, not just the dots. Anyway, I trashed my preferences and it seems to be working, now. On Tue, Mar 7, 2017 at 8:56 PM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Tue, Mar 7, 2017 at 5:36 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > breakpoint still doesn't fire. > > > This is why I call them "Pirate Code Dots" (pad). > > The IDE sees them as merely advisory . . . > > And I'm again seeing the behavior that a red dot in a script that hasn't > yet hit a breakpoint is often ignored. > > Or, with a break, a dialog, and another break, the break after the dialog > is ignored. > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dochawk at gmail.com Tue Mar 7 21:24:01 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 7 Mar 2017 18:24:01 -0800 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: On Tue, Mar 7, 2017 at 6:12 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > It's ignoring the "breakpoint" text, too, not just the dots. > I see that, but less frequently. "Send in . . ." seems to be related to that. > > Anyway, I trashed my preferences and it seems to be working, now. > Also, removing all of the red dots in a stack from time to time seems to help. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ludovic.thebault at laposte.net Wed Mar 8 02:01:53 2017 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Wed, 8 Mar 2017 08:01:53 +0100 Subject: Why since LV 8.1 the GPS acquisition is more longer ? Message-ID: <04B59163-B7DD-431E-A714-518F4FE79B46@laposte.net> Hello, Why since Livecode 8.1, GPS acquisition is more longer than Livecode < 8 on mobile ? On the same place, my mobile get coordinates within few seconds with the app compiled with LV < 8.1 but get coordinates after more than 15 seconds (more than one cycle on my script) if the app is compiled with LV > 8.1 Any ideas ? Thanks Here my script : ################################ on opencard : if the environment is "mobile" and mobileCanTrackLocation() is "true ? then if "iphone" is in the platform then get mobileLocationAuthorizationStatus() if "denied" is in it or "restricted" is in it then ... end if mobileStartTrackingSensor "location" wait 10 milliseconds with messages put getcoord() into old ? coordinates ? mobileStopTrackingSensor ? location ? end if end opencard ################################ on locationChanged pLatitude, pLongitude, pAltitude set the coordonnees of this stack to pLatitude & tab & pLongitude & tab & pAltitude end locationChanged ################################ function getCoord get the coordonnees of this stack put mobileCurrentLocation() into tLocation if tLocation is an array and tLocation["latitude"] <> "" and tLocation["longitude"] <> "" then return tlocation else if the coordonnees of this stack <> it then return the coordonnees of this stack else put the seconds into timeout repeat forever if the seconds - timeout > 15 then answer ? Is too long, Retry ? ? with ? Yes ? or ? No" if it is ? No ? then mobileStopTrackingSensor ? location" exit repeat else mobileStopTrackingSensor ? location ? wait 200 milliseconds with messages mobileStartTrackingSensor "location" put the seconds into timeout ### new cycle end if put mobileCurrentLocation() into tLocation if tLocation is an array and tLocation["latitude"] <> "" and tLocation["longitude"] <> "" then exit repeat else put mobileSensorReading("location",true) into tlocation if tLocation is an array and tLocation["latitude"] <> "" and tLocation["longitude"] <> " ? then exit repeat end if end repeat if tLocation is an array and tLocation["latitude"] <> "" and tLocation["longitude"] <> " ? then return location else return the coordonnees of this stack ### old coordinates end if end if end getCoord From toolbook at kestner.de Wed Mar 8 03:07:05 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 8 Mar 2017 09:07:05 +0100 Subject: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <524A8D7B-2FA6-4DFF-853C-2CC33447A176@major-k.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> <524A8D7B-2FA6-4DFF-853C-2CC33447A176@major-k.de> Message-ID: <002901d297e2$fa2bc020$ee834060$@kestner.de> Hey Klaus, you saved my YEAR! As you mentioned "LAVFilters", I remembered that I also had installed the LAV Filters on my development machine long time ago (my brain gets old), et voila, that?s the difference between my machine and the others. Installing the LAV Filters (just with the mp4 option) on the other machines now the mp4 videos also run within LiveCode. I think that?s too deep under the hood that I can understand it, but I have a solution for my customers. I'll file it anyhow at the QC because it still keeps strange, why mp4 videos can be played outside of LC, but not with LC. Thanks a lot for fiddling around! Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Klaus major-k via use-livecode Gesendet: Dienstag, 7. M?rz 2017 19:14 An: How to use LiveCode Cc: Klaus major-k Betreff: Re: Trouble playing videos with MS DirectShow LC 8 Hi Tiemo, just made a little test on my "stock" Win10 installation (Parallels on my Mac). WindowsMediaPlayer plays any MP4 fine, but nothing appears in the player of Livecode!? So this is definitively a LC issue! Then I downloaded and installed the latest LAVFilter codec package: Et voila, I can play these MP4, which did not play before, in LC!? Does not make any sense actually!? > On 3/7/17 9:47 AM, Tiemo Hollmann TB via use-livecode wrote: >> Yes, it plays fine on my development machine by selecting it via a dialog, but not on the other machines. >> >> Tiemo 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 revolution at derbrill.de Wed Mar 8 05:36:06 2017 From: revolution at derbrill.de (Malte Brill) Date: Wed, 8 Mar 2017 11:36:06 +0100 Subject: [Long] Moving a REST request from Desktop to Server In-Reply-To: References: Message-ID: <66A06818-6856-4031-AFD3-674090FB34D9@derbrill.de> Hi Richard, no, I did not considder using a standalone as a CGI engine. I am in a rather difficult environment with the project (government servers that have ridiculous tests and approval times for changed solutions). On top of that, I would not want to lose the benefit of using liveCode PHP style. For most of what I do with LC server I am perfectly happy with the way it works. However, not having some stuff that libURL offers available (even though the dictionary states otherwise, in the case of libURLLastRHHeaders, Platforms desktop, server). Technically it should be possible if the Server script does a POST to a remote Server to see the RAW response in some form. In my case this would help a lot. I built quite a nice Framework (at least it works quite well for me) around the Server engine and it would be quite labor intense to change what I have. The only option I would see, would be moving the WEBSERVICE request into my LC Desktop client, which is what I?d rather avoid? :-( Cheers, Malte From danoldboy at gmail.com Wed Mar 8 05:38:40 2017 From: danoldboy at gmail.com (Dan Brown) Date: Wed, 8 Mar 2017 10:38:40 +0000 Subject: [Long] Moving a REST request from Desktop to Server In-Reply-To: References: <57C8F00D-1980-4785-AC95-B38F1A18D8BD@derbrill.de> Message-ID: A how-to for using standalones as CGI's is a fantastic idea! I've spent hours trawling through the mailing list archives for a definitive set of instructions on how to set this up but could never string together enough fragments of information to get it working. On Wed, Mar 8, 2017 at 12:28 AM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Malte Brill wrote: > > > I am trying to move a request I do from a desktop app to a liveCode > > server script and am facing the problem that some of the stuff I use > > (most of it libURL stuff) is not available on the server. Now I > > wonder how I could translate it? > > Have you considered running a standalone as your CGI? > > Standalones can be run facelessly with a -ui flag, and while they require > a one-time cost to set up a library to read stdin and parse the request and > env vars, once you're set up you get something LiveCode Server can't > offer: complete compatibility with the LiveCode Script desktop syntax. > > LC Server is great for many things, but since it doesn't work like LC on > the desktop I don't use it for anything beyond testing. I need to debug, > and by not using the Server engine I can run my scripts right in the IDE. > > Last week I was going to put together some notes on this to make using LC > standalones as CGIs easier, but as luck would have it I couldn't get either > Server or a standalone running as a CGI on either of my shared hosting > accounts, for reasons that appear to be related to the RAM requirements > from font loading: > http://quality.livecode.com/show_bug.cgi?id=14115 > > I have a workaround for that (thanks to some clever assist from Peter > Brett and Mark Waddingham), but it's kinda funky and non-obvious to set up, > so while it might work okay for me once in a while it's not the sort of > thing I want to tell other people is reflective of how we do things in the > LC world. We are, after all, about simplicity, or at least strive for it. > > But if you're on a VPS (about half our users are*) perhaps we can continue > this discussion and explore simple means of using standalones as CGIs. It > really is a much simpler overall workflow once you get it going. > > > * I ran this survey on the LC forums - if you haven't voted please chime > in on how you use LC on servers: > > POLL: LiveCode Server deployment > http://forums.livecode.com/viewtopic.php?f=15&t=26772 > > -- > 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 klaus at major-k.de Wed Mar 8 05:55:12 2017 From: klaus at major-k.de (Klaus major-k) Date: Wed, 8 Mar 2017 11:55:12 +0100 Subject: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <002901d297e2$fa2bc020$ee834060$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> <524A8D7B-2FA6-4DFF-853C-2CC33447A176@major-k.de> <002901d297e2$fa2bc020$ee834060$@kestner.de> Message-ID: Hi Tiemo, > Am 08.03.2017 um 09:07 schrieb Tiemo Hollmann TB via use-livecode : > > Hey Klaus, > > you saved my YEAR! OK, das macht dann f?nf Mark! :-D > As you mentioned "LAVFilters", I remembered that I also had installed the > LAV Filters on my development machine long time ago (my brain gets old), et > voila, that?s the difference between my machine and the others. > > Installing the LAV Filters (just with the mp4 option) on the other machines > now the mp4 videos also run within LiveCode. I think that?s too deep under > the hood that I can understand it, but I have a solution for my customers. > > I'll file it anyhow at the QC because it still keeps strange, why mp4 videos > can be played outside of LC, but not with LC. You only need to report not fully understand it! ;-) > Thanks a lot for fiddling around! > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Klaus major-k via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 19:14 > An: How to use LiveCode > Cc: Klaus major-k > Betreff: Re: Trouble playing videos with MS DirectShow LC 8 > > Hi Tiemo, > > just made a little test on my "stock" Win10 installation (Parallels on my > Mac). > > WindowsMediaPlayer plays any MP4 fine, but nothing appears in the player of > Livecode!? > So this is definitively a LC issue! > > Then I downloaded and installed the latest LAVFilter codec package: > > Et voila, I can play these MP4, which did not play before, in LC!? > Does not make any sense actually!? > >> On 3/7/17 9:47 AM, Tiemo Hollmann TB via use-livecode wrote: >>> Yes, it plays fine on my development machine by selecting it via a > dialog, but not on the other machines. >>> >>> Tiemo Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mark at livecode.com Wed Mar 8 06:59:53 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 08 Mar 2017 12:59:53 +0100 Subject: "ouch: the beginning of the end" In-Reply-To: References: Message-ID: <4845a7074ac45a99fd79bf7db8253238@livecode.com> Hi Dr Hawkins, I've been away on holiday for just over a week, and this thread has got quite long, so I thought it easier to answer the original post rather than some off shoot on it. On 2017-03-03 00:13, Dr. Hawkins via use-livecode wrote: > I just got off the phone with the court clerk in Reno, and received the > beginning of the end . . .I figured it would come from some state or > anther > in a year or two, but they are requiring me to use the *exact* pdf as > propagated by the court. Having read the entire thread, my understanding of your problem is as follows (please correct if I am wrong): ---- You have PDF forms which are downloadable from a government department. They are intended for filling printing and then filling in - i.e. they do not use editable PDF forms (FPDF?). The government department for whatever reason requires that the forms are used exactly as is with the user filling in the relevant spaces within them and then submitting. There is some claim by said department that 'at some point' they will get scanners which will be able to tell whether the original forms were used or not thus you are not allowed to recreate the non-user parts of the form. ---- Reading between the lines the latter requirements of the department are not unreasonable - I suspect they would like to automate their processes as much as possible and as such would like to be able to have a computer via OCR or whatever suck out the appropriate parts of forms at some point to remove a human from the equation. Given that there is an obvious 'printing' element involved in this at present pixel-perfection is not exactly what they are looking for (unless they are imagining they live in a world where all printers are capable of absolutely perfect registration - some skew / offset is always going to be present) just that whatever software they might use in the future to automate can locate the user written parts to suck out - therefore it is reasonable for them to require that the non-user sections are relatively laid out and look precisely the same as if you printed the original PDF. I'll run on these above assumptions for now. ---- First of all let me just point out that EPS is definitely *not* what you want. EPS is just a PostScript program with appropriate comments describing an (optional) pre-rendered thumbnail, and other print related metadata so it can be embedded in another document. Rendering EPS properly requires a full PostScript interpreter - many programs which 'support EPS' actually only support rendering the thumbnail and then only printing on a PostScript printer. Indeed, there is a good reason why no non-GPL full open-source PostScript interpreter exists (as far as I'm aware at least) - they are complex pieces of software which have a high degree of commercial value. Whilst Linux and Mac users might be used to transparent PostScript support this is only because GhostScript is installed as an innate part of the printing tool chain on those platforms - thus this is an innate part of the 'system' and as such you can write non-GPL applications which use it as you don't need to distribute it with your app. On all other platforms, however, you are looking at having to distribute a PS interpreter with your app - and at that point you are hit by the GPL (in particular, in your case, it would classify as an 'innate' requirement of your application and non-optional and thus virality would kick in). So, if you want a PostScript interpreter in your app you are going to have to pay $$$$$ to license such a thing. (Including such a thing in LiveCode would require license fees or development costs way above what most people would want to pay for a feature they would probably rarely if ever use and as such it is unreasonable to expect LiveCode to support such things cross-platform as part of the standard license fee - event at the Business license level). One of the main reasons that Adobe created PDF was to avoid needing a PostScript interpreter to accurately create 'archival' type quality representations of printable documents and to provide a much easier way to edit / amend and modify such documents. As PDF is just a data structure the latter can be done with processing a generated PDF. As EPS/PS are actually a program all bets are off for editing - the program does what it is written to, and you can write it in any way you want. If you want to 'edit' it, you need to edit the program. However.... PDF is also a large complicated format whose reading, writing and rasterisation has huge commercial value. Up until Google bought and open-sourced *part* of FoxIT so they could include a full and complete cross-platform PDF renderer in Chrome (in the form of PDFium) there was no non-GPL open-source full and complete PDF renderer available in the open-source world that I know of. As far as I'm aware all such open-source libraries for PDF rasterisation and manipulation which existed up until that point where GPL and all of them offer commercial licensing terms. The costs of which are substantial - again, well outside the cost of what you could reasonably expect to get 'built in' to the LiveCode license at any level. Of course, when you look into what Google did you find out that whilst PDFium is FoxIT - it is only a *subset* of FoxIT. Google only licensed the rasterisation part - PDFium does not contain any of the public APIs which allow editing, merging, modification and re-export of PDFs. Again, you can understand why - the latter part of PDF manipulation has perhaps the greatest part of the commercial value and since Google only wanted rasterisation that was all they were going to pay for. ---- So, just to reiterate, the expectation that LiveCode should contain a full PS/EPS/PDF rendering, manipulation and 'do whatever I want' type thing in it on all platforms is somewhat beyond the current price of the license fee. Or should I say, far beyond what anyone one person/organisation who does not need such functionality (which are most people) would be willing to pay. (I should point out here that I know what is involved in writing both a PostScript interpreter, and PDF renderer as I have written a partial implementation of both in the dim and distant past - for RiscOS in the early 1990's... Back when PS was still mostly Level 2, and the PDF spec weighed in at around 150 pages... PostScript is now universally at Level 3, and the PDF spec weighs in at 700+ pages - thus I do not begrudge the commercialization of such libraries at all as they are large hefty pieces of work which have to deal with inputs which may or may not completely conform to specification). Anyway, bemoaning about the costs of developing and supporting such things aside back to your actual problem... First of all on some platforms what you want to do is actually not all that hard at all. Mac and iOS both include full built-in PDF rendering and emission support. CoreGraphics can both load and render PDF directly *and* also render and save PDF directly which means that it is relatively straightforward (with a bit of LiveCode Builder or C++) to do what you want - i.e. render an original page of a PDF then render some text on top. However, it is important to point out that this approach will not result in the PDF necessarily being original PDF + extra bits since you are re-rendering the PDF (although I don't think this is a problem in your case as it sounds like there is an implicit may go through an actual scanner in the government departments process). Similarly, Linux always includes a postscript interpreter in its default install if you install printing support. PDF can be rendered in PostScript by using an appropriate header PostScript program (which converts the PDF data structure into a PostScript program - in fact the main rendering bits in PDF are actually PostScript programs just with a very fixed set of well defined operators which you can define in a PS environment). Thus on this platform you could emit the necessary header, the PDF and then the additions you require as PostScript programs. Where you run into difficulty is on Windows and Android. Neither of these platforms include either publicly accessible PDF nor PS support (although it appears Windows 10 might have a built in PDF Printer at least...). ---- So what options are there? - Option 1 - bi-level background images Here I'm assuming that your original PDFs do not change that often and (given the requirements you have found out from the government department involved) the forms must be used as is. Thus, I presume any 'recurring sections' would need to be rendered on repeated images of the appropriate page rather than cutting up the original forms into pieces and just replicating those parts. In this case, then pre-rendering all the pages as high-resolution black-and-white 1bpp bitmaps and then rendering those underneath the LiveCode fields is probably not that bad an option. Given that the average printer people will be using will probably only have a true black-and-white resolution of 300-600dpi and most printed forms are only about 5% black pixels you will get immensely high compression ratios. The only slight snafu here right now is that PDF printing support in LC does not yet exist for Android, and would need a small patch to pass PNG data straight through to the PDF (at present it only does this for JPEG). [ The reason PDF printing is not currently supported on Android is due to text rendering which is not a straightforward thing in PDF nor PostScript; the reason only JPEG image data is currently supported is that when the pass-through was implemented the library we use to do PDF printing - cairo - only supported it for JPEG, I *think* it does support certain PNG formats now though since we updated the library for other reasons a while back ]. - Option 2 - augment the original PDF PDF documents can be augmented after creation - the data structure is designed to allow revisions which overlay the original document. Thus it should be possible to generate modifications to the original PDF and append them to it. The difficulty here is that it would require some intimate knowledge of the PDF document structure (although far less than what would be required to generate one from scratch). Basically, you provide modified page objects for each page and a modified 'page tree' which first contains all the original things on the page and then adds text objects (which is not too bad to generate if you just want ASCII characters in one of the built in fonts such as Helvetica) in the places you need. Such a process could be implemented in LiveCode Script and would be completely independent of platform. Also, it would preserve the original PDF entirely (no round-tripping through a PDF rasterizer) as you would only be adding to what was already there. How much work would be involved in writing said script, however, is another matter. - Option 3 - wait until LiveCode can render PDFs directly as an object on a card This is obviously what you had hoped you could do and whilst not entirely unreasonable, I hope you can appreciate from the above why you currently cannot - particular on all platforms. PDFium does at least give us a starting point - however it isn't the easiest of libraries to build or maintain building of and there's still a fair bit of work we need to do to allow it to function cross-platform (not least the building of it for all platforms!). Also, lamentably, that is only one side of the story - you also need to generate PDFs, which means some library to output PDF is needed which is happy to bind to PDFium's rasterisation implementation. This is certainly not something which is exposed in the public APIs of PDFium, and would probably require bespoke customisation of PDFium to achieve. - Option 4 - focus on Mac/iOS and do other platforms later As mentioned above, both Mac and iOS include PDF rendering and emission as part of CoreGraphics - they also include relatively straightforward APIs for drawing typeset text. The process here would be: 1) Create a CG PDF output context 2) Load your original PDF as a CG PDF object 3) For each page: i) Render the original page into the PDF output context ii) Render the text into the appropriate places on the page 4) Finalize the output context to generate a PDF I recently did some work for a business services request which needed to render portions of a PDF to a new PDF on Mac - and it turned out to be around 50 lines of C to do that. Rendering the text you would need through CoreText would be a little more than that, but nothing too onerous. ---- So anyway, sorry to be the bearer of perhaps not entirely great news, however what you want to do is certainly possible - but like most things will require some leg-work and a little bit of patience and/or some financial investment. I do strongly suggest you contact business services (https://livecode.com/services/) about what you need here. It is important to understand that whilst we would like to do everything, we do need a way to prioritise what we focus on. Whilst PDF rendering and output features are (obviously) quite widely useful for lots of things they are also substantial and large features to develop and maintain (if they weren't we would be surrounded by lots of open-source non-GPL implementations to choose from and base them on) thus progress on them generally in terms of additions to the core product are likely to be slow. However you do have a very specific use-case with well defined inputs and outputs so we may be able to help you for far less then it would cost you to commercially license the relevant cross-platform libraries you need and/or a platform which provides the functionality out of the box. (My gut tells me that starting with Mac/iOS due to their built in API support for what you want to do is probably the best first step to take at least then you get a product which works as it needs to to - and like any venture, the sooner you ship, the sooner you can generate revenue to reinvest and expand!). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From toolbook at kestner.de Wed Mar 8 08:12:43 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 8 Mar 2017 14:12:43 +0100 Subject: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> <524A8D7B-2FA6-4DFF-853C-2CC33447A176@major-k.de> <002901d297e2$fa2bc020$ee834060$@kestner.de> Message-ID: <008101d2980d$accd53e0$0667fba0$@kestner.de> Kommste vorbei, kriegste 'nen Heiermann -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Klaus major-k via use-livecode Gesendet: Mittwoch, 8. M?rz 2017 11:55 An: How to use LiveCode Cc: Klaus major-k Betreff: Re: Trouble playing videos with MS DirectShow LC 8 Hi Tiemo, > Am 08.03.2017 um 09:07 schrieb Tiemo Hollmann TB via use-livecode : > > Hey Klaus, > > you saved my YEAR! OK, das macht dann f?nf Mark! :-D > As you mentioned "LAVFilters", I remembered that I also had installed > the LAV Filters on my development machine long time ago (my brain gets > old), et voila, that?s the difference between my machine and the others. > > Installing the LAV Filters (just with the mp4 option) on the other > machines now the mp4 videos also run within LiveCode. I think that?s > too deep under the hood that I can understand it, but I have a solution for my customers. > > I'll file it anyhow at the QC because it still keeps strange, why mp4 > videos can be played outside of LC, but not with LC. You only need to report not fully understand it! ;-) > Thanks a lot for fiddling around! > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im > Auftrag von Klaus major-k via use-livecode > Gesendet: Dienstag, 7. M?rz 2017 19:14 > An: How to use LiveCode > Cc: Klaus major-k > Betreff: Re: Trouble playing videos with MS DirectShow LC 8 > > Hi Tiemo, > > just made a little test on my "stock" Win10 installation (Parallels on > my Mac). > > WindowsMediaPlayer plays any MP4 fine, but nothing appears in the > player of Livecode!? > So this is definitively a LC issue! > > Then I downloaded and installed the latest LAVFilter codec package: > > Et voila, I can play these MP4, which did not play before, in LC!? > Does not make any sense actually!? > >> On 3/7/17 9:47 AM, Tiemo Hollmann TB via use-livecode wrote: >>> Yes, it plays fine on my development machine by selecting it via a > dialog, but not on the other machines. >>> >>> Tiemo 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 Mar 8 08:35:49 2017 From: klaus at major-k.de (Klaus major-k) Date: Wed, 8 Mar 2017 14:35:49 +0100 Subject: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: <008101d2980d$accd53e0$0667fba0$@kestner.de> References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> <524A8D7B-2FA6-4DFF-853C-2CC33447A176@major-k.de> <002901d297e2$fa2bc020$ee834060$@kestner.de> <008101d2980d$accd53e0$0667fba0$@kestner.de> Message-ID: <3C86E32B-0369-41E4-B374-ED5CC691FB4D@major-k.de> > Am 08.03.2017 um 14:12 schrieb Tiemo Hollmann TB via use-livecode : > > Kommste vorbei, kriegste 'nen Heiermann :-D :-D :-D > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Klaus major-k via use-livecode > Gesendet: Mittwoch, 8. M?rz 2017 11:55 > An: How to use LiveCode > Cc: Klaus major-k > Betreff: Re: Trouble playing videos with MS DirectShow LC 8 > > Hi Tiemo, > >> Am 08.03.2017 um 09:07 schrieb Tiemo Hollmann TB via use-livecode : >> >> Hey Klaus, >> >> you saved my YEAR! > > OK, das macht dann f?nf Mark! :-D > >> As you mentioned "LAVFilters", I remembered that I also had installed >> the LAV Filters on my development machine long time ago (my brain gets >> old), et voila, that?s the difference between my machine and the others. >> >> Installing the LAV Filters (just with the mp4 option) on the other >> machines now the mp4 videos also run within LiveCode. I think that?s >> too deep under the hood that I can understand it, but I have a solution for my customers. >> >> I'll file it anyhow at the QC because it still keeps strange, why mp4 >> videos can be played outside of LC, but not with LC. > > You only need to report not fully understand it! ;-) > >> Thanks a lot for fiddling around! >> Tiemo >> ... >> WindowsMediaPlayer plays any MP4 fine, but nothing appears in the >> player of Livecode!? >> So this is definitively a LC issue! >> >> Then I downloaded and installed the latest LAVFilter codec package: >> >> Et voila, I can play these MP4, which did not play before, in LC!? >> ... Best aus Osnabr?ck Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From roger.e.eller at sealedair.com Wed Mar 8 08:51:55 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 8 Mar 2017 08:51:55 -0500 Subject: "ouch: the beginning of the end" In-Reply-To: <4845a7074ac45a99fd79bf7db8253238@livecode.com> References: <4845a7074ac45a99fd79bf7db8253238@livecode.com> Message-ID: So... Why not convert the forms to high-res (300+ dpi) PNG or JPEG as Mark suggests as one of the many options, and overlay LiveCode fields to create an app for filling the form? Once filled in, merge the high-res image with the collected field data into a fresh new PDF generated via the Quartum PDF Library (using 100% LiveCode scripting). http://users.telenet.be/quartam/pdf4rev/benefits.html ~Roger //SUMMARIZED// On Wed, Mar 8, 2017 at 6:59 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Dr Hawkins, > > I've been away on holiday for just over a week, and this thread has got > quite long, so I thought it easier to answer the original post rather > than some off shoot on it. > > ---- > > So what options are there? > > - Option 1 - bi-level background images > > - Option 2 - augment the original PDF > > - Option 3 - wait until LiveCode can render PDFs directly as an object on > a card > > - Option 4 - focus on Mac/iOS and do other platforms later > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps //SUMMARIZED// From toolbook at kestner.de Wed Mar 8 09:41:54 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 8 Mar 2017 15:41:54 +0100 Subject: AW: Trouble playing videos with MS DirectShow LC 8 In-Reply-To: References: <006e01d2973b$62504ca0$26f0e5e0$@kestner.de> <00d801d29757$84dbec40$8e93c4c0$@kestner.de> <15aa9802500.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <00e201d29762$b42c7f90$1c857eb0$@kestner.de> <00e301d29763$0c8d29a0$25a77ce0$@kestner.de> <41b6667d-2a7a-b3cc-5a84-f7bcdbf91425@pdslabs.net> <000001d2976a$e29be200$a7d3a600$@kestner.de> <524A8D7B-2FA6-4DFF-853C-2CC33447A176@major-k.de> <002901d297e2$fa2bc020$ee834060$@kestner.de> Message-ID: <008d01d2981a$223a6670$66af3350$@kestner.de> Just FYI, Ian from LC clarified the phenomenon that the mp4 videos could be played with the standard video player but not with the LC video player. LiveCodes new video player object is based on the DirectShow API and the standard MS video players are based on the newer MS media foundation since Win 7. DirectShow doesn't supports mp4 videos without additional codecs (like from the LAV filters), but the media foundation does support mp4 without any extra codecs. Tiemo >> You only need to report not fully understand it! ;-) 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 Wed Mar 8 10:47:24 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 8 Mar 2017 15:47:24 +0000 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: There was a bug where these breakpoints were not triggering if the script before the dot was edited in such a way as to change the line number it was on. It was supposed to have been resolved, but I still see it from time to time. My solution is to unset and reset after each compile. If I have several I just use the breakpoint command. Bob S > On Mar 7, 2017, at 17:36 , Mike Kerner via use-livecode wrote: > > Explain this one: > 8.1.3 > create a stack > put a button on it > add some script > click in the margin to add a breakpoint - it shows grey with red border > run the script > breakpoint doesn't activate > Add a "breakpoint" line as the first line in the script > execute again > breakpoint still doesn't fire. > > -- > 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 Wed Mar 8 10:48:55 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 8 Mar 2017 15:48:55 +0000 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> OH! That is a different matter. I also ran into situations where the Script Debug Mode kept getting turned off. I haven't seen it in a long time. Bob S > On Mar 7, 2017, at 18:12 , Mike Kerner via use-livecode wrote: > > It's ignoring the "breakpoint" text, too, not just the dots. From dunbarx at aol.com Wed Mar 8 11:51:52 2017 From: dunbarx at aol.com (dunbarx) Date: Wed, 8 Mar 2017 08:51:52 -0800 (PST) Subject: breakpoints being ignored In-Reply-To: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> References: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> Message-ID: <1488991912531-4712914.post@n4.nabble.com> This is SO annoying. I know one can get used to anything, but, sheesh. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/breakpoints-being-ignored-tp4712898p4712914.html Sent from the Revolution - User mailing list archive at Nabble.com. From panos.merakos at livecode.com Wed Mar 8 12:36:56 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 8 Mar 2017 17:36:56 +0000 Subject: [ANN] Release 9.0.0 DP-6 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.0.0 DP-6. Developer Preview Release ========================= Warning: this is not a stable release. Please ensure that you back up your stacks before testing them. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 9.0.0 DP-6 is the first preview containing the Java Foreign Function Interface (FFI). Foreign handlers can be written in LiveCode Builder which bind to calls on Java classes via the Java Native Interface (JNI). In particular this enables binding to classes in the Android API. Details and examples of this feature can be found in the release notes and the Dictionary (under com.livecode.java), or directly in the implementation of the Java LCB support library in our GitHub repository: https://github.com/livecode/livecode/blob/develop/libscript/src/java.lcb This release also contains a command-line tool called lc-compile-ffi-java which will autogenerate LCB wrappers of Java classes, given the appropriate data. The specification for the data used to generate these wrappers is available in our GitHub repository: https://github.com/livecode/livecode/blob/develop/docs/specs/java-ffi-dsl.md This release will be followed shortly by a blog post with some worked examples of these features. Known issues ================ Linux standalones that include a browser widget will fail to launch. See bug http://quality.livecode.com/show_bug.cgi?id=19396 for more details and a workaround. HTML5 standalones built using this release are not functional. See bug http://quality.livecode.com/show_bug.cgi?id=19399 for more details. The full release notes are available from: http://downloads.livecode.com/livecode/9_0_0/LiveCodeNotes-9_0_0_dp_6.pdf Feedback ======== The Java FFI implementation required significant improvements to library loading; these could be disruptive to externals, especially in standalones. We suggest testing standalone builds in particular, so that we can iron out any issues with this. Please report any bugs encountered on our BugZilla at http://quality.livecode.com/ We have a forum available for discussing LiveCode Builder at http://forums.livecode.com/viewforum.php?f=93 Have fun! The LiveCode Team -- From ambassador at fourthworld.com Wed Mar 8 13:32:30 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 8 Mar 2017 10:32:30 -0800 Subject: [Long] Moving a REST request from Desktop to Server In-Reply-To: <66A06818-6856-4031-AFD3-674090FB34D9@derbrill.de> References: <66A06818-6856-4031-AFD3-674090FB34D9@derbrill.de> Message-ID: <25c0d1df-f9f0-50ba-b9f7-46d64ea3c84c@fourthworld.com> Malte Brill wrote: > no, I did not considder using a standalone as a CGI engine. I am > in a rather difficult environment with the project (government > servers that have ridiculous tests and approval times for changed > solutions). On top of that, I would not want to lose the benefit > of using liveCode PHP style. The merge function is similar, but just different enough to prevent us from using it to test LC Server scripts in the LC IDE. :( If anyone else here would find that useful perhaps I could submit a request for that. I'm thinking maybe something like: put merge( tSomeStuff, "server") into tModifiedStuff ...where "server" is a flag that determines which merge style should be used. Or would it be simpler as a separate function, maybe something like: put serverMerge( tSomeStuff ) into tModifiedStuff Suggestions on that? It would be so nice if we could find some way to overcome the incompatibilities between LC Server and how LC normally handles scripts so we could debug as we write (the xTalk way!). -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Wed Mar 8 14:39:41 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 8 Mar 2017 11:39:41 -0800 Subject: breakpoints being ignored In-Reply-To: <1488991912531-4712914.post@n4.nabble.com> References: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> <1488991912531-4712914.post@n4.nabble.com> Message-ID: On Wed, Mar 8, 2017 at 8:51 AM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > This is SO annoying. I know one can get used to anything, but, sheesh. > > We need to get used to getting used to new forms of the PCDs being ignored . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Wed Mar 8 14:39:41 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 8 Mar 2017 11:39:41 -0800 Subject: breakpoints being ignored In-Reply-To: <1488991912531-4712914.post@n4.nabble.com> References: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> <1488991912531-4712914.post@n4.nabble.com> Message-ID: On Wed, Mar 8, 2017 at 8:51 AM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > This is SO annoying. I know one can get used to anything, but, sheesh. > > We need to get used to getting used to new forms of the PCDs being ignored . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From monte at appisle.net Wed Mar 8 17:10:23 2017 From: monte at appisle.net (Monte Goulding) Date: Thu, 9 Mar 2017 09:10:23 +1100 Subject: "ouch: the beginning of the end" In-Reply-To: <4845a7074ac45a99fd79bf7db8253238@livecode.com> References: <4845a7074ac45a99fd79bf7db8253238@livecode.com> Message-ID: <4DB387E3-99BC-49D2-8292-F4D1764F1887@appisle.net> > On 8 Mar 2017, at 10:59 pm, Mark Waddingham via use-livecode wrote: > > - Option 1 - bi-level background images > > Here I'm assuming that your original PDFs do not change that often and (given the > requirements you have found out from the government department involved) the forms > must be used as is. Thus, I presume any 'recurring sections' would need to be > rendered on repeated images of the appropriate page rather than cutting up the > original forms into pieces and just replicating those parts. > > In this case, then pre-rendering all the pages as high-resolution black-and-white > 1bpp bitmaps and then rendering those underneath the LiveCode fields is probably not > that bad an option. Given that the average printer people will be using will probably > only have a true black-and-white resolution of 300-600dpi and most printed forms are > only about 5% black pixels you will get immensely high compression ratios. The only > slight snafu here right now is that PDF printing support in LC does not yet exist > for Android, and would need a small patch to pass PNG data straight through to the > PDF (at present it only does this for JPEG). [ The reason PDF printing is not currently > supported on Android is due to text rendering which is not a straightforward thing in > PDF nor PostScript; the reason only JPEG image data is currently supported is that > when the pass-through was implemented the library we use to do PDF printing - cairo - > only supported it for JPEG, I *think* it does support certain PNG formats now though > since we updated the library for other reasons a while back ]. If the required platforms are limited to Mac and Windows then you can use XPDF to generate the images ;-) Cheers Monte From bobsneidar at iotecdigital.com Wed Mar 8 17:36:24 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 8 Mar 2017 22:36:24 +0000 Subject: breakpoints being ignored In-Reply-To: <1488991912531-4712914.post@n4.nabble.com> References: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> <1488991912531-4712914.post@n4.nabble.com> Message-ID: My recollection is that something in my app was causing a CTD condition or a lockup where I had to force-quit, and after I relaunched, the Script Debug Mode was disabled. When my app is running normally I do not see this anomaly, and it may have been addressed in a newed version. Bob S > On Mar 8, 2017, at 08:51 , dunbarx via use-livecode wrote: > > This is SO annoying. I know one can get used to anything, but, sheesh. > > Craig From jacque at hyperactivesw.com Wed Mar 8 18:13:25 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 8 Mar 2017 17:13:25 -0600 Subject: breakpoints being ignored In-Reply-To: References: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> <1488991912531-4712914.post@n4.nabble.com> Message-ID: On 3/8/17 4:36 PM, Bob Sneidar via use-livecode wrote: > My recollection is that something in my app was causing a CTD > condition or a lockup where I had to force-quit, and after I > relaunched, the Script Debug Mode was disabled. When my app is > running normally I do not see this anomaly, and it may have been > addressed in a newed version. I haven't seen it in a while either. Craig is still on v6 though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Wed Mar 8 19:09:01 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 8 Mar 2017 16:09:01 -0800 Subject: breakpoints being ignored In-Reply-To: References: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> <1488991912531-4712914.post@n4.nabble.com> Message-ID: On Wed, Mar 8, 2017 at 3:13 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I haven't seen it in a while either. Craig is still on v6 though. Wow. I had so much problem with v6 and breakpoints that I never used it! -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From andre at andregarzia.com Wed Mar 8 19:09:29 2017 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 8 Mar 2017 21:09:29 -0300 Subject: [ANN] Release 9.0.0 DP-5 In-Reply-To: References: Message-ID: On Mon, Mar 6, 2017 at 5:12 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Besides, this is not > debugging, this is remote debugging, and if anything screams "premium", > it's a feature like this. Anyone who has been building for mobile since we > could do that with LC has been working with their own personal debugging > hacks. You can debug mobile, on the device, without this tool. > Hey Mike, I completely disagree with this notion that having a debugger is a premium feature. As you say, anyone who was building mobile was crafting helpers to help debug their creations but this is not the same as stepping through the code with a debugger. Lets not mix the act of debugging an app (removing bugs) with having a real debugger. For example, for ages Web Developers filled their code with alert() dialogs and console.log() calls which is much like we do with LC on mobile, but, all browsers these days ship real debuggers and both Chrome and Firefox ship with remote debuggers, heck Firefox alone can debug iOS Safari from Desktop Linux. Remote debuggers are not a fancy premium feature. Android Studio (which is the free oficial IDE) has a remote debugger. Visual Studio has remote debugger. Phonegap has a remote debugger. Corona SDK has a remote debugger. Basically everyone that is shipping mobile apps has a remote debugger and is not charging a premium on it. An Indy License costs more than 500 USD per year. Thats not peanuts, thats a solid investment, not allow people who make such investment from having a normal standard tool for mobile app development is crazy! LC on mobile is already buggy enough on the engine side, having this debugger would have the side effect of making it easier for us to contribute bug recipes for example. Lots of time here we loose a precious amount of time trying to identify if the bug is on our side of the code or the engine since we can't step through it. -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From roger.e.eller at sealedair.com Wed Mar 8 21:00:06 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 8 Mar 2017 21:00:06 -0500 Subject: [ANN] Release 9.0.0 DP-5 In-Reply-To: References: Message-ID: +1 On Mar 8, 2017 7:42 PM, "Andre Garzia via use-livecode" < use-livecode at lists.runrev.com> wrote: > On Mon, Mar 6, 2017 at 5:12 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Besides, this is not > > debugging, this is remote debugging, and if anything screams "premium", > > it's a feature like this. Anyone who has been building for mobile since > we > > could do that with LC has been working with their own personal debugging > > hacks. You can debug mobile, on the device, without this tool. > > > > Hey Mike, > > I completely disagree with this notion that having a debugger is a premium > feature. As you say, anyone who was building mobile was crafting helpers to > help debug their creations but this is not the same as stepping through the > code with a debugger. > > Lets not mix the act of debugging an app (removing bugs) with having a real > debugger. For example, for ages Web Developers filled their code with > alert() dialogs and console.log() calls which is much like we do with LC on > mobile, but, all browsers these days ship real debuggers and both Chrome > and Firefox ship with remote debuggers, heck Firefox alone can debug iOS > Safari from Desktop Linux. > > Remote debuggers are not a fancy premium feature. Android Studio (which is > the free oficial IDE) has a remote debugger. Visual Studio has remote > debugger. Phonegap has a remote debugger. Corona SDK has a remote debugger. > Basically everyone that is shipping mobile apps has a remote debugger and > is not charging a premium on it. > > An Indy License costs more than 500 USD per year. Thats not peanuts, thats > a solid investment, not allow people who make such investment from having a > normal standard tool for mobile app development is crazy! LC on mobile is > already buggy enough on the engine side, having this debugger would have > the side effect of making it easier for us to contribute bug recipes for > example. Lots of time here we loose a precious amount of time trying to > identify if the bug is on our side of the code or the engine since we can't > step through it. > > > > -- > http://www.andregarzia.com -- All We Do Is Code. > http://fon.nu -- minimalist url shortening service. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 8 21:37:21 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 8 Mar 2017 18:37:21 -0800 Subject: byteLen()? Message-ID: the len() function returns a character count, but with Unicode this may be very different than the byte size. Do we have a size() or byteLen() function? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Wed Mar 8 21:46:22 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 8 Mar 2017 21:46:22 -0500 Subject: breakpoints being ignored In-Reply-To: References: <0A4E22DD-26B6-46BC-B7F7-A2DE766A04FC@iotecdigital.com> <1488991912531-4712914.post@n4.nabble.com> Message-ID: This is something that got mixed up with the preferences, somehow. Deleting the preferences file fixed it. On Wed, Mar 8, 2017 at 7:09 PM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Wed, Mar 8, 2017 at 3:13 PM, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I haven't seen it in a while either. Craig is still on v6 though. > > > Wow. > > I had so much problem with v6 and breakpoints that I never used it! > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From brahma at hindu.org Thu Mar 9 01:29:40 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 9 Mar 2017 06:29:40 +0000 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: Interesting? this was happening to me today. on a hunch I set the gRevDevelopment to true? thinking that because I had messed with that yesterday while using the remote debugger on my android phone? I had done something that was blocking script debug -- related to the action of answering "No" to the dialog asking if you want to run a remoteDebug session, just after installing the standalone on the phone? because I thought (have yet to test/reproduce? very tedious?) possibly that is at least one action that might toggle script debug mode to off (even though it appears checked?) and so your break point could possibly be ignored at that point and until you reboot LC? Dunno, just was just fishing for possible recipes? but aha, gRevDevelopment, true: the break point was "honored" Of course it starting stepping through a lot of IDE code, so I had to go back and set the gRevDevelopment to "false" and now the break points work? ?.of course if it goes all the way back to 8.1.3 and 6, then it could be anything?. BR Mike Kerner wrote: Add a "breakpoint" line as the first line in the script execute again breakpoint still doesn't fire. From mark at livecode.com Thu Mar 9 02:55:05 2017 From: mark at livecode.com (Mark Waddingham) Date: Thu, 9 Mar 2017 07:55:05 +0000 Subject: byteLen()? In-Reply-To: References: Message-ID: <7AC02A83-0D3C-43D5-AB82-C2E6B115949F@livecode.com> Hi Richard, No, there is no such function as the byte length is a property of text which has been encoded with a specific encoding, not text in general. the number of bytes in textEncode(tText, kEncoding) Should give you what you need. Warmest Regards, Mark. Sent from my iPhone > On 9 Mar 2017, at 02:37, Richard Gaskin via use-livecode wrote: > > the len() function returns a character count, but with Unicode this may be very different than the byte size. > > Do we have a size() or byteLen() function? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Thu Mar 9 03:26:46 2017 From: mark at livecode.com (Mark Waddingham) Date: Thu, 09 Mar 2017 09:26:46 +0100 Subject: "ouch: the beginning of the end" In-Reply-To: References: <4845a7074ac45a99fd79bf7db8253238@livecode.com> Message-ID: <093388be86ae098089a553194ad72281@livecode.com> On 2017-03-08 14:51, Roger Eller via use-livecode wrote: > So... Why not convert the forms to high-res (300+ dpi) PNG or JPEG as > Mark > suggests as one of the many options, and overlay LiveCode fields to > create > an app for filling the form? Once filled in, merge the high-res image > with > the collected field data into a fresh new PDF generated via the Quartum > PDF > Library (using 100% LiveCode scripting). > > http://users.telenet.be/quartam/pdf4rev/benefits.html > This sounds like a good balance. I should perhaps point out (after my previous slightly 'gloomy' post) that generating PDF files by hand for specific cases is not that hard as they are mostly text files (in their simplest form). In Dr Hawkins case, it sounds like images + overlaid text is sufficient and as long as the text is ASCII then Quartam PDF's abilities should be more than up to the task. [ The reason I mention ASCII text here is that one of the hardest parts of generating PDF (and PostScript, to be fair) is actually text rendering. As they are both display/print oriented output formats they require text to be fully processed into positioned glyphs taken from subsets of embedded fonts. If however you stick to ASCII, or the slightly larger standard Adobe encodings with the default PostScript fonts then most of the complexity falls away. ] The hard part about PDF support (at both sides) is generality - which is what you need if you have no control over what PDFs are coming in, or what might need to be printed to PDF. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dvglasgow at gmail.com Thu Mar 9 03:46:09 2017 From: dvglasgow at gmail.com (David V Glasgow) Date: Thu, 9 Mar 2017 08:46:09 +0000 Subject: "ouch: the beginning of the end" In-Reply-To: <4845a7074ac45a99fd79bf7db8253238@livecode.com> References: <4845a7074ac45a99fd79bf7db8253238@livecode.com> Message-ID: Mark, This post is hereby awarded the ?exposition clarity badge?. You should sew it onto your sleeve (with all the others), and wear with pride. I never felt I understood the problem, let alone possible solutions, and now I think I do both. A really interesting read, thank you. Cheers, David Glasgow > On 8 Mar 2017, at 11:59 am, Mark Waddingham via use-livecode wrote: > > Hi Dr Hawkins, > > I've been away on holiday for just over a week, and this thread has got > quite long, so I thought it easier to answer the original post rather > than some off shoot on it. > > On 2017-03-03 00:13, Dr. Hawkins via use-livecode wrote: >> I just got off the phone with the court clerk in Reno, and received the >> beginning of the end . . .I figured it would come from some state or anther >> in a year or two, but they are requiring me to use the *exact* pdf as >> propagated by the court. > > Having read the entire thread, my understanding of your problem is as follows > (please correct if I am wrong): > > ---- > > You have PDF forms which are downloadable from a government department. They > are intended for filling printing and then filling in - i.e. they do not use > editable PDF forms (FPDF?). > > The government department for whatever reason requires that the forms are used > exactly as is with the user filling in the relevant spaces within them and then > submitting. > > There is some claim by said department that 'at some point' they will get > scanners which will be able to tell whether the original forms were used or not > thus you are not allowed to recreate the non-user parts of the form. > > ---- > > Reading between the lines the latter requirements of the department are not > unreasonable - I suspect they would like to automate their processes as much > as possible and as such would like to be able to have a computer via OCR or > whatever suck out the appropriate parts of forms at some point to remove a > human from the equation. > > Given that there is an obvious 'printing' element involved in this at present > pixel-perfection is not exactly what they are looking for (unless they are > imagining they live in a world where all printers are capable of absolutely > perfect registration - some skew / offset is always going to be present) just > that whatever software they might use in the future to automate can locate > the user written parts to suck out - therefore it is reasonable for them to > require that the non-user sections are relatively laid out and look precisely > the same as if you printed the original PDF. > > I'll run on these above assumptions for now. > > ---- > > First of all let me just point out that EPS is definitely *not* what you want. > > EPS is just a PostScript program with appropriate comments describing an > (optional) pre-rendered thumbnail, and other print related metadata so it > can be embedded in another document. Rendering EPS properly requires a full > PostScript interpreter - many programs which 'support EPS' actually only support > rendering the thumbnail and then only printing on a PostScript printer. > > Indeed, there is a good reason why no non-GPL full open-source PostScript > interpreter exists (as far as I'm aware at least) - they are complex pieces > of software which have a high degree of commercial value. > > Whilst Linux and Mac users might be used to transparent PostScript support this > is only because GhostScript is installed as an innate part of the printing tool > chain on those platforms - thus this is an innate part of the 'system' and as > such you can write non-GPL applications which use it as you don't need to distribute > it with your app. On all other platforms, however, you are looking at having to > distribute a PS interpreter with your app - and at that point you are hit by the > GPL (in particular, in your case, it would classify as an 'innate' requirement > of your application and non-optional and thus virality would kick in). > > So, if you want a PostScript interpreter in your app you are going to have to > pay $$$$$ to license such a thing. (Including such a thing in LiveCode would > require license fees or development costs way above what most people would want > to pay for a feature they would probably rarely if ever use and as such it is > unreasonable to expect LiveCode to support such things cross-platform as part of > the standard license fee - event at the Business license level). > > One of the main reasons that Adobe created PDF was to avoid needing a PostScript > interpreter to accurately create 'archival' type quality representations of printable > documents and to provide a much easier way to edit / amend and modify such documents. > As PDF is just a data structure the latter can be done with processing a generated > PDF. As EPS/PS are actually a program all bets are off for editing - the program > does what it is written to, and you can write it in any way you want. If you want to > 'edit' it, you need to edit the program. > > However.... > > PDF is also a large complicated format whose reading, writing and rasterisation > has huge commercial value. > > Up until Google bought and open-sourced *part* of FoxIT so they could include a > full and complete cross-platform PDF renderer in Chrome (in the form of PDFium) > there was no non-GPL open-source full and complete PDF renderer available in > the open-source world that I know of. > > As far as I'm aware all such open-source libraries for PDF rasterisation and > manipulation which existed up until that point where GPL and all of them offer > commercial licensing terms. The costs of which are substantial - again, well > outside the cost of what you could reasonably expect to get 'built in' to the > LiveCode license at any level. > > Of course, when you look into what Google did you find out that whilst PDFium > is FoxIT - it is only a *subset* of FoxIT. Google only licensed the rasterisation > part - PDFium does not contain any of the public APIs which allow editing, merging, > modification and re-export of PDFs. > > Again, you can understand why - the latter part of PDF manipulation has perhaps > the greatest part of the commercial value and since Google only wanted rasterisation > that was all they were going to pay for. > > ---- > > So, just to reiterate, the expectation that LiveCode should contain a full PS/EPS/PDF > rendering, manipulation and 'do whatever I want' type thing in it on all platforms is > somewhat beyond the current price of the license fee. Or should I say, far beyond what > anyone one person/organisation who does not need such functionality (which are most people) > would be willing to pay. > > (I should point out here that I know what is involved in writing both a PostScript > interpreter, and PDF renderer as I have written a partial implementation of both in the > dim and distant past - for RiscOS in the early 1990's... Back when PS was still mostly > Level 2, and the PDF spec weighed in at around 150 pages... PostScript is now universally > at Level 3, and the PDF spec weighs in at 700+ pages - thus I do not begrudge > the commercialization of such libraries at all as they are large hefty pieces of work which > have to deal with inputs which may or may not completely conform to specification). > > Anyway, bemoaning about the costs of developing and supporting such things aside back > to your actual problem... > > First of all on some platforms what you want to do is actually not all that hard at all. > > Mac and iOS both include full built-in PDF rendering and emission support. CoreGraphics > can both load and render PDF directly *and* also render and save PDF directly which means > that it is relatively straightforward (with a bit of LiveCode Builder or C++) to do what > you want - i.e. render an original page of a PDF then render some text on top. However, > it is important to point out that this approach will not result in the PDF necessarily > being original PDF + extra bits since you are re-rendering the PDF (although I don't > think this is a problem in your case as it sounds like there is an implicit may go through > an actual scanner in the government departments process). > > Similarly, Linux always includes a postscript interpreter in its default install if you > install printing support. PDF can be rendered in PostScript by using an appropriate > header PostScript program (which converts the PDF data structure into a PostScript > program - in fact the main rendering bits in PDF are actually PostScript programs > just with a very fixed set of well defined operators which you can define in a PS > environment). Thus on this platform you could emit the necessary header, the PDF > and then the additions you require as PostScript programs. > > Where you run into difficulty is on Windows and Android. Neither of these platforms > include either publicly accessible PDF nor PS support (although it appears Windows > 10 might have a built in PDF Printer at least...). > > ---- > > So what options are there? > > - Option 1 - bi-level background images > > Here I'm assuming that your original PDFs do not change that often and (given the > requirements you have found out from the government department involved) the forms > must be used as is. Thus, I presume any 'recurring sections' would need to be > rendered on repeated images of the appropriate page rather than cutting up the > original forms into pieces and just replicating those parts. > > In this case, then pre-rendering all the pages as high-resolution black-and-white > 1bpp bitmaps and then rendering those underneath the LiveCode fields is probably not > that bad an option. Given that the average printer people will be using will probably > only have a true black-and-white resolution of 300-600dpi and most printed forms are > only about 5% black pixels you will get immensely high compression ratios. The only > slight snafu here right now is that PDF printing support in LC does not yet exist > for Android, and would need a small patch to pass PNG data straight through to the > PDF (at present it only does this for JPEG). [ The reason PDF printing is not currently > supported on Android is due to text rendering which is not a straightforward thing in > PDF nor PostScript; the reason only JPEG image data is currently supported is that > when the pass-through was implemented the library we use to do PDF printing - cairo - > only supported it for JPEG, I *think* it does support certain PNG formats now though > since we updated the library for other reasons a while back ]. > > - Option 2 - augment the original PDF > > PDF documents can be augmented after creation - the data structure is designed to > allow revisions which overlay the original document. Thus it should be possible to > generate modifications to the original PDF and append them to it. > > The difficulty here is that it would require some intimate knowledge of the PDF > document structure (although far less than what would be required to generate one > from scratch). Basically, you provide modified page objects for each page and a > modified 'page tree' which first contains all the original things on the page > and then adds text objects (which is not too bad to generate if you just want ASCII > characters in one of the built in fonts such as Helvetica) in the places you need. > > Such a process could be implemented in LiveCode Script and would be completely > independent of platform. Also, it would preserve the original PDF entirely (no > round-tripping through a PDF rasterizer) as you would only be adding to what > was already there. > > How much work would be involved in writing said script, however, is another matter. > > - Option 3 - wait until LiveCode can render PDFs directly as an object on a card > > This is obviously what you had hoped you could do and whilst not entirely > unreasonable, I hope you can appreciate from the above why you currently cannot - > particular on all platforms. > > PDFium does at least give us a starting point - however it isn't the easiest of libraries > to build or maintain building of and there's still a fair bit of work we need to do to > allow it to function cross-platform (not least the building of it for all platforms!). > > Also, lamentably, that is only one side of the story - you also need to generate PDFs, > which means some library to output PDF is needed which is happy to bind to PDFium's > rasterisation implementation. This is certainly not something which is exposed in the > public APIs of PDFium, and would probably require bespoke customisation of PDFium to > achieve. > > - Option 4 - focus on Mac/iOS and do other platforms later > > As mentioned above, both Mac and iOS include PDF rendering and emission as part of > CoreGraphics - they also include relatively straightforward APIs for drawing typeset > text. The process here would be: > > 1) Create a CG PDF output context > 2) Load your original PDF as a CG PDF object > 3) For each page: > i) Render the original page into the PDF output context > ii) Render the text into the appropriate places on the page > 4) Finalize the output context to generate a PDF > > I recently did some work for a business services request which needed to render > portions of a PDF to a new PDF on Mac - and it turned out to be around 50 lines of > C to do that. Rendering the text you would need through CoreText would be a little > more than that, but nothing too onerous. > > ---- > > So anyway, sorry to be the bearer of perhaps not entirely great news, however what > you want to do is certainly possible - but like most things will require some leg-work > and a little bit of patience and/or some financial investment. > > I do strongly suggest you contact business services (https://livecode.com/services/) > about what you need here. It is important to understand that whilst we would like to > do everything, we do need a way to prioritise what we focus on. Whilst PDF rendering > and output features are (obviously) quite widely useful for lots of things they are also > substantial and large features to develop and maintain (if they weren't we would be > surrounded by lots of open-source non-GPL implementations to choose from and base them > on) thus progress on them generally in terms of additions to the core product are likely > to be slow. However you do have a very specific use-case with well defined inputs and > outputs so we may be able to help you for far less then it would cost you to commercially > license the relevant cross-platform libraries you need and/or a platform which provides > the functionality out of the box. (My gut tells me that starting with Mac/iOS due to > their built in API support for what you want to do is probably the best first step to take > at least then you get a product which works as it needs to to - and like any venture, the > sooner you ship, the sooner you can generate revenue to reinvest and expand!). > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Mar 9 03:54:13 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 9 Mar 2017 09:54:13 +0100 Subject: should i report it as a bug when a library is not included into a standalone when "search for required inclusions" is selected In-Reply-To: <88FCFEC2-6652-4EEB-A6C0-45AF539C4D09@iotecdigital.com> References: <88FCFEC2-6652-4EEB-A6C0-45AF539C4D09@iotecdigital.com> Message-ID: Thanks Bob for your comment. I reported it now. Regards, Matthias Rebbe > Am 08.03.2017 um 01:23 schrieb Bob Sneidar via use-livecode >: > > If there is nothing unusual in how you start using the library, like in a do command or something, I think so. > > Bob S > > >> On Mar 7, 2017, at 16:09 , Matthias Rebbe via use-livecode > wrote: >> >> Hi, >> >> maybe a dumb question, but should i report it as a bug when a library is not automatically included into a standalone when "search for required inclusions" is selected in the standalone settings? >> >> 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 ali.lloyd at livecode.com Thu Mar 9 05:58:46 2017 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Thu, 09 Mar 2017 10:58:46 +0000 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: These issues sound like they are to do with Script Debug Mode. Please check if this is turned on in the Development menu. Mike, this sounds like it was probably your issue too, especially if trashing your prefs fixed it, as Script Debug Mode on is the default. It *does* sound like there may be a new issue with Script Debug Mode getting turned off somehow, which seems worth looking into. On Thu, Mar 9, 2017 at 6:29 AM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > Interesting? this was happening to me today. on a hunch I set the > gRevDevelopment to true? thinking that because I had messed with that > yesterday while using the remote debugger on my android phone? I had done > something that was blocking script debug -- related to the action of > answering "No" to the dialog asking if you want to run a remoteDebug > session, just after installing the standalone on the phone? because I > thought (have yet to test/reproduce? very tedious?) possibly that is at > least one action that might toggle script debug mode to off (even though it > appears checked?) and so your break point could possibly be ignored at that > point and until you reboot LC? > > Dunno, just was just fishing for possible recipes? > > but aha, gRevDevelopment, true: the break point was "honored" Of course > it starting stepping through a lot of IDE code, so I had to go back and set > the gRevDevelopment to "false" and now the break points work? > > ?.of course if it goes all the way back to 8.1.3 and 6, then it could be > anything?. > > BR > > > Mike Kerner wrote: > > Add a "breakpoint" line as the first line in the script > execute again > breakpoint still doesn't fire. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Mar 9 07:09:36 2017 From: heather at livecode.com (Heather Laine) Date: Thu, 9 Mar 2017 12:09:36 +0000 Subject: Script Profiler In-Reply-To: <002b01d2954c$d8c5cae0$8a5160a0$@net> References: <3f512297-f57f-bd21-3e71-cfa69a379043@livecode.com> <1487962055145-4712617.post@n4.nabble.com> <066b99cf-f367-381e-2b69-70149a00e7e0@livecode.com> <8DC59F88-B5B7-4A60-8AB0-FB5C0BF84B9A@iotecdigital.com> <1AB34EF2-7711-4E57-B713-C68447541E2C@iotecdigital.com> <88224D6D-24A5-4FD7-AA2E-0260AC708173@iotecdigital.com> <002b01d2954c$d8c5cae0$8a5160a0$@net> Message-ID: <0AE42C04-58F8-43AD-AFD6-1838F00BE73A@livecode.com> I made some enquiries from the team on this, and I'm told: You can only profile a stack, not an individual handler. It profiles the top stack when you start the profiler, so you just have to make sure the stack with the resizeStack handler is the top stack, then start the profiler. I hope this helps! Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 5 Mar 2017, at 01:07, Ralph DiMola via use-livecode wrote: > > Both the Remote Debugger and Script Profiler are exciting. There's only one > of me so I went for the script profiler first. Looked at the LC lesson and > it seemed simple enough... Enable, do some stuff in your stack and the > disable. I did that and the Profiler screen pops up but it's empty. Am I > missing something? How do I set the message/handler level to be profiled? > Say I want to see how long it takes to resize the stack. I first profile the > script in the resizestack handler but not any deeper. I then see that one of > the handlers called in the resizestack hander takes too long so now I want > to profile just that handler. > > Has anybody got this working? > > Thanks > > 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 heather at livecode.com Thu Mar 9 10:29:33 2017 From: heather at livecode.com (Heather Laine) Date: Thu, 9 Mar 2017 15:29:33 +0000 Subject: [Blog] Infinite LiveCode Progress Message-ID: <6F5A46C9-8621-4409-AC97-C9F9EE59ED7D@livecode.com> Folks, in case any of you missed it, LC9 dp6 has some great new functionality: https://livecode.com/livecode-9-0-dp-6-infinite-livecode-preview/ Enjoy! Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From MikeKerner at roadrunner.com Thu Mar 9 10:43:40 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 9 Mar 2017 10:43:40 -0500 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: I need to see if I can make it happen, again. I wonder if going back and forth between 9 to do remote debugging and 8 because 9 has issues may be causing it. Will file a bug report if I can repeat it. On Thu, Mar 9, 2017 at 5:58 AM, Ali Lloyd via use-livecode < use-livecode at lists.runrev.com> wrote: > These issues sound like they are to do with Script Debug Mode. Please check > if this is turned on in the Development menu. > > Mike, this sounds like it was probably your issue too, especially if > trashing your prefs fixed it, as Script Debug Mode on is the default. > > It *does* sound like there may be a new issue with Script Debug Mode > getting turned off somehow, which seems worth looking into. > > On Thu, Mar 9, 2017 at 6:29 AM Sannyasin Brahmanathaswami via use-livecode > < > use-livecode at lists.runrev.com> wrote: > > > Interesting? this was happening to me today. on a hunch I set the > > gRevDevelopment to true? thinking that because I had messed with that > > yesterday while using the remote debugger on my android phone? I had done > > something that was blocking script debug -- related to the action of > > answering "No" to the dialog asking if you want to run a remoteDebug > > session, just after installing the standalone on the phone? because I > > thought (have yet to test/reproduce? very tedious?) possibly that is at > > least one action that might toggle script debug mode to off (even though > it > > appears checked?) and so your break point could possibly be ignored at > that > > point and until you reboot LC? > > > > Dunno, just was just fishing for possible recipes? > > > > but aha, gRevDevelopment, true: the break point was "honored" Of course > > it starting stepping through a lot of IDE code, so I had to go back and > set > > the gRevDevelopment to "false" and now the break points work? > > > > ?.of course if it goes all the way back to 8.1.3 and 6, then it could be > > anything?. > > > > BR > > > > > > Mike Kerner wrote: > > > > Add a "breakpoint" line as the first line in the script > > execute again > > breakpoint still doesn't fire. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dochawk at gmail.com Thu Mar 9 11:45:01 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 9 Mar 2017 08:45:01 -0800 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: On Thu, Mar 9, 2017 at 7:43 AM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > I need to see if I can make it happen, again. I wonder if going back and > forth between 9 to do remote debugging and 8 because 9 has issues may be > causing it. Will file a bug report if I can repeat it. > FWIW . . . when early 7 got too bad, I'd load and save again in 5, reload in 7, and things usually got a bit better. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From devin_asay at byu.edu Thu Mar 9 12:31:02 2017 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 9 Mar 2017 17:31:02 +0000 Subject: JSON library on LC Server Message-ID: <1A7AB121-AE87-4E51-A4EC-F049564AFC1D@byu.edu> Can anyone tell me how/if one can use the JSON library from LC 8 on LC Server? I?m running Community Server v. 8.1.2 on a Linux server. I tried just calling JsonExport() in the .lc script, but it errors. Do I have to ?include? or ?start using? the library somehow? Thanks! Devin Asay Director Office of Digital Humanities Brigham Young University From andre at andregarzia.com Thu Mar 9 12:11:18 2017 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 9 Mar 2017 14:11:18 -0300 Subject: [Long] Moving a REST request from Desktop to Server In-Reply-To: <57C8F00D-1980-4785-AC95-B38F1A18D8BD@derbrill.de> References: <57C8F00D-1980-4785-AC95-B38F1A18D8BD@derbrill.de> Message-ID: Hi, I would shell() to curl or a shell script and parse the result. om om On Tue, Mar 7, 2017 at 8:56 PM, Malte Brill via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > I am trying to move a request I do from a desktop app to a liveCode server > script and am facing the problem that some of the stuff I use (most of it > libURL stuff) is not available on the server. Now I wonder how I could > translate it? > > Scenario is the following: > Problem is libURLLastRHHeaders() is unavailable on server and can not > easiely be copied from libURL > Anyone got an idea? > > local sCookieHeader > > on mouseUp > local tURL,tUser,tPassWord,tCookie,tSubmitId,tsubmit,tJson, > tJsonArray > local test > try > set the httpHeaders to empty > put ?aUser" into tUser > put ?aPassword" into tPassWord > put "264812" into tSubmitID > put "Log+in" into tSubmit > get libURLFormData("userName", tUser,"password", > tPassword,"submit",tSubmit,"submitID",tSubmitId) ? not available on > Server, but can be copied from libURL > post it to url "http://test.com/login.php" > _storeCookies libURLLastRHHeaders() ? needed to > authenticate. libURLLastRHHeaders unavailable > set the httpHeaders to sCookieHeader > put fld "URL" into tURL > put URL tURL into tJson > catch theErr > put theErr > end try > end mouseUp > > > ## Parse header returned from a server and create a cookie header that > ## can be sent back: Cookie: cookie1;cookie2;cookie3;... > private command _StoreCookies pHeader > local theCharNo,theCookieLine,theLineNo,theOffset > put empty into sCookieHeader > put 0 into theOffset > repeat forever > put lineoffset("Set-Cookie:", pHeader, theOffset) into > theLineNo > if theLineNo > 0 then > add theOffset to theLineNo > put line theLineNo of pHeader into theCookieLine > delete word 1 of theCookieLine ## Set-Cookie: > put offset(";", theCookieLine) into theCharNo > if theCharNo > 0 then > delete char theCharNo to -1 of > theCookieLine > end if > put theCookieLine & ";" after sCookieHeader > put theLineNo into theOffset > else > exit repeat > end if > end repeat > if the last char of sCookieHeader is ";" then > delete the last char of sCookieHeader > end if > if sCookieHeader is not empty then > put "Cookie: " before sCookieHeader > end if > return empty > end _StoreCookies > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From devin_asay at byu.edu Thu Mar 9 12:47:02 2017 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 9 Mar 2017 17:47:02 +0000 Subject: JSON library on LC Server In-Reply-To: <1A7AB121-AE87-4E51-A4EC-F049564AFC1D@byu.edu> References: <1A7AB121-AE87-4E51-A4EC-F049564AFC1D@byu.edu> Message-ID: <8E6CB5FE-3982-433F-B54C-4E38D65EF0F4@byu.edu> On Mar 9, 2017, at 10:31 AM, Devin Asay via use-livecode > wrote: Can anyone tell me how/if one can use the JSON library from LC 8 on LC Server? I?m running Community Server v. 8.1.2 on a Linux server. I tried just calling JsonExport() in the .lc script, but it errors. Do I have to ?include? or ?start using? the library somehow? Answered my own question with another google search. Peter B. answered the question in this thread a few months back: http://lists.runrev.com/pipermail/use-livecode/2015-November/221289.html So here?s what I did: Opened the LiveCode.app bundle on my Mac. Navigated to Contents > Tools > Extensions . Copied the com.livecode.library.json folder to the same folder on the server where my test script is. Included this statement at the beginning of my .lc test script: load extension from file "com.livecode.library.json/module.lcm? Works like a champ! But I wonder if there?s a less fiddly way to do it. Are these LCB libraries included in the LC server installation? Devin Devin Asay Director Office of Digital Humanities Brigham Young University From revdev at pdslabs.net Thu Mar 9 12:56:21 2017 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 9 Mar 2017 09:56:21 -0800 Subject: [Long] Moving a REST request from Desktop to Server In-Reply-To: References: <57C8F00D-1980-4785-AC95-B38F1A18D8BD@derbrill.de> Message-ID: +1 Andre - curl is definitely your friend for simple LC-server to other server communication. I maintain a server app that uses it to interact with the Vimeo server. https://curl.haxx.se/docs/ Phil Davis On 3/9/17 9:11 AM, Andre Garzia via use-livecode wrote: > Hi, > > I would shell() to curl or a shell script and parse the result. > > om om > > On Tue, Mar 7, 2017 at 8:56 PM, Malte Brill via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> I am trying to move a request I do from a desktop app to a liveCode server >> script and am facing the problem that some of the stuff I use (most of it >> libURL stuff) is not available on the server. Now I wonder how I could >> translate it? >> >> Scenario is the following: >> Problem is libURLLastRHHeaders() is unavailable on server and can not >> easiely be copied from libURL >> Anyone got an idea? >> >> local sCookieHeader >> >> on mouseUp >> local tURL,tUser,tPassWord,tCookie,tSubmitId,tsubmit,tJson, >> tJsonArray >> local test >> try >> set the httpHeaders to empty >> put ?aUser" into tUser >> put ?aPassword" into tPassWord >> put "264812" into tSubmitID >> put "Log+in" into tSubmit >> get libURLFormData("userName", tUser,"password", >> tPassword,"submit",tSubmit,"submitID",tSubmitId) ? not available on >> Server, but can be copied from libURL >> post it to url "http://test.com/login.php" >> _storeCookies libURLLastRHHeaders() ? needed to >> authenticate. libURLLastRHHeaders unavailable >> set the httpHeaders to sCookieHeader >> put fld "URL" into tURL >> put URL tURL into tJson >> catch theErr >> put theErr >> end try >> end mouseUp >> >> >> ## Parse header returned from a server and create a cookie header that >> ## can be sent back: Cookie: cookie1;cookie2;cookie3;... >> private command _StoreCookies pHeader >> local theCharNo,theCookieLine,theLineNo,theOffset >> put empty into sCookieHeader >> put 0 into theOffset >> repeat forever >> put lineoffset("Set-Cookie:", pHeader, theOffset) into >> theLineNo >> if theLineNo > 0 then >> add theOffset to theLineNo >> put line theLineNo of pHeader into theCookieLine >> delete word 1 of theCookieLine ## Set-Cookie: >> put offset(";", theCookieLine) into theCharNo >> if theCharNo > 0 then >> delete char theCharNo to -1 of >> theCookieLine >> end if >> put theCookieLine & ";" after sCookieHeader >> put theLineNo into theOffset >> else >> exit repeat >> end if >> end repeat >> if the last char of sCookieHeader is ";" then >> delete the last char of sCookieHeader >> end if >> if sCookieHeader is not empty then >> put "Cookie: " before sCookieHeader >> end if >> return empty >> end _StoreCookies >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 richmondmathewson at gmail.com Thu Mar 9 13:02:36 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 9 Mar 2017 20:02:36 +0200 Subject: Download LC Community: trapped. Message-ID: <0d0fb741-1753-c929-b186-e0edcdde901d@gmail.com> Until a few days ago, if you went via the OBSCURE green button right at the bottom-left of the LiveCode landing page [ www.livecode.com ] to the Open Source page [ www.livecode.org ] you could, by clicking on the "Download" text at the top of that page go to the download page [ www.downloads.livecode.com/livecode/ ]. But now you end up here: http://livecode.org/download-member-offer/ If you don't want a membership you end up here: https://livecode,org/download-with-donation/ If you decide you don't wish to donate right now you still have to specify a name and an e-mail address. So: NO anonymous download unless you happen to have previously bookmarked: downloads.livecode.com/livecode/ Not good. Richmond. From ambassador at fourthworld.com Thu Mar 9 13:06:22 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 9 Mar 2017 10:06:22 -0800 Subject: byteLen()? In-Reply-To: <7AC02A83-0D3C-43D5-AB82-C2E6B115949F@livecode.com> References: <7AC02A83-0D3C-43D5-AB82-C2E6B115949F@livecode.com> Message-ID: Mark Waddingham wrote: > On 9 Mar 2017, at 02:37, Richard Gaskin wrote: >> >> the len() function returns a character count, but with Unicode this >> may be very different than the byte size. >> >> Do we have a size() or byteLen() function? > > > No, there is no such function as the byte length is a property of > text which has been encoded with a specific encoding, not text in > general. > > the number of bytes in textEncode(tText, kEncoding) > > Should give you what you need. Thanks. I don't mind the verbosity, but I could use some clarity: There's been talk of LC using UTF-16 internally, but when I do this: on mouseUp put "Hello" into s put the number of bytes of s end mouseUp ...I get "5". When does LC use UTF-16, and when it's not UTF-16 is it still ISO-8959-1 or UTF-8? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mark at livecode.com Thu Mar 9 13:35:48 2017 From: mark at livecode.com (Mark Waddingham) Date: Thu, 09 Mar 2017 19:35:48 +0100 Subject: =?UTF-8?Q?byteLen=28=29=3F?= In-Reply-To: References: <7AC02A83-0D3C-43D5-AB82-C2E6B115949F@livecode.com> Message-ID: <815638159485979e211c32a1f9782ba8@livecode.com> On 2017-03-09 19:06, Richard Gaskin via use-livecode wrote: > Thanks. I don't mind the verbosity, but I could use some clarity: > > There's been talk of LC using UTF-16 internally, but when I do this: > > on mouseUp > put "Hello" into s > put the number of bytes of s > end mouseUp > > ...I get "5". > > When does LC use UTF-16, and when it's not UTF-16 is it still > ISO-8959-1 or UTF-8? Internally strings are stored as either UTF-16 or in the native encoding (MacRoman, Latin-1) depending on the content of the string and such (the engine transparently switches internal encoding as necessary). However, this is an internal implementation detail - it might do something completely different in the future... Before 7, the idea of 'byte' and 'char' were synonymous - if you used a string in the context of something expecting text it interpreted as being a string encoded in the native encoding, if you used a string in the context of something expecting binary data it interpreted as being just plain bytes. With the advent of 7 it is necessary to treat text and binary separately - they aren't the same thing at all for the simple reason that text only becomes binary when you choose a specific text encoding and apply it to the unicode string. In order to ensure that code written prior to 7 worked identically in 7 it was necessary to add an automatic conversion between text and binary which preserved the previous behavior which (essentially) viewed text and binary strings as being the same thing. Indeed, in the above code what is actually happening is this: on mouseUp put "Hello" into a put the number of bytes of (s) end mouseUp One important property which existed before 7 was that: the number of bytes in s == the number of chars in s However, the definition of 'char' changed in 7 to mean a Unicode grapheme - something which will often require many bytes to encode in any encoding (e.g. [e, combining-acute] is a perfectly valid way to express e-acute in Unicode - taking two codepoints, and not one). In order to keep the above equivalence (which would break many things if it were not kept) the implicit-text-to-data conversion is defined as follows: repeat for each char tChar in tString get textEncode(tChar, "native") if textDecode(it, "native") is tChar then put it after tData else put "?" after tData end if end repeat (Note: The engine does work quite hard to keep things as equivalent as possible - it normalizes tString to NFC first so that it doesn't matter if the string has passed through a process which has happened to decompose it, or if it has come from a source which favours decomposed representations - most notably Mac HFS filenames). This approach means that any multi-codepoint character in Unicode still maps to a single byte - and any non-updated code which manipulates strings as if they are data will still work (albeit with some data loss in regards the original Unicode string - which it wasn't written to understand anyway). In the future, it is entirely possible that we will make it a runtime error to implicitly convert between data and string (don't worry, it wouldn't be the default behavior) because if you aren't clear about how you are doing the conversion (i.e. which conversion you are using) it is a potential source of hard to find errors in code. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Thu Mar 9 14:19:32 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 9 Mar 2017 11:19:32 -0800 Subject: Download LC Community: trapped. In-Reply-To: <0d0fb741-1753-c929-b186-e0edcdde901d@gmail.com> References: <0d0fb741-1753-c929-b186-e0edcdde901d@gmail.com> Message-ID: Richmond Mathewson wrote: > Until a few days ago, if you went via the OBSCURE green button right > at the bottom-left of the LiveCode landing page [ www.livecode.com ] > to the Open Source page [ www.livecode.org ] you could, by clicking > on the "Download" text at the top of that page go to the download page > [ www.downloads.livecode.com/livecode/ ]. > > But now you end up here: http://livecode.org/download-member-offer/ > > If you don't want a membership you end up here: > https://livecode,org/download-with-donation/ > > If you decide you don't wish to donate right now you still have to > specify a name and an e-mail > address. > > So: NO anonymous download unless you happen to have previously > bookmarked: > > downloads.livecode.com/livecode/ > > Not good. Agreed. We all recognize the value of building a mailing list, but the only emails worth sending are to those who want to receive them. Optional sign-up is excellent. Requiring personal information just to download a binary, not so much. People are increasingly concerned about privacy, and for good reason. The open source community in particular is keenly sensitive to this issue; they consider protecting privacy a critical priority. If we are to expand LC's audience, we want it to be as easy as possible for everyone to install it and start building great apps with it. Anything that impedes that goal should be reviewed. I've had discussions with the web team on related issues, and will encourage them to return to offering unfettered access. All of us want everyone to enjoy LiveCode, and if we're going to build a growing ecosystem we have to remain mindful of details like this along the way. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From hh at hyperhh.de Thu Mar 9 14:55:37 2017 From: hh at hyperhh.de (hh) Date: Thu, 9 Mar 2017 20:55:37 +0100 Subject: Working browser widget/linux-flavour combinations? Message-ID: <1005C6B6-73E8-43F0-9388-A1A7C0D85BEF@hyperhh.de> I would like to test some browser interaction on linux. Please, could someone who works with a LC version that has NO problems with the browser widget tell me this working 32/64 bit LC version - linux flavour combination? Thanks in advance. From richmondmathewson at gmail.com Thu Mar 9 15:02:37 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 9 Mar 2017 22:02:37 +0200 Subject: Working browser widget/linux-flavour combinations? In-Reply-To: <1005C6B6-73E8-43F0-9388-A1A7C0D85BEF@hyperhh.de> References: <1005C6B6-73E8-43F0-9388-A1A7C0D85BEF@hyperhh.de> Message-ID: Never tried it; so have just done: Xubuntu 16.04 64-bit, 8.1.3: "something" Had to KILL Livecode. As above, 9.0.0 DP-6: no obvious difference. Tut, tut, tut. sincerely, Richmond. On 3/9/17 9:55 pm, hh via use-livecode wrote: > I would like to test some browser interaction on linux. > > Please, could someone who works with a LC version that has NO > problems with the browser widget tell me this working 32/64 bit > LC version - linux flavour combination? > > Thanks in advance. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Thu Mar 9 15:42:05 2017 From: hh at hyperhh.de (hh) Date: Thu, 9 Mar 2017 21:42:05 +0100 Subject: Working browser widget/linux-flavour combinations? Message-ID: <902244B3-C9E7-4894-A7E1-3278742C465B@hyperhh.de> Thanks Richmond. There are bug reports from Sept 2016 reporting this 'something'-answer you describe above. I tested with Mint 173 to latest, 32bit. Always had to kill LC 8/9 after the the something-dialog, exactly as reported to LQCC (#17715 and links there). I can not believe that nothing changed since then: The browser widget is a 'showcase'-member of all LC advertising. Should at least basically work. > Richmond wrote: > Xubuntu 16.04 64-bit, 8.1.3: "something". Had to KILL Livecode. > As above, 9.0.0 DP-6: no obvious difference. Tut, tut, tut. From richmondmathewson at gmail.com Thu Mar 9 15:54:20 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 9 Mar 2017 22:54:20 +0200 Subject: Working browser widget/linux-flavour combinations? In-Reply-To: <902244B3-C9E7-4894-A7E1-3278742C465B@hyperhh.de> References: <902244B3-C9E7-4894-A7E1-3278742C465B@hyperhh.de> Message-ID: However "showcase" the browser widget may be you should remember that, as far as I can see, Linux versions come a long way down the food chain. Richmond. On 3/9/17 10:42 pm, hh via use-livecode wrote: > Thanks Richmond. > > There are bug reports from Sept 2016 reporting this 'something'-answer you > describe above. > > I tested with Mint 173 to latest, 32bit. Always had to kill LC 8/9 after the > the something-dialog, exactly as reported to LQCC (#17715 and links there). > > I can not believe that nothing changed since then: The browser widget is a > 'showcase'-member of all LC advertising. Should at least basically work. > >> Richmond wrote: >> Xubuntu 16.04 64-bit, 8.1.3: "something". Had to KILL Livecode. >> As above, 9.0.0 DP-6: no obvious difference. Tut, tut, tut. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Thu Mar 9 16:20:40 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 9 Mar 2017 21:20:40 +0000 Subject: Working browser widget/linux-flavour combinations? In-Reply-To: References: <902244B3-C9E7-4894-A7E1-3278742C465B@hyperhh.de> Message-ID: Hi all, The Browser widget does work as expected in the *64-bit* Linux versions we officially support. I have an Ubuntu 16.04 VM and I can confirm this. **However**, several users have reported some strange problems on particular Linux distros (including Ubuntu 16.04), which although they seem unrelated to each other, they are actually related. One of those problems is the "something" dialog. Another problem is the non-functional Dictionary (note that the Dictionary uses the Browser widget). The common factor of all those problems seems to be locale-related. If you see those problems, the workaround is to launch LC from the terminal using this command: LC_ALL= LC_NUMERIC=C "path/to/livecode_executable" For anyone interested, see bug http://quality.livecode.com/show_bug.cgi?id=16848 and all the bugs that are mentioned there. Best regards, Panos -- On Thu, Mar 9, 2017 at 8:54 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > However "showcase" the browser widget may be you should remember that, as > far as I can see, > Linux versions come a long way down the food chain. > > Richmond. > > > On 3/9/17 10:42 pm, hh via use-livecode wrote: > >> Thanks Richmond. >> >> There are bug reports from Sept 2016 reporting this 'something'-answer you >> describe above. >> >> I tested with Mint 173 to latest, 32bit. Always had to kill LC 8/9 after >> the >> the something-dialog, exactly as reported to LQCC (#17715 and links >> there). >> >> I can not believe that nothing changed since then: The browser widget is a >> 'showcase'-member of all LC advertising. Should at least basically work. >> >> Richmond wrote: >>> Xubuntu 16.04 64-bit, 8.1.3: "something". Had to KILL Livecode. >>> As above, 9.0.0 DP-6: no obvious difference. Tut, tut, tut. >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Thu Mar 9 16:24:50 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 9 Mar 2017 13:24:50 -0800 Subject: byteLen()? In-Reply-To: <815638159485979e211c32a1f9782ba8@livecode.com> References: <815638159485979e211c32a1f9782ba8@livecode.com> Message-ID: <54fc95be-b490-029f-3bc9-0370c5a99ef3@fourthworld.com> Thanks for that background, Mark. I always appreciate your informal tech notes. I'm copying only the most relevant parts here - others looking for a good reach will want the full post if you missed it: http://lists.runrev.com/pipermail/use-livecode/2017-March/235278.html Mark Waddingham wrote: > This approach means that any multi-codepoint character in Unicode > still maps to a single byte - and any non-updated code which > manipulates strings as if they are data will still work (albeit with > some data loss in regards the original Unicode string - which it > wasn't written to understand anyway). I'm not sure I follow that, but it almost sounds like no matter what the encoding each char is mapped to one byte, so a 5-chart string like "hello" will take up 5 bytes - is that right? Doesn't feel right, but there's so much to both Unicode and how LC handles it that I've lost my confidence with things like this. Your guidance is appreciated, and perhaps it may help if I describe the use-case at hand: I have some large files I want to open and read as binary (for speed mostly; if there's a reason I should be doing that as text let me know), then I'll work my way through it looking for substrings, keeping track of the byte offsets within the data where those can be found. Once I have my list of byte offsets, I can save that as a sort of index file, and use "seek" or "read at" to go directly to that portion of the larger files whenever I need to access that data. The data files may use a variety of encodings, mostly UTF-8 but I can expect Latin-ISO or perhaps even UTF-16. In short, encoding will may be known in advance. But since I'm working with binary data the whole time, the encoding shouldn't matter, should it? Earlier you wrote: the number of bytes in textEncode(tText, kEncoding) ...which implies that I would need to know the encoding (kEncoding), but do I really need textEncode for the use-case described 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 ahsoftware at sonic.net Thu Mar 9 16:27:11 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 9 Mar 2017 13:27:11 -0800 Subject: Working browser widget/linux-flavour combinations? In-Reply-To: <1005C6B6-73E8-43F0-9388-A1A7C0D85BEF@hyperhh.de> References: <1005C6B6-73E8-43F0-9388-A1A7C0D85BEF@hyperhh.de> Message-ID: <5d218f15-1bb7-7fcc-e68f-a1f41d5202e7@sonic.net> On 03/09/2017 11:55 AM, hh via use-livecode wrote: > I would like to test some browser interaction on linux. > > Please, could someone who works with a LC version that has NO > problems with the browser widget tell me this working 32/64 bit > LC version - linux flavour combination? > > Thanks in advance. Just tried it, and surprisingly enough, the browser widget works for me in 9.0-dp6. Nobody is more surprised than I am. Just a simple smoke test, but even so... 64-bit Linux Mint 17.3 cinnamon. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Thu Mar 9 16:32:05 2017 From: paul at researchware.com (Paul Dupuis) Date: Thu, 9 Mar 2017 16:32:05 -0500 Subject: Download LC Community: trapped. In-Reply-To: <0d0fb741-1753-c929-b186-e0edcdde901d@gmail.com> References: <0d0fb741-1753-c929-b186-e0edcdde901d@gmail.com> Message-ID: <0cb9b907-faec-a913-e1a2-86fef4ab3916@researchware.com> On 3/9/2017 1:02 PM, Richmond Mathewson via use-livecode wrote: > If you decide you don't wish to donate right now you still have to > specify a name and an e-mail > address. > > So: NO anonymous download unless you happen to have previously > bookmarked: > > downloads.livecode.com/livecode/ > > Not good. In this age of massive invasion of privacy by governments, corporations, and unpleasant groups and individuals, I can respect not wanting to provide a name and email address for all sorts of reasons. However, on the flip side, LiveCode Open Source (which I backed) may have been a mistake. I backed the Open Source kickstarter for 2 reasons: (1) in hopes more people would develop for LiveCode; and (2) so the source would be there in the worst case scenario that LiveCode, Ltd went kaput. The cost to switch our products to another language would be the end of our business. With 75% of downloads being Community, only 25% of the user base is paying for 100% of the development. The idea being that those that get LiveCode for free would, in some part, contribute back to the Open Source effort that, in turn, expands the commercial offerings. The statistics show that is only minimally happening and not in any way to support the cost of giving LiveCode to 75% of the user base free. I hope this changes. In this context, asking for a email address in an attempt to market to the people free access to LiveCode is a small thing to ask for. If the open source side of the house doesn't add more capabilities to LiveCode or self-support itself through voluntary contributions to a greater degree over time, then the practical reality is that it will ultimately fail. I hope that it does not fail. From MikeKerner at roadrunner.com Thu Mar 9 17:25:02 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 9 Mar 2017 17:25:02 -0500 Subject: mergav exposure Message-ID: Is anybody doing anything with mergAV? It doesn't appear to be a popular topic. I'm having a problem with getting the exposure set to "continuous" - it doesn't seem to do anything, even if I first set it to "auto", which the docs suggest is the first thing that has to be done. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From richmondmathewson at gmail.com Thu Mar 9 17:26:19 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 10 Mar 2017 00:26:19 +0200 Subject: Download LC Community: trapped. In-Reply-To: <0cb9b907-faec-a913-e1a2-86fef4ab3916@researchware.com> References: <0d0fb741-1753-c929-b186-e0edcdde901d@gmail.com> <0cb9b907-faec-a913-e1a2-86fef4ab3916@researchware.com> Message-ID: <3be6e4d5-2452-f2f0-b151-fbb1f568f574@gmail.com> Asking for an e-mail address is a small thing to ask for. But _forcing_, rather than _asking_, isn't quite the same thing. -------- Personal blether starts now ------- I don't feel capable in a big way to contribute to LiveCode development, so I do try to send bug reports in when I fall over 'bugs'. I am still wondering about trying to make a simplified interface for some sort of cut-down version of LiveCode using block-programming [ c.f. Scratch and so on ]. I was wondering about having a script-editor with blocks . . . Whether that would actually constitute devloping FOR Livecode is a moot point. One of my motives for considering it is that it might fuel greater uptake at the child-teenage-educational end of the spectrum working on the theory that children who start with Livecode via block-programming might progress to "proper" Livecode programming after a while. Unfortunately I suspect that my idea is, like the ideas of many would-be contributors, quite far down the list of my day-to-day priorities: running a school, teaching, developing my Devawriter Pro, Professional Development, being a husband and a father, and so on and so forth . . . I do hope that in June/Jult/August I will find both the time and the energy to get started on this . . . and, who knows, some folk may deide to join in the "fun", although I haven't noticed much "communal'" stuff going on in this "community" to be honest. ------ Personal blether ends ---- And it is, indeed a gae richt scunner anent maist fowk's glisk til the free version, but I for yin amnae ma brither's keeper nor dictator forbye. Richmond. On 3/9/17 11:32 pm, Paul Dupuis via use-livecode wrote: > On 3/9/2017 1:02 PM, Richmond Mathewson via use-livecode wrote: >> If you decide you don't wish to donate right now you still have to >> specify a name and an e-mail >> address. >> >> So: NO anonymous download unless you happen to have previously >> bookmarked: >> >> downloads.livecode.com/livecode/ >> >> Not good. > > In this age of massive invasion of privacy by governments, corporations, > and unpleasant groups and individuals, I can respect not wanting to > provide a name and email address for all sorts of reasons. > > However, on the flip side, LiveCode Open Source (which I backed) may > have been a mistake. I backed the Open Source kickstarter for 2 reasons: > (1) in hopes more people would develop for LiveCode; and (2) so the > source would be there in the worst case scenario that LiveCode, Ltd went > kaput. The cost to switch our products to another language would be the > end of our business. > > With 75% of downloads being Community, only 25% of the user base is > paying for 100% of the development. The idea being that those that get > LiveCode for free would, in some part, contribute back to the Open > Source effort that, in turn, expands the commercial offerings. The > statistics show that is only minimally happening and not in any way to > support the cost of giving LiveCode to 75% of the user base free. I hope > this changes. > > In this context, asking for a email address in an attempt to market to > the people free access to LiveCode is a small thing to ask for. If the > open source side of the house doesn't add more capabilities to LiveCode > or self-support itself through voluntary contributions to a greater > degree over time, then the practical reality is that it will ultimately > fail. > > I hope that it does not fail. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Mar 9 18:18:55 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 9 Mar 2017 15:18:55 -0800 Subject: Download LC Community: trapped. In-Reply-To: <0cb9b907-faec-a913-e1a2-86fef4ab3916@researchware.com> References: <0cb9b907-faec-a913-e1a2-86fef4ab3916@researchware.com> Message-ID: <170cc336-fa0d-97cb-d60e-00645eb55b47@fourthworld.com> Paul Dupuis wrote: > With 75% of downloads being Community, only 25% of the user base is > paying for 100% of the development. The idea being that those that get > LiveCode for free would, in some part, contribute back to the Open > Source effort that, in turn, expands the commercial offerings. The > statistics show that is only minimally happening and not in any way to > support the cost of giving LiveCode to 75% of the user base free. I > hope this changes. The value of an open source edition is more than direct contributions, and even contribution comes in many forms. Code contributions are minimal at this time, but that's a function of ecosystem size. With any FOSS project only a percentage of users will have the intersection of skills, interest, and time to contribute code. Beyond code we have larger percentages of contribution to docs, and even now a majority of technical support is covered outside company expense, through forums and other online sources and many in-person volunteers. In short, a slow start but far beyond where we were when v6 was the first open source edition. But of course we'll want to improve on that going forward. And the best part there is that the path to success for both proprietary-license revenue and open source contribution is the same: Growing the platform's audience. LiveCode is a great technology. The biggest thing holding it back has nothing to do with the product itself, it's that few have ever heard of it. The most valuable user engagement we can pursue, more valuable than emailing them a solicitation for money, is first getting them to use LiveCode. As many as possible. And to do that it must be as easy as possible to get it. Anything that lengthens the distance between "What is LiveCode?" and "Hey, I'm having a great time with LiveCode!" is holding the platform back. > In this context, asking for a email address in an attempt to market to > the people free access to LiveCode is a small thing to ask for. For the proprietary trial edition, I wholeheartedly agree. The issue here is specific to the open source Community Edition, and I believe it's worth taking the time to explore why the dynamics and expectations are so different: The only value in email is a conversion to a sale. Everything else related to email marketing is expense. Conversion rates for email aren't zero, but they are commonly understood to be low. In fact, if the hard cost of email marketing wasn't as low as it is no one would bother with it at all. It's that low. Most SEO brings people to the .com site, so those on the .org site are the subset who specifically went there to get the open source edition of LiveCode. The conversion rate there is understandably much lower than on the .com site. After all, someone at the .com site is there to look for a proprietary product. Their interests are very different from the subset who move on to .org. The visitors at .com expect that if they like what they see in LiveCode they'll pay. They're predisposed to conversion. But open source folks use software for a wide range of reasons, and the percentage likely to convert to a proprietary license is *much* smaller. So while it's difficult to estimate exactly how low the value of an email address is to the company, there's little question how increasingly valuable maintaining privacy is the many people. And open source communities tend to be unusually well educated in matters of privacy and security. Everyone here, proprietary and open source devs alike, wants to see LiveCode adoption expand far beyond where it is today. That is the primary objective of all activities at this time. Every other goal pales by comparison in importance. Ecosystem size is the driver of both contributions and proprietary licenses, and the current small size is the most-cited reason I hear for choosing something else. We need to see teachers using LiveCode, and students, and hobbyists, and many other categories who will not pay for a proprietary product, and most won't ever contribute code to the project either. But what they will contribute is credibility for the platform. Every person using LiveCode reduces the "I've never heard of it" factor. As Geoff Moore reminds us in Crossing the Chasm, in early stages of growth adopters will tend to be the more adventurous personality types, those willing to try something new. Among them will be influencers, the people their friends turn to for advice about what software they should use. When we look at popular development tools today, with a handful of exceptions made possible only through historical circumstances that cannot be repeated, all of them are open source. An open source edition is necessary in the 21st century. And if it's going to serve the dev team at all, it must be pursued earnestly. We can't afford to lose credibility with the audience most sensitive to privacy concerns. And best of all, it's unnecessary: The value of an email address is only non-zero when it's given freely. So have sign-up as an option, rather than a requirement, and the problem is very easily solved. -- Richard Gaskin LiveCode Community Liaison richard at livecode.org From hh at hyperhh.de Thu Mar 9 19:26:30 2017 From: hh at hyperhh.de (hh) Date: Fri, 10 Mar 2017 01:26:30 +0100 Subject: Searching "teh" or tihs" Message-ID: <3BC10FFB-1790-40EC-A5B4-EF9F53168EBD@hyperhh.de> Searching is important for your project? Would you like to ask "Did you mean the?" if user searches "teh"? I've implemented a fuzzySearch algorithm in LiveCode script: http://forums.livecode.com/viewtopic.php?p=152202#p152202 Now if you wish to look up "the" or "this" then fuzzySearch will find it (among others) by searching "teh" or tihs", with a penalty score of one only for swapping the chars. From bogdanoff at me.com Thu Mar 9 19:57:26 2017 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 09 Mar 2017 16:57:26 -0800 Subject: Searching "teh" or tihs" In-Reply-To: <3BC10FFB-1790-40EC-A5B4-EF9F53168EBD@hyperhh.de> References: <3BC10FFB-1790-40EC-A5B4-EF9F53168EBD@hyperhh.de> Message-ID: <04BEE82E-4866-455E-ACB0-DCB5A013C410@me.com> hh, This looks intriguing! I?m working on a commercial project that could use this. What is your license? Peter Bogdanoff On Mar 9, 2017, at 4:26 PM, hh via use-livecode wrote: > Searching is important for your project? > Would you like to ask "Did you mean the?" if user searches "teh"? > > I've implemented a fuzzySearch algorithm in LiveCode script: > http://forums.livecode.com/viewtopic.php?p=152202#p152202 > > Now if you wish to look up "the" or "this" then fuzzySearch will find > it (among others) by searching "teh" or tihs", with a penalty score of > one only for swapping the chars. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 9 20:29:49 2017 From: hh at hyperhh.de (hh) Date: Fri, 10 Mar 2017 02:29:49 +0100 Subject: Searching "teh" or tihs" Message-ID: <0D159999-FB6D-4250-A613-9C010D84A50F@hyperhh.de> > Peter Bogdanoff wrote: > This looks intriguing! I?m working on a commercial project that > could use this. What is your license? The code is based on pseudocode from https://en.wikipedia.org/wiki/Damerau?Levenshtein_distance From my side it's free for non-commercial use, I only wish to have a citation. For commercial use of my published scripts I would like to have 1. a citation 2. an "At-least-donation", one time, for the +++++++++ CFFL = Community Fund for LiveCoders: +++++++++ For such LiveCoders who help the community such a lot in the forums or here in the list and who really _need_ some money (I know some). The donation for this script here should be _at least_ $10 (one time). The fund is a new idea. Certainly Richard Gaskin is willing to manage such a fund (assuming he doesn't need such funding). OK Richard? From capellan2000 at gmail.com Thu Mar 9 20:30:30 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Thu, 9 Mar 2017 21:30:30 -0400 Subject: Download LC Community: trapped Message-ID: on Thu, 9 Mar 2017, Richard Gaskin wrote: > The value of an email address is only non-zero > when it's given freely. So have sign-up as an option, > rather than a requirement, and the problem > is very easily solved. Emails directions could be really useful to open a direct communication link with newcomers and our LiveCode Community. Most of the time, new developers in this platform do not know about some old but useful learning resources that longtimers take for granted, so these essential resources are basically invisible for us. Probably one of the most eye opening information for new developers is how others are using LiveCode. Al From andre at andregarzia.com Thu Mar 9 20:40:59 2017 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 9 Mar 2017 22:40:59 -0300 Subject: Searching "teh" or tihs" In-Reply-To: <3BC10FFB-1790-40EC-A5B4-EF9F53168EBD@hyperhh.de> References: <3BC10FFB-1790-40EC-A5B4-EF9F53168EBD@hyperhh.de> Message-ID: Congratulations on the fuzzysearch. I don't know how you did it but for the English language, I remember both soundex and its refinement called metaphone, both algorithms are made for this kind of situation. I think that Levenshtein distance based algos are the way to go for this stuff these days but are a bit beyond of what I am used to developing... On Thu, Mar 9, 2017 at 9:26 PM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > Searching is important for your project? > Would you like to ask "Did you mean the?" if user searches "teh"? > > I've implemented a fuzzySearch algorithm in LiveCode script: > http://forums.livecode.com/viewtopic.php?p=152202#p152202 > > Now if you wish to look up "the" or "this" then fuzzySearch will find > it (among others) by searching "teh" or tihs", with a penalty score of > one only for swapping the chars. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From roger.e.eller at sealedair.com Thu Mar 9 20:58:36 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 9 Mar 2017 20:58:36 -0500 Subject: Download LC Community: trapped. In-Reply-To: <3be6e4d5-2452-f2f0-b151-fbb1f568f574@gmail.com> References: <0d0fb741-1753-c929-b186-e0edcdde901d@gmail.com> <0cb9b907-faec-a913-e1a2-86fef4ab3916@researchware.com> <3be6e4d5-2452-f2f0-b151-fbb1f568f574@gmail.com> Message-ID: On Mar 9, 2017 5:26 PM, "Richmond Mathewson via use-livecode" < use-livecode at lists.runrev.com> wrote: > > Asking for an e-mail address is a small thing to ask for. > > But _forcing_, rather than _asking_, isn't quite the same thing. > > -------- Personal blether starts now ------- > > I don't feel capable in a big way to contribute to LiveCode development, > so I do try to send bug reports in when I fall over 'bugs'. > > I am still wondering about trying to make a simplified interface for some sort of > cut-down version of LiveCode using block-programming [ c.f. Scratch and so on ]. > > I was wondering about having a script-editor with blocks . . . Things of the past could easily be new again. Authoring environments come to mind. Amiga Vision was a favorite of mine for stringing together multimedia with timers, synchronized narration, and even simple button logic. I could see kids in a beginners LiveCode class using blocks to at least design app concepts, and simple logic structures. https://www.youtube.com/watch?v=mqywIVs2S4w > > Richmond. ~Roger From Mark_Smith at cpe.umanitoba.ca Thu Mar 9 21:03:22 2017 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Thu, 9 Mar 2017 18:03:22 -0800 (PST) Subject: IOS Provisioning Profile... again In-Reply-To: <66148A47-1A51-41A1-AD00-26F62B1AA331@mac.com> References: <66148A47-1A51-41A1-AD00-26F62B1AA331@mac.com> Message-ID: <1489111402231-4712961.post@n4.nabble.com> Just a further question to this thread. Is it possible to deploy (without going through the app store) and not have to renew the certificates every year? It's a major bane to have to update these things all the time. Thanks Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/IOS-Provisioning-Profile-again-tp4705953p4712961.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Thu Mar 9 21:14:53 2017 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 10 Mar 2017 03:14:53 +0100 Subject: IOS Provisioning Profile... again In-Reply-To: <1489111402231-4712961.post@n4.nabble.com> References: <66148A47-1A51-41A1-AD00-26F62B1AA331@mac.com> <1489111402231-4712961.post@n4.nabble.com> Message-ID: <7cd82cf7-d730-9516-6be4-163cafd8e0eb@economy-x-talk.com> If you don't want to renew the certificates every year, you can move to Android. Users of Android phones can (temporarily) allow for the installation of apk's from unknown sources (i.e. signed for development only). Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 10-Mar-17 om 03:03 schreef Mark Smith via use-livecode: > Just a further question to this thread. Is it possible to deploy (without > going through the app store) and not have to renew the certificates every > year? It's a major bane to have to update these things all the time. > > Thanks > > Mark > From paul at researchware.com Thu Mar 9 21:22:12 2017 From: paul at researchware.com (Paul Dupuis) Date: Thu, 9 Mar 2017 21:22:12 -0500 Subject: Download LC Community: trapped. In-Reply-To: <170cc336-fa0d-97cb-d60e-00645eb55b47@fourthworld.com> References: <0cb9b907-faec-a913-e1a2-86fef4ab3916@researchware.com> <170cc336-fa0d-97cb-d60e-00645eb55b47@fourthworld.com> Message-ID: On 3/9/2017 6:18 PM, Richard Gaskin via use-livecode wrote: > Growing the platform's audience. You make a good point here. I wish i knew whether the open Source effort significantly grew the userbase over whatever trend it was on before the OSS effort and whether the actual number of paying customers shrunk (in real numbers, not a percentage), or remained on a constant trend, or grew after the OSS release? If 75% of downloads are Community and 25% paid (approximate figures LiveCode has stated in the last year) but real numbers for both have increased since the OSS launch, that would paint a more favorable picture. In a way, my musings are a moot point. I have confidence in Kevin and LiveCode, Ltd to keep the company viable and moving forward so time will work all these questions out. From Mark_Smith at cpe.umanitoba.ca Thu Mar 9 21:18:41 2017 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Thu, 9 Mar 2017 18:18:41 -0800 (PST) Subject: IOS Provisioning Profile... again In-Reply-To: <7cd82cf7-d730-9516-6be4-163cafd8e0eb@economy-x-talk.com> References: <66148A47-1A51-41A1-AD00-26F62B1AA331@mac.com> <1489111402231-4712961.post@n4.nabble.com> <7cd82cf7-d730-9516-6be4-163cafd8e0eb@economy-x-talk.com> Message-ID: <1489112321078-4712965.post@n4.nabble.com> Thanks Mark. It's not the installation that is the problem - it's the fact that the application stops working after a year then you have to get new certificates, recompile, reinstall, etc. To parrot Donald Trump - "it's a nightmare, a TOTAL disaster" :) (Just kidding). Its an inconvenience for me, the developer. I don't think the client would be interested in changing platforms for that. But maybe... Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/IOS-Provisioning-Profile-again-tp4705953p4712965.html Sent from the Revolution - User mailing list archive at Nabble.com. From Mark_Smith at cpe.umanitoba.ca Thu Mar 9 21:11:33 2017 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Thu, 9 Mar 2017 18:11:33 -0800 (PST) Subject: [Blog] Infinite LiveCode Progress In-Reply-To: <6F5A46C9-8621-4409-AC97-C9F9EE59ED7D@livecode.com> References: <6F5A46C9-8621-4409-AC97-C9F9EE59ED7D@livecode.com> Message-ID: <1489111893142-4712963.post@n4.nabble.com> Speaking of Infinite, I have been asked to upgrade an older iPad product (which was developed in 5.0) and I thought while I am in there I would like to tackle the issue of a native look and feel. Any progress on stretch goal 3 - a native field widget? If it is going to be ready in the next month or two it probably is worth waiting for. If not, I'll just dive in with the old UI and tackle this in another revision. Thanks Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Blog-Infinite-LiveCode-Progress-tp4712933p4712963.html Sent from the Revolution - User mailing list archive at Nabble.com. From james at thehales.id.au Thu Mar 9 22:11:13 2017 From: james at thehales.id.au (James Hale) Date: Fri, 10 Mar 2017 14:11:13 +1100 Subject: Download LC Community: trapped. Message-ID: <1B6B368C-53A9-4892-B558-C5F6DC9E00D1@thehales.id.au> Richard wrote: > Most SEO brings people to the .com site, so those on the .org site are > the subset who specifically went there to get the open source edition of > LiveCode. The conversion rate there is understandably much lower than > on the .com site. > > After all, someone at the .com site is there to look for a proprietary > product. Their interests are very different from the subset who move on > to .org. The visitors at .com expect that if they like what they see in > LiveCode they'll pay. They're predisposed to conversion. I still don't understand why this distinction was made. Although my professional buying was in the tertiary sector I always went to a .com sites unless it didn't exist. Many of the solutions we investigated over the years were both open source and no cost to education as well as proprietary for commercial use (which may include education depending on the context of usage.) None that I can remember had two websites. Indeed it was always of value to be able to directly compare the no-cost to cost versions to see if the propriety offer was more suitable. This is no longer possible on the LC .com site. It used to be. The last time I looked at the .org site it was very much a poor cousin to the .com site. None of the resource pages were to be seen, just a list of the community communication channels. The membership option is new. (Well recycled) and a great idea. Although I did notice one component being access to nightly builds. ????!!! Is this true? James From james at thehales.id.au Thu Mar 9 22:14:17 2017 From: james at thehales.id.au (James Hale) Date: Fri, 10 Mar 2017 14:14:17 +1100 Subject: Nightly builds Message-ID: I just noticed one of the benefits to membership of the open source community is access to nightly builds. Can anyone tell me how this is possible? Is it only for the community version? Is there a link or is one expected to make the build oneself? Or is this just smoke and mirrors? James From hh at hyperhh.de Thu Mar 9 22:41:16 2017 From: hh at hyperhh.de (hh) Date: Fri, 10 Mar 2017 04:41:16 +0100 Subject: Working browser widget/linux-flavour combinations? Message-ID: <82161FE5-5091-421F-B9E6-788F02BC8CAC@hyperhh.de> > Mark Wieder wrote: > ... worked in 9.0-dp6 ... 64-bit Linux Mint 17.3 cinnamon. So I tried Mint 173 cinnamon 32 bit and Mint 181 cinnamon 64 bit, used LC 8 and LC 9, in Virtualbox on Mac and on a 64 bit Linux box. Both show with the browser widget the "something"-window that Richmond described and LC is to be 'killed' after trying to use the widget. Now launching from Terminal with Panos' advice ( LC_ALL= LC_NUMERIC=C "path/to/livecode_executable" ) brings up a widget, yes. But this works sadly only "halfway": No context-menu, not even for navigation, no connection to localhost possible, limited HTML5 support (some files don't work which work in Win and Mac without any problem). Is the widget not a 'modern browser' in linux? Or is the installation of special lib-files required to have it fully working? From brahma at hindu.org Thu Mar 9 23:29:36 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 10 Mar 2017 04:29:36 +0000 Subject: [Blog] Infinite LiveCode Progress In-Reply-To: <6F5A46C9-8621-4409-AC97-C9F9EE59ED7D@livecode.com> References: <6F5A46C9-8621-4409-AC97-C9F9EE59ED7D@livecode.com> Message-ID: <09C3381E-C8B9-4FB9-8FA5-FCD40B0C3B87@hindu.org> heather wrote: " Folks, in case any of you missed it, LC9 dp6 has some great new functionality:" Beware: I have been doing "great work" (by that I means squashing bugs and running tests) in 9dp5, but 9dp6 completely trashed the android standalone build (on the phone only? my repository scripts and binaries are fine, I am filing a report) I switched back to 9dp5, right away? and ran the test again and it performed perfectly, nothing wrong with our scripts. FYI: odd but true: I'm making better progress now but targeting my android phone? it's faster to build and deploy, I don't have to go to Xcode ? Devices and add the stand alone? and whenever I do deploy on iPhone, if it is working on Android it always works on iPhone so?. go figure. BR From ambassador at fourthworld.com Thu Mar 9 23:57:46 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 9 Mar 2017 20:57:46 -0800 Subject: Download LC Community: trapped. In-Reply-To: <1B6B368C-53A9-4892-B558-C5F6DC9E00D1@thehales.id.au> References: <1B6B368C-53A9-4892-B558-C5F6DC9E00D1@thehales.id.au> Message-ID: <2df012f0-86b5-bbc6-dbe3-74805ebd1131@fourthworld.com> James Hale wrote: > Richard wrote: >> Most SEO brings people to the .com site, so those on the .org >> site are the subset who specifically went there the get the >> open source edition of LiveCode. > > I still don't understand why this distinction was made. That was an idea I pitched to the team, and as we thought it through it seemed a good fit for what LiveCode Ltd. is doing. Over time we may find a unified site is better, but at the moment I like where things are potentially headed. Many open source projects have a .org domain for their community efforts, including drupal.org, apache.org, r-project.org, python.org, wordpress.org, getfedora.org, etc. By splitting .org from .com, we have the opportunity to allow the company to hone their messaging for developers of proprietary apps at .com, while providing a portal at .org for not only the software itself, but also resources for community projects, contribution assistance, EDU tools and support, and more. We're still early days with the .org site, and they haven't set set up the facilities to allow a community web team to augment that domain with relevant community info. But we'll get there, hopefully soon. -- Richard Gaskin LiveCode Community Liaison richard at livecode.org From brahma at hindu.org Fri Mar 10 00:06:41 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 10 Mar 2017 05:06:41 +0000 Subject: Composite Set up - PreopenStack "everywhere" Message-ID: We are using highly modular framework for our new app. Nothing like the IDE itself of course, but we are up to close to 50 *.livecodescript text only scripts divided into behaviors, libraries, models plus about 15 binarie.livecode stacks for modules and "views"?. and growing. I'm trying to optimize for small android devices and it seems the compositorType, tile size and cache limit are important. I have this in an init script that is a behavior on the main stack that opens when the app opens, card 1 has the init behavior that loads all the rest of the libraries and stack files FYI the compositor was doing really, really strange things on my mac so I turned it off under development. Alsothe documentation and lesson on this is really lean, so if anyone has better, more detailed guidelines for best practices on this , please let us know: I have this in the preopenstack handler on preopenstack # some init routines, load and start using libraries # then this: if the environment <> "development" then set the acceleratedRendering of this stack to "true" if the platform is "iphone" then set the compositorType of this stack to "opengl" else set the compositorType of this stack to "software" end if set the compositorTileSize of this stack to 32 set the compositorCacheLimit of this stack to (16 * 1024 * 1024) end if pass preopenstack end preopenstack Ok so this is working now and the rendering of the stack on my macbook pro doesn't go "kerpluey!" (strange rects, cropped group with black background other weird stuff, flickering graphic) and the app runs fine on the iphone and Android. But apparently we need to have this set for every *[binary].livecode stack/view we launch, as the compositor setting is not persistent across a session. So the questions are two 1) The above is cut and paste from the online lesson on this subject. Please fire away with better tips on the best way to declare these settings. "software" obviously does not apply to all device besides iPhone, other wise it would not fail (intermittently) on my mac book pro. The lesson says to multiply the rect of all your layers by 4? e.g. 10 layers: (10 x(400x400) x 4) what exactly does that mean.. ? what defines the rect of a given layer? the full geometric boundary around all the objects on that layer? or simply the rect of the card times the number of layers? 2) Given that this preopenstack handler is in a behavior on the card for the launching stack, it is not global. What is the best thing to do if we want the compositor to be set every time any other stack is opened? We have one lib_SivaSiva.livecodescript that we start using that serves as our app wide generic handlers "backscript". I have set preopenstack handles in backscripts before and sometimes it gets you into trouble if you start doing stuff that really should not be globally implemented. But if I include this into that library on preopenstack if the environment <> "development" then set the acceleratedRendering of this stack to "true" If the platform is "iphone" then set the compositorType of this stack to "opengl" else set the compositorType of this stack to "software" end if set the compositorTileSize of this stack to 32 set the compositorCacheLimit of this stack to (16 * 1024 * 1024) end if pass preopenstack end preopenstack Now it will fire every time any stack is opened. Is there some penalty for this method? My gut tells me that perhaps having these preopenstack handlers "lying around in the message path" is just not best practice. But maybe that just a "superstitious fear" Or maybe we should turn this into a discrete handler command setUpCompositor # set the acceleratedRendering and compositor settings here end setupCompositor and then, call this discretely in a preopenstack handler in each separate stack. That somehow makes me feel better, not sure why. Possibly because almost all the binary.lc stack in the framework *do* have preopenstack handlers already?. What do you recommend for 1) and 2)? BR From brahma at hindu.org Fri Mar 10 00:12:55 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 10 Mar 2017 05:12:55 +0000 Subject: Distinguishing between tap and swipe Message-ID: <3C50F7BE-9F2E-491B-9062-81633C65FE32@hindu.org> Mobile: To distinquish tap from swipe, I'm using the abs of the difference of the mouseloc on mousedown and mouseup?. private function _mouseMoved put abs (the mouseV - item 2 of sStartLoc) into someDistance put someDistance >= 10 into someBoolean return someBoolean end _mouseMoved But this is quite "sluggish" on the any phone, meanwhile any straight forward on mouseup do something end mouseup is quite snappy. Is there a better way to trap for swipe and immediately trigger a tap. BR From mark at livecode.com Fri Mar 10 04:45:22 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 10 Mar 2017 10:45:22 +0100 Subject: =?UTF-8?Q?byteLen=28=29=3F?= In-Reply-To: <54fc95be-b490-029f-3bc9-0370c5a99ef3@fourthworld.com> References: <815638159485979e211c32a1f9782ba8@livecode.com> <54fc95be-b490-029f-3bc9-0370c5a99ef3@fourthworld.com> Message-ID: On 2017-03-09 22:24, Richard Gaskin via use-livecode wrote: > I'm not sure I follow that, but it almost sounds like no matter what > the encoding each char is mapped to one byte, so a 5-chart string like > "hello" will take up 5 bytes - is that right? In the case of the implicit conversion the engine does between text and binary data - yes it is. The number of bytes in the generated data will be the same as the number of chars in the original text. However that only relates to the implicit 'compatibility' conversion the engine does. In new code, it is better to make sure the conversion is explicit by using textEncode / textDecode. > I have some large files I want to open and read as binary (for speed > mostly; if there's a reason I should be doing that as text let me > know), then I'll work my way through it looking for substrings, > keeping track of the byte offsets within the data where those can be > found. > > Once I have my list of byte offsets, I can save that as a sort of > index file, and use "seek" or "read at" to go directly to that portion > of the larger files whenever I need to access that data. > > The data files may use a variety of encodings, mostly UTF-8 but I can > expect Latin-ISO or perhaps even UTF-16. In short, encoding will may > be known in advance. > > But since I'm working with binary data the whole time, the encoding > shouldn't matter, should it? It depends on whether you need to convert a text string into a byte sequence to search for, and whether you are wanting an exact text match or a caseless text match. If the file you are searching is just a text file which you want to search as binary then you need to know the encoding of said text file so you can encode the text you are searching for in the same way. For example, if you are search for "fo?" and encode it as UTF-16 (which would generate 6 bytes) and the (text) file you are searching is UTF-8 encoded then it won't work. The UTF-8 encoding of "fo?" is different from the UTF-16 encoding. If the file you are searching is some binary file containing text then things are decidedly more tricky as to do the search accurately you need to know the exact format of the binary file so you know precisely where the (encoded) text strings within it sit. This is presuming you are not happy with 'false positives'. (A stackfile, for example, contains encoded text and sequences of bytes which were and never will be text - however, it is perfectly possible for the latter to match encoded text, just by chance.) If you are wanting a caseless match rather than an exact match then you pretty much have to treat the file as text - you can't do caseless matching on arbitrary bytes as it makes no sense (as they are just bytes with no meaning). > Earlier you wrote: > > the number of bytes in textEncode(tText, kEncoding) > > ...which implies that I would need to know the encoding (kEncoding), > but do I really need textEncode for the use-case described here? Strictly speaking that depends on the encoding: For native encoding - number of bytes == number of codeunits For UTF-16 - number of bytes = 2 * number of codeunits For UTF-32 - number of bytes = 4 * number of codeunits However, UTF-8 is a multibyte encoding based on the codepoints in the text. A single codepoint can be encoded as 1, 2, 3 or 4 bytes. The point here being, in order to compute the byte length of a piece of text encoded as UTF-8 you need to look at each character. Since textEncode does that, it is a reasonably clear way of working such things out. By the way, here I've mentioned three things - codeunit, codepoint and char: - a codeunit is the smallest element in UTF-16 and represents unicode codepoints 0-65535 (i.e. fits in a 16-bit unsigned int). - a codepoint is the natural 'unit' of Unicode - a 21-bit quantity which indexes into the Unicode char tables. (UTF-16 encodes the 21-bit quantity by using 'surrogate' pairs of codeunits - meaning that, in that encoding a codepoint can take 1 or 2 codeunits). - a char is a sequence of codepoints which are generally considered to be a single (human-processable) character. I'm not sure if the above helps or not - it might be helpful to explain the problem you are trying to solve more deeply. I still can't quite see how the byte length of a piece of text (encoded in a particular encoding) is useful since surely you need the byte sequence to search for anyway, in which case the number of bytes is the length of that byte sequence that you already have... Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From richmondmathewson at gmail.com Fri Mar 10 05:34:11 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 10 Mar 2017 12:34:11 +0200 Subject: [Blog] Infinite LiveCode Progress In-Reply-To: <1489111893142-4712963.post@n4.nabble.com> References: <6F5A46C9-8621-4409-AC97-C9F9EE59ED7D@livecode.com> <1489111893142-4712963.post@n4.nabble.com> Message-ID: <5bbcd53c-6d19-5f56-8314-b781bc503e82@gmail.com> Those stretch goals just keep on stretching: and I expect you remember Hooke's Law from school. Richmond. On 3/10/17 4:11 am, Mark Smith via use-livecode wrote: > Speaking of Infinite, I have been asked to upgrade an older iPad product > (which was developed in 5.0) and I thought while I am in there I would like > to tackle the issue of a native look and feel. Any progress on stretch goal > 3 - a native field widget? If it is going to be ready in the next month or > two it probably is worth waiting for. If not, I'll just dive in with the old > UI and tackle this in another revision. > > Thanks > > Mark > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Blog-Infinite-LiveCode-Progress-tp4712933p4712963.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iowahengst at mac.com Fri Mar 10 08:36:48 2017 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 10 Mar 2017 07:36:48 -0600 Subject: Distinguishing between tap and swipe In-Reply-To: <3C50F7BE-9F2E-491B-9062-81633C65FE32@hindu.org> References: <3C50F7BE-9F2E-491B-9062-81633C65FE32@hindu.org> Message-ID: Hi BR, I?ve not used swipe a lot, but here is how I have used it to ?erase? from a text field? the app is iOS iPad only. Below is the script of the text field. It works quickly without a noticeable delay. local tStartLocX, tEndLocX on mouseDown put the short name of target into tTargetFieldToClear put item 1 the mouseLoc into tStartLocX end mouseDown on mouseUp lock screen put item 1 the mouseLoc into tEndLocX if tEndLocX + 10 < tStartLocX then put empty into target end if unlock screen end mouseUp be well, randy www.classroomFocusedSoftware.com > On Mar 9, 2017, at 11:12 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > Mobile: To distinquish tap from swipe, I'm using the abs of the difference of the mouseloc on mousedown and mouseup?. > > private function _mouseMoved > put abs (the mouseV - item 2 of sStartLoc) into someDistance > put someDistance >= 10 into someBoolean > return someBoolean > end _mouseMoved > > But this is quite "sluggish" on the any phone, meanwhile any straight forward > > on mouseup > do something > end mouseup > > is quite snappy. > > Is there a better way to trap for swipe and immediately trigger a tap. > > 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 Fri Mar 10 10:53:11 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 10 Mar 2017 15:53:11 +0000 Subject: Distinguishing between tap and swipe In-Reply-To: References: <3C50F7BE-9F2E-491B-9062-81633C65FE32@hindu.org> Message-ID: <458C5446-C9E3-43B9-843C-17C4F5BAB517@iotecdigital.com> Whe the +10? Tolerance? Bob S > On Mar 10, 2017, at 05:36 , Randy Hengst via use-livecode wrote: > > Hi BR, > > I?ve not used swipe a lot, but here is how I have used it to ?erase? from a text field? the app is iOS iPad only. Below is the script of the text field. It works quickly without a noticeable delay. > > local tStartLocX, tEndLocX > > on mouseDown > put the short name of target into tTargetFieldToClear > put item 1 the mouseLoc into tStartLocX > end mouseDown > > on mouseUp > lock screen > > put item 1 the mouseLoc into tEndLocX > > if tEndLocX + 10 < tStartLocX then > put empty into target > end if > > unlock screen > end mouseUp > > be well, > randy From bobsneidar at iotecdigital.com Fri Mar 10 10:55:12 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 10 Mar 2017 15:55:12 +0000 Subject: Download LC Community: trapped In-Reply-To: References: Message-ID: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> I'm all for requiring an email address to DL the community version. After all, they are DL'ing a fully functional development application! Providing a valid email address is the least they can do. Bob S > On Mar 9, 2017, at 17:30 , Alejandro Tejada via use-livecode wrote: > > on Thu, 9 Mar 2017, Richard Gaskin wrote: >> The value of an email address is only non-zero >> when it's given freely. So have sign-up as an option, >> rather than a requirement, and the problem >> is very easily solved. > > Emails directions could be really useful to open > a direct communication link with newcomers > and our LiveCode Community. > > Most of the time, new developers in this platform > do not know about some old but useful learning > resources that longtimers take for granted, so > these essential resources are basically invisible > for us. > > Probably one of the most eye opening information for > new developers is how others are using LiveCode. > > Al From bobsneidar at iotecdigital.com Fri Mar 10 11:04:48 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 10 Mar 2017 16:04:48 +0000 Subject: Searching "teh" or tihs" In-Reply-To: <3BC10FFB-1790-40EC-A5B4-EF9F53168EBD@hyperhh.de> References: <3BC10FFB-1790-40EC-A5B4-EF9F53168EBD@hyperhh.de> Message-ID: There is always the soundex() sql function. SELECT soundex('the') = soundex('teh') returns true. Not sure what the tolerance is though. Because of the arbitrary nature of languages, this really requires a lookup table for commonly mistyped words, with the ability to "learn" as corrections are made. Then you would need to be able to "uncorrect" or delete entries. Eventually you end up with something that is likely built into the OS already, so at that point it would be better to write an extension in C or Java. Bob S > On Mar 9, 2017, at 16:26 , hh via use-livecode wrote: > > Searching is important for your project? > Would you like to ask "Did you mean the?" if user searches "teh"? > > I've implemented a fuzzySearch algorithm in LiveCode script: > http://forums.livecode.com/viewtopic.php?p=152202#p152202 > > Now if you wish to look up "the" or "this" then fuzzySearch will find > it (among others) by searching "teh" or tihs", with a penalty score of > one only for swapping the chars. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 10 11:33:16 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Mar 2017 08:33:16 -0800 Subject: Download LC Community: trapped In-Reply-To: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> References: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> Message-ID: <6cf21b95-ef5a-fe7d-a398-6b25a9a3d365@fourthworld.com> Bob Sneidar wrote: > I'm all for requiring an email address to DL the community version. > After all, they are DL'ing a fully functional development > application! Providing a valid email address is the least they > can do. To what end? An email address has value only to the degree it is given willingly. An email address that won't convert is just waste. When that form is returned to being optional, those who want emails will get them, and those who don't will still be able to use LiveCode and share it with their friends. Using and sharing LiveCode adds value to our community. And as long as so few know what LiveCode is, platform adoption is the most critical key to all forms of success for the project. -- Richard Gaskin LiveCode Community Liaison richard at livecode.org From jmac at consensustech.com Fri Mar 10 11:34:36 2017 From: jmac at consensustech.com (Jim MacConnell) Date: Fri, 10 Mar 2017 08:34:36 -0800 Subject: Download LC Community: trapped In-Reply-To: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> References: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> Message-ID: <01fa01d299bc$353edfa0$9fbc9ee0$@consensustech.com> And.. I come down on the other side of this one. I think offering people the opportunity to register w/email is important but.... not allowing them to see what they're getting unless they do.... not so good. I routinely do not try tools if I have to give anything to try them out... email, facebook permission, etc. Not willing to spread personal any further than I need to. Means I'm probably missing out on great stuff but I'm a stong believer in try before you by without having to become "connected" to someone/thing I may not want to have a lasting relationship with. That said... I personally don't mind getting a periodic reminder when checking something out along the lines of "We hope you're enjoying XXXXX. If you haven't registered to receive important notices from YYYY yet. Please consider doing so. This notice will disappear if you do." -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Friday, March 10, 2017 7:55 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Download LC Community: trapped I'm all for requiring an email address to DL the community version. After all, they are DL'ing a fully functional development application! Providing a valid email address is the least they can do. Bob S > On Mar 9, 2017, at 17:30 , Alejandro Tejada via use-livecode wrote: > > on Thu, 9 Mar 2017, Richard Gaskin wrote: >> The value of an email address is only non-zero when it's given >> freely. So have sign-up as an option, rather than a requirement, and >> the problem is very easily solved. > > Emails directions could be really useful to open a direct > communication link with newcomers and our LiveCode Community. > > Most of the time, new developers in this platform do not know about > some old but useful learning resources that longtimers take for > granted, so these essential resources are basically invisible for us. > > Probably one of the most eye opening information for new developers is > how others are using LiveCode. > > Al _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at me.com Fri Mar 10 11:50:26 2017 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 10 Mar 2017 16:50:26 +0000 Subject: How to save to local file via native file dialogue? Message-ID: Hi Folks, I?m building a little utility to parse a regular html report file I get into CSV form to slice & dice with Excel. Input & transformation phases are sorted. Input processing uses 'answer file' to select a source file via the native file dialogue, set the defaultFolder and load the HTML content via put URL Transform to structured tabular form is neatly handled via chunk replace & filter functions and iteration. However, I?m struggling to find the syntax needed to save the contents of the output variable / field into a local file via the OS file save dialogue for flexibility. I?m guessing it?s a variant of 'put theContent into URL ?file:? & theFolderPathAndName? but this seems hard-wired. What trick am I missing here? Thanks, Keith.. From rdimola at evergreeninfo.net Fri Mar 10 12:04:37 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 10 Mar 2017 12:04:37 -0500 Subject: How to save to local file via native file dialogue? In-Reply-To: References: Message-ID: <002e01d299c0$66ac3ca0$3404b5e0$@net> Keith, 'Ask File' will do the trick. 'ask file' is the "save file" complement to 'answer file' 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 Clarke via use-livecode Sent: Friday, March 10, 2017 11:50 AM To: How to use LiveCode Cc: Keith Clarke Subject: How to save to local file via native file dialogue? Hi Folks, I?m building a little utility to parse a regular html report file I get into CSV form to slice & dice with Excel. Input & transformation phases are sorted. Input processing uses 'answer file' to select a source file via the native file dialogue, set the defaultFolder and load the HTML content via put URL Transform to structured tabular form is neatly handled via chunk replace & filter functions and iteration. However, I?m struggling to find the syntax needed to save the contents of the output variable / field into a local file via the OS file save dialogue for flexibility. I?m guessing it?s a variant of 'put theContent into URL ?file:? & theFolderPathAndName? but this seems hard-wired. What trick am I missing here? Thanks, Keith.. _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 10 12:02:50 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 10 Mar 2017 12:02:50 -0500 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: Bingo. It happens in 9 when using the remote debugger. The Script Debugging gets disabled during this process. On Thu, Mar 9, 2017 at 11:45 AM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Thu, Mar 9, 2017 at 7:43 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I need to see if I can make it happen, again. I wonder if going back and > > forth between 9 to do remote debugging and 8 because 9 has issues may be > > causing it. Will file a bug report if I can repeat it. > > > > FWIW . . . when early 7 got too bad, I'd load and save again in 5, reload > in 7, and things usually got a bit better. > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bobsneidar at iotecdigital.com Fri Mar 10 12:04:20 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 10 Mar 2017 17:04:20 +0000 Subject: Download LC Community: trapped In-Reply-To: <01fa01d299bc$353edfa0$9fbc9ee0$@consensustech.com> References: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> <01fa01d299bc$353edfa0$9fbc9ee0$@consensustech.com> Message-ID: <28E680ED-F26B-4AB8-A56B-26BEAB3F0895@iotecdigital.com> I have bad news for everyone who thinks that by not giving their email address out actually does anything to prevent it from getting on a spam list. If you mother has the address in her address book and clicks on a bad link or opens an email with malware on it, your address is probably getting scraped from her recents list and address book. As soon as you use an email address to send anything to anyone, consider it compromised. Bob S > On Mar 10, 2017, at 08:34 , Jim MacConnell via use-livecode wrote: > > And.. I come down on the other side of this one. > I think offering people the opportunity to register w/email is important > but.... not allowing them to see what they're getting unless they do.... not > so good. > > I routinely do not try tools if I have to give anything to try them out... > email, facebook permission, etc. Not willing to spread personal any further > than I need to. From bobsneidar at iotecdigital.com Fri Mar 10 12:05:01 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 10 Mar 2017 17:05:01 +0000 Subject: How to save to local file via native file dialogue? In-Reply-To: References: Message-ID: <6AD93FA1-175F-4CDC-B768-9C461C49352E@iotecdigital.com> Didn't someone go insane once trying to do something similar? Bob S > On Mar 10, 2017, at 08:50 , Keith Clarke via use-livecode wrote: > > Hi Folks, > I?m building a little utility to parse a regular html report file I get into CSV form to slice & dice with Excel. From richmondmathewson at gmail.com Fri Mar 10 12:08:10 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 10 Mar 2017 19:08:10 +0200 Subject: Download LC Community: trapped In-Reply-To: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> References: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> Message-ID: I would hope that all first-time downloaders supply an e-mail adress, but notwithstanding that they should be given the option to opt out. Richmond. On 3/10/17 5:55 pm, Bob Sneidar via use-livecode wrote: > I'm all for requiring an email address to DL the community version. After all, they are DL'ing a fully functional development application! Providing a valid email address is the least they can do. > > Bob S > > >> On Mar 9, 2017, at 17:30 , Alejandro Tejada via use-livecode wrote: >> >> on Thu, 9 Mar 2017, Richard Gaskin wrote: >>> The value of an email address is only non-zero >>> when it's given freely. So have sign-up as an option, >>> rather than a requirement, and the problem >>> is very easily solved. >> Emails directions could be really useful to open >> a direct communication link with newcomers >> and our LiveCode Community. >> >> Most of the time, new developers in this platform >> do not know about some old but useful learning >> resources that longtimers take for granted, so >> these essential resources are basically invisible >> for us. >> >> Probably one of the most eye opening information for >> new developers is how others are using LiveCode. >> >> Al > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at me.com Fri Mar 10 12:24:39 2017 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 10 Mar 2017 17:24:39 +0000 Subject: How to save to local file via native file dialogue? In-Reply-To: <6AD93FA1-175F-4CDC-B768-9C461C49352E@iotecdigital.com> References: <6AD93FA1-175F-4CDC-B768-9C461C49352E@iotecdigital.com> Message-ID: If one definition of insanity is to repeat the same behaviour and expect a different outcome - then that was definitely me, as this isn?t my first 'little CSV utility' ! :-) Best, Keith.. > On 10 Mar 2017, at 17:05, Bob Sneidar via use-livecode wrote: > > Didn't someone go insane once trying to do something similar? > > Bob S > > >> On Mar 10, 2017, at 08:50 , Keith Clarke via use-livecode wrote: >> >> Hi Folks, >> I?m building a little utility to parse a regular html report file I get into CSV form to slice & dice with Excel. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 10 12:13:48 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 10 Mar 2017 19:13:48 +0200 Subject: Download LC Community: trapped In-Reply-To: <28E680ED-F26B-4AB8-A56B-26BEAB3F0895@iotecdigital.com> References: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> <01fa01d299bc$353edfa0$9fbc9ee0$@consensustech.com> <28E680ED-F26B-4AB8-A56B-26BEAB3F0895@iotecdigital.com> Message-ID: <759450a5-af01-16d3-2771-041378daae7c@gmail.com> Indeed; but now this is drifting OT. Richmond. On 3/10/17 7:04 pm, Bob Sneidar via use-livecode wrote: > I have bad news for everyone who thinks that by not giving their email address out actually does anything to prevent it from getting on a spam list. If you mother has the address in her address book and clicks on a bad link or opens an email with malware on it, your address is probably getting scraped from her recents list and address book. As soon as you use an email address to send anything to anyone, consider it compromised. > > Bob S > > >> On Mar 10, 2017, at 08:34 , Jim MacConnell via use-livecode wrote: >> >> And.. I come down on the other side of this one. >> I think offering people the opportunity to register w/email is important >> but.... not allowing them to see what they're getting unless they do.... not >> so good. >> >> I routinely do not try tools if I have to give anything to try them out... >> email, facebook permission, etc. Not willing to spread personal any further >> than I need to. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 10 12:46:57 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 10 Mar 2017 12:46:57 -0500 Subject: Download LC Community: trapped In-Reply-To: <759450a5-af01-16d3-2771-041378daae7c@gmail.com> References: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> <01fa01d299bc$353edfa0$9fbc9ee0$@consensustech.com> <28E680ED-F26B-4AB8-A56B-26BEAB3F0895@iotecdigital.com> <759450a5-af01-16d3-2771-041378daae7c@gmail.com> Message-ID: It's a matter of forced consent, not necessarily about the intended use of your email address. I get it, and I agree that it should not be required. ~Roger On Fri, Mar 10, 2017 at 12:13 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > Indeed; but now this is drifting OT. > > Richmond. > > On 3/10/17 7:04 pm, Bob Sneidar via use-livecode wrote: > >> I have bad news for everyone who thinks that by not giving their email >> address out actually does anything to prevent it from getting on a spam >> list. If you mother has the address in her address book and clicks on a bad >> link or opens an email with malware on it, your address is probably getting >> scraped from her recents list and address book. As soon as you use an email >> address to send anything to anyone, consider it compromised. >> >> Bob S >> >> >> On Mar 10, 2017, at 08:34 , Jim MacConnell via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> And.. I come down on the other side of this one. >>> I think offering people the opportunity to register w/email is important >>> but.... not allowing them to see what they're getting unless they do.... >>> not >>> so good. >>> >>> I routinely do not try tools if I have to give anything to try them >>> out... >>> email, facebook permission, etc. Not willing to spread personal any >>> further >>> than I need to. >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From danoldboy at gmail.com Fri Mar 10 13:26:35 2017 From: danoldboy at gmail.com (Dan Brown) Date: Fri, 10 Mar 2017 18:26:35 +0000 Subject: Download LC Community: trapped In-Reply-To: References: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> <01fa01d299bc$353edfa0$9fbc9ee0$@consensustech.com> <28E680ED-F26B-4AB8-A56B-26BEAB3F0895@iotecdigital.com> <759450a5-af01-16d3-2771-041378daae7c@gmail.com> Message-ID: Would a splash screen that appears on first launch of the IDE not be a better way of harvesting email addresses? A "do not show again" tick box on said splash screen would suffice for those not interested in registering. Vastly reduces download friction On 10 Mar 2017 5:47 p.m., "Roger Eller via use-livecode" < use-livecode at lists.runrev.com> wrote: > It's a matter of forced consent, not necessarily about the intended use of > your email address. I get it, and I agree that it should not be required. > > ~Roger > > > On Fri, Mar 10, 2017 at 12:13 PM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Indeed; but now this is drifting OT. > > > > Richmond. > > > > On 3/10/17 7:04 pm, Bob Sneidar via use-livecode wrote: > > > >> I have bad news for everyone who thinks that by not giving their email > >> address out actually does anything to prevent it from getting on a spam > >> list. If you mother has the address in her address book and clicks on a > bad > >> link or opens an email with malware on it, your address is probably > getting > >> scraped from her recents list and address book. As soon as you use an > email > >> address to send anything to anyone, consider it compromised. > >> > >> Bob S > >> > >> > >> On Mar 10, 2017, at 08:34 , Jim MacConnell via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>> And.. I come down on the other side of this one. > >>> I think offering people the opportunity to register w/email is > important > >>> but.... not allowing them to see what they're getting unless they > do.... > >>> not > >>> so good. > >>> > >>> I routinely do not try tools if I have to give anything to try them > >>> out... > >>> email, facebook permission, etc. Not willing to spread personal any > >>> further > >>> than I need to. > >>> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 10 13:28:37 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 10 Mar 2017 20:28:37 +0200 Subject: Download LC Community: trapped In-Reply-To: References: <76C781DB-AE2A-4566-96D3-63532F840AA2@iotecdigital.com> <01fa01d299bc$353edfa0$9fbc9ee0$@consensustech.com> <28E680ED-F26B-4AB8-A56B-26BEAB3F0895@iotecdigital.com> <759450a5-af01-16d3-2771-041378daae7c@gmail.com> Message-ID: <4faf3e19-1caf-7c3e-96b5-a4d4334ace5b@gmail.com> That seems a very good idea. Richmond. On 3/10/17 8:26 pm, Dan Brown via use-livecode wrote: > Would a splash screen that appears on first launch of the IDE not be a > better way of harvesting email addresses? A "do not show again" tick box on > said splash screen would suffice for those not interested in registering. > Vastly reduces download friction > > On 10 Mar 2017 5:47 p.m., "Roger Eller via use-livecode" < > use-livecode at lists.runrev.com> wrote: > >> It's a matter of forced consent, not necessarily about the intended use of >> your email address. I get it, and I agree that it should not be required. >> >> ~Roger >> >> >> On Fri, Mar 10, 2017 at 12:13 PM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Indeed; but now this is drifting OT. >>> >>> Richmond. >>> >>> On 3/10/17 7:04 pm, Bob Sneidar via use-livecode wrote: >>> >>>> I have bad news for everyone who thinks that by not giving their email >>>> address out actually does anything to prevent it from getting on a spam >>>> list. If you mother has the address in her address book and clicks on a >> bad >>>> link or opens an email with malware on it, your address is probably >> getting >>>> scraped from her recents list and address book. As soon as you use an >> email >>>> address to send anything to anyone, consider it compromised. >>>> >>>> Bob S >>>> >>>> >>>> On Mar 10, 2017, at 08:34 , Jim MacConnell via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> And.. I come down on the other side of this one. >>>>> I think offering people the opportunity to register w/email is >> important >>>>> but.... not allowing them to see what they're getting unless they >> do.... >>>>> not >>>>> so good. >>>>> >>>>> I routinely do not try tools if I have to give anything to try them >>>>> out... >>>>> email, facebook permission, etc. Not willing to spread personal any >>>>> further >>>>> than I need to. >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 10 13:31:25 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 10 Mar 2017 18:31:25 +0000 Subject: another regex question Message-ID: Hi all. I am trying to filter a list without integer numbers. Note that matchText(tControlNames, "[0-9]+") returns true, so the regex pattern IS working, but filter lines of tControlNames without "[0-9]+" does not filter out the lines with integer values, neither does filter lines of tControlNames not matching "[0-9]+". Where am I going wrong? Bob S From bonnmike at gmail.com Fri Mar 10 13:39:49 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 10 Mar 2017 11:39:49 -0700 Subject: another regex question In-Reply-To: References: Message-ID: Try this form: filter lines of tSource without regex pattern "^stack.*" On Fri, Mar 10, 2017 at 11:31 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all. > > I am trying to filter a list without integer numbers. Note that > matchText(tControlNames, "[0-9]+") returns true, so the regex pattern IS > working, but filter lines of tControlNames without "[0-9]+" does not filter > out the lines with integer values, neither does filter lines of > tControlNames not matching "[0-9]+". > > Where am I going wrong? > > 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 hh at hyperhh.de Fri Mar 10 13:59:31 2017 From: hh at hyperhh.de (hh) Date: Fri, 10 Mar 2017 19:59:31 +0100 Subject: Searching "teh" or tihs" Message-ID: <9B0B76A2-0A9B-49CD-8BF2-B48F5B9E8E81@hyperhh.de> 1. The algorithm I implemented is for "fuzzy search" of written/typed words, not for "similar sounding words" (soundex), mostly quite different. My demo is scripted for looking up a (mistyped) search string in the 3233 keywords of LCScript. 2. That's for me the true value of LiveCode: Don't talk about possible development -- just do it. Then you have in a few hours a solution which is working on Mac/Win/Linux, using LC 6/7/8/9, and often fast enough even for RaspberryPi 2/3. Independent of current OS flavours. If that solution is not good enough or not fast enough for you then you can write C or java extensions. We have already a Java FFI available in LC 9-dp6! I'm really looking forward to your solution. In the meantime you can use my approach, it was updated today. I removed a small bug in the percentage search, which wasn't sloppy enough ;-) > Bob S. wrote: > There is always the soundex() sql function. SELECT soundex('the') = soundex('teh') returns true. Not sure what the tolerance is though. Because of the arbitrary nature of languages, this really requires a lookup table for commonly mistyped words, with the ability to "learn" as corrections are made. Then you would need to be able to "uncorrect" or delete entries. Eventually you end up with something that is likely built into the OS already, so at that point it would be better to write an extension in C or Java. > > Bob S > > > > hh wrote: > > > > Searching is important for your project? > > Would you like to ask "Did you mean the?" if user searches "teh"? > > > > I've implemented a fuzzySearch algorithm in LiveCode script: > > http://forums.livecode.com/viewtopic.php?p=152202#p152202 > > > > Now if you wish to look up "the" or "this" then fuzzySearch will find > > it (among others) by searching "teh" or tihs", with a penalty score of > > one only for swapping the chars. > From ambassador at fourthworld.com Fri Mar 10 15:42:31 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Mar 2017 12:42:31 -0800 Subject: Local engagement In-Reply-To: References: Message-ID: <1545e080-abad-4316-e089-62fd1c27eb6f@fourthworld.com> Informal survey: How many here attend local meetups for groups that advocate for open source software (e.g. user groups for Linux, Drupal, Wordpress, R, Python, etc.)? If so, what have you learned there, and have you had a chance to introduce others there to LiveCode? I'll start: Groups I've attended -------------------- I'm a member of my local Linux User Group, and despite the name they really cover everything related to open source software. Last night's meeting introduced me to OpenRefine, a nice GUI toolkit for massaging data. I've also learned awk, rsync, and strace through the group. I won my first Raspberry Pi in a raffle at their 20th anniversary party last year. I sometimes attend meetups with the local Drupal user group. I don't use Drupal yet, but I've enjoyed learning about it and love hanging out with those people. There's also another group that meets in a nearby city focused on data science, where I've been introduced to R. That group has some inspiring stories of decision support success through good analytics. Sharing LiveCode ---------------- The local Linux User Group is managed under the auspices of a parent group, San Gabriel Valley Tech, through which we arrange our monthly LiveCode Developer meetups: https://www.meetup.com/SGVTech/events/zjvctlywgbjb/ We generally draw about 10 or so people, and usually have at least one or two newcomers interested in getting started with LiveCode. A couple meetings ago we had a brief demo from the woman behind the Enchantment OS project, a new Linux distro aimed at absolute computer newbies. She occasionally needs specialized GUI apps, and I'll be following up with her to see which of those LC might be a good fit for. -- Richard Gaskin LiveCode Community Liaison richard at livecode.com From bobsneidar at iotecdigital.com Fri Mar 10 16:00:37 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 10 Mar 2017 21:00:37 +0000 Subject: another regex question In-Reply-To: References: Message-ID: <50DE2E8B-5398-4AE2-9A0E-4635B8B86740@iotecdigital.com> Thanks Mike. filter lines of tControlNames without regex pattern "[0-9]+" worked. The dictionary is a bit hazy on syntax for this. I might submit a clearer explanation at some point. Bob S > On Mar 10, 2017, at 10:39 , Mike Bonner via use-livecode wrote: > > Try this form: > filter lines of tSource without regex pattern "^stack.*" From brahma at hindu.org Fri Mar 10 16:40:35 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 10 Mar 2017 21:40:35 +0000 Subject: breakpoints being ignored In-Reply-To: References: Message-ID: <2B6ECDBD-AD0C-4810-BC7E-6FF1627F1760@hindu.org> Mike Kerner : Bingo. It happens in 9 when using the remote debugger. The Script Debugging gets disabled during this process. ditto what Mike said, confirmed again here today?"gotcha", because the check mark remains on the IDE menu and toggling the menu item on and off doesn't seem to help. BR From brahma at hindu.org Fri Mar 10 16:48:11 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 10 Mar 2017 21:48:11 +0000 Subject: Distinguishing between tap and swipe In-Reply-To: <458C5446-C9E3-43B9-843C-17C4F5BAB517@iotecdigital.com> References: <3C50F7BE-9F2E-491B-9062-81633C65FE32@hindu.org> <458C5446-C9E3-43B9-843C-17C4F5BAB517@iotecdigital.com> Message-ID: <166FC96A-CAF7-46A7-88A5-BD7181E0CAAA@hindu.org> @ Bob I'm using 10 also, based on using lower numbers and watching users who tap rows in a list (which serve as buttons) expect it to "trigger" instead of scroll the list? if that is what you mean by "tolerance" I could be wrong and there are probably more experienced UX devs out there who know better, but it seems very rare that someone using a swipe up or to the right or left to scroll, ever does it with a gesture that is lower than 10 px But I doubt if that value affects performance. BR @ randy: I see if I can use your method? will let us know if it helps. On 3/10/17, 5:53 AM, "use-livecode on behalf of Bob Sneidar via use-livecode" wrote: Whe the +10? Tolerance? Bob S From brahma at hindu.org Sat Mar 11 00:03:39 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 11 Mar 2017 05:03:39 +0000 Subject: Allowed Orientations failing on mobile in 9dp5? Message-ID: <97EC8E1F-C4A2-4F36-BFA9-7966D3DF7879@hindu.org> This used to work on 8.1.3 on preopenStack command sivasiva_InitOrientation "landscape" end preopenstack #with these in a library that was started on init.. (i.e. effectively a backscript) command sivasiva_InitOrientation orientationType if the environment is not "mobile" then return false set the fullscreenmode of this stack to "showAll" -- better for wider screens mobile_SetAllowedOrientation orientationType end sivasiva_InitOrientation command mobile_SetAllowedOrientation orientationType if the environment is not "mobile" then return empty switch orientationType case "portrait" put "portrait,portrait upside down" into allowedOrientations break case "landscape" put "landscape left,landscape right" into allowedOrientations break default -- allow all, ignoring face up/down put "portrait,portrait upside down,landscape left,landscape right" into allowedOrientations end switch mobileSetAllowedOrientations allowedOrientations return allowedOrientations end mobile_SetAllowedOrientation This use to force a new stack open in the app to "go sideways" even if the user was holding the phone "upright" but now standalones built with 9dp5? the stack opens small in portrait mode is this happening for anyone else? br From selander at tkf.att.ne.jp Sat Mar 11 03:02:14 2017 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 11 Mar 2017 17:02:14 +0900 Subject: Messages sent while mouse is down? Message-ID: <58C3AF06.1080901@tkf.att.ne.jp> I miss the Zynga "Pathwords" game on Facebook, so for my own amusement I'm trying to recreate it in Livecode. For those who don't know the game, it had a solid screenful of Scrabble-like lettered tiles. Click and drag the mouse through adjacent letters to make words. Without clicking, simply moving the mouse through the tiles (fields) triggers mouseenter, mouseleave, etc. which makes it easy to pick up the letters. But when the mouse is down, it seems mouseloc() is the only thing I can get. Using a variable what has all the field rectangles, I can use the mouseloc() to ultimately identify the field under the pointer, but it's too slow... Does a moving mouse with the button down trigger any other messages besides mouseloc()? Thanks, Tim Selander Tokyo, Japan From bonnmike at gmail.com Sat Mar 11 04:30:39 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 11 Mar 2017 02:30:39 -0700 Subject: Messages sent while mouse is down? In-Reply-To: <58C3AF06.1080901@tkf.att.ne.jp> References: <58C3AF06.1080901@tkf.att.ne.jp> Message-ID: mousemove works. It does appear that "mousecontrol" doesn't fire when the mouse is down so that is out. You can also use "within" which is pretty fast. Have a variable with a list of the objects you wish to check against (or array, or whatever) on mousemove if the mouse is down then repeat for each line tLine in objectList if within(tLine,the mouseloc) then put tLine into tResult exit repeat end repeat end if if tResult end mousemove On Sat, Mar 11, 2017 at 1:02 AM, Tim Selander via use-livecode < use-livecode at lists.runrev.com> wrote: > I miss the Zynga "Pathwords" game on Facebook, so for my own amusement I'm > trying to recreate it in Livecode. > > For those who don't know the game, it had a solid screenful of > Scrabble-like lettered tiles. Click and drag the mouse through adjacent > letters to make words. > > Without clicking, simply moving the mouse through the tiles (fields) > triggers mouseenter, mouseleave, etc. which makes it easy to pick up the > letters. > > But when the mouse is down, it seems mouseloc() is the only thing I can > get. Using a variable what has all the field rectangles, I can use the > mouseloc() to ultimately identify the field under the pointer, but it's too > slow... > > Does a moving mouse with the button down trigger any other messages > besides mouseloc()? > > 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 bonnmike at gmail.com Sat Mar 11 04:35:17 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 11 Mar 2017 02:35:17 -0700 Subject: Messages sent while mouse is down? In-Reply-To: References: <58C3AF06.1080901@tkf.att.ne.jp> Message-ID: accidental send before complete. *sigh* on mousemove put 1 & cr & 2 into objectList -- just using control number for the quick example if the mouse is down then repeat for each line tLine in objectList if within(control tLine,the mouseloc) then put tLine into tResult exit repeat end if end repeat end if if tResult is not empty then put tResult else put "no result" end if end mousemove On Sat, Mar 11, 2017 at 2:30 AM, Mike Bonner wrote: > mousemove works. It does appear that "mousecontrol" doesn't fire when the > mouse is down so that is out. > > You can also use "within" which is pretty fast. > > Have a variable with a list of the objects you wish to check against (or > array, or whatever) > on mousemove > > if the mouse is down then > > repeat for each line tLine in objectList > > if within(tLine,the mouseloc) then > put tLine into tResult > exit repeat > end repeat > > end if > if tResult > end mousemove > > On Sat, Mar 11, 2017 at 1:02 AM, Tim Selander via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I miss the Zynga "Pathwords" game on Facebook, so for my own amusement >> I'm trying to recreate it in Livecode. >> >> For those who don't know the game, it had a solid screenful of >> Scrabble-like lettered tiles. Click and drag the mouse through adjacent >> letters to make words. >> >> Without clicking, simply moving the mouse through the tiles (fields) >> triggers mouseenter, mouseleave, etc. which makes it easy to pick up the >> letters. >> >> But when the mouse is down, it seems mouseloc() is the only thing I can >> get. Using a variable what has all the field rectangles, I can use the >> mouseloc() to ultimately identify the field under the pointer, but it's too >> slow... >> >> Does a moving mouse with the button down trigger any other messages >> besides mouseloc()? >> >> 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 Mar 11 04:49:02 2017 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sat, 11 Mar 2017 18:49:02 +0900 Subject: Messages sent while mouse is down? In-Reply-To: References: <58C3AF06.1080901@tkf.att.ne.jp> Message-ID: <58C3C80E.1080600@tkf.att.ne.jp> Oh ho! That does it, Mike. Many thanks! Tim On 2017.03.11, 18:35, Mike Bonner via use-livecode wrote: > accidental send before complete. *sigh* > > on mousemove > put 1 & cr & 2 into objectList -- just using control number for the > quick example > if the mouse is down then > repeat for each line tLine in objectList > if within(control tLine,the mouseloc) then > put tLine into tResult > exit repeat > end if > end repeat > end if > if tResult is not empty then > put tResult > else > put "no result" > end if > end mousemove > > On Sat, Mar 11, 2017 at 2:30 AM, Mike Bonner wrote: > >> mousemove works. It does appear that "mousecontrol" doesn't fire when the >> mouse is down so that is out. >> >> You can also use "within" which is pretty fast. >> >> Have a variable with a list of the objects you wish to check against (or >> array, or whatever) >> on mousemove >> >> if the mouse is down then >> >> repeat for each line tLine in objectList >> >> if within(tLine,the mouseloc) then >> put tLine into tResult >> exit repeat >> end repeat >> >> end if >> if tResult >> end mousemove >> >> On Sat, Mar 11, 2017 at 1:02 AM, Tim Selander via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I miss the Zynga "Pathwords" game on Facebook, so for my own amusement >>> I'm trying to recreate it in Livecode. >>> >>> For those who don't know the game, it had a solid screenful of >>> Scrabble-like lettered tiles. Click and drag the mouse through adjacent >>> letters to make words. >>> >>> Without clicking, simply moving the mouse through the tiles (fields) >>> triggers mouseenter, mouseleave, etc. which makes it easy to pick up the >>> letters. >>> >>> But when the mouse is down, it seems mouseloc() is the only thing I can >>> get. Using a variable what has all the field rectangles, I can use the >>> mouseloc() to ultimately identify the field under the pointer, but it's too >>> slow... >>> >>> Does a moving mouse with the button down trigger any other messages >>> besides mouseloc()? >>> >>> 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 m.schonewille at economy-x-talk.com Sat Mar 11 07:07:21 2017 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 11 Mar 2017 13:07:21 +0100 Subject: Allowed Orientations failing on mobile in 9dp5? In-Reply-To: <97EC8E1F-C4A2-4F36-BFA9-7966D3DF7879@hindu.org> References: <97EC8E1F-C4A2-4F36-BFA9-7966D3DF7879@hindu.org> Message-ID: Thanks foe pointing out that it works in 8.1.3. At the conference, we tried quite a few versions and none worked. This must be a bug. Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch Buy the most extensive book on the LiveCode language: http://livecodebeginner.economy-x-talk.com Op 11-Mar-17 om 06:03 schreef Sannyasin Brahmanathaswami via use-livecode: > This used to work on 8.1.3 > > on preopenStack > command sivasiva_InitOrientation "landscape" > end preopenstack > > #with these in a library that was started on init.. (i.e. effectively a backscript) > > command sivasiva_InitOrientation orientationType > if the environment is not "mobile" then return false > set the fullscreenmode of this stack to "showAll" -- better for wider screens > mobile_SetAllowedOrientation orientationType > end sivasiva_InitOrientation > > command mobile_SetAllowedOrientation orientationType > if the environment is not "mobile" then return empty > switch orientationType > case "portrait" > put "portrait,portrait upside down" into allowedOrientations > break > case "landscape" > put "landscape left,landscape right" into allowedOrientations > break > default -- allow all, ignoring face up/down > put "portrait,portrait upside down,landscape left,landscape right" into allowedOrientations > end switch > mobileSetAllowedOrientations allowedOrientations > return allowedOrientations > end mobile_SetAllowedOrientation > > > This use to force a new stack open in the app to "go sideways" even if the user was holding the phone "upright" > > but now standalones built with 9dp5? the stack opens small in portrait mode > > is this happening for anyone else? > > 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 mark.rauterkus at gmail.com Sat Mar 11 08:12:48 2017 From: mark.rauterkus at gmail.com (Mark Rauterkus) Date: Sat, 11 Mar 2017 08:12:48 -0500 Subject: Local engagement Message-ID: Hi, IMHO, another avenue for local LiveCode engagement are the *Camps. Especially the WordCamps and PodCamps. Plus there are the CodeFests and Hack-a-thons. At those meetings, I've found that some of the folks there at any given time are networking for jobs. That's good. Then there are the regulars who are fixtures, of course. The Rapid Application Development helps and some of the time it is just a prototype and window dressing, and under the hood, there isn't real hope of making it work. But, for the contest, it is fun to make the demo sizzle. With the PodCamps and WordCamps, the typical participant is not a computer genius, but more of a creative person. Designers, authors,opinionated bloggers, etc. I feel that those folks, plus the educators, are closer to the sweet spot for LiveCode's wider adoption. I have not been going to many *.edu events. That too seems to be a good place to plant seeds. I do attend a couple of our Western PA LUG meetings. But, I'm not a regular. No luck or attempts at me giving a demo. But, I do have conversations often. In our town, Pittsburgh, PA, USA, we tried to get a LiveCode user group going, but we've got less than five who care enough to make the time. Anyone else in town here? The other HUGE area where I think LiveCode could shine is with the Raspberry Pi community. But, sadly, the mothership is not putting support there for confidence to take root, IMHO. So, that remains only a dream. An annual release for Pi would be most welcomed. Finally, there are a few "happy hour" type tech meetings in town as well. They are not my cup of tea as they often meet when I'm with the kids at swim practices. So, my weekend schedule with Saturday Swim School and meets does not let me get to as many of those meetings as I'd like to attend. -- Ta. Mark Rauterkus Mark at Rauterkus.com PPS Summer Dreamers' Swim & Water Polo Camp Executive Coach Varsity Boys Swim Coach, Pittsburgh Obama Academy Recent Head Water Polo Coach, Carnegie Mellon University Women's Club Team Pittsburgh Combined Water Polo Team http://CLOH.org 412 298 3432 = cell From jacque at hyperactivesw.com Sat Mar 11 11:32:24 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 11 Mar 2017 10:32:24 -0600 Subject: Messages sent while mouse is down? In-Reply-To: <58C3C80E.1080600@tkf.att.ne.jp> References: <58C3AF06.1080901@tkf.att.ne.jp> <58C3C80E.1080600@tkf.att.ne.jp> Message-ID: <15abe36c1c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> You could also try comtrolAtLoc() which would avoid the loop. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 11, 2017 3:51:04 AM Tim Selander via use-livecode wrote: > Oh ho! > > That does it, Mike. Many thanks! > > Tim > > On 2017.03.11, 18:35, Mike Bonner via use-livecode wrote: >> accidental send before complete. *sigh* >> >> on mousemove >> put 1 & cr & 2 into objectList -- just using control number for the >> quick example >> if the mouse is down then >> repeat for each line tLine in objectList >> if within(control tLine,the mouseloc) then >> put tLine into tResult >> exit repeat >> end if >> end repeat >> end if >> if tResult is not empty then >> put tResult >> else >> put "no result" >> end if >> end mousemove >> >> On Sat, Mar 11, 2017 at 2:30 AM, Mike Bonner wrote: >> >>> mousemove works. It does appear that "mousecontrol" doesn't fire when the >>> mouse is down so that is out. >>> >>> You can also use "within" which is pretty fast. >>> >>> Have a variable with a list of the objects you wish to check against (or >>> array, or whatever) >>> on mousemove >>> >>> if the mouse is down then >>> >>> repeat for each line tLine in objectList >>> >>> if within(tLine,the mouseloc) then >>> put tLine into tResult >>> exit repeat >>> end repeat >>> >>> end if >>> if tResult >>> end mousemove >>> >>> On Sat, Mar 11, 2017 at 1:02 AM, Tim Selander via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> I miss the Zynga "Pathwords" game on Facebook, so for my own amusement >>>> I'm trying to recreate it in Livecode. >>>> >>>> For those who don't know the game, it had a solid screenful of >>>> Scrabble-like lettered tiles. Click and drag the mouse through adjacent >>>> letters to make words. >>>> >>>> Without clicking, simply moving the mouse through the tiles (fields) >>>> triggers mouseenter, mouseleave, etc. which makes it easy to pick up the >>>> letters. >>>> >>>> But when the mouse is down, it seems mouseloc() is the only thing I can >>>> get. Using a variable what has all the field rectangles, I can use the >>>> mouseloc() to ultimately identify the field under the pointer, but it's too >>>> slow... >>>> >>>> Does a moving mouse with the button down trigger any other messages >>>> besides mouseloc()? >>>> >>>> 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 ambassador at fourthworld.com Sat Mar 11 12:44:12 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 11 Mar 2017 09:44:12 -0800 Subject: LC for Raspberry Pi Message-ID: <21ed3041-c3eb-21e1-91c1-bc2b4cd99f42@fourthworld.com> In another thread Mark Rauterkus wrote: > The other HUGE area where I think LiveCode could shine is with the > Raspberry Pi community. But, sadly, the mothership is not putting > support there for confidence to take root, IMHO. So, that remains > only a dream. An annual release for Pi would be most welcomed. I agree, an RPi update would be great. But I'm not sure this needs to be a company effort, and to be honest we've seen only a few in our community actually interested in participating to maintain it. But we do have some, and the team made some updates to the Github repo to help that along. I set up a thread for this project in the forums: http://forums.livecode.com/viewtopic.php?f=76&t=27912 At this point we're down to just a few specific questions we need some guidance on, and I've seen a note on the LC Gitter feed from someone who successfully made an RPi build from the 8.1.3 code base, so we know it's possible. Let me take a moment to outline near-term and long-term goals for the Raspberry Pi project, and encourage anyone here interested in helping to move this forward to jump into the forums at the link above. Near-Term --------- The last RPi build was v7.0.4, which is generally good with one critical issue: a bug in the menu handling routine causes a crash when clicking in a menubar. This currently prevents the IDE from being run on the RPi itself, which of course we'll want to see for EDU adoption (with some caveats noted below in "Long-Term"). But for any GUI that doesn't use menus that doesn't stop RPi from being a deployment platform. Check out the 7-pages-and-growing thread by -hh chock full o' stacks designed specifically for the RPi: It also doesn't prevent what is to me the most interesting use of RPi: IoT. Such devices will not usually need a UI of their own, and LC Server v7.0.4 runs great on RPi, as do standalones run facelessely with -ui. With GUI control of the device handled from a desktop app or a mobile app on your Android or iOS device, the range of interesting things that can be done with LC on RPi are vast, even with the limitations of the v7.0.4 engine. Once we get the build process set up for 8.x and 9.x, we should be in very good shape to handle any remaining issue (though I suspect with all the good work done for the Linux engine since v7 we may find the menu issue has already been resolved). Long-Term --------- RPi is great. And RPi also sucks. :) It's great because it's small and cheap. And it sucks for the same reasons: little RAM, and very slow. In fact, while I do keep an SD card loaded with a GUI OS just for playing around, I find any GUI on RPi (including the bundled browser and even the desktop manager) to abysmally slow to be satisfying. So for me, if I had to deliver a GUI for RPi I'd much rather use a workflow similar to what we do with mobile: develop on a fully-spec'd desktop machine, and deploy to the device. And as long as that's what you're doing, LC is a great experience. But then we consider classrooms in which the RPi is the only device the kids work with. There, developing on a full-featured desktop machine won't be an option. The LC IDE is a rich system, but requires a lot of RAM and a rather huge amount of disk space (> 1 GB in recent versions). These resource requirements cause LC to strain the RPi, esp. RAM but also CPU (instruction sets matter; 1.2 GHz on x86 doesn't necessarily equate to the same clockspeed on ARM, though compiler options may be able to help with some of that). So even when we update LC's RPi engine to v9, it'll run robustly but slowly. Painfully slowly. So at some point, if there's enough interest in using an LC-based IDE directly on the RPi, we may want to consider making a lightweight IDE for that. That might seem daunting, and it's certainly not a trivial task. But the MC IDE reminds us that it's doable. Given that the MC IDE is available under MIT license, it may be a tempting starting point. But it's quite old; it doesn't support many newer features the engine provides, and uses a very different means of building standalones (indeed I doubt MC's standalone builder even works at all in newer versions). Perhaps the best path would be a fresh start, taking advantage of newer language features and a better understanding of workflow needs to create a fresh approach designed specifically for low-end systems. And maybe it doesn't need to include a standalone builder, at least not at first. A runner app that plays stacks would be more than fine for EDU settings. In fact, in some ways it might even be better. One of my back-burner projects is an EDU-focused toolkit that, among other things, has network stack-sharing built in. Imagine a world of students using any computer, all sharing stacks easily with one another.... The runner could be built now. That part's relatively easy. Harder is on-device authoring. The current IDE is unlikely to be satisfying given resource constraints, so any widespread adoption will benefit from a lightweight IDE. If that sounds daunting, it isn't. More tedious than difficult. And if well-factored at the core, any one of us can work on just one corner of it, and the parts can interoperate gracefully. If the Linux world can churn out any number of entire desktop environments for the OS, certainly we can craft an IDE or two for LiveCode. -- Richard Gaskin LiveCode Community Liaison richard at livecode.org From ambassador at fourthworld.com Sat Mar 11 12:47:30 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 11 Mar 2017 09:47:30 -0800 Subject: Local engagement In-Reply-To: References: Message-ID: <9db00cb3-18a5-6a4f-58e2-c469f7f2a563@fourthworld.com> Mark Rauterkus wrote: > IMHO, another avenue for local LiveCode engagement are the *Camps. > Especially the WordCamps and PodCamps. > > Plus there are the CodeFests and Hack-a-thons. Those are great - thanks for mentioning them. I originally asked about user groups since that's where I spend much of my own social time, and with the "Download LC Community: trapped" thread being about the open source community I thought it would helpful to get a feel for how much time the readers here spend with groups focused on open source software. But there's a lot to be said for Hackathons and the like, and with a good team they can be a great way to show off LC workflows. > With the PodCamps and WordCamps, the typical participant is not a > computer genius, but more of a creative person. Designers, > authors,opinionated bloggers, etc. I feel that those folks, plus the > educators, are closer to the sweet spot for LiveCode's wider adoption. > > I have not been going to many *.edu events. That too seems to be a > good place to plant seeds. I wonder if the Toronto LC Group has had much cross-pollination with EDU events. Martin Koob seems to run a fine group there, with Tom Glod presenting at their last meeting and before that they had none other than Fraser Gordon: https://www.meetup.com/Greater-Toronto-Area-LiveCode-Users-Group/ > I do attend a couple of our Western PA LUG meetings. But, I'm not a > regular. No luck or attempts at me giving a demo. But, I do have > conversations often. Who runs that? I wonder if we might make a subforum for them in the User Groups section of the LC Forums: http://forums.livecode.com/viewforum.php?f=30 > In our town, Pittsburgh, PA, USA, we tried to get a LiveCode user > group going, but we've got less than five who care enough to make the > time. Anyone else in town here? Sometimes small groups are still quite useful. With our SoCal group we've had smaller meetings in the past, and those who did show up still had a good time. The Raspberry Pi part was so good I made a separate thread from that so it doesn't get lost.... Another area ripe for LC may be the many municipal open data initiatives spreading across the States and elsewhere. A growing number of cities are publishing data they collect so app devs can turn that into solutions for the local community. Jason Hibbets has been quite an effective leader in this area through his work with the City of Raleigh, NC. His book is freely downloadable as PDF, available here: http://theopensourcecity.com/ Many local cities here (Los Angeles, Santa Monica, Long Beach, Pasadena) have open data portals, and last weekend reps from all four cities gathered at the SoCal Linux Expo (SCaLE) for a panel on that: Being an education-focused non-profit, everything at SCaLE is recorded and made freely available - the video of that session is here: (In fact, the whole open data track is in that video, and the session following it on IoT may also be of interest to some here). One of the outcomes there was identifying the need for a citizen committee in Pasadena to help coordinate between local devs and city resources. I'll be working with my friend Matti, who organized the panel, to help put that together. Among other goals I'm hoping that we'll find opportunities to deliver efficient, cost-effective interfaces to this data with LiveCode. -- Richard Gaskin LiveCode Community Liaison richard at livecode.org From bonnmike at gmail.com Sat Mar 11 12:53:08 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 11 Mar 2017 10:53:08 -0700 Subject: Messages sent while mouse is down? In-Reply-To: <15abe36c1c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <58C3AF06.1080901@tkf.att.ne.jp> <58C3C80E.1080600@tkf.att.ne.jp> <15abe36c1c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hey thats awesome! Thanks Jacqueline, another gem I had yet to discover. On Sat, Mar 11, 2017 at 9:32 AM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > You could also try comtrolAtLoc() which would avoid the loop. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On March 11, 2017 3:51:04 AM Tim Selander via use-livecode < > use-livecode at lists.runrev.com> wrote: > > Oh ho! >> >> That does it, Mike. Many thanks! >> >> Tim >> >> On 2017.03.11, 18:35, Mike Bonner via use-livecode wrote: >> >>> accidental send before complete. *sigh* >>> >>> on mousemove >>> put 1 & cr & 2 into objectList -- just using control number for the >>> quick example >>> if the mouse is down then >>> repeat for each line tLine in objectList >>> if within(control tLine,the mouseloc) then >>> put tLine into tResult >>> exit repeat >>> end if >>> end repeat >>> end if >>> if tResult is not empty then >>> put tResult >>> else >>> put "no result" >>> end if >>> end mousemove >>> >>> On Sat, Mar 11, 2017 at 2:30 AM, Mike Bonner wrote: >>> >>> mousemove works. It does appear that "mousecontrol" doesn't fire when >>>> the >>>> mouse is down so that is out. >>>> >>>> You can also use "within" which is pretty fast. >>>> >>>> Have a variable with a list of the objects you wish to check against (or >>>> array, or whatever) >>>> on mousemove >>>> >>>> if the mouse is down then >>>> >>>> repeat for each line tLine in objectList >>>> >>>> if within(tLine,the mouseloc) then >>>> put tLine into tResult >>>> exit repeat >>>> end repeat >>>> >>>> end if >>>> if tResult >>>> end mousemove >>>> >>>> On Sat, Mar 11, 2017 at 1:02 AM, Tim Selander via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> I miss the Zynga "Pathwords" game on Facebook, so for my own amusement >>>>> I'm trying to recreate it in Livecode. >>>>> >>>>> For those who don't know the game, it had a solid screenful of >>>>> Scrabble-like lettered tiles. Click and drag the mouse through adjacent >>>>> letters to make words. >>>>> >>>>> Without clicking, simply moving the mouse through the tiles (fields) >>>>> triggers mouseenter, mouseleave, etc. which makes it easy to pick up >>>>> the >>>>> letters. >>>>> >>>>> But when the mouse is down, it seems mouseloc() is the only thing I can >>>>> get. Using a variable what has all the field rectangles, I can use the >>>>> mouseloc() to ultimately identify the field under the pointer, but >>>>> it's too >>>>> slow... >>>>> >>>>> Does a moving mouse with the button down trigger any other messages >>>>> besides mouseloc()? >>>>> >>>>> 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 jacque at hyperactivesw.com Sat Mar 11 13:10:56 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 11 Mar 2017 12:10:56 -0600 Subject: Messages sent while mouse is down? In-Reply-To: References: <58C3AF06.1080901@tkf.att.ne.jp> <58C3C80E.1080600@tkf.att.ne.jp> <15abe36c1c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <15abe90f780.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> And it works even better when I spell it right. ;-) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 11, 2017 11:54:59 AM Mike Bonner via use-livecode wrote: > Hey thats awesome! Thanks Jacqueline, another gem I had yet to discover. > > On Sat, Mar 11, 2017 at 9:32 AM, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You could also try comtrolAtLoc() which would avoid the loop. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On March 11, 2017 3:51:04 AM Tim Selander via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Oh ho! >>> >>> That does it, Mike. Many thanks! >>> >>> Tim >>> >>> On 2017.03.11, 18:35, Mike Bonner via use-livecode wrote: >>> >>>> accidental send before complete. *sigh* >>>> >>>> on mousemove >>>> put 1 & cr & 2 into objectList -- just using control number for the >>>> quick example >>>> if the mouse is down then >>>> repeat for each line tLine in objectList >>>> if within(control tLine,the mouseloc) then >>>> put tLine into tResult >>>> exit repeat >>>> end if >>>> end repeat >>>> end if >>>> if tResult is not empty then >>>> put tResult >>>> else >>>> put "no result" >>>> end if >>>> end mousemove >>>> >>>> On Sat, Mar 11, 2017 at 2:30 AM, Mike Bonner wrote: >>>> >>>> mousemove works. It does appear that "mousecontrol" doesn't fire when >>>>> the >>>>> mouse is down so that is out. >>>>> >>>>> You can also use "within" which is pretty fast. >>>>> >>>>> Have a variable with a list of the objects you wish to check against (or >>>>> array, or whatever) >>>>> on mousemove >>>>> >>>>> if the mouse is down then >>>>> >>>>> repeat for each line tLine in objectList >>>>> >>>>> if within(tLine,the mouseloc) then >>>>> put tLine into tResult >>>>> exit repeat >>>>> end repeat >>>>> >>>>> end if >>>>> if tResult >>>>> end mousemove >>>>> >>>>> On Sat, Mar 11, 2017 at 1:02 AM, Tim Selander via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> I miss the Zynga "Pathwords" game on Facebook, so for my own amusement >>>>>> I'm trying to recreate it in Livecode. >>>>>> >>>>>> For those who don't know the game, it had a solid screenful of >>>>>> Scrabble-like lettered tiles. Click and drag the mouse through adjacent >>>>>> letters to make words. >>>>>> >>>>>> Without clicking, simply moving the mouse through the tiles (fields) >>>>>> triggers mouseenter, mouseleave, etc. which makes it easy to pick up >>>>>> the >>>>>> letters. >>>>>> >>>>>> But when the mouse is down, it seems mouseloc() is the only thing I can >>>>>> get. Using a variable what has all the field rectangles, I can use the >>>>>> mouseloc() to ultimately identify the field under the pointer, but >>>>>> it's too >>>>>> slow... >>>>>> >>>>>> Does a moving mouse with the button down trigger any other messages >>>>>> besides mouseloc()? >>>>>> >>>>>> 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 bonnmike at gmail.com Sat Mar 11 14:43:25 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 11 Mar 2017 12:43:25 -0700 Subject: Messages sent while mouse is down? In-Reply-To: <15abe90f780.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <58C3AF06.1080901@tkf.att.ne.jp> <58C3C80E.1080600@tkf.att.ne.jp> <15abe36c1c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15abe90f780.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Nah. If you type it wrong twice the error cancels out. On Sat, Mar 11, 2017 at 11:10 AM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > And it works even better when I spell it right. ;-) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On March 11, 2017 11:54:59 AM Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > Hey thats awesome! Thanks Jacqueline, another gem I had yet to discover. >> >> On Sat, Mar 11, 2017 at 9:32 AM, J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> You could also try comtrolAtLoc() which would avoid the loop. >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> >>> >>> On March 11, 2017 3:51:04 AM Tim Selander via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Oh ho! >>> >>>> >>>> That does it, Mike. Many thanks! >>>> >>>> Tim >>>> >>>> On 2017.03.11, 18:35, Mike Bonner via use-livecode wrote: >>>> >>>> accidental send before complete. *sigh* >>>>> >>>>> on mousemove >>>>> put 1 & cr & 2 into objectList -- just using control number for the >>>>> quick example >>>>> if the mouse is down then >>>>> repeat for each line tLine in objectList >>>>> if within(control tLine,the mouseloc) then >>>>> put tLine into tResult >>>>> exit repeat >>>>> end if >>>>> end repeat >>>>> end if >>>>> if tResult is not empty then >>>>> put tResult >>>>> else >>>>> put "no result" >>>>> end if >>>>> end mousemove >>>>> >>>>> On Sat, Mar 11, 2017 at 2:30 AM, Mike Bonner >>>>> wrote: >>>>> >>>>> mousemove works. It does appear that "mousecontrol" doesn't fire when >>>>> >>>>>> the >>>>>> mouse is down so that is out. >>>>>> >>>>>> You can also use "within" which is pretty fast. >>>>>> >>>>>> Have a variable with a list of the objects you wish to check against >>>>>> (or >>>>>> array, or whatever) >>>>>> on mousemove >>>>>> >>>>>> if the mouse is down then >>>>>> >>>>>> repeat for each line tLine in objectList >>>>>> >>>>>> if within(tLine,the mouseloc) then >>>>>> put tLine into tResult >>>>>> exit repeat >>>>>> end repeat >>>>>> >>>>>> end if >>>>>> if tResult >>>>>> end mousemove >>>>>> >>>>>> On Sat, Mar 11, 2017 at 1:02 AM, Tim Selander via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> I miss the Zynga "Pathwords" game on Facebook, so for my own amusement >>>>>> >>>>>>> I'm trying to recreate it in Livecode. >>>>>>> >>>>>>> For those who don't know the game, it had a solid screenful of >>>>>>> Scrabble-like lettered tiles. Click and drag the mouse through >>>>>>> adjacent >>>>>>> letters to make words. >>>>>>> >>>>>>> Without clicking, simply moving the mouse through the tiles (fields) >>>>>>> triggers mouseenter, mouseleave, etc. which makes it easy to pick up >>>>>>> the >>>>>>> letters. >>>>>>> >>>>>>> But when the mouse is down, it seems mouseloc() is the only thing I >>>>>>> can >>>>>>> get. Using a variable what has all the field rectangles, I can use >>>>>>> the >>>>>>> mouseloc() to ultimately identify the field under the pointer, but >>>>>>> it's too >>>>>>> slow... >>>>>>> >>>>>>> Does a moving mouse with the button down trigger any other messages >>>>>>> besides mouseloc()? >>>>>>> >>>>>>> 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 >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 11 15:01:34 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 11 Mar 2017 12:01:34 -0800 Subject: Messages sent while mouse is down? In-Reply-To: References: <58C3AF06.1080901@tkf.att.ne.jp> <58C3C80E.1080600@tkf.att.ne.jp> <15abe36c1c0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <15abe90f780.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: On 03/11/2017 11:43 AM, Mike Bonner via use-livecode wrote: > Nah. If you type it wrong twice the error cancels out. Two wrongs don't make a right, but three lefts do. --Steven Wright -- Mark Wieder ahsoftware at gmail.com From hh at hyperhh.de Sat Mar 11 15:06:29 2017 From: hh at hyperhh.de (hh) Date: Sat, 11 Mar 2017 21:06:29 +0100 Subject: Messages sent while mouse is down? Message-ID: Although there is one scenario where one has to use Mike's looping "within"-approach (adjusted to collecting, not exiting the repeat): If the controls in question (may be all) have some overlapping areas: controlAtLoc((x,y)) reports only the control at (x,y) with the highest layer. > JLG wrote: > You could also try controlAtLoc() which would avoid the loop. > MB wrote: > on mousemove > -- just using control number for the quick example > put 1 & cr & 2 into objectList > if the mouse is down then > repeat for each line tLine in objectList > if within(control tLine,the mouseloc) then > put tLine into tResult > exit repeat > end if > end repeat > end if > if tResult is not empty then > put tResult > else > put "no result" > end if > end mousemove From hh at hyperhh.de Sat Mar 11 15:50:01 2017 From: hh at hyperhh.de (hh) Date: Sat, 11 Mar 2017 21:50:01 +0100 Subject: LC for Raspberry Pi Message-ID: <6D6EAFD0-3323-4A1A-B75A-AEA2D5231CA5@hyperhh.de> Richard. Thanks for your engagement. I would like to second this with 98%. Let me correct two of your statements (the missing 2%). 1. > RG wrote: > The last RPi build was v704, which is generally good with one critical > issue: a bug in the menu handling routine causes a crash when clicking > in a menubar. That's wrong in that generality. I have four Raspi's running (one A with Debian, two B+ with Lubuntu or Debian resp., one 3 with Xubuntu or Debian resp., the Debian needs to be first installed on a 2B+, see forum). So install an appropriate OS and it works. Though 3-5 imes slower than v651. 2. > RG wrote: > So for me, if I had to deliver a GUI for RPi I'd much rather use a workflow > similar to what we do with mobile: develop on a fully-spec'd desktop > machine, and deploy to the device. If "I'd" means "I would" then I'd say once again (I told you in the forum): This is the way I did from the beginning of the existence of __LC 704__, which is the only one that has a Raspi-deployment option (Linux ARMv6-HF). Simply copy the standalone created on your desktop box to your Raspi via sftp (what may be even scripted) or via an USB stick. So if developers optimize for speed (as LC 7 is 3-5 times slower than LC 6) they can have this, since years. By ONE click and ONE data transfer. From jonathandlynch at gmail.com Sat Mar 11 16:19:50 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 11 Mar 2017 16:19:50 -0500 Subject: LC for Raspberry Pi In-Reply-To: <6D6EAFD0-3323-4A1A-B75A-AEA2D5231CA5@hyperhh.de> References: <6D6EAFD0-3323-4A1A-B75A-AEA2D5231CA5@hyperhh.de> Message-ID: <7DFD0662-8219-41BE-B649-38953EBE97E4@gmail.com> Why is LC 7 slower than 6? Sent from my iPhone > On Mar 11, 2017, at 3:50 PM, hh via use-livecode wrote: > > Richard. > > Thanks for your engagement. I would like to second this with 98%. > > Let me correct two of your statements (the missing 2%). > > 1. >> RG wrote: >> The last RPi build was v704, which is generally good with one critical >> issue: a bug in the menu handling routine causes a crash when clicking >> in a menubar. > That's wrong in that generality. I have four Raspi's running > (one A with Debian, two B+ with Lubuntu or Debian resp., one 3 with Xubuntu > or Debian resp., the Debian needs to be first installed on a 2B+, see forum). > So install an appropriate OS and it works. Though 3-5 imes slower than v651. > > 2. >> RG wrote: >> So for me, if I had to deliver a GUI for RPi I'd much rather use a workflow >> similar to what we do with mobile: develop on a fully-spec'd desktop >> machine, and deploy to the device. > > If "I'd" means "I would" then I'd say once again (I told you in the forum): > This is the way I did from the beginning of the existence of __LC 704__, > which is the only one that has a Raspi-deployment option (Linux ARMv6-HF). > Simply copy the standalone created on your desktop box to your Raspi via sftp > (what may be even scripted) or via an USB stick. > > So if developers optimize for speed (as LC 7 is 3-5 times slower than LC 6) > they can have this, since years. By ONE click and ONE data transfer. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 11 16:55:49 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 11 Mar 2017 13:55:49 -0800 Subject: LC for Raspberry Pi In-Reply-To: <7DFD0662-8219-41BE-B649-38953EBE97E4@gmail.com> References: <7DFD0662-8219-41BE-B649-38953EBE97E4@gmail.com> Message-ID: jonathandlynch wrote: > Why is LC 7 slower than 6? There may be additional factors specific to the RPi build, but in general those differences were due to Unicode support and unoptimized refactoring related to that and other large-scale scopes of work. With v9 much of the earlier performance drop has been regained, with key work on done common things like lineoffset and some other chunk expressions, arrays, and more. Some rendering operations may still benefit from optimization, esp. on Windows, but overall I've not seen much in that area on Linux. Given the larger data sizes of some Unicode strings you can still expect some performance loss in some areas, but in my experience nothing like moving from v6 to v7. If you come across anything prohibitive please submit a bug report. The team has worked through a number of performance-related bug reports, and sometimes when they see a new recipe it'll alter them to opportunities they hadn't considered. The lineoffset fix was among those. In v6 and earlier chunk delimiters could only be a single character, but v7 introduced multi-char delimiters. Kinda cool if you need it, but a more costly substring compare is needed to support that. With v8 they were able to fork the operation so that when a delimiter is only a single char it uses the older routine, saving the cooler-but-costlier substring compare only for when needed. -- 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 Mar 11 17:14:50 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 11 Mar 2017 14:14:50 -0800 Subject: LC for Raspberry Pi In-Reply-To: <6D6EAFD0-3323-4A1A-B75A-AEA2D5231CA5@hyperhh.de> References: <6D6EAFD0-3323-4A1A-B75A-AEA2D5231CA5@hyperhh.de> Message-ID: <76c149e6-243c-e3da-37c0-bf2432827932@fourthworld.com> hh wrote: > Richard. > > Thanks for your engagement. I would like to second this with 98%. > > Let me correct two of your statements (the missing 2%). > > 1. >> RG wrote: >> The last RPi build was v704, which is generally good with one >> critical issue: a bug in the menu handling routine causes a crash >> when clicking in a menubar. > That's wrong in that generality. I have four Raspi's running > (one A with Debian, two B+ with Lubuntu or Debian resp., one 3 with > Xubuntu or Debian resp., the Debian needs to be first installed on > a 2B+, see forum). So install an appropriate OS and it works. Though > 3-5 imes slower than v651. It's nice to know it can work well with certain distros, but for myself (focused on a goal of adoption) an "appropriate OS" is the one most commonly used. I ran my tests on the latest stock Raspian most prominently available at raspberrypi.org at the time. If LC won't run on the most common build (and it seems to except for that one bug), it's time for a fresh compile. Hopefully it won't be much longer. > 2. >> RG wrote: >> So for me, if I had to deliver a GUI for RPi I'd much rather use a >> workflow similar to what we do with mobile: develop on a fully- >> spec'd desktop machine, and deploy to the device. > > If "I'd" means "I would" then I'd say once again (I told you in the > forum): > This is the way I did from the beginning of the existence of __LC > 704__, which is the only one that has a Raspi-deployment option > (Linux ARMv6-HF). > Simply copy the standalone created on your desktop box to your Raspi > via sftp (what may be even scripted) or via an USB stick. > > So if developers optimize for speed (as LC 7 is 3-5 times slower than > LC 6) they can have this, since years. By ONE click and ONE data > transfer. When we get a fresh build with v9 I think we'll see many speed improvements in the RPi engine (see earlier reply to jonathandlynch). V6 is nice, but old. It would be ideal to keep formats and features in sync with the rest of the LC world. And the work Fraser and other have done in v7 and v8 for better GTK integration has been superb, at least in the Gnome-based DE's I'm using (Unity in Ubuntu and LXDE in Lubuntu). But regardless of version, it seems we're on the same page with a worklow that favors building on the desktop and running on the RPi. In fact, this morning I was curious about Xojo's system requirements for their RPi deployments, and it seems Xojo isn't available for RPi - that is, not the IDE. They have a runtime engine only, so the workflow they require is the same one you and I recommend with LC, building on desktop to run on RPi. Still, given the many EDU use cases where having an IDE on the RPi would be desirable, I'd like to explore options for a lightweight IDE down the road (though probably way down the road for me; lots of other priorities before that). -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From cubist at aol.com Sat Mar 11 18:06:40 2017 From: cubist at aol.com (Quentin Long) Date: Sat, 11 Mar 2017 18:06:40 -0500 Subject: Messages sent while mouse is down? In-Reply-To: References: Message-ID: <15abf9fb9af-177b-b7d0@webjasstg-vaa16.srv.aolmail.net> sez Tim Selander : > I miss the Zynga "Pathwords" game on Facebook, so for my own > amusement I'm trying to recreate it in Livecode. > > For those who don't know the game, it had a solid screenful of > Scrabble-like lettered tiles. Click and drag the mouse through > adjacent letters to make words. > > Without clicking, simply moving the mouse through the tiles > (fields) triggers mouseenter, mouseleave, etc. which makes it > easy to pick up the letters. > > But when the mouse is down, it seems mouseloc() is the only thing > I can get. Using a variable what has all the field rectangles, I > can use the mouseloc() to ultimately identify the field under the > pointer, but it's too slow... > > Does a moving mouse with the button down trigger any other > messages besides mouseloc()? I see that Mike Bonner has already provided a solution which seems to do what you want. But just in case there are other people out there who might need a different solution, here's my stab at it? If you have a "screenful of Scrabble-like lettered tiles", these "tiles" are presumably arranged in a rectangular grid, with neatly aligned rows and columns. If this is the case, the locations of the row-tiles are going to be separated by X number of pixels, such that row-tile 1 has X-co?rdinate A; row-tile 2 has X-co?rdinate (A + X); row-tile 3 has X-coordinate (A + 2*X); and so on. Column-tiles will work similarly. Their locations will be separated by Y number of pixels, such that column-tile 1 has Y co?rdinate B; column-tile 2 has Y co?rdinate (B + Y); column-tile 3 has Y co?rdinate (B + 2*Y); and so on. If the grid's horizontal spacing is identical to its vertical spacing, the separation-values X and Y will be the same, of course. Given the fact that pixels are not *necessarily* square, it would be imprudent to *assume* that the grid's horizontal and vertical separation-values are identical, and I will not make that assumption here. So. My solution to Tim Selander's problem completely ignores most of the mouse[whatever] messages, depending strictly on mouseLoc. Like so: local dX = 25 -- if the horizontal-spacing value is not 25, put the real value here local dY = 25 -- again, replace 25 with the real value as needed local TimeSlice = 50 -- how often, in milliseconds, the code checks the mouseLoc. adjust as needed for response time local GridLocPulse global GridCell = "1,1" on GridLoc ??if (GridLocPulse) then send GridLoc to me in TimeSlice milliseconds ??put the mouseLoc into ThisLoc ??put (1 + (item 1 of ThisLoc div dX)) into item 1 of GridCell -- may need tweaking to account for edge effects ??put (1 + (item 2 of ThisLoc div dY)) into item 2 of GridCell -- ditto end GridLoc on GridLocOn put true into GridLocPulse GridLoc end GridLocOn on GridLocOff put false into GridLocPulse end GridLocOff The above code can go into the script of the card where the tile-grid lives. Once every (TimeSlice) milliseconds, this code looks at the mouseLoc and converts the mouse co?rdinates into grid co?rdinates, which are stored in the global variable GridCell. GridCell being a global, its contents should be accessible to any handler in any script which includes the line "global GridCell". It's probably a good idea to *not* have the GridLoc handler burning clock-cycles *all the time*. Thus, the local variable GridLocPulse, and the subsidiary handlers GridLocOn and GridLocOff. GridLocOn activates the GridLoc handler, and GridLocOff turns GridLoc off. Hope this helps? "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [?http://www.atarmslength.net?]! If you like "At Arm's Length", support it at [?http://www.patreon.com/DarkwingDude?]. From jonathandlynch at gmail.com Sat Mar 11 18:13:43 2017 From: jonathandlynch at gmail.com (Jonathan Lynch) Date: Sat, 11 Mar 2017 18:13:43 -0500 Subject: What do you use for preliminary ads? Message-ID: I am struggling to figure out the order of events for how to do this. I am creating an app called Augmented Earth. The app will be made available for iOS, Android, PC, and Mac, and maybe Linux if the browser widget works on that platform. I have an ad space set aside at the top of the app, in a separate browser widget. I am trying to register with MobFox, but I have an odd problem. I feel that I need to have the coding for the ad space ready, before releasing the app. That means I need to be signed up for MobFox and register my app with them. However, they require that I have an iOS bundle number for the iOS version. Which would mean that I would need to put the app on the app store before I get the ads integrated. But I need to integrate the ads first, so the app is complete... So, that is a big circle of cause and effect there. I think I can work around it by having some sort of stand-in advertisement for the ad space. Then I can release the app. Then, I can update the app with MobFox integration. I have encountered another issue with MobFox, so we'll see if they are viable. Anyway, long rambling question to ask, what do you use as a stand-in advertisement until you are able to start using ads from an ad provider? -- Do all things with love From bonnmike at gmail.com Sat Mar 11 20:00:59 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 11 Mar 2017 18:00:59 -0700 Subject: Messages sent while mouse is down? In-Reply-To: <15abf9fb9af-177b-b7d0@webjasstg-vaa16.srv.aolmail.net> References: <15abf9fb9af-177b-b7d0@webjasstg-vaa16.srv.aolmail.net> Message-ID: If the names of the tiles are numbered in a logical way, and only go horizontal, and vertical, then all you need to know is the start spot, and the end spot, and can fill in the gaps between. On Sat, Mar 11, 2017 at 4:06 PM, Quentin Long via use-livecode < use-livecode at lists.runrev.com> wrote: > sez Tim Selander : > > I miss the Zynga "Pathwords" game on Facebook, so for my own > > amusement I'm trying to recreate it in Livecode. > > > > For those who don't know the game, it had a solid screenful of > > Scrabble-like lettered tiles. Click and drag the mouse through > > adjacent letters to make words. > > > > Without clicking, simply moving the mouse through the tiles > > (fields) triggers mouseenter, mouseleave, etc. which makes it > > easy to pick up the letters. > > > > But when the mouse is down, it seems mouseloc() is the only thing > > I can get. Using a variable what has all the field rectangles, I > > can use the mouseloc() to ultimately identify the field under the > > pointer, but it's too slow... > > > > Does a moving mouse with the button down trigger any other > > messages besides mouseloc()? > I see that Mike Bonner has already provided a solution which seems to do > what you want. But just in case there are other people out there who might > need a different solution, here's my stab at it? > > If you have a "screenful of Scrabble-like lettered tiles", these "tiles" > are presumably arranged in a rectangular grid, with neatly aligned rows and > columns. If this is the case, the locations of the row-tiles are going to > be separated by X number of pixels, such that row-tile 1 has X-co?rdinate > A; row-tile 2 has X-co?rdinate (A + X); row-tile 3 has X-coordinate (A + > 2*X); and so on. > > Column-tiles will work similarly. Their locations will be separated by Y > number of pixels, such that column-tile 1 has Y co?rdinate B; column-tile 2 > has Y co?rdinate (B + Y); column-tile 3 has Y co?rdinate (B + 2*Y); and so > on. > > If the grid's horizontal spacing is identical to its vertical spacing, the > separation-values X and Y will be the same, of course. Given the fact that > pixels are not *necessarily* square, it would be imprudent to *assume* that > the grid's horizontal and vertical separation-values are identical, and I > will not make that assumption here. > > So. > > My solution to Tim Selander's problem completely ignores most of the > mouse[whatever] messages, depending strictly on mouseLoc. Like so: > > local dX = 25 -- if the horizontal-spacing value is not 25, put the real > value here > local dY = 25 -- again, replace 25 with the real value as needed > local TimeSlice = 50 -- how often, in milliseconds, the code checks the > mouseLoc. adjust as needed for response time > local GridLocPulse > > global GridCell = "1,1" > > on GridLoc > if (GridLocPulse) then send GridLoc to me in TimeSlice milliseconds > put the mouseLoc into ThisLoc > put (1 + (item 1 of ThisLoc div dX)) into item 1 of GridCell -- may need > tweaking to account for edge effects > put (1 + (item 2 of ThisLoc div dY)) into item 2 of GridCell -- ditto > end GridLoc > > on GridLocOn > put true into GridLocPulse > GridLoc > end GridLocOn > > on GridLocOff > put false into GridLocPulse > end GridLocOff > > The above code can go into the script of the card where the tile-grid > lives. > > Once every (TimeSlice) milliseconds, this code looks at the mouseLoc and > converts the mouse co?rdinates into grid co?rdinates, which are stored in > the global variable GridCell. GridCell being a global, its contents should > be accessible to any handler in any script which includes the line "global > GridCell". > > It's probably a good idea to *not* have the GridLoc handler burning > clock-cycles *all the time*. Thus, the local variable GridLocPulse, and the > subsidiary handlers GridLocOn and GridLocOff. GridLocOn activates the > GridLoc handler, and GridLocOff turns GridLoc off. > > Hope this helps? > > > "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" > > Read the webcomic at [ http://www.atarmslength.net ]! > > If you like "At Arm's Length", support it at [ http://www.patreon.com/ > DarkwingDude ]. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From selander at tkf.att.ne.jp Sat Mar 11 20:06:56 2017 From: selander at tkf.att.ne.jp (Tim Selander) Date: Sun, 12 Mar 2017 10:06:56 +0900 Subject: Messages sent while mouse is down? In-Reply-To: References: <15abf9fb9af-177b-b7d0@webjasstg-vaa16.srv.aolmail.net> Message-ID: <58C49F30.5030106@tkf.att.ne.jp> Yes, that had occurred to me, but my explanation was too simplistic. While it is a Scrabble-esque game with tiles, the tiles are hexagons and are staggered on the board. (pic-- http://tinyurl.com/jjcqolm) That still might be calculate-able, but is beyond my math skills! Thanks, Tim On 2017.03.12, 10:00, Mike Bonner via use-livecode wrote: > If the names of the tiles are numbered in a logical way, and only go > horizontal, and vertical, then all you need to know is the start spot, and > the end spot, and can fill in the gaps between. > > > On Sat, Mar 11, 2017 at 4:06 PM, Quentin Long via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> sez Tim Selander : >>> I miss the Zynga "Pathwords" game on Facebook, so for my own >>> amusement I'm trying to recreate it in Livecode. >>> >>> For those who don't know the game, it had a solid screenful of >>> Scrabble-like lettered tiles. Click and drag the mouse through >>> adjacent letters to make words. >>> >>> Without clicking, simply moving the mouse through the tiles >>> (fields) triggers mouseenter, mouseleave, etc. which makes it >>> easy to pick up the letters. >>> >>> But when the mouse is down, it seems mouseloc() is the only thing >>> I can get. Using a variable what has all the field rectangles, I >>> can use the mouseloc() to ultimately identify the field under the >>> pointer, but it's too slow... >>> >>> Does a moving mouse with the button down trigger any other >>> messages besides mouseloc()? >> I see that Mike Bonner has already provided a solution which seems to do >> what you want. But just in case there are other people out there who might >> need a different solution, here's my stab at it? >> >> If you have a "screenful of Scrabble-like lettered tiles", these "tiles" >> are presumably arranged in a rectangular grid, with neatly aligned rows and >> columns. If this is the case, the locations of the row-tiles are going to >> be separated by X number of pixels, such that row-tile 1 has X-co?rdinate >> A; row-tile 2 has X-co?rdinate (A + X); row-tile 3 has X-coordinate (A + >> 2*X); and so on. >> >> Column-tiles will work similarly. Their locations will be separated by Y >> number of pixels, such that column-tile 1 has Y co?rdinate B; column-tile 2 >> has Y co?rdinate (B + Y); column-tile 3 has Y co?rdinate (B + 2*Y); and so >> on. >> >> If the grid's horizontal spacing is identical to its vertical spacing, the >> separation-values X and Y will be the same, of course. Given the fact that >> pixels are not *necessarily* square, it would be imprudent to *assume* that >> the grid's horizontal and vertical separation-values are identical, and I >> will not make that assumption here. >> >> So. >> >> My solution to Tim Selander's problem completely ignores most of the >> mouse[whatever] messages, depending strictly on mouseLoc. Like so: >> >> local dX = 25 -- if the horizontal-spacing value is not 25, put the real >> value here >> local dY = 25 -- again, replace 25 with the real value as needed >> local TimeSlice = 50 -- how often, in milliseconds, the code checks the >> mouseLoc. adjust as needed for response time >> local GridLocPulse >> >> global GridCell = "1,1" >> >> on GridLoc >> if (GridLocPulse) then send GridLoc to me in TimeSlice milliseconds >> put the mouseLoc into ThisLoc >> put (1 + (item 1 of ThisLoc div dX)) into item 1 of GridCell -- may need >> tweaking to account for edge effects >> put (1 + (item 2 of ThisLoc div dY)) into item 2 of GridCell -- ditto >> end GridLoc >> >> on GridLocOn >> put true into GridLocPulse >> GridLoc >> end GridLocOn >> >> on GridLocOff >> put false into GridLocPulse >> end GridLocOff >> >> The above code can go into the script of the card where the tile-grid >> lives. >> >> Once every (TimeSlice) milliseconds, this code looks at the mouseLoc and >> converts the mouse co?rdinates into grid co?rdinates, which are stored in >> the global variable GridCell. GridCell being a global, its contents should >> be accessible to any handler in any script which includes the line "global >> GridCell". >> >> It's probably a good idea to *not* have the GridLoc handler burning >> clock-cycles *all the time*. Thus, the local variable GridLocPulse, and the >> subsidiary handlers GridLocOn and GridLocOff. GridLocOn activates the >> GridLoc handler, and GridLocOff turns GridLoc off. >> >> Hope this helps? >> >> >> "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" >> >> Read the webcomic at [ http://www.atarmslength.net ]! >> >> If you like "At Arm's Length", support it at [ http://www.patreon.com/ >> DarkwingDude ]. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brahma at hindu.org Sun Mar 12 00:36:54 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 12 Mar 2017 05:36:54 +0000 Subject: Allowed Orientations failing on mobile in 9dp5? In-Reply-To: References: <97EC8E1F-C4A2-4F36-BFA9-7966D3DF7879@hindu.org> Message-ID: <76C9B24F-00BE-4CF5-8356-207B94D631CD@hindu.org> Hmmm Sorry, I have to "eat those words" I tried again today in 8.1.3 and it fails. But in some prior standalones? it did work, but I'm not able to trace back to what I did that made it work at that time. On 3/11/17, 2:07 AM, "use-livecode on behalf of Mark Schonewille via use-livecode" wrote: Thanks foe pointing out that it works in 8.1.3. At the conference, we tried quite a few versions and none worked. This must be a bug. Kind regards, Mark Schonewille http://economy-x-talk.com https://www.facebook.com/marksch From MikeKerner at roadrunner.com Sun Mar 12 13:01:58 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 12 Mar 2017 13:01:58 -0400 Subject: LC for Raspberry Pi In-Reply-To: <76c149e6-243c-e3da-37c0-bf2432827932@fourthworld.com> References: <6D6EAFD0-3323-4A1A-B75A-AEA2D5231CA5@hyperhh.de> <76c149e6-243c-e3da-37c0-bf2432827932@fourthworld.com> Message-ID: Pi is interesting to me because of what I can, in theory, build with it, but for the same reason so are many other things. Pi isn't going to bring revenue to LC, IMHO, the way that some of those other tools can, but being able to brag about being the easy-to-use IDE for PI would be cool. On Sat, Mar 11, 2017 at 5:14 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > hh wrote: > > > Richard. > > > > Thanks for your engagement. I would like to second this with 98%. > > > > Let me correct two of your statements (the missing 2%). > > > > 1. > >> RG wrote: > >> The last RPi build was v704, which is generally good with one > >> critical issue: a bug in the menu handling routine causes a crash > >> when clicking in a menubar. > > That's wrong in that generality. I have four Raspi's running > > (one A with Debian, two B+ with Lubuntu or Debian resp., one 3 with > > Xubuntu or Debian resp., the Debian needs to be first installed on > > a 2B+, see forum). So install an appropriate OS and it works. Though > > 3-5 imes slower than v651. > > It's nice to know it can work well with certain distros, but for myself > (focused on a goal of adoption) an "appropriate OS" is the one most > commonly used. I ran my tests on the latest stock Raspian most prominently > available at raspberrypi.org at the time. > > If LC won't run on the most common build (and it seems to except for that > one bug), it's time for a fresh compile. Hopefully it won't be much longer. > > > > 2. > >> RG wrote: > >> So for me, if I had to deliver a GUI for RPi I'd much rather use a > >> workflow similar to what we do with mobile: develop on a fully- > >> spec'd desktop machine, and deploy to the device. > > > > If "I'd" means "I would" then I'd say once again (I told you in the > > forum): > > This is the way I did from the beginning of the existence of __LC > > 704__, which is the only one that has a Raspi-deployment option > > (Linux ARMv6-HF). > > Simply copy the standalone created on your desktop box to your Raspi > > via sftp (what may be even scripted) or via an USB stick. > > > > So if developers optimize for speed (as LC 7 is 3-5 times slower than > > LC 6) they can have this, since years. By ONE click and ONE data > > transfer. > > When we get a fresh build with v9 I think we'll see many speed > improvements in the RPi engine (see earlier reply to jonathandlynch). > > V6 is nice, but old. It would be ideal to keep formats and features in > sync with the rest of the LC world. > > And the work Fraser and other have done in v7 and v8 for better GTK > integration has been superb, at least in the Gnome-based DE's I'm using > (Unity in Ubuntu and LXDE in Lubuntu). > > But regardless of version, it seems we're on the same page with a worklow > that favors building on the desktop and running on the RPi. > > In fact, this morning I was curious about Xojo's system requirements for > their RPi deployments, and it seems Xojo isn't available for RPi - that is, > not the IDE. They have a runtime engine only, so the workflow they require > is the same one you and I recommend with LC, building on desktop to run on > RPi. > > Still, given the many EDU use cases where having an IDE on the RPi would > be desirable, I'd like to explore options for a lightweight IDE down the > road (though probably way down the road for me; lots of other priorities > before that). > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From jiml at netrin.com Sun Mar 12 14:44:35 2017 From: jiml at netrin.com (Jim Lambert) Date: Sun, 12 Mar 2017 11:44:35 -0700 Subject: Messages sent while mouse is down? In-Reply-To: References: Message-ID: > Tim wrote: > > Click and drag the mouse through > adjacent letters to make words. > > Without clicking, simply moving the mouse through the tiles > (fields) triggers mouseenter, mouseleave, etc. which makes it > easy to pick up the letters. > > But when the mouse is down, it seems mouseloc() is the only thing > I can get. Using a variable what has all the field rectangles, I > can use the mouseloc() to ultimately identify the field under the > pointer, but it's too slow... > > How about a slight change in the game?s instructions? Instead of "click and drag through the letters to highlight a word", have the user click on the first letter of their word, mouse through the intervening letters, and finally click on the last letter of their word to end their word discovery process. That way you entirely avoid having to track the mouseloc while the mouse is down. Use the first click (mouseup) to begin ?recording? the user?s word discovery. That will tell you letter #1 of their word. Then use subsequent mouseenters to track which letters the user moved into next and the order of entry. That will tell you the rest of the letters in their word. Use the next click (mouseup) to end their word discovery process. Then you compare their word to your dictionary to see if it is a legit word. Of course, you'll want to account for clicks outside of the play area and ignore them or restrict mouse movement to the play area during the word discovery process. Jim Lambert From hh at hyperhh.de Sun Mar 12 16:40:15 2017 From: hh at hyperhh.de (hh) Date: Sun, 12 Mar 2017 21:40:15 +0100 Subject: LC for Raspberry Pi Message-ID: People who are using a Raspi and try or even use LC on it may be inclined to try or use LC if they 'expand' to a tablet or desktop. And their own creations will work after no or small adjustments, WOW. This may cause (delayed) revenue to LC. > Mike K. wrote: > Pi is interesting to me because of what I can, in theory, build with it, > but for the same reason so are many other things. Pi isn't going to bring > revenue to LC, IMHO, the way that some of those other tools can, but being > able to brag about being the easy-to-use IDE for PI would be cool. From cszasz at mac.com Sun Mar 12 17:02:45 2017 From: cszasz at mac.com (Charles Szasz) Date: Sun, 12 Mar 2017 15:02:45 -0600 Subject: Windows 10 Screen resolution problem Message-ID: I posted the following year but never received a solution: An user reported seeing a screen resolution dialog in one of my programs that requests a screen resolution of 1024x768 be used. The problem is that the user reportedly is using a screen resolution of 1920x1080. She is using Windows 10. I am using LC 6.1.2 and use the following code in my app stack: on checkForScreenSize IF the platform is "win32" then if item 3 of the screenRect < 1024 or item 4 of the screenRect < 768 then answer error "The Assistant software requires a minimum 1024x768 screen resolution. Please check your Control Panel." with "OK" quit end if end if if the platform = "MacOS" then if item 3 of the screenRect < 1024 or item 4 of the screenRect < 768 then answer error "The Assistant software requires a minimum 1024x768 screen resolution. Please check your Display Preferences." with "OK" quit end if end if end checkForScreenSize Has anybody encountered this problem with Windows 10? Sent from my iPad From johnpatten at me.com Sun Mar 12 18:29:22 2017 From: johnpatten at me.com (JOHN PATTEN) Date: Sun, 12 Mar 2017 15:29:22 -0700 Subject: Resize Images in on-rev folder via lc script? Message-ID: <0A4C1AA1-2372-4889-BAF3-6EA51E219BB5@me.com> Hi All, I have a simple html form that uploads images to a directory on the on-rev server. The images are uploaded at different resolutions. I would like to have the on-rev server resize the width of the images in that folder when users drop them into the server via an html form. Is it possible using lc scripts on the on-rev server to resize the images? I can do the resize easily via a stack using the example here, http://lessons.livecode.com/m/4071/l/15018-how-to-proportionally-resize-an-image , but I?m not sure how that could be applied to a folder on the server using .lc scripts? Thank you! John Patten SUSD From alex at tweedly.net Sun Mar 12 20:24:17 2017 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 13 Mar 2017 00:24:17 +0000 Subject: Resize Images in on-rev folder via lc script? In-Reply-To: <0A4C1AA1-2372-4889-BAF3-6EA51E219BB5@me.com> References: <0A4C1AA1-2372-4889-BAF3-6EA51E219BB5@me.com> Message-ID: <2757829f-9598-8400-c24e-4ba6b8c5e770@tweedly.net> Yes, it is possible - here's the relevant section of the .lc file I used to use to do it. (it's from my script-only library that I use on both LCServer and desktop/IDE, hence the 'lockscreen's I would use this by uploading the file (usually to a folder called 'originals' or something like that), and then resizing to more imaginatively named folders such as 'width90' or 'width600' for different purposes. -- image handling and resizing command setAreaProportional pImageID, pWidth, pHeight local tProportionalWidth, tProportionalHeight, tRatio put (the formattedWidth of pImageID) / pWidth into tRatio put (the formattedHeight of pImageID) / tRatio into tProportionalHeight put (the formattedHeight of pImageID) / pHeight into tRatio put (the formattedWidth of pImageID) / tRatio into tProportionalWidth if tProportionalHeight > pHeight then lock screen set the width of pImageID to tProportionalWidth set the height of pImageID to pHeight unlock screen else lock screen set the width of pImageID to pWidth set the height of pImageID to tProportionalHeight unlock screen end if end setAreaProportional function resizeImageFile pFile, pOutFile, pMaxWid, pMaxHeight local t, tt import paint from file pFile put the name of the last image into t set the name of t to "Im1" clone img "Im1" set the name of it to "Im2" setAreaProportional the long id of img "Im2", pMaxWid, pMaxHeight export img "Im2" to file pOutFile as jpeg put the result into tt delete img "Im2" delete img "Im1" return empty -- "Done resize" & ":" & tt & ":" && pFile && pOutfile end resizeImageFile -- Alex. On 12/03/2017 22:29, JOHN PATTEN via use-livecode wrote: > Hi All, > > I have a simple html form that uploads images to a directory on the on-rev server. The images are uploaded at different resolutions. I would like to have the on-rev server resize the width of the images in that folder when users drop them into the server via an html form. > > Is it possible using lc scripts on the on-rev server to resize the images? I can do the resize easily via a stack using the example here, http://lessons.livecode.com/m/4071/l/15018-how-to-proportionally-resize-an-image , but I?m not sure how that could be applied to a folder on the server using .lc scripts? > > Thank you! > John Patten > SUSD > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 13 07:40:44 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 13 Mar 2017 11:40:44 +0000 Subject: [ANN] This Week in LiveCode 74 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 #74 here: https://goo.gl/eRgkI8 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 toolbook at kestner.de Mon Mar 13 10:20:50 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 13 Mar 2017 15:20:50 +0100 Subject: is LCs answer folder state of the art? Message-ID: <000701d29c05$0511fc40$0f35f4c0$@kestner.de> Hello, the user shall select a folder, which includes certain files. When using "answer folder" the LiveCode dialog lets select the folder and returns the path, but without showing it's content, while navigating. That puzzles sometimes my customers, because it looks like the folder is empty and it might not be the correct folder. I am not sure, if this behavior of the answer dialog is "standard" at other programs and it just looks strange to me, or if there is another approach to let the user select a folder while showing it's content? I could workaround with "answer file", but that could puzzle again the user, because he can't select a folder and must select a file to return from the dialog. How is this UI issue handled correctly? Tiemo From bobsneidar at iotecdigital.com Mon Mar 13 10:50:20 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 13 Mar 2017 14:50:20 +0000 Subject: is LCs answer folder state of the art? In-Reply-To: <000701d29c05$0511fc40$0f35f4c0$@kestner.de> References: <000701d29c05$0511fc40$0f35f4c0$@kestner.de> Message-ID: It sounds like an OS thing. It isn't often that users are asked to select a folder instead of a file. You can try ask file instead. Bob S > On Mar 13, 2017, at 07:20 , Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > > > the user shall select a folder, which includes certain files. When using > "answer folder" the LiveCode dialog lets select the folder and returns the > path, but without showing it's content, while navigating. That puzzles > sometimes my customers, because it looks like the folder is empty and it > might not be the correct folder. > > I am not sure, if this behavior of the answer dialog is "standard" at other > programs and it just looks strange to me, or if there is another approach to > let the user select a folder while showing it's content? I could workaround > with "answer file", but that could puzzle again the user, because he can't > select a folder and must select a file to return from the dialog. > > How is this UI issue handled correctly? > > Tiemo From ambassador at fourthworld.com Mon Mar 13 10:52:58 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 13 Mar 2017 07:52:58 -0700 Subject: LC for Raspberry Pi In-Reply-To: References: Message-ID: Mike Kerner wrote: > Pi is interesting to me because of what I can, in theory, build with > it, but for the same reason so are many other things. Pi isn't going > to bring revenue to LC, IMHO, the way that some of those other tools > can... Not directly, at least not short-term. But as hh pointed out, in any given pool of users inevitably some will want a proprietary license. And in the meantime, 100% of everyone using LiveCode participates in lowering the biggest impediment to sales, the "I've never heard of it" factor. > but being able to brag about being the easy-to-use IDE for PI would > be cool. A lightweight IDE can be useful on other systems as well, such as older low-powered PCs. For example, I've been putting off upgrading my laptop, and aside from a few of the more complex web pages for the most part it's quite fine. Until I use LC, that is. Script editing on that 1.6 GHz CPU is merely annoying, but debugging is prohibitively slow, taking at least 20 seconds for each "Step Into". Some years ago I started working in a lightweight debugger with Ken Ray, initially for the MC IDE but later it occurred to me that as a self-contained thing it would be useful in a standalone as well. I turned that on and went back to debugging - smooth as silk, even on my old laptop. Now I'm considering going back to making my own script editor, so I can get lean clean typing without all the CPU-hogging real-time formatting that slows down LC's Script Editor. I can understand why the LC IDE so often errs on the side of completeness, and has such, shall we say, "thorough" code, to provide the many conveniences it does. But on the flipside, I've discovered I'm not the only one who prefers raw typing, with formatting happening only when I explicitly invoke it. Removing auto-formatting and other "thoroughness" can make editing a breeze - the field object is, after all, quite nice. And with debugging, I haven't traced out LC's code but it seems to be doing a LOT of work for its UI on top of the parts necessary for stepping through code. Indeed, that was one of the reasons Ken and I separated the Script Editor from the Debugger, to allow for two different UIs, each dedicated to the task it supports. The LC engine in v9 is satisfyingly performant in my experience. A lean IDE that can really show it off would not only open up editing on the RPi, but also on older systems for which the official IDE is simply too cumbersome. -- 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 bodine at bodinetraininggames.com Mon Mar 13 12:14:29 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Mon, 13 Mar 2017 09:14:29 -0700 (PDT) Subject: Windows 10 Screen resolution problem In-Reply-To: References: Message-ID: <1489421669732-4713034.post@n4.nabble.com> Hi, I tested your script on a Win10 Pro PC, primary screen size of 1920 x 1080, and the Resolution warning message did not fire. Tested in LC 7.1.4. Could it be your user has dual screens and the one the program opens on is set below your resolution threshold? Tom -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Windows-10-Screen-resolution-problem-tp4713027p4713034.html Sent from the Revolution - User mailing list archive at Nabble.com. From blueback09 at gmail.com Mon Mar 13 14:12:21 2017 From: blueback09 at gmail.com (Matt Maier) Date: Mon, 13 Mar 2017 11:12:21 -0700 Subject: output the script line of a logging message Message-ID: I'm adding some logging function calls to a script. Is there a way to include the line number of the current line in the script? Some of the messages are pretty similar, if not identical, so it would be helpful when reviewing the logs to identify the message by the line number the function was on when it logged the message. From bobsneidar at iotecdigital.com Mon Mar 13 14:26:42 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 13 Mar 2017 18:26:42 +0000 Subject: output the script line of a logging message In-Reply-To: References: Message-ID: <8F3DD1B2-F892-4584-B652-2871BDCB6D9D@iotecdigital.com> Look at the executionContexts in the dictionary. That should get you going on some ideas. Bob S > On Mar 13, 2017, at 11:12 , Matt Maier via use-livecode wrote: > > I'm adding some logging function calls to a script. Is there a way to > include the line number of the current line in the script? > > Some of the messages are pretty similar, if not identical, so it would be > helpful when reviewing the logs to identify the message by the line number > the function was on when it logged the message. From jacque at hyperactivesw.com Mon Mar 13 15:49:22 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 13 Mar 2017 14:49:22 -0500 Subject: JSONtoArray Message-ID: <4b6c8d6c-74a5-9ea3-c073-8f2eb91106f5@hyperactivesw.com> The dictionary says that jsonToArray expects a UTF8-encoded string. I've used it with straight UTF8 from a server and have also textDecoded the string first before running it through jsonToArray. Both ways seem to work. Should I choose one way over the other for best reliability? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From cszasz at mac.com Mon Mar 13 16:02:54 2017 From: cszasz at mac.com (Charles Szasz) Date: Mon, 13 Mar 2017 14:02:54 -0600 Subject: Windows 10 Screen resolution problem Message-ID: Tom, Thanks for your suggestion! No, she has a laptop. No dual monitors. I think the program is Microsoft's Clear Fonts that the user can set. Sent from my iPhone From jonathandlynch at gmail.com Mon Mar 13 16:40:39 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Mon, 13 Mar 2017 16:40:39 -0400 Subject: JSONtoArray In-Reply-To: <4b6c8d6c-74a5-9ea3-c073-8f2eb91106f5@hyperactivesw.com> References: <4b6c8d6c-74a5-9ea3-c073-8f2eb91106f5@hyperactivesw.com> Message-ID: <8BB56F98-79FF-4637-A5EC-23C99B98982A@gmail.com> I have to use text encode, utf 8, on geocoding data from bing to make jsontoarray work. Do it must matter at least sometimes. Sent from my iPhone > On Mar 13, 2017, at 3:49 PM, J. Landman Gay via use-livecode wrote: > > The dictionary says that jsonToArray expects a UTF8-encoded string. I've used it with straight UTF8 from a server and have also textDecoded the string first before running it through jsonToArray. Both ways seem to work. > > Should I choose one way over the other for best reliability? > > -- > 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 benr_mc at cogapp.com Mon Mar 13 17:43:30 2017 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 13 Mar 2017 21:43:30 +0000 Subject: is LCs answer folder state of the art? In-Reply-To: References: <000701d29c05$0511fc40$0f35f4c0$@kestner.de> Message-ID: <18886d86-0ca3-5ac3-2fb1-f04b77c8393a@cogapp.com> Hi Tiemo, I'm not sure which OS you're looking at (or which version of LC). On MacOS, I'm not seeing the behaviour you describe: for me, "answer folder" brings up a file selector and as I navigate, I see all the contents of folders as normal, with all the files greyed out, so that only folders can be selected - which would seem to be the expected behaviour. I'm currently working on LC 8.1.3, but I think this is the behaviour I usually see. But I'm usually working on Mac, so not sure what happens on Windows or Linux. Ben On 13/03/2017 14:50, Bob Sneidar via use-livecode wrote: > It sounds like an OS thing. It isn't often that users are asked to select a folder instead of a file. You can try ask file instead. > > Bob S > > >> On Mar 13, 2017, at 07:20 , Tiemo Hollmann TB via use-livecode wrote: >> >> Hello, >> >> >> >> the user shall select a folder, which includes certain files. When using >> "answer folder" the LiveCode dialog lets select the folder and returns the >> path, but without showing it's content, while navigating. That puzzles >> sometimes my customers, because it looks like the folder is empty and it >> might not be the correct folder. >> >> I am not sure, if this behavior of the answer dialog is "standard" at other >> programs and it just looks strange to me, or if there is another approach to >> let the user select a folder while showing it's content? I could workaround >> with "answer file", but that could puzzle again the user, because he can't >> select a folder and must select a file to return from the dialog. >> >> How is this UI issue handled correctly? >> >> Tiemo From bonnmike at gmail.com Mon Mar 13 18:12:13 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 13 Mar 2017 16:12:13 -0600 Subject: is LCs answer folder state of the art? In-Reply-To: <18886d86-0ca3-5ac3-2fb1-f04b77c8393a@cogapp.com> References: <000701d29c05$0511fc40$0f35f4c0$@kestner.de> <18886d86-0ca3-5ac3-2fb1-f04b77c8393a@cogapp.com> Message-ID: On windows, only folders show. On Mon, Mar 13, 2017 at 3:43 PM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Tiemo, > > I'm not sure which OS you're looking at (or which version of LC). > > On MacOS, I'm not seeing the behaviour you describe: for me, "answer > folder" brings up a file selector and as I navigate, I see all the contents > of folders as normal, with all the files greyed out, so that only folders > can be selected - which would seem to be the expected behaviour. > > I'm currently working on LC 8.1.3, but I think this is the behaviour I > usually see. But I'm usually working on Mac, so not sure what happens on > Windows or Linux. > > Ben > > On 13/03/2017 14:50, Bob Sneidar via use-livecode wrote: > >> It sounds like an OS thing. It isn't often that users are asked to select >> a folder instead of a file. You can try ask file instead. >> >> Bob S >> >> >> On Mar 13, 2017, at 07:20 , Tiemo Hollmann TB via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Hello, >>> >>> >>> >>> the user shall select a folder, which includes certain files. When using >>> "answer folder" the LiveCode dialog lets select the folder and returns >>> the >>> path, but without showing it's content, while navigating. That puzzles >>> sometimes my customers, because it looks like the folder is empty and it >>> might not be the correct folder. >>> >>> I am not sure, if this behavior of the answer dialog is "standard" at >>> other >>> programs and it just looks strange to me, or if there is another >>> approach to >>> let the user select a folder while showing it's content? I could >>> workaround >>> with "answer file", but that could puzzle again the user, because he >>> can't >>> select a folder and must select a file to return from the dialog. >>> >>> How is this UI issue handled correctly? >>> >>> Tiemo >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Mon Mar 13 18:24:12 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 13 Mar 2017 15:24:12 -0700 Subject: is LCs answer folder state of the art? In-Reply-To: References: Message-ID: <29b40515-5454-199a-e21c-1dd0f5762644@fourthworld.com> Mike Bonner wrote: > On windows, only folders show. I just checked this by going into Settings in IE on Win 10 and changing the Downloads folder - the dialog MS brings up for that shows only folders. -- 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 Mar 13 21:04:33 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 13 Mar 2017 18:04:33 -0700 Subject: is LCs answer folder state of the art? In-Reply-To: <29b40515-5454-199a-e21c-1dd0f5762644@fourthworld.com> References: <29b40515-5454-199a-e21c-1dd0f5762644@fourthworld.com> Message-ID: <789b8896-e1d9-c1cf-ec7b-c0d3c704e440@sonic.net> On 03/13/2017 03:24 PM, Richard Gaskin via use-livecode wrote: > Mike Bonner wrote: > >> On windows, only folders show. > > I just checked this by going into Settings in IE on Win 10 and changing > the Downloads folder - the dialog MS brings up for that shows only folders. > Hmmm. Someone should fix Windows. Is there a bug report for that? -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Mon Mar 13 21:10:53 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 13 Mar 2017 18:10:53 -0700 Subject: output the script line of a logging message In-Reply-To: <8F3DD1B2-F892-4584-B652-2871BDCB6D9D@iotecdigital.com> References: <8F3DD1B2-F892-4584-B652-2871BDCB6D9D@iotecdigital.com> Message-ID: <8f63db1b-e419-4dad-d410-5ee8803d6d72@sonic.net> On 03/13/2017 11:26 AM, Bob Sneidar via use-livecode wrote: > Look at the executionContexts in the dictionary. That should get you going on some ideas. ...and in particular, item 3 of line -1 of the executioncontexts should get you the last line number executed. -- Mark Wieder ahsoftware at gmail.com From toolbook at kestner.de Tue Mar 14 03:30:38 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 14 Mar 2017 08:30:38 +0100 Subject: AW: is LCs answer folder state of the art? In-Reply-To: <789b8896-e1d9-c1cf-ec7b-c0d3c704e440@sonic.net> References: <29b40515-5454-199a-e21c-1dd0f5762644@fourthworld.com> <789b8896-e1d9-c1cf-ec7b-c0d3c704e440@sonic.net> Message-ID: <000a01d29c94$e26db860$a7492920$@kestner.de> Thanks for testing (yes it was Windows only, LC 8). I'll ask Satya, if he can fix it. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mark Wieder via use-livecode Gesendet: Dienstag, 14. M?rz 2017 02:05 An: How to use LiveCode Cc: Mark Wieder Betreff: Re: is LCs answer folder state of the art? On 03/13/2017 03:24 PM, Richard Gaskin via use-livecode wrote: > Mike Bonner wrote: > >> On windows, only folders show. > > I just checked this by going into Settings in IE on Win 10 and > changing the Downloads folder - the dialog MS brings up for that shows only folders. > Hmmm. Someone should fix Windows. Is there a bug report for that? -- 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 toolbook at kestner.de Tue Mar 14 05:30:50 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 14 Mar 2017 10:30:50 +0100 Subject: how to remove black title bar in browser widget when showing a pdf? Message-ID: <001c01d29ca5$abe11ec0$03a35c40$@kestner.de> Hello, LC 8.1.3, Windows 10: When I am displaying a pdf (local or web) in the browser widget, there is a black title bar on top of the pdf, which occupies the top 45 pixels of the browser widget. When hovering over the widget, the name of the pdf is shown within this black title bar. I didn't found any option to not show this title bar within the browser widget. Do I have to live with it or is there an option or a trick I haven't found yet? Thanks Tiemo From mikedoub at gmail.com Tue Mar 14 08:59:57 2017 From: mikedoub at gmail.com (Mike Doub) Date: Tue, 14 Mar 2017 08:59:57 -0400 Subject: Livecode HTML5 networking question Message-ID: I was thinking about putting together a little weather app and trying the html5 feature of livecode. I read that networking is not supported. Does that mean that the following is not supported? put URL ("https://api.darksky.net/forecast/" & mykey & "/" & LatLon) into wData If not my project is going on hold. Thanks in advance. -= Mike From bobsneidar at iotecdigital.com Tue Mar 14 10:44:13 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 14 Mar 2017 14:44:13 +0000 Subject: is LCs answer folder state of the art? In-Reply-To: <789b8896-e1d9-c1cf-ec7b-c0d3c704e440@sonic.net> References: <29b40515-5454-199a-e21c-1dd0f5762644@fourthworld.com> <789b8896-e1d9-c1cf-ec7b-c0d3c704e440@sonic.net> Message-ID: <3C8F7FA7-5CD6-4F1D-9B74-E49B72483DBA@iotecdigital.com> You can't fix a broken Windows. (see what I did there?) Bob S > On Mar 13, 2017, at 18:04 , Mark Wieder via use-livecode wrote: > > Hmmm. Someone should fix Windows. > Is there a bug report for that? > > -- > Mark Wieder From bonnmike at gmail.com Tue Mar 14 10:46:09 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Mar 2017 08:46:09 -0600 Subject: is LCs answer folder state of the art? In-Reply-To: <3C8F7FA7-5CD6-4F1D-9B74-E49B72483DBA@iotecdigital.com> References: <29b40515-5454-199a-e21c-1dd0f5762644@fourthworld.com> <789b8896-e1d9-c1cf-ec7b-c0d3c704e440@sonic.net> <3C8F7FA7-5CD6-4F1D-9B74-E49B72483DBA@iotecdigital.com> Message-ID: What a pane. (see what I did there because of what you did there?) On Tue, Mar 14, 2017 at 8:44 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > You can't fix a broken Windows. (see what I did there?) > > Bob S > > > > On Mar 13, 2017, at 18:04 , Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hmmm. Someone should fix Windows. > > Is there a bug report for that? > > > > -- > > Mark Wieder > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 10:47:33 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 14 Mar 2017 14:47:33 +0000 Subject: Livecode HTML5 networking question In-Reply-To: References: Message-ID: <212F41C0-DE87-4072-B12D-4E4F155EF293@iotecdigital.com> That is not HTML5. That is a standard Livecode function that has been around since version 1.0. Bob S > On Mar 14, 2017, at 05:59 , Mike Doub via use-livecode wrote: > > I was thinking about putting together a little weather app and trying the > html5 feature of livecode. I read that networking is not supported. Does > that mean that the following is not supported? > > put URL ("https://api.darksky.net/forecast/" & mykey & "/" & LatLon) into > wData > > If not my project is going on hold. > > Thanks in advance. > > -= Mike From bobsneidar at iotecdigital.com Tue Mar 14 10:53:55 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 14 Mar 2017 14:53:55 +0000 Subject: is LCs answer folder state of the art? In-Reply-To: References: <29b40515-5454-199a-e21c-1dd0f5762644@fourthworld.com> <789b8896-e1d9-c1cf-ec7b-c0d3c704e440@sonic.net> <3C8F7FA7-5CD6-4F1D-9B74-E49B72483DBA@iotecdigital.com> Message-ID: <6BCAA6F8-2937-432A-A5C1-274D3C86F494@iotecdigital.com> :-) > On Mar 14, 2017, at 07:46 , Mike Bonner via use-livecode wrote: > > What a pane. (see what I did there because of what you did there?) > > > On Tue, Mar 14, 2017 at 8:44 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You can't fix a broken Windows. (see what I did there?) >> >> Bob S From mikedoub at gmail.com Tue Mar 14 11:05:20 2017 From: mikedoub at gmail.com (Mike Doub) Date: Tue, 14 Mar 2017 11:05:20 -0400 Subject: Livecode HTML5 networking question In-Reply-To: <212F41C0-DE87-4072-B12D-4E4F155EF293@iotecdigital.com> Message-ID: <58c806b3.9421ed0a.4ce23.754d@mx.google.com> Bob, I understand that. You misunderstood my question. If I use that statement in app, save it as am html5 app, will the app function? The documentation says networking is not supported. What exactly does that mean? Is the statement in question, networking? -= Mike ? Original Message ? From: use-livecode at lists.runrev.com Sent: March 14, 2017 10:47 AM To: use-livecode at lists.runrev.com Reply-to: use-livecode at lists.runrev.com Cc: bobsneidar at iotecdigital.com Subject: Re: Livecode HTML5 networking question That is not HTML5. That is a standard Livecode function that has been around since version 1.0. Bob S > On Mar 14, 2017, at 05:59 , Mike Doub via use-livecode wrote: > > I was thinking about putting together a little weather app and trying the > html5 feature of livecode.? I read that networking is not supported.?? Does > that mean that the following is not supported? > > put URL? ("https://api.darksky.net/forecast/" & mykey & "/" & LatLon) into > wData > > If not my project is going on hold. > > Thanks in advance. > >??? -= Mike _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 14 11:17:00 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Mar 2017 10:17:00 -0500 Subject: is LCs answer folder state of the art? In-Reply-To: References: <29b40515-5454-199a-e21c-1dd0f5762644@fourthworld.com> <789b8896-e1d9-c1cf-ec7b-c0d3c704e440@sonic.net> <3C8F7FA7-5CD6-4F1D-9B74-E49B72483DBA@iotecdigital.com> Message-ID: <15acd64cde0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> That's shattering news. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 14, 2017 9:48:05 AM Mike Bonner via use-livecode wrote: > What a pane. (see what I did there because of what you did there?) > > > On Tue, Mar 14, 2017 at 8:44 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You can't fix a broken Windows. (see what I did there?) >> >> Bob S >> >> >> > On Mar 13, 2017, at 18:04 , Mark Wieder via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Hmmm. Someone should fix Windows. >> > Is there a bug report for that? >> > >> > -- >> > Mark Wieder >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 11:39:08 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Mar 2017 08:39:08 -0700 Subject: Livecode HTML5 networking question In-Reply-To: <58c806b3.9421ed0a.4ce23.754d@mx.google.com> References: <58c806b3.9421ed0a.4ce23.754d@mx.google.com> Message-ID: Mike Doub wrote: > Bob, I understand that. You misunderstood my question. If I use > that statement in app, save it as am html5 app, will the app > function? > > The documentation says networking is not supported. What exactly > does that mean? Is the statement in question, networking? I had thought GET and POST were added to the HTML exports recently, 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 bob at bobhall.net Tue Mar 14 12:12:20 2017 From: bob at bobhall.net (Bob Hall) Date: Tue, 14 Mar 2017 12:12:20 -0400 Subject: Help troubleshooting IDE Script Editor Window Position Message-ID: <7F37BED6-1C59-463B-BE1C-C70E1C32A0B0@bobhall.net> Is it possible to get the location of the IDE Script editor window? I need to confirm what I suspect is a bug in 8.1.3 and need the top coordinate of the IDE script window to confirm for bug report. I have a multi-monitor setup for my dev machine. One of the monitors is portrait, the other is landscape (iMac 27?). As of 8.1.3 on Mac OS X 10.12.3, the top location of ?system? windows (IDE script editor, answer/ask, toolbar as examples) appear to use the smallest value of EITHER screen to set the top location of the window and not the top of the monitor the window opens on. This results in IDE script editor, answer/ask not being accessible/visible as it is off the screen to the top on the Landscape monitor. If the top of the portrait monitor is ?higher? relatively then the landscape monitor, It appears as though the top location of the portrait monitor is used even when the window opens on the landscape monitor. I would like to confirm this behavior thus my question above. I searched for a bug about this and while I?m seeing some that are similar, this I believe is a new one and is actually came from an LC9 regression. I?ve seen this same thing in LC9 since DP1 and now it appears in LC 8.1.3 but not 8.1.2 or prior versions. For the curious? I will attempt to show in text graphics how the monitors are oriented. (Screen orientation in System prefs using text ? I hope this comes through) ______ | | | |__________ | | | | | | | |__________| |______| I use the portrait display for coding (nice and long with ability to have debugging displayed with lots of room). LC IDE/system windows on the landscape display have the top of the window set using the value from the portrait display (I think) as they display off screen to the top. If I orient the displays in System Preferences as: ______ __________ | | | | | | | |__________| | | |______| Everything works fine as the top of both monitors is the same. The issue with this is that the monitors are not?oriented to their physical relative positions so it's a little frustrating to move the cursor from portrait to landscape and back again. Not a big deal but different and kind of a pain compared to prior versions. This behavior started in LC 8.1.3. LC 8.1.2 works perfectly. Thanks in advance, Bob From bonnmike at gmail.com Tue Mar 14 12:24:53 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 14 Mar 2017 10:24:53 -0600 Subject: Help troubleshooting IDE Script Editor Window Position In-Reply-To: <7F37BED6-1C59-463B-BE1C-C70E1C32A0B0@bobhall.net> References: <7F37BED6-1C59-463B-BE1C-C70E1C32A0B0@bobhall.net> Message-ID: to get the top of the window, in the message box do: put the top of stack "revnewscripteditor 1" Same of course for bottom, left, right, rect, and loc On Tue, Mar 14, 2017 at 10:12 AM, Bob Hall via use-livecode < use-livecode at lists.runrev.com> wrote: > Is it possible to get the location of the IDE Script editor window? I need > to confirm what I suspect is a bug in 8.1.3 and need the top coordinate of > the IDE script window to confirm for bug report. > > I have a multi-monitor setup for my dev machine. One of the monitors is > portrait, the other is landscape (iMac 27?). As of 8.1.3 on Mac OS X > 10.12.3, the top location of ?system? windows (IDE script editor, > answer/ask, toolbar as examples) appear to use the smallest value of EITHER > screen to set the top location of the window and not the top of the monitor > the window opens on. > > This results in IDE script editor, answer/ask not being accessible/visible > as it is off the screen to the top on the Landscape monitor. If the top of > the portrait monitor is ?higher? relatively then the landscape monitor, It > appears as though the top location of the portrait monitor is used even > when the window opens on the landscape monitor. I would like to confirm > this behavior thus my question above. > > I searched for a bug about this and while I?m seeing some that are > similar, this I believe is a new one and is actually came from an LC9 > regression. I?ve seen this same thing in LC9 since DP1 and now it appears > in LC 8.1.3 but not 8.1.2 or prior versions. > > For the curious? I will attempt to show in text graphics how the monitors > are oriented. > > (Screen orientation in System prefs using text ? I hope this comes through) > ______ > | | > | |__________ > | | | > | | | > | |__________| > |______| > > I use the portrait display for coding (nice and long with ability to have > debugging displayed with lots of room). LC IDE/system windows on the > landscape display have the top of the window set using the value from the > portrait display (I think) as they display off screen to the top. > > If I orient the displays in System Preferences as: > ______ __________ > | | | > | | | > | |__________| > | | > |______| > > Everything works fine as the top of both monitors is the same. The issue > with this is that the monitors are not?oriented to their physical relative > positions so it's a little frustrating to move the cursor from portrait to > landscape and back again. Not a big deal but different and kind of a pain > compared to prior versions. > > This behavior started in LC 8.1.3. LC 8.1.2 works perfectly. > > Thanks in advance, > Bob > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 12:32:45 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 14 Mar 2017 16:32:45 +0000 Subject: Help troubleshooting IDE Script Editor Window Position In-Reply-To: References: <7F37BED6-1C59-463B-BE1C-C70E1C32A0B0@bobhall.net> Message-ID: Hi all, This looks like bug http://quality.livecode.com/show_bug.cgi?id=18363 @Bob Nice drawings :) Best, Panos -- On Tue, Mar 14, 2017 at 4:24 PM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > to get the top of the window, in the message box do: > put the top of stack "revnewscripteditor 1" > > Same of course for bottom, left, right, rect, and loc > > On Tue, Mar 14, 2017 at 10:12 AM, Bob Hall via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Is it possible to get the location of the IDE Script editor window? I > need > > to confirm what I suspect is a bug in 8.1.3 and need the top coordinate > of > > the IDE script window to confirm for bug report. > > > > I have a multi-monitor setup for my dev machine. One of the monitors is > > portrait, the other is landscape (iMac 27?). As of 8.1.3 on Mac OS X > > 10.12.3, the top location of ?system? windows (IDE script editor, > > answer/ask, toolbar as examples) appear to use the smallest value of > EITHER > > screen to set the top location of the window and not the top of the > monitor > > the window opens on. > > > > This results in IDE script editor, answer/ask not being > accessible/visible > > as it is off the screen to the top on the Landscape monitor. If the top > of > > the portrait monitor is ?higher? relatively then the landscape monitor, > It > > appears as though the top location of the portrait monitor is used even > > when the window opens on the landscape monitor. I would like to confirm > > this behavior thus my question above. > > > > I searched for a bug about this and while I?m seeing some that are > > similar, this I believe is a new one and is actually came from an LC9 > > regression. I?ve seen this same thing in LC9 since DP1 and now it appears > > in LC 8.1.3 but not 8.1.2 or prior versions. > > > > For the curious? I will attempt to show in text graphics how the monitors > > are oriented. > > > > (Screen orientation in System prefs using text ? I hope this comes > through) > > ______ > > | | > > | |__________ > > | | | > > | | | > > | |__________| > > |______| > > > > I use the portrait display for coding (nice and long with ability to have > > debugging displayed with lots of room). LC IDE/system windows on the > > landscape display have the top of the window set using the value from the > > portrait display (I think) as they display off screen to the top. > > > > If I orient the displays in System Preferences as: > > ______ __________ > > | | | > > | | | > > | |__________| > > | | > > |______| > > > > Everything works fine as the top of both monitors is the same. The issue > > with this is that the monitors are not?oriented to their physical > relative > > positions so it's a little frustrating to move the cursor from portrait > to > > landscape and back again. Not a big deal but different and kind of a pain > > compared to prior versions. > > > > This behavior started in LC 8.1.3. LC 8.1.2 works perfectly. > > > > Thanks in advance, > > Bob > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 12:35:45 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Mar 2017 12:35:45 -0400 Subject: Help troubleshooting IDE Script Editor Window Position In-Reply-To: References: <7F37BED6-1C59-463B-BE1C-C70E1C32A0B0@bobhall.net> Message-ID: There are at least two bug reports (maybe 3) related to the SE on a second monitor. On Tue, Mar 14, 2017 at 12:24 PM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > to get the top of the window, in the message box do: > put the top of stack "revnewscripteditor 1" > > Same of course for bottom, left, right, rect, and loc > > On Tue, Mar 14, 2017 at 10:12 AM, Bob Hall via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Is it possible to get the location of the IDE Script editor window? I > need > > to confirm what I suspect is a bug in 8.1.3 and need the top coordinate > of > > the IDE script window to confirm for bug report. > > > > I have a multi-monitor setup for my dev machine. One of the monitors is > > portrait, the other is landscape (iMac 27?). As of 8.1.3 on Mac OS X > > 10.12.3, the top location of ?system? windows (IDE script editor, > > answer/ask, toolbar as examples) appear to use the smallest value of > EITHER > > screen to set the top location of the window and not the top of the > monitor > > the window opens on. > > > > This results in IDE script editor, answer/ask not being > accessible/visible > > as it is off the screen to the top on the Landscape monitor. If the top > of > > the portrait monitor is ?higher? relatively then the landscape monitor, > It > > appears as though the top location of the portrait monitor is used even > > when the window opens on the landscape monitor. I would like to confirm > > this behavior thus my question above. > > > > I searched for a bug about this and while I?m seeing some that are > > similar, this I believe is a new one and is actually came from an LC9 > > regression. I?ve seen this same thing in LC9 since DP1 and now it appears > > in LC 8.1.3 but not 8.1.2 or prior versions. > > > > For the curious? I will attempt to show in text graphics how the monitors > > are oriented. > > > > (Screen orientation in System prefs using text ? I hope this comes > through) > > ______ > > | | > > | |__________ > > | | | > > | | | > > | |__________| > > |______| > > > > I use the portrait display for coding (nice and long with ability to have > > debugging displayed with lots of room). LC IDE/system windows on the > > landscape display have the top of the window set using the value from the > > portrait display (I think) as they display off screen to the top. > > > > If I orient the displays in System Preferences as: > > ______ __________ > > | | | > > | | | > > | |__________| > > | | > > |______| > > > > Everything works fine as the top of both monitors is the same. The issue > > with this is that the monitors are not?oriented to their physical > relative > > positions so it's a little frustrating to move the cursor from portrait > to > > landscape and back again. Not a big deal but different and kind of a pain > > compared to prior versions. > > > > This behavior started in LC 8.1.3. LC 8.1.2 works perfectly. > > > > Thanks in advance, > > Bob > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From mikedoub at gmail.com Tue Mar 14 13:07:36 2017 From: mikedoub at gmail.com (Mike Doub) Date: Tue, 14 Mar 2017 13:07:36 -0400 Subject: Livecode HTML5 networking question In-Reply-To: Message-ID: <58c82365.c7d10d0a.34b14.3302@mx.google.com> I just did a test using the local python server and it did not work, so it looks like the support is not there yet. Mike ? Original Message ? From: use-livecode at lists.runrev.com Sent: March 14, 2017 11:53 AM To: use-livecode at lists.runrev.com Reply-to: use-livecode at lists.runrev.com Cc: ambassador at fourthworld.com Subject: Re: Livecode HTML5 networking question Mike Doub wrote: > Bob,? I understand that.? You misunderstood my question.? If I use > that statement in app,? save it as am html5 app,? will the app > function? > > The documentation says networking is not supported.? What exactly > does that mean?? Is the statement in question, networking? I had thought GET and POST were added to the HTML exports recently, 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 jonathandlynch at gmail.com Tue Mar 14 13:36:28 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Tue, 14 Mar 2017 13:36:28 -0400 Subject: Livecode HTML5 networking question In-Reply-To: <58c82365.c7d10d0a.34b14.3302@mx.google.com> References: <58c82365.c7d10d0a.34b14.3302@mx.google.com> Message-ID: Can you get into the resulting JavaScript and add an XMLHttpRequest(); command? Sent from my iPhone > On Mar 14, 2017, at 1:07 PM, Mike Doub via use-livecode wrote: > > I just did a test using the local python server and it did not work, so it looks like the support is not there yet. > > Mike > > > Original Message > From: use-livecode at lists.runrev.com > Sent: March 14, 2017 11:53 AM > To: use-livecode at lists.runrev.com > Reply-to: use-livecode at lists.runrev.com > Cc: ambassador at fourthworld.com > Subject: Re: Livecode HTML5 networking question > > Mike Doub wrote: > >> Bob, I understand that. You misunderstood my question. If I use >> that statement in app, save it as am html5 app, will the app >> function? >> >> The documentation says networking is not supported. What exactly >> does that mean? Is the statement in question, networking? > > I had thought GET and POST were added to the HTML exports recently, 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 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 16:01:57 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 14 Mar 2017 20:01:57 +0000 Subject: LC's Future in the Browser - Web Assembly? Message-ID: <447641DF-F2C2-4B14-8546-2EF090329E7B@hindu.org> try this in Firefox 52 https://s3.amazonaws.com/mozilla-games/ZenGarden/EpicZenGarden.html " Mozilla celebrated with a demo video of the high-resolution graphics of Zen Garden, and while right now WebAssembly supports compilation from C and C++ (plus some preliminary support for Rust), "We expect that, as WebAssembly continues to evolve, you'll also be able to use it with programming languages often used for mobile apps, like Java, Swift, and C#." Very interesting? From jacque at hyperactivesw.com Tue Mar 14 17:26:48 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Mar 2017 16:26:48 -0500 Subject: Translating escape sequences Message-ID: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> I'm dealing with non-English languages, and JSON data retrieved from a database comes in with unicode escape sequences like this: Eduardo Ba\u00f1uls. I need to translate those. I can do it by replacing the "\u" with "0x" and then using numToCodepoint() to get the UTF16 character. But there could be many of these in the same string, so I'm looking for a one-shot command that might just do them all. I don't think we have one. The alternative is to loop through all the text, getting an offset for each "\u" and then calculating the number of characters after that to use with numToCodepoint(). But will it always be 4 characters in any language? Or is there an easier way? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jonathandlynch at gmail.com Tue Mar 14 18:40:52 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Tue, 14 Mar 2017 18:40:52 -0400 Subject: Translating escape sequences In-Reply-To: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> Message-ID: <3A72B391-5590-484A-81BD-F09413632E5B@gmail.com> Does JavaScript have a way to do the translation? Sent from my iPhone > On Mar 14, 2017, at 5:26 PM, J. Landman Gay via use-livecode wrote: > > I'm dealing with non-English languages, and JSON data retrieved from a database comes in with unicode escape sequences like this: Eduardo Ba\u00f1uls. > > I need to translate those. I can do it by replacing the "\u" with "0x" and then using numToCodepoint() to get the UTF16 character. But there could be many of these in the same string, so I'm looking for a one-shot command that might just do them all. I don't think we have one. > > The alternative is to loop through all the text, getting an offset for each "\u" and then calculating the number of characters after that to use with numToCodepoint(). But will it always be 4 characters in any language? > > Or is there an easier way? > > -- > 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 jonathandlynch at gmail.com Tue Mar 14 18:42:56 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Tue, 14 Mar 2017 18:42:56 -0400 Subject: Translating escape sequences In-Reply-To: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> Message-ID: What I mean is - retrieve through JS to avoid escape characters then translate to utf-8 to pass to LC. Might be too complicated though. Sent from my iPhone > On Mar 14, 2017, at 5:26 PM, J. Landman Gay via use-livecode wrote: > > www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Tue Mar 14 19:58:51 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 15 Mar 2017 00:58:51 +0100 Subject: where does the standalonebuilder saves the substacks in an Mac OS App? Message-ID: Hi, is it correct when the standalone settings of an stack are set to move substacks into individual stack files that under Mac OS X the substacks in an compiled app (e.g. test.app) are stored in 'test.app/Contents/Resources/_MacOS/? instead of being stored in 'test.app/Contents/MacOS/' And if this is correct, how do i open them? At the moment my button script (go stack ?) , which works for Windows does not open the substacks in MacOS X. If i move the substacks manually to 'test.app/Contents/MacOS/' then of course my scripts can open them w/o modification. Never ran into this before, because i needed individual substacks only under Windows in the past. Am i missing something? Regards, Matthias From jiml at netrin.com Tue Mar 14 20:13:45 2017 From: jiml at netrin.com (Jim Lambert) Date: Tue, 14 Mar 2017 17:13:45 -0700 Subject: Translating escape sequence In-Reply-To: References: Message-ID: > Jacque wrote: > > I'm dealing with non-English languages, and JSON data retrieved from a > database comes in with unicode escape sequences like this: Eduardo > Ba\u00f1uls. > > I need to translate those. I can do it by replacing the "\u" with "0x" > and then using numToCodepoint() to get the UTF16 character. But there > could be many of these in the same string, so I'm looking for a one-shot > command that might just do them all. JSONImport does it. If the escaped string is not in JSON format this function will wrap it in JSON then let JSONImport do its thing. put deEscape("Eduardo Ba\u00f1uls") function deEscape pEscapedText put "{'1':'**dummy**'}" into temp replace "**dummy**" with pEscapedText in temp replace "'" with quote in temp put JSONImport(temp)into pArray return pArray[1] end deEscape Roundabout but does the trick. Jim Lambert From jacque at hyperactivesw.com Wed Mar 15 00:28:36 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Mar 2017 23:28:36 -0500 Subject: Translating escape sequence In-Reply-To: References: Message-ID: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> Thanks. I actually was using jsonImport() with these strings successfully (no wrapper required) but it has a bug on Android that makes it unuseable. That's what caused the problem in the first place, because jsonToArray() doesn't deal with escape sequences. So I went ahead and wrote a decoder for escaped sequences that works, but found out I still can't use it. If I replace the escapes before using jsonToArray(), jsonToArray throws an error; it can't deal with the UTF16 strings. And I can't run my decoder through the keys of the converted array after jsonToArray is finished, because they are already munged into garbage characters by then. So I'm stuck, I don't see any way to deal with these. I'll put in a bug report about jsonImport() but it will probably be a while before it gets fixed. I hope someone else has an idea. On 3/14/17 7:13 PM, Jim Lambert via use-livecode wrote: > >> Jacque wrote: >> >> I'm dealing with non-English languages, and JSON data retrieved from a >> database comes in with unicode escape sequences like this: Eduardo >> Ba\u00f1uls. >> >> I need to translate those. I can do it by replacing the "\u" with "0x" >> and then using numToCodepoint() to get the UTF16 character. But there >> could be many of these in the same string, so I'm looking for a one-shot >> command that might just do them all. > > > JSONImport does it. > If the escaped string is not in JSON format this function will wrap it in JSON then let JSONImport do its thing. > > put deEscape("Eduardo Ba\u00f1uls") > > function deEscape pEscapedText > put "{'1':'**dummy**'}" into temp > replace "**dummy**" with pEscapedText in temp > replace "'" with quote in temp > put JSONImport(temp)into pArray > return pArray[1] > end deEscape > > Roundabout but does the trick. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From revdev at pdslabs.net Wed Mar 15 00:58:48 2017 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 14 Mar 2017 21:58:48 -0700 Subject: Translating escape sequence In-Reply-To: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> References: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> Message-ID: <42671d17-9264-c1e2-5cb6-4062e1d713cb@pdslabs.net> Maybe right after you import the JSON data, preprocess it with something like this: set the lineDelimiter to "\u" repeat for each line tLine in tJsonData put numToCodePoint("0x" & char 1 to 4 of tLine) & char 5 to -1 of tLine after tNewData end repeat put tNewData into tJsonData Then go on your merry way. Would that work? Phil Davis On 3/14/17 9:28 PM, J. Landman Gay via use-livecode wrote: > Thanks. I actually was using jsonImport() with these strings > successfully (no wrapper required) but it has a bug on Android that > makes it unuseable. That's what caused the problem in the first place, > because jsonToArray() doesn't deal with escape sequences. > > So I went ahead and wrote a decoder for escaped sequences that works, > but found out I still can't use it. If I replace the escapes before > using jsonToArray(), jsonToArray throws an error; it can't deal with > the UTF16 strings. And I can't run my decoder through the keys of the > converted array after jsonToArray is finished, because they are > already munged into garbage characters by then. > > So I'm stuck, I don't see any way to deal with these. I'll put in a > bug report about jsonImport() but it will probably be a while before > it gets fixed. > > I hope someone else has an idea. > > On 3/14/17 7:13 PM, Jim Lambert via use-livecode wrote: >> >>> Jacque wrote: >>> >>> I'm dealing with non-English languages, and JSON data retrieved from a >>> database comes in with unicode escape sequences like this: Eduardo >>> Ba\u00f1uls. >>> >>> I need to translate those. I can do it by replacing the "\u" with "0x" >>> and then using numToCodepoint() to get the UTF16 character. But there >>> could be many of these in the same string, so I'm looking for a >>> one-shot >>> command that might just do them all. >> >> >> JSONImport does it. >> If the escaped string is not in JSON format this function will wrap >> it in JSON then let JSONImport do its thing. >> >> put deEscape("Eduardo Ba\u00f1uls") >> >> function deEscape pEscapedText >> put "{'1':'**dummy**'}" into temp >> replace "**dummy**" with pEscapedText in temp >> replace "'" with quote in temp >> put JSONImport(temp)into pArray >> return pArray[1] >> end deEscape >> >> Roundabout but does the trick. >> >> Jim Lambert >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- Phil Davis From monte at appisle.net Wed Mar 15 01:00:31 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 15 Mar 2017 16:00:31 +1100 Subject: Translating escape sequence In-Reply-To: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> References: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> Message-ID: <7F3782EA-1F31-42A5-8778-F18A94EA13F4@appisle.net> > On 15 Mar 2017, at 3:28 pm, J. Landman Gay via use-livecode wrote: > > So I'm stuck, I don't see any way to deal with these. I'll put in a bug report about jsonImport() but it will probably be a while before it gets fixed. > > I hope someone else has an idea. I do -) Jansson (the library that mergJSON uses) does actually handle all escaped unicode codepoints just fine. There is, however, an issue with the JSONToArray function. Try patching it like I have done here https://github.com/montegoulding/mergJSON/pull/8 Cheers Monte From james at thehales.id.au Wed Mar 15 01:48:12 2017 From: james at thehales.id.au (James Hale) Date: Wed, 15 Mar 2017 16:48:12 +1100 Subject: OSX module file error when building standalone with LC 8 on mac Message-ID: <1A75D06F-82E6-4180-8756-23904FB2F8B3@thehales.id.au> I just went to recompile a little utility I have and came across this error. The stack is simple and just gets the user to select file(s) or a folder or a text list to create folders somewhere else. I had compiled a standalone before but now am unable to with LC8. It gets all the way to building MacOS components and then... "There was an error while saving the standalone application Build failed for MacOSX x86-32: could not open module file" I originally was compiling 64 bit, then I tried both, then just 32 bit. Same error in each case. Has anyone else experienced this? Does anyone know what it means? Tried with 8.1.3 indy and business 8.1.0 Indy Then tried with a couple of the 9DPs These all worked! So it seems to be only with the LC 8s that I have. James From jacque at hyperactivesw.com Wed Mar 15 02:08:49 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Mar 2017 01:08:49 -0500 Subject: Translating escape sequence In-Reply-To: <7F3782EA-1F31-42A5-8778-F18A94EA13F4@appisle.net> References: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> <7F3782EA-1F31-42A5-8778-F18A94EA13F4@appisle.net> Message-ID: <934ba466-230e-581f-7aa4-35d52eee8cd8@hyperactivesw.com> On 3/15/17 12:00 AM, Monte Goulding via use-livecode wrote: > >> On 15 Mar 2017, at 3:28 pm, J. Landman Gay via use-livecode >> wrote: >> >> So I'm stuck, I don't see any way to deal with these. I'll put in a >> bug report about jsonImport() but it will probably be a while >> before it gets fixed. >> >> I hope someone else has an idea. > > I do -) > > Jansson (the library that mergJSON uses) does actually handle all > escaped unicode codepoints just fine. There is, however, an issue > with the JSONToArray function. Try patching it like I have done here > https://github.com/montegoulding/mergJSON/pull/8 Cool. :) I'd patch it if I knew how to do that but I don't know enough about git to even start. But since you've put in a pull request, I can wait until the next dp. Thanks much, Monte. I owe you another sandwich. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From monte at appisle.net Wed Mar 15 02:11:47 2017 From: monte at appisle.net (Monte Goulding) Date: Wed, 15 Mar 2017 17:11:47 +1100 Subject: Translating escape sequence In-Reply-To: <934ba466-230e-581f-7aa4-35d52eee8cd8@hyperactivesw.com> References: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> <7F3782EA-1F31-42A5-8778-F18A94EA13F4@appisle.net> <934ba466-230e-581f-7aa4-35d52eee8cd8@hyperactivesw.com> Message-ID: <6E33C592-33B2-4557-B0BE-4EC4E49AE98A@appisle.net> > On 15 Mar 2017, at 5:08 pm, J. Landman Gay via use-livecode wrote: > > Cool. :) I'd patch it if I knew how to do that but I don't know enough about git to even start. But since you've put in a pull request, I can wait until the next dp. I meant you could patch it in your copy of LC. Just edit the script of stack ?ws.goulding.script-library.mergjson?. You may need to mess with the permissions of the app bundle if you want to save on Mac. > > Thanks much, Monte. I owe you another sandwich. ;-) From jacque at hyperactivesw.com Wed Mar 15 02:15:52 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Mar 2017 01:15:52 -0500 Subject: Translating escape sequence In-Reply-To: <42671d17-9264-c1e2-5cb6-4062e1d713cb@pdslabs.net> References: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> <42671d17-9264-c1e2-5cb6-4062e1d713cb@pdslabs.net> Message-ID: On 3/14/17 11:58 PM, Phil Davis via use-livecode wrote: > Maybe right after you import the JSON data, preprocess it with something > like this: > > set the lineDelimiter to "\u" > repeat for each line tLine in tJsonData > put numToCodePoint("0x" & char 1 to 4 of tLine) & char 5 to -1 of > tLine after tNewData > end repeat > put tNewData into tJsonData > > Then go on your merry way. Would that work? Alas, no. I did something similar earlier this evening. If you replace the escaped sequences before running it through jsonToArray, the function throws [an error and gives] up. If you run jsonToArray first, there are no escapes to process, they are all converted to garbage by then. But Monte has a fix in the pipes. I think he's been lurking here and fixing bugs before I can report them. He just wants us to think he's psychic. I beat him to the bug in jsonImport though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Mar 15 02:40:31 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Mar 2017 01:40:31 -0500 Subject: Translating escape sequence In-Reply-To: <7F3782EA-1F31-42A5-8778-F18A94EA13F4@appisle.net> References: <551981b6-2c83-6d95-e5b3-b0e43b4f74dd@hyperactivesw.com> <7F3782EA-1F31-42A5-8778-F18A94EA13F4@appisle.net> Message-ID: On 3/15/17 12:00 AM, Monte Goulding via use-livecode wrote: > Try patching it like I have done here https://github.com/montegoulding/mergJSON/pull/8 Hey, I figured out how to patch and where they hid your libraries. It works! :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Mar 15 02:44:59 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Mar 2017 01:44:59 -0500 Subject: where does the standalonebuilder saves the substacks in an Mac OS App? In-Reply-To: References: Message-ID: <0af5f49f-35b8-8b72-e6e7-19c11135fd42@hyperactivesw.com> On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote: > is it correct when the standalone settings of an stack are set to > move substacks into individual stack files that under Mac OS X the > substacks in an compiled app (e.g. test.app) are stored > > in 'test.app/Contents/Resources/_MacOS/? instead of being stored in > 'test.app/Contents/MacOS/' Yes, Apple required that change a while ago. > And if this is correct, how do i open them? At the moment my button > script (go stack ?) , which works for Windows does not open the > substacks in MacOS X. If i move the substacks manually to > 'test.app/Contents/MacOS/' then of course my scripts can open them > w/o modification. Apple doesn't want anything in the folder except the executable now. The best way to handle the files is to use specialFolderPath("resources") as the directory. That will alway point to the correct location on any OS. On Mac, it specifies the Resources folder (and is a synonym for the engine folder for legacy stacks.) So your path should be: specialFolderPath("resources") & "/stackname.livecode" It will work on Windows too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sims at ezpzapps.com Wed Mar 15 03:20:43 2017 From: sims at ezpzapps.com (sims) Date: Wed, 15 Mar 2017 10:20:43 +0300 Subject: =?utf-8?B?dXNlZnVsIGluZm9ybWF0aW9u?= Message-ID: <1651535832.20170315102043@ezpzapps.com> Dear friend! I've just found some information that seemed to be very useful, please take a look http://time.runningwithpercy.com/0302 Wishes, sims From sims at ezpzapps.com Wed Mar 15 03:20:43 2017 From: sims at ezpzapps.com (sims) Date: Wed, 15 Mar 2017 10:20:43 +0300 Subject: =?utf-8?B?dXNlZnVsIGluZm9ybWF0aW9u?= Message-ID: <1651535832.20170315102043@ezpzapps.com> Dear friend! I've just found some information that seemed to be very useful, please take a look http://time.runningwithpercy.com/0302 Wishes, sims From richmondmathewson at gmail.com Wed Mar 15 03:27:02 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 15 Mar 2017 09:27:02 +0200 Subject: Translating escape sequences In-Reply-To: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> Message-ID: <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> No; it won't always be 4 characters, here's an admittedly extremely obscure ancient Sinhala number; 0x111F4. Of course the chances of encountering whacky characters like that is small, but you'll have to make sure you can cope with them should they crop up. If you look at Eduardo Ba\u00f1uls you will have to strip what comes after the '\' of the prefix 'u' and the suffix 'uls' and then you can cope with whatever is left: Reasonably pseudo-code following: set the item delimiter to \ put what's after the item delimiter into HOLDER delete char 1 of HOLDER delete the last char of HOLDER delete the last char of HOLDER delete the last char of HOLDER put "0x" & HOLDER into NUNUM at this point "NUNUM" could be alost any length, but that should not matter unduly. Richmond. On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote: > I'm dealing with non-English languages, and JSON data retrieved from a > database comes in with unicode escape sequences like this: Eduardo > Ba\u00f1uls. > > I need to translate those. I can do it by replacing the "\u" with "0x" > and then using numToCodepoint() to get the UTF16 character. But there > could be many of these in the same string, so I'm looking for a > one-shot command that might just do them all. I don't think we have one. > > The alternative is to loop through all the text, getting an offset for > each "\u" and then calculating the number of characters after that to > use with numToCodepoint(). But will it always be 4 characters in any > language? > > Or is there an easier way? > From peter.brett at livecode.com Wed Mar 15 07:53:10 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Wed, 15 Mar 2017 11:53:10 +0000 Subject: Translating escape sequences In-Reply-To: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> Message-ID: <8ab93bba-ee36-b552-09a0-9fbaad762db6@livecode.com> On 14/03/2017 21:26, J. Landman Gay via use-livecode wrote: > I'm dealing with non-English languages, and JSON data retrieved from a > database comes in with unicode escape sequences like this: Eduardo > Ba\u00f1uls. > > I need to translate those. I can do it by replacing the "\u" with "0x" > and then using numToCodepoint() to get the UTF16 character. But there > could be many of these in the same string, so I'm looking for a one-shot > command that might just do them all. I don't think we have one. > > The alternative is to loop through all the text, getting an offset for > each "\u" and then calculating the number of characters after that to > use with numToCodepoint(). But will it always be 4 characters in any > language? > > Or is there an easier way? JsonImport() should handle those automatically. Please let me know if it doesn't! Peter -- Dr Peter Brett lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From matthias_livecode_150811 at m-r-d.de Wed Mar 15 08:02:03 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 15 Mar 2017 13:02:03 +0100 Subject: where does the standalonebuilder saves the substacks in an Mac OS App? In-Reply-To: <0af5f49f-35b8-8b72-e6e7-19c11135fd42@hyperactivesw.com> References: <0af5f49f-35b8-8b72-e6e7-19c11135fd42@hyperactivesw.com> Message-ID: Hi Jacqueline, thanks for that hint. Seems i have missed that part.. Regards, Matthias > Am 15.03.2017 um 07:44 schrieb J. Landman Gay via use-livecode >: > > On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote: >> is it correct when the standalone settings of an stack are set to >> move substacks into individual stack files that under Mac OS X the >> substacks in an compiled app (e.g. test.app) are stored >> >> in 'test.app/Contents/Resources/_MacOS/? instead of being stored in >> 'test.app/Contents/MacOS/' > > Yes, Apple required that change a while ago. > >> And if this is correct, how do i open them? At the moment my button >> script (go stack ?) , which works for Windows does not open the >> substacks in MacOS X. If i move the substacks manually to >> 'test.app/Contents/MacOS/' then of course my scripts can open them >> w/o modification. > > Apple doesn't want anything in the folder except the executable now. The best way to handle the files is to use specialFolderPath("resources") as the directory. That will alway point to the correct location on any OS. On Mac, it specifies the Resources folder (and is a synonym for the engine folder for legacy stacks.) So your path should be: > > specialFolderPath("resources") & "/stackname.livecode" > > It will work on Windows too. > > -- > 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 Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 From tom at makeshyft.com Wed Mar 15 08:57:29 2017 From: tom at makeshyft.com (Tom Glod) Date: Wed, 15 Mar 2017 08:57:29 -0400 Subject: how to remove black title bar in browser widget when showing a pdf? In-Reply-To: <001c01d29ca5$abe11ec0$03a35c40$@kestner.de> References: <001c01d29ca5$abe11ec0$03a35c40$@kestner.de> Message-ID: This is the built in PDF viewer in Chrome, I don't think the option exists in an embedded browser. Hope I'm wrong, cuz I'd like to tweak some stuff there too. On Tue, Mar 14, 2017 at 5:30 AM, Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > LC 8.1.3, Windows 10: When I am displaying a pdf (local or web) in the > browser widget, there is a black title bar on top of the pdf, which > occupies > the top 45 pixels of the browser widget. When hovering over the widget, the > name of the pdf is shown within this black title bar. > > I didn't found any option to not show this title bar within the browser > widget. Do I have to live with it or is there an option or a trick I > haven't > found yet? > > Thanks > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Tom Glod* CEO @ *MakeShyft R.D.A* - www.makeshyft.com Developer of *U.M.P* - www.IamUMP.com From smaclean at madmansoft.com Wed Mar 15 09:38:51 2017 From: smaclean at madmansoft.com (Stephen MacLean) Date: Wed, 15 Mar 2017 09:38:51 -0400 Subject: SFTP with .PPK file Message-ID: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> Hi All, Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. I use WinSCP and can link the connection to the file and can connect fine. In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. Any help would be appreciated. Thanks, Steve MacLean PS: Running 9.0 dp6 Business From bobsneidar at iotecdigital.com Wed Mar 15 10:44:53 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 15 Mar 2017 14:44:53 +0000 Subject: OSX module file error when building standalone with LC 8 on mac In-Reply-To: <1A75D06F-82E6-4180-8756-23904FB2F8B3@thehales.id.au> References: <1A75D06F-82E6-4180-8756-23904FB2F8B3@thehales.id.au> Message-ID: <86E5320C-B8DF-4B7F-B003-42C66EDBB956@iotecdigital.com> I dunno, but I do notice that when compiling (I call creating a standalone "compiling" because it takes less effort to type) the standalone builder "actually opens" stack files. I know this because I have handlers which, upon opening the mainstack for the first time, opens a substack I use for logging into the database. This stack is opened modally by script. The stack is NOT set to float above everything itself. This means that when the standalone builder opens stacks THEY ARE ACTUALLY running the handlers! This did NOT happen with version 8.0.x so far as I can tell. Also try manually setting your inclusions instead of letting the builder automatically figure it out. Thirdly, check your standalone settings and stack files in the mainstack to make sure that the builder did not modify these! If you build for more than one OS at a time, these can get modified to use inclusions IN THE STANDALONE FOLDER of another versions build! I know you are saying, "That is crazy mad sh*t! Whe the H**l would they do that????? At least that is what I have been saying. Bob S > On Mar 14, 2017, at 22:48 , James Hale via use-livecode wrote: > > I just went to recompile a little utility I have and came across this error. > > The stack is simple and just gets the user to select file(s) or a folder or a text list to create folders somewhere else. > > I had compiled a standalone before but now am unable to with LC8. > > It gets all the way to building MacOS components and then... > > "There was an error while saving the > standalone application > Build failed for MacOSX x86-32: could not > open module file" > > I originally was compiling 64 bit, then I tried both, then just 32 bit. > Same error in each case. > > Has anyone else experienced this? > Does anyone know what it means? > > Tried with > 8.1.3 indy and business > 8.1.0 Indy > > Then tried with a couple of the 9DPs > These all worked! > > So it seems to be only with the LC 8s that I have. > > James From toolbook at kestner.de Wed Mar 15 11:00:00 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 15 Mar 2017 16:00:00 +0100 Subject: tsneterr: (6) could not resolve host Message-ID: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> Hello, using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: public" when trying to access a file in a web server directory with user and password protection put URL "http://public:myPW at www.myHost/mypath/my.txt" into tResult when opening the same file in a not pw protected directory, everything is fine and I get the content of the file Testing the same with 8.1 or 9.0 dp 4 it works also with the pw protected dir, like it should. Is this a known issue with tsnet? Any workarounds? Thanks Tiemo From toolbook at kestner.de Wed Mar 15 11:00:45 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 15 Mar 2017 16:00:45 +0100 Subject: AW: tsneterr: (6) could not resolve host In-Reply-To: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> References: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> Message-ID: <007c01d29d9c$ed143830$c73ca890$@kestner.de> Forgot to say: Windows 10 -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB via use-livecode Gesendet: Mittwoch, 15. M?rz 2017 16:00 An: LiveCode User Liste senden Cc: Tiemo Hollmann TB Betreff: tsneterr: (6) could not resolve host Hello, using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: public" when trying to access a file in a web server directory with user and password protection put URL "http://public:myPW at www.myHost/mypath/my.txt" into tResult when opening the same file in a not pw protected directory, everything is fine and I get the content of the file Testing the same with 8.1 or 9.0 dp 4 it works also with the pw protected dir, like it should. Is this a known issue with tsnet? Any workarounds? Thanks Tiemo _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Mar 15 12:43:43 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Mar 2017 11:43:43 -0500 Subject: Translating escape sequences In-Reply-To: <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> Message-ID: <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The problem with the pseudo code is that there's no clear indication of how many characters at the end to preserve. I'm not sure how the libraries deal with that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode wrote: > No; it won't always be 4 characters, here's an admittedly extremely > obscure ancient Sinhala number; > 0x111F4. > > Of course the chances of encountering whacky characters like that is > small, but you'll have to make sure you > can cope with them should they crop up. > > If you look at Eduardo Ba\u00f1uls you will have to strip what comes > after the '\' of the prefix 'u' > and the suffix 'uls' and then you can cope with whatever is left: > > Reasonably pseudo-code following: > > set the item delimiter to \ > put what's after the item delimiter into HOLDER > delete char 1 of HOLDER > delete the last char of HOLDER > delete the last char of HOLDER > delete the last char of HOLDER > put "0x" & HOLDER into NUNUM > > at this point "NUNUM" could be alost any length, but that should not > matter unduly. > > Richmond. > > On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote: >> I'm dealing with non-English languages, and JSON data retrieved from a >> database comes in with unicode escape sequences like this: Eduardo >> Ba\u00f1uls. >> >> I need to translate those. I can do it by replacing the "\u" with "0x" >> and then using numToCodepoint() to get the UTF16 character. But there >> could be many of these in the same string, so I'm looking for a >> one-shot command that might just do them all. I don't think we have one. >> >> The alternative is to loop through all the text, getting an offset for >> each "\u" and then calculating the number of characters after that to >> use with numToCodepoint(). But will it always be 4 characters in any >> language? >> >> Or is there an easier way? >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smaclean at madmansoft.com Wed Mar 15 16:01:38 2017 From: smaclean at madmansoft.com (Stephen MacLean) Date: Wed, 15 Mar 2017 16:01:38 -0400 Subject: SFTP with .PPK file In-Reply-To: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> Message-ID: <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> Well, still no luck in getting it to work, but getting closer? I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: on mouseUp local tHeaders, tResult, tSettings put ?xxxxxxxx" into tSettings["username"] put URL "binfile:D:\private.ppk" into tPrivKey put tPrivKey into tSettings["ssh_priv_key"] tsNetInit put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult end mouseUp However, it returns: tsneterr: (67) Authentication failure Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. Any suggestions?? Thanks, Steve MacLean > On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode wrote: > > Hi All, > > Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. > > I use WinSCP and can link the connection to the file and can connect fine. > > In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. > > Any help would be appreciated. > > Thanks, > > Steve MacLean > > PS: Running 9.0 dp6 Business > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 15 16:16:57 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 15 Mar 2017 22:16:57 +0200 Subject: Translating escape sequences In-Reply-To: <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> Just knock off the last 3, and what is left is what you want. Richmond. On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote: > The problem with the pseudo code is that there's no clear indication > of how many characters at the end to preserve. I'm not sure how the > libraries deal with that. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode > wrote: > >> No; it won't always be 4 characters, here's an admittedly extremely >> obscure ancient Sinhala number; >> 0x111F4. >> >> Of course the chances of encountering whacky characters like that is >> small, but you'll have to make sure you >> can cope with them should they crop up. >> >> If you look at Eduardo Ba\u00f1uls you will have to strip what comes >> after the '\' of the prefix 'u' >> and the suffix 'uls' and then you can cope with whatever is left: >> >> Reasonably pseudo-code following: >> >> set the item delimiter to \ >> put what's after the item delimiter into HOLDER >> delete char 1 of HOLDER >> delete the last char of HOLDER >> delete the last char of HOLDER >> delete the last char of HOLDER >> put "0x" & HOLDER into NUNUM >> >> at this point "NUNUM" could be alost any length, but that should not >> matter unduly. >> >> Richmond. >> >> On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote: >>> I'm dealing with non-English languages, and JSON data retrieved from a >>> database comes in with unicode escape sequences like this: Eduardo >>> Ba\u00f1uls. >>> >>> I need to translate those. I can do it by replacing the "\u" with "0x" >>> and then using numToCodepoint() to get the UTF16 character. But there >>> could be many of these in the same string, so I'm looking for a >>> one-shot command that might just do them all. I don't think we have >>> one. >>> >>> The alternative is to loop through all the text, getting an offset for >>> each "\u" and then calculating the number of characters after that to >>> use with numToCodepoint(). But will it always be 4 characters in any >>> language? >>> >>> Or is there an easier way? >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 15 16:59:44 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 15 Mar 2017 20:59:44 +0000 Subject: Translating escape sequences In-Reply-To: <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> Message-ID: Sounds like a mob hit. :-) Bob S > On Mar 15, 2017, at 13:16 , Richmond Mathewson via use-livecode wrote: > > Just knock off the last 3, and what is left is what you want. > > Richmond. From jacque at hyperactivesw.com Wed Mar 15 16:36:05 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Mar 2017 15:36:05 -0500 Subject: Translating escape sequences In-Reply-To: <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> Message-ID: What if the user name has seven characters after the escape sequence? On 3/15/17 3:16 PM, Richmond Mathewson via use-livecode wrote: > Just knock off the last 3, and what is left is what you want. > > Richmond. > > On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote: >> The problem with the pseudo code is that there's no clear indication >> of how many characters at the end to preserve. I'm not sure how the >> libraries deal with that. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode >> wrote: >> >>> No; it won't always be 4 characters, here's an admittedly extremely >>> obscure ancient Sinhala number; >>> 0x111F4. >>> >>> Of course the chances of encountering whacky characters like that is >>> small, but you'll have to make sure you >>> can cope with them should they crop up. >>> >>> If you look at Eduardo Ba\u00f1uls you will have to strip what comes >>> after the '\' of the prefix 'u' >>> and the suffix 'uls' and then you can cope with whatever is left: >>> >>> Reasonably pseudo-code following: >>> >>> set the item delimiter to \ >>> put what's after the item delimiter into HOLDER >>> delete char 1 of HOLDER >>> delete the last char of HOLDER >>> delete the last char of HOLDER >>> delete the last char of HOLDER >>> put "0x" & HOLDER into NUNUM >>> >>> at this point "NUNUM" could be alost any length, but that should not >>> matter unduly. >>> >>> Richmond. >>> >>> On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote: >>>> I'm dealing with non-English languages, and JSON data retrieved from a >>>> database comes in with unicode escape sequences like this: Eduardo >>>> Ba\u00f1uls. >>>> >>>> I need to translate those. I can do it by replacing the "\u" with "0x" >>>> and then using numToCodepoint() to get the UTF16 character. But there >>>> could be many of these in the same string, so I'm looking for a >>>> one-shot command that might just do them all. I don't think we have >>>> one. >>>> >>>> The alternative is to loop through all the text, getting an offset for >>>> each "\u" and then calculating the number of characters after that to >>>> use with numToCodepoint(). But will it always be 4 characters in any >>>> language? >>>> >>>> Or is there an easier way? >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode 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 bonnmike at gmail.com Wed Mar 15 17:03:48 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Mar 2017 15:03:48 -0600 Subject: Translating escape sequences In-Reply-To: <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> Message-ID: does this mean one could replace /u with 0x and then replace uls with empty and end up with the correct end result? On Wed, Mar 15, 2017 at 2:16 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > Just knock off the last 3, and what is left is what you want. > > Richmond. > > On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote: > >> The problem with the pseudo code is that there's no clear indication of >> how many characters at the end to preserve. I'm not sure how the libraries >> deal with that. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> No; it won't always be 4 characters, here's an admittedly extremely >>> obscure ancient Sinhala number; >>> 0x111F4. >>> >>> Of course the chances of encountering whacky characters like that is >>> small, but you'll have to make sure you >>> can cope with them should they crop up. >>> >>> If you look at Eduardo Ba\u00f1uls you will have to strip what comes >>> after the '\' of the prefix 'u' >>> and the suffix 'uls' and then you can cope with whatever is left: >>> >>> Reasonably pseudo-code following: >>> >>> set the item delimiter to \ >>> put what's after the item delimiter into HOLDER >>> delete char 1 of HOLDER >>> delete the last char of HOLDER >>> delete the last char of HOLDER >>> delete the last char of HOLDER >>> put "0x" & HOLDER into NUNUM >>> >>> at this point "NUNUM" could be alost any length, but that should not >>> matter unduly. >>> >>> Richmond. >>> >>> On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote: >>> >>>> I'm dealing with non-English languages, and JSON data retrieved from a >>>> database comes in with unicode escape sequences like this: Eduardo >>>> Ba\u00f1uls. >>>> >>>> I need to translate those. I can do it by replacing the "\u" with "0x" >>>> and then using numToCodepoint() to get the UTF16 character. But there >>>> could be many of these in the same string, so I'm looking for a >>>> one-shot command that might just do them all. I don't think we have one. >>>> >>>> The alternative is to loop through all the text, getting an offset for >>>> each "\u" and then calculating the number of characters after that to >>>> use with numToCodepoint(). But will it always be 4 characters in any >>>> language? >>>> >>>> Or is there an easier way? >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 15 17:07:15 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 15 Mar 2017 14:07:15 -0700 Subject: Help test please? GoLiveNet in v9 Message-ID: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> Hello gang - I'm having a tough time figuring out why the GoLiveNet plugin shipping with LC isn't working well for me (BZ#19026). If you're using v8 or v9, could you please run this recipe and email me if it doesn't work: 1. In the IDE, choose Development -> Plugins - GoLiveNet That's it. When it's working you'll briefly see a progress bar, and then the LiveNet window appears. If it doesn't work you'll see an error note in that plugin window. Curious what you find. Thanks - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From klaus at major-k.de Wed Mar 15 17:14:35 2017 From: klaus at major-k.de (Klaus major-k) Date: Wed, 15 Mar 2017 22:14:35 +0100 Subject: Help test please? GoLiveNet in v9 In-Reply-To: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> References: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> Message-ID: <9049C258-6D08-4177-8DFE-CC9511059106@major-k.de> Hi Richard, > Am 15.03.2017 um 22:07 schrieb Richard Gaskin via use-livecode : > > Hello gang - > > I'm having a tough time figuring out why the GoLiveNet plugin shipping with LC isn't working well for me (BZ#19026). > If you're using v8 or v9, could you please run this recipe and email me if it doesn't work: > 1. In the IDE, choose Development -> Plugins - GoLiveNet > That's it. When it's working you'll briefly see a progress bar, and then the LiveNet window appears. > If it doesn't work you'll see an error note in that plugin window. > Curious what you find. Thanks - works fine for me with LC 9 dp6 on macOS 10.12.3! > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From matthias_livecode_150811 at m-r-d.de Wed Mar 15 17:34:43 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 15 Mar 2017 22:34:43 +0100 Subject: Help test please? GoLiveNet in v9 In-Reply-To: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> References: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> Message-ID: Hi, LC 8.1.2, Win 10 -> works LC 9.0DP6, Win 10 -> works LC 8.1.3, Mac Os X 10.12.3 -> works LC 9.0DP6, Mac Os X 10.12.3 -> works Regards, Matthias > Am 15.03.2017 um 22:07 schrieb Richard Gaskin via use-livecode >: > > Hello gang - > > I'm having a tough time figuring out why the GoLiveNet plugin shipping with LC isn't working well for me (BZ#19026). > > If you're using v8 or v9, could you please run this recipe and email me if it doesn't work: > > 1. In the IDE, choose Development -> Plugins - GoLiveNet > > That's it. When it's working you'll briefly see a progress bar, and then the LiveNet window appears. > > If it doesn't work you'll see an error note in that plugin window. > > Curious what you find. Thanks - > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 From rdimola at evergreeninfo.net Wed Mar 15 18:03:15 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 15 Mar 2017 18:03:15 -0400 Subject: Help test please? GoLiveNet in v9 In-Reply-To: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> References: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> Message-ID: <004101d29dd7$f268ce50$d73a6af0$@net> OK here on Win 10 Pro VM LC 8.1.3 Business Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Richard Gaskin via use-livecode Sent: Wednesday, March 15, 2017 5:07 PM To: How to use LiveCode Cc: Richard Gaskin Subject: Help test please? GoLiveNet in v9 Hello gang - I'm having a tough time figuring out why the GoLiveNet plugin shipping with LC isn't working well for me (BZ#19026). If you're using v8 or v9, could you please run this recipe and email me if it doesn't work: 1. In the IDE, choose Development -> Plugins - GoLiveNet That's it. When it's working you'll briefly see a progress bar, and then the LiveNet window appears. If it doesn't work you'll see an error note in that plugin window. Curious what you find. Thanks - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 15 18:03:05 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Mar 2017 17:03:05 -0500 Subject: Translating escape sequences In-Reply-To: References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> Message-ID: <6cec6fd6-1faa-9986-13d5-646f2323de98@hyperactivesw.com> On 3/15/17 4:03 PM, Mike Bonner via use-livecode wrote: > does this mean one could replace /u with 0x and then replace uls with empty > and end up with the correct end result? Aha. Now I know what's been wrong with my scripts. I've been replacing *nulls* with empty. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rdimola at evergreeninfo.net Wed Mar 15 18:06:01 2017 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 15 Mar 2017 18:06:01 -0400 Subject: Help test please? GoLiveNet in v9 In-Reply-To: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> References: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> Message-ID: <004201d29dd8$55b29770$0117c650$@net> Whoops... also OK using LC 9.0(dp5) OK here on Win 10 Pro VM LC 8.1.3 Business Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Richard Gaskin via use-livecode Sent: Wednesday, March 15, 2017 5:07 PM To: How to use LiveCode Cc: Richard Gaskin Subject: Help test please? GoLiveNet in v9 Hello gang - I'm having a tough time figuring out why the GoLiveNet plugin shipping with LC isn't working well for me (BZ#19026). If you're using v8 or v9, could you please run this recipe and email me if it doesn't work: 1. In the IDE, choose Development -> Plugins - GoLiveNet That's it. When it's working you'll briefly see a progress bar, and then the LiveNet window appears. If it doesn't work you'll see an error note in that plugin window. Curious what you find. Thanks - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at 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 Wed Mar 15 18:22:06 2017 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 15 Mar 2017 15:22:06 -0700 Subject: Help test please? GoLiveNet in v9 In-Reply-To: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> References: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> Message-ID: <74051003-57E6-4A81-930E-2C8F625C666D@jhjensen.com> OK on LC 8.1.3 Indy Mac OSX 10.12.3 Jerry > On Mar 15, 2017, at 2:07 PM, Richard Gaskin via use-livecode wrote: > > Hello gang - > > I'm having a tough time figuring out why the GoLiveNet plugin shipping with LC isn't working well for me (BZ#19026). > > If you're using v8 or v9, could you please run this recipe and email me if it doesn't work: > > 1. In the IDE, choose Development -> Plugins - GoLiveNet > > That's it. When it's working you'll briefly see a progress bar, and then the LiveNet window appears. > > If it doesn't work you'll see an error note in that plugin window. > > Curious what you find. Thanks - > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 15 18:57:34 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Mar 2017 16:57:34 -0600 Subject: Translating escape sequences In-Reply-To: <6cec6fd6-1faa-9986-13d5-646f2323de98@hyperactivesw.com> References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> <6cec6fd6-1faa-9986-13d5-646f2323de98@hyperactivesw.com> Message-ID: (watches as the whole topic zooms over his head) On Wed, Mar 15, 2017 at 4:03 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 3/15/17 4:03 PM, Mike Bonner via use-livecode wrote: > >> does this mean one could replace /u with 0x and then replace uls with >> empty >> and end up with the correct end result? >> > > Aha. Now I know what's been wrong with my scripts. I've been replacing > *nulls* with empty. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jiml at netrin.com Wed Mar 15 19:10:17 2017 From: jiml at netrin.com (Jim Lambert) Date: Wed, 15 Mar 2017 16:10:17 -0700 Subject: Help test please? GoLiveNet in v9 In-Reply-To: References: Message-ID: Fine in LC 9.0.0 dp6 OSX 10.12.3 Jim Lambert From smaclean at madmansoft.com Wed Mar 15 21:52:45 2017 From: smaclean at madmansoft.com (Stephen MacLean) Date: Wed, 15 Mar 2017 21:52:45 -0400 Subject: Help test please? GoLiveNet in v9 In-Reply-To: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> References: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> Message-ID: <72AF4692-1661-479F-8808-9EED90EDC28B@madmansoft.com> Works fine in LC 8.13 and 9.0 DP6 Business on Windows 7 x64 and Mac OS X 10.12.3 Best, Steve MacLean From bonnmike at gmail.com Wed Mar 15 22:22:00 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Mar 2017 20:22:00 -0600 Subject: Help test please? GoLiveNet in v9 In-Reply-To: <72AF4692-1661-479F-8808-9EED90EDC28B@madmansoft.com> References: <5c654288-e43d-f740-c5bd-7ed5f76de45d@fourthworld.com> <72AF4692-1661-479F-8808-9EED90EDC28B@madmansoft.com> Message-ID: If you're using a proxy, can you temporarily turn it off and test again? On Wed, Mar 15, 2017 at 7:52 PM, Stephen MacLean via use-livecode < use-livecode at lists.runrev.com> wrote: > Works fine in LC 8.13 and 9.0 DP6 Business on Windows 7 x64 and Mac OS X > 10.12.3 > > Best, > > Steve MacLean > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From charles at techstrategies.com.au Thu Mar 16 03:08:41 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 16 Mar 2017 17:08:41 +1000 Subject: SFTP with .PPK file In-Reply-To: <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> Message-ID: <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> Hi Steve, It looks like you are using a SSH private key in PuTTY format (.ppk). tsNet requires it to be in OpenSSH format. That is easy to fix though, you can convert the .ppk with PuttyGen. To do this, open PuttyGen and load the .ppk file. Then select "Conversions" -> "Export OpenSSH key". Apart from that, just make sure that your call to tsNetGet includes the full path of the file you want to download. Hope that helps, Cheers, Charles On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote: > Well, still no luck in getting it to work, but getting closer? > > I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: > > on mouseUp > local tHeaders, tResult, tSettings > put ?xxxxxxxx" into tSettings["username"] > put URL "binfile:D:\private.ppk" into tPrivKey > put tPrivKey into tSettings["ssh_priv_key"] > tsNetInit > put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult > end mouseUp > > However, it returns: > > tsneterr: (67) Authentication failure > > Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. > > Any suggestions?? > > Thanks, > > Steve MacLean > >> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode wrote: >> >> Hi All, >> >> Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. >> >> I use WinSCP and can link the connection to the file and can connect fine. >> >> In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. >> >> Any help would be appreciated. >> >> Thanks, >> >> Steve MacLean >> >> PS: Running 9.0 dp6 Business >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 16 04:29:30 2017 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 16 Mar 2017 10:29:30 +0200 Subject: Translating escape sequences In-Reply-To: References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> Message-ID: <79209b9b-2d0a-2c93-5be3-e56bec5c3b67@gmail.com> Ouch. My excuse is that I was working with the example you supplied. Richmond. On 15/03/17 22:36, J. Landman Gay via use-livecode wrote: > What if the user name has seven characters after the escape sequence? > > On 3/15/17 3:16 PM, Richmond Mathewson via use-livecode wrote: >> Just knock off the last 3, and what is left is what you want. >> >> Richmond. >> >> On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote: >>> The problem with the pseudo code is that there's no clear indication >>> of how many characters at the end to preserve. I'm not sure how the >>> libraries deal with that. >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> >>> >>> On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode >>> wrote: >>> >>>> No; it won't always be 4 characters, here's an admittedly extremely >>>> obscure ancient Sinhala number; >>>> 0x111F4. >>>> >>>> Of course the chances of encountering whacky characters like that is >>>> small, but you'll have to make sure you >>>> can cope with them should they crop up. >>>> >>>> If you look at Eduardo Ba\u00f1uls you will have to strip what comes >>>> after the '\' of the prefix 'u' >>>> and the suffix 'uls' and then you can cope with whatever is left: >>>> >>>> Reasonably pseudo-code following: >>>> >>>> set the item delimiter to \ >>>> put what's after the item delimiter into HOLDER >>>> delete char 1 of HOLDER >>>> delete the last char of HOLDER >>>> delete the last char of HOLDER >>>> delete the last char of HOLDER >>>> put "0x" & HOLDER into NUNUM >>>> >>>> at this point "NUNUM" could be alost any length, but that should not >>>> matter unduly. >>>> >>>> Richmond. >>>> >>>> On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote: >>>>> I'm dealing with non-English languages, and JSON data retrieved >>>>> from a >>>>> database comes in with unicode escape sequences like this: Eduardo >>>>> Ba\u00f1uls. >>>>> >>>>> I need to translate those. I can do it by replacing the "\u" with >>>>> "0x" >>>>> and then using numToCodepoint() to get the UTF16 character. But there >>>>> could be many of these in the same string, so I'm looking for a >>>>> one-shot command that might just do them all. I don't think we have >>>>> one. >>>>> >>>>> The alternative is to loop through all the text, getting an offset >>>>> for >>>>> each "\u" and then calculating the number of characters after that to >>>>> use with numToCodepoint(). But will it always be 4 characters in any >>>>> language? >>>>> >>>>> Or is there an easier way? >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Mar 16 04:30:26 2017 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 16 Mar 2017 10:30:26 +0200 Subject: Translating escape sequences In-Reply-To: References: <3045a647-063a-fdd2-f731-f917aac6be52@hyperactivesw.com> <0a0bd294-fab4-2843-ab12-35b2cd61eb94@gmail.com> <15ad2da8e18.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <96f2e3c2-8d80-e2b7-9377-f3a08217f396@gmail.com> Message-ID: Should do. Richmond. On 15/03/17 23:03, Mike Bonner via use-livecode wrote: > does this mean one could replace /u with 0x and then replace uls with empty > and end up with the correct end result? > > On Wed, Mar 15, 2017 at 2:16 PM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Just knock off the last 3, and what is left is what you want. >> >> Richmond. >> >> On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote: >> >>> The problem with the pseudo code is that there's no clear indication of >>> how many characters at the end to preserve. I'm not sure how the libraries >>> deal with that. >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> >>> >>> On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> No; it won't always be 4 characters, here's an admittedly extremely >>>> obscure ancient Sinhala number; >>>> 0x111F4. >>>> >>>> Of course the chances of encountering whacky characters like that is >>>> small, but you'll have to make sure you >>>> can cope with them should they crop up. >>>> >>>> If you look at Eduardo Ba\u00f1uls you will have to strip what comes >>>> after the '\' of the prefix 'u' >>>> and the suffix 'uls' and then you can cope with whatever is left: >>>> >>>> Reasonably pseudo-code following: >>>> >>>> set the item delimiter to \ >>>> put what's after the item delimiter into HOLDER >>>> delete char 1 of HOLDER >>>> delete the last char of HOLDER >>>> delete the last char of HOLDER >>>> delete the last char of HOLDER >>>> put "0x" & HOLDER into NUNUM >>>> >>>> at this point "NUNUM" could be alost any length, but that should not >>>> matter unduly. >>>> >>>> Richmond. >>>> >>>> On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote: >>>> >>>>> I'm dealing with non-English languages, and JSON data retrieved from a >>>>> database comes in with unicode escape sequences like this: Eduardo >>>>> Ba\u00f1uls. >>>>> >>>>> I need to translate those. I can do it by replacing the "\u" with "0x" >>>>> and then using numToCodepoint() to get the UTF16 character. But there >>>>> could be many of these in the same string, so I'm looking for a >>>>> one-shot command that might just do them all. I don't think we have one. >>>>> >>>>> The alternative is to loop through all the text, getting an offset for >>>>> each "\u" and then calculating the number of characters after that to >>>>> use with numToCodepoint(). But will it always be 4 characters in any >>>>> language? >>>>> >>>>> Or is there an easier way? >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Thu Mar 16 04:31:22 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 16 Mar 2017 18:31:22 +1000 Subject: AW: tsneterr: (6) could not resolve host In-Reply-To: <007c01d29d9c$ed143830$c73ca890$@kestner.de> References: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> <007c01d29d9c$ed143830$c73ca890$@kestner.de> Message-ID: <6f7baa90-105d-a5c1-966e-84c124e520ac@techstrategies.com.au> Hi Tiemo, I have not heard of this issue before but will see if I can reproduce it and get back to you. A workaround would be to use the tsNetGetSync function directly so that you can specify the user/pass separately like this: -- local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings put "public" into tSettings["username"] put "myPW" into tSettings["password"] put tsNetGetSync("http://www.myHost/mypath/my.txt", tHeaders, tOutHeaders, tResultCode, tBytes, tSettings) into tResult -- Hope that helps, Cheers, Charles On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote: > Forgot to say: Windows 10 > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Tiemo Hollmann TB via use-livecode > Gesendet: Mittwoch, 15. M?rz 2017 16:00 > An: LiveCode User Liste senden > Cc: Tiemo Hollmann TB > Betreff: tsneterr: (6) could not resolve host > > Hello, > > using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: > public" when trying to access a file in a web server directory with user and > password protection > > put URL "http://public:myPW at www.myHost/mypath/my.txt" into tResult > > when opening the same file in a not pw protected directory, everything is > fine and I get the content of the file > > Testing the same with 8.1 or 9.0 dp 4 it works also with the pw protected > dir, like it should. > > Is this a known issue with tsnet? Any workarounds? > > Thanks > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dave at applicationinsight.com Thu Mar 16 05:39:27 2017 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 16 Mar 2017 09:39:27 +0000 Subject: Help test please? GoLiveNet in v9 Message-ID: <3BA65038-61FD-40D4-9A7C-7032F9711F5F@applicationinsight.com> Works very nicely with LC8.1.3 and 9.0.0(dp6) on mac 10.12.3 Dave From charles at techstrategies.com.au Thu Mar 16 06:10:44 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 16 Mar 2017 20:10:44 +1000 Subject: AW: tsneterr: (6) could not resolve host - can anyone else test this? In-Reply-To: <6f7baa90-105d-a5c1-966e-84c124e520ac@techstrategies.com.au> References: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> <007c01d29d9c$ed143830$c73ca890$@kestner.de> <6f7baa90-105d-a5c1-966e-84c124e520ac@techstrategies.com.au> Message-ID: I have not been able to replicate this issue here, but I am using an older version of Windows. Is there anyone that can try this on various versions of Windows to see if this problem is specific to Win 10? Try typing the following into the message box: put URL "http://test_auth:test_pass at downloads.techstrategies.com.au/test_auth/" If it is successful, you should see "Authentication successful." appear in the message box. Thanks, Charles On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: > Hi Tiemo, > > I have not heard of this issue before but will see if I can reproduce > it and get back to you. > > A workaround would be to use the tsNetGetSync function directly so > that you can specify the user/pass separately like this: > > -- > local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings > put "public" into tSettings["username"] > put "myPW" into tSettings["password"] > put tsNetGetSync("http://www.myHost/mypath/my.txt", tHeaders, > tOutHeaders, tResultCode, tBytes, tSettings) into tResult > -- > > Hope that helps, > > Cheers, > > Charles > > > On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote: >> Forgot to say: Windows 10 >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag >> von Tiemo Hollmann TB via use-livecode >> Gesendet: Mittwoch, 15. M?rz 2017 16:00 >> An: LiveCode User Liste senden >> Cc: Tiemo Hollmann TB >> Betreff: tsneterr: (6) could not resolve host >> >> Hello, >> >> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: >> public" when trying to access a file in a web server directory with >> user and >> password protection >> >> put URL "http://public:myPW at www.myHost/mypath/my.txt" into tResult >> >> when opening the same file in a not pw protected directory, >> everything is >> fine and I get the content of the file >> >> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw >> protected >> dir, like it should. >> >> Is this a known issue with tsnet? Any workarounds? >> >> Thanks >> >> Tiemo >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Thu Mar 16 07:51:39 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 16 Mar 2017 12:51:39 +0100 Subject: tsneterr: (6) could not resolve host - can anyone else test this? In-Reply-To: References: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> <007c01d29d9c$ed143830$c73ca890$@kestner.de> <6f7baa90-105d-a5c1-966e-84c124e520ac@techstrategies.com.au> Message-ID: <90FA1AB2-F411-4AB0-A2E5-90FEA369AA42@m-r-d.de> Tried it here with LC 8.1.3, Win 7 Pro, 64bit -> works LC 8.1.3, Win 10 Pro, 32bit -> works Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 > Am 16.03.2017 um 11:10 schrieb Charles Warwick via use-livecode >: > > I have not been able to replicate this issue here, but I am using an older version of Windows. > > Is there anyone that can try this on various versions of Windows to see if this problem is specific to Win 10? > > Try typing the following into the message box: > > put URL "http://test_auth:test_pass at downloads.techstrategies.com.au/test_auth/ " > > If it is successful, you should see "Authentication successful." appear in the message box. > > Thanks, > > Charles > > > On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: >> Hi Tiemo, >> >> I have not heard of this issue before but will see if I can reproduce it and get back to you. >> >> A workaround would be to use the tsNetGetSync function directly so that you can specify the user/pass separately like this: >> >> -- >> local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings >> put "public" into tSettings["username"] >> put "myPW" into tSettings["password"] >> put tsNetGetSync("http://www.myHost/mypath/my.txt ", tHeaders, tOutHeaders, tResultCode, tBytes, tSettings) into tResult >> -- >> >> Hope that helps, >> >> Cheers, >> >> Charles >> >> >> On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote: >>> Forgot to say: Windows 10 >>> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com ] Im Auftrag >>> von Tiemo Hollmann TB via use-livecode >>> Gesendet: Mittwoch, 15. M?rz 2017 16:00 >>> An: LiveCode User Liste senden > >>> Cc: Tiemo Hollmann TB > >>> Betreff: tsneterr: (6) could not resolve host >>> >>> Hello, >>> >>> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: >>> public" when trying to access a file in a web server directory with user and >>> password protection >>> >>> put URL "http://public:myPW at www.myHost/mypath/my.txt " into tResult >>> >>> when opening the same file in a not pw protected directory, everything is >>> fine and I get the content of the file >>> >>> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw protected >>> dir, like it should. >>> >>> Is this a known issue with tsnet? Any workarounds? >>> >>> Thanks >>> >>> Tiemo >>> >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smaclean at madmansoft.com Thu Mar 16 07:53:20 2017 From: smaclean at madmansoft.com (Stephen MacLean) Date: Thu, 16 Mar 2017 07:53:20 -0400 Subject: SFTP with .PPK file In-Reply-To: <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> Message-ID: <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> Hi Charles, Thank you so much for reply! I converted the key file as you described, however, I?m still getting the error 67 (authentication error) when running the script. Any further help would be greatly appreciated. Best, Steve MacLean > On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode wrote: > > Hi Steve, > > It looks like you are using a SSH private key in PuTTY format (.ppk). tsNet requires it to be in OpenSSH format. > > That is easy to fix though, you can convert the .ppk with PuttyGen. > > To do this, open PuttyGen and load the .ppk file. Then select "Conversions" -> "Export OpenSSH key". > > Apart from that, just make sure that your call to tsNetGet includes the full path of the file you want to download. > > Hope that helps, > > Cheers, > > Charles > > > On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote: >> Well, still no luck in getting it to work, but getting closer? >> >> I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: >> >> on mouseUp >> local tHeaders, tResult, tSettings >> put ?xxxxxxxx" into tSettings["username"] >> put URL "binfile:D:\private.ppk" into tPrivKey >> put tPrivKey into tSettings["ssh_priv_key"] >> tsNetInit >> put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult >> end mouseUp >> >> However, it returns: >> >> tsneterr: (67) Authentication failure >> >> Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. >> >> Any suggestions?? >> >> Thanks, >> >> Steve MacLean >> >>> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode wrote: >>> >>> Hi All, >>> >>> Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. >>> >>> I use WinSCP and can link the connection to the file and can connect fine. >>> >>> In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. >>> >>> Any help would be appreciated. >>> >>> Thanks, >>> >>> Steve MacLean >>> >>> PS: Running 9.0 dp6 Business >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smaclean at madmansoft.com Thu Mar 16 08:24:34 2017 From: smaclean at madmansoft.com (Stephen MacLean) Date: Thu, 16 Mar 2017 08:24:34 -0400 Subject: SFTP with .PPK file In-Reply-To: <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> Message-ID: <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> Hi Charles, One other thing? in looking at the .ppk file, it contains both ?public lines? and "private lines?. All I see in the ssh key file is private. Not sure that make any difference, but thought I?d mention it. Best, Steve > On Mar 16, 2017, at 7:53 AM, Stephen MacLean via use-livecode wrote: > > Hi Charles, > > Thank you so much for reply! > > I converted the key file as you described, however, I?m still getting the error 67 (authentication error) when running the script. > > Any further help would be greatly appreciated. > > Best, > > Steve MacLean > >> On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode wrote: >> >> Hi Steve, >> >> It looks like you are using a SSH private key in PuTTY format (.ppk). tsNet requires it to be in OpenSSH format. >> >> That is easy to fix though, you can convert the .ppk with PuttyGen. >> >> To do this, open PuttyGen and load the .ppk file. Then select "Conversions" -> "Export OpenSSH key". >> >> Apart from that, just make sure that your call to tsNetGet includes the full path of the file you want to download. >> >> Hope that helps, >> >> Cheers, >> >> Charles >> >> >> On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote: >>> Well, still no luck in getting it to work, but getting closer? >>> >>> I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: >>> >>> on mouseUp >>> local tHeaders, tResult, tSettings >>> put ?xxxxxxxx" into tSettings["username"] >>> put URL "binfile:D:\private.ppk" into tPrivKey >>> put tPrivKey into tSettings["ssh_priv_key"] >>> tsNetInit >>> put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult >>> end mouseUp >>> >>> However, it returns: >>> >>> tsneterr: (67) Authentication failure >>> >>> Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. >>> >>> Any suggestions?? >>> >>> Thanks, >>> >>> Steve MacLean >>> >>>> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode wrote: >>>> >>>> Hi All, >>>> >>>> Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. >>>> >>>> I use WinSCP and can link the connection to the file and can connect fine. >>>> >>>> In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. >>>> >>>> Any help would be appreciated. >>>> >>>> Thanks, >>>> >>>> Steve MacLean >>>> >>>> PS: Running 9.0 dp6 Business >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Mar 16 09:06:42 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 16 Mar 2017 14:06:42 +0100 Subject: AW: AW: tsneterr: (6) could not resolve host - can anyone else test this? In-Reply-To: References: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> <007c01d29d9c$ed143830$c73ca890$@kestner.de> <6f7baa90-105d-a5c1-966e-84c124e520ac@techstrategies.com.au> Message-ID: <008701d29e56$29401f90$7bc05eb0$@kestner.de> Hi Charles, this test URL works for me also in 8.1.3 my URL still doesn't works in 8.1.3 (but in 9.0 and older versions) - what happened to tsnet in 8.1.3? your workaround with tsNetGetSync also works with my URL in 8.1.3 - whats the difference under the hood to put URL? interesting results! thanks! Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Charles Warwick via use-livecode Gesendet: Donnerstag, 16. M?rz 2017 11:11 An: use-livecode at lists.runrev.com Cc: Charles Warwick Betreff: Re: AW: tsneterr: (6) could not resolve host - can anyone else test this? I have not been able to replicate this issue here, but I am using an older version of Windows. Is there anyone that can try this on various versions of Windows to see if this problem is specific to Win 10? Try typing the following into the message box: put URL "http://test_auth:test_pass at downloads.techstrategies.com.au/test_auth/" If it is successful, you should see "Authentication successful." appear in the message box. Thanks, Charles On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: > Hi Tiemo, > > I have not heard of this issue before but will see if I can reproduce > it and get back to you. > > A workaround would be to use the tsNetGetSync function directly so > that you can specify the user/pass separately like this: > > -- > local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings put > "public" into tSettings["username"] put "myPW" into > tSettings["password"] put > tsNetGetSync("http://www.myHost/mypath/my.txt", tHeaders, tOutHeaders, > tResultCode, tBytes, tSettings) into tResult > -- > > Hope that helps, > > Cheers, > > Charles > > > On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote: >> Forgot to say: Windows 10 >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag von Tiemo Hollmann TB via use-livecode >> Gesendet: Mittwoch, 15. M?rz 2017 16:00 >> An: LiveCode User Liste senden >> Cc: Tiemo Hollmann TB >> Betreff: tsneterr: (6) could not resolve host >> >> Hello, >> >> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: >> public" when trying to access a file in a web server directory with >> user and password protection >> >> put URL "http://public:myPW at www.myHost/mypath/my.txt" into tResult >> >> when opening the same file in a not pw protected directory, >> everything is fine and I get the content of the file >> >> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw >> protected dir, like it should. >> >> Is this a known issue with tsnet? Any workarounds? >> >> Thanks >> >> Tiemo >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 16 10:17:50 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 16 Mar 2017 09:17:50 -0500 Subject: the screenpixelscale on Microsoft SurfaceBook? In-Reply-To: References: Message-ID: On Mon, Mar 6, 2017 at 1:11 PM, Andre Garzia wrote: > Hey Trevor, > > This is a Surface Pro 4 with Intel HD 520 running latest Windows 10 at > 2736x1284 with 200% display scaling. The screenPixelScale reported is 2 on > LC 8.1.2 > > I can't have my machine go to 3000x2000, sorry. > Thanks Andre. I just came across another odd case and gathered some more diagnostics. LiveCode is reporting that the monitor has a screen pixel scale of 1.25. In reality the system is set to 1.00. I think there was a Windows or video card update that has caused LiveCode to report incorrect screen pixel scale information. I'm gathering information from one other customer and then I'm going to file a report. -- Trevor DeVore Outcome & ScreenSteps www.outcomeapp.io - www.screensteps.com From paul at smarttsoftware.co.uk Thu Mar 16 10:21:33 2017 From: paul at smarttsoftware.co.uk (Paul Richards) Date: Thu, 16 Mar 2017 14:21:33 +0000 Subject: AW: tsneterr: (6) could not resolve host - can anyone else test this? In-Reply-To: References: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> <007c01d29d9c$ed143830$c73ca890$@kestner.de> <6f7baa90-105d-a5c1-966e-84c124e520ac@techstrategies.com.au> Message-ID: LC 8.1.3 - Windows 10 64Bit - Works for me -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Charles Warwick via use-livecode Sent: 16 March 2017 10:11 To: use-livecode at lists.runrev.com Cc: Charles Warwick Subject: Re: AW: tsneterr: (6) could not resolve host - can anyone else test this? I have not been able to replicate this issue here, but I am using an older version of Windows. Is there anyone that can try this on various versions of Windows to see if this problem is specific to Win 10? Try typing the following into the message box: put URL "http://test_auth:test_pass at downloads.techstrategies.com.au/test_auth/" If it is successful, you should see "Authentication successful." appear in the message box. Thanks, Charles On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: > Hi Tiemo, > > I have not heard of this issue before but will see if I can reproduce > it and get back to you. > > A workaround would be to use the tsNetGetSync function directly so > that you can specify the user/pass separately like this: > > -- > local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings put > "public" into tSettings["username"] put "myPW" into > tSettings["password"] put > tsNetGetSync("http://www.myHost/mypath/my.txt", tHeaders, tOutHeaders, > tResultCode, tBytes, tSettings) into tResult > -- > > Hope that helps, > > Cheers, > > Charles > > > On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote: >> Forgot to say: Windows 10 >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag von Tiemo Hollmann TB via use-livecode >> Gesendet: Mittwoch, 15. M?rz 2017 16:00 >> An: LiveCode User Liste senden >> Cc: Tiemo Hollmann TB >> Betreff: tsneterr: (6) could not resolve host >> >> Hello, >> >> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: >> public" when trying to access a file in a web server directory with >> user and password protection >> >> put URL "http://public:myPW at www.myHost/mypath/my.txt" into tResult >> >> when opening the same file in a not pw protected directory, >> everything is fine and I get the content of the file >> >> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw >> protected dir, like it should. >> >> Is this a known issue with tsnet? Any workarounds? >> >> Thanks >> >> Tiemo >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at 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 Thu Mar 16 12:59:56 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 16 Mar 2017 17:59:56 +0100 Subject: AW: AW: tsneterr: (6) could not resolve host - can anyone else test this? In-Reply-To: References: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> <007c01d29d9c$ed143830$c73ca890$@kestner.de> <6f7baa90-105d-a5c1-966e-84c124e520ac@techstrategies.com.au> Message-ID: <009801d29e76$bdeea970$39cbfc50$@kestner.de> Panos from LC solved the mystery. In my URL the password has a special character, which can't be handled in 8.1.2 and 8.1.3 on Windows. When doing urlencode(myPW), it also works in 8.1.3 The why is not known Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Paul Richards via use-livecode Gesendet: Donnerstag, 16. M?rz 2017 15:22 An: How to use LiveCode Cc: Paul Richards Betreff: RE: AW: tsneterr: (6) could not resolve host - can anyone else test this? LC 8.1.3 - Windows 10 64Bit - Works for me -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Charles Warwick via use-livecode Sent: 16 March 2017 10:11 To: use-livecode at lists.runrev.com Cc: Charles Warwick Subject: Re: AW: tsneterr: (6) could not resolve host - can anyone else test this? I have not been able to replicate this issue here, but I am using an older version of Windows. Is there anyone that can try this on various versions of Windows to see if this problem is specific to Win 10? Try typing the following into the message box: put URL "http://test_auth:test_pass at downloads.techstrategies.com.au/test_auth/" If it is successful, you should see "Authentication successful." appear in the message box. Thanks, Charles On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: > Hi Tiemo, > > I have not heard of this issue before but will see if I can reproduce > it and get back to you. > > A workaround would be to use the tsNetGetSync function directly so > that you can specify the user/pass separately like this: > > -- > local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings put > "public" into tSettings["username"] put "myPW" into > tSettings["password"] put > tsNetGetSync("http://www.myHost/mypath/my.txt", tHeaders, tOutHeaders, > tResultCode, tBytes, tSettings) into tResult > -- > > Hope that helps, > > Cheers, > > Charles > > > On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote: >> Forgot to say: Windows 10 >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag von Tiemo Hollmann TB via use-livecode >> Gesendet: Mittwoch, 15. M?rz 2017 16:00 >> An: LiveCode User Liste senden >> Cc: Tiemo Hollmann TB >> Betreff: tsneterr: (6) could not resolve host >> >> Hello, >> >> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: >> public" when trying to access a file in a web server directory with >> user and password protection >> >> put URL "http://public:myPW at www.myHost/mypath/my.txt" into tResult >> >> when opening the same file in a not pw protected directory, >> everything is fine and I get the content of the file >> >> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw >> protected dir, like it should. >> >> Is this a known issue with tsnet? Any workarounds? >> >> Thanks >> >> Tiemo >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Mar 16 15:17:05 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 16 Mar 2017 12:17:05 -0700 Subject: Solved: Re: Help test please? GoLiveNet in v9 In-Reply-To: <3BA65038-61FD-40D4-9A7C-7032F9711F5F@applicationinsight.com> References: <3BA65038-61FD-40D4-9A7C-7032F9711F5F@applicationinsight.com> Message-ID: <9d716ba4-0fad-4ecf-1c22-625cc8729a85@fourthworld.com> Many thanks to all of you who helped test LiveNet. Much appreciated. The problem appears to be specific to LC on Linux, and thanks to Charles Warwick's excellent support of tsNet he was able to deliver a possible fix, which I've confirmed works: http://quality.livecode.com/show_bug.cgi?id=19026 I would imagine this fix will be included in the next v9 build, so it looks like the source of issue is resolved. So thanks again to everyone here who helped, and esp. to Charles for stepping up with diagnostics and a quick fix. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mikedoub at gmail.com Thu Mar 16 15:36:28 2017 From: mikedoub at gmail.com (Michael Doub) Date: Thu, 16 Mar 2017 15:36:28 -0400 Subject: Problem with converting time Message-ID: <1da1b379-43e5-d850-5d98-adcae4352a8e@gmail.com> I am getting different answers based on environment when trying to convert EPOC seconds to dateitems or internet date. On my mac I get the expected result but on a HostM server I get something totally different. Does any one have a conversion function that does not use the livecode's convert function that they would be willing to share? Regards, Mike From ambassador at fourthworld.com Thu Mar 16 16:05:06 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 16 Mar 2017 13:05:06 -0700 Subject: Problem with converting time In-Reply-To: <1da1b379-43e5-d850-5d98-adcae4352a8e@gmail.com> References: <1da1b379-43e5-d850-5d98-adcae4352a8e@gmail.com> Message-ID: <681daec9-42f3-0edb-bfa4-332ac47cac73@fourthworld.com> Michael Doub wrote: > I am getting different answers based on environment when trying to > convert EPOC seconds to dateitems or internet date. On my mac I get > the expected result but on a HostM server I get something totally > different. How different? > Does any one have a conversion function that does not use the > livecode's convert function that they would be willing to share? The seconds are usually a very good choice for their compactness and ease of calculation, and more so because the value we get is in GMT based on the offset from host OS. What this should mean is that you can convert values obtained from "the seconds" and get a good date/time regardless of which time zone you're in. So seconds are usually ideal (along with "internet date") for network applications such as the one you're working on. But for the conversion to take your local system into account, you'll need to do the conversion locally. If you're doing the conversion on the server, the date/time will reflect the time zone settings in the server OS. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From terry.judd at unimelb.edu.au Fri Mar 17 03:04:49 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 17 Mar 2017 07:04:49 +0000 Subject: HTML5 export broken in 9.0.0-dp-6? Message-ID: <7EF66F11-43A4-4374-B4F4-F97A20E916D7@unimelb.edu.au> Is it just me or is HTML5 export not working in 9.0.0-dp-6? A stack that worked in 8.1.2 just a few minutes ago now throws an exception... To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking ...and I seem to get the same thing event with a brand new stack just containing a single button. In the past I only saw this error when I accidently included something in the stack that it didn?t like (like a widget or a substack). Any ideas? Regards, Terry... From richmondmathewson at gmail.com Fri Mar 17 03:43:40 2017 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 17 Mar 2017 09:43:40 +0200 Subject: Android application class Message-ID: So, I tried to build a standalone for Android (well, better late than never) and got a happy little message: "could not compile application class" this with LC 8.1.3 on Xubuntu 14.04 cannot work out much from the standalone settings stack . . . Richmond. From ali.lloyd at livecode.com Fri Mar 17 04:04:00 2017 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 17 Mar 2017 08:04:00 +0000 Subject: HTML5 export broken in 9.0.0-dp-6? In-Reply-To: <7EF66F11-43A4-4374-B4F4-F97A20E916D7@unimelb.edu.au> References: <7EF66F11-43A4-4374-B4F4-F97A20E916D7@unimelb.edu.au> Message-ID: Hi Terry, This is a known issue, flagged in the release email (but not the release notes unfortunately). Here is the bug: http://quality.livecode.com/show_bug.cgi?id=19399 On Fri, Mar 17, 2017 at 7:04 AM Terry Judd via use-livecode < use-livecode at lists.runrev.com> wrote: > Is it just me or is HTML5 export not working in 9.0.0-dp-6? A stack that > worked in 8.1.2 just a few minutes ago now throws an exception... > > To use dlopen, you need to use Emscripten's linking support, see > https://github.com/kripken/emscripten/wiki/Linking > > ...and I seem to get the same thing event with a brand new stack just > containing a single button. In the past I only saw this error when I > accidently included something in the stack that it didn?t like (like a > widget or a substack). Any ideas? > > Regards, > > Terry... > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peter.brett at livecode.com Fri Mar 17 04:04:11 2017 From: peter.brett at livecode.com (Peter TB Brett) Date: Fri, 17 Mar 2017 08:04:11 +0000 Subject: HTML5 export broken in 9.0.0-dp-6? In-Reply-To: <7EF66F11-43A4-4374-B4F4-F97A20E916D7@unimelb.edu.au> References: <7EF66F11-43A4-4374-B4F4-F97A20E916D7@unimelb.edu.au> Message-ID: <7c4dff50-4a9a-fc1b-5790-79623e769dbd@livecode.com> On 17/03/2017 07:04, Terry Judd via use-livecode wrote: > Is it just me or is HTML5 export not working in 9.0.0-dp-6? A stack > that worked in 8.1.2 just a few minutes ago now throws an > exception... > > To use dlopen, you need to use Emscripten's linking support, see > https://github.com/kripken/emscripten/wiki/Linking > > ...and I seem to get the same thing event with a brand new stack > just containing a single button. In the past I only saw this error > when I accidently included something in the stack that it didn?t like > (like a widget or a substack). Any ideas? It's not just you! It's a known issue in 9.0 DP 6. From the release announcement: > HTML5 standalones built using this release are not functional. See > bug http://quality.livecode.com/show_bug.cgi?id=19399 for more > details. Peter -- Dr Peter Brett lcb-mode for Emacs: https://github.com/peter-b/lcb-mode From charles at techstrategies.com.au Fri Mar 17 04:31:18 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Fri, 17 Mar 2017 18:31:18 +1000 Subject: SFTP with .PPK file In-Reply-To: <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> Message-ID: <3608f172-55b3-83a8-05ff-110cea2db9da@techstrategies.com.au> Hi Steve, The tsNet command only requires the SSH private key, so that is ok. I will test again here to make sure there is nothing else going on in LC 9.0 DP6.... Just to check though, I assume your private key does not require a passphrase? Another thing to try is to download the following simple stack: https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode Run that stack at the same time as your own, and click "Start Debug" before you try make the SSH connection. It should provide some additional debug information that may shed more light on what is actually happening. Regards, Charles On 16/03/2017 10:24 PM, Stephen MacLean via use-livecode wrote: > Hi Charles, > > One other thing? in looking at the .ppk file, it contains both ?public lines? and "private lines?. All I see in the ssh key file is private. > > Not sure that make any difference, but thought I?d mention it. > > Best, > > Steve > >> On Mar 16, 2017, at 7:53 AM, Stephen MacLean via use-livecode wrote: >> >> Hi Charles, >> >> Thank you so much for reply! >> >> I converted the key file as you described, however, I?m still getting the error 67 (authentication error) when running the script. >> >> Any further help would be greatly appreciated. >> >> Best, >> >> Steve MacLean >> >>> On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode wrote: >>> >>> Hi Steve, >>> >>> It looks like you are using a SSH private key in PuTTY format (.ppk). tsNet requires it to be in OpenSSH format. >>> >>> That is easy to fix though, you can convert the .ppk with PuttyGen. >>> >>> To do this, open PuttyGen and load the .ppk file. Then select "Conversions" -> "Export OpenSSH key". >>> >>> Apart from that, just make sure that your call to tsNetGet includes the full path of the file you want to download. >>> >>> Hope that helps, >>> >>> Cheers, >>> >>> Charles >>> >>> >>> On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote: >>>> Well, still no luck in getting it to work, but getting closer? >>>> >>>> I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: >>>> >>>> on mouseUp >>>> local tHeaders, tResult, tSettings >>>> put ?xxxxxxxx" into tSettings["username"] >>>> put URL "binfile:D:\private.ppk" into tPrivKey >>>> put tPrivKey into tSettings["ssh_priv_key"] >>>> tsNetInit >>>> put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult >>>> end mouseUp >>>> >>>> However, it returns: >>>> >>>> tsneterr: (67) Authentication failure >>>> >>>> Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. >>>> >>>> Any suggestions?? >>>> >>>> Thanks, >>>> >>>> Steve MacLean >>>> >>>>> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode wrote: >>>>> >>>>> Hi All, >>>>> >>>>> Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. >>>>> >>>>> I use WinSCP and can link the connection to the file and can connect fine. >>>>> >>>>> In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. >>>>> >>>>> Any help would be appreciated. >>>>> >>>>> Thanks, >>>>> >>>>> Steve MacLean >>>>> >>>>> PS: Running 9.0 dp6 Business >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Mar 17 04:49:10 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 17 Mar 2017 09:49:10 +0100 Subject: AW: AW: tsneterr: (6) could not resolve host - can anyone else test this? In-Reply-To: <009801d29e76$bdeea970$39cbfc50$@kestner.de> References: <007001d29d9c$d29058e0$77b10aa0$@kestner.de> <007c01d29d9c$ed143830$c73ca890$@kestner.de> <6f7baa90-105d-a5c1-966e-84c124e520ac@techstrategies.com.au> <009801d29e76$bdeea970$39cbfc50$@kestner.de> Message-ID: <003401d29efb$592d0bf0$0b8723d0$@kestner.de> FYI. I have used the "#" sign in a URL PW, which is not allowed in a URL string, as Charles pointed out. Only because of an incorrect handling in the curl library as part of tsnet, my program has worked over the years. Urlencode(myPW) will do it for the future. So, better never use "#" in a URL! Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB via use-livecode Gesendet: Donnerstag, 16. M?rz 2017 18:00 An: 'How to use LiveCode' Cc: Tiemo Hollmann TB Betreff: AW: AW: tsneterr: (6) could not resolve host - can anyone else test this? Panos from LC solved the mystery. In my URL the password has a special character, which can't be handled in 8.1.2 and 8.1.3 on Windows. When doing urlencode(myPW), it also works in 8.1.3 The why is not known Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Paul Richards via use-livecode Gesendet: Donnerstag, 16. M?rz 2017 15:22 An: How to use LiveCode Cc: Paul Richards Betreff: RE: AW: tsneterr: (6) could not resolve host - can anyone else test this? LC 8.1.3 - Windows 10 64Bit - Works for me -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Charles Warwick via use-livecode Sent: 16 March 2017 10:11 To: use-livecode at lists.runrev.com Cc: Charles Warwick Subject: Re: AW: tsneterr: (6) could not resolve host - can anyone else test this? I have not been able to replicate this issue here, but I am using an older version of Windows. Is there anyone that can try this on various versions of Windows to see if this problem is specific to Win 10? Try typing the following into the message box: put URL "http://test_auth:test_pass at downloads.techstrategies.com.au/test_auth/" If it is successful, you should see "Authentication successful." appear in the message box. Thanks, Charles On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: > Hi Tiemo, > > I have not heard of this issue before but will see if I can reproduce > it and get back to you. > > A workaround would be to use the tsNetGetSync function directly so > that you can specify the user/pass separately like this: > > -- > local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings put > "public" into tSettings["username"] put "myPW" into > tSettings["password"] put > tsNetGetSync("http://www.myHost/mypath/my.txt", tHeaders, tOutHeaders, > tResultCode, tBytes, tSettings) into tResult > -- > > Hope that helps, > > Cheers, > > Charles > > > On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote: >> Forgot to say: Windows 10 >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im >> Auftrag von Tiemo Hollmann TB via use-livecode >> Gesendet: Mittwoch, 15. M?rz 2017 16:00 >> An: LiveCode User Liste senden >> Cc: Tiemo Hollmann TB >> Betreff: tsneterr: (6) could not resolve host >> >> Hello, >> >> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host: >> public" when trying to access a file in a web server directory with >> user and password protection >> >> put URL "http://public:myPW at www.myHost/mypath/my.txt" into tResult >> >> when opening the same file in a not pw protected directory, >> everything is fine and I get the content of the file >> >> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw >> protected dir, like it should. >> >> Is this a known issue with tsnet? Any workarounds? >> >> Thanks >> >> Tiemo >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Fri Mar 17 05:04:09 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Fri, 17 Mar 2017 19:04:09 +1000 Subject: SFTP with .PPK file In-Reply-To: <3608f172-55b3-83a8-05ff-110cea2db9da@techstrategies.com.au> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> <3608f172-55b3-83a8-05ff-110cea2db9da@techstrategies.com.au> Message-ID: Hi Steve, My apologies... there is a mistake in the documentation for tsNet which I only just noticed. The array element for the SSH private key should be tSettings["ssh_private_key"], not tSettings["ssh_priv_key"]. So if you change the following line: put tPrivKey into tSettings["ssh_priv_key"] to: put tPrivKey into tSettings["ssh_private_key"] you should be right to go! (I will get this fixed in the documentation for the next version) Best Regards, Charles On 17/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: > Hi Steve, > > The tsNet command only requires the SSH private key, so that is ok. > > I will test again here to make sure there is nothing else going on in > LC 9.0 DP6.... > > Just to check though, I assume your private key does not require a > passphrase? > > Another thing to try is to download the following simple stack: > > https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode > > Run that stack at the same time as your own, and click "Start Debug" > before you try make the SSH connection. > > It should provide some additional debug information that may shed more > light on what is actually happening. > > Regards, > > Charles > > > On 16/03/2017 10:24 PM, Stephen MacLean via use-livecode wrote: >> Hi Charles, >> >> One other thing? in looking at the .ppk file, it contains both >> ?public lines? and "private lines?. All I see in the ssh key file is >> private. >> >> Not sure that make any difference, but thought I?d mention it. >> >> Best, >> >> Steve >> >>> On Mar 16, 2017, at 7:53 AM, Stephen MacLean via use-livecode >>> wrote: >>> >>> Hi Charles, >>> >>> Thank you so much for reply! >>> >>> I converted the key file as you described, however, I?m still >>> getting the error 67 (authentication error) when running the script. >>> >>> Any further help would be greatly appreciated. >>> >>> Best, >>> >>> Steve MacLean >>> >>>> On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode >>>> wrote: >>>> >>>> Hi Steve, >>>> >>>> It looks like you are using a SSH private key in PuTTY format >>>> (.ppk). tsNet requires it to be in OpenSSH format. >>>> >>>> That is easy to fix though, you can convert the .ppk with PuttyGen. >>>> >>>> To do this, open PuttyGen and load the .ppk file. Then select >>>> "Conversions" -> "Export OpenSSH key". >>>> >>>> Apart from that, just make sure that your call to tsNetGet includes >>>> the full path of the file you want to download. >>>> >>>> Hope that helps, >>>> >>>> Cheers, >>>> >>>> Charles >>>> >>>> >>>> On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote: >>>>> Well, still no luck in getting it to work, but getting closer? >>>>> >>>>> I found a sample file linked to on livecode.com >>>>> . Modifying it to use the key file, I have: >>>>> >>>>> on mouseUp >>>>> local tHeaders, tResult, tSettings >>>>> put ?xxxxxxxx" into tSettings["username"] >>>>> put URL "binfile:D:\private.ppk" into tPrivKey >>>>> put tPrivKey into tSettings["ssh_priv_key"] >>>>> tsNetInit >>>>> put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, >>>>> "transferComplete", tSettings) into tResult >>>>> end mouseUp >>>>> >>>>> However, it returns: >>>>> >>>>> tsneterr: (67) Authentication failure >>>>> >>>>> Again, I can access the sftp site with no problems using the >>>>> WinSCP ftp client and the key file. >>>>> >>>>> Any suggestions?? >>>>> >>>>> Thanks, >>>>> >>>>> Steve MacLean >>>>> >>>>>> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode >>>>>> wrote: >>>>>> >>>>>> Hi All, >>>>>> >>>>>> Looking to use tsNet to connect to a SFTP server that uses >>>>>> username and a private key instead of a password. The private key >>>>>> is contained in a file. >>>>>> >>>>>> I use WinSCP and can link the connection to the file and can >>>>>> connect fine. >>>>>> >>>>>> In LC, I?ve set the CABundle to the file, but am not sure this is >>>>>> how it?s supposed to work. Getting an auth error when doing >>>>>> tsNetGet. >>>>>> >>>>>> Any help would be appreciated. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Steve MacLean >>>>>> >>>>>> PS: Running 9.0 dp6 Business >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Fri Mar 17 05:18:52 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 17 Mar 2017 09:18:52 +0000 Subject: HTML5 export broken in 9.0.0-dp-6? In-Reply-To: References: <7EF66F11-43A4-4374-B4F4-F97A20E916D7@unimelb.edu.au> Message-ID: OK, thanks. I?ll try an earlier DP. Regards, Terry... On 17/03/2017 7:04 pm, "use-livecode on behalf of Ali Lloyd via use-livecode" wrote: Hi Terry, This is a known issue, flagged in the release email (but not the release notes unfortunately). Here is the bug: http://quality.livecode.com/show_bug.cgi?id=19399 On Fri, Mar 17, 2017 at 7:04 AM Terry Judd via use-livecode < use-livecode at lists.runrev.com> wrote: > Is it just me or is HTML5 export not working in 9.0.0-dp-6? A stack that > worked in 8.1.2 just a few minutes ago now throws an exception... > > To use dlopen, you need to use Emscripten's linking support, see > https://github.com/kripken/emscripten/wiki/Linking > > ...and I seem to get the same thing event with a brand new stack just > containing a single button. In the past I only saw this error when I > accidently included something in the stack that it didn?t like (like a > widget or a substack). Any ideas? > > Regards, > > Terry... > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mikedoub at gmail.com Fri Mar 17 08:46:18 2017 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 17 Mar 2017 08:46:18 -0400 Subject: Problem with converting time In-Reply-To: <681daec9-42f3-0edb-bfa4-332ac47cac73@fourthworld.com> References: <1da1b379-43e5-d850-5d98-adcae4352a8e@gmail.com> <681daec9-42f3-0edb-bfa4-332ac47cac73@fourthworld.com> Message-ID: time = 1489755600 Mac: dateitems = 2017,3,17,9,0,0,6 server: dateitems = 2017,3,17,12,0,0,6 Code: get time convertit to dateitems I don't understand how the local time comes into play when converting a constant number of seconds. The resulting date should be a constant as well. What am I missing? -= Mike On 3/16/17 4:05 PM, Richard Gaskin via use-livecode wrote: > Michael Doub wrote: > > > I am getting different answers based on environment when trying to > > convert EPOC seconds to dateitems or internet date. On my mac I get > > the expected result but on a HostM server I get something totally > > different. > > How different? > > > Does any one have a conversion function that does not use the > > livecode's convert function that they would be willing to share? > > The seconds are usually a very good choice for their compactness and > ease of calculation, and more so because the value we get is in GMT > based on the offset from host OS. > > What this should mean is that you can convert values obtained from > "the seconds" and get a good date/time regardless of which time zone > you're in. > > So seconds are usually ideal (along with "internet date") for network > applications such as the one you're working on. > > But for the conversion to take your local system into account, you'll > need to do the conversion locally. > > If you're doing the conversion on the server, the date/time will > reflect the time zone settings in the server OS. > From mikedoub at gmail.com Fri Mar 17 08:56:02 2017 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 17 Mar 2017 08:56:02 -0400 Subject: Problem with converting time In-Reply-To: References: <1da1b379-43e5-d850-5d98-adcae4352a8e@gmail.com> <681daec9-42f3-0edb-bfa4-332ac47cac73@fourthworld.com> Message-ID: <9186c5e5-cd22-5021-e93c-30e8484051e4@gmail.com> Richard here is another example: time = 1489752000 mac: dateitems = 2017,3,17,8,0,0,6 server: dateitems = 2017,3,17,12,0,0,6 I just wanted to double check that I was showing you good comparison since I am copying from multiple windows of debug output. -= Mike On 3/17/17 8:46 AM, Michael Doub wrote: > > time = 1489755600 > > Mac: dateitems = 2017,3,17,9,0,0,6 > server: dateitems = 2017,3,17,12,0,0,6 > > Code: get time > convertit to dateitems > > I don't understand how the local time comes into play when converting > a constant number of seconds. The resulting date should be a constant > as well. > > What am I missing? > > -= Mike > > > On 3/16/17 4:05 PM, Richard Gaskin via use-livecode wrote: >> Michael Doub wrote: >> >> > I am getting different answers based on environment when trying to >> > convert EPOC seconds to dateitems or internet date. On my mac I get >> > the expected result but on a HostM server I get something totally >> > different. >> >> How different? >> >> > Does any one have a conversion function that does not use the >> > livecode's convert function that they would be willing to share? >> >> The seconds are usually a very good choice for their compactness and >> ease of calculation, and more so because the value we get is in GMT >> based on the offset from host OS. >> >> What this should mean is that you can convert values obtained from >> "the seconds" and get a good date/time regardless of which time zone >> you're in. >> >> So seconds are usually ideal (along with "internet date") for network >> applications such as the one you're working on. >> >> But for the conversion to take your local system into account, you'll >> need to do the conversion locally. >> >> If you're doing the conversion on the server, the date/time will >> reflect the time zone settings in the server OS. >> > From MikeKerner at roadrunner.com Fri Mar 17 09:00:00 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 17 Mar 2017 09:00:00 -0400 Subject: (off) dropbox down Message-ID: For everyone who does anything with dropbox, it's been down since at least 2AM EDT. -- 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 smaclean at madmansoft.com Fri Mar 17 09:36:29 2017 From: smaclean at madmansoft.com (Stephen MacLean) Date: Fri, 17 Mar 2017 09:36:29 -0400 Subject: SFTP with .PPK file In-Reply-To: References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> <3608f172-55b3-83a8-05ff-110cea2db9da@techstrategies.com.au> Message-ID: <999C65B0-06A4-4275-AA01-D6DE9ED40DE8@madmansoft.com> Hi Charles, Again, thank you for all your help!! I made the change below, and indeed didn?t get the error any more. However, I still wasn?t getting anything returned. I ran your debug stack along side it and got this: Hostname in DNS cache was stale, zapped Trying xx.xx.xx.xx... TCP_NODELAY set Connected to secure.xxxxxxxxxx.us (xx.xx.xx.xx) port 22 (#3) SSH MD5 fingerprint: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx SSH authentication methods available: publickey Using SSH private key file '-----BEGIN RSA PRIVATE KEY?? -----END RSA PRIVATE KEY----- ' SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file Not sure about were to go from here? I redid the export of the .ppk in PuttyGen and still get the same thing. There is no password protecting the key. Any further help would be greatly appreciated. Best Regards, Steve MacLean > On Mar 17, 2017, at 5:04 AM, Charles Warwick via use-livecode wrote: > > Hi Steve, > > My apologies... there is a mistake in the documentation for tsNet which I only just noticed. > > The array element for the SSH private key should be tSettings["ssh_private_key"], not tSettings["ssh_priv_key"]. > > So if you change the following line: > > put tPrivKey into tSettings["ssh_priv_key"] > > to: > > put tPrivKey into tSettings["ssh_private_key"] > > you should be right to go! > > (I will get this fixed in the documentation for the next version) > > Best Regards, > > Charles > > > On 17/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: >> Hi Steve, >> >> The tsNet command only requires the SSH private key, so that is ok. >> >> I will test again here to make sure there is nothing else going on in LC 9.0 DP6.... >> >> Just to check though, I assume your private key does not require a passphrase? >> >> Another thing to try is to download the following simple stack: >> >> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode >> >> Run that stack at the same time as your own, and click "Start Debug" before you try make the SSH connection. >> >> It should provide some additional debug information that may shed more light on what is actually happening. >> >> Regards, >> >> Charles >> >> >> On 16/03/2017 10:24 PM, Stephen MacLean via use-livecode wrote: >>> Hi Charles, >>> >>> One other thing? in looking at the .ppk file, it contains both ?public lines? and "private lines?. All I see in the ssh key file is private. >>> >>> Not sure that make any difference, but thought I?d mention it. >>> >>> Best, >>> >>> Steve >>> >>>> On Mar 16, 2017, at 7:53 AM, Stephen MacLean via use-livecode wrote: >>>> >>>> Hi Charles, >>>> >>>> Thank you so much for reply! >>>> >>>> I converted the key file as you described, however, I?m still getting the error 67 (authentication error) when running the script. >>>> >>>> Any further help would be greatly appreciated. >>>> >>>> Best, >>>> >>>> Steve MacLean >>>> >>>>> On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode wrote: >>>>> >>>>> Hi Steve, >>>>> >>>>> It looks like you are using a SSH private key in PuTTY format (.ppk). tsNet requires it to be in OpenSSH format. >>>>> >>>>> That is easy to fix though, you can convert the .ppk with PuttyGen. >>>>> >>>>> To do this, open PuttyGen and load the .ppk file. Then select "Conversions" -> "Export OpenSSH key". >>>>> >>>>> Apart from that, just make sure that your call to tsNetGet includes the full path of the file you want to download. >>>>> >>>>> Hope that helps, >>>>> >>>>> Cheers, >>>>> >>>>> Charles >>>>> >>>>> >>>>> On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote: >>>>>> Well, still no luck in getting it to work, but getting closer? >>>>>> >>>>>> I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: >>>>>> >>>>>> on mouseUp >>>>>> local tHeaders, tResult, tSettings >>>>>> put ?xxxxxxxx" into tSettings["username"] >>>>>> put URL "binfile:D:\private.ppk" into tPrivKey >>>>>> put tPrivKey into tSettings["ssh_priv_key"] >>>>>> tsNetInit >>>>>> put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult >>>>>> end mouseUp >>>>>> >>>>>> However, it returns: >>>>>> >>>>>> tsneterr: (67) Authentication failure >>>>>> >>>>>> Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. >>>>>> >>>>>> Any suggestions?? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Steve MacLean >>>>>> >>>>>>> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode wrote: >>>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. >>>>>>> >>>>>>> I use WinSCP and can link the connection to the file and can connect fine. >>>>>>> >>>>>>> In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. >>>>>>> >>>>>>> Any help would be appreciated. >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Steve MacLean >>>>>>> >>>>>>> PS: Running 9.0 dp6 Business >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Fri Mar 17 09:37:01 2017 From: skiplondon at gmail.com (skiplondon at gmail.com) Date: Fri, 17 Mar 2017 09:37:01 -0400 Subject: (off) dropbox down In-Reply-To: References: Message-ID: <58cbe68c.b02b9d0a.c6cf2.2734@mx.google.com> I am not seeing the same problem? looks like it is functioning to me. SKIP Sent from Mail for Windows 10 From: Mike Kerner via use-livecode Sent: Friday, March 17, 2017 9:01 AM To: How to use LiveCode Cc: Mike Kerner Subject: (off) dropbox down For everyone who does anything with dropbox, it's been down since at least 2AM EDT. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Mar 17 09:50:42 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 17 Mar 2017 09:50:42 -0400 Subject: (off) dropbox down In-Reply-To: <58cbe68c.b02b9d0a.c6cf2.2734@mx.google.com> References: <58cbe68c.b02b9d0a.c6cf2.2734@mx.google.com> Message-ID: See their twitter account. On Fri, Mar 17, 2017 at 9:37 AM, Skip via use-livecode < use-livecode at lists.runrev.com> wrote: > I am not seeing the same problem? looks like it is functioning to me. > > SKIP > > Sent from Mail for Windows 10 > > From: Mike Kerner via use-livecode > Sent: Friday, March 17, 2017 9:01 AM > To: How to use LiveCode > Cc: Mike Kerner > Subject: (off) dropbox down > > For everyone who does anything with dropbox, it's been down since at least > 2AM EDT. > > -- > 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 ambassador at fourthworld.com Fri Mar 17 10:24:19 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 17 Mar 2017 07:24:19 -0700 Subject: (off) dropbox down In-Reply-To: References: Message-ID: <3062e9c4-9a98-0911-0374-7fe374e21b84@fourthworld.com> Mike Kerner wrote: > For everyone who does anything with dropbox, it's been down since at > least 2AM EDT. For this morning: Network outages for popular services can often be tracked using third-party tools. Searching Google for "is dropbox down" led me to this report confirming that many others have reported similar issues with Dropbox today: http://downdetector.com/status/dropbox For this afternoon: Nextcloud - can't say enough good things about it. Free and open source, available here: https://nextcloud.com/ [Pardon the long pitch, but it's a free package and a really good one:] Ever since I started using it I've stopped using Dropbox, Google Drive, and other services I'd used in the past. Why? Better sync, more flexible options, and completely under my own control all the way down to how much storage space I want. Nextcloud is a PHP package that installs under Apache. As such it's not yet an end-user consumer product (a partnership with Western Digital is in the process of producing one), but is very well suited for anyone comfortable with setting up Apache. Dual-licensed like LiveCode, the GPL edition is probably more than adequate for the needs of most readers here (though the Enterprise edition has some components that may be worth considering if you're running a larger business). You install Nextcloud on any VPS or dedicated server, and once installed you're limited only by your server's disk capacity. You can set up any number of user accounts, establish disk quotas for them if needed, and share files between them or even publicly. You can sync any number of folders, and synced folders maintain versions when files change so you can revert to any earlier version at any time. Nextcloud has native clients for Mac, Windows, Linux, iOS, and Android. I originally tried it as a solution for syncing my LiveCode Plugins folder across all the machines I work on, and as the only option with native clients for all three OS families that alone made it an instant favorite. Since then I've discovered that it includes a considerable number of apps, included an embedded version of LibreOffice, contact, photo management, etc., with more available from their third-party collection. I had the pleasure of meeting the project founder and director, Frank Karlitschek, at the SoCal Linux Expo a couple weeks ago, along with the project's community manager and head of marketing, Jos Poortvliet. Both fun-loving, hard-working people, committed to the vision of putting people back in control of their cloud systems. Until they get a turnkey consumer device shipping, Nextcloud may not be for everyone just yet. But for developers in an increasingly interconnected world that already has us configuring Apache, Nextcloud can be a very good solution for cloud storage and more. If nothing else, consider: When a public cloud service like Dropbox goes down, your only recourse is to wait and pray. If your Nextcloud server goes down (and mine never has in the many years I've been running it), chances are you'll just reboot and be back in business in minutes. -- 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 Fri Mar 17 12:19:24 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 17 Mar 2017 09:19:24 -0700 Subject: Problem with converting time In-Reply-To: References: <1da1b379-43e5-d850-5d98-adcae4352a8e@gmail.com> <681daec9-42f3-0edb-bfa4-332ac47cac73@fourthworld.com> Message-ID: On 03/17/2017 05:46 AM, Michael Doub via use-livecode wrote: > time = 1489755600 > > Mac: dateitems = 2017,3,17,9,0,0,6 > server: dateitems = 2017,3,17,12,0,0,6 > > Code: get time > convertit to dateitems > > I don't understand how the local time comes into play when converting a > constant number of seconds. The resulting date should be a constant as > well. > > What am I missing? That seems reasonable to me. I haven't been following this discussion "get the time" will get a value based on the system's local time zone, so what you're thinking of as a constant is actually dependent on the system location. It looks to me like the server is three time zones away from the mac. If you don't want time zones to enter into the calculations get the internet date convert it to dateitems -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Fri Mar 17 12:44:06 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 17 Mar 2017 09:44:06 -0700 Subject: Problem with converting time In-Reply-To: References: Message-ID: <1e1a9ae0-aaef-0aef-7d9b-91dc2b366f27@fourthworld.com> Michael Doub wrote: > time = 1489755600 > Mac: dateitems = 2017,3,17,9,0,0,6 > server: dateitems = 2017,3,17,12,0,0,6 > > Code: get time > convertit to dateitems > > Richard here is another example: > time = 1489752000 > mac: dateitems = 2017,3,17,8,0,0,6 > server: dateitems = 2017,3,17,12,0,0,6 > > I just wanted to double check that I was showing you good comparison > since I am copying from multiple windows of debug output. > > I don't understand how the local time comes into play when converting > a constant number of seconds. The resulting date should be a > constant as well. > > What am I missing? The beauty of "the seconds" is that the value you get is in GMT, regardless of where the machine is at the moment that value of obtained. It does the offset according to the locale settings on the local machine. "The seconds" and "the internet date" are the only two forms that take local time zone settings into account. The benefit with this approach is that either can be used in applications where usage may span time zones but you need to maintain time stamps that will work across any time zones. For example, suppose I'm in Los Angeles and I share a server app with one user in New York, another in Brisbane, and another in Edinburgh. GMT offsets for each are: Edinburgh: 0 New York: -4h Los Angeles: -7h Brisbane: +10h (they're across the International Dateline) The "internet date" format reflects this explicitly, noting the GMT offset at the end of the string it returns: Fri, 17 Mar 2017 09:09:03 -0700 But "the seconds" of course is just an integer, so while the GMT offset has also been accounted for it's less evident. If all four of us get "the seconds" at the same moment, the value we get will be the same, in GMT time. But since only one of us is actually in the GMT time zone, how does it know? That's where the local system settings come into play. When *obtaining* either "the seconds" or "the internet date", local time zone is used to create a value that can be understood globally. When *converting* either "the seconds" or "the internet date", LC uses time conversion routines dependent on the system locale settings of the machine where the conversion is taking place. With "the internet date" the time zone is explicitly included, so it adjusts from that GMT offset to bring it into alignment with the GMT offset in the local OS. With "the seconds", the value is already adjusted to be GMT, so conversion adjusts it again for the local settings to deliver an accurate representation of that moment in local time. In the example above, all four users would get the same value from querying "the seconds" at the same moment, no matter where they are in the world. And when my software needs to display the date and/or time in human-readable form, the "convert" command takes local settings into account to deliver an accurate representation that makes sense in local time. So if I modify a record right now, in my system it'll show March 17 at 9:18 AM. But when my Brisbane use sees the modification date that I've stored using "the seconds", he'll see March 18 at 2:18 AM, which is the same global moment. In short: The key to getting accurate reflections of time is to store either "the seconds" or "the internet date" on the server (or really, anywhere timestamps may be shared across time zones), and then do any conversions needed for human readability locally. If you do a conversion from either of those two formats on the server to any other format, the result will be correct for the server's locale, but unless you're nearby probably not correct for you. Quick Exercise: It took me a while (and some experimentation) to appreciate that "the seconds" reflects GMT just as "the internet date" does, something I learned from Sarah Reichelt back in the day. One quick way to verify this is to check while changing your local machine's Date and Time settings: Set to Los Angeles: 1489768020 5 seconds later, Set to Montreal: 1489768025 10 seconds after that, Set to London: 1489768035 Except for the few seconds it took me to click on my Locale map in my Control Panel, the numbers are effectively all the same. Once I became confident with that, I've used it for everything on servers ever since (except logging - I like the built-in readability of "internet date" in logs). -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Fri Mar 17 13:42:59 2017 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 17 Mar 2017 18:42:59 +0100 Subject: (off) dropbox down In-Reply-To: <3062e9c4-9a98-0911-0374-7fe374e21b84@fourthworld.com> References: <3062e9c4-9a98-0911-0374-7fe374e21b84@fourthworld.com> Message-ID: Maybe this all had to do with this in some way? https://www.ripe.net/support/service-announcements/reverse-dns-issue-for-some-delegations-in-the-ripe-ncc-service-region > Am 17.03.2017 um 15:24 schrieb Richard Gaskin via use-livecode >: > > Mike Kerner wrote: > > > For everyone who does anything with dropbox, it's been down since at > > least 2AM EDT. > > For this morning: > > Network outages for popular services can often be tracked using third-party tools. Searching Google for "is dropbox down" led me to this report confirming that many others have reported similar issues with Dropbox today: > > http://downdetector.com/status/dropbox > > > For this afternoon: > > Nextcloud - can't say enough good things about it. Free and open source, available here: > > https://nextcloud.com/ > > [Pardon the long pitch, but it's a free package and a really good one:] > > Ever since I started using it I've stopped using Dropbox, Google Drive, and other services I'd used in the past. Why? Better sync, more flexible options, and completely under my own control all the way down to how much storage space I want. > > Nextcloud is a PHP package that installs under Apache. As such it's not yet an end-user consumer product (a partnership with Western Digital is in the process of producing one), but is very well suited for anyone comfortable with setting up Apache. > > Dual-licensed like LiveCode, the GPL edition is probably more than adequate for the needs of most readers here (though the Enterprise edition has some components that may be worth considering if you're running a larger business). > > You install Nextcloud on any VPS or dedicated server, and once installed you're limited only by your server's disk capacity. > > You can set up any number of user accounts, establish disk quotas for them if needed, and share files between them or even publicly. You can sync any number of folders, and synced folders maintain versions when files change so you can revert to any earlier version at any time. > > Nextcloud has native clients for Mac, Windows, Linux, iOS, and Android. > > I originally tried it as a solution for syncing my LiveCode Plugins folder across all the machines I work on, and as the only option with native clients for all three OS families that alone made it an instant favorite. > > Since then I've discovered that it includes a considerable number of apps, included an embedded version of LibreOffice, contact, photo management, etc., with more available from their third-party collection. > > I had the pleasure of meeting the project founder and director, Frank Karlitschek, at the SoCal Linux Expo a couple weeks ago, along with the project's community manager and head of marketing, Jos Poortvliet. Both fun-loving, hard-working people, committed to the vision of putting people back in control of their cloud systems. > > Until they get a turnkey consumer device shipping, Nextcloud may not be for everyone just yet. > > But for developers in an increasingly interconnected world that already has us configuring Apache, Nextcloud can be a very good solution for cloud storage and more. > > If nothing else, consider: > > When a public cloud service like Dropbox goes down, your only recourse is to wait and pray. > > If your Nextcloud server goes down (and mine never has in the many years I've been running it), chances are you'll just reboot and be back in business in minutes. > > -- > 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 Matthias Rebbe Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 From roger.e.eller at sealedair.com Fri Mar 17 13:51:26 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 17 Mar 2017 13:51:26 -0400 Subject: (off) dropbox down In-Reply-To: References: <3062e9c4-9a98-0911-0374-7fe374e21b84@fourthworld.com> Message-ID: Or maybe THIS had some complications they were working through. I received an email from Dropbox that said: "This is a reminder that your Public folder links will become inactive on *March 15*. On that date, your Public folder will become a standard Dropbox folder, and your files will remain safe in your account. If you want to share those files again, you?ll need to use shared links instead." ~Roger On Fri, Mar 17, 2017 at 1:42 PM, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Maybe this all had to do with this in some way? > > https://www.ripe.net/support/service-announcements/reverse- > dns-issue-for-some-delegations-in-the-ripe-ncc-service-region < > https://www.ripe.net/support/service-announcements/reverse- > dns-issue-for-some-delegations-in-the-ripe-ncc-service-region> > > > > > > Am 17.03.2017 um 15:24 schrieb Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com >: > > > > Mike Kerner wrote: > > > > > For everyone who does anything with dropbox, it's been down since at > > > least 2AM EDT. > From bobsneidar at iotecdigital.com Fri Mar 17 14:00:18 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 17 Mar 2017 18:00:18 +0000 Subject: SFTP with .PPK file In-Reply-To: <999C65B0-06A4-4275-AA01-D6DE9ED40DE8@madmansoft.com> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> <3608f172-55b3-83a8-05ff-110cea2db9da@techstrategies.com.au> <999C65B0-06A4-4275-AA01-D6DE9ED40DE8@madmansoft.com> Message-ID: <141E4509-5510-4614-B8E4-A0BE03714910@iotecdigital.com> Looks like it DOES need the public key after all. I thought that was the way SSH worked. I was surprised when you said TSNet doesn't need the public key. Bob S > On Mar 17, 2017, at 06:36 , Stephen MacLean via use-livecode wrote: > > SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file From jonathandlynch at gmail.com Fri Mar 17 14:16:21 2017 From: jonathandlynch at gmail.com (Jonathan Lynch) Date: Fri, 17 Mar 2017 14:16:21 -0400 Subject: Getting the JSON library into a standalone Message-ID: Hi, I am trying to convert my app into a standalone, but it depends on the JSONtoArray and ArrayToJSON functions. Even though I am including the JSON library in the standalone inclusions, it is not getting copied over when it makes the standalone. In the IDE, there is an extensions folder, with a subfolder called com.livecode.library.json. I see nothing like that in the subfolders of the standalone. This is in LC 8.1.2. Can anyone confirm that it is not able to include the JSON functions? Are there any simple workarounds? -- Do all things with love From jacque at hyperactivesw.com Fri Mar 17 15:01:06 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 17 Mar 2017 14:01:06 -0500 Subject: Getting the JSON library into a standalone In-Reply-To: References: Message-ID: <981b9145-a7f6-5ccd-3be8-2e0cf5da1b39@hyperactivesw.com> On 3/17/17 1:16 PM, Jonathan Lynch via use-livecode wrote: > This is in LC 8.1.2. > > Can anyone confirm that it is not able to include the JSON functions? Are > there any simple workarounds? Is there a reason not to use 8.1.3? I remember there was an issue with inclusions at some point, so try the latest stable release. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Mar 17 15:06:40 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 17 Mar 2017 14:06:40 -0500 Subject: Android application class In-Reply-To: References: Message-ID: <6921d6c2-d303-3fac-699f-835cccd8a05b@hyperactivesw.com> On 3/17/17 2:43 AM, Richmond via use-livecode wrote: > So, I tried to build a standalone for Android (well, better late than > never) and got a happy > little message: > > "could not compile application class" > > this with LC 8.1.3 on Xubuntu 14.04 Did you see this?: http://lessons.livecode.com/m/2571/l/80751-how-do-i-become-an-android-developer-on-linux -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jonathandlynch at gmail.com Fri Mar 17 15:48:23 2017 From: jonathandlynch at gmail.com (Jonathan Lynch) Date: Fri, 17 Mar 2017 15:48:23 -0400 Subject: Getting the JSON library into a standalone In-Reply-To: <981b9145-a7f6-5ccd-3be8-2e0cf5da1b39@hyperactivesw.com> References: <981b9145-a7f6-5ccd-3be8-2e0cf5da1b39@hyperactivesw.com> Message-ID: I will - thanks. On Fri, Mar 17, 2017 at 3:01 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 3/17/17 1:16 PM, Jonathan Lynch via use-livecode wrote: > >> This is in LC 8.1.2. >> >> Can anyone confirm that it is not able to include the JSON functions? Are >> there any simple workarounds? >> > > Is there a reason not to use 8.1.3? I remember there was an issue with > inclusions at some point, so try the latest stable release. > > -- > 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 > -- Do all things with love From mikedoub at gmail.com Fri Mar 17 16:20:03 2017 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 17 Mar 2017 16:20:03 -0400 Subject: Problem with converting time In-Reply-To: <1e1a9ae0-aaef-0aef-7d9b-91dc2b366f27@fourthworld.com> References: <1e1a9ae0-aaef-0aef-7d9b-91dc2b366f27@fourthworld.com> Message-ID: <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> Sorry guys, I must not have been clear in my statement of the problem. Here is the code: put 1489755600 into tVar convert tVar into dateitems -- on the mac tVar contains 2017,3,17,9,0,0,6 -- on the server tVar contains 2017,3,17,12,0,0,6 The local time should not be involved since you are converting a fixed value. What is happening? -= Mike On 3/17/17 12:44 PM, Richard Gaskin via use-livecode wrote: > Michael Doub wrote: > > > time = 1489755600 > > Mac: dateitems = 2017,3,17,9,0,0,6 > > server: dateitems = 2017,3,17,12,0,0,6 > > > > Code: get time > > convertit to dateitems > > > > Richard here is another example: > > time = 1489752000 > > mac: dateitems = 2017,3,17,8,0,0,6 > > server: dateitems = 2017,3,17,12,0,0,6 > > > > I just wanted to double check that I was showing you good comparison > > since I am copying from multiple windows of debug output. > > > > I don't understand how the local time comes into play when converting > > a constant number of seconds. The resulting date should be a > > constant as well. > > > > What am I missing? > > The beauty of "the seconds" is that the value you get is in GMT, > regardless of where the machine is at the moment that value of > obtained. It does the offset according to the locale settings on the > local machine. > > "The seconds" and "the internet date" are the only two forms that take > local time zone settings into account. > > The benefit with this approach is that either can be used in > applications where usage may span time zones but you need to maintain > time stamps that will work across any time zones. > > > For example, suppose I'm in Los Angeles and I share a server app with > one user in New York, another in Brisbane, and another in Edinburgh. > > GMT offsets for each are: > > Edinburgh: 0 > New York: -4h > Los Angeles: -7h > Brisbane: +10h (they're across the International Dateline) > > The "internet date" format reflects this explicitly, noting the GMT > offset at the end of the string it returns: > > Fri, 17 Mar 2017 09:09:03 -0700 > > But "the seconds" of course is just an integer, so while the GMT > offset has also been accounted for it's less evident. > > If all four of us get "the seconds" at the same moment, the value we > get will be the same, in GMT time. > > But since only one of us is actually in the GMT time zone, how does it > know? That's where the local system settings come into play. > > When *obtaining* either "the seconds" or "the internet date", local > time zone is used to create a value that can be understood globally. > > When *converting* either "the seconds" or "the internet date", LC uses > time conversion routines dependent on the system locale settings of > the machine where the conversion is taking place. > > With "the internet date" the time zone is explicitly included, so it > adjusts from that GMT offset to bring it into alignment with the GMT > offset in the local OS. > > With "the seconds", the value is already adjusted to be GMT, so > conversion adjusts it again for the local settings to deliver an > accurate representation of that moment in local time. > > > In the example above, all four users would get the same value from > querying "the seconds" at the same moment, no matter where they are in > the world. > > And when my software needs to display the date and/or time in > human-readable form, the "convert" command takes local settings into > account to deliver an accurate representation that makes sense in > local time. > > So if I modify a record right now, in my system it'll show March 17 at > 9:18 AM. But when my Brisbane use sees the modification date that > I've stored using "the seconds", he'll see March 18 at 2:18 AM, which > is the same global moment. > > > In short: > > The key to getting accurate reflections of time is to store either > "the seconds" or "the internet date" on the server (or really, > anywhere timestamps may be shared across time zones), and then do any > conversions needed for human readability locally. > > If you do a conversion from either of those two formats on the server > to any other format, the result will be correct for the server's > locale, but unless you're nearby probably not correct for you. > > > Quick Exercise: > > It took me a while (and some experimentation) to appreciate that "the > seconds" reflects GMT just as "the internet date" does, something I > learned from Sarah Reichelt back in the day. > > One quick way to verify this is to check while changing your local > machine's Date and Time settings: > > Set to Los Angeles: 1489768020 > 5 seconds later, > Set to Montreal: 1489768025 > 10 seconds after that, > Set to London: 1489768035 > > Except for the few seconds it took me to click on my Locale map in my > Control Panel, the numbers are effectively all the same. > > Once I became confident with that, I've used it for everything on > servers ever since (except logging - I like the built-in readability > of "internet date" in logs). > From phil at pthane.co.uk Fri Mar 17 16:24:29 2017 From: phil at pthane.co.uk (Phil Thane) Date: Fri, 17 Mar 2017 20:24:29 +0000 Subject: Linux 32bit? Message-ID: <3717336.7Dacc3Gx5s@phil-desktop> Hi, Just downloaded the open source version for Linux, but it comes as x64 only. For some reason I've never figured my old PC doesn't like 64bit distros, the graphics driver just doesn't work and after much messing I decided it was easier to stick with a 32 bit distro. Any advice, short of upgrading my hardware? -- Phil Thane www.pthane.co.uk phil at pthane.co.uk 01767 449759 07582 750607 Twitter @pthane From ahsoftware at sonic.net Fri Mar 17 16:31:11 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 17 Mar 2017 13:31:11 -0700 Subject: Linux 32bit? In-Reply-To: <3717336.7Dacc3Gx5s@phil-desktop> References: <3717336.7Dacc3Gx5s@phil-desktop> Message-ID: On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote: > Hi, > > Just downloaded the open source version for Linux, but it comes as x64 only. > For some reason I've never figured my old PC doesn't like 64bit distros, the > graphics driver just doesn't work and after much messing I decided it was > easier to stick with a 32 bit distro. Any advice, short of upgrading my > hardware? I see both 64- and 32-bit versions on the download page. Are you saying that the 32-bit link actually downloads a 64-bit binary? ...but yes, upgrading the old hardware would be good. -- Mark Wieder ahsoftware at gmail.com From phil at pthane.co.uk Fri Mar 17 16:32:44 2017 From: phil at pthane.co.uk (Phil Thane) Date: Fri, 17 Mar 2017 20:32:44 +0000 Subject: Linux 32bit? In-Reply-To: References: <3717336.7Dacc3Gx5s@phil-desktop> Message-ID: <0C82516B-7C9E-45EE-8440-A7FD211F41B8@pthane.co.uk> Just shut down, will try tomorrow. On 17 March 2017 20:31:11 GMT+00:00, Mark Wieder via use-livecode wrote: >On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote: >> Hi, >> >> Just downloaded the open source version for Linux, but it comes as >x64 only. >> For some reason I've never figured my old PC doesn't like 64bit >distros, the >> graphics driver just doesn't work and after much messing I decided it >was >> easier to stick with a 32 bit distro. Any advice, short of upgrading >my >> hardware? > >I see both 64- and 32-bit versions on the download page. Are you saying > >that the 32-bit link actually downloads a 64-bit binary? > >...but yes, upgrading the old hardware would be good. > >-- > 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 -- Sent from my Android device with K-9 Mail. Please excuse my brevity. From ahsoftware at sonic.net Fri Mar 17 16:42:30 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 17 Mar 2017 13:42:30 -0700 Subject: Problem with converting time In-Reply-To: <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> References: <1e1a9ae0-aaef-0aef-7d9b-91dc2b366f27@fourthworld.com> <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> Message-ID: On 03/17/2017 01:20 PM, Michael Doub via use-livecode wrote: > Sorry guys, I must not have been clear in my statement of the problem. > Here is the code: > > put 1489755600 into tVar > convert tVar into dateitems > -- on the mac tVar contains 2017,3,17,9,0,0,6 > -- on the server tVar contains 2017,3,17,12,0,0,6 > > The local time should not be involved since you are converting a fixed > value. What is happening? Sorry - I can't replicate that. With the desktop and server engines running on the same machine, put 1489755600 into tVar convert tVar into dateitems gives me IDE message box: 2017,3,17,6,0,0,6 server: 2017,3,17,6,0,0,6 Note that "convert into" is not supported. It might be better to post the code you're actually using. -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Fri Mar 17 16:46:44 2017 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 17 Mar 2017 22:46:44 +0200 Subject: Linux 32bit? In-Reply-To: References: <3717336.7Dacc3Gx5s@phil-desktop> Message-ID: <6705b528-fc7a-096f-f2bf-d4762f2d9036@gmail.com> On 17.03.2017 22:31, Mark Wieder via use-livecode wrote: > On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote: >> Hi, >> >> Just downloaded the open source version for Linux, but it comes as >> x64 only. >> For some reason I've never figured my old PC doesn't like 64bit >> distros, the >> graphics driver just doesn't work and after much messing I decided it >> was >> easier to stick with a 32 bit distro. Any advice, short of upgrading my >> hardware? > > I see both 64- and 32-bit versions on the download page. Are you > saying that the 32-bit link actually downloads a 64-bit binary? > > ...but yes, upgrading the old hardware would be good. > Why? I'm running a dual core, 64-bit machine (DELL Optiplex 745) that's about 10 years old and chugging along superbly. I also deploy in my school 32-bit machines (HP) of the same age without any obvious problems. All current versions of LiveCode work superbly on all of the machines. The obsession with continual upgrading is . . . . Richmond. From ambassador at fourthworld.com Fri Mar 17 17:29:12 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 17 Mar 2017 14:29:12 -0700 Subject: Problem with converting time In-Reply-To: <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> References: <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> Message-ID: <7a8dc575-4c06-2fb3-ad7e-97fb91f44c07@fourthworld.com> Michael Doub wrote: > Sorry guys, I must not have been clear in my statement of the > problem. > Here is the code: > > put 1489755600 into tVar > convert tVar into dateitems > -- on the mac tVar contains 2017,3,17,9,0,0,6 > -- on the server tVar contains 2017,3,17,12,0,0,6 > > The local time should not be involved since you are converting a > fixed value. What is happening? Humor me: what city is your server in, and what city are you in? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mikedoub at gmail.com Fri Mar 17 18:33:19 2017 From: mikedoub at gmail.com (Mike Doub) Date: Fri, 17 Mar 2017 18:33:19 -0400 Subject: Problem with converting time In-Reply-To: <7a8dc575-4c06-2fb3-ad7e-97fb91f44c07@fourthworld.com> Message-ID: <58cc643d.0a3c810a.dbfe0.d9d2@mx.google.com> I am in Chapel Hill, NC. I am using Hostm and I really don't know, I would have expected the time to be less if on the west coast of the US. Mike ? Original Message ? From: use-livecode at lists.runrev.com Sent: March 17, 2017 5:30 PM To: use-livecode at lists.runrev.com Reply-to: use-livecode at lists.runrev.com Cc: ambassador at fourthworld.com Subject: Re: Problem with converting time Michael Doub wrote: > Sorry guys, I must not have been clear in my statement of the > problem. > Here is the code: > > put 1489755600 into tVar > convert tVar into dateitems >?? -- on the mac tVar contains 2017,3,17,9,0,0,6 >?? -- on the server tVar contains 2017,3,17,12,0,0,6 > > The local time should not be involved since you are converting a > fixed value.? What is happening? Humor me: what city is your server in, and what city are you in? -- ? 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 mikedoub at gmail.com Fri Mar 17 18:52:30 2017 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 17 Mar 2017 18:52:30 -0400 Subject: Problem with converting time In-Reply-To: References: <1e1a9ae0-aaef-0aef-7d9b-91dc2b366f27@fourthworld.com> <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> Message-ID: <8fcd6416-85a0-cb82-7d67-f145eff9b4a5@gmail.com> Sorry Mark and Richard. Here is the real code snipit that includes a hack that seems to work: getaData[x]["time"] if not(theenvironmentisamongtheitems"development,standalone application") then subtract(4*60*60) fromit end if convertit todateitems Mark, in your situation, you and the server are in the same timezone so I would not expect to see a problem. I have no idea where my server is, but it must not be in my timezone. I am guessing on the west coast since taking off 4 hours seems to fix the problem. It still does not make any sense why a timezone comes into play at all. Here is the silly little app: Http://tarwheels.net/weather It has been really cold here the last few days and I was not able to cycle, so this was a fun diversion. Seems to work, but it has not had much testing. And as you can see I know next to nothing about making things look nice in html. -= Mike On 3/17/17 4:42 PM, Mark Wieder via use-livecode wrote: > On 03/17/2017 01:20 PM, Michael Doub via use-livecode wrote: >> Sorry guys, I must not have been clear in my statement of the problem. >> Here is the code: >> >> put 1489755600 into tVar >> convert tVar into dateitems >> -- on the mac tVar contains 2017,3,17,9,0,0,6 >> -- on the server tVar contains 2017,3,17,12,0,0,6 >> >> The local time should not be involved since you are converting a fixed >> value. What is happening? > > Sorry - I can't replicate that. > With the desktop and server engines running on the same machine, > > put 1489755600 into tVar > convert tVar into dateitems > > gives me > IDE message box: 2017,3,17,6,0,0,6 > server: 2017,3,17,6,0,0,6 > > Note that "convert into" is not supported. > It might be better to post the code you're actually using. > From ambassador at fourthworld.com Fri Mar 17 18:53:23 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 17 Mar 2017 15:53:23 -0700 Subject: Problem with converting time In-Reply-To: <58cc643d.0a3c810a.dbfe0.d9d2@mx.google.com> References: <58cc643d.0a3c810a.dbfe0.d9d2@mx.google.com> Message-ID: <64073902-7b56-49e5-c6a9-622096a3cf16@fourthworld.com> Mike Doub wrote: > I am in Chapel Hill, NC. I am using Hostm and I really don't > know, I would have expected the time to be less if on the west > coast of the US. We don't yet know the location of the server, but even better you can find out what time zone it's set to by logging in via SSH and running: date +%Z If you're running the convert command on the server I think you'll find the converted output differs from your local conversion by the number of time zones between you and the server. I took the time to write this, maybe worth reading and trying the exercise I included near the end: http://lists.runrev.com/pipermail/use-livecode/2017-March/235470.html -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ahsoftware at sonic.net Fri Mar 17 20:36:41 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 17 Mar 2017 17:36:41 -0700 Subject: Problem with converting time In-Reply-To: <8fcd6416-85a0-cb82-7d67-f145eff9b4a5@gmail.com> References: <1e1a9ae0-aaef-0aef-7d9b-91dc2b366f27@fourthworld.com> <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> <8fcd6416-85a0-cb82-7d67-f145eff9b4a5@gmail.com> Message-ID: <86f2df23-3c81-0482-b5c1-33b1adf17b1d@sonic.net> On 03/17/2017 03:52 PM, Michael Doub via use-livecode wrote: > Sorry Mark and Richard. Here is the real code snipit that includes a > hack that seems to work: > > getaData[x]["time"] > if not(theenvironmentisamongtheitems"development,standalone > application") then > subtract(4*60*60) fromit > end if > convertit todateitems Weird copypasta stuff with spaces there. > > Mark, in your situation, you and the server are in the same timezone so > I would not expect to see a problem. I have no idea where my server > is, but it must not be in my timezone. I am guessing on the west coast > since taking off 4 hours seems to fix the problem. That just sounds wrong. If anything, it should be the other way around. > > It still does not make any sense why a timezone comes into play at all. Timezone enters into the picture because if you ask the time, and then convert it to a readable format, you wouldn't expect to see UTC time unless you happened to live in that time zone. You're asking the server "what time is it where you live?" and asking the mac the same thing. The answers may or may not differ. If you want to be able to compare timestamps then "the internet date" will give you UTC time for both. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Fri Mar 17 21:31:23 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 17 Mar 2017 20:31:23 -0500 Subject: Problem with converting time In-Reply-To: <86f2df23-3c81-0482-b5c1-33b1adf17b1d@sonic.net> References: <1e1a9ae0-aaef-0aef-7d9b-91dc2b366f27@fourthworld.com> <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> <8fcd6416-85a0-cb82-7d67-f145eff9b4a5@gmail.com> <86f2df23-3c81-0482-b5c1-33b1adf17b1d@sonic.net> Message-ID: <33398099-930c-18eb-f459-b13d1a5fc5a1@hyperactivesw.com> On 03/17/2017 03:52 PM, Michael Doub via use-livecode wrote: > > getaData[x]["time"] Wherever the array is getting its time data, that's where local time is happening. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From james at thehales.id.au Fri Mar 17 23:03:21 2017 From: james at thehales.id.au (James Hale) Date: Sat, 18 Mar 2017 14:03:21 +1100 Subject: OSX module file error when building standalone with LC 8 on mac Message-ID: Solved. I had included an LC9 only widget in my stack. It obviously was not there in LC8 when I went to compile. So it seems... "There was an error while saving the > standalone application > Build failed for MacOSX x86-32: could not > open module file" is telling me the widget module was no where to be found (among the LC8 resources.) I must have made the original stack in LC9 and forgot :-( @Bob Thanks for your suggestions. I had actually tried them all. James From charles at techstrategies.com.au Sat Mar 18 04:05:04 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Sat, 18 Mar 2017 18:05:04 +1000 Subject: SFTP with .PPK file In-Reply-To: <999C65B0-06A4-4275-AA01-D6DE9ED40DE8@madmansoft.com> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> <3608f172-55b3-83a8-05ff-110cea2db9da@techstrategies.com.au> <999C65B0-06A4-4275-AA01-D6DE9ED40DE8@madmansoft.com> Message-ID: Hi Steve, Ahh... it's been a while since I wrote the SSH component of tsNet and I've been unfortunately relying on the documentation I wrote when checking your code! tSettings["ssh_private_key"] must provide the "path" to the private key, not the contents of the private key (another documentation issue for me to fix!). So your code should actually look like on mouseUp local tHeaders, tResult, tSettings put ?xxxxxxxx" into tSettings["username"] put "D:\private.ppk" into tSettings["ssh_private_key"] tsNetInit put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult end mouseUp Hopefully that will get it working for you! Cheers, Charles On 17/03/2017 11:36 PM, Stephen MacLean via use-livecode wrote: > Hi Charles, > > Again, thank you for all your help!! > > I made the change below, and indeed didn?t get the error any more. However, I still wasn?t getting anything returned. > > I ran your debug stack along side it and got this: > > Hostname in DNS cache was stale, zapped > Trying xx.xx.xx.xx... > TCP_NODELAY set > Connected to secure.xxxxxxxxxx.us (xx.xx.xx.xx) port 22 (#3) > SSH MD5 fingerprint: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > SSH authentication methods available: publickey > Using SSH private key file '-----BEGIN RSA PRIVATE KEY?? > > -----END RSA PRIVATE KEY----- > ' > SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file > > Not sure about were to go from here? I redid the export of the .ppk in PuttyGen and still get the same thing. There is no password protecting the key. > > Any further help would be greatly appreciated. > > Best Regards, > > Steve MacLean > >> On Mar 17, 2017, at 5:04 AM, Charles Warwick via use-livecode wrote: >> >> Hi Steve, >> >> My apologies... there is a mistake in the documentation for tsNet which I only just noticed. >> >> The array element for the SSH private key should be tSettings["ssh_private_key"], not tSettings["ssh_priv_key"]. >> >> So if you change the following line: >> >> put tPrivKey into tSettings["ssh_priv_key"] >> >> to: >> >> put tPrivKey into tSettings["ssh_private_key"] >> >> you should be right to go! >> >> (I will get this fixed in the documentation for the next version) >> >> Best Regards, >> >> Charles >> >> >> On 17/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: >>> Hi Steve, >>> >>> The tsNet command only requires the SSH private key, so that is ok. >>> >>> I will test again here to make sure there is nothing else going on in LC 9.0 DP6.... >>> >>> Just to check though, I assume your private key does not require a passphrase? >>> >>> Another thing to try is to download the following simple stack: >>> >>> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode >>> >>> Run that stack at the same time as your own, and click "Start Debug" before you try make the SSH connection. >>> >>> It should provide some additional debug information that may shed more light on what is actually happening. >>> >>> Regards, >>> >>> Charles >>> >>> >>> On 16/03/2017 10:24 PM, Stephen MacLean via use-livecode wrote: >>>> Hi Charles, >>>> >>>> One other thing? in looking at the .ppk file, it contains both ?public lines? and "private lines?. All I see in the ssh key file is private. >>>> >>>> Not sure that make any difference, but thought I?d mention it. >>>> >>>> Best, >>>> >>>> Steve >>>> >>>>> On Mar 16, 2017, at 7:53 AM, Stephen MacLean via use-livecode wrote: >>>>> >>>>> Hi Charles, >>>>> >>>>> Thank you so much for reply! >>>>> >>>>> I converted the key file as you described, however, I?m still getting the error 67 (authentication error) when running the script. >>>>> >>>>> Any further help would be greatly appreciated. >>>>> >>>>> Best, >>>>> >>>>> Steve MacLean >>>>> >>>>>> On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode wrote: >>>>>> >>>>>> Hi Steve, >>>>>> >>>>>> It looks like you are using a SSH private key in PuTTY format (.ppk). tsNet requires it to be in OpenSSH format. >>>>>> >>>>>> That is easy to fix though, you can convert the .ppk with PuttyGen. >>>>>> >>>>>> To do this, open PuttyGen and load the .ppk file. Then select "Conversions" -> "Export OpenSSH key". >>>>>> >>>>>> Apart from that, just make sure that your call to tsNetGet includes the full path of the file you want to download. >>>>>> >>>>>> Hope that helps, >>>>>> >>>>>> Cheers, >>>>>> >>>>>> Charles >>>>>> >>>>>> >>>>>> On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote: >>>>>>> Well, still no luck in getting it to work, but getting closer? >>>>>>> >>>>>>> I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: >>>>>>> >>>>>>> on mouseUp >>>>>>> local tHeaders, tResult, tSettings >>>>>>> put ?xxxxxxxx" into tSettings["username"] >>>>>>> put URL "binfile:D:\private.ppk" into tPrivKey >>>>>>> put tPrivKey into tSettings["ssh_priv_key"] >>>>>>> tsNetInit >>>>>>> put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult >>>>>>> end mouseUp >>>>>>> >>>>>>> However, it returns: >>>>>>> >>>>>>> tsneterr: (67) Authentication failure >>>>>>> >>>>>>> Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. >>>>>>> >>>>>>> Any suggestions?? >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Steve MacLean >>>>>>> >>>>>>>> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode wrote: >>>>>>>> >>>>>>>> Hi All, >>>>>>>> >>>>>>>> Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. >>>>>>>> >>>>>>>> I use WinSCP and can link the connection to the file and can connect fine. >>>>>>>> >>>>>>>> In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. >>>>>>>> >>>>>>>> Any help would be appreciated. >>>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> Steve MacLean >>>>>>>> >>>>>>>> PS: Running 9.0 dp6 Business >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Sat Mar 18 04:20:44 2017 From: charles at techstrategies.com.au (Charles Warwick) Date: Sat, 18 Mar 2017 18:20:44 +1000 Subject: SFTP with .PPK file In-Reply-To: <141E4509-5510-4614-B8E4-A0BE03714910@iotecdigital.com> References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> <3608f172-55b3-83a8-05ff-110cea2db9da@techstrategies.com.au> <999C65B0-06A4-4275-AA01-D6DE9ED40DE8@madmansoft.com> <141E4509-5510-4614-B8E4-A0BE03714910@iotecdigital.com> Message-ID: <8dea3955-7fe7-6ac8-316c-d6bd39111b43@techstrategies.com.au> Hi Bob, tsNet calculates the public key from the private key, so you only need to pass the private key to the tsNet functions. Cheers, Charles On 18/03/2017 4:00 AM, Bob Sneidar via use-livecode wrote: > Looks like it DOES need the public key after all. I thought that was the way SSH worked. I was surprised when you said TSNet doesn't need the public key. > > Bob S > > >> On Mar 17, 2017, at 06:36 , Stephen MacLean via use-livecode wrote: >> >> SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Sat Mar 18 10:54:24 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 18 Mar 2017 10:54:24 -0400 Subject: (off) dropbox down In-Reply-To: References: <3062e9c4-9a98-0911-0374-7fe374e21b84@fourthworld.com> Message-ID: We got blasted sometime between midnight and 1 EDT. The rest of the US got hosed between 6 and 7 AM. They weren't up until 10:15 EDT. Anyway, that's the first time we've seen an outage that was long enough for us to notice since we started using DB with LC. Roger, I'm going to start a different thread on the new public folder. On Fri, Mar 17, 2017 at 1:51 PM, Roger Eller via use-livecode < use-livecode at lists.runrev.com> wrote: > Or maybe THIS had some complications they were working through. I received > an email from Dropbox that said: > > "This is a reminder that your Public folder links will become inactive > on *March > 15*. On that date, your Public folder will become a standard Dropbox > folder, and your files will remain safe in your account. If you want to > share those files again, you?ll need to use shared links instead." > > ~Roger > > > On Fri, Mar 17, 2017 at 1:42 PM, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Maybe this all had to do with this in some way? > > > > https://www.ripe.net/support/service-announcements/reverse- > > dns-issue-for-some-delegations-in-the-ripe-ncc-service-region < > > https://www.ripe.net/support/service-announcements/reverse- > > dns-issue-for-some-delegations-in-the-ripe-ncc-service-region> > > > > > > > > > > > Am 17.03.2017 um 15:24 schrieb Richard Gaskin via use-livecode < > > use-livecode at lists.runrev.com >: > > > > > > Mike Kerner wrote: > > > > > > > For everyone who does anything with dropbox, it's been down since at > > > > least 2AM EDT. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat Mar 18 10:57:41 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 18 Mar 2017 10:57:41 -0400 Subject: Dropbox Public Folder Message-ID: Now that the Public folder has been changed, what is everyone doing to deal with it? The main effect that I see is that it is more complicated to deal with distributing mobile apps for internal use and external testing. I started messing with how to get it to work again with AirLaunch, but I haven't enough time to figure it out. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Sat Mar 18 12:48:27 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 18 Mar 2017 09:48:27 -0700 Subject: Dropbox Public Folder In-Reply-To: References: Message-ID: Mike Kerner wrote: > Now that the Public folder has been changed, what is everyone doing > to deal with it? The main effect that I see is that it is more > complicated to deal with distributing mobile apps for internal use > and external testing. I started messing with how to get it to work > again with AirLaunch, but I haven't enough time to figure it out. A truly public folder may not be ideal for distributing an app for testing. Anything in a public folder may be discoverable/accessible by robots, so it is in effect a public resource. If intended for the general public that's fine of course, but if intended for a specific set of testers some means of limiting access may be useful. The bigger question here is the one IT staff throughout the industry are asking themselves: What are the tradeoffs between public and private clouds? There is no magic pony, no single "best" for all use cases. The convenience of having other people manage infrastructure can be nice, but it comes at the cost of not being in control of either outages (e.g. Amazon this week) or policy changes (e.g. the Dropbox change that prompted this thread). I've already waxed too much about the benefits of Nextcloud as a solution for organizations to handle their workgroup needs, so I won't belabor the point here and just provide a link to that post: But since everyone here is a developer, we have plenty of options. We can use fully-managed IaaS, or self-managed VPS/dedicated servers, or for modest needs even simple shared hosting, or some mix of all of them. For distributing an app for testing, one option that'll work easily enough on even a shared hosting account is to just upload it to a given folder and send out the URL. If you need password protection for a folder, HTTP Basic Auth is fine for modest needs if you have SSL in place (and with Let's Encrypt being free it's easy to get HTTPS everywhere now). Uploads can be automated with LC, so you could make a plugin that posts your app for testing with one click. Those using tsNet can use SFTP to upload, and everyone can use a shell call to scp or rsync once you've put your shared SSH keys in place (a good thing to do for many reasons beyond the convenience of being able to automate server tasks in LC). Pubic cloud apps like Dropbox are great for the public. But as developers. we have plenty of options. And as developers using LiveCode, we have plenty of options for making convenient GUIs to help manage our cloud tasks. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Sat Mar 18 13:14:22 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 18 Mar 2017 13:14:22 -0400 Subject: Dropbox Public Folder In-Reply-To: References: Message-ID: In theory, at least, for ios, you can compile only for specific devices. AirLaunch is more convenient than Apple's private distribution tools. From danoldboy at gmail.com Sat Mar 18 13:52:37 2017 From: danoldboy at gmail.com (Dan Brown) Date: Sat, 18 Mar 2017 17:52:37 +0000 Subject: Dropbox Public Folder In-Reply-To: References: Message-ID: Minio is a good solution for self hosted AWS S3 type storage https://www.minio.io On 18 Mar 2017 5:15 pm, "Mike Kerner via use-livecode" < use-livecode at lists.runrev.com> wrote: > In theory, at least, for ios, you can compile only for specific devices. > AirLaunch is more convenient than Apple's private distribution tools. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From preid at reidit.co.uk Sat Mar 18 14:20:36 2017 From: preid at reidit.co.uk (Peter Reid) Date: Sat, 18 Mar 2017 18:20:36 +0000 Subject: Colour Manipulation Message-ID: <88484B96-8B4E-4FAD-A8F2-F2A080887A54@reidit.co.uk> I've got an app that allows the user to display an image using a variable number of colours (2-24 colours). In addition, the user can specify upper and lower thresholds so that all pixels below a specified value are displayed using a colour such as black and all pixels with values above a specified value are displayed using a colour such as red. Pixels with values between the thresholds are displayed using the specified colour range of 2-24 colours. The images can consist of up to 8-10 million pixels, they are rectangular and can be in a landscape or portrait orientation. Whilst I have this working the code that manages the changing of the number and use of colours in an image is rather slow. This is despite me using the "repeat for each" loop structure and lock the screen wherever possible to get the maximum speed! Does anyone have any clever algorithms, code, add-ons, etc. that can do this kind of thing in a flash?! Thanks Peter -- Peter Reid Loughborough, UK From phil at pthane.co.uk Sat Mar 18 15:39:00 2017 From: phil at pthane.co.uk (Phil Thane) Date: Sat, 18 Mar 2017 19:39:00 +0000 Subject: Linux 32bit? In-Reply-To: References: <3717336.7Dacc3Gx5s@phil-desktop> Message-ID: <2348414.qjQt0mAtm0@phil-desktop> OK, I'm back. When I follow the links I end up here: https://livecode.org/download-after-sign-up/ There is only one button 'Download LiveCode Community'. I assume it then probes my hardware and comes up with the wrong result because the download is: 'LiveCodeCommunityInstaller-8_1_3-Linux.x64' -- Phil Thane www.pthane.co.uk phil at pthane.co.uk 01767 449759 07582 750607 Twitter @pthane On Friday, 17 March 2017 13:31:11 GMT Mark Wieder via use-livecode wrote: > On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote: > > Hi, > > > > Just downloaded the open source version for Linux, but it comes as x64 > > only. For some reason I've never figured my old PC doesn't like 64bit > > distros, the graphics driver just doesn't work and after much messing I > > decided it was easier to stick with a 32 bit distro. Any advice, short of > > upgrading my hardware? > > I see both 64- and 32-bit versions on the download page. Are you saying > that the 32-bit link actually downloads a 64-bit binary? > > ...but yes, upgrading the old hardware would be good. From bonnmike at gmail.com Sat Mar 18 15:45:19 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 18 Mar 2017 13:45:19 -0600 Subject: Linux 32bit? In-Reply-To: <2348414.qjQt0mAtm0@phil-desktop> References: <3717336.7Dacc3Gx5s@phil-desktop> <2348414.qjQt0mAtm0@phil-desktop> Message-ID: Go here: http://downloads.livecode.com/livecode/ Another reason the site should provide a direct link rather than obfuscate. On Sat, Mar 18, 2017 at 1:39 PM, Phil Thane via use-livecode < use-livecode at lists.runrev.com> wrote: > OK, I'm back. When I follow the links I end up here: > > https://livecode.org/download-after-sign-up/ > > There is only one button 'Download LiveCode Community'. I assume it then > probes my hardware and comes up with the wrong result because the download > is: > > 'LiveCodeCommunityInstaller-8_1_3-Linux.x64' > > -- > Phil Thane > > www.pthane.co.uk > phil at pthane.co.uk > 01767 449759 > 07582 750607 > Twitter @pthane > On Friday, 17 March 2017 13:31:11 GMT Mark Wieder via use-livecode wrote: > > On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote: > > > Hi, > > > > > > Just downloaded the open source version for Linux, but it comes as x64 > > > only. For some reason I've never figured my old PC doesn't like 64bit > > > distros, the graphics driver just doesn't work and after much messing I > > > decided it was easier to stick with a 32 bit distro. Any advice, short > of > > > upgrading my hardware? > > > > I see both 64- and 32-bit versions on the download page. Are you saying > > that the 32-bit link actually downloads a 64-bit binary? > > > > ...but yes, upgrading the old hardware would be 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 brahma at hindu.org Sat Mar 18 15:45:34 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 18 Mar 2017 19:45:34 +0000 Subject: App Standalone Splash Screens/Icon Deployment Message-ID: <418D6B41-89DB-4D21-9140-CAF1F8F0BDFB@hindu.org> I am wondering how other teams working collaboratively using Git handle their a) Splash screens b) App Icon c) Main Stack Binary Scenario: you have Devs A, B, C, D working on the same app. Very modular with lots of text only scripts. But the main stack used to build the standalone, call it MyApp.livecode is a binary stack that keep changing everytime on of the team test builds? it contains stack files and a behavior that is a text only stack. otherwise almost no code. but, though it never *really* changes, Git sees it as modified. add to this the additional issue that if we provide all the iOS splash screens and the Android app icon in the repository? we can put them in a folder adjacent to the app, but not actually include them in the package (since the standalone builder will do that automatically.) But? how can you set the paths to the splash screens to a relative path.. with the goal in mind: that the binary stack never really changes. I don't know how exactly GIT "measures" the modification. if the app doesn't really change, even though it has to be saved each time you build a standalone. So bottom line questions are two. 1) Is there some way to avoid having the main stack "change" even though it is being save? our solution now is to stash it in GIT and everyone pulls that same stack from our "nightly" branch which is the SOA for that binary (if a substantive change is made to the MyApp.livecode, you have to push it to nightly? otherwise you never push? but only build your tests and then stash MyApp.livecode) is there a better practice? 2) if you pick the splash screens in standalone builder, I can't actually see the path, but we assume that they are absolute paths to the files in the local user's HD? as soon as the MyApp.livecode moves from dev A (who selected all the splash screens and icons for the app in the SA Builder) is there a way to set these to a path relative to the MyApp.livecode binary? BR From phil at pthane.co.uk Sat Mar 18 15:58:55 2017 From: phil at pthane.co.uk (Phil Thane) Date: Sat, 18 Mar 2017 19:58:55 +0000 Subject: Linux 32bit? In-Reply-To: References: <3717336.7Dacc3Gx5s@phil-desktop> <2348414.qjQt0mAtm0@phil-desktop> Message-ID: <1602455.68uY9ueg8F@phil-desktop> Thanks, it's downloading now... -- Phil Thane www.pthane.co.uk phil at pthane.co.uk 01767 449759 07582 750607 Twitter @pthane On Saturday, 18 March 2017 13:45:19 GMT Mike Bonner via use-livecode wrote: > Go here: http://downloads.livecode.com/livecode/ > Another reason the site should provide a direct link rather than obfuscate. > > On Sat, Mar 18, 2017 at 1:39 PM, Phil Thane via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > OK, I'm back. When I follow the links I end up here: > > > > https://livecode.org/download-after-sign-up/ > > > > There is only one button 'Download LiveCode Community'. I assume it then > > probes my hardware and comes up with the wrong result because the download > > is: > > > > 'LiveCodeCommunityInstaller-8_1_3-Linux.x64' > > > > -- > > Phil Thane > > > > www.pthane.co.uk > > phil at pthane.co.uk > > 01767 449759 > > 07582 750607 > > Twitter @pthane > > > > On Friday, 17 March 2017 13:31:11 GMT Mark Wieder via use-livecode wrote: > > > On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote: > > > > Hi, > > > > > > > > Just downloaded the open source version for Linux, but it comes as x64 > > > > only. For some reason I've never figured my old PC doesn't like 64bit > > > > distros, the graphics driver just doesn't work and after much messing > > > > I > > > > decided it was easier to stick with a 32 bit distro. Any advice, short > > > > of > > > > > > upgrading my hardware? > > > > > > I see both 64- and 32-bit versions on the download page. Are you saying > > > that the 32-bit link actually downloads a 64-bit binary? > > > > > > ...but yes, upgrading the old hardware would be 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 Sat Mar 18 16:13:47 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 18 Mar 2017 13:13:47 -0700 Subject: Linux 32bit? In-Reply-To: <2348414.qjQt0mAtm0@phil-desktop> References: <3717336.7Dacc3Gx5s@phil-desktop> <2348414.qjQt0mAtm0@phil-desktop> Message-ID: <84705e9f-509e-5a1b-6c18-6863ef4e0585@sonic.net> On 03/18/2017 12:39 PM, Phil Thane via use-livecode wrote: > OK, I'm back. When I follow the links I end up here: > > https://livecode.org/download-after-sign-up/ Ah. Yeah. That website makes FOSS look bad. RR/LC's web presence keeps getting dumbed down. -- Mark Wieder ahsoftware at gmail.com From phil at pthane.co.uk Sat Mar 18 16:23:40 2017 From: phil at pthane.co.uk (Phil Thane) Date: Sat, 18 Mar 2017 20:23:40 +0000 Subject: Linux 32bit? In-Reply-To: <84705e9f-509e-5a1b-6c18-6863ef4e0585@sonic.net> References: <3717336.7Dacc3Gx5s@phil-desktop> <2348414.qjQt0mAtm0@phil-desktop> <84705e9f-509e-5a1b-6c18-6863ef4e0585@sonic.net> Message-ID: <2304902.nINTW41CFZ@phil-desktop> OK now I have the right download, just started the beginners' guide. I've been using and writing about Linux and FOSS[1] generally for about 15 years but my programming experience stopped at BBC Basic in about 1990-something. Thanks for your help. -- Phil Thane www.pthane.co.uk phil at pthane.co.uk 01767 449759 07582 750607 Twitter @pthane On Saturday, 18 March 2017 13:13:47 GMT Mark Wieder via use-livecode wrote: > On 03/18/2017 12:39 PM, Phil Thane via use-livecode wrote: > > OK, I'm back. When I follow the links I end up here: > > > > https://livecode.org/download-after-sign-up/ > > Ah. > Yeah. > That website makes FOSS look bad. > RR/LC's web presence keeps getting dumbed down. -------- [1] http://pthane.co.uk/ From jonathandlynch at gmail.com Sat Mar 18 17:03:14 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 18 Mar 2017 17:03:14 -0400 Subject: Colour Manipulation In-Reply-To: <88484B96-8B4E-4FAD-A8F2-F2A080887A54@reidit.co.uk> References: <88484B96-8B4E-4FAD-A8F2-F2A080887A54@reidit.co.uk> Message-ID: With 10 million pixels, comparing 3 different base colors (RGB), and checking both upper and lower bounds, that comes to 60 million comparisons. That is an awful lot for a scripted environment. You would need to make an external (and, frankly, the LC instructions on making desktop externals do not work for modern versions of LC and Visual Studio). For a project, I was able to successfully use ImageMagick as a command line image processor. It took a few seconds, but much better than what LC took. ImageMagick is pretty flexible and might give you what you need. I was using it for green screen image extractions. Sent from my iPhone > On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode wrote: > > I've got an app that allows the user to display an image using a variable number of colours (2-24 colours). In addition, the user can specify upper and lower thresholds so that all pixels below a specified value are displayed using a colour such as black and all pixels with values above a specified value are displayed using a colour such as red. Pixels with values between the thresholds are displayed using the specified colour range of 2-24 colours. The images can consist of up to 8-10 million pixels, they are rectangular and can be in a landscape or portrait orientation. > > Whilst I have this working the code that manages the changing of the number and use of colours in an image is rather slow. This is despite me using the "repeat for each" loop structure and lock the screen wherever possible to get the maximum speed! > > Does anyone have any clever algorithms, code, add-ons, etc. that can do this kind of thing in a flash?! > > Thanks > > Peter > -- > Peter Reid > Loughborough, UK > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Sat Mar 18 18:01:26 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 18 Mar 2017 18:01:26 -0400 Subject: Linux 32bit? Message-ID: Hi Mark, on Sat 18, March 2017, Mark Wieder wrote: > That website makes FOSS look bad. > RR/LC's web presence keeps getting > dumbed down. Probably, this requirement only wants to create a link between new LiveCode users and the current LiveCode community and company. Mark, How many new LiveCode users stop using this platform after a single glance or after a really short time of use? My educated guess is that many, many new users do not take enough time to try this platform in all it's complexity and extension. Many new user are just looking for a ready made solution for their application needs. In my experience, some users do not want to learn something completely new and unfamiliar. They just want a program with an interface similar to Microsoft Office with added functionalities like scripting and compiling... Maybe, just maybe, LiveCode should offer something like a free short course on a topic of specific interest for the new user in exchange for this email direction. Al From jonathandlynch at gmail.com Sat Mar 18 18:02:44 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 18 Mar 2017 18:02:44 -0400 Subject: Colour Manipulation In-Reply-To: References: <88484B96-8B4E-4FAD-A8F2-F2A080887A54@reidit.co.uk> Message-ID: <12D8E36E-AE9E-431E-AF94-42536E2FC07C@gmail.com> You could put the entire ImageMagick set of files into custom properties, then, when your app first opens, look to see if ImageMagick is present. If not, then have your app save the ImageMagick files in the same folder as your app. I have done that sort of thing before - big files, but works fine. If you can find a Javascipt library that does what you need, your mission would be easy :) Sent from my iPhone > On Mar 18, 2017, at 5:03 PM, jonathandlynch at gmail.com wrote: > > With 10 million pixels, comparing 3 different base colors (RGB), and checking both upper and lower bounds, that comes to 60 million comparisons. That is an awful lot for a scripted environment. > > You would need to make an external (and, frankly, the LC instructions on making desktop externals do not work for modern versions of LC and Visual Studio). > > For a project, I was able to successfully use ImageMagick as a command line image processor. It took a few seconds, but much better than what LC took. > > ImageMagick is pretty flexible and might give you what you need. I was using it for green screen image extractions. > > Sent from my iPhone > >> On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode wrote: >> >> I've got an app that allows the user to display an image using a variable number of colours (2-24 colours). In addition, the user can specify upper and lower thresholds so that all pixels below a specified value are displayed using a colour such as black and all pixels with values above a specified value are displayed using a colour such as red. Pixels with values between the thresholds are displayed using the specified colour range of 2-24 colours. The images can consist of up to 8-10 million pixels, they are rectangular and can be in a landscape or portrait orientation. >> >> Whilst I have this working the code that manages the changing of the number and use of colours in an image is rather slow. This is despite me using the "repeat for each" loop structure and lock the screen wherever possible to get the maximum speed! >> >> Does anyone have any clever algorithms, code, add-ons, etc. that can do this kind of thing in a flash?! >> >> Thanks >> >> Peter >> -- >> Peter Reid >> Loughborough, UK >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sat Mar 18 23:30:53 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 18 Mar 2017 21:30:53 -0600 Subject: Colour Manipulation In-Reply-To: <12D8E36E-AE9E-431E-AF94-42536E2FC07C@gmail.com> References: <88484B96-8B4E-4FAD-A8F2-F2A080887A54@reidit.co.uk> <12D8E36E-AE9E-431E-AF94-42536E2FC07C@gmail.com> Message-ID: You could write a small app just to do the processing (or use a web server with an lc script to process) break it into chunks, and spawn processes/server requests to offload the work maybe. Though imagemagick would be a pretty awesome solution if it can be made to do what you need. On Sat, Mar 18, 2017 at 4:02 PM, Jonathan Lynch via use-livecode < use-livecode at lists.runrev.com> wrote: > You could put the entire ImageMagick set of files into custom properties, > then, when your app first opens, look to see if ImageMagick is present. If > not, then have your app save the ImageMagick files in the same folder as > your app. > > I have done that sort of thing before - big files, but works fine. > > If you can find a Javascipt library that does what you need, your mission > would be easy :) > > Sent from my iPhone > > > On Mar 18, 2017, at 5:03 PM, jonathandlynch at gmail.com wrote: > > > > With 10 million pixels, comparing 3 different base colors (RGB), and > checking both upper and lower bounds, that comes to 60 million comparisons. > That is an awful lot for a scripted environment. > > > > You would need to make an external (and, frankly, the LC instructions on > making desktop externals do not work for modern versions of LC and Visual > Studio). > > > > For a project, I was able to successfully use ImageMagick as a command > line image processor. It took a few seconds, but much better than what LC > took. > > > > ImageMagick is pretty flexible and might give you what you need. I was > using it for green screen image extractions. > > > > Sent from my iPhone > > > >> On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> I've got an app that allows the user to display an image using a > variable number of colours (2-24 colours). In addition, the user can > specify upper and lower thresholds so that all pixels below a specified > value are displayed using a colour such as black and all pixels with values > above a specified value are displayed using a colour such as red. Pixels > with values between the thresholds are displayed using the specified colour > range of 2-24 colours. The images can consist of up to 8-10 million pixels, > they are rectangular and can be in a landscape or portrait orientation. > >> > >> Whilst I have this working the code that manages the changing of the > number and use of colours in an image is rather slow. This is despite me > using the "repeat for each" loop structure and lock the screen wherever > possible to get the maximum speed! > >> > >> Does anyone have any clever algorithms, code, add-ons, etc. that can do > this kind of thing in a flash?! > >> > >> Thanks > >> > >> Peter > >> -- > >> Peter Reid > >> Loughborough, UK > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jonathandlynch at gmail.com Sat Mar 18 23:48:34 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Sat, 18 Mar 2017 23:48:34 -0400 Subject: Colour Manipulation In-Reply-To: References: <88484B96-8B4E-4FAD-A8F2-F2A080887A54@reidit.co.uk> <12D8E36E-AE9E-431E-AF94-42536E2FC07C@gmail.com> Message-ID: It would be amazing if the LC folks created an ImageMagick wrapper so that we could use it as an external or widget! Sent from my iPhone > On Mar 18, 2017, at 11:30 PM, Mike Bonner via use-livecode wrote: > > You could write a small app just to do the processing (or use a web server > with an lc script to process) break it into chunks, and spawn > processes/server requests to offload the work maybe. Though imagemagick > would be a pretty awesome solution if it can be made to do what you need. > > On Sat, Mar 18, 2017 at 4:02 PM, Jonathan Lynch via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> You could put the entire ImageMagick set of files into custom properties, >> then, when your app first opens, look to see if ImageMagick is present. If >> not, then have your app save the ImageMagick files in the same folder as >> your app. >> >> I have done that sort of thing before - big files, but works fine. >> >> If you can find a Javascipt library that does what you need, your mission >> would be easy :) >> >> Sent from my iPhone >> >>> On Mar 18, 2017, at 5:03 PM, jonathandlynch at gmail.com wrote: >>> >>> With 10 million pixels, comparing 3 different base colors (RGB), and >> checking both upper and lower bounds, that comes to 60 million comparisons. >> That is an awful lot for a scripted environment. >>> >>> You would need to make an external (and, frankly, the LC instructions on >> making desktop externals do not work for modern versions of LC and Visual >> Studio). >>> >>> For a project, I was able to successfully use ImageMagick as a command >> line image processor. It took a few seconds, but much better than what LC >> took. >>> >>> ImageMagick is pretty flexible and might give you what you need. I was >> using it for green screen image extractions. >>> >>> Sent from my iPhone >>> >>>> On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> >>>> I've got an app that allows the user to display an image using a >> variable number of colours (2-24 colours). In addition, the user can >> specify upper and lower thresholds so that all pixels below a specified >> value are displayed using a colour such as black and all pixels with values >> above a specified value are displayed using a colour such as red. Pixels >> with values between the thresholds are displayed using the specified colour >> range of 2-24 colours. The images can consist of up to 8-10 million pixels, >> they are rectangular and can be in a landscape or portrait orientation. >>>> >>>> Whilst I have this working the code that manages the changing of the >> number and use of colours in an image is rather slow. This is despite me >> using the "repeat for each" loop structure and lock the screen wherever >> possible to get the maximum speed! >>>> >>>> Does anyone have any clever algorithms, code, add-ons, etc. that can do >> this kind of thing in a flash?! >>>> >>>> Thanks >>>> >>>> Peter >>>> -- >>>> Peter Reid >>>> Loughborough, UK >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 19 05:10:50 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 19 Mar 2017 11:10:50 +0200 Subject: Linux 32bit? In-Reply-To: <2348414.qjQt0mAtm0@phil-desktop> References: <3717336.7Dacc3Gx5s@phil-desktop> <2348414.qjQt0mAtm0@phil-desktop> Message-ID: <7f3bd643-4b24-3dd4-56ab-75fb2b32bfe9@gmail.com> Because the LiveCode people have removed a link to the downloads page because they want to force you to submit a e-mail address. I mentioned this in an earlier posting and expressed my opinion that this was not a good idea at all. Go here: http://downloads.livecode.com/livecode/ Richmond. On 3/18/17 9:39 pm, Phil Thane via use-livecode wrote: > OK, I'm back. When I follow the links I end up here: > > https://livecode.org/download-after-sign-up/ > > There is only one button 'Download LiveCode Community'. I assume it then > probes my hardware and comes up with the wrong result because the download is: > > 'LiveCodeCommunityInstaller-8_1_3-Linux.x64' > > -- > Phil Thane > > www.pthane.co.uk > phil at pthane.co.uk > 01767 449759 > 07582 750607 > Twitter @pthane > On Friday, 17 March 2017 13:31:11 GMT Mark Wieder via use-livecode wrote: >> On 03/17/2017 01:24 PM, Phil Thane via use-livecode wrote: >>> Hi, >>> >>> Just downloaded the open source version for Linux, but it comes as x64 >>> only. For some reason I've never figured my old PC doesn't like 64bit >>> distros, the graphics driver just doesn't work and after much messing I >>> decided it was easier to stick with a 32 bit distro. Any advice, short of >>> upgrading my hardware? >> I see both 64- and 32-bit versions on the download page. Are you saying >> that the 32-bit link actually downloads a 64-bit binary? >> >> ...but yes, upgrading the old hardware would be 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 richmondmathewson at gmail.com Sun Mar 19 05:18:51 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 19 Mar 2017 11:18:51 +0200 Subject: Linux 32bit? In-Reply-To: <84705e9f-509e-5a1b-6c18-6863ef4e0585@sonic.net> References: <3717336.7Dacc3Gx5s@phil-desktop> <2348414.qjQt0mAtm0@phil-desktop> <84705e9f-509e-5a1b-6c18-6863ef4e0585@sonic.net> Message-ID: <1902736e-d9b3-1223-c2ba-bf8049073c1d@gmail.com> This just echos what LiveCode have been doing for a long, long time, and I get slammed every time I mention it: They talk "the talk" about FOSS, 'Community' and so on, and listen when it suits them, but don't when it doesn't. They show every sign of pushing LiveCode in a direction which wll exclude a large part of their installed base as well as make things far, far more difficult to use it as a teaching/learning tool, and far less likely to be taken up by 'coders' rather than 'programmers'. The website is set up like a trap: 1. One can find the "Community" link if one scrolls way down the landing page (cunningly placed so it won't appear on any one's screen unless they have a monitor the size of a double bed) and knows what one is looking for. 2. The download the "Community" version of LiveCode (or any other versions for that matter that one may want) is now made almost impossible without submitting personal details. Furthermore to this; having just set out to try to build Android standalones I have found that their "guide" (for Linux at least) is incorrect as one of the links is dead and the other one is outdated. Richmond. On 3/18/17 10:13 pm, Mark Wieder via use-livecode wrote: > On 03/18/2017 12:39 PM, Phil Thane via use-livecode wrote: >> OK, I'm back. When I follow the links I end up here: >> >> https://livecode.org/download-after-sign-up/ > > Ah. > Yeah. > That website makes FOSS look bad. > RR/LC's web presence keeps getting dumbed down. > From hh at hyperhh.de Sun Mar 19 09:50:52 2017 From: hh at hyperhh.de (hh) Date: Sun, 19 Mar 2017 14:50:52 +0100 Subject: Colour Manipulation Message-ID: > Jonathan L. wrote: > It would be amazing if the LC folks created an ImageMagick wrapper so that > we could use it as an external or widget! There is a Java interface (JMagick, see https://www.imagemagick.org/script/api.php) and the brand-new LiveCode FFI for Java. > If you can find a Javascript library that does what you need, your mission > would be easy :) You can handle imagedata in HTML5/canvas2D very similar to LiveCode or use webGL. From livfoss at mac.com Sun Mar 19 12:37:31 2017 From: livfoss at mac.com (Graham Samuel) Date: Sun, 19 Mar 2017 17:37:31 +0100 Subject: Colour Manipulation In-Reply-To: References: <88484B96-8B4E-4FAD-A8F2-F2A080887A54@reidit.co.uk> <12D8E36E-AE9E-431E-AF94-42536E2FC07C@gmail.com> Message-ID: <59614F7E-827C-494F-A6E9-6A78E76BE4FD@mac.com> Yes I agree wholeheartedly with Johnathan - I once (maybe five years ago) wanted to use ImageMagick but was put off, partly because I wanted to put it into a commercial product and couldn?t understanding the licensing rules: in particular, it seemed that I had to give all my users (purchasers) access to IM somehow, including the source code? I could never understand how to do this cleanly. That, and the (to me) astonishingly hard to use interface, coupled with zero support, made me think the whole thing was a non-starter. I wonder what people think now. By ?people? I mean those of us who really don?t want to step at all far out of the LiveCode comfort zone, even to do a bit of command-line tweaking. Oh, and want their solutions cross-platform. Graham > On 19 Mar 2017, at 04:48, Jonathan Lynch via use-livecode wrote: > > It would be amazing if the LC folks created an ImageMagick wrapper so that we could use it as an external or widget! > > Sent from my iPhone > >> On Mar 18, 2017, at 11:30 PM, Mike Bonner via use-livecode wrote: >> >> You could write a small app just to do the processing (or use a web server >> with an lc script to process) break it into chunks, and spawn >> processes/server requests to offload the work maybe. Though imagemagick >> would be a pretty awesome solution if it can be made to do what you need. >> >> On Sat, Mar 18, 2017 at 4:02 PM, Jonathan Lynch via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> You could put the entire ImageMagick set of files into custom properties, >>> then, when your app first opens, look to see if ImageMagick is present. If >>> not, then have your app save the ImageMagick files in the same folder as >>> your app. >>> >>> I have done that sort of thing before - big files, but works fine. >>> >>> If you can find a Javascipt library that does what you need, your mission >>> would be easy :) >>> >>> Sent from my iPhone >>> >>>> On Mar 18, 2017, at 5:03 PM, jonathandlynch at gmail.com wrote: >>>> >>>> With 10 million pixels, comparing 3 different base colors (RGB), and >>> checking both upper and lower bounds, that comes to 60 million comparisons. >>> That is an awful lot for a scripted environment. >>>> >>>> You would need to make an external (and, frankly, the LC instructions on >>> making desktop externals do not work for modern versions of LC and Visual >>> Studio). >>>> >>>> For a project, I was able to successfully use ImageMagick as a command >>> line image processor. It took a few seconds, but much better than what LC >>> took. >>>> >>>> ImageMagick is pretty flexible and might give you what you need. I was >>> using it for green screen image extractions. >>>> >>>> Sent from my iPhone >>>> >>>>> On Mar 18, 2017, at 2:20 PM, Peter Reid via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> I've got an app that allows the user to display an image using a >>> variable number of colours (2-24 colours). In addition, the user can >>> specify upper and lower thresholds so that all pixels below a specified >>> value are displayed using a colour such as black and all pixels with values >>> above a specified value are displayed using a colour such as red. Pixels >>> with values between the thresholds are displayed using the specified colour >>> range of 2-24 colours. The images can consist of up to 8-10 million pixels, >>> they are rectangular and can be in a landscape or portrait orientation. >>>>> >>>>> Whilst I have this working the code that manages the changing of the >>> number and use of colours in an image is rather slow. This is despite me >>> using the "repeat for each" loop structure and lock the screen wherever >>> possible to get the maximum speed! >>>>> >>>>> Does anyone have any clever algorithms, code, add-ons, etc. that can do >>> this kind of thing in a flash?! >>>>> >>>>> Thanks >>>>> >>>>> Peter >>>>> -- >>>>> Peter Reid >>>>> Loughborough, UK >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 19 16:40:36 2017 From: hh at hyperhh.de (hh) Date: Sun, 19 Mar 2017 21:40:36 +0100 Subject: Widget usage examples Message-ID: <2E006422-E8CA-44BF-A2D6-738EB24A1D3D@hyperhh.de> Today I started a new collection, hope some of you come in with "LC-specials". This demo shall show that you need nothing more than a browser widget and a set of image files located locally (e.g. in tmp-folder from stack resources) or from a server in order to have a HQ Ken-Burns-effect show -- just try. The stack is essentially a GUI to an effect implemented by John at Toymakerlabs (http://www.github.com/toymakerlabs/kenburns/). After your parameter settings are done, the stack creates a _self-contained_ htmlText-copy for you, you don't need to collect several files. Just copy, (use a button) drag a browser widget to your stack, name it "KenBurns", paste to a field named "HTML" and set the htmlText of widget "KenBurns" to field "HTML" to have your own show. See the stack and a description here: Widget usage example #1: Ken-Burns-Effect http://forums.livecode.com/viewtopic.php?p=152547#p152547 Using LC 8.1.3/9.0.0-dp6 the stack runs (tested) smoothly a 960x540-show on Mac 10.12 and Win 7/10. On Linux (Mint 181c) I got sadly soon the well-known "linux-something-dialogs". I hope that somebody has on linux more success and/or can help me to work around this bug of the browser widget. From capellan2000 at gmail.com Sun Mar 19 17:05:18 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 19 Mar 2017 17:05:18 -0400 Subject: Linux 32bit? Message-ID: Hi Richmond, on Sun, 19 Mar 2017, Richmond Mathewson wrote: > This just echos what LiveCode have been doing > for a long, long time, and I get slammed every time > I mention it: They talk "the talk" about FOSS, 'Community' > and so on, and listen when it suits them, but don't when it doesn't. I do not understand about what you are talking about. Could you provide very specific examples that explain this? I feel compeled to repeat myself: Probably, this email requirement only wants to create a link between new LiveCode users and the current LiveCode community and company. Does anybody knows how many new LiveCode users stop using this platform after a single glance or after a really short time of use? My educated guess is that many, many new users do not take enough time to try this platform in all it's complexity and extension. Many new user are just looking for a ready made solution for their application needs. In my experience, some users do not want to learn something completely new and unfamiliar. They just want a program with an interface similar to Microsoft Office with added functionalities like scripting and compiling... Maybe, just maybe, LiveCode should offer something like a free short course on a single topic... a topic of interest for this new user in exchange for this email direction. Al From dan at clearvisiontech.com Sun Mar 19 19:17:08 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Sun, 19 Mar 2017 23:17:08 +0000 Subject: Scrolling Menu Message-ID: Greetings! I have created a stack with a column of buttons and set it?s name to the menuName of a button. It?s popuping up perfectly except that if the height of the stack is highter than the screen, it doesn?t scroll with the mouse as a normal menu does. I tried grouping the buttons and added a scrollbar, but that didn?t work. Is there a property I need to set? Or, is there another method or workaround avaliable? Thanks in advance, Dan From jonathandlynch at gmail.com Sun Mar 19 20:19:58 2017 From: jonathandlynch at gmail.com (Jonathan Lynch) Date: Sun, 19 Mar 2017 20:19:58 -0400 Subject: Suggestions regarding a webgl problem Message-ID: I just put the beta version of Augmented Earth on my website. My wife downloaded and installed it. When she got to the map group, it would not display the map. Instead it gets a page saying "your browser does not support WebGL". This seems rather odd to me. As I understand it, the browser widget uses Chrome CEF. This means the code for the browser is fully embedded in the standalone application (or as an external). And that means that the widget's support for webgl should not matter which computer it is on. Can you guys think of any reason why webgl would run in a standalone app on my computer, but not on hers? If anyone wants to test it, the installer is linked at https://www.theaugmentedearth.com/windows-download/ Thanks! -- Do all things with love From capellan2000 at gmail.com Sun Mar 19 20:23:23 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 19 Mar 2017 20:23:23 -0400 Subject: Changing a group visible boundaries by script Message-ID: Hi All, How could I resize the visible boundary of a group (with many controls) to show only the rectangle of the clicked control? For example, in a new stack create 3 or 4 controls (buttons, fields, images or graphics) and group them. Using the pointer tool change the size of the visible boundary of this group to show only a single control of the group (without deleting the others controls). All invisible controls are inside the group but outside the visible boundary of this group. How could I produce the same result by scripting? I hace tried all possible combinations that I am aware, but still could not produce the result that I am looking for. The group content moves itself when I change the boundary. Thanks in advance! Al From dunbarx at aol.com Sun Mar 19 20:39:37 2017 From: dunbarx at aol.com (dunbarx) Date: Sun, 19 Mar 2017 17:39:37 -0700 (PDT) Subject: Scrolling Menu In-Reply-To: References: Message-ID: <1489970377536-4713185.post@n4.nabble.com> I almost know what you are seeing, but not quite. Is it a menu-style button that is in question? Or some other control, like a scrolling table field? And do you mean that the "top" of the stack is above the "top" of the screen? Please explain. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scrolling-Menu-tp4713182p4713185.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Sun Mar 19 20:43:08 2017 From: dunbarx at aol.com (dunbarx) Date: Sun, 19 Mar 2017 17:43:08 -0700 (PDT) Subject: Changing a group visible boundaries by script In-Reply-To: References: Message-ID: <1489970588038-4713186.post@n4.nabble.com> Hi. Untested, but something like: set the rect of grp "yourGroup" to the rect of control "yourControlToShrinkTo" Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Changing-a-group-visible-boundaries-by-script-tp4713184p4713186.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Sun Mar 19 21:02:34 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 19 Mar 2017 19:02:34 -0600 Subject: Changing a group visible boundaries by script In-Reply-To: <1489970588038-4713186.post@n4.nabble.com> References: <1489970588038-4713186.post@n4.nabble.com> Message-ID: When you shrink the group, it does indeed move things around, so you'll need to do the math to adjust the vscroll and hscroll. Something like this.. *set* the hscroll of me to the hscroll of me -(the left of me - the left of the target ) *set* the vscroll of me to the vscroll of me -( the top of me - the top of the target) On Sun, Mar 19, 2017 at 6:43 PM, dunbarx via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi. > > Untested, but something like: > > set the rect of grp "yourGroup" to the rect of control > "yourControlToShrinkTo" > > Craig Newman > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/Changing-a-group-visible-boundaries-by- > script-tp4713184p4713186.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Sun Mar 19 21:22:54 2017 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 20 Mar 2017 01:22:54 +0000 Subject: Scrolling Menu Message-ID: <84784440-5782-4D00-8E04-7CCB67490610@clearvisiontech.com> Craig, It?s that the stack this is acting as the menu is higher (taller) than the screen. So, the bottom of the stack is below the bottom of the screen. Can?t scroll the menu (the stack) to see or select the button that are out of view. Hope that makes sense. -Dan From jacque at hyperactivesw.com Sun Mar 19 21:57:05 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 19 Mar 2017 20:57:05 -0500 Subject: Changing a group visible boundaries by script In-Reply-To: References: Message-ID: <2e888a58-845a-68b2-309c-44fa995e2c05@hyperactivesw.com> On 3/19/17 7:23 PM, Alejandro Tejada via use-livecode wrote: > How could I resize the visible boundary of a group > (with many controls) to show only the rectangle of > the clicked control? Try setting the group's boundingRect to the rect of the control, then setting the rect of the group. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Mar 19 22:05:43 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 19 Mar 2017 21:05:43 -0500 Subject: Scrolling Menu In-Reply-To: <84784440-5782-4D00-8E04-7CCB67490610@clearvisiontech.com> References: <84784440-5782-4D00-8E04-7CCB67490610@clearvisiontech.com> Message-ID: On 3/19/17 8:22 PM, Dan Friedman via use-livecode wrote: > Craig, > > It?s that the stack this is acting as the menu is higher (taller) > than the screen. So, the bottom of the stack is below the bottom of > the screen. Can?t scroll the menu (the stack) to see or select the > button that are out of view. Hope that makes sense. I suspect that Craig didn't know that stacks can be menus. I can't think of an easy way to get the stack to scroll. There may be a way with some intensive scripting, maybe by tracking the mouseLoc and moving all the controls up and down. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Sun Mar 19 22:43:04 2017 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 19 Mar 2017 22:43:04 -0400 Subject: Scrolling Menu In-Reply-To: <84784440-5782-4D00-8E04-7CCB67490610@clearvisiontech.com> References: <84784440-5782-4D00-8E04-7CCB67490610@clearvisiontech.com> Message-ID: <15ae998b912-2ae9-afcf@webprd-m20.mail.aol.com> Ah. Have tried to set the size, top or bottom of the stack window to accommodate? This should be easy to manage based on the parameters of your selection gadgetry. I am not quite clear how you are selecting the various buttons, but a single handler in the card script ought to suffice. Craig -----Original Message----- From: Dan Friedman via use-livecode To: use-livecode Cc: Dan Friedman Sent: Sun, Mar 19, 2017 9:25 pm Subject: Re: Scrolling Menu Craig, It?s that the stack this is acting as the menu is higher (taller) than the screen. So, the bottom of the stack is below the bottom of the screen. Can?t scroll the menu (the stack) to see or select the button that are out of view. Hope that makes sense. -Dan _______________________________________________use-livecode mailing listuse-livecode at lists.runrev.comPlease visit this url to subscribe, unsubscribe and manage your subscription preferences:http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Sun Mar 19 22:39:13 2017 From: dunbarx at aol.com (dunbarx) Date: Sun, 19 Mar 2017 19:39:13 -0700 (PDT) Subject: Scrolling Menu In-Reply-To: References: Message-ID: <1489977553959-4713192.post@n4.nabble.com> "I suspect that Craig didn't know that stacks can be menus. " I did, but did not connect those dots. And as you say, I also do not know how to add a scrollbar to a stack. But a kluge ought to be doable. I will play around for a bit. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scrolling-Menu-tp4713182p4713192.html Sent from the Revolution - User mailing list archive at Nabble.com. From brahma at hindu.org Sun Mar 19 22:54:30 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 20 Mar 2017 02:54:30 +0000 Subject: Widget usage examples In-Reply-To: <2E006422-E8CA-44BF-A2D6-738EB24A1D3D@hyperhh.de> References: <2E006422-E8CA-44BF-A2D6-738EB24A1D3D@hyperhh.de> Message-ID: <8A088215-5559-4D4A-86EF-40BFDADE3BD5@hindu.org> HH you are wonderful! thanks for this contribution. I see someone we know in the cast of characters in the slide show, and I think some eleocarpus fruits (blue Rudraksha) from our place here. How great to see Wilhelm Sanke too. Now, if only we could layer objects on top. I'm seeing more and more apps now that are using this kind of effect as the background, they also use looping video - not animated gif, but actual video: short small looping clips that run behind/ underneath a scrolling group of buttons or rows. It would be super interesting to see how close we can come to this with native LC code. Even with Animation Engine, which I understand (I could be wrong) to be the "state of the art" as far as how good it gets in native LC? we still don't get this level of super smooth transitions/motion. On 3/19/17, 10:40 AM, "use-livecode on behalf of hh via use-livecode" wrote: Today I started a new collection, hope some of you come in with "LC-specials". This demo shall show that you need nothing more than a browser widget and a set of image files located locally (e.g. in tmp-folder from stack resources) or from a server in order to have a HQ Ken-Burns-effect show -- just try. From dunbarx at aol.com Sun Mar 19 23:03:35 2017 From: dunbarx at aol.com (dunbarx) Date: Sun, 19 Mar 2017 20:03:35 -0700 (PDT) Subject: Scrolling Menu In-Reply-To: <1489977553959-4713192.post@n4.nabble.com> References: <1489977553959-4713192.post@n4.nabble.com> Message-ID: <1489979015737-4713194.post@n4.nabble.com> Jacque. I actually never tried using a stack as a menu. So I just did. But in both v6.7 and 8.1.3, if I create and name a new stack, add a single button to it, and set the "menuName" of the button to the stack name, as soon as I click on the button, LC crashes and quits. Was it something I said? Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scrolling-Menu-tp4713182p4713194.html Sent from the Revolution - User mailing list archive at Nabble.com. From brahma at hindu.org Sun Mar 19 23:56:21 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 20 Mar 2017 03:56:21 +0000 Subject: Problem with converting time In-Reply-To: <58cc643d.0a3c810a.dbfe0.d9d2@mx.google.com> References: <7a8dc575-4c06-2fb3-ad7e-97fb91f44c07@fourthworld.com> <58cc643d.0a3c810a.dbfe0.d9d2@mx.google.com> Message-ID: <5ED42966-1B6B-4E7E-A837-54BF2ACD82FB@hindu.org> Hmm, this is odd if you are located in North Carolina?it means your server is off shore, out in the Atlantic, because it is running 3 hours ahead of you. but, unless HostM has now floatilla ISP data center ships, or secret bunkers on the sea floor, something is amiss. Ditto everything Richard already said Thanks Richard! Your prolific penchant for mentoring/documentation is really appreciagted! I saved all that to my reference here? put 1489755600 into tVar convert tVar into dateitems -- on the mac tVar contains 2017,3,17,9,0,0,6 # North Carolina -- on the server tVar contains 2017,3,17,12,0,0,6 # Huh! three hour ahead ? Am I daft? this seem impossible as this indicates 9 am in NC = 12 noon on the server. I had issues a long time ago, because the ISP would spin up an instance of Linux using a disk image-- some generic OS image. They never bothered to reset the time zone for the OS?many ISP tech's assume the user is savvy -- "Well, it's your server, set it up the way you like it.") and will want to do that themselves. But na?ve users don?t give it a second thought and I got these weird results until I checked, like Richard suggested, the time and zone on the server itself and reset them. There was a time when I thought it would be cool to set the time zone of the OS in California to the same time zone as Hawaii (local) but later this turned about to be a bad strategy because, really, like Richard said, you want everything to be "the same moment" around the global, which of course means, the time in each location, for that moment will be different. Any other way? "therein lies madness" I had to master the simple "art" of understanding GMT and local conversions. So if your host is in Texas, make sure the TZ/Time on the "box" is correct for its real, physical locationin Dallas or where ever? and then if you want the web page to "pretend" the server is in NC, you would add time to the output. (or subtract time from your inputs in your scripts.) interesting related resource : https://www.epochconverter.com/ https://www.epochconverter.com/clock BR From jacque at hyperactivesw.com Mon Mar 20 02:23:37 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 20 Mar 2017 01:23:37 -0500 Subject: Scrolling Menu In-Reply-To: <1489979015737-4713194.post@n4.nabble.com> References: <1489977553959-4713192.post@n4.nabble.com> <1489979015737-4713194.post@n4.nabble.com> Message-ID: <0d0639a0-824d-62ad-b627-345768fcc809@hyperactivesw.com> On 3/19/17 10:03 PM, dunbarx via use-livecode wrote: > I actually never tried using a stack as a menu. So I just did. But in both > v6.7 and 8.1.3, if I create and name a new stack, add a single button to it, > and set the "menuName" of the button to the stack name, as soon as I click > on the button, LC crashes and quits. > > Was it something I said? More like something you did. :) I think you put the engine into a loop. Back in the old MetaCard days, when I was just a tot and walked to school uphill both ways (in a blizzard,) this used to be the only way we could make menus. It's still the only way to build a menu that has real icons or other non-text elements. In the menu stack, you put buttons that do stuff, usually in mouseDown or mouseUp handlers. Size the stack to about the width of a real system menu and make it just enclose its contents. The buttons should be edge-to-edge in a vertical column, no borders. Basically you are implementing a hand-made menu object. When the user clicks on the buttons in the stack, they do menu-like things, like calling a handler in the mainstack or whatever. (Your test stack doesn't need any button handlers if you're just testing the display.) Now you need a way to to tell LC to display the stack menu, so you create a new button on the mainstack. That's the one that needs the menuName, so it knows which stack to draw. When the user clicks this mainstack button, it looks up its menuName, finds that stack, and displays it. I wonder what the engine was thinking as it tried to menu-ify a stack that was holding the button in the stack that was calling itself to show the stack that was holding the button in the stack that was calling itself to... Never mind. You'd think there'd be a recursion warning though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Mon Mar 20 02:50:12 2017 From: hh at hyperhh.de (hh) Date: Mon, 20 Mar 2017 07:50:12 +0100 Subject: Widget usage examples Message-ID: <2D3A9C81-0F36-4DBE-8175-91CF92699D01@hyperhh.de> > BR wrote > Now, if only we could layer objects on top. I'm seeing more and more apps now > that are using this kind of effect as the background, they also use looping > video - not animated gif, but actual video: short small looping clips that > run behind/ underneath a scrolling group of buttons or rows. Didn't you see the mouseCoords in the LC field while moving the mouse over the browser? Just do the layering in javascript and call LC by js-handlers. And moreover: As soon as more than 20% of all apps use this it will become boring. The next coloured cat is already entering the main street. The smoothness is due to accessing the hardware not a result of using a special language (although in this case the brilliant combining of CSS and javascript by John at Toymakerlabs is very important): If you try such an effect for example in a virtualbox that has < 50% of your GPU and/or a small amount only of your CPU then you will have stuttering... How should LC achieve all that native accesses and cross platform handling with its small developer group? You compare to results that are done (in sum) by hundreds of specialised developers! From prothero at earthlearningsolutions.org Mon Mar 20 04:18:07 2017 From: prothero at earthlearningsolutions.org (William A. Prothero, Jr) Date: Mon, 20 Mar 2017 09:18:07 +0100 Subject: Linux 32bit? Message-ID: <8iywxyyduiu19pbkg5eid4jt.1489997887964@email.android.com> Something that might draw in New users who want a ready made solution are template stacks for various kinds of apps. Users would get a head start on an app, then customize it for their own purposes. Perhaps this already exists, as I haven't perused the site for awhile. I do know that the short course in making iOS apps, offered a year ago, badly needed proof reading by someone who didn't create the materials. I got discouraged at the time I had to waste and have up. I know there is a lot out thete. Can a new user find it? Bill William Prothero On March 19, 2017, at 10:06 PM, Alejandro Tejada via use-livecode wrote: Hi Richmond, on Sun, 19 Mar 2017, Richmond Mathewson wrote: > This just echos what LiveCode have been doing > for a long, long time, and I get slammed every time > I mention it: They talk "the talk" about FOSS, 'Community' > and so on, and listen when it suits them, but don't when it doesn't. I do not understand about what you are talking about. Could you provide very specific examples that explain this? I feel compeled to repeat myself: Probably, this email requirement only wants to create a link between new LiveCode users and the current LiveCode community and company. Does anybody knows how many new LiveCode users stop using this platform after a single glance or after a really short time of use? My educated guess is that many, many new users do not take enough time to try this platform in all it's complexity and extension. Many new user are just looking for a ready made solution for their application needs. In my experience, some users do not want to learn something completely new and unfamiliar. They just want a program with an interface similar to Microsoft Office with added functionalities like scripting and compiling... Maybe, just maybe, LiveCode should offer something like a free short course on a single topic... a topic of interest for this new user in exchange for this email direction. Al _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Mar 20 05:27:40 2017 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 20 Mar 2017 11:27:40 +0200 Subject: Linux 32bit? In-Reply-To: <8iywxyyduiu19pbkg5eid4jt.1489997887964@email.android.com> References: <8iywxyyduiu19pbkg5eid4jt.1489997887964@email.android.com> Message-ID: Template stacks is an idea that comes up periodically: what is needed is for LiveCode to sort out "Rev-Online" . . . Richmond. On 20/03/17 10:18, William A. Prothero, Jr via use-livecode wrote: > Something that might draw in New users who want a ready made solution are template stacks for various kinds of apps. Users would get a head start on an app, then customize it for their own purposes. Perhaps this already exists, as I haven't perused the site for awhile. I do know that the short course in making iOS apps, offered a year ago, badly needed proof reading by someone who didn't create the materials. I got discouraged at the time I had to waste and have up. > > I know there is a lot out thete. Can a new user find it? > > Bill > > William Prothero > > > On March 19, 2017, at 10:06 PM, Alejandro Tejada via use-livecode wrote: > > Hi Richmond, > > on Sun, 19 Mar 2017, Richmond Mathewson wrote: > >> This just echos what LiveCode have been doing >> for a long, long time, and I get slammed every time >> I mention it: They talk "the talk" about FOSS, 'Community' >> and so on, and listen when it suits them, but don't when it doesn't. > I do not understand about what you are talking about. > Could you provide very specific examples that explain this? > > I feel compeled to repeat myself: > > Probably, this email requirement only wants to create a link between new > LiveCode users and the current LiveCode community and company. > > Does anybody knows how many new LiveCode users stop using this platform > after a single glance or after a really short time of use? > > My educated guess is that many, many new users do not take enough time to > try this platform in all it's complexity and extension. Many new user are > just looking for a ready made solution for their application needs. > > In my experience, some users do not want to learn something completely new > and unfamiliar. They just want a program with an interface similar to > Microsoft Office with added functionalities like scripting and compiling... > > Maybe, just maybe, LiveCode should offer something like a free short course > on a single topic... a topic of interest for this new user in exchange for > this email direction. > > Al > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iphonelagi at gmail.com Mon Mar 20 06:39:29 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 20 Mar 2017 10:39:29 +0000 Subject: Linux 32bit? In-Reply-To: References: <8iywxyyduiu19pbkg5eid4jt.1489997887964@email.android.com> Message-ID: Hi If I didn't know about livecode or Hypercard and stumbled on the main site today - I would be off in a flash. If I landed on the Xojo main page and went to the store the prices and the layout are not eye watering https://xojo.com/store/index.php I actually prefer livecode (I have enterprize B4A and B4I - non terminating and also the Xojo Desktop full) The prices are such that I didn't really have to think about it The fact that with b4A and Xojo you have a $99 startup and be able to upload to the appstore is the easiest way of getting people in). I see Livecode has been sending out emails to get the Business and Indy at 80% or 90% of to people who just signed up for the newsletter - was told by a Foxpro Colleaque - he was ready to buy when LC made the licences terminate after a year. I bring this up again - at least for the Android and IOS versions the fact that the SDKs need updating every year or so is enough to keep someone updating the system - you don't have to grab their balls and pull them by the short and curlies. Hello anyone listening!!! The reason I think many of us "whine" is that we want LC to get the traction it deserves but it seems Marketing isn't half (a 10th?) as good as the Developers. Now i'll go under my Rock. Lagi p.s. The .org site is a disgrace to the LC web developer , and to the people at LC towers who have given it their blessing it no pint in pulling punches. If your going to put up a wbsite look at how the competition does the good bits and the not so good bit and filter the wheat from the chaff. On 20 March 2017 at 09:27, Richmond via use-livecode < use-livecode at lists.runrev.com> wrote: > Template stacks is an idea that comes up periodically: what is needed is > for LiveCode to sort out > "Rev-Online" . . . > > Richmond. > > On 20/03/17 10:18, William A. Prothero, Jr via use-livecode wrote: > >> Something that might draw in New users who want a ready made solution are >> template stacks for various kinds of apps. Users would get a head start on >> an app, then customize it for their own purposes. Perhaps this already >> exists, as I haven't perused the site for awhile. I do know that the short >> course in making iOS apps, offered a year ago, badly needed proof reading >> by someone who didn't create the materials. I got discouraged at the time I >> had to waste and have up. >> >> I know there is a lot out thete. Can a new user find it? >> >> Bill >> >> William Prothero >> >> >> On March 19, 2017, at 10:06 PM, Alejandro Tejada via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Hi Richmond, >> >> on Sun, 19 Mar 2017, Richmond Mathewson wrote: >> >> This just echos what LiveCode have been doing >>> for a long, long time, and I get slammed every time >>> I mention it: They talk "the talk" about FOSS, 'Community' >>> and so on, and listen when it suits them, but don't when it doesn't. >>> >> I do not understand about what you are talking about. >> Could you provide very specific examples that explain this? >> >> I feel compeled to repeat myself: >> >> Probably, this email requirement only wants to create a link between new >> LiveCode users and the current LiveCode community and company. >> >> Does anybody knows how many new LiveCode users stop using this platform >> after a single glance or after a really short time of use? >> >> My educated guess is that many, many new users do not take enough time to >> try this platform in all it's complexity and extension. Many new user are >> just looking for a ready made solution for their application needs. >> >> In my experience, some users do not want to learn something completely new >> and unfamiliar. They just want a program with an interface similar to >> Microsoft Office with added functionalities like scripting and >> compiling... >> >> Maybe, just maybe, LiveCode should offer something like a free short >> course >> on a single topic... a topic of interest for this new user in exchange for >> this email direction. >> >> Al >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From panos.merakos at livecode.com Mon Mar 20 07:07:34 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 20 Mar 2017 11:07:34 +0000 Subject: [ANN] This Week in LiveCode 75 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 #75 here: https://goo.gl/FPpuCs 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 smaclean at madmansoft.com Mon Mar 20 07:27:26 2017 From: smaclean at madmansoft.com (Stephen MacLean) Date: Mon, 20 Mar 2017 07:27:26 -0400 Subject: SFTP with .PPK file In-Reply-To: References: <04F748A3-07D9-4007-9047-3C9A2A62077E@madmansoft.com> <803AC505-0339-4192-85F8-C9476FF26184@madmansoft.com> <5d0cadb0-4ef6-abb2-ba8e-a40008020df0@techstrategies.com.au> <6A0DDAAF-70AF-4AF2-9901-5712427F96F7@madmansoft.com> <5179E021-9D68-40CC-B34D-395E4CF4CD66@madmansoft.com> <3608f172-55b3-83a8-05ff-110cea2db9da@techstrategies.com.au> <999C65B0-06A4-4275-AA01-D6DE9ED40DE8@madmansoft.com> Message-ID: Hi Charles, Thank you so much, that did the trick!!! Best Regards, Steve MacLean > On Mar 18, 2017, at 4:05 AM, Charles Warwick via use-livecode wrote: > > Hi Steve, > > Ahh... it's been a while since I wrote the SSH component of tsNet and I've been unfortunately relying on the documentation I wrote when checking your code! > > tSettings["ssh_private_key"] must provide the "path" to the private key, not the contents of the private key (another documentation issue for me to fix!). > > So your code should actually look like > > on mouseUp > local tHeaders, tResult, tSettings > put ?xxxxxxxx" into tSettings["username"] > put "D:\private.ppk" into tSettings["ssh_private_key"] > tsNetInit > put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult > end mouseUp > > Hopefully that will get it working for you! > > Cheers, > > Charles > > On 17/03/2017 11:36 PM, Stephen MacLean via use-livecode wrote: >> Hi Charles, >> >> Again, thank you for all your help!! >> >> I made the change below, and indeed didn?t get the error any more. However, I still wasn?t getting anything returned. >> >> I ran your debug stack along side it and got this: >> >> Hostname in DNS cache was stale, zapped >> Trying xx.xx.xx.xx... >> TCP_NODELAY set >> Connected to secure.xxxxxxxxxx.us (xx.xx.xx.xx) port 22 (#3) >> SSH MD5 fingerprint: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> SSH authentication methods available: publickey >> Using SSH private key file '-----BEGIN RSA PRIVATE KEY?? >> >> -----END RSA PRIVATE KEY----- >> ' >> SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file >> >> Not sure about were to go from here? I redid the export of the .ppk in PuttyGen and still get the same thing. There is no password protecting the key. >> >> Any further help would be greatly appreciated. >> >> Best Regards, >> >> Steve MacLean >> >>> On Mar 17, 2017, at 5:04 AM, Charles Warwick via use-livecode wrote: >>> >>> Hi Steve, >>> >>> My apologies... there is a mistake in the documentation for tsNet which I only just noticed. >>> >>> The array element for the SSH private key should be tSettings["ssh_private_key"], not tSettings["ssh_priv_key"]. >>> >>> So if you change the following line: >>> >>> put tPrivKey into tSettings["ssh_priv_key"] >>> >>> to: >>> >>> put tPrivKey into tSettings["ssh_private_key"] >>> >>> you should be right to go! >>> >>> (I will get this fixed in the documentation for the next version) >>> >>> Best Regards, >>> >>> Charles >>> >>> >>> On 17/03/2017 6:31 PM, Charles Warwick via use-livecode wrote: >>>> Hi Steve, >>>> >>>> The tsNet command only requires the SSH private key, so that is ok. >>>> >>>> I will test again here to make sure there is nothing else going on in LC 9.0 DP6.... >>>> >>>> Just to check though, I assume your private key does not require a passphrase? >>>> >>>> Another thing to try is to download the following simple stack: >>>> >>>> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode >>>> >>>> Run that stack at the same time as your own, and click "Start Debug" before you try make the SSH connection. >>>> >>>> It should provide some additional debug information that may shed more light on what is actually happening. >>>> >>>> Regards, >>>> >>>> Charles >>>> >>>> >>>> On 16/03/2017 10:24 PM, Stephen MacLean via use-livecode wrote: >>>>> Hi Charles, >>>>> >>>>> One other thing? in looking at the .ppk file, it contains both ?public lines? and "private lines?. All I see in the ssh key file is private. >>>>> >>>>> Not sure that make any difference, but thought I?d mention it. >>>>> >>>>> Best, >>>>> >>>>> Steve >>>>> >>>>>> On Mar 16, 2017, at 7:53 AM, Stephen MacLean via use-livecode wrote: >>>>>> >>>>>> Hi Charles, >>>>>> >>>>>> Thank you so much for reply! >>>>>> >>>>>> I converted the key file as you described, however, I?m still getting the error 67 (authentication error) when running the script. >>>>>> >>>>>> Any further help would be greatly appreciated. >>>>>> >>>>>> Best, >>>>>> >>>>>> Steve MacLean >>>>>> >>>>>>> On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode wrote: >>>>>>> >>>>>>> Hi Steve, >>>>>>> >>>>>>> It looks like you are using a SSH private key in PuTTY format (.ppk). tsNet requires it to be in OpenSSH format. >>>>>>> >>>>>>> That is easy to fix though, you can convert the .ppk with PuttyGen. >>>>>>> >>>>>>> To do this, open PuttyGen and load the .ppk file. Then select "Conversions" -> "Export OpenSSH key". >>>>>>> >>>>>>> Apart from that, just make sure that your call to tsNetGet includes the full path of the file you want to download. >>>>>>> >>>>>>> Hope that helps, >>>>>>> >>>>>>> Cheers, >>>>>>> >>>>>>> Charles >>>>>>> >>>>>>> >>>>>>> On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote: >>>>>>>> Well, still no luck in getting it to work, but getting closer? >>>>>>>> >>>>>>>> I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: >>>>>>>> >>>>>>>> on mouseUp >>>>>>>> local tHeaders, tResult, tSettings >>>>>>>> put ?xxxxxxxx" into tSettings["username"] >>>>>>>> put URL "binfile:D:\private.ppk" into tPrivKey >>>>>>>> put tPrivKey into tSettings["ssh_priv_key"] >>>>>>>> tsNetInit >>>>>>>> put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult >>>>>>>> end mouseUp >>>>>>>> >>>>>>>> However, it returns: >>>>>>>> >>>>>>>> tsneterr: (67) Authentication failure >>>>>>>> >>>>>>>> Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. >>>>>>>> >>>>>>>> Any suggestions?? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> Steve MacLean >>>>>>>> >>>>>>>>> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode wrote: >>>>>>>>> >>>>>>>>> Hi All, >>>>>>>>> >>>>>>>>> Looking to use tsNet to connect to a SFTP server that uses username and a private key instead of a password. The private key is contained in a file. >>>>>>>>> >>>>>>>>> I use WinSCP and can link the connection to the file and can connect fine. >>>>>>>>> >>>>>>>>> In LC, I?ve set the CABundle to the file, but am not sure this is how it?s supposed to work. Getting an auth error when doing tsNetGet. >>>>>>>>> >>>>>>>>> Any help would be appreciated. >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> >>>>>>>>> Steve MacLean >>>>>>>>> >>>>>>>>> PS: Running 9.0 dp6 Business >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at lists.runrev.com >>>>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Mar 20 08:30:12 2017 From: klaus at major-k.de (Klaus major-k) Date: Mon, 20 Mar 2017 13:30:12 +0100 Subject: hilited segmented control DE-hilites if clicked again Message-ID: <59313C5B-3C82-4B25-91A6-C19A2CD14088@major-k.de> Hi friends, see Subject, I, personally, do not see any real case for this behavior. Even Livecode uses a segmented control for the "text align" setting in the property inspector and obviously scripted this control to NOT behave this way. Click the "LEFT" icon a couple of times and see what I mean ;-) So maybe I am missing something and will surely be thankful for any hints and/or insights before I make a bug report/enhancement request for this. Thanks in advance! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From hh at hyperhh.de Mon Mar 20 08:53:07 2017 From: hh at hyperhh.de (hh) Date: Mon, 20 Mar 2017 13:53:07 +0100 Subject: Widget usage examples Message-ID: <5B59BC73-BE3B-44EC-AEBD-DE30DC44DADE@hyperhh.de> Correction. My widget usage example (Ken-Burns-Effekt) http://forums.livecode.com/viewtopic.php?p=152547#p152547 misses one feature I have announced: The images list is currently only working if you use image files from a server (may be also a local server). My variant for local files was, not in the stack yet, to translate local URLs of the form "file://" into a data source of the form "data:image/png;base64,..."). But this doesn't work coreectly, as it is, with the current javascript. As this should be a clean example, the original by John @ Toymakerlabs only changed in parameter settings, this kind of "local loading" is delayed to a future usage example. Sorry. *** But this works for a usage without a (local) server: *** Hit the button "COPY" while the show (adjusted to your taste) is running and write the clipboard (= the htmltext of the widget) out to a local ".html"-file. Then use images from a folder relative to that file (server is also allowed): You can for setting image pathes and descriptions edit the html file at about line 500. Then set the URL of your widget to that local file ("file://..."). From dunbarx at aol.com Mon Mar 20 08:55:03 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 20 Mar 2017 05:55:03 -0700 (PDT) Subject: Scrolling Menu In-Reply-To: <0d0639a0-824d-62ad-b627-345768fcc809@hyperactivesw.com> References: <1489977553959-4713192.post@n4.nabble.com> <1489979015737-4713194.post@n4.nabble.com> <0d0639a0-824d-62ad-b627-345768fcc809@hyperactivesw.com> Message-ID: <1490014503781-4713205.post@n4.nabble.com> Jacque. Aha. I will try using another stack. The user guide does not make this as clear as it might, which is where I went to read up on how to make one. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scrolling-Menu-tp4713182p4713205.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Mon Mar 20 09:06:51 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 20 Mar 2017 06:06:51 -0700 Subject: Scrolling Menu In-Reply-To: References: Message-ID: Dan Friedman wrote: > Greetings! I have created a stack with a column of buttons and > set it?s name to the menuName of a button. It?s popuping up > perfectly except that if the height of the stack is highter than > the screen, it doesn?t scroll with the mouse as a normal menu does. > I tried grouping the buttons and added a scrollbar, but that didn?t > work. Is there a property I need to set? Or, is there another > method or workaround avaliable? Reported March 13, 2008: http://quality.livecode.com/show_bug.cgi?id=6072 I know of no workaround other than to either use a conventional text-based menus or to redesign with a smaller number of menu items. -- 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 klaus at major-k.de Mon Mar 20 10:32:25 2017 From: klaus at major-k.de (Klaus major-k) Date: Mon, 20 Mar 2017 15:32:25 +0100 Subject: hilited segmented control DE-hilites if clicked again In-Reply-To: <59313C5B-3C82-4B25-91A6-C19A2CD14088@major-k.de> References: <59313C5B-3C82-4B25-91A6-C19A2CD14088@major-k.de> Message-ID: Hi all, > Am 20.03.2017 um 13:30 schrieb Klaus major-k via use-livecode : > > Hi friends, > > see Subject, I, personally, do not see any real case for this behavior. > > Even Livecode uses a segmented control for the "text align" setting > in the property inspector and obviously scripted this control to NOT > behave this way. Obviously I was wrong and this is "default" behavior of the segemented control! See below... > Click the "LEFT" icon a couple of times and see what I mean ;-) > > So maybe I am missing something and will surely be thankful for any > hints and/or insights before I make a bug report/enhancement request > for this. The mothership came up with a phantastic compromise, which will make the segemented control even more powerful! See Panos comments here: Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From nabble at mad.pink Mon Mar 20 11:18:34 2017 From: nabble at mad.pink (pink) Date: Mon, 20 Mar 2017 08:18:34 -0700 (PDT) Subject: Problem with converting time In-Reply-To: <5ED42966-1B6B-4E7E-A837-54BF2ACD82FB@hindu.org> References: <1da1b379-43e5-d850-5d98-adcae4352a8e@gmail.com> <681daec9-42f3-0edb-bfa4-332ac47cac73@fourthworld.com> <1e1a9ae0-aaef-0aef-7d9b-91dc2b366f27@fourthworld.com> <2c4b5ea5-8dde-d6d4-a5d2-f716f0644277@gmail.com> <7a8dc575-4c06-2fb3-ad7e-97fb91f44c07@fourthworld.com> <58cc643d.0a3c810a.dbfe0.d9d2@mx.google.com> <5ED42966-1B6B-4E7E-A837-54BF2ACD82FB@hindu.org> Message-ID: <1490023114968-4713208.post@n4.nabble.com> My experience is that HostM's time is set to GMT when I run: put 1489755600 into tVar convert tVar into dateitems put tVar I get: 2017,3,17,13,0,0,6 ----- --- Greg (pink) Miller mad, pink and dangerous to code -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Problem-with-converting-time-tp4713116p4713208.html Sent from the Revolution - User mailing list archive at Nabble.com. From iphonelagi at gmail.com Mon Mar 20 13:00:14 2017 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 20 Mar 2017 17:00:14 +0000 Subject: Suggestions regarding a webgl problem In-Reply-To: References: Message-ID: Hi Jonathan I downloaded it here - running on Windows 7 virtual machine in Parallels. I got the same message. Just a point , I know this is beta but the interface is very ambiguous as to what you have to press to signup etc. Why the two password fields when you only need 1. f you have a download for Mac I could test that. Regards Lagi On 20 March 2017 at 00:19, Jonathan Lynch via use-livecode < use-livecode at lists.runrev.com> wrote: > I just put the beta version of Augmented Earth on my website. My wife > downloaded and installed it. When she got to the map group, it would not > display the map. Instead it gets a page saying "your browser does not > support WebGL". > > This seems rather odd to me. As I understand it, the browser widget uses > Chrome CEF. This means the code for the browser is fully embedded in the > standalone application (or as an external). And that means that the > widget's support for webgl should not matter which computer it is on. > > Can you guys think of any reason why webgl would run in a standalone app on > my computer, but not on hers? > > If anyone wants to test it, the installer is linked at > https://www.theaugmentedearth.com/windows-download/ > > Thanks! > > -- > Do all things with love > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jonathandlynch at gmail.com Mon Mar 20 13:01:59 2017 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Mon, 20 Mar 2017 13:01:59 -0400 Subject: Widget usage examples In-Reply-To: <5B59BC73-BE3B-44EC-AEBD-DE30DC44DADE@hyperhh.de> References: <5B59BC73-BE3B-44EC-AEBD-DE30DC44DADE@hyperhh.de> Message-ID: Hi Herman, To get the base64encoded data to work for an image in the browser widget, don't forget the following line in LC: Replace linefeed with empty in tBase64data When you export an image to a variable and then base64encode the variable, LC adds in extra linefeeds. They have to be removed to work in the browser widget. Does that help? Sent from my iPhone > On Mar 20, 2017, at 8:53 AM, hh via use-livecode wrote: > > Correction. > > My widget usage example (Ken-Burns-Effekt) > http://forums.livecode.com/viewtopic.php?p=152547#p152547 > misses one feature I have announced: > > The images list is currently only working if you use image files from > a server (may be also a local server). My variant for local files was, > not in the stack yet, to translate local URLs of the form "file://" > into a data source of the form "data:image/png;base64,..."). > But this doesn't work coreectly, as it is, with the current javascript. > As this should be a clean example, the original by John @ Toymakerlabs > only changed in parameter settings, this kind of "local loading" is > delayed to a future usage example. Sorry. > > *** But this works for a usage without a (local) server: *** > > Hit the button "COPY" while the show (adjusted to your taste) is running > and write the clipboard (= the htmltext of the widget) out to a local > ".html"-file. Then use images from a folder relative to that file (server > is also allowed): > You can for setting image pathes and descriptions edit the html file at about > line 500. Then set the URL of your widget to that local file ("file://..."). > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jonathandlynch at gmail.com Mon Mar 20 13:12:43 2017 From: jonathandlynch at gmail.com (Jonathan Lynch) Date: Mon, 20 Mar 2017 13:12:43 -0400 Subject: Suggestions regarding a webgl problem In-Reply-To: References: Message-ID: Hi Lagi, Thanks for checking! After doing lots of research, I think the problem is that chrome CEF blocks webgl for certain graphics cards. I am trying to figure out how to set the ignore-gpu-blacklist flag in CEF. As for the app layout - I need to have it provide instructions on first open. Without that, the app is probably rather confusing. It should probably also make the user signup before making the other groups available. I was not planning to show it to other LC users until I have it ready, but this GPU issue is really a problem. What the app does is allow users to enter reports linked to specific geographical locations, and then allow other users who are at those locations to read those reports. It is supposed to feel like Pokemon Go a little bit, but instead of hunting boring Pokemon the user is hunting interesting tidbits of information, like historical events at particular locations, personal stories, treasure hunts, etc... The information will be crowd sourced. Basically, it is trying to turn the whole world into walk-through interactive museum. 'course, it is going to need to work on more than just my personal computer.... sigh. On Mon, Mar 20, 2017 at 1:00 PM, Lagi Pittas via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Jonathan > > I downloaded it here - running on Windows 7 virtual machine in Parallels. I > got the same message. > Just a point , I know this is beta but the interface is very ambiguous as > to what you have to press to signup etc. > > Why the two password fields when you only need 1. > > f you have a download for Mac I could test that. > > Regards Lagi > > On 20 March 2017 at 00:19, Jonathan Lynch via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I just put the beta version of Augmented Earth on my website. My wife > > downloaded and installed it. When she got to the map group, it would not > > display the map. Instead it gets a page saying "your browser does not > > support WebGL". > > > > This seems rather odd to me. As I understand it, the browser widget uses > > Chrome CEF. This means the code for the browser is fully embedded in the > > standalone application (or as an external). And that means that the > > widget's support for webgl should not matter which computer it is on. > > > > Can you guys think of any reason why webgl would run in a standalone app > on > > my computer, but not on hers? > > > > If anyone wants to test it, the installer is linked at > > https://www.theaugmentedearth.com/windows-download/ > > > > Thanks! > > > > -- > > Do all things with love > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Do all things with love From bobsneidar at iotecdigital.com Mon Mar 20 13:37:12 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Mar 2017 17:37:12 +0000 Subject: Scrolling Menu In-Reply-To: <0d0639a0-824d-62ad-b627-345768fcc809@hyperactivesw.com> References: <1489977553959-4713192.post@n4.nabble.com> <1489979015737-4713194.post@n4.nabble.com> <0d0639a0-824d-62ad-b627-345768fcc809@hyperactivesw.com> Message-ID: I seem to remember in the past that I could set the label of a button, then set the htmlText of a character to some html code, and was able to get that to work. I may be misremembering. Bob S > On Mar 19, 2017, at 23:23 , J. Landman Gay via use-livecode wrote: > > More like something you did. :) I think you put the engine into a loop. Back in the old MetaCard days, when I was just a tot and walked to school uphill both ways (in a blizzard,) this used to be the only way we could make menus. It's still the only way to build a menu that has real icons or other non-text elements. From bobsneidar at iotecdigital.com Mon Mar 20 15:42:56 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Mar 2017 19:42:56 +0000 Subject: OT: SQL Integer Math not working Message-ID: Hi all. I have 3 columns all defined as INT(10) unsigned default 0. I attempt this sql statement: update service set totalmileage = endmileage - startmileage I get the error: Error Code: Error Code: 1690. BIGINT UNSIGNED value is out of range in '(`formsgen`.`service`.`endmileage` - `formsgen`.`service`.`startmileage`)' I used a where clause to elminate possible NULL values, as well as excluding records where startmileage or endmileage <= 0. I cannot get around this. WTH?? This should be really straight forward. I also tried casting both as unsigned but no workie. Bob S From bobsneidar at iotecdigital.com Mon Mar 20 15:55:00 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Mar 2017 19:55:00 +0000 Subject: OT: SQL Integer Math not working In-Reply-To: References: Message-ID: NVM. The solution was to first set the result column to signed, then cast the start and end mileage to signed. Turns out one of my techs does not get the concept that when a dialog pops up telling him that he cannot have negative mileage, it doesn't occur to him, "... and therefore I've made an error and need to correct it." Bob S > On Mar 20, 2017, at 12:42 , Bob Sneidar wrote: > > Hi all. > > I have 3 columns all defined as INT(10) unsigned default 0. I attempt this sql statement: > > update service set totalmileage = endmileage - startmileage > > I get the error: Error Code: Error Code: 1690. BIGINT UNSIGNED value is out of range in '(`formsgen`.`service`.`endmileage` - `formsgen`.`service`.`startmileage`)' > > I used a where clause to elminate possible NULL values, as well as excluding records where startmileage or endmileage <= 0. I cannot get around this. WTH?? This should be really straight forward. I also tried casting both as unsigned but no workie. > > Bob S > > > From hh at hyperhh.de Mon Mar 20 16:50:16 2017 From: hh at hyperhh.de (hh) Date: Mon, 20 Mar 2017 21:50:16 +0100 Subject: Widget usage examples Message-ID: Hi Jonathan, the problem is the slowdown/stuttering because base64 encoding increases data sizes by round 30%. To avoid a huge html file I had to use an extra callback for that. The other method I described is simpler and faster anyway and can easily be LC-scripted. As this is a widget usage example, that is more a 'snippet' than an app, I decided to leave it (from the LC part) simple as it is. Anyway thanks for the help. Not sent from an iPhone ;-) From capellan2000 at gmail.com Mon Mar 20 16:56:53 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 20 Mar 2017 16:56:53 -0400 Subject: Linux 32bit? Message-ID: on Mon Mar 20 2017, William A. Prothero, Jr wrote: > Something that might draw in New users who want a ready made solution > are template stacks for various kinds of apps. Users would get a head start > on an app, then customize it for their own purposes. Perhaps this already exists, > as I haven't perused the site for awhile. I do know that the short course in > making iOS apps, offered a year ago, badly needed proof reading by someone > who didn't create the materials. I got discouraged at the time I had to waste > and have up. > I know there is a lot out there. Can a new user find it? More than templates, many new users (notice, I don't call them new developers) are looking for a one click solution. They are looking for something like a Software Appliance, an appliance similar (in principle) to a microwave oven, a kitchen blender or a can opener. Just one click is enough to know if it works. I blame smartphones for the prevalence of this state of mind in new users... While Macintosh (and Commodore, previously) catered to provide tools for creatives (text, Images and music), the generation that is growing with a smartphone and a tablet in their hands act more like consumers, than as creators. Then... How do you deal with this new demographic reality? Providing software as a service... I believe that LiveCode should provide software as service and open a path for new users to become the developers of their own apps, if they feel the inclination to do so. Difficult? Yes... Impossible? Not for professional developers. Al From richmondmathewson at gmail.com Mon Mar 20 17:31:35 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 20 Mar 2017 23:31:35 +0200 Subject: Linux 32bit? In-Reply-To: References: Message-ID: <883ecb69-b34f-5d22-580c-204c0bf41ca7@gmail.com> On 3/20/17 10:56 pm, Alejandro Tejada via use-livecode wrote: > on Mon Mar 20 2017, William A. Prothero, Jr wrote: >> Something that might draw in New users who want a ready made solution I think that "a ready made solution" is a bit low down the pecking order; LiveCode is not, and has never been, a pusher of ready made solutions; what it has been, and I believe it should remain, is an object-based solution with a programming language and IDE all rolled into one that allows one to get going relatively quickly without the headache of a steep learning curve. >> are template stacks for various kinds of apps. Users would get a head > start >> on an app, then customize it for their own purposes. Perhaps this already > exists, >> as I haven't perused the site for awhile. I do know that the short course > in >> making iOS apps, offered a year ago, badly needed proof reading by > someone >> who didn't create the materials. I got discouraged at the time I had to > waste >> and have up. >> I know there is a lot out there. Can a new user find it? > More than templates, many new users (notice, I don't call them new > developers) > are looking for a one click solution. They are looking for something like > a Software Appliance, an appliance similar (in principle) to a microwave > oven, > a kitchen blender or a can opener. Just one click is enough to know if it > works. > > I blame smartphones for the prevalence of this state of mind in new users... > > While Macintosh (and Commodore, previously) catered to provide tools > for creatives (text, Images and music), the generation that is growing > with a smartphone and a tablet in their hands act more like consumers, > than as creators. Then... > How do you deal with this new demographic reality? You can either "be a complete pr*stitute" and produce a totally 'moronic' point-and-click thing: but then you are not catering for creatives/creators, you are catering for people who think that they are being original by glueing pictures out of magazines into a scrapbook --- tedious personal story --- When I was at school I had a 'friend' who used to memorise Monty Python sketches, recite them and then expect applause . . . no input at all. --- end of that --- So, templates do as templates do: templates are a way to go, but templates are never one-click-solutions. There are already what we might term "PowerPoint knock-offs" all over the place, and they're no better than those tired old types one sees knocking around the Valparaiso docks on a Saturday night: LiveCode should NOT go that way. [ Statement of personal interest: I've never been to Valparaiso and have no business interests there. ] In the Heigh-Day of HyperCard HyperCard offered templates and suggestions as to how one might leverage those templates to achieve what one wanted: I don't see anything wrong with LiveCode doing the same thing. However I wonder if the LiveCode people aren't guilty of a spot of snobbery, being scared of being tarred with the "not a real programming language" brush. I wonder if they are not a bit insecure in this respect and are compensating by taking LiveCode in a direction where it will leave "unreal coders" who value LiveCode for what it has inherited from HyperCard and has improved in that same way of dealing with things. We should all be aware of the differences between LiveCode and languages such as C++ and C#. Most of us if we wanted to work with languages with C++ and C# wouldn't be working with LiveCode. Any attempts to make LiveCode more like the C++ brigade and less like what HyperCard was and LiveCode is will probably result in many people who favour LiveCode being what it IS either dropping it or starting to look around for comparable alternatives. If C++ and C# are "real programming languages" then LiveCode is NOT one, and that should be seen as a strength and not a weakness because it is filling a different niche to C++ and C#: and it should not try to expand to occupy the niche occupied by the C++ school of programming languages. SCRATCH is not a "real programming language" but that doesn't seem to stop its use spreading like wildfire in the niche it has been designed for: to the extent that the "blockly' coding thingies are all over the place strapped onto the front of all sorts of other programming efforts. > > Providing software as a service... > I believe that LiveCode should provide software as service No: LiveCode should not provide SOFTWARE, but it should continue providing TOOLS (as in bricks, not sand, cow-dung and straw to make your own bricks) "for new users to become the developers of their own app." > and open > a path for new users to become the developers of their own apps, > if they feel the inclination to do so. "if they feel the inclination to do so." Well, err, obviously . . . . > > Difficult? Yes... Impossible? Not for professional developers. At that point you are just setting up a programming shop where customers pay programmers to do everything for them: I'm sure that LiveCode would be happy to develop your next big thing for you: but if you think they're going to do that with a green icon slapped on the front you are very much mistaken, and LiveCode should only ever consider going down that path if they are prepared to spend an awful lot of development time on bespoke packages and charge accordingly. > > Al > _______________________________________________ > Richmond. From terry.judd at unimelb.edu.au Mon Mar 20 19:15:13 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 20 Mar 2017 23:15:13 +0000 Subject: Hanging indents in LC fields? Message-ID: <9AF22A1C-A20D-48C8-AF09-7572BC638978@unimelb.edu.au> Has anyone used livecode?s text formatting commands to create paragraphs with hanging indents (all lines but the first indented)? If so, any clues on how to do it? Best regards, Terry... From devin_asay at byu.edu Mon Mar 20 19:21:28 2017 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 20 Mar 2017 23:21:28 +0000 Subject: Hanging indents in LC fields? In-Reply-To: <9AF22A1C-A20D-48C8-AF09-7572BC638978@unimelb.edu.au> References: <9AF22A1C-A20D-48C8-AF09-7572BC638978@unimelb.edu.au> Message-ID: You can either set the left margin of the field to some large value like 20, or I believe there is a leftIndent property that you can set for a paragraph. Then set the first indent property of the paragraph to a negative number. Devin Sent from my iPhone > On Mar 20, 2017, at 5:15 PM, Terry Judd via use-livecode wrote: > > Has anyone used livecode?s text formatting commands to create paragraphs with hanging indents (all lines but the first indented)? If so, any clues on how to do it? > > Best regards, > > Terry... > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Mon Mar 20 19:55:26 2017 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Mon, 20 Mar 2017 23:55:26 +0000 Subject: Hanging indents in LC fields? In-Reply-To: References: <9AF22A1C-A20D-48C8-AF09-7572BC638978@unimelb.edu.au> Message-ID: <141C79CD-FDDB-4F53-BE49-44C86B7AD116@unimelb.edu.au> Thanks Devin ? the negative first indent works nicely on normal text! Unfortunately I have an added complication in that I?m working with list style lines as well and list behavior seems to override some of the other indenting stuff. What I?m really trying to do is replace the ?disc? character at the start of each list item with an icon (that varies) by setting the imagesource of the first character in the line (separated from the rest of the text by a tab). By setting the listindent of the line to 0 (or the firstindent to a largish negative value) I can get the icon into position but when a line is long enough to wrap its left margin is aligned with the icon rather than to the right of it. I?m trying to shift that wrapped line to the right but it seems pretty resistant to any of my attempts to move it. Best regards, Terry... On 21/03/2017 10:21 am, "use-livecode on behalf of Devin Asay via use-livecode" wrote: You can either set the left margin of the field to some large value like 20, or I believe there is a leftIndent property that you can set for a paragraph. Then set the first indent property of the paragraph to a negative number. Devin Sent from my iPhone > On Mar 20, 2017, at 5:15 PM, Terry Judd via use-livecode wrote: > > Has anyone used livecode?s text formatting commands to create paragraphs with hanging indents (all lines but the first indented)? If so, any clues on how to do it? > > Best regards, > > Terry... > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Mon Mar 20 23:31:45 2017 From: dunbarx at aol.com (dunbarx) Date: Mon, 20 Mar 2017 20:31:45 -0700 (PDT) Subject: Scrolling Menu In-Reply-To: References: <1489977553959-4713192.post@n4.nabble.com> <1489979015737-4713194.post@n4.nabble.com> <0d0639a0-824d-62ad-b627-345768fcc809@hyperactivesw.com> Message-ID: <1490067105009-4713221.post@n4.nabble.com> So I made a stack that had a group of a dozen buttons piled up vertically. The height of that pile was greater than the height of the stack. I placed another thin button alongside the group that was of the same height as the stack, tall and skinny. The numbers are not important, but I placed this in the skinny button script: on mouseDown put item 2 of the mouseLoc into refLoc repeat until the mouse is up if refLoc - the top of btn "xyz" < 40 then set the top of grp 1 to the top of grp 1 - 1 else set the top of grp 1 to the top of grp 1 + 1 end if end repeat end mouseDown Now I make the stack a stack menu. The issue with a stack menu is that very few messages are sent at all, but "mouseDown" is one that is. The stack remains nice and still but the group scrolls smoothly, up or down depending on where you click vertically. Not rocket science. The stack itself really believes it is a menu style button, even containing a phantom "menuPick" handler for convenience. Now this a real kluge, in that the stack is not scrolling, but rather the controls are, and in the "opposite" direction. This surely can be enhanced to show a scrollbar to emulate a scroll button at the stack level. All the properties of the button, stack and group are accessible; there should be no reason that one could not make a "scrolling stack" Craig So the -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scrolling-Menu-tp4713182p4713221.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Tue Mar 21 00:55:46 2017 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 21 Mar 2017 00:55:46 -0400 Subject: Changing a group visible boundaries by script Message-ID: Hi All, Many Thanks for sharing your code! :D This works great to fold and expand a group. -- Fold a group on mouseUp set the rect of grp 1 to the rect of graphic "NODESTART" of grp 1 set the hscroll of grp 1 to the hscroll of grp 1 -(the left of grp 1 - the left of grc "NODESTART" of grp 1) set the vscroll of grp 1 to the vscroll of grp 1 -( the top of grp 1 - the top of grc "NODESTART" of grp 1) end mouseUp -- Expand a Group on mouseUp set the rect of grp 1 to the formattedrect of grp 1 end mouseUp Al From revdev at pdslabs.net Tue Mar 21 02:41:34 2017 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 20 Mar 2017 23:41:34 -0700 Subject: 'effective' discovery Message-ID: <9418116c-cc6f-1255-953f-a967ea69f484@pdslabs.net> In LC 8.1.3 I just discovered you can say: put the effective properties of control x into tPropsA and it gives you all the effective properties! I knew you could do it with individual props, but didn't know you could get all of them at once. It isn't documented. -- Phil Davis From toolbook at kestner.de Tue Mar 21 05:46:05 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 21 Mar 2017 10:46:05 +0100 Subject: Password field code to share? Message-ID: <001a01d2a227$f688cb30$e39a6190$@kestner.de> Hello, there have been several solutions for password fields around the community (Eric Chatonet, .), but all I have seen so far are not complete (e.g. no copy/paste) or safe in handling or not fully handling all chars. The most comprehensive solution I have seen is based on the input of "rawKeyDown the Key" getting the chars, replacing them by asterisk or bullets and storing the clear password in a custom property. But that solution has a pitfall, it doesn't works with non standard ASCII characters, like German umlaute, because you can't retrieve the original char from numToChar(theKey) for theses non standard ASCII chars. Before inventing the wheel again, I wanted to ask, if anybody has a sophisticated piece of code for handling a password field willing to share? "Ask password" is not a solution for my case because the password field is part of a form. Thanks Tiemo From toolbook at kestner.de Tue Mar 21 06:49:01 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 21 Mar 2017 11:49:01 +0100 Subject: WEIRD: code changes the code instead of a field Message-ID: <003201d2a230$c15d68e0$44183aa0$@kestner.de> Hello, LC 9.0, dp4, Win10: Fiddling around creating a password field I am encountering a very weird phenomenon. Stepping thru my code with the debugger my code modifies my code instead of a field. Recipie: - Create a new stack - Create a new field - Put the code into the field: on keyDown pKey put numToChar(42) into the selectedChunk -- numToChar(42): "*" end keyDown - Apply the code - Set a breakpoint (red dot) at the only statement - Switch to browse tool and enter one character into the field - Use the "step into" for executing the code - See what happened to your code? - The complete line of code is replaced by an asterisk! Funny huh? Any comments? Tiemo From klaus at major-k.de Tue Mar 21 07:11:35 2017 From: klaus at major-k.de (Klaus major-k) Date: Tue, 21 Mar 2017 12:11:35 +0100 Subject: WEIRD: code changes the code instead of a field In-Reply-To: <003201d2a230$c15d68e0$44183aa0$@kestner.de> References: <003201d2a230$c15d68e0$44183aa0$@kestner.de> Message-ID: <47034BBD-1B3F-447D-81ED-1B23049C4BC0@major-k.de> Hi Tiemo, > Am 21.03.2017 um 11:49 schrieb Tiemo Hollmann TB via use-livecode : > > Hello, > > LC 9.0, dp4, Win10: Fiddling around creating a password field I am > encountering a very weird phenomenon. Stepping thru my code with the > debugger my code modifies my code instead of a field. Recipie: > > - Create a new stack > - Create a new field > - Put the code into the field: > > on keyDown pKey > put numToChar(42) into the selectedChunk -- numToChar(42): "*" > end keyDown > > - Apply the code > - Set a breakpoint (red dot) at the only statement > - Switch to browse tool and enter one character into the field > - Use the "step into" for executing the code > - See what happened to your code? > - The complete line of code is replaced by an asterisk! Funny huh? > > Any comments? > > Tiemo "numtochar" and "chartonum" have been deprecated since version 7.x of Liveocde! So please try again with "NumtoNativeChar" and maybe also LC 9 dp6. :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From toolbook at kestner.de Tue Mar 21 07:16:39 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 21 Mar 2017 12:16:39 +0100 Subject: AW: WEIRD: code changes the code instead of a field In-Reply-To: <47034BBD-1B3F-447D-81ED-1B23049C4BC0@major-k.de> References: <003201d2a230$c15d68e0$44183aa0$@kestner.de> <47034BBD-1B3F-447D-81ED-1B23049C4BC0@major-k.de> Message-ID: <003e01d2a234$9d24f610$d76ee230$@kestner.de> Hi Klaus, it's not an issue of numToChar (happens similar with numToNativeChar) but probably of the IDE/Debugger, who thinks that the selectedChunk is my code. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Klaus major-k via use-livecode Gesendet: Dienstag, 21. M?rz 2017 12:12 An: How to use LiveCode Cc: Klaus major-k Betreff: Re: WEIRD: code changes the code instead of a field Hi Tiemo, > Am 21.03.2017 um 11:49 schrieb Tiemo Hollmann TB via use-livecode : > > Hello, > > LC 9.0, dp4, Win10: Fiddling around creating a password field I am > encountering a very weird phenomenon. Stepping thru my code with the > debugger my code modifies my code instead of a field. Recipie: > > - Create a new stack > - Create a new field > - Put the code into the field: > > on keyDown pKey > put numToChar(42) into the selectedChunk -- numToChar(42): "*" > end keyDown > > - Apply the code > - Set a breakpoint (red dot) at the only statement > - Switch to browse tool and enter one character into the field > - Use the "step into" for executing the code > - See what happened to your code? > - The complete line of code is replaced by an asterisk! Funny huh? > > Any comments? > > Tiemo "numtochar" and "chartonum" have been deprecated since version 7.x of Liveocde! So please try again with "NumtoNativeChar" and maybe also LC 9 dp6. :-) 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 Mar 21 07:41:25 2017 From: klaus at major-k.de (Klaus major-k) Date: Tue, 21 Mar 2017 12:41:25 +0100 Subject: WEIRD: code changes the code instead of a field In-Reply-To: <003e01d2a234$9d24f610$d76ee230$@kestner.de> References: <003201d2a230$c15d68e0$44183aa0$@kestner.de> <47034BBD-1B3F-447D-81ED-1B23049C4BC0@major-k.de> <003e01d2a234$9d24f610$d76ee230$@kestner.de> Message-ID: <8F6163A5-5976-4F2D-8483-93CB9D3A0F67@major-k.de> Hi Tiemo, > Am 21.03.2017 um 12:16 schrieb Tiemo Hollmann TB via use-livecode : > > Hi Klaus, > it's not an issue of numToChar (happens similar with numToNativeChar) but > probably of the IDE/Debugger, who thinks that the selectedChunk is my code. OK, that was just a shot in the dark, but please try again with LC 9 DP6 just to be sure. > Tiemo > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Klaus major-k via use-livecode > Gesendet: Dienstag, 21. M?rz 2017 12:12 > An: How to use LiveCode > Cc: Klaus major-k > Betreff: Re: WEIRD: code changes the code instead of a field > > Hi Tiemo, > >> Am 21.03.2017 um 11:49 schrieb Tiemo Hollmann TB via use-livecode > : >> >> Hello, >> >> LC 9.0, dp4, Win10: Fiddling around creating a password field I am >> encountering a very weird phenomenon. Stepping thru my code with the >> debugger my code modifies my code instead of a field. Recipie: >> >> - Create a new stack >> - Create a new field >> - Put the code into the field: >> >> on keyDown pKey >> put numToChar(42) into the selectedChunk -- numToChar(42): "*" >> end keyDown >> >> - Apply the code >> - Set a breakpoint (red dot) at the only statement >> - Switch to browse tool and enter one character into the field >> - Use the "step into" for executing the code >> - See what happened to your code? >> - The complete line of code is replaced by an asterisk! Funny Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From lists at mangomultimedia.com Tue Mar 21 08:16:05 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 21 Mar 2017 12:16:05 +0000 Subject: Password field code to share? In-Reply-To: <001a01d2a227$f688cb30$e39a6190$@kestner.de> References: <001a01d2a227$f688cb30$e39a6190$@kestner.de> Message-ID: On Tue, Mar 21, 2017 at 4:48 AM Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > > there have been several solutions for password fields around the community > (Eric Chatonet, .), but all I have seen so far are not complete (e.g. no > copy/paste) or safe in handling or not fully handling all chars. The most > comprehensive solution I have seen is based on the input of "rawKeyDown the > Key" getting the chars, replacing them by asterisk or bullets and storing > the clear password in a custom property. But that solution has a pitfall, > it > doesn't works with non standard ASCII characters, like German umlaute, > because you can't retrieve the original char from numToChar(theKey) for > theses non standard ASCII chars. > > Before inventing the wheel again, I wanted to ask, if anybody has a > sophisticated piece of code for handling a password field willing to share? > "Ask password" is not a solution for my case because the password field is > part of a form. I use a custom font that displays all characters as a bullet. Benefit is that you continue to access the text property of the field to get the password. I use some code to prevent cut/copy and filter certain types of input. You can tweak as necessary. I have a tutorial with links and an explanation: http://revolution.screenstepslive.com/s/revolution/m/how-to/l/249-creating-a-password-field -- Trevor DeVore From toolbook at kestner.de Tue Mar 21 08:46:47 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 21 Mar 2017 13:46:47 +0100 Subject: AW: Password field code to share? In-Reply-To: References: <001a01d2a227$f688cb30$e39a6190$@kestner.de> Message-ID: <004501d2a241$34a1d240$9de576c0$@kestner.de> Hi Trevor, thanks for sharing this smart solution. Did you ever had any issues loading the font on any platform or is that a near 100% reliable approach? Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Trevor DeVore via use-livecode Gesendet: Dienstag, 21. M?rz 2017 13:16 An: How to use LiveCode Cc: Trevor DeVore Betreff: Re: Password field code to share? On Tue, Mar 21, 2017 at 4:48 AM Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > > there have been several solutions for password fields around the > community (Eric Chatonet, .), but all I have seen so far are not > complete (e.g. no > copy/paste) or safe in handling or not fully handling all chars. The > most comprehensive solution I have seen is based on the input of > "rawKeyDown the Key" getting the chars, replacing them by asterisk or > bullets and storing the clear password in a custom property. But that > solution has a pitfall, it doesn't works with non standard ASCII > characters, like German umlaute, because you can't retrieve the > original char from numToChar(theKey) for theses non standard ASCII > chars. > > Before inventing the wheel again, I wanted to ask, if anybody has a > sophisticated piece of code for handling a password field willing to share? > "Ask password" is not a solution for my case because the password > field is part of a form. I use a custom font that displays all characters as a bullet. Benefit is that you continue to access the text property of the field to get the password. I use some code to prevent cut/copy and filter certain types of input. You can tweak as necessary. I have a tutorial with links and an explanation: http://revolution.screenstepslive.com/s/revolution/m/how-to/l/249-creating-a -password-field -- 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 lists at mangomultimedia.com Tue Mar 21 08:58:32 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 21 Mar 2017 07:58:32 -0500 Subject: Password field code to share? In-Reply-To: <004501d2a241$34a1d240$9de576c0$@kestner.de> References: <001a01d2a227$f688cb30$e39a6190$@kestner.de> <004501d2a241$34a1d240$9de576c0$@kestner.de> Message-ID: On Tue, Mar 21, 2017 at 7:46 AM, Tiemo Hollmann TB via use-livecode < use-livecode at lists.runrev.com> wrote: > thanks for sharing this smart solution. > You're welcome. > Did you ever had any issues loading the font on any platform or is that a > near 100% reliable approach? > I have been using this solution on Mac or Windows for years and I don't recall any issues being reported by customers. -- Trevor DeVore Outcome & ScreenSteps www.outcomeapp.io - www.screensteps.com From toolbook at kestner.de Tue Mar 21 09:46:34 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 21 Mar 2017 14:46:34 +0100 Subject: OT: are chars above ascii 126 allowed in system passwords? Message-ID: <004601d2a249$8e47ace0$aad706a0$@kestner.de> Hello, I have not much knowledge in server administration. My LiveCode program establishes a http connection. In case there is a network proxy server, the user can enter the proxy server credentials in my program to get access to the internet. That works ok so far, but my password field can?t handle German Umlaute ??? and ? (rawKeyCodes 223 and above). From time to time I get a customer feedback that they can?t get thru the proxy even after having entered the credentials in my program. Since they were not sure about their network topography and didn?t wanted to tell me their pw, I still don?t know, if it didn?t worked because they had perhaps Umlaute in their pw or because of any other (network) reason. Before I start fiddling around to get these characters as valid chars I wanted to ask, if somebody knows, if these characters are allowed in system passwords (of proxy servers, etc.) at all. If not I can just go on without these special characters and search for other issues. Thanks for any experience Tiemo From jacque at hyperactivesw.com Tue Mar 21 10:06:56 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 21 Mar 2017 09:06:56 -0500 Subject: Password field code to share? In-Reply-To: <001a01d2a227$f688cb30$e39a6190$@kestner.de> References: <001a01d2a227$f688cb30$e39a6190$@kestner.de> Message-ID: <15af1312c00.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I've used this simple technique for years: < http://runtime-revolution.278305.n4.nabble.com/custom-password-dialogue-tp290635p290644.html > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 21, 2017 4:50:02 AM Tiemo Hollmann TB via use-livecode wrote: > Hello, > > there have been several solutions for password fields around the community > (Eric Chatonet, .), but all I have seen so far are not complete (e.g. no > copy/paste) or safe in handling or not fully handling all chars. The most > comprehensive solution I have seen is based on the input of "rawKeyDown the > Key" getting the chars, replacing them by asterisk or bullets and storing > the clear password in a custom property. But that solution has a pitfall, it > doesn't works with non standard ASCII characters, like German umlaute, > because you can't retrieve the original char from numToChar(theKey) for > theses non standard ASCII chars. > > Before inventing the wheel again, I wanted to ask, if anybody has a > sophisticated piece of code for handling a password field willing to share? > "Ask password" is not a solution for my case because the password field is > part of a form. > > > > Thanks > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Mar 21 10:14:52 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 21 Mar 2017 09:14:52 -0500 Subject: WEIRD: code changes the code instead of a field In-Reply-To: <003201d2a230$c15d68e0$44183aa0$@kestner.de> References: <003201d2a230$c15d68e0$44183aa0$@kestner.de> Message-ID: <15af1386f60.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> There's a problem with the script editor losing track of the defaultstack during debugging. I see it when it tells me that it can't find a control on the card I'm looking at. It's applying all references to itself. I haven't been able to get a consistent recipe to report the problem but since you have one, it would be great if you could submit a report. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 21, 2017 5:53:07 AM Tiemo Hollmann TB via use-livecode wrote: > Hello, > > LC 9.0, dp4, Win10: Fiddling around creating a password field I am > encountering a very weird phenomenon. Stepping thru my code with the > debugger my code modifies my code instead of a field. Recipie: > > - Create a new stack > > - Create a new field > > - Put the code into the field: > > > > on keyDown pKey > > put numToChar(42) into the selectedChunk -- numToChar(42): "*" > > end keyDown > > > > - Apply the code > > - Set a breakpoint (red dot) at the only statement > > - Switch to browse tool and enter one character into the field > > - Use the "step into" for executing the code > > - See what happened to your code? > > - The complete line of code is replaced by an asterisk! Funny huh? > > > > Any comments? > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Mar 21 10:42:50 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 21 Mar 2017 14:42:50 +0000 Subject: 'effective' discovery In-Reply-To: <9418116c-cc6f-1255-953f-a967ea69f484@pdslabs.net> References: <9418116c-cc6f-1255-953f-a967ea69f484@pdslabs.net> Message-ID: <12B2256C-E107-485E-B89B-3B509470658C@iotecdigital.com> I wonder if it is settable. You could simply store the effective properties of an object along with it's script and behavior, as a template so that future new controls could be instanced from the definition. You could create a kind of object oriented system. The stored effective properties would be like the initial object, and you could create new objects dependent on the parent objects, and instances of each. Might be more trouble than it's worth though. Bob S > On Mar 20, 2017, at 23:41 , Phil Davis via use-livecode wrote: > > In LC 8.1.3 I just discovered you can say: > > put the effective properties of control x into tPropsA > > and it gives you all the effective properties! I knew you could do it with individual props, but didn't know you could get all of them at once. > > It isn't documented. > > -- > Phil Davis From bobsneidar at iotecdigital.com Tue Mar 21 10:45:52 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 21 Mar 2017 14:45:52 +0000 Subject: Hanging indents in LC fields? In-Reply-To: <141C79CD-FDDB-4F53-BE49-44C86B7AD116@unimelb.edu.au> References: <9AF22A1C-A20D-48C8-AF09-7572BC638978@unimelb.edu.au> <141C79CD-FDDB-4F53-BE49-44C86B7AD116@unimelb.edu.au> Message-ID: You need to set the indent to something positive (like 20) then set the first line indent to 0. Word and other text processors work the same way. Bob S > On Mar 20, 2017, at 16:55 , Terry Judd via use-livecode wrote: > > Thanks Devin ? the negative first indent works nicely on normal text! Unfortunately I have an added complication in that I?m working with list style lines as well and list behavior seems to override some of the other indenting stuff. > > What I?m really trying to do is replace the ?disc? character at the start of each list item with an icon (that varies) by setting the imagesource of the first character in the line (separated from the rest of the text by a tab). By setting the listindent of the line to 0 (or the firstindent to a largish negative value) I can get the icon into position but when a line is long enough to wrap its left margin is aligned with the icon rather than to the right of it. I?m trying to shift that wrapped line to the right but it seems pretty resistant to any of my attempts to move it. > > Best regards, > > Terry... > > > > On 21/03/2017 10:21 am, "use-livecode on behalf of Devin Asay via use-livecode" wrote: > > You can either set the left margin of the field to some large value like 20, or I believe there is a leftIndent property that you can set for a paragraph. Then set the first indent property of the paragraph to a negative number. > > Devin > > Sent from my iPhone > >> On Mar 20, 2017, at 5:15 PM, Terry Judd via use-livecode wrote: >> >> Has anyone used livecode?s text formatting commands to create paragraphs with hanging indents (all lines but the first indented)? If so, any clues on how to do it? >> >> Best regards, >> >> Terry... >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 21 10:55:23 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 21 Mar 2017 14:55:23 +0000 Subject: Password field code to share? In-Reply-To: <15af1312c00.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <001a01d2a227$f688cb30$e39a6190$@kestner.de> <15af1312c00.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <9025F585-179C-40D4-A258-FCDA09EB8A8C@iotecdigital.com> I also use a hidden field because the underlying password is encrypted, and the actual field being obscured has the hash. I have a little eyeball icon that when mouseDown'd decrypts the underlying password and hides the bullet field. I haven't taken the time to obscure the password AS it's being typed. I suppose I should. I use asterisks because it's easy, but on rawKeyUp you can send a command in time to set the imageSource to a graphic of a bullet (unless you want to deal with the varied bullet symbols for each platform ICK). The RawKeyUp handler can also trap cut/copy. Bob S > On Mar 21, 2017, at 07:06 , J. Landman Gay via use-livecode wrote: > > I've used this simple technique for years: > > < http://runtime-revolution.278305.n4.nabble.com/custom-password-dialogue-tp290635p290644.html >> > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Tue Mar 21 10:58:02 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 21 Mar 2017 14:58:02 +0000 Subject: WEIRD: code changes the code instead of a field In-Reply-To: <47034BBD-1B3F-447D-81ED-1B23049C4BC0@major-k.de> References: <003201d2a230$c15d68e0$44183aa0$@kestner.de> <47034BBD-1B3F-447D-81ED-1B23049C4BC0@major-k.de> Message-ID: say WHUUUT? By deprecated, do you mean not part of the scripting language anymore?? I thought we didn't do that. Bob S > On Mar 21, 2017, at 04:11 , Klaus major-k via use-livecode wrote: > > "numtochar" and "chartonum" have been deprecated since version 7.x of Liveocde! > So please try again with "NumtoNativeChar" and maybe also LC 9 dp6. :-) > > > Best > > Klaus From bobsneidar at iotecdigital.com Tue Mar 21 10:58:53 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 21 Mar 2017 14:58:53 +0000 Subject: WEIRD: code changes the code instead of a field In-Reply-To: <003e01d2a234$9d24f610$d76ee230$@kestner.de> References: <003201d2a230$c15d68e0$44183aa0$@kestner.de> <47034BBD-1B3F-447D-81ED-1B23049C4BC0@major-k.de> <003e01d2a234$9d24f610$d76ee230$@kestner.de> Message-ID: <26C7A984-2DA2-4FFF-8ABA-DD74ADC6EC7C@iotecdigital.com> IT IS when you are debugging! Do you have gRevDevelopment set to true? Bob S > On Mar 21, 2017, at 04:16 , Tiemo Hollmann TB via use-livecode wrote: > > Hi Klaus, > it's not an issue of numToChar (happens similar with numToNativeChar) but > probably of the IDE/Debugger, who thinks that the selectedChunk is my code. > Tiemo From klaus at major-k.de Tue Mar 21 11:03:50 2017 From: klaus at major-k.de (Klaus major-k) Date: Tue, 21 Mar 2017 16:03:50 +0100 Subject: WEIRD: code changes the code instead of a field In-Reply-To: References: <003201d2a230$c15d68e0$44183aa0$@kestner.de> <47034BBD-1B3F-447D-81ED-1B23049C4BC0@major-k.de> Message-ID: <95F192E1-C4DD-43B6-BCF7-6EEB1C3C26DE@major-k.de> Hi Bob, > Am 21.03.2017 um 15:58 schrieb Bob Sneidar via use-livecode : > say WHUUUT? WHUUT! > By deprecated, do you mean not part of the scripting language anymore?? I am not a native english speaker, so you should know better what "deprecated" means! :-D It it obviously still working but may be removed in later versions. > I thought we didn't do that. You and I don't, but the scotsmen do! ;-) > Bob S > >> On Mar 21, 2017, at 04:11 , Klaus major-k via use-livecode wrote: >> >> "numtochar" and "chartonum" have been deprecated since version 7.x of Liveocde! >> So please try again with "NumtoNativeChar" and maybe also LC 9 dp6. :-) Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From toolbook at kestner.de Tue Mar 21 12:40:30 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 21 Mar 2017 17:40:30 +0100 Subject: rawKeyUp/Down give different keys for same char since LC 8 Message-ID: <006001d2a261$daff2f50$90fd8df0$@kestner.de> Hello, Testing on Win 10, IDE: up to LC 6.7 special chars, as German Umlaute gave the same key in rawKeyUp and rawKeyDown, e.g. ? = 39, ? = 59, ? = 96, ? = 91 in LC 8 and 9 the rawKeyUp are still the same, but in rawKeyDown I now get: ? = 228, ? = 252, ? = 246, ? = 223 Is there any plausible explanation or reason why this had to be changed, or is this a bug? I now have found multiple dozens non compatible issues between LC 6 and 8, which I had to fix in my program and am waiting every day for new issue. It?s a pitty, I didn?t noticed all changes in a logfile. Shall I report this as a bug, or is it not worth to wonder? Tiemo From effendi at wanadoo.fr Tue Mar 21 12:44:35 2017 From: effendi at wanadoo.fr (Francis Nugent Dixon) Date: Tue, 21 Mar 2017 17:44:35 +0100 Subject: Printing a formatted file from a LiveCode stack Message-ID: Hi from Beautiful Brittany, I have often printed out data from liveCode stacks - in simple form, write to file ?. etc, and got a file that I could print using Textedit, or Word. However, It was straight text - no tabs, no formatting, nothing. Now I want to build a file to print out with the the minimum of formatting. - Font size, tabs (perhaps), - nothing more. Can't seem to find any examples when searching with Google. I looked at : http://livecode.byu.edu/printing/printing.php and found lots that I like, but need an existing example to finalise my script. I seems to have two options - Print Field or Print Card, and I have a big field to print ! I tried RevPrintField which uses the field's text properties, but found that the text size "x" was too small on the print page, and "x+1" overflowed into 2 lines. No Go There ! I liked the sequence "open printing, etc., but I don't want to print cards, but fields ! I have often solved my problems with an example which I can understand, and then tailor to my needs. Is there any kind soul out there to send me an example, or point one out in the Revonline Browser (it would take me a year to look through the myriad of stacks offered} Thanks -Francis From dochawk at gmail.com Tue Mar 21 13:04:37 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 21 Mar 2017 10:04:37 -0700 Subject: 'effective' discovery In-Reply-To: <12B2256C-E107-485E-B89B-3B509470658C@iotecdigital.com> References: <9418116c-cc6f-1255-953f-a967ea69f484@pdslabs.net> <12B2256C-E107-485E-B89B-3B509470658C@iotecdigital.com> Message-ID: On Tue, Mar 21, 2017 at 7:42 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I wonder if it is settable. That would seem to be *deeply* undesirable. The point of an "effective" property is that it can either be the set property, or the inherited property. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ahsoftware at sonic.net Tue Mar 21 13:14:21 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 21 Mar 2017 10:14:21 -0700 Subject: 'effective' discovery In-Reply-To: References: <9418116c-cc6f-1255-953f-a967ea69f484@pdslabs.net> <12B2256C-E107-485E-B89B-3B509470658C@iotecdigital.com> Message-ID: <14e6ba82-19a1-b090-5066-a667e48db7b7@sonic.net> On 03/21/2017 10:04 AM, Dr. Hawkins via use-livecode wrote: > On Tue, Mar 21, 2017 at 7:42 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I wonder if it is settable. > > > That would seem to be *deeply* undesirable. > > The point of an "effective" property is that it can either be the set > property, or the inherited property. Thanks. I was just about to post the same. Inheritance is a key feature of object-oriented design. -- Mark Wieder ahsoftware at gmail.com From mark at livecode.com Tue Mar 21 14:03:22 2017 From: mark at livecode.com (Mark Waddingham) Date: Tue, 21 Mar 2017 19:03:22 +0100 Subject: rawKeyUp/Down give different keys for same char since LC 8 In-Reply-To: <006001d2a261$daff2f50$90fd8df0$@kestner.de> References: <006001d2a261$daff2f50$90fd8df0$@kestner.de> Message-ID: <1e5667a42be60e183c0ac266c7552d1b@livecode.com> Hi Tiemo, On 2017-03-21 17:40, Tiemo Hollmann TB via use-livecode wrote: > Testing on Win 10, IDE: up to LC 6.7 special chars, as German Umlaute > gave > the same key in rawKeyUp and rawKeyDown, e.g. > > ? = 39, ? = 59, ? = 96, ? = 91 > > in LC 8 and 9 the rawKeyUp are still the same, but in rawKeyDown I now > get: > > ? = 228, ? = 252, ? = 246, ? = 223 > > Is there any plausible explanation or reason why this had to be > changed, or > is this a bug? This looks like a bug to me - the key codes in rawKeyDown and rawKeyUp should match and be the code of the key, not the translated character. Out of interest, what are you using the rawKey messages for? Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From hh at hyperhh.de Tue Mar 21 14:09:46 2017 From: hh at hyperhh.de (hh) Date: Tue, 21 Mar 2017 19:09:46 +0100 Subject: Suggestions regarding a webgl problem Message-ID: <9DC26850-74A3-466D-95C6-3A89C9197DD9@hyperhh.de> Did you already try https://browserleaks.com/webgl ? From ambassador at fourthworld.com Tue Mar 21 14:19:29 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 21 Mar 2017 11:19:29 -0700 Subject: Scrolling Menu In-Reply-To: <1490067105009-4713221.post@n4.nabble.com> References: <1490067105009-4713221.post@n4.nabble.com> Message-ID: <5563d13c-2ba4-f772-b84c-f80a75d11c18@fourthworld.com> dunbarx wrote: > So I made a stack that had a group of a dozen buttons piled up > vertically. ... > Now I make the stack a stack menu. The issue with a stack menu is > that very few messages are sent at all, but "mouseDown" is one that > is. The stack remains nice and still but the group scrolls smoothly, > up or down depending on where you click vertically. Not rocket > science. > > The stack itself really believes it is a menu style button, even > containing a phantom "menuPick" handler for convenience. Using buttons on a stack as menu items dates back to the very earliest days of MetaCard, when the only supported UI was Motif. The various settings available for buttons in support of that role (e.g. "cascade" menustyle) are great for Motif - but not to much for anything else. Thankfully, in the late '90s the engine evolved to include support for menus as textual lists, which most of us use today. Stack menus might be candidates for deprecation were it not for one thing they continue to do well: if you need a graphical menu, such as a gallery picker, the remain an excellent solution. As one expects with menu items, the full scope of event messages we get for buttons used in more conventional contexts have no purpose when used as a menu. MouseDown triggers the selection which closes the menu stack, and menuPick is generated as it is with modern textual buttons to allow handlers to respond to menu selection. This part was interesting to me, since I've not been able to get scrolling happening at all: > Now this a real kluge, in that the stack is not scrolling, but rather > the controls are, and in the "opposite" direction. Can you describe that in more detail? How do you know the content region of the stack isn't scrolling if all of the objects contained within it are scrolling? If you see anything different than what's reported here it may be helpful to add a note to this report, and please include your OS and LC versions: http://quality.livecode.com/show_bug.cgi?id=6072 > This surely can be enhanced to show a scrollbar to emulate a scroll > button at the stack level. All the properties of the button, stack > and group are accessible; there should be no reason that one could > not make a "scrolling stack" We could, but you'll find that once you mouse down on the scrollbar the menu is dismissed. This would be an undesirable behavior for any normal stack, but it's exactly what one wants for menus, which don't normally have scrollbars. I needed a middle ground a while back when designing Devo 4, where I wanted controls to appear temporarily similar to how a menu provides them, but I also wanted the ability of interacting with them more akin to a normal stack. The result is what I call a "flyout pane", and you'll find examples in the Devo 4 plugin available for free at my site: http://fourthworld.com/products/devolution/index.html -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Tue Mar 21 14:41:02 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 21 Mar 2017 20:41:02 +0200 Subject: rawKeyUp/Down give different keys for same char since LC 8 In-Reply-To: <006001d2a261$daff2f50$90fd8df0$@kestner.de> References: <006001d2a261$daff2f50$90fd8df0$@kestner.de> Message-ID: <7c372e46-68dd-048e-7810-181d43edec88@gmail.com> This might be part of the Unicode conformity now present right across LiveCode. hex E4 ( 228 ) is the Unicode address for *?* hex 27 ( 39 ) gives a single apostrophe Testing a German keyboard layout on Mac OS 10.7.5 with LC 7.1.4 I get 39 for *?, 59 for ?, 45 for ?, 91 for ? with both rawKeyDown and rawKeyUp which suggests that both Macintosh and Windows are playing "fast and loose" with Unicode. ** Testing a German keyboard layout on Mac OS 10.7.5 with LC 8.1.3 I get exactly the same results. Doing this: put numToCodePoint(39) into fld "OOT" puts an apostrophe (i.e. the correct unicode char) into fld "OOT". What I do know is this: If I use a German keyboard layout on Macintosh and punch the a umlaut key I get 39, but if I use a US keyboard layout and punch the quotes key (i.e the same physical key) I still get 39 (which IS the correct Unicode char 39), so what this tells me, at least on Mac is that "rawKey" reports the RAW KEY pressed, and not the "COOKED KEY". If I look for the "COOKED KEY" using "keyDown" I get the keyboard layout: with the German keyboard layout I get an umlauted a, and with the US keyboard layout I get an apostrophe. If I get "a bit more clever" and have some sort of code like this: * onkeyUp ZZZ putcodePointToNum(ZZZ) intofld "OOT" endkeyUp The US keyboard layout gives me 39, the German one gives me 228 Share my "pain": https://www.dropbox.com/s/wz87gld034xxx7e/KeyCatcher.livecode.zip?dl=0 Richmond. * * On 3/21/17 6:40 pm, Tiemo Hollmann TB via use-livecode wrote: > Hello, > > Testing on Win 10, IDE: up to LC 6.7 special chars, as German Umlaute gave > the same key in rawKeyUp and rawKeyDown, e.g. > > ? = 39, ? = 59, ? = 96, ? = 91 > > in LC 8 and 9 the rawKeyUp are still the same, but in rawKeyDown I now get: > > ? = 228, ? = 252, ? = 246, ? = 223 > > > > Is there any plausible explanation or reason why this had to be changed, or > is this a bug? > > > > I now have found multiple dozens non compatible issues between LC 6 and 8, > which I had to fix in my program and am waiting every day for new issue. > It?s a pitty, I didn?t noticed all changes in a logfile. > > > > Shall I report this as a bug, or is it not worth to wonder? > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cubist at aol.com Tue Mar 21 19:05:12 2017 From: cubist at aol.com (Quentin Long) Date: Tue, 21 Mar 2017 19:05:12 -0400 Subject: WEIRD: code changes the code instead of a field In-Reply-To: References: Message-ID: <15af31df8ad-59d2-1a529@webstg-a10.mail.aol.com> Message: 13 Date: Tue, 21 Mar 2017 14:58:02 +0000 sez Bob Sneidar > > On Mar 21, 2017, at 04:11 , Klaus major-k via use-livecode wrote: > > > > "numtochar" and "chartonum" have been deprecated since version 7.x of Liveocde! > > So please try again with "NumtoNativeChar" and maybe also LC 9 dp6. :-) > say WHUUUT? By deprecated, do you mean not part of the scripting language anymore?? I thought we didn't do that. "Deprecated" doesn't mean "eradicated". "Deprecated" means "could you please not use this any more? there's better options available now, honest there are!" "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [?http://www.atarmslength.net?]! If you like "At Arm's Length", support it at [?http://www.patreon.com/DarkwingDude?]. From toolbook at kestner.de Wed Mar 22 04:03:16 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 22 Mar 2017 09:03:16 +0100 Subject: AW: rawKeyUp/Down give different keys for same char since LC 8 In-Reply-To: <1e5667a42be60e183c0ac266c7552d1b@livecode.com> References: <006001d2a261$daff2f50$90fd8df0$@kestner.de> <1e5667a42be60e183c0ac266c7552d1b@livecode.com> Message-ID: <001901d2a2e2$c45eee30$4d1cca90$@kestner.de> Hi Mark, I have been using the rawkey handlers for handling a password field, but since this seems to be unreliable for German characters I will rework my password field with Trevors "passwordFont" approach. Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mark Waddingham via use-livecode Gesendet: Dienstag, 21. M?rz 2017 19:03 An: How to use LiveCode Cc: Mark Waddingham Betreff: Re: rawKeyUp/Down give different keys for same char since LC 8 Hi Tiemo, On 2017-03-21 17:40, Tiemo Hollmann TB via use-livecode wrote: > Testing on Win 10, IDE: up to LC 6.7 special chars, as German Umlaute > gave the same key in rawKeyUp and rawKeyDown, e.g. > > ? = 39, ? = 59, ? = 96, ? = 91 > > in LC 8 and 9 the rawKeyUp are still the same, but in rawKeyDown I now > get: > > ? = 228, ? = 252, ? = 246, ? = 223 > > Is there any plausible explanation or reason why this had to be > changed, or is this a bug? This looks like a bug to me - the key codes in rawKeyDown and rawKeyUp should match and be the code of the key, not the translated character. Out of interest, what are you using the rawKey messages for? Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed Mar 22 04:06:05 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 22 Mar 2017 09:06:05 +0100 Subject: AW: WEIRD: code changes the code instead of a field In-Reply-To: <15af1386f60.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <003201d2a230$c15d68e0$44183aa0$@kestner.de> <15af1386f60.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <001a01d2a2e3$28794dc0$796be940$@kestner.de> Hi Jacque, I have filed this bug with an easy one liner recipe, but now have seen, that it is known since 2013 in the QC. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode Gesendet: Dienstag, 21. M?rz 2017 15:15 An: How to use LiveCode Cc: J. Landman Gay Betreff: Re: WEIRD: code changes the code instead of a field There's a problem with the script editor losing track of the defaultstack during debugging. I see it when it tells me that it can't find a control on the card I'm looking at. It's applying all references to itself. I haven't been able to get a consistent recipe to report the problem but since you have one, it would be great if you could submit a report. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 21, 2017 5:53:07 AM Tiemo Hollmann TB via use-livecode wrote: > Hello, > > LC 9.0, dp4, Win10: Fiddling around creating a password field I am > encountering a very weird phenomenon. Stepping thru my code with the > debugger my code modifies my code instead of a field. Recipie: > > - Create a new stack > > - Create a new field > > - Put the code into the field: > > > > on keyDown pKey > > put numToChar(42) into the selectedChunk -- numToChar(42): "*" > > end keyDown > > > > - Apply the code > > - Set a breakpoint (red dot) at the only statement > > - Switch to browse tool and enter one character into the field > > - Use the "step into" for executing the code > > - See what happened to your code? > > - The complete line of code is replaced by an asterisk! Funny huh? > > > > Any comments? > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Wed Mar 22 07:41:41 2017 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 22 Mar 2017 07:41:41 -0400 Subject: Producing a list of duplicates Message-ID: Anybody have a good method for searching a list of items for duplicates and listing those duplicates in a variable? I have a bunch of data records that contain email addresses. I need to search through that list and produce an list so those duplicates can be acted upon. As always, your input is greatly appreciated! SKIP From mark at livecode.com Wed Mar 22 08:25:16 2017 From: mark at livecode.com (Mark Waddingham) Date: Wed, 22 Mar 2017 13:25:16 +0100 Subject: Linux =?UTF-8?Q?=33=32bit=3F?= In-Reply-To: <2348414.qjQt0mAtm0@phil-desktop> References: <3717336.7Dacc3Gx5s@phil-desktop> <2348414.qjQt0mAtm0@phil-desktop> Message-ID: <02a620503e7a4c59b19b98bbc4376612@livecode.com> Hi Phil, On 2017-03-18 20:39, Phil Thane via use-livecode wrote: > OK, I'm back. When I follow the links I end up here: > > https://livecode.org/download-after-sign-up/ > > There is only one button 'Download LiveCode Community'. I assume it > then > probes my hardware and comes up with the wrong result because the > download is: > > 'LiveCodeCommunityInstaller-8_1_3-Linux.x64' Yes - indeed - that would be a bug. I've filed a report about it here: http://quality.livecode.com/show_bug.cgi?id=19454 So, hopefully we will get it corrected soon. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From toolbook at kestner.de Wed Mar 22 08:25:12 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 22 Mar 2017 13:25:12 +0100 Subject: AW: Producing a list of duplicates In-Reply-To: References: Message-ID: <005a01d2a307$5aebb120$10c31360$@kestner.de> I would just - Sort the list by email - Looping thru the list - Comparing the current email with the previous - putting duplicates after the variable Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Skip Kimpel via use-livecode Gesendet: Mittwoch, 22. M?rz 2017 12:42 An: How to use LiveCode Cc: Skip Kimpel Betreff: Producing a list of duplicates Anybody have a good method for searching a list of items for duplicates and listing those duplicates in a variable? I have a bunch of data records that contain email addresses. I need to search through that list and produce an list so those duplicates can be acted upon. As always, your input is greatly appreciated! SKIP _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Wed Mar 22 08:43:11 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 22 Mar 2017 08:43:11 -0400 Subject: Producing a list of duplicates In-Reply-To: References: Message-ID: You will find that and SO MUCH MORE in the incredible resource MASTER LIBRARY, by Michael Doub. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 ~Roger On Wed, Mar 22, 2017 at 7:41 AM, Skip Kimpel via use-livecode < use-livecode at lists.runrev.com> wrote: > Anybody have a good method for searching a list of items for duplicates and > listing those duplicates in a variable? > > I have a bunch of data records that contain email addresses. I need to > search through that list and produce an list so those duplicates can be > acted upon. > > As always, your input is greatly appreciated! > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bernd.niggemann at uni-wh.de Wed Mar 22 10:37:11 2017 From: bernd.niggemann at uni-wh.de (BNig) Date: Wed, 22 Mar 2017 07:37:11 -0700 (PDT) Subject: [ANN] tinyDictionary Message-ID: <1490193431470-4713256.post@n4.nabble.com> I uploaded a compact version of the dictionaries for LC 8.1 and up to Livecodeshare http://livecodeshare.runrev.com/stack/825/tinyDictionary_0_7_7_7 this is also accessible via "Sample Stacks" from inside LC. it is the result of Mike Kerners push to have a small footprint dictionary. James Hale contributed to tinyDict, thanks James. Comments bug reports either on the use-list or in the forum http://forums.livecode.com/viewtopic.php?f=67&t=28731&p=152646#p152646 or mail me. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256.html Sent from the Revolution - User mailing list archive at Nabble.com. From irog at mac.com Wed Mar 22 11:05:36 2017 From: irog at mac.com (Roger Guay) Date: Wed, 22 Mar 2017 08:05:36 -0700 Subject: [ANN] tinyDictionary In-Reply-To: <1490193431470-4713256.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: I love it! Thanks!! Roger > On Mar 22, 2017, at 7:37 AM, BNig via use-livecode wrote: > > I uploaded a compact version of the dictionaries for LC 8.1 and up to > Livecodeshare > > http://livecodeshare.runrev.com/stack/825/tinyDictionary_0_7_7_7 > > this is also accessible via "Sample Stacks" from inside LC. > > it is the result of Mike Kerners push to have a small footprint dictionary. > > James Hale contributed to tinyDict, thanks James. > > Comments bug reports either on the use-list or in the forum > > http://forums.livecode.com/viewtopic.php?f=67&t=28731&p=152646#p152646 > > or mail me. > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Wed Mar 22 11:12:26 2017 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 22 Mar 2017 11:12:26 -0400 Subject: [ANN] tinyDictionary In-Reply-To: References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: Great job! Downloaded and already using it. SKIP On Wed, Mar 22, 2017 at 11:05 AM, Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > I love it! Thanks!! > > Roger > > > On Mar 22, 2017, at 7:37 AM, BNig via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I uploaded a compact version of the dictionaries for LC 8.1 and up to > > Livecodeshare > > > > http://livecodeshare.runrev.com/stack/825/tinyDictionary_0_7_7_7 > > > > this is also accessible via "Sample Stacks" from inside LC. > > > > it is the result of Mike Kerners push to have a small footprint > dictionary. > > > > James Hale contributed to tinyDict, thanks James. > > > > Comments bug reports either on the use-list or in the forum > > > > http://forums.livecode.com/viewtopic.php?f=67&t=28731&p=152646#p152646 > > > > or mail me. > > > > Kind regards > > Bernd > > > > > > > > -- > > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/ANN-tinyDictionary-tp4713256.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From roger.e.eller at sealedair.com Wed Mar 22 11:20:57 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 22 Mar 2017 11:20:57 -0400 Subject: [ANN] tinyDictionary In-Reply-To: <1490193431470-4713256.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: Outstanding! Much better than the built-in webpage-like dictionary. Great job! On Wed, Mar 22, 2017 at 10:37 AM, BNig via use-livecode < use-livecode at lists.runrev.com> wrote: > I uploaded a compact version of the dictionaries for LC 8.1 and up to > Livecodeshare > > http://livecodeshare.runrev.com/stack/825/tinyDictionary_0_7_7_7 > > this is also accessible via "Sample Stacks" from inside LC. > > it is the result of Mike Kerners push to have a small footprint dictionary. > > James Hale contributed to tinyDict, thanks James. > > Comments bug reports either on the use-list or in the forum > > http://forums.livecode.com/viewtopic.php?f=67&t=28731&p=152646#p152646 > > or mail me. > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/ANN-tinyDictionary-tp4713256.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From th.douez at gmail.com Wed Mar 22 11:23:06 2017 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 22 Mar 2017 16:23:06 +0100 Subject: [ANN] tinyDictionary In-Reply-To: <1490193431470-4713256.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: Hallo Bernd, Great job, as usual ! Kind regards, Thierry 2017-03-22 15:37 GMT+01:00 BNig via use-livecode < use-livecode at lists.runrev.com>: > I uploaded a compact version of the dictionaries for LC 8.1 and up to > Livecodeshare > > http://livecodeshare.runrev.com/stack/825/tinyDictionary_0_7_7_7 > > this is also accessible via "Sample Stacks" from inside LC. > > it is the result of Mike Kerners push to have a small footprint dictionary. > > James Hale contributed to tinyDict, thanks James. > > Comments bug reports either on the use-list or in the forum > > http://forums.livecode.com/viewtopic.php?f=67&t=28731&p=152646#p152646 > > or mail me. > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/ANN-tinyDictionary-tp4713256.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- ------------------------------------------------ Thierry Douez - sunny-tdz.com sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage From bonnmike at gmail.com Wed Mar 22 11:30:10 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 22 Mar 2017 09:30:10 -0600 Subject: [ANN] tinyDictionary In-Reply-To: References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: This is awesome! Quick question (feature request) would it be difficult to add a dictionary selector? So if I have 13 versions of lc installed, I could pick which dict to look at? (and make it work as a standalone at the same time?) On Wed, Mar 22, 2017 at 9:23 AM, Thierry Douez via use-livecode < use-livecode at lists.runrev.com> wrote: > Hallo Bernd, > > > Great job, as usual ! > > Kind regards, > > Thierry > > > 2017-03-22 15:37 GMT+01:00 BNig via use-livecode < > use-livecode at lists.runrev.com>: > > > I uploaded a compact version of the dictionaries for LC 8.1 and up to > > Livecodeshare > > > > http://livecodeshare.runrev.com/stack/825/tinyDictionary_0_7_7_7 > > > > this is also accessible via "Sample Stacks" from inside LC. > > > > it is the result of Mike Kerners push to have a small footprint > dictionary. > > > > James Hale contributed to tinyDict, thanks James. > > > > Comments bug reports either on the use-list or in the forum > > > > http://forums.livecode.com/viewtopic.php?f=67&t=28731&p=152646#p152646 > > > > or mail me. > > > > Kind regards > > Bernd > > > > > > > > -- > > View this message in context: http://runtime-revolution. > > 278305.n4.nabble.com/ANN-tinyDictionary-tp4713256.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > ------------------------------------------------ > Thierry Douez - sunny-tdz.com > sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Mar 22 11:44:36 2017 From: bernd.niggemann at uni-wh.de (BNig) Date: Wed, 22 Mar 2017 08:44:36 -0700 (PDT) Subject: [ANN] tinyDictionary In-Reply-To: References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: <1490197476892-4713262.post@n4.nabble.com> Hi Mike, Mike Bonner via use-livecode wrote > This is awesome! Quick question (feature request) would it be difficult > to > add a dictionary selector? So if I have 13 versions of lc installed, I > could pick which dict to look at? (and make it work as a standalone at the > same time?) If you use tinyDictionary as a plugin then it gathers the current dictionary of the LC version you use. But it only works for Livecode 8.1 and up because it leverages the good work of the Livecode people in "revIDEDocumentationLibrary". It pulls the whole array and dissects it. Of course you can have more than one LC version open and access tinyDict via the plugins menu in each of these. It would always be the current dictionary of that version. If you have a special use case for standalones please email me so I understand better what you would like to do. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713262.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Wed Mar 22 12:25:21 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 22 Mar 2017 09:25:21 -0700 Subject: Producing a list of duplicates In-Reply-To: References: Message-ID: On Wed, Mar 22, 2017 at 4:41 AM, Skip Kimpel via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a bunch of data records that contain email addresses. I need to > search through that list and produce an list so those duplicates can be > acted upon. > repeat for each line theLin in theList add 1 to theVals[theLin] if theVals[theLin] > 1 then put theVals[theLin] into theDups[theLin] end if end repeat theDups has duplicated addresses as it's keys, and the number of dups as the values Or, you could extend and parse the actual email address out of each line, and use *that* as the key, to catch situations like john at doe.com "John Doe" "Johnathan Doe" In that case, I'd probably put put theLin into theDups[theEmail][theVals[theEmail]] so that you get a list for each type -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bonnmike at gmail.com Wed Mar 22 12:30:08 2017 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 22 Mar 2017 10:30:08 -0600 Subject: [ANN] tinyDictionary In-Reply-To: <1490197476892-4713262.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> <1490197476892-4713262.post@n4.nabble.com> Message-ID: Mainly I was thinking it would be cool to have a standalone that doesn't need the ide to be open. Choose the folder with the version you want to look at, perhaps even load a second standalone and point to a different folder for a compare and contrast. (Not sure if it would work, but I noticed in the code that a message is sent to rev stack to do the hard work.. Could a message like this be sent to a stack that hasn't been opened yet in the chosen folder, without all the other ide stuff running? Think I'll poke around and try. ) No worry about this though, because as you say.. I can just open whatever versions I wish and access the plugin from them. On Wed, Mar 22, 2017 at 9:44 AM, BNig via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike, > > > Mike Bonner via use-livecode wrote > > This is awesome! Quick question (feature request) would it be difficult > > to > > add a dictionary selector? So if I have 13 versions of lc installed, I > > could pick which dict to look at? (and make it work as a standalone at > the > > same time?) > > If you use tinyDictionary as a plugin then it gathers the current > dictionary > of the LC version you use. But it only works for Livecode 8.1 and up > because > it leverages the good work of the Livecode people in > "revIDEDocumentationLibrary". It pulls the whole array and dissects it. Of > course you can have more than one LC version open and access tinyDict via > the plugins menu in each of these. It would always be the current > dictionary > of that version. > > If you have a special use case for standalones please email me so I > understand better what you would like to do. > > Kind regards > Bernd > > > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713262.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Wed Mar 22 14:27:29 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 22 Mar 2017 20:27:29 +0200 Subject: [ANN] tinyDictionary In-Reply-To: <1490193431470-4713256.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: That's going to go a long way to solving the Linux problem. Thanks, Bernd. On 3/22/17 4:37 pm, BNig via use-livecode wrote: > I uploaded a compact version of the dictionaries for LC 8.1 and up to > Livecodeshare > > http://livecodeshare.runrev.com/stack/825/tinyDictionary_0_7_7_7 > > this is also accessible via "Sample Stacks" from inside LC. > > it is the result of Mike Kerners push to have a small footprint dictionary. > > James Hale contributed to tinyDict, thanks James. > > Comments bug reports either on the use-list or in the forum > > http://forums.livecode.com/viewtopic.php?f=67&t=28731&p=152646#p152646 > > or mail me. > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Wed Mar 22 15:01:05 2017 From: tom at makeshyft.com (Tom Glod) Date: Wed, 22 Mar 2017 15:01:05 -0400 Subject: Producing a list of duplicates In-Reply-To: References: Message-ID: MASTER LIBRARY? how did I miss that....thanks for posting it :) On Wed, Mar 22, 2017 at 12:25 PM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Wed, Mar 22, 2017 at 4:41 AM, Skip Kimpel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I have a bunch of data records that contain email addresses. I need to > > search through that list and produce an list so those duplicates can be > > acted upon. > > > > repeat for each line theLin in theList > > add 1 to theVals[theLin] > > if theVals[theLin] > 1 then > > put theVals[theLin] into theDups[theLin] > > end if > > end repeat > > > theDups has duplicated addresses as it's keys, and the number of dups as > the values > > Or, you could extend and parse the actual email address out of each line, > and use *that* as the key, to catch situations like > > john at doe.com > > "John Doe" > "Johnathan Doe" > > In that case, I'd probably put > > put theLin into theDups[theEmail][theVals[theEmail]] > > so that you get a list for each type > > -- > 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 > -- *Tom Glod* CEO @ *MakeShyft R.D.A* - www.makeshyft.com Developer of *U.M.P* - www.IamUMP.com From ahsoftware at sonic.net Wed Mar 22 15:06:31 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 22 Mar 2017 12:06:31 -0700 Subject: [ANN] tinyDictionary In-Reply-To: <1490193431470-4713256.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: On 03/22/2017 07:37 AM, BNig via use-livecode wrote: > I uploaded a compact version of the dictionaries for LC 8.1 and up to > Livecodeshare Very nice. Thanks. Works well for me on linux. What means "unable to create preferences folder"? -- Mark Wieder ahsoftware at gmail.com From skiplondon at gmail.com Wed Mar 22 15:22:37 2017 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 22 Mar 2017 15:22:37 -0400 Subject: Producing a list of duplicates In-Reply-To: References: Message-ID: Thanks for everybody's advice.... yes, I totally forgot to check the Master Library! That thing has saved me so many times. SKIP On Wed, Mar 22, 2017 at 3:01 PM, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > MASTER LIBRARY? how did I miss that....thanks for posting it :) > > On Wed, Mar 22, 2017 at 12:25 PM, Dr. Hawkins via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > On Wed, Mar 22, 2017 at 4:41 AM, Skip Kimpel via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > I have a bunch of data records that contain email addresses. I need to > > > search through that list and produce an list so those duplicates can be > > > acted upon. > > > > > > > repeat for each line theLin in theList > > > > add 1 to theVals[theLin] > > > > if theVals[theLin] > 1 then > > > > put theVals[theLin] into theDups[theLin] > > > > end if > > > > end repeat > > > > > > theDups has duplicated addresses as it's keys, and the number of dups as > > the values > > > > Or, you could extend and parse the actual email address out of each line, > > and use *that* as the key, to catch situations like > > > > john at doe.com > > > > "John Doe" > > "Johnathan Doe" > > > > In that case, I'd probably put > > > > put theLin into theDups[theEmail][theVals[theEmail]] > > > > so that you get a list for each type > > > > -- > > 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 > > > > > > -- > *Tom Glod* > > CEO @ *MakeShyft R.D.A* - www.makeshyft.com > > > > Developer of *U.M.P* - www.IamUMP.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bernd.niggemann at uni-wh.de Wed Mar 22 15:46:36 2017 From: bernd.niggemann at uni-wh.de (BNig) Date: Wed, 22 Mar 2017 12:46:36 -0700 (PDT) Subject: [ANN] tinyDictionary In-Reply-To: References: <1490193431470-4713256.post@n4.nabble.com> Message-ID: <1490211996229-4713269.post@n4.nabble.com> > On 03/22/2017 07:37 AM, BNig via use-livecode wrote: >> I uploaded a compact version of the dictionaries for LC 8.1 and up to >> Livecodeshare > > Very nice. Thanks. Works well for me on linux. > What means "unable to create preferences folder"? > > -- > Mark Wieder Hi Mark, tinyDictionary tries on preopenCard -> loadPreferences to find via put specialFolderPath("support") into tFolderSupport an "application support" folder and there a "LcTinyDict" folder where it tries to create a txt file "tinyPrefs.txt" This is in the card script. If it can not create the folder then the alert appears. I don't know anything about Linux and where that folder might be. Or may be it is a permission thing? TinyDict saves on "closeCard" to the preference file the current state to be able to restore the state on next start. It does not save itself, hence the prefs file. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713269.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobsneidar at iotecdigital.com Wed Mar 22 16:29:05 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 22 Mar 2017 20:29:05 +0000 Subject: New Iteration of cleanASCII Message-ID: <23D014EC-0061-46F2-A62C-E7EE1C4A569B@iotecdigital.com> Hi all. A while back I wrote a function that would remove all characters from a string except for 0-9, a-z, and A-Z. I have updated it to also include an arguement for other allowed characters, and true or false for line breaks and or carriage returns. Note the code below. What I need is a list of reserved regex characters, like backslash (\) and whatnot. Once tuned up it can be added to the Master Library (I think an older version may be there already). function cleanASCII pString, pAllowedChars, pAllowBreaks put "*|\" into lReservedChars put pAllowedChars into tCharList repeat for each char tChar in pAllowedChars if tChar is in lReservedChars then replace tChar with "\" & tChar in tCharList end repeat if pAllowBreaks is empty then put false into pAllowBreaks put "[ 0-9A-Za-z]" into tMatchText put tCharList after char 2 of tMatchText if pAllowBreaks then put "\r\n" after char 1 of tMatchText end if repeat for each character theChar in pString /* if theChar is "|" then put theChar after cleanString -- special case for regex reserved char next repeat end if */ if matchtext(theChar, tMatchText) is true then put theChar after cleanString end if end repeat return cleanString end cleanASCII Bob S From dochawk at gmail.com Wed Mar 22 17:23:33 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 22 Mar 2017 14:23:33 -0700 Subject: New Iteration of cleanASCII In-Reply-To: <23D014EC-0061-46F2-A62C-E7EE1C4A569B@iotecdigital.com> References: <23D014EC-0061-46F2-A62C-E7EE1C4A569B@iotecdigital.com> Message-ID: Be sure to use an appropriate video card: Markham, ON - In a joint announcement today the Nethack Devteam announced a new version of the popular text based game, version 3.4.1, but the big announcement came from ATI which announced a new video card, the ATI Radeon 9500 ASC, optimized for ASCII gaming. . . . http://www.bbspot.com/News/2003/02/ati_ascii.html :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bobsneidar at iotecdigital.com Wed Mar 22 18:21:04 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 22 Mar 2017 22:21:04 +0000 Subject: New Iteration of cleanASCII In-Reply-To: <23D014EC-0061-46F2-A62C-E7EE1C4A569B@iotecdigital.com> References: <23D014EC-0061-46F2-A62C-E7EE1C4A569B@iotecdigital.com> Message-ID: <8D2B5F27-F6B3-411A-86C8-8AFC5CE258E8@iotecdigital.com> cleanASCII(pString, pModeList, pCustomChars) Belay my last. I refactored the whole thing to be much more robust. Pass a string, a modelist and a custom list. This will act as a simple regex character filter for any string you pass it. (Great for filtering out hidden/non-printing characters!) If you only pass it a string and no arguements, it will return uppercase, lowercase, numbers and spaces. The modelist can be any items in "tabs,newlines,returns,spaces,numbers,lowercase,uppercase,symbols,custom". If the modelist contains "custom" then pass any other characters you want to include in pCustomList. Modifications welcome, but remember this is just a character by character filter and NOT a full blown regex replacement. That would put me in the funny farm for sure. Bob S function cleanASCII pString, pModeList, pCustomChars if pModeList is empty then put " 0-9a-zA-Z" into tAllowedChars end if repeat for each item pMode in pModeList switch break case "tabs" is in pMode put "\t" after tAllowedChars break case "newlines" is in pMode put "\n" after tAllowedChars break case "returns" is in pMode put "\r" after tAllowedChars break case "spaces" is in pMode put " " after tAllowedChars break case "numbers" is in pMode put "0-9" after tAllowedChars break case "lowercase" is in pMode put "a-z" after tAllowedChars break case "uppercase" is in pMode put "A-Z" after tAllowedChars break case "symbols" is in pMode put "!#$%&'()*+,./:;<=>?@[\\_`{|}~^-" after tAllowedChars break case pMode is "custom" put pCustomChars after tAllowedChars break end switch end repeat put "[" & tAllowedChars & "]" into tMatchText repeat for each character theChar in pString if matchtext(theChar, tMatchText) is true then put theChar after cleanString end if end repeat return cleanString end cleanASCII Bob S From ahsoftware at sonic.net Wed Mar 22 20:31:49 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 22 Mar 2017 17:31:49 -0700 Subject: [ANN] tinyDictionary In-Reply-To: <1490211996229-4713269.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> <1490211996229-4713269.post@n4.nabble.com> Message-ID: On 03/22/2017 12:46 PM, BNig via use-livecode wrote: > Hi Mark, > > tinyDictionary tries on preopenCard -> loadPreferences to find via > put specialFolderPath("support") into tFolderSupport > an "application support" folder and there a "LcTinyDict" folder where it > tries to create a txt file "tinyPrefs.txt" > > This is in the card script. > > If it can not create the folder then the alert appears. I don't know > anything about Linux and where that folder might be. Or may be it is a > permission thing? Ah. The good folks at LC haven't found it neccesary to allow more than a handful of folderIdentifiers for linux. And in spite of what the documentation says, the result is *not* set to "folder not found" when a non-supported or nonexistent folderIdentifier is specified - it's just empty, which is somewhat less useful. I default saving preferences files to the directory where the saving stack lives, and normally that's my user Plugins folder, and I use the undocumented (http://quality.livecode.com/show_bug.cgi?id=16189) revEnvironmentUserPluginsPath() function to get those. -- Mark Wieder ahsoftware at gmail.com From bernd.niggemann at uni-wh.de Wed Mar 22 20:41:12 2017 From: bernd.niggemann at uni-wh.de (BNig) Date: Wed, 22 Mar 2017 17:41:12 -0700 (PDT) Subject: [ANN] tinyDictionary In-Reply-To: References: <1490193431470-4713256.post@n4.nabble.com> <1490211996229-4713269.post@n4.nabble.com> Message-ID: <1490229672282-4713274.post@n4.nabble.com> Skip Kimpel via use-livecode wrote > On 03/22/2017 12:46 PM, BNig via use-livecode wrote: > >> Hi Mark, >> >> tinyDictionary tries on preopenCard -> loadPreferences to find via >> put specialFolderPath("support") into tFolderSupport >> an "application support" folder and there a "LcTinyDict" folder where it >> tries to create a txt file "tinyPrefs.txt" >> >> This is in the card script. >> >> If it can not create the folder then the alert appears. I don't know >> anything about Linux and where that folder might be. Or may be it is a >> permission thing? > > Ah. > The good folks at LC haven't found it neccesary to allow more than a > handful of folderIdentifiers for linux. And in spite of what the > documentation says, the result is *not* set to "folder not found" when a > non-supported or nonexistent folderIdentifier is specified - it's just > empty, which is somewhat less useful. > > I default saving preferences files to the directory where the saving > stack lives, and normally that's my user Plugins folder, and I use the > undocumented (http://quality.livecode.com/show_bug.cgi?id=16189) > revEnvironmentUserPluginsPath() function to get those. > > -- > Mark Wieder > > ahsoftware@ Thanks Mark, I will try to implement revEnvironmentUserPluginsPath() function for Linux in the next version Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713274.html Sent from the Revolution - User mailing list archive at Nabble.com. From toolbook at kestner.de Thu Mar 23 10:23:31 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 23 Mar 2017 15:23:31 +0100 Subject: AW: New Iteration of cleanASCII In-Reply-To: <8D2B5F27-F6B3-411A-86C8-8AFC5CE258E8@iotecdigital.com> References: <23D014EC-0061-46F2-A62C-E7EE1C4A569B@iotecdigital.com> <8D2B5F27-F6B3-411A-86C8-8AFC5CE258E8@iotecdigital.com> Message-ID: <005d01d2a3e1$0d40b800$27c22800$@kestner.de> Hi Bob, nice function. Just for my interest, what is the function of the leading "break" in the switch control structure? It doesn't seem to bother, but any advantage? Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Bob Sneidar via use-livecode Gesendet: Mittwoch, 22. M?rz 2017 23:21 An: How to use LiveCode Cc: Bob Sneidar Betreff: Re: New Iteration of cleanASCII cleanASCII(pString, pModeList, pCustomChars) Belay my last. I refactored the whole thing to be much more robust. Pass a string, a modelist and a custom list. This will act as a simple regex character filter for any string you pass it. (Great for filtering out hidden/non-printing characters!) If you only pass it a string and no arguements, it will return uppercase, lowercase, numbers and spaces. The modelist can be any items in "tabs,newlines,returns,spaces,numbers,lowercase,uppercase,symbols,custom". If the modelist contains "custom" then pass any other characters you want to include in pCustomList. Modifications welcome, but remember this is just a character by character filter and NOT a full blown regex replacement. That would put me in the funny farm for sure. Bob S function cleanASCII pString, pModeList, pCustomChars if pModeList is empty then put " 0-9a-zA-Z" into tAllowedChars end if repeat for each item pMode in pModeList switch break case "tabs" is in pMode put "\t" after tAllowedChars break case "newlines" is in pMode put "\n" after tAllowedChars break case "returns" is in pMode put "\r" after tAllowedChars break case "spaces" is in pMode put " " after tAllowedChars break case "numbers" is in pMode put "0-9" after tAllowedChars break case "lowercase" is in pMode put "a-z" after tAllowedChars break case "uppercase" is in pMode put "A-Z" after tAllowedChars break case "symbols" is in pMode put "!#$%&'()*+,./:;<=>?@[\\_`{|}~^-" after tAllowedChars break case pMode is "custom" put pCustomChars after tAllowedChars break end switch end repeat put "[" & tAllowedChars & "]" into tMatchText repeat for each character theChar in pString if matchtext(theChar, tMatchText) is true then put theChar after cleanString end if end repeat return cleanString end cleanASCII 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 Mar 23 10:41:35 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 23 Mar 2017 14:41:35 +0000 Subject: New Iteration of cleanASCII In-Reply-To: <005d01d2a3e1$0d40b800$27c22800$@kestner.de> References: <23D014EC-0061-46F2-A62C-E7EE1C4A569B@iotecdigital.com> <8D2B5F27-F6B3-411A-86C8-8AFC5CE258E8@iotecdigital.com> <005d01d2a3e1$0d40b800$27c22800$@kestner.de> Message-ID: <9AD0E042-F3D0-4610-A147-D022129B4FA7@iotecdigital.com> Probably a typo. Bob S > On Mar 23, 2017, at 07:23 , Tiemo Hollmann TB via use-livecode wrote: > > Hi Bob, nice function. > Just for my interest, what is the function of the leading "break" in the > switch control structure? It doesn't seem to bother, but any advantage? > Tiemo From bobsneidar at iotecdigital.com Thu Mar 23 10:42:57 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 23 Mar 2017 14:42:57 +0000 Subject: New Iteration of cleanASCII In-Reply-To: <005d01d2a3e1$0d40b800$27c22800$@kestner.de> References: <23D014EC-0061-46F2-A62C-E7EE1C4A569B@iotecdigital.com> <8D2B5F27-F6B3-411A-86C8-8AFC5CE258E8@iotecdigital.com> <005d01d2a3e1$0d40b800$27c22800$@kestner.de> Message-ID: <790265B8-F786-4395-9C4D-037589FB81BD@iotecdigital.com> I had a condition there I didn't need (there) so I moved it but forgot to delete the break. Bob S > On Mar 23, 2017, at 07:23 , Tiemo Hollmann TB via use-livecode wrote: > > Hi Bob, nice function. > Just for my interest, what is the function of the leading "break" in the > switch control structure? It doesn't seem to bother, but any advantage? > Tiemo From bodine at bodinetraininggames.com Thu Mar 23 12:45:22 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Thu, 23 Mar 2017 09:45:22 -0700 (PDT) Subject: Customer database stack for FastSpring, etc? Message-ID: <1490287522940-4713278.post@n4.nabble.com> Hi Livecoders. Anyone know of a stack designed to import and manage customer data from ecommerce services such as FastSpring and Plimus? Thanks, Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Customer-database-stack-for-FastSpring-etc-tp4713278.html Sent from the Revolution - User mailing list archive at Nabble.com. From MikeKerner at roadrunner.com Thu Mar 23 13:07:46 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 23 Mar 2017 13:07:46 -0400 Subject: [ANN] tinyDictionary In-Reply-To: <1490229672282-4713274.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> <1490211996229-4713269.post@n4.nabble.com> <1490229672282-4713274.post@n4.nabble.com> Message-ID: Then please also make sure to submit this to Edinburgh. I want this to be my official dictionary. On Wed, Mar 22, 2017 at 8:41 PM, BNig via use-livecode < use-livecode at lists.runrev.com> wrote: > Skip Kimpel via use-livecode wrote > > On 03/22/2017 12:46 PM, BNig via use-livecode wrote: > > > >> Hi Mark, > >> > >> tinyDictionary tries on preopenCard -> loadPreferences to find via > >> put specialFolderPath("support") into tFolderSupport > >> an "application support" folder and there a "LcTinyDict" folder where it > >> tries to create a txt file "tinyPrefs.txt" > >> > >> This is in the card script. > >> > >> If it can not create the folder then the alert appears. I don't know > >> anything about Linux and where that folder might be. Or may be it is a > >> permission thing? > > > > Ah. > > The good folks at LC haven't found it neccesary to allow more than a > > handful of folderIdentifiers for linux. And in spite of what the > > documentation says, the result is *not* set to "folder not found" when a > > non-supported or nonexistent folderIdentifier is specified - it's just > > empty, which is somewhat less useful. > > > > I default saving preferences files to the directory where the saving > > stack lives, and normally that's my user Plugins folder, and I use the > > undocumented (http://quality.livecode.com/show_bug.cgi?id=16189) > > revEnvironmentUserPluginsPath() function to get those. > > > > -- > > Mark Wieder > > > > > ahsoftware@ > > > Thanks Mark, > I will try to implement revEnvironmentUserPluginsPath() function for Linux > in the next version > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713274.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Thu Mar 23 16:11:40 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Mar 2017 13:11:40 -0700 Subject: Customer database stack for FastSpring, etc? In-Reply-To: <1490287522940-4713278.post@n4.nabble.com> References: <1490287522940-4713278.post@n4.nabble.com> Message-ID: tbodine wrote: > Anyone know of a stack designed to import and manage customer data > from ecommerce services such as FastSpring and Plimus? I only quickly skimmed their dev sites, but it seems both offer REST APIs using Basic Auth with JSON payloads. What issues have you run into working with those? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From gbojsza at gmail.com Thu Mar 23 16:20:36 2017 From: gbojsza at gmail.com (Glen Bojsza) Date: Thu, 23 Mar 2017 16:20:36 -0400 Subject: iOS SDK Question Message-ID: Hello, I currently have Livecode Indy 8.0.1 and am running on OS X 10.11.5 (El Capitan) with Xcode Version 8.0 (8A218a). When I go to generate a standalone I get the following error message: *In order to perform device builds you need to have iOS 9.3 SDK configured.* *- iOS 9.3 comes with Xcode 7.3* How do I find what version of SDK I have and in Livecode Preferences what is the location I can add the entry for the SDK? Years ago in Livecode 5 it seemed that Livecode knew all the SDK Versions available and the preferences reflected this? regards, Glen From bernd.niggemann at uni-wh.de Thu Mar 23 16:33:33 2017 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 23 Mar 2017 13:33:33 -0700 (PDT) Subject: [ANN] tinyDictionary In-Reply-To: References: <1490193431470-4713256.post@n4.nabble.com> <1490211996229-4713269.post@n4.nabble.com> <1490229672282-4713274.post@n4.nabble.com> Message-ID: <1490301213218-4713282.post@n4.nabble.com> Bob Sneidar via use-livecode wrote > Then please also make sure to submit this to Edinburgh. I want this to be > my official dictionary. Thanks Bob, I think the LiveCode people did a pretty good job reorganizing the dictionary. The new dictionary, once getting used to it, offers the different dictionaries in a structured way. It takes just a lot of screen estate if you don't use a 28 inch monitor. The scope of tinyDictionary is different: a bare bone dictionary for developers who know what they are looking for. So I will not submit this to Edinburgh. I wrote tinyDictionary also because we had quite some suggestions for community projects that did not materialize. I wanted to give it a try and see how far I would get. There was helpful input from the community, not all of it made it into tinyDict. The Livecode Dictionary has other problems: more than 3000 files that need some attention/correction/reformatting. Luckily not all of them but there are enough. If you find some funny stuff in tinyDictionary please check against the LiveCode dictionary whether it also looks funny there. Then you have a good chance to look at an entry that needs care. Devin Asay is doing a tremendous job at correcting the dictionary. This could really be something where other native speakers of the community could help. It is tedious, you have to learn the format and you have to get familiar with GitHub. But even GitHub is doable :) >> I want this to be my official dictionary. That is very easy, just rename the stack to myTinyOfficialDictionary :) I will upload new versions to Livecodeshare as needed. This should get you there http://livecodeshare.runrev.com/stack/825/ Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713282.html Sent from the Revolution - User mailing list archive at Nabble.com. From MikeKerner at roadrunner.com Thu Mar 23 16:53:42 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 23 Mar 2017 16:53:42 -0400 Subject: [ANN] tinyDictionary In-Reply-To: <1490301213218-4713282.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> <1490211996229-4713269.post@n4.nabble.com> <1490229672282-4713274.post@n4.nabble.com> <1490301213218-4713282.post@n4.nabble.com> Message-ID: The other issues with the existing official dictionary involve the bootstrap framework, and those are not easy to address without ripping out bootstrap. While we are on the topic of a large monitor, that does not fix the issues. Indeed, on a larger monitor, the dictionary will get worse, due to bootstrap's 7-column setup. The bezels get to be gigantic except within very narrow ranges. You can do what you want, Bernd, but this is a far better dictionary than what is packaged with LC, and certainly better than I could have built if I had continued on what started as my quest to submit a pull request to replace the existing dictionary, so I hope you change your mind. On Thu, Mar 23, 2017 at 4:33 PM, BNig via use-livecode < use-livecode at lists.runrev.com> wrote: > Bob Sneidar via use-livecode wrote > > Then please also make sure to submit this to Edinburgh. I want this to > be > > my official dictionary. > > Thanks Bob, > > I think the LiveCode people did a pretty good job reorganizing the > dictionary. The new dictionary, once getting used to it, offers the > different dictionaries in a structured way. > > It takes just a lot of screen estate if you don't use a 28 inch monitor. > > The scope of tinyDictionary is different: a bare bone dictionary for > developers who know what they are looking for. > > So I will not submit this to Edinburgh. > > I wrote tinyDictionary also because we had quite some suggestions for > community projects that did not materialize. I wanted to give it a try and > see how far I would get. There was helpful input from the community, not > all > of it made it into tinyDict. > > The Livecode Dictionary has other problems: more than 3000 files that need > some attention/correction/reformatting. Luckily not all of them but there > are enough. If you find some funny stuff in tinyDictionary please check > against the LiveCode dictionary whether it also looks funny there. Then you > have a good chance to look at an entry that needs care. > > Devin Asay is doing a tremendous job at correcting the dictionary. > This could really be something where other native speakers of the community > could help. It is tedious, you have to learn the format and you have to get > familiar with GitHub. But even GitHub is doable :) > > > >> I want this to be my official dictionary. > > That is very easy, just rename the stack to myTinyOfficialDictionary :) > > > I will upload new versions to Livecodeshare as needed. This should get you > there > http://livecodeshare.runrev.com/stack/825/ > > > Kind regards > Bernd > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713282.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bobsneidar at iotecdigital.com Thu Mar 23 16:58:02 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 23 Mar 2017 20:58:02 +0000 Subject: [ANN] tinyDictionary In-Reply-To: <1490301213218-4713282.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> <1490211996229-4713269.post@n4.nabble.com> <1490229672282-4713274.post@n4.nabble.com> <1490301213218-4713282.post@n4.nabble.com> Message-ID: <4060DBAE-938F-43AD-904C-870A687E07ED@iotecdigital.com> Just one problem. I didn't write that. Bob S > On Mar 23, 2017, at 13:33 , BNig via use-livecode wrote: > > Bob Sneidar via use-livecode wrote >> Then please also make sure to submit this to Edinburgh. I want this to be >> my official dictionary. > > Thanks Bob, From devin_asay at byu.edu Thu Mar 23 17:04:20 2017 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 23 Mar 2017 21:04:20 +0000 Subject: [ANN] tinyDictionary In-Reply-To: <1490301213218-4713282.post@n4.nabble.com> References: <1490193431470-4713256.post@n4.nabble.com> <1490211996229-4713269.post@n4.nabble.com> <1490229672282-4713274.post@n4.nabble.com> <1490301213218-4713282.post@n4.nabble.com> Message-ID: <1E0D4E36-2868-4348-AEB6-93BD8F3D8E54@byu.edu> On Mar 23, 2017, at 2:33 PM, BNig via use-livecode > wrote: Bob Sneidar via use-livecode wrote Then please also make sure to submit this to Edinburgh. I want this to be my official dictionary. Thanks Bob, I think the LiveCode people did a pretty good job reorganizing the dictionary. The new dictionary, once getting used to it, offers the different dictionaries in a structured way. It takes just a lot of screen estate if you don't use a 28 inch monitor. The scope of tinyDictionary is different: a bare bone dictionary for developers who know what they are looking for. So I will not submit this to Edinburgh. I wrote tinyDictionary also because we had quite some suggestions for community projects that did not materialize. I wanted to give it a try and see how far I would get. There was helpful input from the community, not all of it made it into tinyDict. The Livecode Dictionary has other problems: more than 3000 files that need some attention/correction/reformatting. Luckily not all of them but there are enough. If you find some funny stuff in tinyDictionary please check against the LiveCode dictionary whether it also looks funny there. Then you have a good chance to look at an entry that needs care. Devin Asay is doing a tremendous job at correcting the dictionary. This could really be something where other native speakers of the community could help. It is tedious, you have to learn the format and you have to get familiar with GitHub. But even GitHub is doable :) Bernd, thanks for your work on this, and for your kind words. If anyone finds anything in the Dictionary that doesn?t look right, or read right, or just seems inaccurate, please do submit a bug report. They are usually simple and quick to fix. I?d also welcome anyone who wants to try their hand at joining the open source effort by submitting dictionary fixes. I have created some step-by-step guides to help you and would be happy to get you started. Plus if you get a dictionary change accepted you get to see your name in This Week in LiveCode! :) Devin Asay Director Office of Digital Humanities Brigham Young University From MikeKerner at roadrunner.com Thu Mar 23 17:04:43 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 23 Mar 2017 17:04:43 -0400 Subject: Libraries To Contribute Message-ID: I went looking, today, for a routine to recursively copy folders and files from one place to another. I have several LC libraries, but none of them seemed to have such a routine. All of those libraries are in stacks. So... a) Does anyone have a git repo with LC libraries/routines in it b) If not, I'd like to start one, and I'd be looking for contributions to it, please. -- 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 bernd.niggemann at uni-wh.de Thu Mar 23 17:11:34 2017 From: bernd.niggemann at uni-wh.de (BNig) Date: Thu, 23 Mar 2017 14:11:34 -0700 (PDT) Subject: [ANN] tinyDictionary In-Reply-To: <4060DBAE-938F-43AD-904C-870A687E07ED@iotecdigital.com> References: <1490193431470-4713256.post@n4.nabble.com> <1490211996229-4713269.post@n4.nabble.com> <1490229672282-4713274.post@n4.nabble.com> <1490301213218-4713282.post@n4.nabble.com> <4060DBAE-938F-43AD-904C-870A687E07ED@iotecdigital.com> Message-ID: <1490303494370-4713287.post@n4.nabble.com> Sorry Bob, I fell foul of Nabble, it is unfortunately broken since the bouncing issue was resolved. Since I am on digest for the use-list I use Nabble to post and see current activity. Too bad it is broken since the only other repository that lets you post I know is gmane that is rebuilding and has not added Livecode yet. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tinyDictionary-tp4713256p4713287.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Thu Mar 23 19:45:39 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Mar 2017 16:45:39 -0700 Subject: [ANN] tinyDictionary In-Reply-To: References: Message-ID: <6f3de275-19aa-4480-84f7-87688615c35d@fourthworld.com> Mike Kerner wrote: > I want this to be my official dictionary. With my free Devolution toolkit you can chose between LC's default tools or any plugin you want for essentials like that: http://fourthworld.com/products/devolution/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu Mar 23 19:50:51 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Mar 2017 16:50:51 -0700 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: Mike Kerner wrote: > I went looking, today, for a routine to recursively copy folders and > files from one place to another. I have several LC libraries, but > none of them seemed to have such a routine. All of those libraries > are in stacks. Will the built-in revCopyFolder command do what you need? If you need to handler copying over networks try rsync. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at livecode.org Thu Mar 23 20:10:12 2017 From: paul at livecode.org (Paul Hibbert) Date: Thu, 23 Mar 2017 17:10:12 -0700 Subject: iOS SDK Question In-Reply-To: References: Message-ID: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> AFAIK the iOS SDK comes with the particular flavour of Xcode and you need to have the correct version of Xcode to match the version of LC on your choice of OS, if you go to Help > Release Notes the version you need is listed under the iOS Platform Support section, about page 4 I think, or bookmark this link for future ref: https://livecode.com/support/ask-a-question/what-iosxcode-version-matches-which-version-of-livecode/ According to this list, it appears that you need to use Xcode 7.3 Almost every time Xcode or LiveCode updates the connection breaks, so once you have a working combination it?s worth making sure you have a good back-up, especially considering Xcode is over 4.5GB. It also helps to turn off auto software updates and manage them manually. Paul > On 23 Mar 2017, at 13:20, Glen Bojsza via use-livecode wrote: > > Hello, > > I currently have Livecode Indy 8.0.1 and am running on OS X 10.11.5 (El > Capitan) with Xcode Version 8.0 (8A218a). > > When I go to generate a standalone I get the following error message: > > *In order to perform device builds you need to have iOS 9.3 SDK configured.* > *- iOS 9.3 comes with Xcode 7.3* > > > How do I find what version of SDK I have and in Livecode Preferences what > is the location I can add the entry for the SDK? > > Years ago in Livecode 5 it seemed that Livecode knew all the SDK Versions > available and the preferences reflected this? > > regards, > > Glen > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Mar 23 20:09:16 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Thu, 23 Mar 2017 17:09:16 -0700 (PDT) Subject: Customer database stack for FastSpring, etc? In-Reply-To: References: <1490287522940-4713278.post@n4.nabble.com> Message-ID: <1490314156234-4713291.post@n4.nabble.com> Thanks, Richard. What you described will certainly work for future customer records. But my main challenge is to take many years of past data stored in tab-delimited spreadsheet files from various ecommerce vendors and bring all that data together in one place where it will be easily searched and sorted. I thought someone might have created a customer contact tool in Livecode that would be suitable. Thanks, Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Customer-database-stack-for-FastSpring-etc-tp4713278p4713291.html Sent from the Revolution - User mailing list archive at Nabble.com. From gbojsza at gmail.com Thu Mar 23 20:36:51 2017 From: gbojsza at gmail.com (Glen Bojsza) Date: Thu, 23 Mar 2017 20:36:51 -0400 Subject: iOS SDK Question In-Reply-To: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> References: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> Message-ID: <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> Hi Paul, It looks like you are correct and so I have started the massive download. I assume that once installed I would then do an "add entry" in Livecode-->Preferences-->Mobile and select the /Applications/Xcode This should then find the SDK in the contents of Xcode... Please let me know if I missed anything. thanks, Glen > On Mar 23, 2017, at 8:10 PM, Paul Hibbert via use-livecode wrote: > > AFAIK the iOS SDK comes with the particular flavour of Xcode and you need to have the correct version of Xcode to match the version of LC on your choice of OS, if you go to Help > Release Notes the version you need is listed under the iOS Platform Support section, about page 4 I think, or bookmark this link for future ref: > > https://livecode.com/support/ask-a-question/what-iosxcode-version-matches-which-version-of-livecode/ > > According to this list, it appears that you need to use Xcode 7.3 > > Almost every time Xcode or LiveCode updates the connection breaks, so once you have a working combination it?s worth making sure you have a good back-up, especially considering Xcode is over 4.5GB. It also helps to turn off auto software updates and manage them manually. > > Paul > >> On 23 Mar 2017, at 13:20, Glen Bojsza via use-livecode wrote: >> >> Hello, >> >> I currently have Livecode Indy 8.0.1 and am running on OS X 10.11.5 (El >> Capitan) with Xcode Version 8.0 (8A218a). >> >> When I go to generate a standalone I get the following error message: >> >> *In order to perform device builds you need to have iOS 9.3 SDK configured.* >> *- iOS 9.3 comes with Xcode 7.3* >> >> >> How do I find what version of SDK I have and in Livecode Preferences what >> is the location I can add the entry for the SDK? >> >> Years ago in Livecode 5 it seemed that Livecode knew all the SDK Versions >> available and the preferences reflected this? >> >> regards, >> >> Glen >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Mar 23 21:00:08 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 23 Mar 2017 21:00:08 -0400 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: The code was relatively easy. What I was more interested in was either building or finding a central repo for a library of routines. Trevor built a stack that has a bunch of routines in it, but in the age of git, I'd like to have something that we put in there for everyone to point to. I've put a few things in git, already. I just want it to be a lot bigger. On Thu, Mar 23, 2017 at 7:50 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike Kerner wrote: > > > I went looking, today, for a routine to recursively copy folders and > > files from one place to another. I have several LC libraries, but > > none of them seemed to have such a routine. All of those libraries > > are in stacks. > > Will the built-in revCopyFolder command do what you need? > > If you need to handler copying over networks try rsync. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Thu Mar 23 21:04:45 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 23 Mar 2017 21:04:45 -0400 Subject: [ANN] tinyDictionary In-Reply-To: <6f3de275-19aa-4480-84f7-87688615c35d@fourthworld.com> References: <6f3de275-19aa-4480-84f7-87688615c35d@fourthworld.com> Message-ID: Oh, yes, and one more thing: We need to bring back user additions and owner addendums/notes. On Thu, Mar 23, 2017 at 7:45 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Mike Kerner wrote: > > > I want this to be my official dictionary. > > With my free Devolution toolkit you can chose between LC's default tools > or any plugin you want for essentials like that: > > http://fourthworld.com/products/devolution/ > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Thu Mar 23 21:28:53 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 23 Mar 2017 21:28:53 -0400 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: Anyway, Richard, to answer your other question, the problem is that revCopyFolder copies not just the contents of the source folder but the source folder as well, and I didn't figure out a way to copy just the contents, so I wrote something to do it. On Thu, Mar 23, 2017 at 9:00 PM, Mike Kerner wrote: > The code was relatively easy. What I was more interested in was either > building or finding a central repo for a library of routines. Trevor built > a stack that has a bunch of routines in it, but in the age of git, I'd like > to have something that we put in there for everyone to point to. I've put > a few things in git, already. I just want it to be a lot bigger. > > On Thu, Mar 23, 2017 at 7:50 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Mike Kerner wrote: >> >> > I went looking, today, for a routine to recursively copy folders and >> > files from one place to another. I have several LC libraries, but >> > none of them seemed to have such a routine. All of those libraries >> > are in stacks. >> >> Will the built-in revCopyFolder command do what you need? >> >> If you need to handler copying over networks try rsync. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Thu Mar 23 21:37:16 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Mar 2017 18:37:16 -0700 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: <37a5ea7c-9359-3d34-cbac-227d3c8019e8@fourthworld.com> Mike Kerner wrote: > The code was relatively easy. What I was more interested in was > either building or finding a central repo for a library of routines. Right now the most comprehensive collection I know of is Michael Doub's Master Library: https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 It might be nice if that was extended to pull from Github resources - a good community project perhaps? In lieu of that, posting it on Github is very useful: easy to search, and the more LC repos we see the more likely we'll see LiveCode on the TIOBE index more often. In fact, any and all LiveCode resources clearly marked as being about "LiveCode" will help LC get the attention it deserves on the TIOBE Index: https://www.tiobe.com/tiobe-index/programming-languages-definition/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mikedoub at gmail.com Thu Mar 23 21:55:44 2017 From: mikedoub at gmail.com (Mike Doub) Date: Thu, 23 Mar 2017 21:55:44 -0400 Subject: Libraries To Contribute In-Reply-To: <37a5ea7c-9359-3d34-cbac-227d3c8019e8@fourthworld.com> Message-ID: <58d47ca3.82e30d0a.dc92b.16da@mx.google.com> Guys, I would love to get the contents of the Master Library into github, but that is beyond my technical ability. I created the library so I had 1) an index/table of contents and 2) the ability to only pull into my projects what I needed. I also wanted to give back to the people on this list that had helped me for so long. If you can figure our how to do it, I'm game, but you will have teach this old dog some new tricks. -= Mike ? Original Message ? From: use-livecode at lists.runrev.com Sent: March 23, 2017 9:38 PM To: use-livecode at lists.runrev.com Reply-to: use-livecode at lists.runrev.com Cc: ambassador at fourthworld.com Subject: Re: Libraries To Contribute Mike Kerner wrote: > The code was relatively easy.? What I was more interested in was > either building or finding a central repo for a library of routines. Right now the most comprehensive collection I know of is Michael Doub's Master Library: https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 It might be nice if that was extended to pull from Github resources - a good community project perhaps? In lieu of that, posting it on Github is very useful:? easy to search, and the more LC repos we see the more likely we'll see LiveCode on the TIOBE index more often. In fact, any and all LiveCode resources clearly marked as being about "LiveCode" will help LC get the attention it deserves on the TIOBE Index: https://www.tiobe.com/tiobe-index/programming-languages-definition/ -- ? Richard Gaskin ? Fourth World Systems ? Software Design and Development for the Desktop, Mobile, and the Web ? ____________________________________________________________________ ? Ambassador at FourthWorld.com??????????????? http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Mar 23 22:13:57 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 23 Mar 2017 22:13:57 -0400 Subject: Fwd: Libraries To Contribute In-Reply-To: <58d47ca3.82e30d0a.dc92b.16da@mx.google.com> References: <37a5ea7c-9359-3d34-cbac-227d3c8019e8@fourthworld.com> <58d47ca3.82e30d0a.dc92b.16da@mx.google.com> Message-ID: It's pretty easy, actually. You can check out my repo, if you like, because that's where I'd put the routines if I do it. I've already got some community routines in there, but I haven't gone nuts with it, yet. https://github.com/macMikey The biggest thing to discuss is what routines should be grouped together into the same script file and which script files should be part of the same repo. More repos means more flexibility, but it also means that people are having to pull more code, if something ever changes. On Thu, Mar 23, 2017 at 9:55 PM, Mike Doub via use-livecode < use-livecode at lists.runrev.com> wrote: > Guys, I would love to get the contents of the Master Library into > github, but that is beyond my technical ability. > > I created the library so I had 1) an index/table of contents and 2) the > ability to only pull into my projects what I needed. I also wanted to > give back to the people on this list that had helped me for so long. > > If you can figure our how to do it, I'm game, but you will have teach > this old dog some new tricks. > > -= Mike > > > > > Original Message > From: use-livecode at lists.runrev.com > Sent: March 23, 2017 9:38 PM > To: use-livecode at lists.runrev.com > Reply-to: use-livecode at lists.runrev.com > Cc: ambassador at fourthworld.com > Subject: Re: Libraries To Contribute > > Mike Kerner wrote: > > > The code was relatively easy. What I was more interested in was > > either building or finding a central repo for a library of routines. > > Right now the most comprehensive collection I know of is Michael Doub's > Master Library: > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > It might be nice if that was extended to pull from Github resources - a > good community project perhaps? > > In lieu of that, posting it on Github is very useful: easy to search, > and the more LC repos we see the more likely we'll see LiveCode on the > TIOBE index more often. > > In fact, any and all LiveCode resources clearly marked as being about > "LiveCode" will help LC get the attention it deserves on the TIOBE Index: > https://www.tiobe.com/tiobe-index/programming-languages-definition/ > > -- > 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 > -- 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 tfabacher at gmail.com Fri Mar 24 01:06:21 2017 From: tfabacher at gmail.com (Todd Fabacher) Date: Fri, 24 Mar 2017 01:06:21 -0400 Subject: D3 LiveCode Chart Examples Message-ID: On Facebook people had expressed a desire to work with D3 and LiveCode. So, here is the D3 LiveCode Chart Examples on github: https://github.com/digitalpomegranate/D3-Livecode-Charts --Todd Fabacher & Digital Pomegranate Tame From blueback09 at gmail.com Fri Mar 24 01:18:30 2017 From: blueback09 at gmail.com (Matt Maier) Date: Thu, 23 Mar 2017 22:18:30 -0700 Subject: D3 LiveCode Chart Examples In-Reply-To: References: Message-ID: I get a "this repository is empty" message. On Thu, Mar 23, 2017 at 10:06 PM, Todd Fabacher via use-livecode < use-livecode at lists.runrev.com> wrote: > On Facebook people had expressed a desire to work with D3 and LiveCode. So, > here is the D3 LiveCode Chart Examples on github: > https://github.com/digitalpomegranate/D3-Livecode-Charts > > --Todd Fabacher & Digital Pomegranate Tame > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Mar 24 01:55:37 2017 From: james at thehales.id.au (James Hale) Date: Fri, 24 Mar 2017 16:55:37 +1100 Subject: nabble babble Message-ID: With the change in how nabble reports posts to the list I have now gone across to google's archive. https://www.mail-archive.com/use-livecode at lists.runrev.com/ Seems just as functional and clearly shows who posted what. To submit to the list I still prefer to use my mail client. To search the lists I prefer to do so locally. I download the monthly archives and import them into Eaglefiler (I am on a Mac). It provides very good searching functionality and a clear listing of hits etc. James From vokey at uleth.ca Fri Mar 24 02:59:41 2017 From: vokey at uleth.ca (Vokey, John) Date: Fri, 24 Mar 2017 06:59:41 +0000 Subject: Magnification Message-ID: <6624CAAD-777D-454D-A8DE-AA4FF7F96AFB@uleth.ca> I am working on a stack that has reduced images on a card, but I want the user to have the ability to magnify those images (at least the part they are hovering over) as they hover over them. But, not the card images, but the real higher resolution images stored in separate files. I suspect there some among you who have done this: I am seeking the code in a bit of a rush. "It is hard to free fools from chains they revere." - Voltaire -- Dr. John R. Vokey From toolbook at kestner.de Fri Mar 24 06:23:29 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 24 Mar 2017 11:23:29 +0100 Subject: differences between text/imagedata of image in LC6/8 Message-ID: <002401d2a488$b0645a80$112d0f80$@kestner.de> Hello, in an old program I obviously tried to be very technically over correct when copying an image and did: 1. set the imagedata of img 2 to the imagedata of img 1 This worked up to LC 6.7. In LC8/9 I get a corrupted image (black and stripes) in the target image. What works in LC8/9 is 2. set the text of img 2 to the text of img 1 and 3. put img 1 into img 2 What is the correct syntax today? Is solution 2 and 3 the same and just an alias (what it seems to me) or are there differences in details I do not see? And is there any explanation why the upward compatibility of solution 1 is broken? Thanks Tiemo From mark at livecode.com Fri Mar 24 06:58:28 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 24 Mar 2017 11:58:28 +0100 Subject: differences between text/imagedata of image in LC6/8 In-Reply-To: <002401d2a488$b0645a80$112d0f80$@kestner.de> References: <002401d2a488$b0645a80$112d0f80$@kestner.de> Message-ID: <0ca4fc43abf7e007b59e2e16dcafd699@livecode.com> Hi Tiemo, > in an old program I obviously tried to be very technically over correct > when > copying an image and did: > > 1. set the imagedata of img 2 to the imagedata of img 1 > > This worked up to LC 6.7. In LC8/9 I get a corrupted image (black and > stripes) in the target image. The imageData of an image is the extracted color values for the pixels in the image. Specifically, it is a sequence of bytes with each pixel represented as xRGB. These are the bytes which are applied to the screen when the image is rendered and does not include any alpha data (which is specified using the alphaData property). To set the imageData you need to set the width and height of the field first. > What works in LC8/9 is > > 2. set the text of img 2 to the text of img 1 > > and > > 3. put img 1 into img 2 Both of these do the same thing - (3) is short hand for (1). The 'text' of an image is the original image data from a format such as PNG, GIF etc. i.e. the content of a PNG file or GIF file. > What is the correct syntax today? Is solution 2 and 3 the same and just > an > alias (what it seems to me) or are there differences in details I do > not > see? In general, (2) or (3) is better than (1) as (1) is considered an 'image editing' operation and as such will cause a recompression of the data in some fashion. Also (2) and (3) will automatically set the size, and alpha channel of the image appropriately. > And is there any explanation why the upward compatibility of solution 1 > is > broken? If there is a difference here then it is a bug - although please do check that the width/height of the image is the same, and also transfer across alphaData too. I'd recommend using (2) or (3) - or, indeed, using referenced files instead. The engine will automatically cache referenced images and share the underlying decompressed data. i.e. set the filename of image 1 to "foo" set the filename of image 2 to "foo" Will first resolve "foo" as an absolute path, load that image file into a cache if not already present and attach the decompressed image data to the image object. Then, when the second image's filename is set, it will find the image is already in the cache and just use the decompressed image data attached to that file in the cache. i.e. The two images share the same pixel data in memory. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Mar 24 06:59:42 2017 From: mark at livecode.com (Mark Waddingham) Date: Fri, 24 Mar 2017 11:59:42 +0100 Subject: differences between text/imagedata of image in LC6/8 (EDIT) In-Reply-To: <0ca4fc43abf7e007b59e2e16dcafd699@livecode.com> References: <002401d2a488$b0645a80$112d0f80$@kestner.de> <0ca4fc43abf7e007b59e2e16dcafd699@livecode.com> Message-ID: On 2017-03-24 11:58, Mark Waddingham via use-livecode wrote: >> What works in LC8/9 is >> >> 2. set the text of img 2 to the text of img 1 >> >> and >> >> 3. put img 1 into img 2 > > Both of these do the same thing - (3) is short hand for (1). I mean (3) is short-hand for (2) here! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From toolbook at kestner.de Fri Mar 24 07:41:27 2017 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 24 Mar 2017 12:41:27 +0100 Subject: AW: differences between text/imagedata of image in LC6/8 In-Reply-To: <0ca4fc43abf7e007b59e2e16dcafd699@livecode.com> References: <002401d2a488$b0645a80$112d0f80$@kestner.de> <0ca4fc43abf7e007b59e2e16dcafd699@livecode.com> Message-ID: <002d01d2a493$93691190$ba3b34b0$@kestner.de> Thank you for the comprehensive explanation! Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mark Waddingham via use-livecode Gesendet: Freitag, 24. M?rz 2017 11:58 An: How to use LiveCode Cc: Mark Waddingham Betreff: Re: differences between text/imagedata of image in LC6/8 Hi Tiemo, > in an old program I obviously tried to be very technically over > correct when copying an image and did: > > 1. set the imagedata of img 2 to the imagedata of img 1 > > This worked up to LC 6.7. In LC8/9 I get a corrupted image (black and > stripes) in the target image. The imageData of an image is the extracted color values for the pixels in the image. Specifically, it is a sequence of bytes with each pixel represented as xRGB. These are the bytes which are applied to the screen when the image is rendered and does not include any alpha data (which is specified using the alphaData property). To set the imageData you need to set the width and height of the field first. > What works in LC8/9 is > > 2. set the text of img 2 to the text of img 1 > > and > > 3. put img 1 into img 2 Both of these do the same thing - (3) is short hand for (1). The 'text' of an image is the original image data from a format such as PNG, GIF etc. i.e. the content of a PNG file or GIF file. > What is the correct syntax today? Is solution 2 and 3 the same and > just an alias (what it seems to me) or are there differences in > details I do not see? In general, (2) or (3) is better than (1) as (1) is considered an 'image editing' operation and as such will cause a recompression of the data in some fashion. Also (2) and (3) will automatically set the size, and alpha channel of the image appropriately. > And is there any explanation why the upward compatibility of solution > 1 is broken? If there is a difference here then it is a bug - although please do check that the width/height of the image is the same, and also transfer across alphaData too. I'd recommend using (2) or (3) - or, indeed, using referenced files instead. The engine will automatically cache referenced images and share the underlying decompressed data. i.e. set the filename of image 1 to "foo" set the filename of image 2 to "foo" Will first resolve "foo" as an absolute path, load that image file into a cache if not already present and attach the decompressed image data to the image object. Then, when the second image's filename is set, it will find the image is already in the cache and just use the decompressed image data attached to that file in the cache. i.e. The two images share the same pixel data in memory. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri Mar 24 10:16:14 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 24 Mar 2017 07:16:14 -0700 Subject: D3 LiveCode Chart Examples In-Reply-To: References: Message-ID: Todd Fabacher wrote: > On Facebook people had expressed a desire to work with D3 and > LiveCode. So, here is the D3 LiveCode Chart Examples on github: > https://github.com/digitalpomegranate/D3-Livecode-Charts Thanks, Todd. It seems the LICENSE file is missing from that repo. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Fri Mar 24 10:26:09 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 24 Mar 2017 07:26:09 -0700 Subject: Magnification In-Reply-To: <6624CAAD-777D-454D-A8DE-AA4FF7F96AFB@uleth.ca> References: <6624CAAD-777D-454D-A8DE-AA4FF7F96AFB@uleth.ca> Message-ID: Vokey, John wrote: > I am working on a stack that has reduced images on a card, but I want > the user to have the ability to magnify those images (at least the > part they are hovering over) as they hover over them. But, not the > card images, but the real higher resolution images stored in separate > files. I suspect there some among you who have done this: I am > seeking the code in a bit of a rush. This is half-baked and may not work at all on your system, but hopefully at least some of the magnification routine (which needs a tweak to better maintain proportion) will be useful to get you started: http://fourthworld.net/channels/lc/4wLoupe.livecode -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Fri Mar 24 11:00:51 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 24 Mar 2017 15:00:51 +0000 Subject: DragDrop makes windows unresponsive OS X Message-ID: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> Hi all. Might just be me. I drag drop text onto a field with a dragdrop handler that essentially puts the drag data ["text"] into itself. Doing so with 8.1.3 seems to cause the window to become unresponsive, that is none of the controls work. I cannot click in fields, tab around, click buttons etc. However if I navigate to another window, and then back again it becomes responsive. Also, if I move the window with the title bar, it becomes responsive again. Finally, if I exit to top at the end of the dragdrop handler, THAT makes the window responsive. It's as though the dragdrop message is still in effect in limbo somewhere. This seems to be a somewhat recent development. That is, I don't think it has always been this way. Particularly in 8.0.x and prior, but I could not pin it down to a minor version. Bob S From bodine at bodinetraininggames.com Fri Mar 24 12:27:22 2017 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 24 Mar 2017 09:27:22 -0700 (PDT) Subject: nabble babble In-Reply-To: References: Message-ID: <1490372842560-4713310.post@n4.nabble.com> Thanks for that, James. Nice to be able to see who said what again. -- Tom B. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/nabble-babble-tp4713301p4713310.html Sent from the Revolution - User mailing list archive at Nabble.com. From paul at livecode.org Fri Mar 24 12:51:50 2017 From: paul at livecode.org (Paul Hibbert) Date: Fri, 24 Mar 2017 09:51:50 -0700 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> Message-ID: <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> Just tried a simple test on Mac OS Sierra / LC8.1.3 and it seems to work fine here. Is there anything else that could be interfering with the dragDrop? Maybe the Message Watcher could give a clue as to what is happening. Paul > On 24 Mar 2017, at 08:00, Bob Sneidar via use-livecode wrote: > > Hi all. > > Might just be me. I drag drop text onto a field with a dragdrop handler that essentially puts the drag data ["text"] into itself. Doing so with 8.1.3 seems to cause the window to become unresponsive, that is none of the controls work. I cannot click in fields, tab around, click buttons etc. However if I navigate to another window, and then back again it becomes responsive. Also, if I move the window with the title bar, it becomes responsive again. Finally, if I exit to top at the end of the dragdrop handler, THAT makes the window responsive. It's as though the dragdrop message is still in effect in limbo somewhere. > > This seems to be a somewhat recent development. That is, I don't think it has always been this way. Particularly in 8.0.x and prior, but I could not pin it down to a minor version. > > 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 paul at livecode.org Fri Mar 24 12:52:37 2017 From: paul at livecode.org (Paul Hibbert) Date: Fri, 24 Mar 2017 09:52:37 -0700 Subject: iOS SDK Question In-Reply-To: <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> References: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> Message-ID: <44EB1372-1515-4948-ABA6-423FA6F2C5F8@livecode.org> > On 23 Mar 2017, at 17:36, Glen Bojsza via use-livecode wrote: > > Please let me know if I missed anything. It looks like you are on the right path. Hope it goes well. Paul From panos.merakos at livecode.com Fri Mar 24 12:58:50 2017 From: panos.merakos at livecode.com (panagiotis merakos) Date: Fri, 24 Mar 2017 16:58:50 +0000 Subject: iOS SDK Question In-Reply-To: <44EB1372-1515-4948-ABA6-423FA6F2C5F8@livecode.org> References: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> <44EB1372-1515-4948-ABA6-423FA6F2C5F8@livecode.org> Message-ID: @Glen Why are you still using LC 8.0.1? I suggest you download the latest stable version, currently 8.1.3: http://downloads.livecode.com/livecode/ Note that 8.1.3 on OS X 10.11.x will require Xcode 8.2. Best regards, Panos -- On Fri, Mar 24, 2017 at 4:52 PM, Paul Hibbert via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On 23 Mar 2017, at 17:36, Glen Bojsza via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Please let me know if I missed anything. > > > It looks like you are on the right path. Hope it goes well. > > 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 > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From gbojsza at gmail.com Fri Mar 24 13:07:31 2017 From: gbojsza at gmail.com (Glen Bojsza) Date: Fri, 24 Mar 2017 13:07:31 -0400 Subject: iOS SDK Question In-Reply-To: References: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> <44EB1372-1515-4948-ABA6-423FA6F2C5F8@livecode.org> Message-ID: I believe it may be the last paid version that I have a license for (I sent a message to Livecode support to confirm what the highest paid version I have access to). Glen > On Mar 24, 2017, at 12:58 PM, panagiotis merakos via use-livecode wrote: > > @Glen > > Why are you still using LC 8.0.1? I suggest you download the latest stable > version, currently 8.1.3: > > http://downloads.livecode.com/livecode/ > > Note that 8.1.3 on OS X 10.11.x will require Xcode 8.2. > > Best regards, > Panos > -- > > On Fri, Mar 24, 2017 at 4:52 PM, Paul Hibbert via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >>>> On 23 Mar 2017, at 17:36, Glen Bojsza via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Please let me know if I missed anything. >> >> >> It looks like you are on the right path. Hope it goes well. >> >> 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 > > > > -- > 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 merakosp at gmail.com Fri Mar 24 13:17:37 2017 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 24 Mar 2017 17:17:37 +0000 Subject: iOS SDK Question In-Reply-To: References: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> <44EB1372-1515-4948-ABA6-423FA6F2C5F8@livecode.org> Message-ID: I think that if you log into your account area, you should see all the LC versions you can access with your current license. If you have an active subscription to Indy then you should be able to activate any of them. I suggest you just download and try, or log into your account area to see. Best, Panos -- On Fri, Mar 24, 2017 at 5:07 PM, Glen Bojsza via use-livecode < use-livecode at lists.runrev.com> wrote: > I believe it may be the last paid version that I have a license for (I > sent a message to Livecode support to confirm what the highest paid version > I have access to). > > Glen > > > On Mar 24, 2017, at 12:58 PM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > @Glen > > > > Why are you still using LC 8.0.1? I suggest you download the latest > stable > > version, currently 8.1.3: > > > > http://downloads.livecode.com/livecode/ > > > > Note that 8.1.3 on OS X 10.11.x will require Xcode 8.2. > > > > Best regards, > > Panos > > -- > > > > On Fri, Mar 24, 2017 at 4:52 PM, Paul Hibbert via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> > >>>> On 23 Mar 2017, at 17:36, Glen Bojsza via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>> Please let me know if I missed anything. > >> > >> > >> It looks like you are on the right path. Hope it goes well. > >> > >> 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 > > > > > > > > -- > > 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 24 13:19:29 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 24 Mar 2017 13:19:29 -0400 Subject: nabble babble In-Reply-To: <1490372842560-4713310.post@n4.nabble.com> References: <1490372842560-4713310.post@n4.nabble.com> Message-ID: I have always used "the mail archive" site as my X-Talk Time Machine. LIVECODE https://www.mail-archive.com/use-livecode at lists.runrev.com/ REVOLUTION https://www.mail-archive.com/use-revolution at lists.runrev.com/ METACARD https://www.mail-archive.com/metacard at lists.runrev.com/ ~Roger On Fri, Mar 24, 2017 at 12:27 PM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for that, James. Nice to be able to see who said what again. > -- Tom B. > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/nabble-babble-tp4713301p4713310.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From roger.e.eller at sealedair.com Fri Mar 24 13:19:29 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 24 Mar 2017 13:19:29 -0400 Subject: nabble babble In-Reply-To: <1490372842560-4713310.post@n4.nabble.com> References: <1490372842560-4713310.post@n4.nabble.com> Message-ID: I have always used "the mail archive" site as my X-Talk Time Machine. LIVECODE https://www.mail-archive.com/use-livecode at lists.runrev.com/ REVOLUTION https://www.mail-archive.com/use-revolution at lists.runrev.com/ METACARD https://www.mail-archive.com/metacard at lists.runrev.com/ ~Roger On Fri, Mar 24, 2017 at 12:27 PM, tbodine via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for that, James. Nice to be able to see who said what again. > -- Tom B. > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/nabble-babble-tp4713301p4713310.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Fri Mar 24 14:03:47 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 24 Mar 2017 18:03:47 +0000 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> Message-ID: Here is a handler in a field script. The exit to top is necessary because of the issue. The source can be an email from the Mail app, or it can be text from an OCR'd PDF. The CleanASCII function is necessary because Acrobat will insert non-printing characters for what reason I do not know, that will crash Livecode. Since the issue occurs no matter the source, I do not think it's the nature of the data, especially since the data gets put into the field, so all functions have clearly returned (otherwise it would never see exit to top). constant cModeList = "uppercase,lowercase,numbers,custom" constant cCustomChars = "!#$%&'*+-/=?^_`{|}~.@" on dragDrop put cleanASCII(the dragData ["text"], cModeList, cCustomChars) into me exit to top end dragDrop > On Mar 24, 2017, at 09:51 , Paul Hibbert via use-livecode wrote: > > Just tried a simple test on Mac OS Sierra / LC8.1.3 and it seems to work fine here. Is there anything else that could be interfering with the dragDrop? > > Maybe the Message Watcher could give a clue as to what is happening. > > Paul From gbojsza at gmail.com Fri Mar 24 14:14:15 2017 From: gbojsza at gmail.com (Glen Bojsza) Date: Fri, 24 Mar 2017 14:14:15 -0400 Subject: iOS SDK Question In-Reply-To: References: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> <44EB1372-1515-4948-ABA6-423FA6F2C5F8@livecode.org> Message-ID: <280B3246-2DA0-4799-9BE2-33A60ACD44CF@gmail.com> As I mentioned previously...I do not have an active subscription. My license expired August 2016. When I log into my account the highest version of Livecode Indy that shows I can download is 8.1.3. I even tried activating a 7 version of Livecode which was a year prior to my license expiring and it fails. But I believe that I should still be able to use the Livecode Indy version that was covered prior to expiration. Hence, my email to Livecode support in asking what is the highest Livecode version that I can still use. Glen > On Mar 24, 2017, at 1:17 PM, panagiotis merakos via use-livecode wrote: > > I think that if you log into your account area, you should see all the LC > versions you can access with your current license. > > If you have an active subscription to Indy then you should be able to > activate any of them. > > I suggest you just download and try, or log into your account area to see. > > Best, > Panos > -- > > On Fri, Mar 24, 2017 at 5:07 PM, Glen Bojsza via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I believe it may be the last paid version that I have a license for (I >> sent a message to Livecode support to confirm what the highest paid version >> I have access to). >> >> Glen >> >>> On Mar 24, 2017, at 12:58 PM, panagiotis merakos via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> @Glen >>> >>> Why are you still using LC 8.0.1? I suggest you download the latest >> stable >>> version, currently 8.1.3: >>> >>> http://downloads.livecode.com/livecode/ >>> >>> Note that 8.1.3 on OS X 10.11.x will require Xcode 8.2. >>> >>> Best regards, >>> Panos >>> -- >>> >>> On Fri, Mar 24, 2017 at 4:52 PM, Paul Hibbert via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> >>>>>> On 23 Mar 2017, at 17:36, Glen Bojsza via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Please let me know if I missed anything. >>>> >>>> >>>> It looks like you are on the right path. Hope it goes well. >>>> >>>> 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 >>> >>> >>> >>> -- >>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Fri Mar 24 14:47:58 2017 From: jiml at netrin.com (Jim Lambert) Date: Fri, 24 Mar 2017 11:47:58 -0700 Subject: Magnification In-Reply-To: References: Message-ID: > Vokey, John wrote: > ...the ability to magnify those images... I am seeking the code in a bit of a rush. This may also help: http://forums.livecode.com/viewtopic.php?f=7&t=8288 Jim Lambert From jacque at hyperactivesw.com Fri Mar 24 15:03:29 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 24 Mar 2017 14:03:29 -0500 Subject: nabble babble In-Reply-To: References: <1490372842560-4713310.post@n4.nabble.com> Message-ID: <176dcb23-f391-5caf-790a-5decc1afa61b@hyperactivesw.com> On 3/24/17 12:19 PM, Roger Eller via use-livecode wrote: > I have always used "the mail archive" site as my X-Talk Time Machine. How do you search? I've never found a good way to do that in the "official" archives. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From roger.e.eller at sealedair.com Fri Mar 24 15:14:14 2017 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 24 Mar 2017 15:14:14 -0400 Subject: nabble babble In-Reply-To: <176dcb23-f391-5caf-790a-5decc1afa61b@hyperactivesw.com> References: <1490372842560-4713310.post@n4.nabble.com> <176dcb23-f391-5caf-790a-5decc1afa61b@hyperactivesw.com> Message-ID: I'm not sure what you mean. I just type my search terms and include the year if I want more recent results. https://www.mail-archive.com/search?q=AirLaunch+2017&l=use-livecode%40lists.runrev.com On Fri, Mar 24, 2017 at 3:03 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 3/24/17 12:19 PM, Roger Eller via use-livecode wrote: > >> I have always used "the mail archive" site as my X-Talk Time Machine. >> > > How do you search? I've never found a good way to do that in the > "official" archives. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Fri Mar 24 15:21:29 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 24 Mar 2017 14:21:29 -0500 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> Message-ID: <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> On 3/24/17 1:03 PM, Bob Sneidar via use-livecode wrote: > constant cModeList = "uppercase,lowercase,numbers,custom" > constant cCustomChars = "!#$%&'*+-/=?^_`{|}~.@" > > on dragDrop > put cleanASCII(the dragData ["text"], cModeList, cCustomChars) into me > exit to top > end dragDrop The first thing to try would be replacing "exit to top" with "pass dragdrop". If you don't pass the command, the drop doesn't happen. Everything below is off the top of my head, untested, but here are some general ideas. If "pass" doesn't work, try: on dragDrop put the dragData ["text"] into tText set the dragData ["text"] to cleanASCII(tText, cModeList, cCustomChars) pass dragDrop end dragDrop And if that doesn't work, try: on dragDrop put the dragData ["text"] into tText send "cleanUp tText" to me in 0 pass dragDrop end dragDrop on cleanUp pText put cleanASCII(me, cModeList, cCustomChars) into me end cleanUp -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Mar 24 16:33:21 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 24 Mar 2017 20:33:21 +0000 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> Message-ID: Interesting. I added the exit to top yesterday because it seemed to fix the responsiveness problem. It has been working without exit to top and pass dragdrop of over 2 years. I think it's because I am not acually allowing the drop to happen, but rather intercepting it, getting the dragData ["text"] and entering it into the field by script (would that be scripturally??) which might explain why the window becomes unresponsive the way I am doing it. The drop never *actually* happens, and that explains why exit to top corrects the issue. So here is the new code and this works a peach! on dragDrop put cleanASCII(the dragData ["text"], cModeList, cCustomChars) into tDragData put titleCase(tDragData, false) into tDragData -- capitalize first letter of each word set the dragData ["text"] to tDragData pass dragDrop end dragDrop The trick then is to allow the drop to happen, but clean up the dragData ["text"] first! Now it makes perfect sense. Thanks Jacque! Now I get to refactor the refactored refactorization that was initially refactored some time ago. Bob S > On Mar 24, 2017, at 12:21 , J. Landman Gay via use-livecode wrote: > > The first thing to try would be replacing "exit to top" with "pass dragdrop". If you don't pass the command, the drop doesn't happen. From bobsneidar at iotecdigital.com Fri Mar 24 16:36:55 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 24 Mar 2017 20:36:55 +0000 Subject: iOS SDK Question In-Reply-To: <280B3246-2DA0-4799-9BE2-33A60ACD44CF@gmail.com> References: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> <44EB1372-1515-4948-ABA6-423FA6F2C5F8@livecode.org> <280B3246-2DA0-4799-9BE2-33A60ACD44CF@gmail.com> Message-ID: <5E27F582-1BB6-402A-8C70-8FF393FA54D2@iotecdigital.com> It was explained to me that when the license expires, I would be unable to use the indy license for existing installations of Livecode, which shocked me as this was a departure from prior policy, but that horse has been beaten despite it's lifeless condition. I might be mistaken. It may only mean I cannot create standalones and download any versions released after the license expiry. Bob S > On Mar 24, 2017, at 11:14 , Glen Bojsza via use-livecode wrote: > > As I mentioned previously...I do not have an active subscription. > > My license expired August 2016. > > When I log into my account the highest version of Livecode Indy that shows I can download is 8.1.3. > > I even tried activating a 7 version of Livecode which was a year prior to my license expiring and it fails. > > But I believe that I should still be able to use the Livecode Indy version that was covered prior to expiration. Hence, my email to Livecode support in asking what is the highest Livecode version that I can still use. > > Glen From bobsneidar at iotecdigital.com Fri Mar 24 16:47:55 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 24 Mar 2017 20:47:55 +0000 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> Message-ID: <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> Whoops! Spoke too soon. Still makes the window unresponsive. Apparently the problem is intermittent. But it also looks like exit to top without allowing the drop is the only reliable solution. Bob S > On Mar 24, 2017, at 13:33 , Bob Sneidar via use-livecode wrote: > > So here is the new code and this works a peach! From dochawk at gmail.com Fri Mar 24 17:02:33 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 24 Mar 2017 14:02:33 -0700 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> Message-ID: would using "set the text of me" rather than "put into me" make a difference? On Fri, Mar 24, 2017 at 1:47 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Whoops! Spoke too soon. Still makes the window unresponsive. Apparently > the problem is intermittent. But it also looks like exit to top without > allowing the drop is the only reliable solution. > > Bob S > > > > On Mar 24, 2017, at 13:33 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > So here is the new code and this works a peach! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Fri Mar 24 17:06:06 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 24 Mar 2017 14:06:06 -0700 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: On Thu, Mar 23, 2017 at 2:04 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > I went looking, today, for a routine to recursively copy folders and files > from one place to another. I have several LC libraries, but none of them > seemed to have such a routine. All of those libraries are in stacks. > unless you're using ms windows (*hiss*), scp -rp some/folder/path target/parent/directory does the trick, and can be called by shell. For that matter, it's the only decent way I know to keep symlinks and the like intact withot "something weird" happening -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Fri Mar 24 17:34:28 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 24 Mar 2017 16:34:28 -0500 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> Message-ID: Try the "send" method then, which updates the text after the drop. On 3/24/17 3:47 PM, Bob Sneidar via use-livecode wrote: > Whoops! Spoke too soon. Still makes the window unresponsive. > Apparently the problem is intermittent. But it also looks like exit > to top without allowing the drop is the only reliable solution. > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Mar 24 17:34:51 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 24 Mar 2017 21:34:51 +0000 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> Message-ID: No, because the problem apparently happens AFTER the text is placed. Everything works, I just cannot manipulate any controls until I either move the window or select something ANYTHING, even a different program (window loses focus). Bob S > On Mar 24, 2017, at 14:02 , Dr. Hawkins via use-livecode wrote: > > would using "set the text of me" rather than "put into me" make a > difference? From gbojsza at gmail.com Fri Mar 24 17:35:57 2017 From: gbojsza at gmail.com (Glen Bojsza) Date: Fri, 24 Mar 2017 17:35:57 -0400 Subject: iOS SDK Question In-Reply-To: <5E27F582-1BB6-402A-8C70-8FF393FA54D2@iotecdigital.com> References: <5ACBF676-B2CE-4AA0-A186-217ED2417E52@livecode.org> <03BEB4C4-6953-4ABA-87F9-47A7BB7AEBD5@gmail.com> <44EB1372-1515-4948-ABA6-423FA6F2C5F8@livecode.org> <280B3246-2DA0-4799-9BE2-33A60ACD44CF@gmail.com> <5E27F582-1BB6-402A-8C70-8FF393FA54D2@iotecdigital.com> Message-ID: I'm not sure so I am waiting to hear from Livecode support. But Pycharm tried a system where users would lose their ability to continually use the product after licenses expired and the users revolted and Pycharm reversed their policy. I guess it comes to the question of how you want to work with your user base. Once I get an answer I will post it here to confirm what the situation is. Glen > On Mar 24, 2017, at 4:36 PM, Bob Sneidar via use-livecode wrote: > > It was explained to me that when the license expires, I would be unable to use the indy license for existing installations of Livecode, which shocked me as this was a departure from prior policy, but that horse has been beaten despite it's lifeless condition. > > I might be mistaken. It may only mean I cannot create standalones and download any versions released after the license expiry. > > Bob S > > >> On Mar 24, 2017, at 11:14 , Glen Bojsza via use-livecode wrote: >> >> As I mentioned previously...I do not have an active subscription. >> >> My license expired August 2016. >> >> When I log into my account the highest version of Livecode Indy that shows I can download is 8.1.3. >> >> I even tried activating a 7 version of Livecode which was a year prior to my license expiring and it fails. >> >> But I believe that I should still be able to use the Livecode Indy version that was covered prior to expiration. Hence, my email to Livecode support in asking what is the highest Livecode version that I can still use. >> >> Glen > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 24 17:38:20 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 24 Mar 2017 21:38:20 +0000 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> Message-ID: <0A381CE9-9AE5-42C0-89F9-6CD06E620FBF@iotecdigital.com> In that case sending would only replace the dropped text. No point in that. The text is getting into the field using either method. It's just that the window controls become unresponsive like they might if a script was still running. Why moving a window or switching focus would clear the condition I do not know. Bob S > On Mar 24, 2017, at 14:34 , J. Landman Gay via use-livecode wrote: > > Try the "send" method then, which updates the text after the drop. > > On 3/24/17 3:47 PM, Bob Sneidar via use-livecode wrote: >> Whoops! Spoke too soon. Still makes the window unresponsive. >> Apparently the problem is intermittent. But it also looks like exit >> to top without allowing the drop is the only reliable solution. >> > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Mar 24 17:50:36 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 24 Mar 2017 16:50:36 -0500 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: <0A381CE9-9AE5-42C0-89F9-6CD06E620FBF@iotecdigital.com> References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> <0A381CE9-9AE5-42C0-89F9-6CD06E620FBF@iotecdigital.com> Message-ID: The theory is that something is interfering with the drop, so altering the text after the drop completes might fix it. Could be a bug, but using "send" may work around it. On 3/24/17 4:38 PM, Bob Sneidar via use-livecode wrote: > In that case sending would only replace the dropped text. No point in > that. The text is getting into the field using either method. It's > just that the window controls become unresponsive like they might if > a script was still running. Why moving a window or switching focus > would clear the condition I do not know. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Mar 24 18:41:19 2017 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 24 Mar 2017 22:41:19 +0000 Subject: DragDrop makes windows unresponsive OS X In-Reply-To: References: <595B38CB-30F7-4342-BA9D-9B04BC884DC8@iotecdigital.com> <2CB8759E-8E87-442F-A7D9-E82E7FE20FCF@livecode.org> <457a8b85-0c6c-e264-36c8-00f086c803ac@hyperactivesw.com> <34F3CC5B-8EDF-4C72-BABC-B6E2AC02C25E@iotecdigital.com> <0A381CE9-9AE5-42C0-89F9-6CD06E620FBF@iotecdigital.com> Message-ID: <28057B6C-AC07-4D03-AA52-4C5496DBD2F7@iotecdigital.com> I'll give that a go. Bob S > On Mar 24, 2017, at 14:50 , J. Landman Gay via use-livecode wrote: > > The theory is that something is interfering with the drop, so altering the text after the drop completes might fix it. Could be a bug, but using "send" may work around it. From mark at canelasoftware.com Fri Mar 24 18:48:39 2017 From: mark at canelasoftware.com (Mark Talluto) Date: Fri, 24 Mar 2017 15:48:39 -0700 Subject: D3 LiveCode Chart Examples In-Reply-To: References: Message-ID: > > On Mar 23, 2017, at 10:06 PM, Todd Fabacher via use-livecode wrote: > > On Facebook people had expressed a desire to work with D3 and LiveCode. So, > here is the D3 LiveCode Chart Examples on github: > https://github.com/digitalpomegranate/D3-Livecode-Charts > > --Todd Fabacher & Digital Pomegranate Tame Really useful Todd! Thanks for this. Best regards, Mark Talluto livecloud.io canelasoftware.com From lists at mangomultimedia.com Fri Mar 24 19:00:13 2017 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 24 Mar 2017 18:00:13 -0500 Subject: D3 LiveCode Chart Examples In-Reply-To: References: Message-ID: On Fri, Mar 24, 2017 at 12:06 AM, Todd Fabacher via use-livecode < use-livecode at lists.runrev.com> wrote: > On Facebook people had expressed a desire to work with D3 and LiveCode. So, > here is the D3 LiveCode Chart Examples on github: > https://github.com/digitalpomegranate/D3-Livecode-Charts Hi Todd, Thanks for putting this up on GitHub. I have a favor to ask. Would you be willing to change the extension of the file from .livecode to .livecodescript? .livecodescript is the extension that has been adopted by the mothership for script only stacks. I've been using it myself along with others. Recently I started looking at how to get LiveCode added as a supported language to GitHub. I was pleased to find out that they pull syntax coloring from a TextMate bundle. I was sad to see that in order to accept a new language (in most cases at least) GitHub prefers to see it in widespread use. If everyone who posts files to GitHub differentiates binary stacks from script only stacks using the extension then it will be helpful going forward. As part of the submission process you have to send a search to them that shows how often the language extension is used. A search that doesn't show binary files would need to be submitted so the search would filter by .livecodescript. -- Trevor DeVore Outcome & ScreenSteps www.outcomeapp.io - www.screensteps.com From MikeKerner at roadrunner.com Fri Mar 24 21:21:15 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 24 Mar 2017 21:21:15 -0400 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: Very true - I wasn't thinking of links, and I didn't even think of trying to do it with the command-line. I would like it to be cross-platform - at least for desktops, but that's a good idea. I line to figure out the platform, and then a shell command would get it done, now wouldn't it? On Fri, Mar 24, 2017 at 5:06 PM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Thu, Mar 23, 2017 at 2:04 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I went looking, today, for a routine to recursively copy folders and > files > > from one place to another. I have several LC libraries, but none of them > > seemed to have such a routine. All of those libraries are in stacks. > > > > unless you're using ms windows (*hiss*), > > scp -rp some/folder/path target/parent/directory > > > does the trick, and can be called by shell. > > For that matter, it's the only decent way I know to keep symlinks and the > like intact withot "something weird" happening > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Sat Mar 25 09:00:53 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 25 Mar 2017 09:00:53 -0400 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: Stuff we need to do for this project: 1) Decide on the structure when you hit git. I think that we should have the routines be separate depos because it will be easier for everyone to subproject what they want. 2) Extract and format the docs for each piece 3) Build the wiki for it that will reference each piece. Anything else? On Fri, Mar 24, 2017 at 9:21 PM, Mike Kerner wrote: > Very true - I wasn't thinking of links, and I didn't even think of trying > to do it with the command-line. I would like it to be cross-platform - at > least for desktops, but that's a good idea. I line to figure out the > platform, and then a shell command would get it done, now wouldn't it? > > On Fri, Mar 24, 2017 at 5:06 PM, Dr. Hawkins via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On Thu, Mar 23, 2017 at 2:04 PM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > I went looking, today, for a routine to recursively copy folders and >> files >> > from one place to another. I have several LC libraries, but none of >> them >> > seemed to have such a routine. All of those libraries are in stacks. >> > >> >> unless you're using ms windows (*hiss*), >> >> scp -rp some/folder/path target/parent/directory >> >> >> does the trick, and can be called by shell. >> >> For that matter, it's the only decent way I know to keep symlinks and the >> like intact withot "something weird" happening >> >> >> -- >> Dr. Richard E. Hawkins, Esq. >> (702) 508-8462 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Sat Mar 25 09:02:48 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 25 Mar 2017 09:02:48 -0400 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: Did I say "depo"? REPO From MikeKerner at roadrunner.com Sat Mar 25 09:03:03 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 25 Mar 2017 09:03:03 -0400 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: YO, HAWKINS! Are you going to write the rest of the routine and make it cross-platform, already? You're holding up a library contribution! On Sat, Mar 25, 2017 at 9:02 AM, Mike Kerner wrote: > Did I say "depo"? REPO > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From james at thehales.id.au Sat Mar 25 10:28:34 2017 From: james at thehales.id.au (James Hale) Date: Sun, 26 Mar 2017 01:28:34 +1100 Subject: iOS SDK Question Message-ID: On the "pricing" page of the Livecode site, towards the bottom, there is an FAQ. The first question there is indeed what you are asking. The answer given is: "To build closed source apps you must have a valid current Indy, Business or other commercial license. If you do not renew this license your access to LiveCode will revert to the Open Source edition and you will no longer be able to build closed source apps." Fairly clear. James From richmondmathewson at gmail.com Sat Mar 25 10:54:52 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 25 Mar 2017 16:54:52 +0200 Subject: Unicode 0x1cf6 and so on Message-ID: <17498f66-c76c-f138-7fd4-a3ed09108966@gmail.com> It seems impossible to do this: put numToCodepoint(0x1cf7) into fld "fff" (LC 8.1.3) all one gets is a horrible little square (which one should not): http://www.unicode.org/charts/PDF/Unicode-10.0/U100-1CD0.pdf if one does this sort of thing: put numToCodepoint(0x1cf7) & numToCodepoint(123) into fld "fff" one gets the desired char followed by the second one (in this case, curly bracket) trying this: put numToCodepoint(7415) into fld "fff" is no better. Is this: 1. a Richmond problem? 2. a LiveCode problem? 3. a Unicode problem? Richmond. From richmondmathewson at gmail.com Sat Mar 25 11:35:09 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 25 Mar 2017 17:35:09 +0200 Subject: Unicode 0x1cf6 and so on In-Reply-To: <17498f66-c76c-f138-7fd4-a3ed09108966@gmail.com> References: <17498f66-c76c-f138-7fd4-a3ed09108966@gmail.com> Message-ID: <8d9200c9-6956-9af9-c0b1-39cd22fbf197@gmail.com> I have a "funny feeling" this is some problem with kerning rules for the characters 1CF5, 1CF6 and 1CF7 only. On 3/25/17 4:54 pm, Richmond Mathewson wrote: > It seems impossible to do this: > > put numToCodepoint(0x1cf7) into fld "fff" (LC 8.1.3) > > all one gets is a horrible little square (which one should not): > > http://www.unicode.org/charts/PDF/Unicode-10.0/U100-1CD0.pdf > > if one does this sort of thing: > > put numToCodepoint(0x1cf7) & numToCodepoint(123) into fld "fff" > > one gets the desired char followed by the second one (in this case, > curly bracket) > > trying this: > > put numToCodepoint(7415) into fld "fff" is no better. > > Is this: > > 1. a Richmond problem? > > 2. a LiveCode problem? > > 3. a Unicode problem? > > Richmond. From ambassador at fourthworld.com Sat Mar 25 11:36:01 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 25 Mar 2017 08:36:01 -0700 Subject: Line numbers for soft-wrapped styled text? Message-ID: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> I have an app that allows the user to write styled text, in which any portion of that text may have a variety of styles and sizes, and may be long enough to soft-wrap. I'd like to add a line-number field next to it, but I haven't come up with an efficient way of setting up those line numbers so that they align vertically with the lines next to them. Ideally the line numbers would reflect true lines, separated by CRs, as opposed to any soft-wrapped lines. What I'm after is common in many apps that support line numbers for style text, but alas I don't have a ready solution. Anyone here done this? Any tips you can share for doing this efficiently? -- 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 gbojsza at gmail.com Sat Mar 25 11:38:21 2017 From: gbojsza at gmail.com (Glen Bojsza) Date: Sat, 25 Mar 2017 11:38:21 -0400 Subject: iOS SDK Question In-Reply-To: References: Message-ID: Hi James, thanks for pointing this to me. I guess my earlier licenses that I had which do not fall into this category would be fine though the versions would be quite old. For example version 4.6 I should be able to do closed source apps still since the license that came with it at the time did not have this requirement. I am not certain about the last version I have installed on my old machine but I think it was in the 6 series and I bet if I boot up the machine the software should still work...it's the software that came after my license expired last year is what will need a new license for to build closed apps? Again, I should be getting an answer from Livecode support this coming week to clarify things. Glen On Sat, Mar 25, 2017 at 10:28 AM, James Hale via use-livecode < use-livecode at lists.runrev.com> wrote: > On the "pricing" page of the Livecode site, towards the bottom, there is > an FAQ. > The first question there is indeed what you are asking. > The answer given is: > "To build closed source apps you must have a valid current Indy, Business > or other commercial license. If you do not renew this license your access > to LiveCode will revert to the Open Source edition and you will no longer > be able to build closed source apps." > > Fairly clear. > > James > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Sat Mar 25 12:07:05 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 25 Mar 2017 09:07:05 -0700 Subject: Line numbers for soft-wrapped styled text? In-Reply-To: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> References: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> Message-ID: <65227854-a48e-bfe3-c1a2-1b5b6e7777ab@sonic.net> On 03/25/2017 08:36 AM, Richard Gaskin via use-livecode wrote: > I have an app that allows the user to write styled text, in which any > portion of that text may have a variety of styles and sizes, and may be > long enough to soft-wrap. > > I'd like to add a line-number field next to it, but I haven't come up > with an efficient way of setting up those line numbers so that they > align vertically with the lines next to them. > > Ideally the line numbers would reflect true lines, separated by CRs, as > opposed to any soft-wrapped lines. > > What I'm after is common in many apps that support line numbers for > style text, but alas I don't have a ready solution. > > Anyone here done this? Any tips you can share for doing this efficiently? > I looked into that for the glx2 script editor and gave up. Soft line wrapping by itself isn't a problem, and line numbering by itself isn't a problem, but there's no message generated that lets you know when wrapping is happening, and no indication in the text fields that a line has been wrapped. The only ugly solution I could think of was to iterate through each of the lines of text, comparing the line length and character width with the length of the field, and flagging an overflow as a wrapped line. And do this every time the field got resized and text added or deleted. If you're dealing with a field with mixed styles then your problems are even worse. -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Sat Mar 25 14:14:13 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 25 Mar 2017 20:14:13 +0200 Subject: Unicode 0x1cf6 and so on In-Reply-To: <8d9200c9-6956-9af9-c0b1-39cd22fbf197@gmail.com> References: <17498f66-c76c-f138-7fd4-a3ed09108966@gmail.com> <8d9200c9-6956-9af9-c0b1-39cd22fbf197@gmail.com> Message-ID: <83d42636-a040-2aba-b09f-d1cb3b27bdd3@gmail.com> NOPE: this would seem to be a LiveCode-specific problem as I just entered those 3 characters (which are present in my Devawriter.ttf) font into a LibreOffice Writer document (Mac OS) without a backward glance. Bug 19471 Richmond. On 3/25/17 5:35 pm, Richmond Mathewson wrote: > I have a "funny feeling" this is some problem with kerning rules for > the characters > 1CF5, 1CF6 and 1CF7 only. > > On 3/25/17 4:54 pm, Richmond Mathewson wrote: >> It seems impossible to do this: >> >> put numToCodepoint(0x1cf7) into fld "fff" (LC 8.1.3) >> >> all one gets is a horrible little square (which one should not): >> >> http://www.unicode.org/charts/PDF/Unicode-10.0/U100-1CD0.pdf >> >> if one does this sort of thing: >> >> put numToCodepoint(0x1cf7) & numToCodepoint(123) into fld "fff" >> >> one gets the desired char followed by the second one (in this case, >> curly bracket) >> >> trying this: >> >> put numToCodepoint(7415) into fld "fff" is no better. >> >> Is this: >> >> 1. a Richmond problem? >> >> 2. a LiveCode problem? >> >> 3. a Unicode problem? >> >> Richmond. > From ambassador at fourthworld.com Sat Mar 25 15:19:07 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 25 Mar 2017 12:19:07 -0700 Subject: Determining if orientation locked on Android? Message-ID: <3f0df0ad-1ef4-da80-96eb-6b3a6f769962@fourthworld.com> On my Android phone I have orientation locked to Portrait, yet the LC app I'm building ignores this and rotates the with the device. I see that I can handle orientations internally, but I don't see how I can determine if the user has locked their device to one specific orientation. Any clues? -- 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 Sat Mar 25 16:15:08 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 25 Mar 2017 13:15:08 -0700 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: On Sat, Mar 25, 2017 at 6:03 AM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Are you going to write the rest of the routine and make it cross-platform, > already? You're holding up a library contribution! > switch thePlatform case win32 put someCopyCommand && tgt && dest into scmd break case iOS case Android --I don't know if scp is included in the unix environments for these. if not, code would be here for whatever they use break default --a real operating system put "scp -rp" && tgt && dst into scmd break end switch put shell(scmd) into theRes if it is not empty then panic end if -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From tfabacher at gmail.com Sat Mar 25 16:41:47 2017 From: tfabacher at gmail.com (Todd Fabacher) Date: Sat, 25 Mar 2017 16:41:47 -0400 Subject: D3 LiveCode Chart Examples Message-ID: Hello LiveCoders, This was our prototype for charting, but unfortunately we have become so consumed with projects that we can not focus on this right now. We also coded the D3.js scripts so that we could use it in React. Just an FYI, some of the projects we have been working on in LiveCode...Royalty Payment system for the largest music company in the world, a live video medial app that connects patient and doctor for the largest network in the world [with live bluetooth stats fed from medical devices], interactive & live video kiosk for 5000 retail outlets for the largest PC manufacturer. Plus connecting with WP to create a great solution in the Business LMS and Tourism Industries. The LMS and tourism app are mainly WordPress, but we are using our WP API in LiveCode to create incredible mobile solutions. We are also launching our our product this week: TriviaMatic [ www.TriviaMatic.com we are still working on the web site sorry] We were selected to be in the NEW and HOTEST product section in the Nightclub and Bar show. There are 36,000 people attending and this will be our first large App we did in LiveCode that should have over 500,000 users. The bars pay a monthly fee of $199 + $499 setup fee [or the suppliers pay so the can show Ads to promote their product], and the trivia also appears on a TV [controlled by Rasberry Pi - $499 is nice markup on the device]. We also did a full interactive digital restaurant menu in the App and on the TV. Our goal is 1000 bars in the first 2 years - you do the math :-) !! Our next market after the US/Canada is Brazil...then on to Europe. The big kicker for the LiveCode community is our online/offline datasync. Your apps will be able to keep 5000+ users all in sync with just 3 lines of LiveCode in your App, which we hope will be tested and finished this quarter. We are doing the server in Google's GoLang and can be dropped on a LC server with no server experience at all. This is already in the market and use in CAT manufacturing plants and our in the field where they are used. Thanks Monte for the barcode scanning external - it was a life saver last month!! We will also be releasing a D3 interactive World Map in your App. This is for the music company...and they LOVE our solution. We just need to test and debug before putting it out and get their OK. Credit goes to Gurgen and the LiveCode team @ DP - they are becoming very creative in pushing the boundaries and getting exceptional UI/UX our of LC on mobile. Hello Richard...Here is the D3.js copyright, so I assume I will go with what they do: https://github.com/d3/d3/blob/master/LICENSE Hi Mark..Gurgen, who you met at the LiveCode conference did the D3 code. I actually have not been involved much, so he should get the credit for his hard work. Sure Trevor. Thank you for being the inspiration for us to move almost 100% to script ONLY code. We will use .livecodescript. We do even use pre built UI card anymore. Everything is all dynamically built now. We have not moved to widgets just yet, but we hope soon. --Todd & the DP Team From brahma at hindu.org Sat Mar 25 18:13:59 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 25 Mar 2017 22:13:59 +0000 Subject: Determining if orientation locked on Android? In-Reply-To: <3f0df0ad-1ef4-da80-96eb-6b3a6f769962@fourthworld.com> References: <3f0df0ad-1ef4-da80-96eb-6b3a6f769962@fourthworld.com> Message-ID: I'm not sure about how to test for lock orientation, but there are a number of related but reports, most recently http://quality.livecode.com/show_bug.cgi?id=19465 Elanor has an interesting test stack there. I suspect it is the same bug. in my case I want the "game" like screens/stacks to *always* go landscape, But we are in a modular environment, the main navigations screens are locked to portrait and rendered as such. This is working on Android if you set the mobileSetAllowedOrientations to "portrait, portrait upsidedown" So you *could* take control yourself? But if you navigated from a portrait stack to a landscape stack using? Setting the mobileSetAllowedOrientations to "landscape left,landscape right" The stack is rendered left to right very small, and only re-renders full screen when the user turns their phone. Again, not exactly your issue/question, but smells like fish in the same barrel. BR On 3/25/17, 9:19 AM, "use-livecode on behalf of Richard Gaskin via use-livecode" wrote: On my Android phone I have orientation locked to Portrait, yet the LC app I'm building ignores this and rotates the with the device. I see that I can handle orientations internally, but I don't see how I can determine if the user has locked their device to one specific orientation. Any clues? -- From brahma at hindu.org Sat Mar 25 18:22:36 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 25 Mar 2017 22:22:36 +0000 Subject: D3 LiveCode Chart Examples In-Reply-To: References: Message-ID: <1E5B1FD2-96ED-4A4D-8396-E7D3619F0F6F@hindu.org> Ditta what Trevor said. Our new app has both binary and livecodescript stacks. In the beginning I was "sloppy" and named some of the script only stacks (libraries, models, behaviors) with extension only ".livecode" in short order there is massive confusion a) about what can and cannot be opened in a text editor. b) about what can be diff'ed with the git compare tools and other "gotchas" "huh? How come that stack did not open? no window? Maybe it's off screen?" one in fact wonders why this was no enforce in the new model from the get go. It gets worse if you try to engage collaboration and the new person on the team has not been there on the ground floor. "Hmmm, should we maybe document which of these are binary and which are livecodescript files" So not only for your own LC team's sanity, but for the clarity of interface between Livecode and the rest of the languages world, Ditto what Trevor said. In fact, is there a case to be made to enforce this at the engine level? BR On 3/24/17, 1:00 PM, "use-livecode on behalf of Trevor DeVore via use-livecode" wrote: If everyone who posts files to GitHub differentiates binary stacks from script only stacks using the extension then it will be helpful going forward. As part of the submission process you have to send a search to them that shows how often the language extension is used. A search that doesn't show binary files would need to be submitted so the search would filter by .livecodescript. From brahma at hindu.org Sat Mar 25 18:26:21 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 25 Mar 2017 22:26:21 +0000 Subject: D3 LiveCode Chart Examples In-Reply-To: References: Message-ID: Do you mean to say "We do NOT even use pre-built UI cards any more" ?? Wow? that's amazing. And you are not seeing any performance issues? BR On 3/25/17, 10:41 AM, "use-livecode on behalf of Todd Fabacher via use-livecode" wrote: Sure Trevor. Thank you for being the inspiration for us to move almost 100% to script ONLY code. We will use .livecodescript. We do even use pre built UI card anymore. Everything is all dynamically built now. We have not moved to widgets just yet, but we hope soon. From alex at tweedly.net Sat Mar 25 19:00:32 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 25 Mar 2017 23:00:32 +0000 Subject: Line numbers for soft-wrapped styled text? In-Reply-To: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> References: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> Message-ID: Never done it, but I had a quick play .... and found a way to do it - but whether it would count as "efficiently" or not is debatable :-( It does about 4 lines of text per millisecond on my elderly MacBook Pro (with LC 9.0.0 DP6) If you have a way of determining which line(s) are being changed, then you could run this only from that line onward to save some time .... Here's the code snippet I was playing with; it assumes field "F1" - the text field "f2" - the line numbers, these two fields should have matching base, height, etc. Basically, it runs through the original field finding the formatted height of each line. I can't find any way to get that except as the formattedHeight of an entire field, so it has to loop through each line in turn. The easy way to do that (simply adding each line) is painfully slow, so instead it loops through the lines, add each one in turn *as the second line*, so it get the height difference between that and a single line. [ hmmm - not very clear ! Feel free to ask me to explain myself better :-) ] and finally restores the original field "F1" Then it runs through the lines of field "F2" setting the 'spacebelow' of each line so that it matches the height of the styled & soft-wrapped line of the text field. Like I said - it works (at least for my simple testing), but it ain't superfast .... -- Alex. local sHeights on mouseUp pK local tA, tB local temp, t1, t2, t3, tt, tBase put the millisecs into t1 set the lockscreen to true set the textHeight of fld "f2" to 12 put the styledtext of fld "f1" into tA put empty into tB put empty into sHeights put 0 into sHeights[0] put tA[1] into tB[1] -- and make it single line put empty into tB[1]["runs"] put "abc" into tB[1]["runs"][1]["text"] -- and then get the differential height of one simple line put tB[1] into tB[2] set the styledText of fld "f1" to tB put the formattedHeight of fld "f1" into tBase repeat with i = 1 to the number of lines in the keys of tA put tA[i] into tB[2] set the styledText of fld "f1" to tB put the formattedHeight of fld "f1" into sHeights[i] -- put i && the number of lines in fld "f1" && sHeights[i] &CR after msg end repeat set the styledText of fld "f1" to tA put empty into fld "f2" repeat with i = 1 to the number of lines in fld "f1" put i &CR after tt end repeat set the text of fld "f2" to tt put the millisecs into t2 repeat with i = 1 to the number of lines in fld "f1" put sHeights[i] - tBase into temp if temp > 0 then set the spacebelow of line i of fld "f2" to temp end if end repeat put the millisecs into t3 set the lockscreen to false put t2 - t1 && t3 - t2 && t3 - t1 &CR after msg --put sLineNum && the formattedheight of fld "f2" && tR end mouseUp On 25/03/2017 15:36, Richard Gaskin via use-livecode wrote: > I have an app that allows the user to write styled text, in which any > portion of that text may have a variety of styles and sizes, and may > be long enough to soft-wrap. > > I'd like to add a line-number field next to it, but I haven't come up > with an efficient way of setting up those line numbers so that they > align vertically with the lines next to them. > > Ideally the line numbers would reflect true lines, separated by CRs, > as opposed to any soft-wrapped lines. > > What I'm after is common in many apps that support line numbers for > style text, but alas I don't have a ready solution. > > Anyone here done this? Any tips you can share for doing this > efficiently? > From ambassador at fourthworld.com Sat Mar 25 19:25:23 2017 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 25 Mar 2017 16:25:23 -0700 Subject: Line numbers for soft-wrapped styled text? In-Reply-To: References: Message-ID: <4c3f5583-fa10-dafc-66e3-798b09326be4@fourthworld.com> Nicely done, Alex - thanks! -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From hh at hyperhh.de Sat Mar 25 19:38:28 2017 From: hh at hyperhh.de (hh) Date: Sun, 26 Mar 2017 00:38:28 +0100 Subject: Colour Manipulation Message-ID: <32270082-26DC-419D-8B7F-1270A1B70497@hyperhh.de> Hi all. Today I implemented this as part of LCImageToolBox89: Basics. Get it _from LC 8/9_ via "Sample Stacks" of the LC-Toolbar or http://livecodeshare.runrev.com/stack/826/LC-ImageToolBox89%3A-Basics Uses Canvas2D (no webGL because of issues with some graphic cards) in a hidden browser widget. Your method gives nice Effects and works with a decent graphic card pretty fast. Needs here with LC 8/9 on a Mac mini 2.5 GHz/IntelHD4000 for a 1920x1080 image < 500 millisecs. From dunbarx at aol.com Sat Mar 25 19:40:55 2017 From: dunbarx at aol.com (dunbarx) Date: Sat, 25 Mar 2017 16:40:55 -0700 (PDT) Subject: Line numbers for soft-wrapped styled text? In-Reply-To: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> References: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> Message-ID: <1490485255163-4713356.post@n4.nabble.com> Hi. Make two small fields, both with lineWrap set to "false". Line up the two field horizontally. Put some wrapped text into vld 1. Put this in a button somewhere: on mouseUp lock screen put fld 1 into storage replace return with return & numToChar(208) in fld 1 put fld 1 into workingText put the formattedText of fld 1 into temp put 1 into line 1 of lineCounter put 1 into lineTracker repeat with y = 1 to the number of lines of temp if line y of temp contains numToChar(208) then add 1 to lineTracker put lineTracker into line y of lineCounter end if end repeat put storage into fld 1 put lineCounter into fld 2 end mouseUp I needed to pollute the source field in order to use the formattedText and identify the hard returns. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Line-numbers-for-soft-wrapped-styled-text-tp4713343p4713356.html Sent from the Revolution - User mailing list archive at Nabble.com. From hh at hyperhh.de Sat Mar 25 19:51:14 2017 From: hh at hyperhh.de (hh) Date: Sun, 26 Mar 2017 00:51:14 +0100 Subject: Widget usage examples Message-ID: <38AE8950-CCC7-436B-A860-079007663852@hyperhh.de> Widget usage example #2: LC-ImageToolBox89_Basics http://forums.livecode.com/viewtopic.php?p=152723#p152723 You will be astonished how close the core of the javascripts is to the handling of imagedata in LCScript. There are a lot among you who will add and change effects without knowing javascript, simply by using an existing function as 'template' (and use a correct 'header' and 'footer' around it). Using LC 8.1.3/9.0.0-dp6 the stack runs (tested) well on Mac 10.12 and Win 7/10, depends also on your CPU/GPU combination. On Linux (Mint 181c) I got sadly the well-known "linux-something-dialogs". I hope that somebody has on linux more success and/or can help me to work around this bug of the browser widget. > Widget usage example #1: Ken-Burns-Effect > http://forums.livecode.com/viewtopic.php?p=152547#p152547 From alex at tweedly.net Sat Mar 25 19:59:46 2017 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 25 Mar 2017 23:59:46 +0000 Subject: Line numbers for soft-wrapped styled text? In-Reply-To: <1490485255163-4713356.post@n4.nabble.com> References: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> <1490485255163-4713356.post@n4.nabble.com> Message-ID: <3eaf75e3-ec01-fa89-7bd7-d75397205fc4@tweedly.net> Hi. That works for "simple" fields which may contain soft-wrapped lines - but it doesn't account for styled text (e.g. where different lines may be different font sizes (or even mixed sizes), or where paragraph spacing has been set, or .... all the complex kinds of text we can now do. but for situations where those complexities can be avoided, it is much simpler and faster :-) -- Alex. On 25/03/2017 23:40, dunbarx via use-livecode wrote: > Hi. > > Make two small fields, both with lineWrap set to "false". Line up the two > field horizontally. Put some wrapped text into vld 1. Put this in a button > somewhere: > > on mouseUp > lock screen > put fld 1 into storage > replace return with return & numToChar(208) in fld 1 > put fld 1 into workingText > put the formattedText of fld 1 into temp > put 1 into line 1 of lineCounter > put 1 into lineTracker > repeat with y = 1 to the number of lines of temp > if line y of temp contains numToChar(208) then > add 1 to lineTracker > put lineTracker into line y of lineCounter > end if > end repeat > put storage into fld 1 > put lineCounter into fld 2 > end mouseUp > > I needed to pollute the source field in order to use the formattedText and > identify the hard returns. > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Line-numbers-for-soft-wrapped-styled-text-tp4713343p4713356.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sat Mar 25 20:06:11 2017 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 25 Mar 2017 20:06:11 -0400 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: thanks, I was hoping it would be complete so I could just copy/paste it... On Sat, Mar 25, 2017 at 4:15 PM, Dr. Hawkins via use-livecode < use-livecode at lists.runrev.com> wrote: > On Sat, Mar 25, 2017 at 6:03 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Are you going to write the rest of the routine and make it > cross-platform, > > already? You're holding up a library contribution! > > > > switch thePlatform > > case win32 > > put someCopyCommand && tgt && dest into scmd > > break > > case iOS > > case Android > > --I don't know if scp is included in the unix environments for these. > > if not, code would be here for whatever they use > > break > > default > > --a real operating system > > put "scp -rp" && tgt && dst into scmd > > break > > end switch > > put shell(scmd) into theRes > > if it is not empty then > > panic > > end if > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From sims at ezpzapps.com Sat Mar 25 20:33:48 2017 From: sims at ezpzapps.com (LiveCode Developer List) Date: Sun, 26 Mar 2017 03:33:48 +0300 Subject: =?utf-8?B?anVzdCBzb21lIGNvb2wgc3R1ZmY=?= Message-ID: <1919894015.20170326033348@ezpzapps.com> Dear, Do you want to take a look at the coolest things ever? Here is the link http://6url.ru/mdUU Warmest, LiveCode Developer List From sims at ezpzapps.com Sat Mar 25 20:33:48 2017 From: sims at ezpzapps.com (LiveCode Developer List) Date: Sun, 26 Mar 2017 03:33:48 +0300 Subject: =?utf-8?B?anVzdCBzb21lIGNvb2wgc3R1ZmY=?= Message-ID: <1919894015.20170326033348@ezpzapps.com> Dear, Do you want to take a look at the coolest things ever? Here is the link http://6url.ru/mdUU Warmest, LiveCode Developer List From james at thehales.id.au Sat Mar 25 20:41:05 2017 From: james at thehales.id.au (James Hale) Date: Sun, 26 Mar 2017 11:41:05 +1100 Subject: iOS SDK Question Message-ID: <47DF2367-99F8-4F43-B5F0-F3A9DFC7D76D@thehales.id.au> The other way to be sure about your particular case is to visit your account page on the LiveCode site. The login link is in the upper right of the page. When I visit mine I see all my licenses and can tell from the version pop-up associated with each one what is actually licensed. I have 4 From the oldest to the newest they go: LiveCode Personal- the pop up shows 4.6.4 and the deployment tab indicates it is for iOS LiveCode Commercial - the pop up shows 5.5.5 and the deployment tab indicates three platforms (Mac Windows and Linux) versions 4.5.x to 5.5.x LiveCode Commercial - the pop up shows 8.1.3 down to 6.1.0 and the deployment tab shows 7 platforms valid for all versions. This is a perpetual license from the kickstarter. LiveCode Business - the pop up shows 8.1.3 down to 6.1.0 and the deployment tab shows 6 platforms valid as follows: valid for all versions while your subscription remains active. So, while I have a perpetual commercial license my business license needs to be renewed annually. This means if I do not renew it I can no longer use, maintain, develop or release using the business edition. If you examine what you have listed under your account page on the LiveCode site you will be able to answer you questions. From dunbarx at aol.com Sat Mar 25 21:01:20 2017 From: dunbarx at aol.com (dunbarx) Date: Sat, 25 Mar 2017 18:01:20 -0700 (PDT) Subject: Line numbers for soft-wrapped styled text? In-Reply-To: <3eaf75e3-ec01-fa89-7bd7-d75397205fc4@tweedly.net> References: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> <1490485255163-4713356.post@n4.nabble.com> <3eaf75e3-ec01-fa89-7bd7-d75397205fc4@tweedly.net> Message-ID: <1490490080166-4713362.post@n4.nabble.com> Sannyasin. I know. I offer it just because I saw right away when I read the OP's post how to harvest soft-wrapped lines, and just wanted to play with the idea. I find it just a bit ugly to be required to "pollute", as I said, the source field in order to "find" the hard wraps.. So, just lock the text and move on... Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Line-numbers-for-soft-wrapped-styled-text-tp4713343p4713362.html Sent from the Revolution - User mailing list archive at Nabble.com. From gbojsza at gmail.com Sat Mar 25 21:10:11 2017 From: gbojsza at gmail.com (Glen Bojsza) Date: Sat, 25 Mar 2017 21:10:11 -0400 Subject: iOS SDK Question In-Reply-To: <47DF2367-99F8-4F43-B5F0-F3A9DFC7D76D@thehales.id.au> References: <47DF2367-99F8-4F43-B5F0-F3A9DFC7D76D@thehales.id.au> Message-ID: Hi James, Well I saw this in my account...but the license file and online activation won't work? So is this telling me I still have valid license for the following versions but the system won't allow me to install them? I have tried both the license file which ends up a zero bytes or automatic licensing where I repeatedly get an error message... =============================== Copied Directly From My Account Page =============================== You license allows you access to the following platforms: Mac valid from version 5.5.x to version 8.0.2 Windows valid from version 5.5.x to version 8.0.2 Linux valid from version 5.5.x to version 8.0.2 iOS valid from version 5.5.x to version 8.0.2 Android valid from version 5.5.x to version 8.0.2 Server valid from version 5.5.x to version 8.0.2 On Sat, Mar 25, 2017 at 8:41 PM, James Hale via use-livecode < use-livecode at lists.runrev.com> wrote: > The other way to be sure about your particular case is to visit your > account page on the LiveCode site. The login link is in the upper right of > the page. > > When I visit mine I see all my licenses and can tell from the version > pop-up associated with each one what is actually licensed. > > I have 4 > > From the oldest to the newest they go: > LiveCode Personal- the pop up shows 4.6.4 and the deployment tab indicates > it is for iOS > LiveCode Commercial - the pop up shows 5.5.5 and the deployment tab > indicates three platforms (Mac Windows and Linux) versions 4.5.x to 5.5.x > LiveCode Commercial - the pop up shows 8.1.3 down to 6.1.0 and the > deployment tab shows 7 platforms valid for all versions. This is a > perpetual license from the kickstarter. > LiveCode Business - the pop up shows 8.1.3 down to 6.1.0 and the > deployment tab shows 6 platforms valid as follows: valid for all versions > while your subscription remains active. > So, while I have a perpetual commercial license my business license needs > to be renewed annually. This means if I do not renew it I can no longer > use, maintain, develop or release using the business edition. > > If you examine what you have listed under your account page on the > LiveCode site you will be able to answer you questions. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brahma at hindu.org Sat Mar 25 21:20:36 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 26 Mar 2017 01:20:36 +0000 Subject: Extra Title Bar in All Stacks Message-ID: Something bizarre started happening this afternoon Mac OSx 10.12.3 Sierra LC 9DP5 Stack are opening with a second title bar underneath the *real* title bar. see http://wiki.hindu.org/uploads/extra-title-var.jpg I deleted my settings, removed all plug-ins, deleted settings again, rebooted? stack still appear with a second title bar. any clues to what is wrong? BR From ahsoftware at sonic.net Sat Mar 25 21:25:49 2017 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 25 Mar 2017 18:25:49 -0700 Subject: Line numbers for soft-wrapped styled text? In-Reply-To: References: <409616cb-4170-0acb-f19c-3c247da9e52e@fourthworld.com> Message-ID: On 03/25/2017 04:00 PM, Alex Tweedly via use-livecode wrote: > Never done it, but I had a quick play .... Hmmm... nice approach. And clever use of spacebelow. > If you have a way of determining which line(s) are being changed, then > you could run this only from that line onward to save some time .... No, I don't think that would work. First of all, you'd need to keep track of how many lines before the changed line were already wrapped, so that you could know what line number to start with. So you'd have to have already predetermined the relationships of the line starts to the line numbers and either stored that somewhere and keep updating the list; or work out the line starts each time. Secondly, you'll need to trap some events in a frontscript and handle things like inserting and deleting text, resizing the field/card, etc. -- Mark Wieder ahsoftware at gmail.com From brahma at hindu.org Sat Mar 25 21:29:23 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 26 Mar 2017 01:29:23 +0000 Subject: Extra Title Bar in All Stacks In-Reply-To: References: Message-ID: Further testing: This is only occurring on stacks with "resize" set to true.. if I uncheck that the second title bar disappears. My gut says it has something to do with the "decorations" property of stacks being corrupted. On 3/25/17, 3:20 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" wrote: Something bizarre started happening this afternoon Mac OSx 10.12.3 Sierra LC 9DP5 Stack are opening with a second title bar underneath the *real* title bar. see http://wiki.hindu.org/uploads/extra-title-var.jpg I deleted my settings, removed all plug-ins, deleted settings again, rebooted? stack still appear with a second title bar. any clues to what is wrong? BR From colinholgate at gmail.com Sat Mar 25 21:45:27 2017 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 25 Mar 2017 18:45:27 -0700 Subject: Extra Title Bar in All Stacks In-Reply-To: References: Message-ID: It?s a standard Sierra feature that LiveCode doesn?t fully support yet. The View menu is supposed to have a Show Tab Bar menu item, which would hide the tab bar part of the window. The option is there sometimes, so if you?re lucky enough to see it you can deselect it. If the tab bar is showing you can drag one stack?s tab bar to another stack?s tab bar to dock them together. There should also be a + button in the tab bar too, which in LiveCode I suppose would start a new stack as a tab. Stacks that are docked together are effectively the same card size, so if LiveCode does do better support it should be possible to start a new stack as a tab, and at the card side of the existing stack, without you having to say what size stack you want. > On Mar 25, 2017, at 6:20 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > Something bizarre started happening this afternoon > > Mac OSx 10.12.3 Sierra > LC 9DP5 > > Stack are opening with a second title bar underneath the *real* title bar. > > see http://wiki.hindu.org/uploads/extra-title-var.jpg > > I deleted my settings, removed all plug-ins, deleted settings again, rebooted? stack still appear with a second title bar. > > any clues to what is wrong? > > BR > From brahma at hindu.org Sat Mar 25 22:00:35 2017 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 26 Mar 2017 02:00:35 +0000 Subject: Extra Title Bar in All Stacks In-Reply-To: References: Message-ID: confirmed. Create new stack (leave it untitled) ? I am getting a second "tab bar" under the *real* title bar of the new stack Create second new stack Hmmm, yes, fascinating, I can drag the title bar slowly onto the first stack and let go Now I have Untitled 2 # top of window untitled 1 * | Untitled 2 * # two tabs -- Nothing in the view menu relatedt to tabs. -- turn off resizeable in untitled 2 and the stack "jumps" out to a new window. OK, none of my stacks in this project need to be resizeable I can live with it, but a) why would it appear suddently and b) why doesn't it go away after delete settings? Is there another place where the engine is writing prefs or settings that we don't know about? It wasn't happening yesterday, in stacks that *were* resizeable. Something I did today triggered this new behavior. BR On 3/25/17, 3:45 PM, "use-livecode on behalf of Colin Holgate via use-livecode" wrote: It?s a standard Sierra feature that LiveCode doesn?t fully support yet. The View menu is supposed to have a Show Tab Bar menu item, which would hide the tab bar part of the window. The option is there sometimes, so if you?re lucky enough to see it you can deselect it. If the tab bar is showing you can drag one stack?s tab bar to another stack?s tab bar to dock them together. There should also be a + button in the tab bar too, which in LiveCode I suppose would start a new stack as a tab. Stacks that are docked together are effectively the same card size, so if LiveCode does do better support it should be possible to start a new stack as a tab, and at the card side of the existing stack, without you having to say what size stack you want. > On Mar 25, 2017, at 6:20 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > Something bizarre started happening this afternoon > > Mac OSx 10.12.3 Sierra > LC 9DP5 > > Stack are opening with a second title bar underneath the *real* title bar. > > see http://wiki.hindu.org/uploads/extra-title-var.jpg > > I deleted my settings, removed all plug-ins, deleted settings again, rebooted? stack still appear with a second title bar. > > any clues to what is wrong? > > 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 richmondmathewson at gmail.com Sun Mar 26 08:05:24 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 26 Mar 2017 15:05:24 +0300 Subject: A funny thing happened on the way to the forum. Message-ID: <001b7eaa-a16a-8559-a82a-d8c19098aab1@gmail.com> Good! That caught your attention! But, something a lot more prosaic, but important nonetheless: If I have a SWITCH like this: on rawKeyDown RAWK switch RAWK case 65288 set the text of the selectedText to numToCodepoint(65288) break end switch end rawKeyDown why do I get a /space/ followed by "(", and NOT a simple case of the preceding character being deleted? 8.1.3 Mac OS 10.7.5 Muffled rude noises in background, Richmond. From richmondmathewson at gmail.com Sun Mar 26 08:14:42 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 26 Mar 2017 15:14:42 +0300 Subject: A funny thing happened on the way to the forum. In-Reply-To: <001b7eaa-a16a-8559-a82a-d8c19098aab1@gmail.com> References: <001b7eaa-a16a-8559-a82a-d8c19098aab1@gmail.com> Message-ID: <458b20c4-5894-0877-d412-b682feb20791@gmail.com> Cripes . . . Now how was I to know that: onrawKeyUp KUP switchKUP case65288 iffld "Blah" is empty then --do nix--- else deletetheselectedText endif break default passrawKeyUp endswitch endrawKeyUp would work, while the same nonsense inside a rawKeyDown thing ended up with egg salad? Talk about "under-documented". Further muffled, rude noises, Richmond. On 3/26/17 3:05 pm, Richmond Mathewson wrote: > Good! That caught your attention! > > But, something a lot more prosaic, but important nonetheless: > > If I have a SWITCH like this: > > on rawKeyDown RAWK > switch RAWK > case 65288 > set the text of the selectedText to numToCodepoint(65288) > break > end switch > end rawKeyDown > > why do I get a /space/ followed by "(", and NOT a simple case of > the preceding character being deleted? > > 8.1.3 Mac OS 10.7.5 > > Muffled rude noises in background, Richmond. From richmondmathewson at gmail.com Sun Mar 26 09:41:28 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 26 Mar 2017 16:41:28 +0300 Subject: LiveCode's handling of Unicode glyphs being dependent on the underlying OS In-Reply-To: <9d8efc69-7e03-eef4-14ba-e3d1cea3273f@gmail.com> References: <9d8efc69-7e03-eef4-14ba-e3d1cea3273f@gmail.com> Message-ID: *Mark Waddingham_wrote:_ * > snip > I suspect OpenOffice does its own (bespoke) font layout and rendering which is > why it 'does something there'. However, whether or not what it does is > 'correct', is another matter. > > snip Of course the "nasty" question to ask at this point is why LiveCode IS dependent for Unicode handling on the underlying OS and is unable to do its own internal processing. While I'm on a "nasty" streak this page needs to be sorted out: http://lessons.livecode.com/m/4071/l/20441-unicode as it makes no mention of *numToCodepoint*. Here, Fraser says something about Unicode: *https://livecode.com/tag/unicode/ "*Those of you who have been paying attention to my previous blog posts (if you exist!) will have heard me mention that to convert between Text and Binary you need to use textEncode and textDecode. With these functions, you specify an encoding. But when the engine does it automatically, what encoding does it use? "The answer is the "native" encoding of the OS on which LiveCode is running. This means "CP1252" on Windows, "MacRoman" on OSX and iOS and "ISO-8859-1" on Linux and Android. All of these platforms fully support Unicode these days but these were the traditional encodings on these platforms before the Unicode standard came about. LiveCode keeps these encodings for backwards-compatibility." [ Oh, and Yes, Fraser, I, at least, have read your blog posts with great interest. ] So, LiveCode keeps encodings for bw compat., but penalises people who would like to be forward compatible; at least in the ability to run off standalones that will function on later instantiations of operating systems, and to that end making sure that these things show up on the older operating systems. Of course one of the easier ways round this is to withdraw support for earlier OSes . . . But as the documentation for LiveCode 8.1.3 states: T The Mac engine supports: 10.6.x (Snow Leopard) on Intel 10.7.x (Lion) on Intel 10.8.x (Mountain Lion) on Intel 10.9.x (Mavericks) on Intel 10.10.x (Yosemite) on Intel 10.11.x (El Capitan) on Intel 10.12.x (Sierra) on Intel something is not quite right. Richmond. From dochawk at gmail.com Sun Mar 26 11:30:14 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 26 Mar 2017 08:30:14 -0700 Subject: just some cool stuff In-Reply-To: <1919894015.20170326033348@ezpzapps.com> References: <1919894015.20170326033348@ezpzapps.com> Message-ID: This is the the second time in a week that one of these penetrated the list, I believe . .. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sun Mar 26 11:32:39 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 26 Mar 2017 08:32:39 -0700 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: On Sat, Mar 25, 2017 at 5:06 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > thanks, I was hoping it would be complete so I could just copy/paste it... > I don't do windows :) You certainly need someone who knows the incantation for windows. I suspect that iOS and Android can be part of the default, as I assume that anyone implementing a unix environment would include something so fundamentally basic, but I don't know . . . Or you could have case windows answer "If you had bought a real computer, I could have done this for you!" break :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From richmondmathewson at gmail.com Sun Mar 26 11:38:49 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 26 Mar 2017 18:38:49 +0300 Subject: just some cool stuff In-Reply-To: References: <1919894015.20170326033348@ezpzapps.com> Message-ID: <9ae0a065-c03e-edd1-0cce-99f6818c7f42@gmail.com> Yup: me too: second time. Richmond. On 3/26/17 6:30 pm, Dr. Hawkins via use-livecode wrote: > This is the the second time in a week that one of these penetrated the > list, I believe . .. From richmondmathewson at gmail.com Sun Mar 26 11:40:26 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 26 Mar 2017 18:40:26 +0300 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: On 3/26/17 6:32 pm, Dr. Hawkins via use-livecode wrote: > On Sat, Mar 25, 2017 at 5:06 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> thanks, I was hoping it would be complete so I could just copy/paste it... >> > I don't do windows :) > > You certainly need someone who knows the incantation for windows. > > I suspect that iOS and Android can be part of the default, as I assume that > anyone implementing a unix environment would include something so > fundamentally basic, but I don't know . . . > > Or you could have > > case windows > > answer "If you had bought a real computer, I could have done this for you!" > > break Funny . . . NOT I run Linux very successfully on what you seem to term a 'fake computer'. The problem is not with the hardware. > :) > > Richmond. From richmondmathewson at gmail.com Sun Mar 26 11:48:05 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 26 Mar 2017 18:48:05 +0300 Subject: LiveCode's handling of Unicode glyphs being dependent on the underlying OS In-Reply-To: References: <9d8efc69-7e03-eef4-14ba-e3d1cea3273f@gmail.com> Message-ID: Interestingly enough this FREE program for Macintosh: https://www.macupdate.com/app/mac/9752/unicodechecker Very successfully displays glyphs I have built into my Devawriter.ttf font in comformance with the Unicode version 10 Beta specification. This all on my supposedly outmoded system 10.7.5 plastic box. Richmond. From richmondmathewson at gmail.com Sun Mar 26 11:52:16 2017 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 26 Mar 2017 18:52:16 +0300 Subject: UnicodeChecker Message-ID: I am extremely impressed by your program. I have just downloaded it onto my "New-for-you" Polycarbonate iMac running Mac OS 10.7.5 and blew my mind when I saw it could display characters from a font I have built in conformance with the Unicode 10 Beta specifications: especially when Mac OS 10.7.5 supposedly cannot hadnle anything after Unicode 6. I would be extremely grateful if the supposed limits on Mac OS 10.7.5 gave you ay problems while you were developing UnicodeChecker and in which programming langaueg you made it. sincerely, Richmond Mathewson. From dochawk at gmail.com Sun Mar 26 12:03:26 2017 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 26 Mar 2017 09:03:26 -0700 Subject: Libraries To Contribute In-Reply-To: References: Message-ID: On Sun, Mar 26, 2017 at 8:40 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > Funny . . . NOT > > I run Linux very successfully on what you seem to term a 'fake computer'. > > So you turned it real. (OK, that's assuming you installed nethack while you were at it . . .) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From paul at livecode.org Sun Mar 26 13:58:18 2017 From: paul at livecode.org (Paul Hibbert) Date: Sun, 26 Mar 2017 10:58:18 -0700 Subject: Extra Title Bar in All Stacks In-Reply-To: References: Message-ID: <64D3A854-6C97-4BDE-B454-EAC01C353CED@livecode.org> This came up a while ago, and Colin Holgate pointed out that it comes from a System Preference setting for the Dock (go figure!). Go to the Apple Menu, open System Preferences and choose the Dock icon. Look at the fifth item down the window and you?ll see: Prefer tabs when opening documents: Always | In Full Screen Only | Manually If you set this to ?Always? you will see the Tab Bars appear in resizable LC windows. If it?s set to "In Full Screen Only?, then the tabs will appear if you create a new stack while your current stack or window is open in full screen mode. If it?s set to ?Manually? then the Tab bars don?t normally appear. These settings are obviously local to your machine, so I doubt it would (easily) be successful to try developing an app that relies on this, so to me it makes most sense to leave it set to ?Manually?, but no doubt someone could take advantage of this if they are willing to put in the extra effort needed, but don?t take my word for that! Paul > On 25 Mar 2017, at 19:00, Sannyasin Brahmanathaswami via use-livecode wrote: > > confirmed. > > Create new stack (leave it untitled) > > ? I am getting a second "tab bar" under the *real* title bar of the new stack > > Create second new stack > > Hmmm, yes, fascinating, I can drag the title bar slowly onto the first stack and let go > > Now I have > Untitled 2 # top of window > > untitled 1 * | Untitled 2 * # two tabs > > -- Nothing in the view menu relatedt to tabs. > -- turn off resizeable in untitled 2 and the stack "jumps" out to a new window. > > OK, none of my stacks in this project need to be resizeable I can live with it, but > a) why would it appear suddently and > b) why doesn't it go away after delete settings? > > Is there another place where the engine is writing prefs or settings that we don't know about? It wasn't happening yesterday, in stacks that *were* resizeable. Something I did today triggered this new behavior. > > BR > > On 3/25/17, 3:45 PM, "use-livecode on behalf of Colin Holgate via use-livecode" wrote: > > It?s a standard Sierra feature that LiveCode doesn?t fully support yet. The View menu is supposed to have a Show Tab Bar menu item, which would hide the tab bar part of the window. The option is there sometimes, so if you?re lucky enough to see it you can deselect it. > > If the tab bar is showing you can drag one stack?s tab bar to another stack?s tab bar to dock them together. There should also be a + button in the tab bar too, which in LiveCode I suppose would start a new stack as a tab. > > Stacks that are docked together are effectively the same card size, so if LiveCode does do better support it should be possible to start a new stack as a tab, and at the card side of the existing stack, without you having to say what size stack you want. > > >> On Mar 25, 2017, at 6:20 PM, Sannyasin Brahmanathaswami via use-livecode wrote: >> >> Something bizarre started happening this afternoon >> >> Mac OSx 10.12.3 Sierra >> LC 9DP5 >> >> Stack are opening with a second title bar underneath the *real* title bar. >> >> see http://wiki.hindu.org/uploads/extra-title-var.jpg >> >> I deleted my settings, removed all plug-ins, deleted settings again, rebooted? stack still appear with a second title bar. >> >> any clues to what is wrong? >> >> BR >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sun Mar 26 16:37:10 2017 From: hh at hyperhh.de (hh) Date: Sun, 26 Mar 2017 22:37:10 +0200 Subject: Colour Manipulation Message-ID: Now this is also available, very fast, with the same speed, for LC 6/7/8/9 on Mac using Canvas2d in a revBrowser instance (on Win revBrowser doesn't support Canvas2d) in LC-ImageToolBox-67: Basics. Get it via "Sample Stacks" of the LC-Toolbar or from http://livecodeshare.runrev.com/stack/827/LCImageToolBox67%3A-Basics-v102 Somehow I missed the possibility of LC 6/7's revBrowser to use Canvas2D on Mac until now, the gain in speed compared to 'ordinary' LCScript is terrific. Just try in LC 7! It was Jonathan's transform-demo for the browser widget that opened my eyes. Thanks again for that example, Jonathan. There's still a fast working solution for linux missing and for Raspi (which sadly inherits the linux bugs with web browssing). Within the next weeks I will publish LC-ImageToolBox-JIT for that (uses luaJIT), I have it already running. > hh wrote: > Today I implemented this as part of LC-ImageToolBox-89: Basics. > Get it _from LC 8/9_ via "Sample Stacks" of the LC-Toolbar or from > > http://livecodeshare.runrev.com/stack/826/LC-ImageToolBox89%3A-Basics-v102 > > Uses Canvas2D (no webGL because of issues with some graphic cards) > in a hidden browser widget. Your method gives nice Effects and works > with a decent graphic card pretty fast. Needs here with LC 8/9 on a > Mac mini 2.5 GHz/IntelHD4000 for a 1920x1080 image < 500 millisecs. > >> Peter R. wrote: >> I've got an app that allows the user to display an image using a >> variable number of colours (2-24 colours). In addition, the user >> can specify upper and lower thresholds so that all pixels below a >> specified value are displayed using a colour such as black and all >> pixels with values above a specified value are displayed using a >> colour such as red. >> Pixels with values between the thresholds are displayed using the >> specified colour range of 2-24 colours. The images can consist of >> up to 8-10 million pixels, they are rectangular and can be in a >> landscape or portrait orientation. >> >> Whilst I have this working the code that manages the changing of >> the number and use of colours in an image is rather slow. This is >> despite me using the "repeat for each" loop structure and lock the >> screen wherever possible to get the maximum speed! >> >> Does anyone have any clever algorithms, code, add-ons, etc that can >> do this kind of thing in a flash?! From jacque at hyperactivesw.com Sun Mar 26 17:08:47 2017 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 26 Mar 2017 16:08:47 -0500 Subject: A funny thing happened on the way to the forum. In-Reply-To: <458b20c4-5894-0877-d412-b682feb20791@gmail.com> References: <001b7eaa-a16a-8559-a82a-d8c19098aab1@gmail.com> <458b20c4-5894-0877-d412-b682feb20791@gmail.com> Message-ID: On 3/26/17 7:14 AM, Richmond Mathewson via use-livecode wrote: > Cripes . . . Now how was I to know that: