RE: Launch URL with Link Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
BR, This has been described at the ol' "plist hack": Look at the package contents of the LC.app version your using. Navigate to the Contents>Tools>Runtime>iOS folder and set the permissions for write access to the "Device-x_x" folders. Then edit the "Settings.plist" files in those folders and

RE: Launch URL with Link Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
BR, This has been described at the ol' "plist hack": Look at the package contents of the LC.app version your using. Navigate to the Contents>Tools>Runtime>iOS folder and set the permissions for write access to the "Device-x_x" folders. Then edit the "Settings.plist" files and delete the 2

Re: Browser Widget/HTML5/LC Integration

2017-01-30 Thread Alex Tweedly via use-livecode
On 29/01/2017 19:22, Richard Gaskin via use-livecode wrote: HTML model: Natural Flow HTML has something we don't: "natural flow", a set of conventions for object placement that are implied and do not need to be specified in order to get some form of reasonably

[ANN] This Week in LiveCode 68

2017-01-30 Thread Peter TB Brett via use-livecode
Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #68 here: https://goo.gl/0co0Zb This is a weekly newsletter about LiveCode, focussing on what's been going on in and

Looking for advice on database syncing

2017-01-30 Thread pink via use-livecode
I am working on a new section of my CouchDB library to synchronize a Couch database with a local array. Before I wade too far in, I wanted to get to see if my plan makes sense.. I have two questions I'm hoping for input on: 1. Can anyone think of a scenario I am missing? 2. Is there anything

Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
I made a single change in a program that has caused it to stop working: I switched from using FastJSON to using the built-in JSONToArray functions. To be clear, I'm not talking about JsonImport which I cannot use for other reasons. I built standalones for Windows and Linux using LC 8.1.2 Indy,

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread Bob Hall via use-livecode
The Library needs to be on the inclusion list for it to work in a Standalone. In Standalone prefs click General->Select Inclusions for Standalone (note: I do not bank on the auto-include feature). Then click the “Inclusions” icon and wait just a second as the inclusions render. Look for JSON

Re: Community Dictionary (was Re: Delete element from array)

2017-01-30 Thread Mike Kerner via use-livecode
Do me a favor, please, and post to the thread I already started on the forum. http://forums.livecode.com/viewtopic.php?f=67=28731 I also have a bug report that I started on this, that I suppose you could contribute to, but I would think that first the forum would be the place to go, until we have

Re: Dirty HTTP Launch

2017-01-30 Thread Tom Glod via use-livecode
thanks for your help Mike. On Mon, Jan 30, 2017 at 1:34 PM, Tom Glod wrote: > the URL is read as an ITEM from a line in a file that was generated by PHP > (which is I am sure where the cr comes from) > > PHP code just concatnates label "HTTP Link, item delimiter "=" and the

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
JSON Library is the LCB library with the command JsonImport and JsonExport. Those are not the commands that I am using. I am using JSONToArray which is part of the mergjson external. I've included it in builds and I am still stuck. - --- Greg (pink) Miller mad, pink and dangerous to code

Re: Dirty HTTP Launch

2017-01-30 Thread Mike Bonner via use-livecode
Mind posting the code that you use to build the url? On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode < use-livecode@lists.runrev.com> wrote: > I will try to clean it somehow as nothing (no cr) appears at the end until > i run the launch url command i guess i can just rewrite the

Re: Dirty HTTP Launch

2017-01-30 Thread Mike Bonner via use-livecode
Yw. Sounds like an easy enough fix. (or instead of rewriting the thing, you might be able to read in the item and "replace cr with empty" which I guess is rewriting, so nevermind!) On Mon, Jan 30, 2017 at 11:35 AM, Tom Glod via use-livecode < use-livecode@lists.runrev.com> wrote: > thanks

Re: Dirty HTTP Launch

2017-01-30 Thread Tom Glod via use-livecode
lol..too easywill try that thanks. On Mon, Jan 30, 2017 at 1:38 PM, Mike Bonner via use-livecode < use-livecode@lists.runrev.com> wrote: > Yw. > Sounds like an easy enough fix. (or instead of rewriting the thing, you > might be able to read in the item and "replace cr with empty" which

Re: Dirty HTTP Launch

2017-01-30 Thread Tom Glod via use-livecode
I will try to clean it somehow as nothing (no cr) appears at the end until i run the launch url command i guess i can just rewrite the variable somehow. Thanks On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode < use-livecode@lists.runrev.com> wrote: > Most likely you have an

Re: Dirty HTTP Launch

2017-01-30 Thread Tom Glod via use-livecode
the URL is read as an ITEM from a line in a file that was generated by PHP (which is I am sure where the cr comes from) PHP code just concatnates label "HTTP Link, item delimiter "=" and the URL starting with HTTP. I think I will just write a little repeat loop to rewrite the URL before I send

Re: Launch URL with LInk Back to LC App

2017-01-30 Thread J. Landman Gay via use-livecode
On 1/29/17 9:24 PM, Sannyasin Brahmanathaswami via use-livecode wrote: Is there a way to ensure that the "back button" on any device's web app, goes back to the card in the stack from which it was invoked by the "launch ulr" command? This has to do with the default behavior of LC and the OS it

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread Bob Hall via use-livecode
To my knowledge, the functions are not built into Livecode. You may have a stack loaded and part of the message path that has those functions there already. You will need to add the functions to your project in order to parse/encode JSON. Bob > On Jan 30, 2017, at 4:12 PM, pink via

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread Monte Goulding via use-livecode
Hmm… yes the new support library for mergJSON should be now be included in standalones if you include mergJSON. Please open a bug report if that’s not the case so we can sort the issue out. Note that it will *not* be included via search for inclusions. Cheers Monte > On 31 Jan 2017, at 9:04

Re: Yertle the Turtle

2017-01-30 Thread Tore Nilsen via use-livecode
> 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode > : > > 2.2. I wonder how my turtle will be seen to draw a pen line from the two ends > of the "line". If you would like the “turtle” to move to the points of the line then, lock screen, draw

Re: Yertle the Turtle

2017-01-30 Thread Mike Bonner via use-livecode
Somewhere around here I have a library that should help with your turtle moving. Will see if I can dig it up. On Mon, Jan 30, 2017 at 2:46 PM, Tore Nilsen via use-livecode < use-livecode@lists.runrev.com> wrote: > > > 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode < >

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
JSONToArray and ArrayToJSON are both in the dictionary, if these functions don't do what they're advertised to do, then someone needs to revise the dictionary from the Livecode Dictionary: JSONToArray Type function Syntax JSONToArray(pJSON) Associations

RE: Launch URL with LInk Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
JLM, Thanks for the clarification. BR, Another way to do this without using the un-supported plist hack is to save the state of your app before you launch the browser and then restore the app to the saved state when it restarts. Ralph DiMola IT Director Evergreen Information Services

Yertle the Turtle

2017-01-30 Thread Richmond Mathewson via use-livecode
Having imported an SVG image of a tortoise into a stack . . . Being a fan of Seymour Papert . . . I thought I'd try and implement turtle graphics in Livecode. But came up against something awkward . . . [As a caveat, I should like to point out I don't know how the following is implemented

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
I'm basing my comments on what I see in the Livecode Dictionary: "The mergJSON external itself can not parse JSON to and from multi-dimensional arrays. This is achieved through JSONToArray and ArrayToJSON script functions provided in this library. The implementations in this library are intented

Re: Dirty HTTP Launch

2017-01-30 Thread Bob Sneidar via use-livecode
Try replacing the variable holding the URL (let's assume it's tVar) with word 1 to -1 of tVar. As in put word 1 to -1 of tVar into tVar Bob S > On Jan 30, 2017, at 10:34 , Tom Glod via use-livecode > wrote: > > the URL is read as an ITEM from a line in a

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread Trevor DeVore via use-livecode
On Mon, Jan 30, 2017 at 11:53 AM, pink via use-livecode < use-livecode@lists.runrev.com> wrote: > JSON Library is the LCB library with the command JsonImport and JsonExport. > > Those are not the commands that I am using. > > I am using JSONToArray which is part of the mergjson external. I've >

Re: Community Dictionary (was Re: Delete element from array)

2017-01-30 Thread Mike Kerner via use-livecode
Also, over there, I have included a list of bug reports that I found that seem to be relevant. If you have submitted a bug report for *the way the dictionary works* (not for an entry being incorrect or requiring modification, because that is a separate, but eventually related project), please

revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Dr. Hawkins via use-livecode
After opening a database, I check for the names of a table *put* revDatabaseTableNames(licMkrDb) into theRes *filter* theRes with "dhbk_*" ck char -1 of theRes *put* revDatabaseColumnNames(licMkrDb,theRes) into clmNms at this point, clmNms contains revdberr,invalid table name Uhm, how can

Re: Launch URL with LInk Back to LC App

2017-01-30 Thread Sannyasin Brahmanathaswami via use-livecode
Ralph Thanks, hacking the pList definitely works! I guess Apple doesn't care, right? On 1/30/17, 10:18 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: JLM, Thanks for the

Re: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Dr. Hawkins via use-livecode
On Mon, Jan 30, 2017 at 6:41 PM, Mike Bonner via use-livecode < use-livecode@lists.runrev.com> wrote: > Most likely thing I can think of is that on opening the database, something > is wrong with the path so it created a new and empty database.. somewhere.. > Just to test, I would "put theRes"

Re: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Dr. Hawkins via use-livecode
On Mon, Jan 30, 2017 at 7:03 PM, Dr. Hawkins wrote: > theRes holds "dhbk_lcnsees", as it should. The name was created, found in > revDatabaseTableNames, > and filtered to the sole line of theRes. > I just checked with 7.1.4 rc and got the same behavior. -- Dr. Richard

Re: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Mike Bonner via use-livecode
Most likely thing I can think of is that on opening the database, something is wrong with the path so it created a new and empty database.. somewhere.. Just to test, I would "put theRes" and see whats actually in there. On Mon, Jan 30, 2017 at 7:29 PM, Dr. Hawkins via use-livecode <

JavaScript, Browser Object, VR with Hotspots?

2017-01-30 Thread JOHN PATTEN via use-livecode
Hi All, I’m not sure if this is possible with Livecode, but I thought I’d ask anyways. I have a html5 panorama I created in a trial version of Pano2VR. I posted it up here: http://jpatten.on-rev.com/vrjs/index.html This pano has one hot spot that

Re: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Mike Bonner via use-livecode
I'm at a loss then. On Mon, Jan 30, 2017 at 8:06 PM, Dr. Hawkins via use-livecode < use-livecode@lists.runrev.com> wrote: > On Mon, Jan 30, 2017 at 7:03 PM, Dr. Hawkins wrote: > > > theRes holds "dhbk_lcnsees", as it should. The name was created, found > in

Re: Yertle the Turtle

2017-01-30 Thread Mike Bonner via use-livecode
K heres the required parts.. *## takes length and the angle in radians and returns vector as x,y offsets* function aLenToVector pLen pAngle return pLen * sin(pAngle),pLen * cos(pAngle) end aLenToVector *## takes degrees and changes to radians* function dToRadians pDegrees return

Re: Yertle the Turtle

2017-01-30 Thread Colin Holgate via use-livecode
It is, as you said, going to need sin and cos. The X movement would be 30 * cos(37/180 * Pi), and the Y movement would be 30 * sin(37/180 * Pi), in your example case. > On Jan 30, 2017, at 11:14 PM, Richmond Mathewson via use-livecode > wrote: > > The problem

Re: JavaScript, Browser Object, VR with Hotspots?

2017-01-30 Thread Mike Bonner via use-livecode
Depending on what version of LC you're using,k and if you're using the widget, or openrevbrowser look at revBrowserAddJavascriptHandler in the dictionary. If using the widget, use the dropdown to select the browser widget in the dictionary and look at the javascripthandlers property. On Mon,

Re: Launch URL with LInk Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
Glad it worked out for you. Apple has never said a word. I've been using it for 4 years. I think you run into trouble if you have any timers or call backs when the app is in the background. Ralph DiMola IT Director Evergreen Information Services Original message From:

fontLanguage()

2017-01-30 Thread Phil Davis via use-livecode
Hi folks, In LC 8.1.2 I have checked 'the fontLanguage' of all my installed fonts and get nothing but 'ansi', even for my Arabic fonts. In some previous version of LC my experience was different - guess I'll go digging and see what I find. Does anyone have different outcomes with

Re: Yertle the Turtle

2017-01-30 Thread Richmond Mathewson via use-livecode
The problem is not with drawing the line. The problem is how, when the turtle's "nose" is pointing at, say, 37 degrees from the vertical one can get it to move FORWARD for 30 units. Richmond. On 1/30/17 11:46 pm, Tore Nilsen via use-livecode wrote: 30. jan. 2017 kl. 21.20 skrev Richmond

Re: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Mike Kerner via use-livecode
What's the type of db, and did you try sending a pragma to pull the table names to doublecheck? On Mon, Jan 30, 2017 at 10:54 PM, Mike Bonner via use-livecode < use-livecode@lists.runrev.com> wrote: > I'm at a loss then. > > On Mon, Jan 30, 2017 at 8:06 PM, Dr. Hawkins via use-livecode < >

Re: Yertle the Turtle

2017-01-30 Thread Mike Bonner via use-livecode
Yeah. Thats what my (as yet unrediscovered) library can help with. On Mon, Jan 30, 2017 at 11:14 PM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > The problem is not with drawing the line. > > The problem is how, when the turtle's "nose" is pointing at, say, 37 >