Re: Understanding LiveCode Source [BOM Issue with livecodescript URLs]

2017-08-07 Thread Brian Milby via use-livecode
Thanks for the reply Mark.  Since I don't have my own project in mind yet
for LC, I'm taking the opportunity to spend some time on the IDE and source
just to try to understand things.  Since this was an error that I could
easily reproduce and is something that is pretty easily understandable
(since the BOM is only 3 or 4 bytes at the start of a file), I decided to
give it a shot.  I'll move over to the bug report and get set up for
gitter.  I'll keep digging on this one.

Thanks,
Brian

On Sat, Aug 5, 2017 at 8:54 PM, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The best way is to ask 'us' (as in the engineers that have worked on the
> entirety of the LiveCode source base for many years). This isn't any
> different from any other open source project which has 1.5m lines of code
> (I don't think at least...).
>
> We can certainly provide an insight at where to start looking in terms of
> working on most issues - although don't be surprised if some result in a
> littany of 'that would be nice but...' type response. (The engine, in
> particular, has yaks needing shaving all over - as the years go by they are
> getting increasingly sweaty and tetchy because of it).
>
> It is easy to get disheartened (slightly?) when working on the engine
> itself - but please don't be. We (as the maintainers) of the source base
> will offer as much help as we can, but do have to balance that with
> everything else we do.
>
> I'd like to think that we do better than the RTFS responses you see in
> many other projects - but it really does come down to that in many cases
> (as we have to do that ourselves!). However, we are are more than happy to
> dig out the 'lower hanging fruit' to help ease learning - you've already
> found one of those...
>
> I think you've found (one of) the good spot(s) to start - handling BOMs
> needs to occur at the point the engine reads in the text of the stackfile
> script as data and then use it with an 'external representation' bool flag
> to the decode API call in libfoundation (MCStringCreate...). I think that
> flag is currently unimplemented (so a small yak shave but not in anyway
> huge).
>
> You've already got a handle on the processes we use internally, and do
> expect every contributor to follow those processes, and sometimes we might
> sound blunt, but please always understand that in terms of ensuring what is
> done (in terms of mutation of the source - I use the term 'mutation'
> specifically as any change to a large existing, and existing entity can
> only be considered as such) is 'correct' (at least as far as the collective
> knowledge we hold is understood - and by 'we' I mean all that contribute).
>
> In terms of best places to interact on these matters then here (the
> use-list) is probably not great - gitter is good for direct answers but our
> quality centre is better as it provides a much better permanent and
> grokable record (indeed - we try to file an issue for every change to make
> it traceable globally)... At least until a PR is submitted.
>
> Also we *could* invite dedicated external contributors to our private
> Slack - not something we've done as yet but it's a very tangible
> possibility. (And this is not a matter of privacy - but of pragmatic
> information exchange - those that work for LiveCode directly have time
> constraints on responding to input - that's all).
>
> So, anyway, perhaps a much longer response than you expected. However it
> was not aimed at you (Brian) specifically, but generally. We don't expect
> contribution from anyone, but are always incredibly happy and as supportive
> as we can be when it occurs.
>
> LiveCode is a wealth of interesting problems, if nothing else, and you can
> learn a lot from it (as I have done in my 13 year tenure as 'chief
> engineer').
>
> Warmest Regards,
>
> Mark.
>
> P.S. I made a comment recently about 'caution being one of the best tools
> to effect change' and it applies to any long standing entity - of which
> LiveCode is one. I completely reserve the right (as 'BDFL' which is perhaps
> my title in that space) to cessate anything which I do not think is right
> (usually by closing a PR ;)), but I have an open mind - 'trust' is an
> important factor here on a technical level. I limit myself on what I do to
> the engine (in particular!) because it is very hard to get it 'right' when
> taking into the account the breadth of applicability - there are huge
> constraints which only become articulable when faced with direct reasons
> for any change. i.e. Start small and work up - anything else will result in
> a *seemingly* dismissive response. (ie don't expect huge support from us
> for very broad changes without long running interaction and justification).
>
> P.P.S. I've learnt the above from tangible and *very* direct cost. The
> only reason I make these kinds of statements is because I care so much
> about what we are trying to be and do.
>
> Sent from my iPhone
>
> > On 5 Aug 2017, at 

Re: Taking quotes on building LC external for RethinkDB

2017-08-07 Thread Richard Gaskin via use-livecode

Yeah, I started to skim the security notes at
, but when I got to this:

   The best way to secure a RethinkDB cluster is to run it
   on a protected network that doesn’t allow access from the
   outside world. However, this may not always be feasible.
   For example, cloud deployments often require access from
   wide area networks.

   There are two main methods RethinkDB provides for securing
   the cluster: TLS encryption for connections, and binding
   the ports the server uses to specific IP addresses to limit
   outside connections.

...at that point I had to remind myself of other things demanding my 
attention. :) So tempting as it is, setting up a secure cluster is not 
something I'll be exploring soon.


Keep us posted. Interesting system

--
 Richard Gaskin
 Fourth World Systems


Tom Glod wrote:


to answer your question, the database cluster will be accepting connections
and queries from clients directly.

On Mon, Aug 7, 2017 at 11:51 AM, Tom Glod  wrote:


Hi Richard .  like Alex said, there is no Rest api for RethinkDB.  The
folks at RethinkDB didn't want to expose the whole query language using a
rest api, (if i recall correctly they said it is too powerful to do
so)...so the driver only accepts queries via driver port and streams
resulting json and updates back to client.

My desktop client will connect to a local database which (will or can be
part) of a distributed cluster.







On Mon, Aug 7, 2017 at 10:53 AM, Bob Sneidar via use-livecode <
use-livecode at lists.runrev.com> wrote:


I was thinking the same thing. This isn't a database function per se,
it's more like a sockets function.

Bob S


> On Aug 5, 2017, at 16:42 , Tom Glod via use-livecode <
use-livecode at lists.runrev.com> wrote:
>
> If you go to this page . the specs say that it all happens through
an
> tcp/ip  connection where you make a connection, serialize the query and
> send it   the db driver port receives queries, and streams data from
> the db via the TCP/IP back to "subscribed" client.
>
> So it doesn't really need to have anything to do with the current
> revdatabase functionswhich the posts seem to be talking about.  I'm
not
> asking for a rewrite of db layer.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Sorting out the sheep from the goats

2017-08-07 Thread Lagi Pittas via use-livecode
I Tawt I Taw a Puddy Tat

Lagi

On 7 August 2017 at 23:26, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Wh, Cwme wn that's ridiculwus; everywne knwws that the English fwr "Cwm"
> is "cwmbe".
>
> This is Hwpeless!
>
> Richmwnd.
>
>
> On 8/8/17 1:23 am, Jonathan Lynch via use-livecode wrote:
>
>> Scrabble disagrees.
>>
>> Both words are in mainstream dictionaries as well. They are imported
>> words. I think they are the only two words where W is a vowel.
>>
>> Of course, Scrabble considers zloty, qadi, and qwerty to be words.
>>
>> Sent from my iPhone
>>
>> On Aug 7, 2017, at 6:17 PM, Richmond Mathewson via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>
>>> Also a Welsh word, NOT an English one.
>>>
>>> Richmond.
>>>
>>> On 8/7/17 11:24 pm, Jerry Jensen via use-livecode wrote:
 And the musical instrument the crwth.

 On Aug 7, 2017, at 1:08 PM, Jonathan Lynch via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> And the obscure word "cwm" uses w as a vowel.
>
> Sent from my iPhone
>
> On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>> I think you have an error in your code samples.  Your vowel set
>> should be
>> “aeiouandsometimesy"
>>
>
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: SORT by length

2017-08-07 Thread Terry Judd via use-livecode
sort lines of fld “myGuff” descending numeric by length(each) – should do it.

Terry...

On 8/08/2017 8:23 am, "use-livecode on behalf of Richmond Mathewson via 
use-livecode"  wrote:

I have a listField containing a number of words which I want to order so 
the longest comes
first . . .

doing this:

sort lines of fld "myGuff" by length(each)

sorts the words, but the shortest one comes first...

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: SORT by length

2017-08-07 Thread Jerry Jensen via use-livecode
So what did it do? With all those asterisks I can’t run it without retyping the 
whole thing.

> On Aug 7, 2017, at 3:42 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> That scr*wed up badly.
> 
> I found this: http://forums.livecode.com/viewtopic.php?f=9=10505#p48529
> 
> and modified it:
> 
> *on**mouseUp*
> 
> **
> 
> ***put**empty **into**rSortByLength*
> 
> **
> 
> ***put**fld "CL" **into**tText*
> 
> **
> 
> ***repeatfor**each word tLine in tText*
> 
> **
> 
> ***put**tLine&"," 
> &**thelengthof**tLine&**returnafter**rSortByLength*
> 
> **
> 
> ***endrepeat*
> 
> **
> 
> ***delete**char -1 **of**rSortByLength*
> 
> **
> 
> ***sort**lines **of**rSortByLength descending numeric by item 2 **of**each*
> 
> **
> 
> ***put**empty **into**fld "CL"*
> 
> **
> 
> ***put**rSortByLength **into**fld "CL"*
> 
> **
> 
> ***--*
> 
> **
> 
> ***put**1 **into**KOUNT*
> 
> **
> 
> ***repeat**until line KOUNT **of**fld "CL" is empty*
> 
> **
> 
> ***deletethe**last char **of**line KOUNT **of**fld "CL"*
> 
> **
> 
> ***deletethe**last char **of**line KOUNT **of**fld "CL"*
> 
> **
> 
> ***add**1 **to**KOUNT*
> 
> **
> 
> ***endrepeat*
> 
> **
> 
> *end**mouseUp*
> 
> 
> Richmond.
> 
> 
> On 8/8/17 1:29 am, Jerry Jensen via use-livecode wrote:
>> From the dictionary entry for “sort”: If you don't specify a direction, the 
>> sort is ascending. One of the following items: • ascending -sorts in 
>> ascending order • descending -sorts in descending order
>>> On Aug 7, 2017, at 3:23 PM, Richmond Mathewson via use-livecode 
>>>  wrote: I have a listField containing a 
>>> number of words which I want to order so the longest comes first . . . 
>>> doing this: sort lines of fld "myGuff" by length(each) sorts the words, but 
>>> the shortest one comes first…
>> ___ use-livecode mailing list 
>> use-livecode@lists.runrev.com Please visit this url to subscribe, 
>> unsubscribe and manage your subscription preferences: 
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: SORT by length

2017-08-07 Thread Richmond Mathewson via use-livecode

That scr*wed up badly.

I found this: http://forums.livecode.com/viewtopic.php?f=9=10505#p48529

and modified it:

*on**mouseUp*

**

***put**empty **into**rSortByLength*

**

***put**fld "CL" **into**tText*

**

***repeatfor**each word tLine in tText*

**

***put**tLine&"," 
&**thelengthof**tLine&**returnafter**rSortByLength*


**

***endrepeat*

**

***delete**char -1 **of**rSortByLength*

**

***sort**lines **of**rSortByLength descending numeric by item 2 **of**each*

**

***put**empty **into**fld "CL"*

**

***put**rSortByLength **into**fld "CL"*

**

***--*

**

***put**1 **into**KOUNT*

**

***repeat**until line KOUNT **of**fld "CL" is empty*

**

***deletethe**last char **of**line KOUNT **of**fld "CL"*

**

***deletethe**last char **of**line KOUNT **of**fld "CL"*

**

***add**1 **to**KOUNT*

**

***endrepeat*

**

*end**mouseUp*


Richmond.


On 8/8/17 1:29 am, Jerry Jensen via use-livecode wrote:
From the dictionary entry for “sort”: If you don't specify a 
direction, the sort is ascending. One of the following items: • 
ascending -sorts in ascending order • descending -sorts in descending 
order
On Aug 7, 2017, at 3:23 PM, Richmond Mathewson via use-livecode 
 wrote: I have a listField containing 
a number of words which I want to order so the longest comes first . 
. . doing this: sort lines of fld "myGuff" by length(each) sorts the 
words, but the shortest one comes first…
___ use-livecode mailing 
list use-livecode@lists.runrev.com Please visit this url to subscribe, 
unsubscribe and manage your subscription preferences: 
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: SORT by length

2017-08-07 Thread Richmond Mathewson via use-livecode

Thanks: that looks remarkably simple.

I suppose the "trick" is knowing which word to look up in the Dictionary ;-)

Richmond.

On 8/8/17 1:29 am, Jerry Jensen via use-livecode wrote:

 From the dictionary entry for “sort”:
If you don't specify a direction, the sort is ascending.
One of the following items:
• ascending -sorts in ascending order
• descending -sorts in descending order


On Aug 7, 2017, at 3:23 PM, Richmond Mathewson via use-livecode 
 wrote:

I have a listField containing a number of words which I want to order so the 
longest comes
first . . .

doing this:

sort lines of fld "myGuff" by length(each)

sorts the words, but the shortest one comes first…



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: SORT by length

2017-08-07 Thread Jerry Jensen via use-livecode
From the dictionary entry for “sort”:
If you don't specify a direction, the sort is ascending.
One of the following items:
• ascending -sorts in ascending order
• descending -sorts in descending order

> On Aug 7, 2017, at 3:23 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> I have a listField containing a number of words which I want to order so the 
> longest comes
> first . . .
> 
> doing this:
> 
> sort lines of fld "myGuff" by length(each)
> 
> sorts the words, but the shortest one comes first…



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Sorting out the sheep from the goats

2017-08-07 Thread Richmond Mathewson via use-livecode
Wh, Cwme wn that's ridiculwus; everywne knwws that the English fwr "Cwm" 
is "cwmbe".


This is Hwpeless!

Richmwnd.


On 8/8/17 1:23 am, Jonathan Lynch via use-livecode wrote:

Scrabble disagrees.

Both words are in mainstream dictionaries as well. They are imported words. I 
think they are the only two words where W is a vowel.

Of course, Scrabble considers zloty, qadi, and qwerty to be words.

Sent from my iPhone


On Aug 7, 2017, at 6:17 PM, Richmond Mathewson via use-livecode 
 wrote:

Also a Welsh word, NOT an English one.

Richmond.


On 8/7/17 11:24 pm, Jerry Jensen via use-livecode wrote:
And the musical instrument the crwth.


On Aug 7, 2017, at 1:08 PM, Jonathan Lynch via use-livecode 
 wrote:

And the obscure word "cwm" uses w as a vowel.

Sent from my iPhone


On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode 
 wrote:

I think you have an error in your code samples.  Your vowel set should be
“aeiouandsometimesy"


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

SORT by length

2017-08-07 Thread Richmond Mathewson via use-livecode
I have a listField containing a number of words which I want to order so 
the longest comes

first . . .

doing this:

sort lines of fld "myGuff" by length(each)

sorts the words, but the shortest one comes first...

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting out the sheep from the goats

2017-08-07 Thread Jonathan Lynch via use-livecode
Scrabble disagrees. 

Both words are in mainstream dictionaries as well. They are imported words. I 
think they are the only two words where W is a vowel.

Of course, Scrabble considers zloty, qadi, and qwerty to be words.

Sent from my iPhone

> On Aug 7, 2017, at 6:17 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> Also a Welsh word, NOT an English one.
> 
> Richmond.
> 
>> On 8/7/17 11:24 pm, Jerry Jensen via use-livecode wrote:
>> And the musical instrument the crwth.
>> 
>>> On Aug 7, 2017, at 1:08 PM, Jonathan Lynch via use-livecode 
>>>  wrote:
>>> 
>>> And the obscure word "cwm" uses w as a vowel.
>>> 
>>> Sent from my iPhone
>>> 
 On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode 
  wrote:
 
 I think you have an error in your code samples.  Your vowel set should be
 “aeiouandsometimesy"
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Sorting out the sheep from the goats

2017-08-07 Thread Jerry Jensen via use-livecode
Ahem, neither is LarrygubAndCheesemakemyfeetstink.

> On Aug 7, 2017, at 3:17 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> Also a Welsh word, NOT an English one.
> 
> Richmond.
> 
> On 8/7/17 11:24 pm, Jerry Jensen via use-livecode wrote:
>> And the musical instrument the crwth.
>> 
>>> On Aug 7, 2017, at 1:08 PM, Jonathan Lynch via use-livecode 
>>>  wrote:
>>> 
>>> And the obscure word "cwm" uses w as a vowel.
>>> 
>>> Sent from my iPhone
>>> 
 On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode 
  wrote:
 
 I think you have an error in your code samples.  Your vowel set should be
 “aeiouandsometimesy"
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Sorting out the sheep from the goats

2017-08-07 Thread Richmond Mathewson via use-livecode

Also a Welsh word, NOT an English one.

Richmond.

On 8/7/17 11:24 pm, Jerry Jensen via use-livecode wrote:

And the musical instrument the crwth.


On Aug 7, 2017, at 1:08 PM, Jonathan Lynch via use-livecode 
 wrote:

And the obscure word "cwm" uses w as a vowel.

Sent from my iPhone


On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode 
 wrote:

I think you have an error in your code samples.  Your vowel set should be
“aeiouandsometimesy"



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Recursive folder creation

2017-08-07 Thread hh via use-livecode
> Bob wrote:
> Wha??? I didn't know this existed. I have a need for that too! I use
> a repeat loop to do this. I suppose that is what this function does as well. 

Here is it, for a "direct" call, in case revSBLibrary is not available. 
It does the same as Tore's (and probably your) script but is recursive.

# Creates a folder and all parents as required. By Marcus van Houdt.
on revSBEnsureFolder pFolder
  set the itemDel to "/"
  if there is no folder pFolder and pFolder is not empty then
revSBEnsureFolder item 1 to -2 of pFolder
if the result is not empty then return the result
create folder pFolder
return the result
  end if
end revSBEnsureFolder


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Maximum size of SQLQuery with revDataFromQuery ?

2017-08-07 Thread Mark Waddingham via use-livecode
Also using the query functions which allow iteration over the result set will 
minimise data transfer at any one point in time (assuming it's a decent client 
driver).

Warmest Regards,

Mark.

Sent from my iPhone

> On 7 Aug 2017, at 19:45, Bob Sneidar via use-livecode 
>  wrote:
> 
> Query return data is more of a performance issue. The whole point to SQL is 
> efficient data access, and a great deal of time is spend when teaching SQL on 
> designing databases around that concept. 
> 
> It's one thing if you have columns with large blobs, but if you are talking 
> about returning large datasets with lots of records, it may be a design 
> issue. You may want to consider creating some SQL functions that process the 
> data on the server itself instead of having LC do the processing. 
> 
> That being said, it is possible to "page" through the SQL data by using 
> OFFSET and LIMIT. Just keep track of the offset, set the limit to something 
> like 1000, and page your data in and store it as you see fit. 
> 
> Bob S
> 
> 
>> On Aug 7, 2017, at 10:48 , Tom Glod via use-livecode 
>>  wrote:
>> 
>> i can't say for surebut wouldn't the limit be the "size" of a variable
>> in lc?  ...and i think you can cram as much into your variable as you want
>> as long as you have the available ramor you don't hit some OS
>> limitlike the one i love so much in windows.
>> 
>> i've done some pretty large select all queries. and i've never had a
>> problem.
>> 
>> On Sun, Aug 6, 2017 at 2:59 PM, jbv via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Hello
>>> Is there a size limit for the SQLQuery parameter when using
>>> revDataFromQuery ?
>>> I might end up with mySQL queries of at least 75 Kb...
>>> I know the best way to know is to try, but any experience would be
>>> apreciated...
>>> 
>>> FYI some of there queries have been tested in PHPmyAdmin and run in 0.0054
>>> sec;
>>> my concern was rather the buffer size between LC engine and mySQL...
>>> 
>>> Thanks in advance.
>>> jbv
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting out the sheep from the goats

2017-08-07 Thread Jerry Jensen via use-livecode
And the musical instrument the crwth.

> On Aug 7, 2017, at 1:08 PM, Jonathan Lynch via use-livecode 
>  wrote:
> 
> And the obscure word "cwm" uses w as a vowel.
> 
> Sent from my iPhone
> 
>> On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode 
>>  wrote:
>> 
>> I think you have an error in your code samples.  Your vowel set should be
>> “aeiouandsometimesy"



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Sorting out the sheep from the goats

2017-08-07 Thread Richmond Mathewson via use-livecode
Cwm is Welsh; in English it is spelt "combe".


On Aug 7, 2017 11:08 PM, "Jonathan Lynch via use-livecode" <
use-livecode@lists.runrev.com> wrote:

> And the obscure word "cwm" uses w as a vowel.
>
> Sent from my iPhone
>
> > On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I think you have an error in your code samples.  Your vowel set should be
> > "aeiouandsometimesy"
> >
> > On Mon, Aug 7, 2017 at 1:56 PM, Richmond Mathewson via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Thanks Tore and Mike.
> >>
> >> Richmond.
> >>
> >>
> >>> On 8/7/17 8:52 pm, Mike Bonner via use-livecode wrote:
> >>>
> >>> typo, first line should be
> >>> repeat for each char tChar in tVar -- where tvar has your string
> >>>
> >>> On Mon, Aug 7, 2017 at 11:52 AM, Mike Bonner 
> wrote:
> >>>
> >>> Repeat for each char tchar intVar
>  if tChar is among the items of "a,e,i,o,u" then
>  -- its a vowel
>  else
> -- its not a vowel.
>  end if
> 
>  end repeat
> 
>  On Mon, Aug 7, 2017 at 11:42 AM, Richmond Mathewson via use-livecode <
>  use-livecode@lists.runrev.com> wrote:
> 
>  Yes, here's "Mr Sanskrit" asking what is probably a very goofy
> question
> > indeed:
> >
> > I have a series of long strings of characters such as:
> >
> > LarrygubAndCheesemakemyfeetstink
> >
> > and I would like a happy little routine that could trot along each
> > string
> > and, for each character (and this is ONLY confined
> > to the Latin alphabet, at the moment) tell me (or, more importantly,
> > other scripts) whether it is a VOWEL or a CONSONANT.
> >
> > Of course, having learnt from Mark Waddingham about the effective
> nature
> > of G & T s, I may end up answering my own e-mail . . .
> >
> > Thanks Mark, I knew you had more to tell me than "just" computer
> > programming :-)
> >
> > Richmond.
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
>  ___
> >>> use-livecode mailing list
> >>> use-livecode@lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >
> >
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >   and did a little diving.
> > And God said, "This is good."
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Sorting out the sheep from the goats

2017-08-07 Thread Ralph DiMola via use-livecode
Jonathan, I can't wait to use that one in scrabble against Margaret!
Thanks...

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 Jonathan Lynch via use-livecode
Sent: Monday, August 07, 2017 4:09 PM
To: How to use LiveCode
Cc: jonathandly...@gmail.com
Subject: Re: Sorting out the sheep from the goats

And the obscure word "cwm" uses w as a vowel.

Sent from my iPhone

> On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode
 wrote:
> 
> I think you have an error in your code samples.  Your vowel set should 
> be "aeiouandsometimesy"
> 
> On Mon, Aug 7, 2017 at 1:56 PM, Richmond Mathewson via use-livecode < 
> use-livecode@lists.runrev.com> wrote:
> 
>> Thanks Tore and Mike.
>> 
>> Richmond.
>> 
>> 
>>> On 8/7/17 8:52 pm, Mike Bonner via use-livecode wrote:
>>> 
>>> typo, first line should be
>>> repeat for each char tChar in tVar -- where tvar has your string
>>> 
>>> On Mon, Aug 7, 2017 at 11:52 AM, Mike Bonner  wrote:
>>> 
>>> Repeat for each char tchar intVar
 if tChar is among the items of "a,e,i,o,u" then
 -- its a vowel
 else
-- its not a vowel.
 end if
 
 end repeat
 
 On Mon, Aug 7, 2017 at 11:42 AM, Richmond Mathewson via 
 use-livecode < use-livecode@lists.runrev.com> wrote:
 
 Yes, here's "Mr Sanskrit" asking what is probably a very goofy 
 question
> indeed:
> 
> I have a series of long strings of characters such as:
> 
> LarrygubAndCheesemakemyfeetstink
> 
> and I would like a happy little routine that could trot along each 
> string and, for each character (and this is ONLY confined to the 
> Latin alphabet, at the moment) tell me (or, more importantly, 
> other scripts) whether it is a VOWEL or a CONSONANT.
> 
> Of course, having learnt from Mark Waddingham about the effective 
> nature of G & T s, I may end up answering my own e-mail . . .
> 
> Thanks Mark, I knew you had more to tell me than "just" computer 
> programming :-)
> 
> Richmond.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
 ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> 
> --
> On the first day, God created the heavens and the Earth On the second 
> day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Recursive folder creation

2017-08-07 Thread Bob Sneidar via use-livecode
Wha??? I didn't know this existed. I have a need for that too! I use a repeat 
loop to do this. I suppose that is what this function does as well. 

Bob S


> On Aug 7, 2017, at 12:12 , hh via use-livecode 
>  wrote:
> 
>> Brian wrote:
>> Check out _revSBEnsureFolder in revSBLibrary for example code that does this.
> 
> Brian, WOW! This is great insight!
> 
> on mouseUp
>  put "/Users/admin/Documents/brian3/showed/us/the/trick/of/marcus/" into ff
>  call "revSBEnsureFolder ff" of stack "revSBLibrary"
>  launch document ff
> end mouseUp


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting out the sheep from the goats

2017-08-07 Thread Jonathan Lynch via use-livecode
And the obscure word "cwm" uses w as a vowel.

Sent from my iPhone

> On Aug 7, 2017, at 3:28 PM, Mike Kerner via use-livecode 
>  wrote:
> 
> I think you have an error in your code samples.  Your vowel set should be
> "aeiouandsometimesy"
> 
> On Mon, Aug 7, 2017 at 1:56 PM, Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Thanks Tore and Mike.
>> 
>> Richmond.
>> 
>> 
>>> On 8/7/17 8:52 pm, Mike Bonner via use-livecode wrote:
>>> 
>>> typo, first line should be
>>> repeat for each char tChar in tVar -- where tvar has your string
>>> 
>>> On Mon, Aug 7, 2017 at 11:52 AM, Mike Bonner  wrote:
>>> 
>>> Repeat for each char tchar intVar
 if tChar is among the items of "a,e,i,o,u" then
 -- its a vowel
 else
-- its not a vowel.
 end if
 
 end repeat
 
 On Mon, Aug 7, 2017 at 11:42 AM, Richmond Mathewson via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
 Yes, here's "Mr Sanskrit" asking what is probably a very goofy question
> indeed:
> 
> I have a series of long strings of characters such as:
> 
> LarrygubAndCheesemakemyfeetstink
> 
> and I would like a happy little routine that could trot along each
> string
> and, for each character (and this is ONLY confined
> to the Latin alphabet, at the moment) tell me (or, more importantly,
> other scripts) whether it is a VOWEL or a CONSONANT.
> 
> Of course, having learnt from Mark Waddingham about the effective nature
> of G & T s, I may end up answering my own e-mail . . .
> 
> Thanks Mark, I knew you had more to tell me than "just" computer
> programming :-)
> 
> Richmond.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
 ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Recursive folder creation

2017-08-07 Thread Sannyasin Brahmanathaswami via use-livecode
I just came to this myself before  coming back here

put item -1 of pURL into tFile
   put item 1 to -2 of pURL into tFolder
   put tDF &"/" & tFolder into tCompletePath 
   
   # loop to create sub folders
   # Of course we know tDF exists, 
   # but we don't know about any folder after that
   
   repeat for each item x in tFolder
  put "/" & x after tNextFolder
put tDF & tNextFolder into tSubFolder
  if there is not a folder tSubFolder then
 create folder tSubFolder
 put the result
  end if 
   end repeat  
   
   return tCompletePath &"/" & tFile

but your function is better

BR


 

On 8/7/17, 8:41 AM, "use-livecode on behalf of Tore Nilsen via use-livecode" 
 wrote:

Since we do not need to check whether a folder exists or not before 
creating it as LiveCode will not create duplicate folders, here is a script 
that will create nested folders:

on mouseUp
   put  specialFolderPath("desktop")& "/testFolder/testOne/test/result" 
into tFolder
   set the itemDel to "/"
   repeat with i = 1 to the number of items of tFolder
  put item 1 to i of tFolder into tFolderToCreate
  create folder tFolderToCreate
   end repeat
end mouseUp

Regards
Tore

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting out the sheep from the goats

2017-08-07 Thread Mike Kerner via use-livecode
I think you have an error in your code samples.  Your vowel set should be
"aeiouandsometimesy"

On Mon, Aug 7, 2017 at 1:56 PM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks Tore and Mike.
>
> Richmond.
>
>
> On 8/7/17 8:52 pm, Mike Bonner via use-livecode wrote:
>
>> typo, first line should be
>> repeat for each char tChar in tVar -- where tvar has your string
>>
>> On Mon, Aug 7, 2017 at 11:52 AM, Mike Bonner  wrote:
>>
>> Repeat for each char tchar intVar
>>> if tChar is among the items of "a,e,i,o,u" then
>>>  -- its a vowel
>>> else
>>> -- its not a vowel.
>>> end if
>>>
>>> end repeat
>>>
>>> On Mon, Aug 7, 2017 at 11:42 AM, Richmond Mathewson via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>
>>> Yes, here's "Mr Sanskrit" asking what is probably a very goofy question
 indeed:

 I have a series of long strings of characters such as:

 LarrygubAndCheesemakemyfeetstink

 and I would like a happy little routine that could trot along each
 string
 and, for each character (and this is ONLY confined
 to the Latin alphabet, at the moment) tell me (or, more importantly,
 other scripts) whether it is a VOWEL or a CONSONANT.

 Of course, having learnt from Mark Waddingham about the effective nature
 of G & T s, I may end up answering my own e-mail . . .

 Thanks Mark, I knew you had more to tell me than "just" computer
 programming :-)

 Richmond.
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


>>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Recursive folder creation

2017-08-07 Thread hh via use-livecode

> Brian wrote:
> Check out _revSBEnsureFolder in revSBLibrary for example code that does this.

Brian, WOW! This is great insight!

on mouseUp
  put "/Users/admin/Documents/brian3/showed/us/the/trick/of/marcus/" into ff
  call "revSBEnsureFolder ff" of stack "revSBLibrary"
  launch document ff
end mouseUp

> Tore wrote:
> on mouseUp
>put  specialFolderPath("desktop")& "/testFolder/testOne/test/result" into 
> tFolder
>set the itemDel to "/"
>repeat with i = 1 to the number of items of tFolder
>   put item 1 to i of tFolder into tFolderToCreate
>   create folder tFolderToCreate
>end repeat
> end mouseUp

Clever, Tore.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Maximum size of SQLQuery with revDataFromQuery ?

2017-08-07 Thread Bob Sneidar via use-livecode
Query return data is more of a performance issue. The whole point to SQL is 
efficient data access, and a great deal of time is spend when teaching SQL on 
designing databases around that concept. 

It's one thing if you have columns with large blobs, but if you are talking 
about returning large datasets with lots of records, it may be a design issue. 
You may want to consider creating some SQL functions that process the data on 
the server itself instead of having LC do the processing. 

That being said, it is possible to "page" through the SQL data by using OFFSET 
and LIMIT. Just keep track of the offset, set the limit to something like 1000, 
and page your data in and store it as you see fit. 

Bob S


> On Aug 7, 2017, at 10:48 , Tom Glod via use-livecode 
>  wrote:
> 
> i can't say for surebut wouldn't the limit be the "size" of a variable
> in lc?  ...and i think you can cram as much into your variable as you want
> as long as you have the available ramor you don't hit some OS
> limitlike the one i love so much in windows.
> 
> i've done some pretty large select all queries. and i've never had a
> problem.
> 
> On Sun, Aug 6, 2017 at 2:59 PM, jbv via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hello
>> Is there a size limit for the SQLQuery parameter when using
>> revDataFromQuery ?
>> I might end up with mySQL queries of at least 75 Kb...
>> I know the best way to know is to try, but any experience would be
>> apreciated...
>> 
>> FYI some of there queries have been tested in PHPmyAdmin and run in 0.0054
>> sec;
>> my concern was rather the buffer size between LC engine and mySQL...
>> 
>> Thanks in advance.
>> jbv


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Recursive folder creation

2017-08-07 Thread Tore Nilsen via use-livecode
Since we do not need to check whether a folder exists or not before creating it 
as LiveCode will not create duplicate folders, here is a script that will 
create nested folders:

on mouseUp
   put  specialFolderPath("desktop")& "/testFolder/testOne/test/result" into 
tFolder
   set the itemDel to "/"
   repeat with i = 1 to the number of items of tFolder
  put item 1 to i of tFolder into tFolderToCreate
  create folder tFolderToCreate
   end repeat
end mouseUp

Regards
Tore

> 7. aug. 2017 kl. 19:57 skrev Sannyasin Brahmanathaswami via use-livecode 
> :
> 
> 2) Does it make sense to ask for an enhancement request for the engine to 
> recursively create folders for a path where itemdel "/" and items -1,-2,-3 
> (sub folders) do not exist?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Recursive folder creation

2017-08-07 Thread Brian Milby via use-livecode
  
  

 Check out _revSBEnsureFolder in revSBLibrary for example code that does this.
  

  
  

  
  
>   
> On Aug 7, 2017 at 12:57 PM,   (mailto:use-livecode@lists.runrev.com)>  wrote:
>   
>   
>   
>  Attempts to create a subfolder below a folder that does not exists fail. 
> Where folder "nature" exists but folder "2017" does not, attempt to create 
> folder "birds" below 2017 fail. put specialFolderPath["Documents"] into tDF # 
> "/media/audio/nature" #these folders exist # /2017/birds" # does not, yet. 
> put tDF  &  "/media/audio/nature/2017/birds" into tFolder create folder 
> tFolder put the result "can't create that directory" OK so… if I remove the 
> "/2017" from my test path string and run it… we get the folder created as 
> expected, where the new folder is a subfolder of an already existing folder. 
> Ok so this all makes perfect sense, but before I go looping thru the path to 
> check for existence of each folder in the hierarchy and creating it if I does 
> not exist. I was wondering 1) am I missing something or is this just expected 
> behavior and 2) Does it make sense to ask for an enhancement request for the 
> engine to recursively create folders for a path where itemdel "/" and items 
> -1,-2,-3 (sub folders) do not exist? on unix cp --parents 'a/b/c' 
> 'audio/nature' # will do this job… and you get audio/nature/a/b/c on disk so 
> I suppose one could resort to shell but this is not available on mobile. 
> Hence the engine enhancement request. meanwhile back to writing a repeat loop 
> to check on  sub folder and create on the fly. From all I'm seeing the CPUs 
> of all phones of all grades hardly have an issue, bencemark wise with this 
> kind of processing… all the "trouble" is at the rendering layer. From beta 
> test reports where some rather snakey code is executed equally fast on all 
> phones, but not anything having to do with pixels…e.g. fetch, process and 
> assemble data to push to 100 sub-groups of a big scrolling group… wink of an 
> eye… actually build and layout the sub-groups in the UI and display: slow as 
> molasses on android. BR ___ 
> use-livecode mailing list use-livecode@lists.runrev.com Please visit this url 
> to subscribe, unsubscribe and manage your subscription preferences: 
> http://lists.runrev.com/mailman/listinfo/use-livecode  
>
>   
  
  
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Recursive folder creation

2017-08-07 Thread Tore Nilsen via use-livecode
+1

Tore

> 7. aug. 2017 kl. 19:57 skrev Sannyasin Brahmanathaswami via use-livecode 
> >:
> 
> 2) Does it make sense to ask for an enhancement request for the engine to 
> recursively create folders for a path where itemdel "/" and items -1,-2,-3 
> (sub folders) do not exist?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Recursive folder creation

2017-08-07 Thread Tore Nilsen via use-livecode
You can only create one folder at a time. You can not create nested folders in 
one go.

So you need to do like this

put tDF & "/media/audio/nature/2017/" into tFolder
create folder tFolder
put “birds” after tFolder
create folder tFolder

Regards 
Tore

> 
> 7. aug. 2017 kl. 19:57 skrev Sannyasin Brahmanathaswami via use-livecode 
> :
> 
> Attempts to create a subfolder below a folder that does not exists fail.
> 
> Where folder "nature" exists but folder "2017" does not, attempt to create 
> folder "birds" below 2017  fail.
> 
> put specialFolderPath["Documents"] into tDF
> 
> #  "/media/audio/nature" #these folders exist
> # /2017/birds"   # does not, yet.
> 
> put tDF & "/media/audio/nature/2017/birds" into tFolder
> 
> create folder tFolder
> put the result
> 
> "can't create that directory"
> 
> OK so… if I remove the "/2017" from my test path string and run it… we get 
> the folder created as expected, where the new folder is a subfolder of an 
> already existing folder.
> 
> Ok so this all makes perfect sense, but before I go looping thru the path to 
> check for existence of each folder in the hierarchy and creating it if I does 
> not exist. I was wondering
> 
> 1) am I missing something or is this just expected behavior
> 
> and
> 
> 2) Does it make sense to ask for an enhancement request for the engine to 
> recursively create folders for a path where itemdel "/" and items -1,-2,-3 
> (sub folders) do not exist?
> 
> on unix
> 
> cp --parents 'a/b/c'  'audio/nature'
> 
> # will do this job… and you get
> 
> audio/nature/a/b/c
> 
> on disk
> 
> so I suppose one could resort to shell but this is not available on mobile. 
> Hence the engine enhancement request.
> 
> meanwhile back to writing a repeat loop to check on sub folder and create on 
> the fly. From all I'm seeing the CPUs  of all phones of all grades hardly 
> have an issue, bencemark wise with this kind of processing… all the "trouble" 
> is at the rendering layer.  From beta test reports where some rather snakey 
> code is executed equally fast on all phones, but not anything having to do 
> with pixels…e.g. fetch, process and assemble data to push to 100 sub-groups 
> of a big scrolling group… wink of an eye… actually build and layout the 
> sub-groups in the UI and display: slow as molasses on android.
> 
> BR
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Recursive folder creation

2017-08-07 Thread Richmond Mathewson via use-livecode

Well, lazy types like me would just create the folder "2017" followed
by the folder "birds".

Richmond.

On 8/7/17 8:57 pm, Sannyasin Brahmanathaswami via use-livecode wrote:

Attempts to create a subfolder below a folder that does not exists fail.

Where folder "nature" exists but folder "2017" does not, attempt to create folder 
"birds" below 2017  fail.

put specialFolderPath["Documents"] into tDF

#  "/media/audio/nature" #these folders exist
# /2017/birds"   # does not, yet.

put tDF & "/media/audio/nature/2017/birds" into tFolder

create folder tFolder
put the result

"can't create that directory"

OK so… if I remove the "/2017" from my test path string and run it… we get the 
folder created as expected, where the new folder is a subfolder of an already existing 
folder.

Ok so this all makes perfect sense, but before I go looping thru the path to 
check for existence of each folder in the hierarchy and creating it if I does 
not exist. I was wondering

1) am I missing something or is this just expected behavior

and

2) Does it make sense to ask for an enhancement request for the engine to recursively 
create folders for a path where itemdel "/" and items -1,-2,-3 (sub folders) do 
not exist?

on unix

cp --parents 'a/b/c'  'audio/nature'

# will do this job… and you get

audio/nature/a/b/c

on disk

so I suppose one could resort to shell but this is not available on mobile. 
Hence the engine enhancement request.

meanwhile back to writing a repeat loop to check on sub folder and create on the fly. 
From all I'm seeing the CPUs  of all phones of all grades hardly have an issue, bencemark 
wise with this kind of processing… all the "trouble" is at the rendering layer. 
 From beta test reports where some rather snakey code is executed equally fast on all 
phones, but not anything having to do with pixels…e.g. fetch, process and assemble data 
to push to 100 sub-groups of a big scrolling group… wink of an eye… actually build and 
layout the sub-groups in the UI and display: slow as molasses on android.

BR



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Recursive folder creation

2017-08-07 Thread Sannyasin Brahmanathaswami via use-livecode
Attempts to create a subfolder below a folder that does not exists fail.

Where folder "nature" exists but folder "2017" does not, attempt to create 
folder "birds" below 2017  fail.

put specialFolderPath["Documents"] into tDF

#  "/media/audio/nature" #these folders exist
# /2017/birds"   # does not, yet.

put tDF & "/media/audio/nature/2017/birds" into tFolder

create folder tFolder
put the result

"can't create that directory"

OK so… if I remove the "/2017" from my test path string and run it… we get the 
folder created as expected, where the new folder is a subfolder of an already 
existing folder.

Ok so this all makes perfect sense, but before I go looping thru the path to 
check for existence of each folder in the hierarchy and creating it if I does 
not exist. I was wondering

1) am I missing something or is this just expected behavior

and

2) Does it make sense to ask for an enhancement request for the engine to 
recursively create folders for a path where itemdel "/" and items -1,-2,-3 (sub 
folders) do not exist?

on unix

cp --parents 'a/b/c'  'audio/nature'

# will do this job… and you get

audio/nature/a/b/c

on disk

so I suppose one could resort to shell but this is not available on mobile. 
Hence the engine enhancement request.

meanwhile back to writing a repeat loop to check on sub folder and create on 
the fly. From all I'm seeing the CPUs  of all phones of all grades hardly have 
an issue, bencemark wise with this kind of processing… all the "trouble" is at 
the rendering layer.  From beta test reports where some rather snakey code is 
executed equally fast on all phones, but not anything having to do with 
pixels…e.g. fetch, process and assemble data to push to 100 sub-groups of a big 
scrolling group… wink of an eye… actually build and layout the sub-groups in 
the UI and display: slow as molasses on android.

BR



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Sorting out the sheep from the goats

2017-08-07 Thread Richmond Mathewson via use-livecode

Thanks Tore and Mike.

Richmond.

On 8/7/17 8:52 pm, Mike Bonner via use-livecode wrote:

typo, first line should be
repeat for each char tChar in tVar -- where tvar has your string

On Mon, Aug 7, 2017 at 11:52 AM, Mike Bonner  wrote:


Repeat for each char tchar intVar
if tChar is among the items of "a,e,i,o,u" then
 -- its a vowel
else
-- its not a vowel.
end if

end repeat

On Mon, Aug 7, 2017 at 11:42 AM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:


Yes, here's "Mr Sanskrit" asking what is probably a very goofy question
indeed:

I have a series of long strings of characters such as:

LarrygubAndCheesemakemyfeetstink

and I would like a happy little routine that could trot along each string
and, for each character (and this is ONLY confined
to the Latin alphabet, at the moment) tell me (or, more importantly,
other scripts) whether it is a VOWEL or a CONSONANT.

Of course, having learnt from Mark Waddingham about the effective nature
of G & T s, I may end up answering my own e-mail . . .

Thanks Mark, I knew you had more to tell me than "just" computer
programming :-)

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting out the sheep from the goats

2017-08-07 Thread Mike Bonner via use-livecode
typo, first line should be
repeat for each char tChar in tVar -- where tvar has your string

On Mon, Aug 7, 2017 at 11:52 AM, Mike Bonner  wrote:

> Repeat for each char tchar intVar
> if tChar is among the items of "a,e,i,o,u" then
> -- its a vowel
> else
>-- its not a vowel.
> end if
>
> end repeat
>
> On Mon, Aug 7, 2017 at 11:42 AM, Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Yes, here's "Mr Sanskrit" asking what is probably a very goofy question
>> indeed:
>>
>> I have a series of long strings of characters such as:
>>
>> LarrygubAndCheesemakemyfeetstink
>>
>> and I would like a happy little routine that could trot along each string
>> and, for each character (and this is ONLY confined
>> to the Latin alphabet, at the moment) tell me (or, more importantly,
>> other scripts) whether it is a VOWEL or a CONSONANT.
>>
>> Of course, having learnt from Mark Waddingham about the effective nature
>> of G & T s, I may end up answering my own e-mail . . .
>>
>> Thanks Mark, I knew you had more to tell me than "just" computer
>> programming :-)
>>
>> Richmond.
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting out the sheep from the goats

2017-08-07 Thread Mike Bonner via use-livecode
Repeat for each char tchar intVar
if tChar is among the items of "a,e,i,o,u" then
-- its a vowel
else
   -- its not a vowel.
end if

end repeat

On Mon, Aug 7, 2017 at 11:42 AM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Yes, here's "Mr Sanskrit" asking what is probably a very goofy question
> indeed:
>
> I have a series of long strings of characters such as:
>
> LarrygubAndCheesemakemyfeetstink
>
> and I would like a happy little routine that could trot along each string
> and, for each character (and this is ONLY confined
> to the Latin alphabet, at the moment) tell me (or, more importantly, other
> scripts) whether it is a VOWEL or a CONSONANT.
>
> Of course, having learnt from Mark Waddingham about the effective nature
> of G & T s, I may end up answering my own e-mail . . .
>
> Thanks Mark, I knew you had more to tell me than "just" computer
> programming :-)
>
> Richmond.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting out the sheep from the goats

2017-08-07 Thread Tore Nilsen via use-livecode
I do not think that vowels are automatically detected, so you need to put the 
chars representing vowel sounds into a variabel tVowels . Run a repeat for each 
char tChar of the string and check if tChar is in tVowels, like this (using 
Norwegian vowels as an example)

put “aeioyæøå” into tVowels

repeat for each char tChar in tString
   if tChar is in tVowels then
  add 1 to tNumberOfVowels
  end if
  answer tNumberOfVowels
end repeat

Regards
Tore


> 7. aug. 2017 kl. 19:42 skrev Richmond Mathewson via use-livecode 
> :
> 
> Yes, here's "Mr Sanskrit" asking what is probably a very goofy question 
> indeed:
> 
> I have a series of long strings of characters such as:
> 
> LarrygubAndCheesemakemyfeetstink
> 
> and I would like a happy little routine that could trot along each string 
> and, for each character (and this is ONLY confined
> to the Latin alphabet, at the moment) tell me (or, more importantly, other 
> scripts) whether it is a VOWEL or a CONSONANT.
> 
> Of course, having learnt from Mark Waddingham about the effective nature of G 
> & T s, I may end up answering my own e-mail . . .
> 
> Thanks Mark, I knew you had more to tell me than "just" computer programming 
> :-)
> 
> Richmond.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Maximum size of SQLQuery with revDataFromQuery ?

2017-08-07 Thread Tom Glod via use-livecode
i can't say for surebut wouldn't the limit be the "size" of a variable
in lc?  ...and i think you can cram as much into your variable as you want
as long as you have the available ramor you don't hit some OS
limitlike the one i love so much in windows.

i've done some pretty large select all queries. and i've never had a
problem.

On Sun, Aug 6, 2017 at 2:59 PM, jbv via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hello
> Is there a size limit for the SQLQuery parameter when using
> revDataFromQuery ?
> I might end up with mySQL queries of at least 75 Kb...
> I know the best way to know is to try, but any experience would be
> apreciated...
>
> FYI some of there queries have been tested in PHPmyAdmin and run in 0.0054
> sec;
> my concern was rather the buffer size between LC engine and mySQL...
>
> Thanks in advance.
> jbv
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How do you detect the necessary inclusions?

2017-08-07 Thread Warren Samples via use-livecode

On 08/07/2017 11:50 AM, Mike Kerner via use-livecode wrote:

So in 8.1.6, if I have search selected, and then I do a build, and then I
select manual, the auto-found ones are no longer selected?



It doesn't seem to work that way, in my experience, if I understand what 
you're implying. They are selected for inclusion but the boxes are not 
selected in the dialog. What happens is that you have no visual clue 
because the two boxes mentioned are selected while the others are not. I 
complained about this a few days ago and didn't elicit a response. I 
find this ambiguous and unhelpful and also logically wrong. I could be 
mistaken to a certain degree, because I was switching back to 
auto-search. But, you'll notice if you do this that your manual 
selections are saved and included when they weren't before. Baffling 
behavior.


Warren

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Sorting out the sheep from the goats

2017-08-07 Thread Richmond Mathewson via use-livecode
Yes, here's "Mr Sanskrit" asking what is probably a very goofy question 
indeed:


I have a series of long strings of characters such as:

LarrygubAndCheesemakemyfeetstink

and I would like a happy little routine that could trot along each 
string and, for each character (and this is ONLY confined
to the Latin alphabet, at the moment) tell me (or, more importantly, 
other scripts) whether it is a VOWEL or a CONSONANT.


Of course, having learnt from Mark Waddingham about the effective nature 
of G & T s, I may end up answering my own e-mail . . .


Thanks Mark, I knew you had more to tell me than "just" computer 
programming :-)


Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Script Editor Enhancment Variable name columns

2017-08-07 Thread Sannyasin Brahmanathaswami via use-livecode
In de-bug mode, SW variable tab/window/pane at the bottom… I am "forever" 
having to resize the left column, which typically has relatively short variable 
name strings


it
pURL
tDF
tFolder
tPathtem

etc. but the algorithm behind the column sizing appear to spit the window.

it  
| someValue
pURL  | 
https://www.himalayanacademy.com/media/audio/inspired-talks/…. etc.

So the useful  info  on the right column, the variable values are  off screen

Would it be good if the left column measure the max sting length of the vars 
and then "shrank" accordingly



it  | someValue
pURL  | 
https://www.himalayanacademy.com/media/audio/inspired-talks/…. etc.

I would prefer that long vars be truncated…. if we step into a handler that has 
var strings wider than the column. Typically we know what our vars are… what we 
are watching are the values.

Thoughts?


BR
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How do you detect the necessary inclusions?

2017-08-07 Thread Mike Kerner via use-livecode
So in 8.1.6, if I have search selected, and then I do a build, and then I
select manual, the auto-found ones are no longer selected?

On Mon, Aug 7, 2017 at 7:53 AM, Tiemo Hollmann TB via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thank you for clearifying!
> Tiemo
>
> -Ursprüngliche Nachricht-
> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
> Auftrag
> von panagiotis merakos via use-livecode
> Gesendet: Montag, 7. August 2017 12:51
> An: How to use LiveCode 
> Cc: panagiotis merakos 
> Betreff: Re: How do you detect the necessary inclusions?
>
> Hi Tiemo,
>
> - When you "Search for Inclusions", the standalone builder looks for
> keywords in the scripts of your objects, to detect a specific inclusion.
> For example if it finds  it will
> automatically add SQLite in the Inclusions,
>
> - I think in LC 8 the first time you switch to "Select Inclusions", only
> the
> "Ask Dialog" and "Answer Dialog" inclusions are chosen.
>
> I assume that the inclusion with the "globe icon" is for the
> browser widget
> Yes, this is correct.
>
>
>  What are the inclusions "browser" (jigsaw icon) and "browser
> (CEF)" for?
> Those are for the old revBrowser external. So if you use the
> "revBrowserOpen" command, you have to include "browser", and if you use the
> revBrowserOpenCEF" command you have to include  "browser(CEF)"
>
> Best regards,
> Panos
> --
>
> On Thu, Aug 3, 2017 at 11:05 AM, Tiemo Hollmann TB via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hello,
> >
> >
> >
> > I think in former times, when you once have choosen "Search for
> > required inclusions", LiveCode once has checked all necessary
> > inclusion, so that you got an idea for the needed ones, when you
> > afterwords wanted to selected them manually (e.g. the automatic didn't
> > selected all needed inclusions).
> >
> > Today in 8.1.5 LC doesn't mark anymore any needed inclusions, after
> > having let it search for the required ones. At least the browser
> > widget was not checked, though I have an browser widget in my stack.
> > How do you handle this to get the right inclusions?
> >
> > Btw. There are three browser inclusions and I don't know, which one is
> > for what purpose. I assume that the inclusion with the "globe icon" is
> > for the browser widget, because it has the same icon, but there are 3
> > browser inclusions. What are the inclusions "browser" (jigsaw icon)
> > and "browser (CEF)" for?
> >
> >
> >
> > Tiemo
> >
> >
> >
> >
> >
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

[OT] pretty folders

2017-08-07 Thread Colin Holgate via use-livecode
A marketing email just came in, about a custom folder icon maker. I don’t know 
what the normal price is, but $3 seems like a good deal, so I bought it.

https://itunes.apple.com/us/app/folder-designer/id964860276 




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Taking quotes on building LC external for RethinkDB

2017-08-07 Thread Tom Glod via use-livecode
to answer your question, the database cluster will be accepting connections
and queries from clients directly.

On Mon, Aug 7, 2017 at 11:51 AM, Tom Glod  wrote:

> Hi Richard .  like Alex said, there is no Rest api for RethinkDB.  The
> folks at RethinkDB didn't want to expose the whole query language using a
> rest api, (if i recall correctly they said it is too powerful to do
> so)...so the driver only accepts queries via driver port and streams
> resulting json and updates back to client.
>
> My desktop client will connect to a local database which (will or can be
> part) of a distributed cluster.
>
>
>
>
>
>
>
> On Mon, Aug 7, 2017 at 10:53 AM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> I was thinking the same thing. This isn't a database function per se,
>> it's more like a sockets function.
>>
>> Bob S
>>
>>
>> > On Aug 5, 2017, at 16:42 , Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > If you go to this page . the specs say that it all happens through
>> an
>> > tcp/ip  connection where you make a connection, serialize the query and
>> > send it   the db driver port receives queries, and streams data from
>> > the db via the TCP/IP back to "subscribed" client.
>> >
>> > So it doesn't really need to have anything to do with the current
>> > revdatabase functionswhich the posts seem to be talking about.  I'm
>> not
>> > asking for a rewrite of db layer.
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Taking quotes on building LC external for RethinkDB

2017-08-07 Thread Tom Glod via use-livecode
Hi Richard .  like Alex said, there is no Rest api for RethinkDB.  The
folks at RethinkDB didn't want to expose the whole query language using a
rest api, (if i recall correctly they said it is too powerful to do
so)...so the driver only accepts queries via driver port and streams
resulting json and updates back to client.

My desktop client will connect to a local database which (will or can be
part) of a distributed cluster.







On Mon, Aug 7, 2017 at 10:53 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I was thinking the same thing. This isn't a database function per se, it's
> more like a sockets function.
>
> Bob S
>
>
> > On Aug 5, 2017, at 16:42 , Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > If you go to this page . the specs say that it all happens through an
> > tcp/ip  connection where you make a connection, serialize the query and
> > send it   the db driver port receives queries, and streams data from
> > the db via the TCP/IP back to "subscribed" client.
> >
> > So it doesn't really need to have anything to do with the current
> > revdatabase functionswhich the posts seem to be talking about.  I'm
> not
> > asking for a rewrite of db layer.
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How do I specify the papersize name for printing?

2017-08-07 Thread Bob Sneidar via use-livecode
That is an interesting question. Working with copiers, I know that the paper 
"name" (= size) have to match a built-in "name" in order for the printer to 
auto-print, otherwise the print job gets redirected to the bypass (manual feed) 
tray and held until a user hits the Go button. 

Sone drivers are smart enough to match size with name and send the correct name 
in the metadata. Some other things that have to match are thickness, coating 
(glossy, matte, plain etc.) and paper color, all depending on what the device 
supports. 

Bob S


> On Aug 7, 2017, at 05:27 , Tiemo Hollmann TB via use-livecode 
>  wrote:
> 
> One part of my question is answered. If I want to print on the standard
> paper, I may not specify the printpapersize, then the printer won't ask for
> a user specific paper.
> But if I am not sure, which paper is standard on the users printer, I have
> to define the size in case I need specific dimensions, but would like to get
> the standard paper, if it is "A4" and available.
> And what about other paper names?
> Tiemo


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Taking quotes on building LC external for RethinkDB

2017-08-07 Thread Bob Sneidar via use-livecode
I was thinking the same thing. This isn't a database function per se, it's more 
like a sockets function. 

Bob S


> On Aug 5, 2017, at 16:42 , Tom Glod via use-livecode 
>  wrote:
> 
> If you go to this page . the specs say that it all happens through an
> tcp/ip  connection where you make a connection, serialize the query and
> send it   the db driver port receives queries, and streams data from
> the db via the TCP/IP back to "subscribed" client.
> 
> So it doesn't really need to have anything to do with the current
> revdatabase functionswhich the posts seem to be talking about.  I'm not
> asking for a rewrite of db layer.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Find & Replace

2017-08-07 Thread Richmond Mathewson via use-livecode

Aha: even more ludicrous:

2 competing Find & Replace stacks.

For F's sake get rid of the wonky one and make sure that ALL menus get to
the one that works!

R.

On 8/7/17 4:38 pm, Richmond Mathewson wrote:

This is ludicrous!

A tiny, wee window that does not even have room in the menu buttons 
for the text

that, having searched does NOT replace.

BUG 20244

Because this does not function this costs me about 60 minutes 
everytime I convert a DEMO

into a fully-functional version,

Richmond.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Find & Replace

2017-08-07 Thread Richmond Mathewson via use-livecode

This is ludicrous!

A tiny, wee window that does not even have room in the menu buttons for 
the text

that, having searched does NOT replace.

BUG 20244

Because this does not function this costs me about 60 minutes everytime 
I convert a DEMO

into a fully-functional version,

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: How do I specify the papersize name for printing?

2017-08-07 Thread Tiemo Hollmann TB via use-livecode
One part of my question is answered. If I want to print on the standard
paper, I may not specify the printpapersize, then the printer won't ask for
a user specific paper.
But if I am not sure, which paper is standard on the users printer, I have
to define the size in case I need specific dimensions, but would like to get
the standard paper, if it is "A4" and available.
And what about other paper names?
Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Tiemo Hollmann TB via use-livecode
Gesendet: Montag, 7. August 2017 12:38
An: LiveCode User Liste senden 
Cc: Tiemo Hollmann TB 
Betreff: How do I specify the papersize name for printing?

Hello,

how do I specify the paper name / the standard drawer of the printer?

Right now I set the printpapersize to "595,842", which is "A4", but the
printer stops with asking for a "user defined" paper. How can I tell the
printer, that my print job is not a user defined paper, but just the
standard, so that the printer doesn't stops asking the user?

I didn't found the right option in the docs.

Thanks

Tiemo

 

 

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: How do you detect the necessary inclusions?

2017-08-07 Thread Tiemo Hollmann TB via use-livecode
Thank you for clearifying!
Tiemo

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von panagiotis merakos via use-livecode
Gesendet: Montag, 7. August 2017 12:51
An: How to use LiveCode 
Cc: panagiotis merakos 
Betreff: Re: How do you detect the necessary inclusions?

Hi Tiemo,

- When you "Search for Inclusions", the standalone builder looks for
keywords in the scripts of your objects, to detect a specific inclusion.
For example if it finds  it will
automatically add SQLite in the Inclusions,

- I think in LC 8 the first time you switch to "Select Inclusions", only the
"Ask Dialog" and "Answer Dialog" inclusions are chosen.

I assume that the inclusion with the "globe icon" is for the
browser widget
Yes, this is correct.


 What are the inclusions "browser" (jigsaw icon) and "browser
(CEF)" for?
Those are for the old revBrowser external. So if you use the
"revBrowserOpen" command, you have to include "browser", and if you use the
revBrowserOpenCEF" command you have to include  "browser(CEF)"

Best regards,
Panos
--

On Thu, Aug 3, 2017 at 11:05 AM, Tiemo Hollmann TB via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hello,
>
>
>
> I think in former times, when you once have choosen "Search for 
> required inclusions", LiveCode once has checked all necessary 
> inclusion, so that you got an idea for the needed ones, when you 
> afterwords wanted to selected them manually (e.g. the automatic didn't 
> selected all needed inclusions).
>
> Today in 8.1.5 LC doesn't mark anymore any needed inclusions, after 
> having let it search for the required ones. At least the browser 
> widget was not checked, though I have an browser widget in my stack. 
> How do you handle this to get the right inclusions?
>
> Btw. There are three browser inclusions and I don't know, which one is 
> for what purpose. I assume that the inclusion with the "globe icon" is 
> for the browser widget, because it has the same icon, but there are 3 
> browser inclusions. What are the inclusions "browser" (jigsaw icon) 
> and "browser (CEF)" for?
>
>
>
> Tiemo
>
>
>
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[ANN] This Week in LiveCode 94

2017-08-07 Thread panagiotis merakos 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 #94 here: https://goo.gl/kEhwYs

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.

-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How do you detect the necessary inclusions?

2017-08-07 Thread panagiotis merakos via use-livecode
Hi Tiemo,

- When you "Search for Inclusions", the standalone builder looks for
keywords in the scripts of your objects, to detect a specific inclusion.
For example if it finds  it will
automatically add SQLite in the Inclusions,

- I think in LC 8 the first time you switch to "Select Inclusions", only
the "Ask Dialog" and "Answer Dialog" inclusions are chosen.

I assume that the inclusion with the "globe icon" is for the
browser widget
Yes, this is correct.


 What are the inclusions "browser" (jigsaw icon) and "browser
(CEF)" for?
Those are for the old revBrowser external. So if you use the
"revBrowserOpen" command, you have to include "browser", and if you use the
revBrowserOpenCEF" command you have to include  "browser(CEF)"

Best regards,
Panos
--

On Thu, Aug 3, 2017 at 11:05 AM, Tiemo Hollmann TB via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hello,
>
>
>
> I think in former times, when you once have choosen "Search for required
> inclusions", LiveCode once has checked all necessary inclusion, so that you
> got an idea for the needed ones, when you afterwords wanted to selected
> them
> manually (e.g. the automatic didn't selected all needed inclusions).
>
> Today in 8.1.5 LC doesn't mark anymore any needed inclusions, after having
> let it search for the required ones. At least the browser widget was not
> checked, though I have an browser widget in my stack. How do you handle
> this
> to get the right inclusions?
>
> Btw. There are three browser inclusions and I don't know, which one is for
> what purpose. I assume that the inclusion with the "globe icon" is for the
> browser widget, because it has the same icon, but there are 3 browser
> inclusions. What are the inclusions "browser" (jigsaw icon) and "browser
> (CEF)" for?
>
>
>
> Tiemo
>
>
>
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


How do I specify the papersize name for printing?

2017-08-07 Thread Tiemo Hollmann TB via use-livecode
Hello,

how do I specify the paper name / the standard drawer of the printer?

Right now I set the printpapersize to "595,842", which is "A4", but the
printer stops with asking for a "user defined" paper. How can I tell the
printer, that my print job is not a user defined paper, but just the
standard, so that the printer doesn't stops asking the user?

I didn't found the right option in the docs.

Thanks

Tiemo

 

 

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode