Re: OT: Looking for a new programming language?

2018-07-27 Thread Monte Goulding via use-livecode
Ahaha… are you doing the LiveCode implementation? > On 28 Jul 2018, at 2:51 am, Mark Wieder via use-livecode > wrote: > > > "But why? > Mainly because if we make Rockstar a real (and completely pointless) > programming language, then recruiters and hiring managers won't be able to > talk

Re: OT: Looking for a new programming language?

2018-07-27 Thread Stephen Barncard via use-livecode
And does that violate the terms of service!? On Fri, Jul 27, 2018 at 19:18 Monte Goulding via use-livecode < use-livecode@lists.runrev.com> wrote: > Ahaha… are you doing the LiveCode implementation? > > > On 28 Jul 2018, at 2:51 am, Mark Wieder via use-livecode < > use-livecode@lists.runrev.com>

Re: ANN: *** targetSdkVersion requirements Android ***

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 04:12 PM, Mark Waddingham via use-livecode wrote: Because before you can have a cross platform anything (which is tied to specific OS features) you need the things to call which perform the appropriate action on the individual platforms. Not necessarily. I often stub out

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Sannyasin Brahmanathaswami via use-livecode
Well the use case differences are obvious, but to say the obvious I am connecting with a) our own server b) YouTube that’s it. AND I want to know if the URL in the app is correct (silly typo in a JSON in the app OR misfiled media on out server...etc), so I would always to get the header of

Re: Data Persistence

2018-07-27 Thread Richard Gaskin via use-livecode
Mike Bonner wrote: > On the subject of sqLite/memory databases and preferences/data > persistence, rather than using an array, and doing the encode/decode > stuff, would it make sense to do the following.. > 1. open an empty in memory database > 2. attach a disk based database > 3. copy the

Re: ANN: *** targetSdkVersion requirements Android ***

2018-07-27 Thread Mark Waddingham via use-livecode
Because before you can have a cross platform anything (which is tied to specific OS features) you need the things to call which perform the appropriate action on the individual platforms. The patterns for 'getting user consent' on android and iOS are similar (because they are both about

Re: OT: On-Rev cPanel (port 2083) access blocked by BT Smart Hub router?

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 09:06 AM, Keith Clarke via use-livecode wrote: Hi folks, Apologies for OT thread - but I’m hoping there may be a UK-based fellow on-rev hosting user, with BT Broadband + Smart Hub, who can confirm whether any router tweaks are needed to access port 2083 (for on-rev cPanel), which

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 09:48 AM, Klaus major-k via use-livecode wrote: Sorry, I meant if the machine is currently connected to the internet. And if an URL actually does exist = "valid". So an active ethernet connection won't do the trick. And a valid address won't work either. I don't know of any way

Re: ANN: *** targetSdkVersion requirements Android ***

2018-07-27 Thread Mark Waddingham via use-livecode
On 2018-07-26 06:02, Colin Holgate via use-livecode wrote: One problem this may introduce is that from Android 6 onwards you’re expected to only ask permission to use features at the time the user reaches that part of your app, like it has always been on iOS. I wrote about publishing to Android

Re: OT: On-Rev cPanel (port 2083) access blocked by BT Smart Hub router?

2018-07-27 Thread Keith Clarke via use-livecode
Thanks Mark, I had found that thread but unfortunately that sits at the WHM server-level of cPanel to which only the mothership team have keys - for some reason we don’t get to play with server-wide config as on-rev shared hosting users ;-) I doubt that on-rev support would be too keen to

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
Hi Mark, > Am 27.07.2018 um 19:11 schrieb Mark Wieder via use-livecode > : > On 07/27/2018 09:48 AM, Klaus major-k via use-livecode wrote: >> Sorry, I meant if the machine is currently connected to the internet. >> And if an URL actually does exist = "valid". > So an active ethernet connection

OT: On-Rev cPanel (port 2083) access blocked by BT Smart Hub router?

2018-07-27 Thread Keith Clarke via use-livecode
Hi folks, Apologies for OT thread - but I’m hoping there may be a UK-based fellow on-rev hosting user, with BT Broadband + Smart Hub, who can confirm whether any router tweaks are needed to access port 2083 (for on-rev cPanel), which seems to be blocked from any device on my home network (BT

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
> Am 26.07.2018 um 16:40 schrieb Klaus major-k via use-livecode > : > > Hi friends, > > can we possibly "mis-"use tsNet somehow to check if the > current machine has a valid internet connection? > And to check if a given URL is valid? > > Thanks for any hints! Cheese anyone? 8-) -- Klaus

Re: OT: On-Rev cPanel (port 2083) access blocked by BT Smart Hub router?

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 09:58 AM, Keith Clarke via use-livecode wrote: Thanks Mark, I had found that thread but unfortunately that sits at the WHM server-level of cPanel to which only the mothership team have keys - for some reason we don’t get to play with server-wide config as on-rev shared hosting

Re: OT: Looking for a new programming language?

2018-07-27 Thread Stephen Barncard via use-livecode
No! Not another name change! I still remember Runtime Revolution On Fri, Jul 27, 2018 at 09:52 Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > > "But why? > Mainly because if we make Rockstar a real (and completely pointless) > programming language, then recruiters and

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 09:32 AM, Klaus major-k via use-livecode wrote: Am 26.07.2018 um 16:40 schrieb Klaus major-k via use-livecode : Hi friends, can we possibly "mis-"use tsNet somehow to check if the current machine has a valid internet connection? And to check if a given URL is valid? Thanks

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
Hi Mark, > Am 27.07.2018 um 18:44 schrieb Mark Wieder via use-livecode > : > > On 07/27/2018 09:32 AM, Klaus major-k via use-livecode wrote: >>> Am 26.07.2018 um 16:40 schrieb Klaus major-k via use-livecode >>> : >>> >>> Hi friends, >>> >>> can we possibly "mis-"use tsNet somehow to check if

OT: Looking for a new programming language?

2018-07-27 Thread Mark Wieder via use-livecode
"But why? Mainly because if we make Rockstar a real (and completely pointless) programming language, then recruiters and hiring managers won't be able to talk about 'rockstar developers' any more." https://boingboing.net/2018/07/25/hello-cleveland-world.html

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Sannyasin Brahmanathaswami via use-livecode
I just went through this in my app. Like Mark said, you do need to connect to "something" I put a "ping.txt" on the server. It has one word "true". Apple does the same thing. Though they call it something else "serviceAvailable" or something like that and it has one word in it "available"

Re: Data Persistence

2018-07-27 Thread Klaus major-k via use-livecode
Hi John, > Am 27.07.2018 um 19:47 schrieb John McKenzie via use-livecode > : > > Tom, thank you for welcoming me. Much different than some online > programming groups. :-) > > Brian and Tom thank you for your replies about my Android data > persistence problem. An SQLite database seems like

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
Hi Richard, > Am 27.07.2018 um 19:53 schrieb Richard Gaskin via use-livecode > : > > Klaus wrote: > >> Define "valid"... > > > > Sorry, I meant if the machine is currently connected to the internet. > > And if an URL actually does exist = "valid". > Assuming the protocol in question is HTTP/S,

Re: Data Persistence

2018-07-27 Thread Sannyasin Brahmanathaswami via use-livecode
Welcome John! You will need this, I would endorse Tom's arrayEncode. If you have not: Learn to array code RIGHT NOW, before going further with Livecode. I resisted array for years, and it bought me a boat load of silly coding of text files. And 100 of lines of unnecessary code then I

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Klaus major-k via use-livecode
Hi Swami, > Am 27.07.2018 um 19:48 schrieb Sannyasin Brahmanathaswami via use-livecode > : > > I just went through this in my app. Like Mark said, you do need to connect > to "something" > I put a "ping.txt" on the server. It has one word "true". Apple does the > same thing. Though they

Re: Data Persistence

2018-07-27 Thread John McKenzie via use-livecode
Tom, thank you for welcoming me. Much different than some online programming groups. :-) Brian and Tom thank you for your replies about my Android data persistence problem. An SQLite database seems like extreme overkill but I will give it a try if it is needed to get the app to work. Does

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Richard Gaskin via use-livecode
Klaus wrote: >> Define "valid"... > > Sorry, I meant if the machine is currently connected to the internet. > And if an URL actually does exist = "valid". Assuming the protocol in question is HTTP/S, a request to a non-existent resource should return "404" in the error string provided in "the

Re: Data Persistence

2018-07-27 Thread Richard Gaskin via use-livecode
John McKenzie wrote: > An SQLite database seems like extreme overkill but I will give it > a try if it is needed to get the app to work. SQLite is very feature-rich, but if you don't need the relationality provided by a full-featured RDBMS it can be like swatting flies with a grenade

Re: Data Persistence

2018-07-27 Thread John McKenzie via use-livecode
Thanks for the extra comments everyone. Glad my thought process was correct, databse is overkill, saving every text change is too much, etc, etc. As I said I will not be able to really do anything until next week. Thanks for mentioning the closeField command guys. I will check it out, but

Re: ANN: *** targetSdkVersion requirements Android ***

2018-07-27 Thread Bob Sneidar via use-livecode
Another regression I noticed is that I am back to red dot breakpoints clearing after a script save/compile. The dots are there but the script does not break. Unsetting and resetting causes the debugger to break again. Bob S > On Jul 27, 2018, at 09:13 , Mark Waddingham via use-livecode >

Re: Data Persistence

2018-07-27 Thread Mike Bonner via use-livecode
Your Bran. will be assimilated. (borg zombies FTW) On Fri, Jul 27, 2018 at 3:39 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > On 7/27/18 12:47 PM, John McKenzie via use-livecode wrote: > > Tom, thank you for welcoming me. Much different than some online >

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Bob Sneidar via use-livecode
And don't forget my telnet technique. Telnet will tell you if there is a basic connection without "actually" connecting with a protocol of any sort. So it doesn't suffer from any of the built in timeouts that web protocols must have to work properly. Bob S > On Jul 27, 2018, at 10:53 ,

Re: Data Persistence

2018-07-27 Thread Bob Sneidar via use-livecode
I tried reading an "LSON" format, but it's not straight forward. It's easier to simply arrayDecode the LSON and work with the array. And since you can convert the array to a memory sqLite database and back again with my handy dandy handlers, everybody wins! Bob S > On Jul 27, 2018, at 12:52

Re: Data Persistence

2018-07-27 Thread J. Landman Gay via use-livecode
On 7/27/18 2:26 PM, Richard Gaskin via use-livecode wrote: if the result is empty then   return "Error in getTempSavedParams: "& the result for error end if I believe you had a thinko: "not empty", yes? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software

Re: Data Persistence

2018-07-27 Thread Mike Bonner via use-livecode
On the subject of sqLite/memory databases and preferences/data persistence, rather than using an array, and doing the encode/decode stuff, would it make sense to do the following.. 1. open an empty in memory database 2. attach a disk based database 3. copy the required table(s) from disk base to

Re: Data Persistence

2018-07-27 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: On 27/07/2018 20:17, Richard Gaskin via use-livecode wrote: > Using arrays intigues me, especially if I can just keep it in RAM (It > is a small amount of data for sure). One great thing about LC's built-in support for arrays is that it's built-in. JSON has become

Re: Data Persistence

2018-07-27 Thread Richard Gaskin via use-livecode
Sannyasin Brahmanathaswami wrote: > Richard wrote " If that native form is an array, there may be no need > to do anything more than what LC already gives us straight out of the > box." > > I have been toying with this for some time, but like Alex said.. > > "I just wish there was a

Re: Data Persistence

2018-07-27 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > On 7/27/18 2:26 PM, Richard Gaskin via use-livecode wrote: >> if the result is empty then >>return "Error in getTempSavedParams: "& the result for error >> end if > > I believe you had a thinko: "not empty", yes? Indeed I did - thanks. -- Richard Gaskin Fourth

Re: Checking if internet is connected using tsNet?

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 10:48 AM, Sannyasin Brahmanathaswami via use-livecode wrote: if (tResult < 400) then return true else return false end if I'd be a little wary of that "< 400" result though. You may (or may not) want to follow redirects, and if you get a 418 you may

Re: Data Persistence

2018-07-27 Thread Brian Milby via use-livecode
Use case is a major driver though. If you have no need to hand edit a file, then LSON is an efficient and easy way to store the data. It also has the benefit of being able to easily store binary data if needed. On Fri, Jul 27, 2018 at 5:40 PM, Richard Gaskin via use-livecode <

Re: Data Persistence

2018-07-27 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > I tried reading an "LSON" format, but it's not straight forward. It's > easier to simply arrayDecode the LSON and work with the array. I think there's a misunderstanding here: LSON *is* the standard LC encoded array. -- Richard Gaskin Fourth World Systems Software

Re: ANN: *** targetSdkVersion requirements Android ***

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 09:13 AM, Mark Waddingham via use-livecode wrote: P.S. We could look into doing something similar with iOS with regards explicitly being able to ask for permission for things - in a similar way proposed above. If people feel there is a need for it, please file an enhancement

Re: Data Persistence

2018-07-27 Thread Mark Wieder via use-livecode
On 07/27/2018 02:58 PM, Mike Bonner via use-livecode wrote: Your Bran. will be assimilated. (borg zombies FTW) Yes. More brains please. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Data Persistence

2018-07-27 Thread J. Landman Gay via use-livecode
On 7/27/18 12:47 PM, John McKenzie via use-livecode wrote: Tom, thank you for welcoming me. Much different than some online programming groups. :-) We love new users, it's more brains for the collective. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive

Re: Data Persistence

2018-07-27 Thread Richard Gaskin via use-livecode
Sannyasin Brahmanathaswami wrote: > (rough draft code) > > Local sTempParamArray # may good to save a local, > > Command saveTempParams > >Put fld "fuelNeed" into pTempParamArray["fuelNeeded'} >Put fld "timeToArrival" into pTempParamArray["timeToArrival"" >

Re: Data Persistence

2018-07-27 Thread Richard Gaskin via use-livecode
John McKenzie wrote: > Because I like word play I might make my own text file format, the > "Extended Livecode Optimized Serialized Object Notation" format or > ELSON. It adds just enough features to LSON to make identical to JSON. > Being stupid and redundant it will be the hot new buzzword in

Re: Data Persistence

2018-07-27 Thread Alex Tweedly via use-livecode
On 27/07/2018 20:17, Richard Gaskin via use-livecode wrote: >  Using arrays intigues me, especially if I can just keep it in RAM (It > is a small amount of data for sure). One great thing about LC's built-in support for arrays is that it's built-in. JSON has become used in so many other

Re: Data Persistence

2018-07-27 Thread Sannyasin Brahmanathaswami via use-livecode
Richard Gaskin This is where serialization comes in, collecting all the disparate pointer contents and packing them into a bytestream that can be saved or transported, using arrayEncode: Ha! I knew that would bring out something useful... thanks for upgrading the handlers.