Re: JSON Safe Text

2015-07-24 Thread David Bovill
Yes - it's taken from the wild (an HTML page on the internet). Then turned into XML, then a table extracted etc - so looks to me like non-utf8 stuff has go in there somewhere. That's why I was wandering if there was a way to filter out arbitrary text and make it utf8-safe. You know urlencode for

Re: JSON Safe Text

2015-07-24 Thread Monte Goulding
You really need to know the encoding you are working with. Check if the page has a charset attribute first and if it does re-encode to utf8 first. The try it in mergJSON. If it chokes then the best you can do is replace any char greater than charToNum(127) with “?”. Other than that I think

revBrowserSet

2015-07-24 Thread Terence Heaford
This is my first foray into using a browser in LiveCode and I have come across a couple of points I was hoping someone could help me with: I am experimenting using a browser to display charts using highcharts from highcharts.com and have got the example charts working in a browser. I am

Re: Best practise for a quiz control?

2015-07-24 Thread Mark Waddingham
I am not sure, what my loop will be doing, while I opened modal the answer window? Will the loop wait for the user answer in the modal window in both above cases, or is the modal window completely independent from the loop and the loop runs on? How can I hold my loop waiting for the user action

Re: revBrowserSet

2015-07-24 Thread Kay C Lan
On Fri, Jul 24, 2015 at 3:22 PM, Terence Heaford t.heaf...@icloud.com wrote: Is there a way to create the chart in LiveCode then pass it straight to the browser. I tried this without success using the content of one of the example files in highcharts: put the uScript of me into tScript

Best practise for a quiz control?

2015-07-24 Thread Tiemo Hollmann TB
Hello, What I want to do: The user gets a kind of multiple choice question, answers by clicking his choice in a list or answering a dialog (two different cases). The answer dialog has to be a modal window, not the standard answer dialog, because I have to place the dialog window at a certain

Re: revBrowserSet

2015-07-24 Thread Terence Heaford
Yes it works correctly if I use this script from LC with the content in a file global gBrowserID global gFile on mouseUp answer file Select a chart to load: if the result is not cancel then put it into gFile revBrowserNavigate gBrowserId, file:// gFile end if end mouseUp

AW: Best practise for a quiz control?

2015-07-24 Thread Tiemo Hollmann TB
Hi Mark, thanks for clarifying this part of my question! Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Mark Waddingham Gesendet: Freitag, 24. Juli 2015 11:53 An: How to use LiveCode use-livecode@lists.runrev.com Betreff:

Re: LiveCode and SQLite performace

2015-07-24 Thread Robert Brenstein
A rule of thumb for Mac is 10% of drive being free... I find iStat Menus a useful tool for continuous monitoring of vital parameters (just a happy user). RObert On 23.07.2015 at 15:37 Uhr -0700 JB apparently wrote: If I remember correctly Bob Sneidar said that a you need at least 1/2 of

Re: LiveCode and SQLite performace

2015-07-24 Thread EED-wp Email
I've found DiskWarrior to be an indispensable tool on my Mac. It fixes disc corruption that diskutil can't and optimizes the directory. It might be worth a try. Bill William Prothero http://ed.earthednet.org On Jul 24, 2015, at 4:50 AM, JB sund...@pacifier.com wrote: 10% might work for

Re: Anomalous Script behavior

2015-07-24 Thread dunbarx
Peter. There is no limit to the size of a script; LC is not HC. But that was easy. To your real question, I am positive, and this does indeed go back to HC, that certain handlers will work one day and not the next. That some will work if I step through them, but not run normally. And that

Re: Underscore uncomment bug in OSX

2015-07-24 Thread Peter M. Brigham
Here's the workaround that I have been using, in case others find it useful. I put it into a controlkeydown handler in my LC frontscript. All my script shortcuts use control-shift-key. The command doUndoSpace types a space and then deletes it, to make sure LC knows that editing has been done

Re: LiveCode and SQLite performace

2015-07-24 Thread Mike Doub
I'm z On Jul 24, 2015, 10:23 AM, at 10:23 AM, EED-wp Email proth...@earthednet.org wrote: I've found DiskWarrior to be an indispensable tool on my Mac. It fixes disc corruption that diskutil can't and optimizes the directory. It might be worth a try. Bill William Prothero

Re: Anomalous Script behavior

2015-07-24 Thread Peter Bogdanoff
Craig and Peter, Thanks for your replies. Yes, I’ve seen this happen other times, but then it does just go away. Here I’m seeing it reoccur over and over... I tried the same script in LC 6.1.3 and it seems better there, but will do more testing. It could be that there is an unexpected value

Re: Force window on second display

2015-07-24 Thread Magicgate Software - Skip Kimpel
Works like a charm Thank you! On Fri, Jul 24, 2015 at 9:49 AM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Skip, This time I have tested it: put line 2 of the screenRects into myRect put (item 1 of myRect + item 3 of myRect) / 2 into X put (item 2 of myRect + item 4 of

Re: LiveCode and SQLite performace

2015-07-24 Thread Mike Doub
@ On Jul 24, 2015, 10:23 AM, at 10:23 AM, EED-wp Email proth...@earthednet.org wrote: I've found DiskWarrior to be an indispensable tool on my Mac. It fixes disc corruption that diskutil can't and optimizes the directory. It might be worth a try. Bill William Prothero

Re: LiveCode and SQLite performace

2015-07-24 Thread Richard Gaskin
The guidelines I'd read were about 15% IIRC; I believe there used to be a tech note on this, but I can no longer find it at apple.com. Most third-party sites discussing this cite 15%. If OS X required us to never use half of our disk space that would be quite a public controversy, since

Re: Anomalous Script behavior

2015-07-24 Thread Peter Haworth
I've run into situations like this and it usually seems to be caused by an unexpected value in a variable passed to an lc function or command which causes it to silently quit and stop the rest of the calling script from executing. Hard to define what unexpected means and I'm trying to think of an

Re: Force window on second display

2015-07-24 Thread Mark Wieder
Magicgate Software - Skip Kimpel skip@... writes: put line 2 of the screenRects into myRect ...although to make sure you stay out of trouble you might want put line -1 of the screenRects into myRect instead. That way if the second monitor gets unhooked you'll still be able to see the stack.

Re: LiveCode and SQLite performace

2015-07-24 Thread JB
Thanks to everyone for the info. It looks like I need to run some test on it. John Balgenorth On Jul 24, 2015, at 8:19 AM, Richard Gaskin ambassa...@fourthworld.com wrote: The guidelines I'd read were about 15% IIRC; I believe there used to be a tech note on this, but I can no longer

Re: LiveCode and SQLite performace

2015-07-24 Thread Mike Kerner
As long as we're on this topic, I can't get over how much faster my POC MacBook Air is than my not-so POC Mac Mini. The former has an ssd, the latter, a regular HD. The former has a 1.4 ghz i5 with 4GB RAM, and the latter a 2.3 ghz i5 with 16 GB RAM. That SSD makes the air scream. On Fri, Jul

RE: LiveCode and SQLite performance

2015-07-24 Thread Ralph DiMola
+10 Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Richard Gaskin Sent: Friday, July 24, 2015 1:04 PM To: use-livecode@lists.runrev.com Subject: Re:

Re: Anomalous Script behavior

2015-07-24 Thread Peter Haworth
Hi Mark, Unfortunately, I don't recall the exact circumstances where this happened because it's been a while. I seem to remember it was a call to one of the datagrid library handlers with a bad parameter that caused the handler containing the handler to stop executing with no error message shown.

Re: Anomalous Script behavior

2015-07-24 Thread Mark Waddingham
Hi Peter, Do you see a similar thing in 6.7? The reason I ask is that if the problem is only occurring in an a handler being invoked by the engine as part of callbacks set by the callback property on a player it could be something to do with that specific case. The player implementation on

Re: LiveCode and SQLite performace

2015-07-24 Thread Richard Gaskin
Mark Waddingham wrote: I'd get your hdd checked out asap. This is a good opportunity for all of us to remember that portable large-capacity hard drives are dirt cheap compared to the cost of lost data. A USB 3.0 1TB drive can be picked up at the corner market for about US$60, and a 2TB

Re: LiveCode and SQLite performace

2015-07-24 Thread Mark Waddingham
Hi Mike, The only reference to slow opening of SQLite dbs on the Internet was to do with file permission issues on windows so if you are seeing this on Mac it very much sounds like a hard disk issue. One of my colleagues had an issue recently with the hard drive in a 2011 iMac which didn't

Re: Best practise for a quiz control?

2015-07-24 Thread tbodine
Hi. I would definitely write my own handler to manage and display the questions and call that handler with a Send command instead of the forever loop. -- Tom Bodine -- View this message in context:

Re: LiveCode and SQLite performance

2015-07-24 Thread Michael Doub
First off, I want to thank all of you that have given me suggestions. It really is appreciated. Here is the update. I backed up all of my data to an external drive and did a complete re-installation of the OS, then resorted the data. The first few tests of the database were fine, but

AW: Best practise for a quiz control?

2015-07-24 Thread Tiemo Hollmann TB
Hi Tim, thanks for your recommendation Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von tbodine Gesendet: Freitag, 24. Juli 2015 15:54 An: use-revolut...@lists.runrev.com Betreff: Re: Best practise for a quiz control? Hi. I

Re: Force window on second display

2015-07-24 Thread Mark Schonewille
put line 2 of the screenRects into myRect put (item 1 of myRect + item 2 of myRect) / 2 into X put (item 3 of myRect + item 4 of myRect) / 2 into Y set the loc of stack myStack to X,Y You might use working screenRects instead of screenRects. -- Best regards, Mark Schonewille Economy-x-Talk

Re: Force window on second display

2015-07-24 Thread Magicgate Software - Skip Kimpel
Thank you for the quick response Mark! On Fri, Jul 24, 2015 at 9:24 AM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: put line 2 of the screenRects into myRect put (item 1 of myRect + item 2 of myRect) / 2 into X put (item 3 of myRect + item 4 of myRect) / 2 into Y set the loc of

Re: Force window on second display

2015-07-24 Thread Mark Schonewille
Yeah, but obviously I messed it up. I'll post a correct script in a sec. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode:

Force window on second display

2015-07-24 Thread Magicgate Software - Skip Kimpel
A bright good morning and a happy Friday to all you LC'ers, Is there a way to force a standalone on a second connected display? This is for a retail environment where I am sending data and info to a customer standing on the other side of a counter viewing a secondary monitor. I want this to be

Re: Force window on second display

2015-07-24 Thread Mark Schonewille
Skip, This time I have tested it: put line 2 of the screenRects into myRect put (item 1 of myRect + item 3 of myRect) / 2 into X put (item 2 of myRect + item 4 of myRect) / 2 into Y set the loc of stack myStack to X,Y -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software

Referencing a control name

2015-07-24 Thread Peter Bogdanoff
Hi all, I have this data in a field MyField: button Home,37,26,2,699 I want to reference that data like this: set the width of item 1 of line 1 of field “MyField” to item 2 of line 1 of field “MyField” How do I script the stuff inside the ? Sometimes that item will be a

Re: Referencing a control name

2015-07-24 Thread Mark Schonewille
First put the reference into a variable and then Set the width of myVar to x -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 25 jul. 2015 om

[ANN] mergExt support for iOS 8.4

2015-07-24 Thread Monte Goulding
Hi LiveCoders I’ve just uploaded new builds for all my externals that support iOS 8.4 so you can build your apps against Xcode 6.4 using the latest versions of LiveCode. While you’re at the site downloading the new releases be sure to check to see how much time you have left on your access so

RE: Referencing a control name

2015-07-24 Thread Ralph DiMola
Also control is a synonym for field, button, image. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Peter Bogdanoff Sent: Friday, July 24, 2015 8:06 PM

Re: Referencing a control name

2015-07-24 Thread Dick Kriesel
On Jul 24, 2015, at 5:05 PM, Peter Bogdanoff bogdan...@me.com wrote: I want to reference that data like this: set the width of item 1 of line 1 of field “MyField” to item 2 of line 1 of field “MyField” How do I script the stuff inside the ? Sometimes that item will be a

Re: LiveCode and SQLite performace

2015-07-24 Thread JB
10% might work for you but it definitely does not work for me. I have a 1tb drive and 348 gb free space. Most operations run slower than normal. I deleted about 150gb of music to bring it up to 350gb because it ran too slow to use. Now it runs fast enough to use but I still have a lot of wasted