Re: Help with Linux app built with LC on Mac

2025-01-15 Thread Martin Koob via use-livecode
Hi Paul I wonder if you would have a better experience using Docker https://www.docker.com/ to set up a container running Linux on your Mac to do your testing. I am no expert on Docker and less so on Linux. I have used Docker to run a web service locally on my Mac to test cmi5 packages for co

Re: Help with Linux app built with LC on Mac

2025-01-14 Thread Paul - Livecode via use-livecode
Just a quick follow up for anyone following or interested in this issue. Apparently the problem is caused by Parallels on Apple M series devices are running Linux on an ARM platform, so there is no emulator for the x86 commands, it is just a processor compatibility issue. Linux on ARM is a rela

Re: Help with Linux app built with LC on Mac

2025-01-11 Thread Paul - Livecode via use-livecode
Hi Martin, Thank you for your reply, apologies for the delayed response, we have been travelling/sightseeing for a few days so I have not had much time for the computer, a little rain has slowed activities today! :-) I tried the ldd command, but it just returned ’not a dynamic executable’, I a

Re: Help with Linux app built with LC on Mac

2025-01-05 Thread Martin Baxter via use-livecode
Hi Paul 1 Does the application have executable permission on linux? 2 If it does, the issue might perhaps be missing dependencies check on the linux command line: ldd that will return a list of libraries on which the app depends and the path to them, you would need to install any that are no

Re: Help with Linux app built with LC on Mac

2025-01-02 Thread Paul - Livecode via use-livecode
Hi Tom, thanks for the suggestion. No, there is no browser in the app, it is just a simple app for manipulating and editing specific CSV files. It does use quite a few modern widget controls though, mainly a Polygrid and a few Powerbuttons. Although I also tested a very simple hello world app, a

Re: Help with Linux app built with LC on Mac

2025-01-01 Thread Tom Glod via use-livecode
Hi Paul, does your app have a browser in it ? if so, you need to build the linux build on a linux box. Perhaps this is true for some of the other necessary inclusions. Thats the only experience I've had with working linux builds vs not working. Let us know if you figure it out. On Tue, Dec 31, 2

Re: Help converting python one-liner...

2024-04-25 Thread Bob Sneidar via use-livecode
Well the good news (I suppose) is that base64Decode seems to ignore the carriage returns in the encoded string. The bad news (for me) is that it means my intermittence issue had nothing to do with the carriage returns. Bob S > On Apr 25, 2024, at 8:09 AM, Bob Sneidar via use-livecode > wrot

Re: Help converting python one-liner...

2024-04-25 Thread Bob Sneidar via use-livecode
Wha THAT may be why I was getting intermittent success with a socket based file transfer utility I developed! I wonder what base64Decode does with a base64Encoded string if you remove the carriage returns first? I’m going to have to research that. Bob S > On Apr 25, 2024, at 7:57 AM,

Re: Help converting python one-liner...

2024-04-25 Thread Andreas Bergendal via use-livecode
The problem may be that base64 encoding inserts line breaks after every 76 chars (a remnant from terminal monitor width restrictions, apparently). I ran into this a while ago, and cleaning the encoded string with “replace cr with empty in tString” solved it for me. I don’t think any textEncode/Deco

Re: Help converting python one-liner...

2024-04-24 Thread Paul Dupuis via use-livecode
If json need utf8, then the last line needs to be: put textEncode(base64Image,"UTF-8") into encodedImageData textEncode will convert the bas64 data (stored in livecode as 16bit characters) to UTF8 On 4/24/2024 2:45 PM, David Bovill via use-livecode wrote: I need to put encodeImageData into js

Re: Help converting python one-liner...

2024-04-24 Thread David Bovill via use-livecode
I need to put encodeImageData into json (which is utf-8) and then post it to the api. I'm not sure what aspects of base64 encoding would not be utf8 compatible... seem to remember there are some quirks there to be aware of. The python code does the decode("utf-8") step at the end - so I guess ther

Re: Help converting python one-liner...

2024-04-24 Thread Paul Dupuis via use-livecode
On 4/24/2024 1:43 PM, David Bovill via use-livecode wrote: I'm trying to base64 encode an image and include it into a json file to post to an api. The python code that accomplishes this is: image1_data = base64.b64encode(httpx.get(image1_url).content).decode("utf-8") When I try to follow the lo

Re: Help! I'm stuck

2021-04-08 Thread William Prothero via use-livecode
Richard: What you suggest makes a lot of sense. As someone who doesn’t build complex apps very often, my first question is “why would I turn off error notifications?” Would I miss something by turning them off when making a build? Anyway I think it would be far more straightforward to just have

Re: Help! I'm stuck

2021-04-08 Thread Sean Cole (Pi) via use-livecode
That **would** be good. I see what you mean. On Thu, 8 Apr 2021 at 18:36, Brian Milby via use-livecode < use-livecode@lists.runrev.com> wrote: > It would be a separate application, but would still be called from the IDE > like today. One difference is that as a separate process it would not > d

Re: Help! I'm stuck

2021-04-08 Thread Brian Milby via use-livecode
It would be a separate application, but would still be called from the IDE like today. One difference is that as a separate process it would not disrupt the current session inside the IDE. Sent from my iPhone > On Apr 8, 2021, at 1:21 PM, Sean Cole (Pi) via use-livecode > wrote: > > Hi Ric

Re: Help! I'm stuck

2021-04-08 Thread Sean Cole (Pi) via use-livecode
Hi Richard, When you say a separate process, do you mean have the standalone builder as a separate application from the IDE? Why could it not be accomplished in the IDE where it is more convenient? Handling it within the IDE process was fine as long as the only thing > the Standalone Builder did

Re: Help! I'm stuck

2021-04-08 Thread Richard Gaskin via use-livecode
Standalone building needs to be moved to a separate process. Handling it within the IDE process was fine as long as the only thing the Standalone Builder did was bind a copy of the engine to a copy of the stack file. But today, building a standalone means deep modifications to the stack file

Re: Help! I'm stuck

2021-04-07 Thread Sean Cole (Pi) via use-livecode
On Wed, 7 Apr 2021 at 19:27, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > A good compromise would be providing a checkbox in standalone settings > where we can decide > whether we want to preserve local variables or not. If we don't care, the > SB should go ahead > and

Re: Help! I'm stuck

2021-04-07 Thread Bob Sneidar via use-livecode
+1 > On Apr 7, 2021, at 11:27 , J. Landman Gay via use-livecode > wrote: > > On 4/7/21 12:03 PM, Curry Kenworthy via use-livecode wrote: >> The problems introduced were far more numerous than those "fixed." > > A good compromise would be providing a checkbox in standalone settings where > we

Re: Help! I'm stuck

2021-04-07 Thread J. Landman Gay via use-livecode
On 4/7/21 12:03 PM, Curry Kenworthy via use-livecode wrote: The problems introduced were far more numerous than those "fixed." A good compromise would be providing a checkbox in standalone settings where we can decide whether we want to preserve local variables or not. If we don't care, the SB

Re: Help! I'm stuck

2021-04-07 Thread William Prothero via use-livecode
; Evergreen Information Services > rdim...@evergreeninfo.net > > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of Curry Kenworthy via use-livecode > Sent: Wednesday, April 07, 2021 1:03 PM > To: use-livecode@lists.

RE: Help! I'm stuck

2021-04-07 Thread Ralph DiMola via use-livecode
-livecode-boun...@lists.runrev.com] On Behalf Of Curry Kenworthy via use-livecode Sent: Wednesday, April 07, 2021 1:03 PM To: use-livecode@lists.runrev.com Cc: Curry Kenworthy Subject: Re: Help! I'm stuck Jacqueline: > It's not a bug, it was intentionally introduced to allow a couple

Re: Help! I'm stuck

2021-04-07 Thread Curry Kenworthy via use-livecode
Jacqueline: > It's not a bug, it was intentionally introduced to allow a couple > of features, like retaining script local variables after a build. > Given the amount of extra scripting to work around it for existing > stacks, I think it may have introduced more problems than it tried > to cure

Re: Help! I'm stuck

2021-04-05 Thread William Prothero via use-livecode
Hot Dang! It built the App. Sean and Jacqueline, you made my day! Thanks! Bill > On Apr 4, 2021, at 6:08 AM, Sean Cole (Pi) via use-livecode > wrote: > > You can also turn off messages and errors from the Toolbar before you > build. This should prevent any pre/open or pre/close scripts from ru

Re: Help! I'm stuck

2021-04-05 Thread William Prothero via use-livecode
Thanks so much, Sean and Jacqueline! I’ll try that. Bill > On Apr 4, 2021, at 9:04 AM, J. Landman Gay via use-livecode > wrote: > > It's not a bug, it was intentionally introduced to allow a couple of > features, like retaining script local variables after a build. Given the > amount of extra

Re: Help! I'm stuck

2021-04-04 Thread J. Landman Gay via use-livecode
It's not a bug, it was intentionally introduced to allow a couple of features, like retaining script local variables after a build. Given the amount of extra scripting to work around it for existing stacks, I think it may have introduced more problems than it tried to cure. I did try turning o

Re: Help! I'm stuck

2021-04-04 Thread Sean Cole (Pi) via use-livecode
You can also turn off messages and errors from the Toolbar before you build. This should prevent any pre/open or pre/close scripts from running. And make sure all inspectors, message box and project browser are closed too as well as any windows/stacks other than your main stack. Sean On Sun, 4 Ap

Re: Help! I'm stuck

2021-04-04 Thread Sean Cole (Pi) via use-livecode
ResolveID is referring to the stack, card and object IDs to tie it to your breakpoints. Focus on your main stack. In the Development menu bar, choose Clear All Breakpoints. It’s a good idea to do this every time before a main standalone build. So, Delete all your breakpoints. Then resave. (Close

Re: Help! I'm stuck

2021-04-03 Thread William Prothero via use-livecode
Matthias, or anybody: I got side-tracked but am back to needing to build this standalone and guess what the error message from the builder means. This build problem has been known for some time, as Matthias kindly notified me. My question is:Is it possible to tell what stacks are causing the pr

Re: Help with androidStartAudioPlayingInBackground()

2021-03-29 Thread Derek Bump via use-livecode
That did the trick, thank you. On 3/28/21 2:08 PM, J. Landman Gay via use-livecode wrote: I've seen similar issues when trying to read other file types from the resources folder in an Android standalone. Try copying the file to specialFolderPath("documents") and play it from there. It's likely

Re: Help with androidStartAudioPlayingInBackground()

2021-03-28 Thread J. Landman Gay via use-livecode
I've seen similar issues when trying to read other file types from the resources folder in an Android standalone. Try copying the file to specialFolderPath("documents") and play it from there. It's likely a permissions problem that I wish didn't exist. On 3/28/21 1:24 PM, Derek Bump via use-liv

Re: Help! I'm stuck

2021-03-20 Thread ELS Prothero via use-livecode
Thank you, Matthias! I’ll try that. Best, Bill William Prothero https://earthlearningsolutions.org > On Mar 20, 2021, at 1:39 PM, matthias rebbe via use-livecode > wrote: > > Bill, > > i've just checked the release notes of 9.0.x > The release notes of 9.0.2 contain updated information about

Re: Help! I'm stuck

2021-03-20 Thread matthias rebbe via use-livecode
Bill, i've just checked the release notes of 9.0.x The release notes of 9.0.2 contain updated information about this topic and an enhanced script example. opencard scripts should also be adjusted. https://downloads.livecode.com/livecode/9_0_2/LiveCodeNotes-9_0_2.pdf Please excuse me for pointin

Re: Help! I'm stuck

2021-03-20 Thread William Prothero via use-livecode
Matthias: I see that openstack and closestack messages are inhibited during application build, using: on closeStack if the mode of stack “revStandaloneProgress” > 0 then exit closeStack end if end So, before I start adding this to all openstack, closestack, script

Re: Help! I'm stuck

2021-03-19 Thread ELS Prothero via use-livecode
Thanks, Matthias, I’ll try it. Time for dinner, tho so it will be a bit. Bill William Prothero https://earthlearningsolutions.org > On Mar 19, 2021, at 5:47 PM, matthias rebbe via use-livecode > wrote: > > Another thing. I am not sure if your problems are also a result of the > following, bu

Re: Help! I'm stuck

2021-03-19 Thread matthias rebbe via use-livecode
Another thing. I am not sure if your problems are also a result of the following, but you could giv it a try. There was something changed in Standalonebuilder process starting in LC 9.0 or so to fix a problem. But this fix could cause other problems in some situation. While before that fix the

Re: Help! I'm stuck

2021-03-19 Thread ELS Prothero via use-livecode
Matthias, I know, I don’t think I’m using the remote debugger. I’m building a standalone app for the computer I’m developing on, so I wouldn’t need the remote debugger. I have some code that is never called...I wonder if that could cause problems. Of course, that is the situation for libs, so I

Re: Help! I'm stuck

2021-03-19 Thread matthias rebbe via use-livecode
Hi Bill, i am not an expert for that kind of error message. Too much numbers i do not know what they mean. The text in the error message mentions several time revdebugger. Are you including the RemoteDebugger to your standalone or do you have red breakpoints somewhere in the script which might

Re: Help! I'm stuck

2021-03-19 Thread ELS Prothero via use-livecode
Thanks, Bob, I tried it and got the same error message. Tnx, Bill William Prothero https://earthlearningsolutions.org > On Mar 19, 2021, at 4:10 PM, Bob Sneidar via use-livecode > wrote: > > Do you have a copy of 9.6.0? Try compiling with that. > > Bob S > > >> On Mar 19, 2021, at 4:03 PM

Re: Help! I'm stuck

2021-03-19 Thread Bob Sneidar via use-livecode
Do you have a copy of 9.6.0? Try compiling with that. Bob S > On Mar 19, 2021, at 4:03 PM, prothero--- via use-livecode > wrote: > > Folks: > I have a pretty complicated application, with numerous stacks and lib stacks. > I’m trying to build a stand-alone but after making a bunch of progres

Re: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Great, thank you very much Matthias :) I will file an enhancement request to make sure this behavior is documented in the dictionary entry of the screenrect. Kind regards, Panos -- On Mon, 19 Oct 2020 at 18:45, matthias rebbe via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Panos,

Re: Help needed :)

2020-10-19 Thread matthias rebbe via use-livecode
Hi Panos, my father in law came back earlier than expected. You were correct. The phone display was zoomed. I switched it back to "standard" and tested again. With "standard" the screenrect returns 0,0,414,736 Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 19.10.202

Re: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Thanks Matthias, your help is much appreciated. Kind regards Panos On Mon, Oct 19, 2020, 18:35 matthias rebbe via use-livecode < use-livecode@lists.runrev.com> wrote: > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > Am 19.10.2020 um 17:17 schrieb panagiotis merakos via use-liveco

Re: Help needed :)

2020-10-19 Thread matthias rebbe via use-livecode
- Matthias Rebbe Life Is Too Short For Boring Code > Am 19.10.2020 um 17:17 schrieb panagiotis merakos via use-livecode > : > > Hmm I think I have found something - I had checked for this before - but in > the wrong place. > > @Matthias could you check if "Display Zoom" is enabled in your dev

Re: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Hmm I think I have found something - I had checked for this before - but in the wrong place. @Matthias could you check if "Display Zoom" is enabled in your device? This is in Settings -> Display and Brightness and then scroll down and in the "Display Zoom" section, does it say "Standard" or "Zoo

Re: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Hello Matthias, Thank you very much for testing. Hmm that's interesting. I forgot to mention that the affected iPhones 8+ are running iOS 14. The simulator we tested was running iOS 13.3. I am wondering if this is an iOS 14 issue. We are working on adding support for building with Xcode 12 / iOS

Re: Help needed :)

2020-10-19 Thread matthias rebbe via use-livecode
Hi Panos, i just borrowed me an iphone 8 Plus. I can confirm that on the real device the screenrect returns 0,0,375,667 Tried with all 3 variations (ipad, ipod&iphone, ipod/iphone/ipad) and with iOS 10,11,12,13. iOS 14.01 Modell MQ8L2ZD/A Regards, - Matthias Rebbe Life Is Too Short For Bor

Re: Help needed :)

2020-10-19 Thread panagiotis merakos via use-livecode
Heh I wrote that msg in my phone while I was in a hurry, and I now see the auto-correct has changed a couple of things :) Corrections: * A LC user ... * ...and it works as expected for us Thank you :) Panos -- On Mon, 19 Oct 2020 at 14:58, panagiotis merakos wrote: > Hello folks, > > I LC u

Re: Help me understand infinity

2020-07-30 Thread Martin Koob via use-livecode
I thought that this was already released in LC 9.0.5 https://livecode-blogger.blogspot.com/2019/05/livecode-905-released.html I sure what the use case is for infinity never mind ‘beyond’. Martin > On Jul 29, 2020, at 1:57 PM, Richard Gaskin via use-livecode > wrote: > > In the v9.6.1RC1 Rel

Re: Help me understand infinity

2020-07-29 Thread J. Landman Gay via use-livecode
The bug list is infinite, ergo, all others are secondary to this one. ;) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 29, 2020 6:13:39 PM Mark Wieder via use-livecode wrote: On 7/29/20 3:17 PM, Ali Lloyd via use-livecode wro

Re: Help me understand infinity

2020-07-29 Thread Mark Wieder via use-livecode
On 7/29/20 5:31 PM, Brian Milby via use-livecode wrote: This change first appeared in 9.5 DP 1, so it isn’t really new. Right. I don't think anyone accused this change of popping up in the latest release though. -- Mark Wieder ahsoftw...@gmail.com _

Re: Help me understand infinity

2020-07-29 Thread Brian Milby via use-livecode
This change first appeared in 9.5 DP 1, so it isn’t really new. Sent from my iPad > On Jul 29, 2020, at 7:12 PM, Mark Wieder via use-livecode > wrote: > > On 7/29/20 3:17 PM, Ali Lloyd via use-livecode wrote: > >> Now you can do: >> local tMin, tThisResult >> put infinity into tMin >> repeat

Re: Help me understand infinity

2020-07-29 Thread Mark Wieder via use-livecode
On 7/29/20 3:17 PM, Ali Lloyd via use-livecode wrote: Now you can do: local tMin, tThisResult put infinity into tMin repeat for each element tElement in tList -- perform some computation on tElement to get tThisResult put min(tMin, tThisResult) into tMin end repeat Well, yes, that's c

Re: Help me understand infinity

2020-07-29 Thread Ali Lloyd via use-livecode
I wonder if I can persuade the team to let me add a constant for the first uncountable strongly inaccessible cardinal. Regarding use-cases, I like the following one which is implicit in the above observations about comparisons between infinity and integers. Previously I would do the following a lo

Re: Help me understand infinity

2020-07-29 Thread Alex Tweedly via use-livecode
On 29/07/2020 20:17, Dr. Hawkins wrote: On Jul 29, 2020, at 12:08 PM, Alex Tweedly via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Any number compared to positive infinity (other than itself) *will* be less than it. Bah, *ℵ*_2 > floating point infinity (which is *ℵ*_1 )

Re: Help me understand infinity

2020-07-29 Thread Mark Wieder via use-livecode
On 7/29/20 12:17 PM, Dr. Hawkins via use-livecode wrote: Bah, ℵ2> floating point infinity (which is ℵ1) Outside of the axiom of choice (or actually even with it) that's not something provable. OTOH, Kant's proofs of aleph null and aleph one are brilliant. -- Mark Wieder ahsoftw...@gmai

Re: Help me understand infinity

2020-07-29 Thread Mark Wieder via use-livecode
On 7/29/20 12:08 PM, Alex Tweedly via use-livecode wrote: On 29/07/2020 18:57, Richard Gaskin via use-livecode wrote: In the v9.6.1RC1 Release Notes there's this:    Infinity constant    The constant infinity has been added to the language in this release.    As a result, theunquoted literal i

Re: Help me understand infinity

2020-07-29 Thread Dr. Hawkins via use-livecode
On Jul 29, 2020, at 12:08 PM, Alex Tweedly via use-livecode wrote: > > Any number compared to positive infinity (other than itself) *will* be less > than it. Bah, ℵ2> floating point infinity (which is ℵ1) (I took that class from Halmos himself . . .) — Richard E. Hawkins, Esq. The Haw

Re: Help me understand infinity

2020-07-29 Thread Alex Tweedly via use-livecode
On 29/07/2020 18:57, Richard Gaskin via use-livecode wrote: In the v9.6.1RC1 Release Notes there's this:    Infinity constant    The constant infinity has been added to the language in this release.    As a result, theunquoted literal infinity is now reserved. Any    existing uses of it should

Re: Help Wrapping HTMLTidy in LCB

2019-12-10 Thread Trevor DeVore via use-livecode
On Mon, Dec 9, 2019 at 12:28 PM Trevor DeVore wrote: > UPDATE: > > I made some progress on the HTMLTidy project and this morning Mark > Waddingham and Brian Milby helped me over the last hurdle. The code base > now has a tidyHTMLToXHTML() function which works on macOS. You can try it > out using

Re: Help Wrapping HTMLTidy in LCB

2019-12-09 Thread Trevor DeVore via use-livecode
On Fri, Nov 22, 2019 at 10:30 AM Trevor DeVore wrote: > While looking at solutions for converting HTML into XHTML that can be > parsed by revXML I decided to test HTMLTidy which has an option to output > the input as XHTML. While I could bundle up the tidy command line tool and > include it with

Re: Help Wrapping HTMLTidy in LCB

2019-11-23 Thread Trevor DeVore via use-livecode
On Sat, Nov 23, 2019 at 10:52 AM hh via use-livecode < use-livecode@lists.runrev.com> wrote: > Is it really worth the work to do that from LCB? In my opinion, yes. If for no other reason then that with each library that is wrapped in LCB I learn what the limitations are in LCB or I learn how to

Re: Help Wrapping HTMLTidy in LCB

2019-11-23 Thread hh via use-livecode
Is it really worth the work to do that from LCB? A while ago I installed HTML tidy 5.6.0 from here http://binaries.html-tidy.org (the Mac .dmg) Then I copied the binary "tidy" from /usr/local/bin compressed to my stack (=231 KByte). Now I use it from there, running it in the temporary folder via

Re: Help Wrapping HTMLTidy in LCB

2019-11-22 Thread Trevor DeVore via use-livecode
On Fri, Nov 22, 2019 at 5:31 PM Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Trevor DeVore wrote: > > > HTML may be placed on the clipboard when copying text and images > > from web browsers or by our good friend Microsoft Word. Microsoft > > Word places some very "

Re: Help Wrapping HTMLTidy in LCB

2019-11-22 Thread Richard Gaskin via use-livecode
Trevor DeVore wrote: > HTML may be placed on the clipboard when copying text and images > from web browsers or by our good friend Microsoft Word. Microsoft > Word places some very "interesting" HTML on the clipboard that > needs to be massaged quite a bit before running it through revXML. Are yo

Re: Help Wrapping HTMLTidy in LCB

2019-11-22 Thread Trevor DeVore via use-livecode
On Fri, Nov 22, 2019 at 2:25 PM Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Trevor DeVore wrote: > > > While looking at solutions for converting HTML into XHTML that can be > > parsed by revXML I decided to test HTMLTidy which has an option to > > output the input

Re: Help Wrapping HTMLTidy in LCB

2019-11-22 Thread Richard Gaskin via use-livecode
Trevor DeVore wrote: > While looking at solutions for converting HTML into XHTML that can be > parsed by revXML I decided to test HTMLTidy which has an option to > output the input as XHTML. While I could bundle up the tidy command > line tool and include it with my app, I prefer to wrap things u

Re: help with mobileSetKeyboardType

2019-09-26 Thread Dan Friedman via use-livecode
I too was not able to get this to work: mobileControlSet “input”, “keyboardType”, “search” But, I see that "search" is not listed in the docs as an acceptable keyboardType value. When I tried any of the listed values, it did work. Thanks for the assist Devin! -Dan On 9/26/19, 12:53 PM, "us

Re: help with mobileSetKeyboardType

2019-09-26 Thread J. Landman Gay via use-livecode
FWIW, I couldn't get this to work at all: mobileControlSet “input”, “keyboardType”, “search” The only thing that worked for me was mobileSetKeyboardType, with the caveat that it had to be issued after the native control was created. And the glitch there is that it doesn't take effect until the

Re: help with mobileSetKeyboardType

2019-09-26 Thread Devin Asay via use-livecode
Dan, I believe it’s because setting keyboard type with a mobile native control is done by setting a property with mobileControlSet: mobileControlCreate "input","_editingField” mobileControlSet “input”, “keyboardType”, “number” The mobileSetKeyboardType command works in all other circumstances,

Re: Help with an algorithm...

2019-08-05 Thread Mark Wieder via use-livecode
On 8/5/19 3:20 PM, dsc--- via use-livecode wrote: Children are sub-arrays of parents. Ain't that the truth. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscr

Re: Help with an algorithm...

2019-08-05 Thread dsc--- via use-livecode
I fixed this to use lists... Maybe. put parentArray( LISTNEW ) into aNew put parentArray( LISTOLD ) into aOld intersect aNew with aOld -- Remove from aOld that which is not in aNew union aOld with aNew recursively -- Leaves aNew unchanged except that children in aOld are brought in. I think. pu

Re: Help with an algorithm...

2019-08-05 Thread Dar Scott Consulting via use-livecode
I know this does not attend to the question, but my feelings are like this: if one has control, go back and use arrays from the start. Now, to your comments on robustness in parsing the files. I suppose any whitespace at the start of a line could be considered a child. Also, it is an error if

Re: Help with an algorithm...

2019-08-05 Thread dunbarxx via use-livecode
Hmmm. I had mentioned earlier: "You cannot just find matching lines between the two lists, because some children AND some parents may be present in both... The discussion has focused on array lore, and that is fine, but are we all in agreement that the main task is to isolate the parents, regar

Re: Help with an algorithm...

2019-08-05 Thread Dar Scott Consulting via use-livecode
My mistake. I was thinking arrays. > On Aug 5, 2019, at 3:34 PM, Mark Wieder via use-livecode > wrote: > > On 8/5/19 2:24 PM, Dar Scott Consulting via use-livecode wrote: >> Yikes! I wasn't aware of duplicate keys being a problem. How does that >> happen? > > Marx > Groucho > Chico > etc. > M

Re: Help with an algorithm...

2019-08-05 Thread Mark Wieder via use-livecode
On 8/5/19 2:24 PM, Dar Scott Consulting via use-livecode wrote: Yikes! I wasn't aware of duplicate keys being a problem. How does that happen? Marx Groucho Chico etc. Marx Karl etc. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list

Re: Help with an algorithm...

2019-08-05 Thread Dar Scott Consulting via use-livecode
Yikes! I wasn't aware of duplicate keys being a problem. How does that happen? > On Aug 5, 2019, at 2:28 PM, Alex Tweedly via use-livecode > wrote: > > I'm a great fan of, and user of, arrays - but we always need to be careful of > losing data with duplicated keys. > > You haven't said that t

Re: Help with an algorithm...

2019-08-05 Thread Alex Tweedly via use-livecode
I'm a great fan of, and user of, arrays - but we always need to be careful of losing data with duplicated keys. You haven't said that the parent names in LISTNEW are guaranteed to be unique. This simple code assumes they are - if they're not, it's easy to add a check ...  (And it also assumes

Re: Help with an algorithm...

2019-08-05 Thread Dar Scott Consulting via use-livecode
I'm pretty sure I goofed somewhere, but maybe something like this? intersect ARRAYNEW with ARRAYOLD into temp union temp with ARRAYNEW recursively > On Aug 5, 2019, at 9:53 AM, Paul Dupuis via use-livecode > wrote: > > Today is not my coding day. I have a problem I should be able to design a

use-list formatting (was Re: Help with an algorithm...)

2019-08-05 Thread Dar Scott Consulting via use-livecode
I agree that the lack of formatting makes it hard to communicate. I would favor changing the list settings to allow for it. I don't think we have a spam problem that would discourage that. And to help support this, LC copy should include types easily pasted into mail clients. > On Aug 5, 2019

Re: Help with an algorithm...

2019-08-05 Thread dunbarxx via use-livecode
I saw your post preceded my second one. Besides the fact that this works as well and is faster: repeat for each line tLine in tAll put tLine into myArray[ tLine] end repeat The array thing is the easy part. The real working of this gadget depends on being able to isolate the children

Re: Help with an algorithm...

2019-08-05 Thread Dar Scott Consulting via use-livecode
I'd tend to look for ways to do this with functions that work on whole collections and avoid loops. If that is not found, or is hard to work with, I'd change the lists to be arrays. Each array is is keyed by parents. Each parent is an array of children. Children can be represented as an array

Re: Help with an algorithm...

2019-08-05 Thread dunbarxx via use-livecode
I really do not like the use-list. It is difficult to format one's answers. Here is a handler that places a few pieces of data into two variables. These would be the two isolated lists of children derived from the parents as described earlier. There is one difference between the two lists, the chi

Re: Help with an algorithm...

2019-08-05 Thread Paul Dupuis via use-livecode
I had not considered using arrays. I have no idea why, as it provides a mechanism. Just not thinking well today. Thanks for the tip! On 8/5/2019 1:40 PM, dunbarx--- via use-livecode wrote: Hi. This seems like a good case for arrays (pseudo): You have to create an array for each parent. The onl

Re: Help with an algorithm...

2019-08-05 Thread dunbarx--- via use-livecode
Hi. This seems like a good case for arrays (pseudo): You have to create an array for each parent. The only way i see to find those is to go through the list looking for lines that DO NOT start with a space. If you work from the bottom up, since children are always at the bottom and they always h

Re: Help with drawing in LiveCode...

2019-06-21 Thread Paul Dupuis via use-livecode
Fri, Jun 21, 2019 9:29 am Subject: Re: Help with drawing in LiveCode... On 6/20/2019 11:34 PM, dunbarx--- via use-livecode wrote: I implemented a fairly complex drawing module to a stack we use all the time. It isn't CAD, but it looks like it, albeit rather less professional looking than, say

Re: Help with drawing in LiveCode...

2019-06-21 Thread dunbarx--- via use-livecode
the handler I posted earlier? It is a good start. Craig -Original Message- From: Paul Dupuis via use-livecode To: use-livecode Cc: Paul Dupuis Sent: Fri, Jun 21, 2019 9:29 am Subject: Re: Help with drawing in LiveCode... On 6/20/2019 11:34 PM, dunbarx--- via use-livecode wrote: >

Re: Help with drawing in LiveCode...

2019-06-21 Thread hh via use-livecode
http://forums.livecode.com/viewtopic.php?p=139080#p139080 > > hh wrote: > > Here is a very simple drawing stack made once for testing the > > HTML5 standalone builder. > > > > http://hyperhh.de/html5/krikelKrakel2a-8.0.2X.html > > > Paul D. wrote: > That could be a helpful example. Thank you, but

Re: Help with drawing in LiveCode...

2019-06-21 Thread Paul Dupuis via use-livecode
On 6/20/2019 11:34 PM, dunbarx--- via use-livecode wrote: I implemented a fairly complex drawing module to a stack we use all the time. It isn't CAD, but it looks like it, albeit rather less professional looking than, say, AutoCad or SoldWorks would produce. We send these drawings out daily to

Re: Help with drawing in LiveCode...

2019-06-21 Thread Paul Dupuis via use-livecode
On 6/21/2019 4:54 AM, hh via use-livecode wrote: Here is a very simple drawing stack made once for testing the HTML5 standalone builder. http://hyperhh.de/html5/krikelKrakel2a-8.0.2X.html That could be a helpful example. Thank you, but how do I download the actual stack? ___

Re: Help with drawing in LiveCode...

2019-06-21 Thread hh via use-livecode
Here is a very simple drawing stack made once for testing the HTML5 standalone builder. http://hyperhh.de/html5/krikelKrakel2a-8.0.2X.html > Paul D. wrote: > ... need a sample drawing stack ... > Not a paint stack, but one that uses graphic objects. _

Re: Help with drawing in LiveCode...

2019-06-20 Thread dunbarx--- via use-livecode
st have to change some of the built-in rules. Craig -Original Message- From: hh via use-livecode To: use-livecode Cc: hh Sent: Thu, Jun 20, 2019 9:21 pm Subject: Re: Help with drawing in LiveCode... One of my "early LC works (2014)" may be (partially) what you are looking for:

Re: Help with drawing in LiveCode...

2019-06-20 Thread hh via use-livecode
One of my "early LC works (2014)" may be (partially) what you are looking for: Raspberry Pi stacks collection #30 = SmoothDraw4.livecode http://forums.livecode.com/viewtopic.php?p=104113#p104113 > Paul D. wrote: > Thank you, but I have realized what I need a tutorial or > - even better - a sampl

Re: Help with drawing in LiveCode...

2019-06-20 Thread Paul Dupuis via use-livecode
On 6/20/2019 3:02 PM, dunbarxx via use-livecode wrote: Hi. Untested, but this is kluge time. Something like this in the card script, though I bet it can be made cleaner and more robust: on mouseLeave set the liveHandles of this cd to the name of the target select empty end mouseLeave

Re: Help with drawing in LiveCode...

2019-06-20 Thread dunbarxx via use-livecode
Hi. Untested, but this is kluge time. Something like this in the card script, though I bet it can be made cleaner and more robust: on mouseLeave set the liveHandles of this cd to the name of the target select empty end mouseLeave on mouseEnter do "select" && the liveHandles of this c

Re: Help with Pasting of RTL languages into a field

2019-05-13 Thread Curry Kenworthy via use-livecode
Also it may help to relate this back to our own language: what alignment should be used consistently for English text? Left? Are you sure? :) In fact it's also common enough to align center (title), right (date), etc. Left is only the default. Each par (and even tab stops) must be able to i

Re: Help with Pasting of RTL languages into a field

2019-05-13 Thread Richmond via use-livecode
I've just started playing "silly monkeys" over here: http://forums.livecode.com/viewtopic.php?f=8&t=32603 Richmond. On 13.05.19 23:45, Paul Dupuis via use-livecode wrote: On 5/9/2019 12:15 PM, Paul Dupuis via use-livecode wrote: I have a  test stack with a single scrolling field under LC904rc2

Re: Help with Pasting of RTL languages into a field

2019-05-13 Thread Paul Dupuis via use-livecode
On 5/9/2019 12:15 PM, Paul Dupuis via use-livecode wrote: I have a  test stack with a single scrolling field under LC904rc2. The textDirection for the field is the default of "auto" meaning it should align LTR  languages (like English) to the Left and RTL languages (like Arabic or Hebrew) to th

Re: Help with Pasting of RTL languages into a field

2019-05-10 Thread Curry Kenworthy via use-livecode
Paul: > When I paste in RTL text (Arabic for example) > it is incorrectly Left aligned. The Dictionary may take a little poetic license with textDirection behavior; text renders inline per the rules, but I think par align is still up to the coder. You could detect the Unicode block when past

Re: Help with Bug #19550: Add support for symlinks to standalone builder

2018-07-22 Thread Brian Milby via use-livecode
PR 6611 created for this issue on develop-9.0 https://github.com/livecode/livecode/pull/6611 The submitted change will preserve symbolic links. Relative links that go outside of the included directory will probably break. Absolute links may not work on other machines. All framework links should

  1   2   3   4   >