Re: Developing first on android

2017-08-19 Thread Monte Goulding via use-livecode
Hi Folks lcVCS was invented before script only stacks and for the most part script only stacks covers the use case much better. If you have a complicated stackFile then no matter what text representation we make of it you would get lost dealing with merge conflicts and diffs. If you don’t belie

Re: MacBook Pro Touch Bar support

2017-08-19 Thread Monte Goulding via use-livecode
> On 20 Aug 2017, at 3:26 am, Bill Vlahos via use-livecode > wrote: > > Has anyone been able to integrate the MacBook Pro Touch Bar in a LiveCode > application? > > If so, how? I’m happy to do an external or LCB library if you send over a new macbook pro for me ;-) Cheers Monte __

Re: Daybed 2.0 - A Library for Apache CouchDB

2017-08-19 Thread Matthias Rebbe via use-livecode
> Am 19.08.2017 um 04:51 schrieb Mike Kerner via use-livecode > mailto:use-livecode@lists.runrev.com>>: > > Greg, > That was a really cool talk, yesterday. I agree, but I have to admit that I have to watch the recording at least once. It was very good, but also very much input. ;) Matthias

Filtering, Search and Fields on Mobile

2017-08-19 Thread Sannyasin Brahmanathaswami via use-livecode
In our new app I just exposed *all* the audio on our web site in different playlists. you can now download and play off line. beta users begged me… done! YAY! Some some playlist (posted to a mobile scrolling field) are 900 lines long and you can't find anything BOO! Later I will implement more

MacBook Pro Touch Bar support

2017-08-19 Thread Bill Vlahos via use-livecode
Has anyone been able to integrate the MacBook Pro Touch Bar in a LiveCode application? If so, how? Thank you, Bill Vlahos ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscr

Re: Daybed 2.0 - A Library for Apache CouchDB

2017-08-19 Thread Tom Glod via use-livecode
Great Job! thank you On Sat, Aug 19, 2017 at 9:20 AM, pink via use-livecode < use-livecode@lists.runrev.com> wrote: > For experimentation, you can setup a free account with IBM for Cloudant. > > The free account is for 1GB which is enough for around 2 million > records/revisions > > Cloudant shar

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Klaus major-k via use-livecode
Hi Alex, > Am 19.08.2017 um 16:57 schrieb Alex Tweedly via use-livecode > : > > Hmmm - you haven't mentioned how much data you're working with. not sure, but definitively less than 5000. > Using lineoffset() to check for duplicated keys will make you (relatively) > slow on large data sets, si

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Alex Tweedly via use-livecode
Hmmm - you haven't mentioned how much data you're working with. Using lineoffset() to check for duplicated keys will make you (relatively) slow on large data sets, since it is O(n**2). Since you know that item 2 is not empty, you must also know that the whole line is not empty :-), so you ca

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Klaus major-k via use-livecode
Little addition, thanks hermann: > Am 19.08.2017 um 15:44 schrieb Klaus major-k via use-livecode > : > > Hi Mike, > > I added a little IF THEN clause to avoid doublettes in the ney key, too, > and now it does what I need, thanks again! > >> Am 19.08.2017 um 15:12 schrieb Klaus major-k via use-

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Klaus major-k via use-livecode
Hi Mike, I added a little IF THEN clause to avoid doublettes in the ney key, too, and now it does what I need, thanks again! > Am 19.08.2017 um 15:12 schrieb Klaus major-k via use-livecode > : >> >> put empty into tArray >> repeat for each line tLine in tData >> put item 2 of tLine into tKey >>

Re: Daybed 2.0 - A Library for Apache CouchDB

2017-08-19 Thread pink via use-livecode
For experimentation, you can setup a free account with IBM for Cloudant. The free account is for 1GB which is enough for around 2 million records/revisions Cloudant shares most of their code with Apache for CouchDB, the only major difference is how they setup users. The Daybed library will work w

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Klaus major-k via use-livecode
Hi Mike, > Am 19.08.2017 um 14:36 schrieb Mike Bonner via use-livecode > : > > Have a separate list, or a special key that holds your list of keys. > > put empty into tArray > repeat for each line tLine in tData > put item 2 of tLine into tKey > if tKey = EMPTY then next repeat > put tLine & CR

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Mike Bonner via use-livecode
Have a separate list, or a special key that holds your list of keys. put empty into tArray repeat for each line tLine in tData put item 2 of tLine into tKey if tKey = EMPTY then next repeat put tLine & CR after tArray[tKey] put tKey & cr after tarray['myKeyList'] end repeat Then when you need to

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Klaus major-k via use-livecode
Hi Jonathan, > Am 19.08.2017 um 14:22 schrieb Jonathan Lynch via use-livecode > : > > You could alter the name of the elements... > > Put "X_" & tK into tArrayElement > Put tData into myArray[tArrayElement] > X would be created in a counting loop. > > That way, when you get the keys of the arr

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Jonathan Lynch via use-livecode
You could alter the name of the elements... Put "X_" & tK into tArrayElement Put tData into myArray[tArrayElement] X would be created in a counting loop. That way, when you get the keys of the array, you can sort numeric by item 1 of each, using "_" as the itemdel. This will give you the origi

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread jbv via use-livecode
Hi Klaus I've been there and the only solution I found was to maintain a second array : put 0 into x put "abc" into array1[60] add 1 to x put 60 into array2[x] put "xyz" into array1[30] add 1 to x put 30 into array2[x] put the keys of array2 into tkeys sort lines of tkeys ascend

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Jonathan Lynch via use-livecode
Maybe a two-part array? Myarray[1,tk] You can control the first part of the array, keeping it in order, and thus not depend on how LC orders the tK part of the array. Sent from my iPhone > On Aug 19, 2017, at 7:33 AM, Klaus major-k via use-livecode > wrote: > > Hi dfriends, > > need a litt

keeping keys of an array in the order they came in?

2017-08-19 Thread Klaus major-k via use-livecode
Hi dfriends, need a little help, I am filling an array (to eliminate doublettes) and really need to keep the order of the keys as they came in. Example: ... put "60,30,40" into tK repeat for each item tItem in tK put "sdsdsdsddsd" into tArray[tItem] end repeat put the keys of tArray ... Now I wou