JSON Safe Text

2015-07-23 Thread David Bovill
Any tricks to ensure that text I receive from an internet (HTML) source - destined to be placed into a nice pretty JSON wrapper is safe to go? At the moment it is bugging out somewhere. I'm placing the text into an array and then using Monte's mergJsonEncode function to decode it. Usually works

Indy License upgrade

2015-07-23 Thread Peter Haworth
I've emailed Heather about the issues in this post, just posting them here for others to watch out for. I renewed my Indy license today under $499 deal. The final screen I got after paying showed the next renewal date as 7/23/2016, as did the confirmation email I got. Before the renewal, my

Re: JSON Safe Text

2015-07-23 Thread Monte Goulding
On 24 Jul 2015, at 7:22 am, David Bovill david@viral.academy wrote: I'm placing the text into an array and then using Monte's mergJsonEncode function to decode it. Usually works fine - but in this case it looks like the content needs some tidying before I put it into the array. mergJSON

Re: Underscore uncomment bug in OSX

2015-07-23 Thread Peter Haworth
Out of interest, what comment characters and indent do you have set in Livecode Preferences? I have -- and indent of 3 and wondering if some combination of those settings might trigger the problem. On Thu, Jul 23, 2015 at 2:20 PM Jerry Jensen j...@jhj.com wrote: On Jul 23, 2015, at 6:00 AM,

Re: LiveCode and SQLite performace

2015-07-23 Thread Peter Haworth
Thanks for letting us know Mike. You might try running Diskutil to check out your hard drive. Or maybe the disk is getting full enough that there's not enough paging space? On Thu, Jul 23, 2015 at 2:12 PM Michael Doub miked...@gmail.com wrote: Hey guys, I think that I have a system issue of

Re: Underscore uncomment bug in OSX

2015-07-23 Thread Jerry Jensen
On Jul 23, 2015, at 6:00 AM, Robert Brenstein r...@robelko.com wrote: On 22.07.2015 at 17:55 Uhr -0700 Jerry Jensen apparently wrote: Thanks for the suggestion, Robert. Yep - two different wired Apple keyboards (with and without numeric keypad) plugged directly into the MacBookPro or

Re: LiveCode and SQLite performace

2015-07-23 Thread JB
If I remember correctly Bob Sneidar said that a you need at least 1/2 of your hard drive as free space to run efficiently. So if you have a drive with 500 GB you need 250 GB or more free space on the drive. Anything below that and it normal operations like opening files will be slower. I have

Re: anyone else having trouble to get to livecode.com?

2015-07-23 Thread David Milne
I am having the same problem of getting to livecode.com from Auckland, New Zealand. I tried to visit the blog, but was told that there were too many redirects. I have never had this trouble before, as have probably most of the others on the list who are complaining about not getting through. No

Re: shell() question

2015-07-23 Thread Mark Waddingham
The shell function inherits its environment from LC so there's no issue here. You can also use open process for update, write to it then read from it. The elevated version of open process prompts for authentication and then runs the process as administrator. It uses system support for UI based

Re: Underscore uncomment bug in OSX

2015-07-23 Thread Robert Brenstein
On 22.07.2015 at 17:55 Uhr -0700 Jerry Jensen apparently wrote: Thanks for the suggestion, Robert. Yep - two different wired Apple keyboards (with and without numeric keypad) plugged directly into the MacBookPro or into a Thunderblt monitor. Also checked the System Preferences Keyboard pane -

Anomalous Script behavior

2015-07-23 Thread Peter Bogdanoff
Using LC 7.1 dp1 Part of a script sometimes doesn’t function—sometimes it works just fine. Sometimes it refuses to continue to execute the rest of a handler. This refusal will happen over and over until some point in my testing it starts working again beautifully. It’s a group script with

Re: LiveCode and SQLite performace

2015-07-23 Thread Michael Doub
Hey guys, I think that I have a system issue of some type. We had a nasty thunderstorm last night and we lost power. Obviously my Mac was re-booted. When I ran my timing tests this morning. Open was 3 seconds and loading all the data in to a variable was 1. Much better. I just got

Re: Underscore uncomment bug in OSX

2015-07-23 Thread Jerry Jensen
Thanks for the suggestion, but I’m the same as you, “—“ and indent of 3. .Jerry On Jul 23, 2015, at 3:53 PM, Peter Haworth p...@lcsql.com wrote: Out of interest, what comment characters and indent do you have set in Livecode Preferences? I have -- and indent of 3 and wondering if some

Re: shell() question

2015-07-23 Thread Mark Waddingham
On the contrary, open process can be used in a non-blocking way - although you do need to poll using read until empty (which returns all available data at that point). (The read from process command could do with a callback form really - like read from socket has). I've done this before - you

Re: Split by null

2015-07-23 Thread Sebastien Nouat
I lost a bit of time trying to reproduce the issue using an input actually having NULLs, and could not reproduce. The recipe is way simpler, and the bug report is there: http://quality.runrev.com/show_bug.cgi?id=15641 Regards, Seb On 23/07/2015 15:32, Mark Waddingham wrote: Indeed - I

Re: Split by null

2015-07-23 Thread Paul Dupuis
On 7/23/2015 1:11 AM, Peter Bogdanoff wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but the null adds another cr when this expression is used in LC 7. I am trying to understand what the intent is/was of

Re: Split by null

2015-07-23 Thread Mike Kerner
Sounds like it's time for a bug report. On Thu, Jul 23, 2015 at 1:11 AM, Peter Bogdanoff bogdan...@me.com wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but the null adds another cr when this expression is

Animated LCB Widgets

2015-07-23 Thread David Bovill
I'm thinking of making my first widget. I've a couple of questions regarding current limitations: 1. What is currently faster and what is slower than making the equivalent widget using grouped controls? 2. Is the current technology fast and stable enough to create interactive

Re: Split by null

2015-07-23 Thread Mark Waddingham
Indeed - I already forwarded this to Seb to file :) Sent from my iPhone On 23 Jul 2015, at 15:28, Mike Kerner mikeker...@roadrunner.com wrote: Sounds like it's time for a bug report. On Thu, Jul 23, 2015 at 1:11 AM, Peter Bogdanoff bogdan...@me.com wrote: A heads up: split

Re: Behavior question

2015-07-23 Thread J. Landman Gay
I never would have thought of that. What a handy tip. On 7/22/2015 5:32 PM, Peter Haworth wrote: Put a reference to the behavior stack in the stackFiles property of my application stack and commented out the startup handler. It works! On Wed, Jul 22, 2015 at 12:39 PM Peter Haworth

Re: Split by null

2015-07-23 Thread Ali Lloyd
Moreover, that example succeeds in LC 7! On Thu, Jul 23, 2015 at 4:04 PM Paul Dupuis p...@researchware.com wrote: On 7/23/2015 1:11 AM, Peter Bogdanoff wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but

Re: anyone else having trouble to get to livecode.com?

2015-07-23 Thread David Williams
Hi All, I just want to confirm that we're looking into this right now, and to thank everyone that provided info in this thread. Regards, -David On Thu, 23 Jul 2015 08:52:41 +0100, Malte Brill revolut...@derbrill.de wrote: Hi, when I try to access livecode.com http://livecode.com/ I

Multi-line input control... selectedRange

2015-07-23 Thread John Dixon
Multi-line Input control – UITextView selectedRange - read/write - Determines the start index and the length of the text that is to appear as selected. How is this written ?.. How to present the ‘selectedRange’ in the script ? iphoneControlSet inputID, “selectedRange”, … Dixie

Best practice for when an app is sent to the background?

2015-07-23 Thread Paul Dupuis
I have a multi-window (stack) desktop application. In working on some recent enhancements to the app, I got to thinking about the apps behavior when a user clicks on a 3rd party app (sending the app to the background) or minimized/iconifies one or more windows of the app. Specifically handing the

Re: Char Set on Custom Properties

2015-07-23 Thread Mark Waddingham
LC 7 knows the difference between binary and text - this is retained when saving custom props (if you save in 7+ format). The only rub is that for existing stacks in the old format custom props will be taken to be binary data (which auto converts to text assuming the native encoding). Thus you

Re: shell() question

2015-07-23 Thread David Bovill
Thanks Mark. I'm going to give open process for update a spin. Is this something that you would consider robust enough to be used in a long running server type context? So we can have a Livecode server communicating with these processes and serving out processed results over sockets to a web

Re: LiveCode and SQLite performace

2015-07-23 Thread Bob Sneidar
I use .db without any problems. By the way, why would you want to load the entire data set? I agree that to open any sql database should not take that long. It almost sounds like something is not working as it should and it times out. But on the query side, loading 100’s of 1000’s of records

Re: LiveCode and SQLite performace

2015-07-23 Thread Peter Haworth
Hi Michael, Those are ridiculously long times! I can't think of anything obvious that would cause them. Mark's question about whether the automatic indexes are being recreated is a possibility but I'm pretty sure that doesn't happen. I couldn't tell from your original post if your table has a

Re: LiveCode and SQLite performace

2015-07-23 Thread Peter Haworth
Hi Mark, I couldn't say for sure but I'm 99% sure the indexes are not recreated each time the database is opened. On Wed, Jul 22, 2015 at 4:58 PM Mark Wieder mwie...@ahsoftware.net wrote: On 07/22/2015 02:11 PM, Peter Haworth wrote: You'll see auto indexes for any columns that are defined as

Re: LiveCode and SQLite performace

2015-07-23 Thread Peter Haworth
One more thing Michael - do the names of the auto indexes you're seeing begin with sqlite? If not, your sqlitebrowser program is creating them and may be doing something to contribute to the problem. On Wed, Jul 22, 2015 at 4:33 PM Michael Doub miked...@gmail.com wrote: I just updated the

Re: Best practice for when an app is sent to the background?

2015-07-23 Thread Marty Knapp
If you want to know when a user switches to a different app you can use suspend and then resume to detect when they come back. Marty Knapp I have a multi-window (stack) desktop application. In working on some recent enhancements to the app, I got to thinking about the apps behavior when a user

Re: Best practice for when an app is sent to the background?

2015-07-23 Thread Paul Dupuis
On 7/23/2015 12:46 PM, Marty Knapp wrote: If you want to know when a user switches to a different app you can use suspend and then resume to detect when they come back. Duh! I completely forgot about suspend/resume in addition to suspendStack/resumeStack! Thank you.

Re: Split by null

2015-07-23 Thread Sebastien Nouat
Hi Peter, After looking more into the issue, it appears that you have been exploiting a bug in LiveCode 6.7 for a long time, that's not a bug in LiveCode 7.0 :) If you change by NULL with by ; then you will have the same thing in 6.7 as you see with NULL in 7.0: the behaviour

shell() question

2015-07-23 Thread David Bovill
I'm wandering if there is a neat trick to pass data to a shell command via STDIN. The only thing I know how to do is either: 1. Write a bash script that accepts an input param and call this 2. put shell (echo 'some text' | shellThing) Is there a neater way?

Re: shell() question

2015-07-23 Thread David Bovill
Well I found one - though I'm not sure it is strictly legal: put some text into $LIVECODEVAR put shell (echo $LIVECODEVAR | shellThing -q) which is great. I don't think this pollutes the environment, as AFAIK shell() is in it's own space (like opening a tab in the terminal) - but are there

Re: anyone else having trouble to get to livecode.com?

2015-07-23 Thread Alex Shaw
Fails here on Chrome but fine on Firefox Safari. regards alex On 23/07/2015 5:52 pm, Malte Brill wrote: Hi, when I try to access livecode.com http://livecode.com/ I am getting a „too many redirects“ error. Is it just me or is it a general problem? Best, malte

anyone else having trouble to get to livecode.com?

2015-07-23 Thread Malte Brill
Hi, when I try to access livecode.com http://livecode.com/ I am getting a „too many redirects“ error. Is it just me or is it a general problem? Best, malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: anyone else having trouble to get to livecode.com?

2015-07-23 Thread Pascal Lehner
Hi Works for me from Switzerland. Best, Pascal 2015-07-23 9:52 GMT+02:00 Malte Brill revolut...@derbrill.de: Hi, when I try to access livecode.com http://livecode.com/ I am getting a „too many redirects“ error. Is it just me or is it a general problem? Best, malte

Re: anyone else having trouble to get to livecode.com?

2015-07-23 Thread Tore Nilsen
Works for me from my hotel here in the south of France as well. Tore 23. jul. 2015 kl. 09.52 skrev Malte Brill revolut...@derbrill.de: Hi, when I try to access livecode.com http://livecode.com/ I am getting a „too many redirects“ error. Is it just me or is it a general problem?

AW: anyone else having trouble to get to livecode.com?

2015-07-23 Thread Tiemo Hollmann TB
Hi Malte, I know this error from other sites, using Chrome on Windows and it is not releated to the server, it’s a browser thing. If you are also using chrome, clear the browser cache and cockies and everything works fine again. Tiemo -Ursprüngliche Nachricht- Von: use-livecode

AW: anyone else having trouble to get to livecode.com?

2015-07-23 Thread Tiemo Hollmann TB
Now I get the same error :( -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Donnerstag, 23. Juli 2015 10:36 An: 'How to use LiveCode' Betreff: AW: anyone else having trouble to get to livecode.com? Hi

AW: anyone else having trouble to get to livecode.com?

2015-07-23 Thread Tiemo Hollmann TB
On windows - chrome: error: too many redirects On windows - firefox: works fine -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Donnerstag, 23. Juli 2015 10:36 An: 'How to use LiveCode' Betreff: AW:

Re: Underscore uncomment bug in OSX

2015-07-23 Thread Alan Stenhouse
The uncomment keyboard shortcut has never worked for me either, would love if it did. Interestingly, after someone posted about holding open the menu and then trying it, it does work. Haven’t investigated further though. Wonder if it’s possibly related to having multiple keyboard languages