OT Re: Referencing Livecode

2022-06-21 Thread David V Glasgow via use-livecode

That is really helpful Alan.  A pair of fine papers!  

I visited Australia & NZ a few years back and started using iNaturalist and 
then the Seek  app, so I’m now an 
enthusiastic CS observation reporter.

Cheers,

David G

> On 21 Jun 2022, at 12:46 am, Alan Stenhouse  wrote:
> 
> Hi David
> 
> In a couple of my publications, I described developing apps with Livecode and 
> referred to www.livecode.org and www.livecode.com, but didn't include 
> anything in the references as there was nothing (AFAICS at that time) that 
> would satisfy scientific publication standards.
> 
> See: https://www.sciencedirect.com/science/article/pii/S2351989420309173
> and
> https://www.sciencedirect.com/science/article/pii/S2351989421001761
> 
> HTH
> 
> cheers
> 
> Alan
> 
> 
>> On 18 Jun 2022, at 1:30 am, David V Glasgow wrote:
>> 
>>> On 16 Jun 2022, at 9:08 pm, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> Is there a reason not to use the LC site URL, either alone or in addition 
>>> to the Wikipedia one?
>> 
>> The https://livecode.com landing page is rather sparse, and focussed on 
>> drawing customers in rather than conveying anything about text processing, 
>> or obvious links to information on text processing.  No criticism of that at 
>> all.  It?s a commercial site.  
>> 
>> Wiki page has the disadvantage of a banner warning about link rot, but the 
>> advantage of lots of information presented in a more academic and neutral 
>> style.
>> 
>> 
>>> 
>>> Re: the errors, they look like examples of functions that would return 
>>> "false" but I haven't seen them in context.
>>> --
>> 
>> They do, don?t they.  From memory, that wasn?t the context though.  
>> 
>> Cheers
>> 
>> David G
> 

___
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: Referencing Livecode

2022-06-18 Thread David V Glasgow via use-livecode



> On 17 Jun 2022, at 6:55 pm, Martin Koob via use-livecode 
>  wrote:
> 
> 
> Here is a link to that conference paper where you can download it.
> https://www.researchgate.net/publication/269337987_Using_Cognitive_Load_Theory_to_select_an_Environment_for_Teaching_Mobile_Apps_Development
>  
> 
> 
> Perhaps this was published in a journal in 2016 or publication in the 2015 
> conference proceedings is what they are referring to.

That’s an interesting read!  I might completely drop the footnote and just cite 
this.  If I can find out exactly what it is….


Cheers

David G
___
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: Referencing Livecode

2022-06-17 Thread David V Glasgow via use-livecode
Of course that is completely true for academic content!  This ain’t that.

In the paper I simply state that all text searching, manipulation and 
aggregation was achieved using Livecode scripts, with a footnote to a brief 
description and link to … 

Go on.  Ask your wife.  That is how it’s done. (unless you used R, or Python, 
which are celebrities needing no explanation or external link)



Best Wishes,

David Glasgow


> On 17 Jun 2022, at 9:57 am, Richmond Mathewson via use-livecode 
>  wrote:
> 
> From what I know (my wife is a senior academic at a university) references
> to Wikipedia pages are academic suicide, fail, go straight to jail, do not
> pass GO, do not collect 200 smackers, and you get the picture.
> 
> On Fri, 17 Jun 2022, 11:47 David V Glasgow via use-livecode, <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>>> On 16 Jun 2022, at 9:08 pm, J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Is there a reason not to use the LC site URL, either alone or in
>> addition to the Wikipedia one?
>> 
>> The https://livecode.com landing page is rather sparse, and focussed on
>> drawing customers in rather than conveying anything about text processing,
>> or obvious links to information on text processing.  No criticism of that
>> at all.  It’s a commercial site.
>> 
>> Wiki page has the disadvantage of a banner warning about link rot, but the
>> advantage of lots of information presented in a more academic and neutral
>> style.
>> 
>> 
>>> 
>>> Re: the errors, they look like examples of functions that would return
>> "false" but I haven't seen them in context.
>>> --
>> 
>> They do, don’t they.  From memory, that wasn’t the context though.
>> 
>> Cheers
>> 
>> David G
>> ___
>> 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: Referencing Livecode

2022-06-17 Thread David V Glasgow via use-livecode

> On 16 Jun 2022, at 9:08 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> Is there a reason not to use the LC site URL, either alone or in addition to 
> the Wikipedia one?

The https://livecode.com landing page is rather sparse, and focussed on drawing 
customers in rather than conveying anything about text processing, or obvious 
links to information on text processing.  No criticism of that at all.  It’s a 
commercial site.  

Wiki page has the disadvantage of a banner warning about link rot, but the 
advantage of lots of information presented in a more academic and neutral style.


> 
> Re: the errors, they look like examples of functions that would return 
> "false" but I haven't seen them in context.
> --

They do, don’t they.  From memory, that wasn’t the context though.  

Cheers

David G
___
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


Referencing Livecode

2022-06-16 Thread David V Glasgow via use-livecode
Hi Folks,

I am writing a paper for publication (I hope) describing analysis of internet 
predator messages achieved using Livecode.

I want to reference LC but I am not sure if there is a standard form or URL for 
doing this.  If not I am inclined to use https://en.wikipedia.org/wiki/LiveCode 

Any alternative suggestions?

David Glasgow

PS Also, while trying to find a suitable URL I came across the ‘Cheat Sheets’ 
page and PDFs, and stumbled on a couple of errors in the just LC one… not sure 
who to alert.

// String

"foo" & "bar" is "foobar" "foo" && "bar" is "foo bar" "str" begins with "st"
"str" ends with "g"

// Chunks

char 5 of "str" is "n"
___
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: Generating Random numbers to conform a distribution

2022-06-08 Thread David V Glasgow via use-livecode

> On 8 Jun 2022, at 7:07 am, Mark Waddingham via use-livecode 
>  wrote:
> 
> I'm not a stats guru but...

Pants SO on fire!

That is fascinating.  I really don’t think this has been made explicit anywhere 
else, including Stackoverflow - despite the fact that the question has been 
posed several times.

 I will enjoy working through it, although it will take a while

Thanks,

David G
___
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: Generating Random numbers to conform a distribution

2022-06-08 Thread David V Glasgow via use-livecode

> On 8 Jun 2022, at 6:50 am, Richard Gaskin via use-livecode 
>  wrote:
> 
> My only contribution here is that I found the paper you linked to interesting 
> enough to look up the HyperStat author.  Apparently he's grown a rather 
> intriguing collection of fun things of that sort - I wonder if the answer to 
> your question might be found among them?

In the 1990s as a happy HyperStat user, I exchanged occasional mails with him. 
When I later discovered Metacard, I mailed him in some excitement hoping he 
would port HyperStat to it, but he was already committed to web.

I will certainly have a further nose around…

Cheers

David G
___
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


Generating Random numbers to conform a distribution

2022-06-07 Thread David V Glasgow via use-livecode

Quite a lot of stats and maths packages offer a feature whereby the N, the Mean 
and the SD are variables specified by the user, and N random numbers are then 
generated with the required mean and SD.  I remember the venerable and 
excellent Hypercard  HyperStat 
 (1993) by David 
M Lane doing exactly that.

In general terms, how do they do this?  One option would be to ‘pair’ each 
random number with its reciprocal around the mean, but that would generate 
perfectly symmetrical distributions, not to mention is only half random.

Alternatively you could ‘aim’ at the sum and do a little series of kludges at 
the end of the RND generation.  Ugly and cheaty, and neither addresses the SD 
challenge

Or is there an elegant formula?  I have Googled about and can’t see one, but 
maybe I don’t know the magic words.  And if someone wanted to script this in LC 
what would be the best approach? (just general guidance here, wouldn’t want 
anyone to invest their valuable time in what is at present just vague musings)

Any hints from the stats gurus?

Cheers

David Glasgow


___
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 Re: [[ ANN ]] Release 10.0.0 DP-4

2022-06-02 Thread David V Glasgow via use-livecode



> On 2 Jun 2022, at 6:26 am, Richmond Mathewson via use-livecode 
>  wrote:
> 
>  2 possible choices.


That’s 4 alternatives.

Cheers

David G
Pedant extraordinaire
___
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: Single Window LC IDE?

2022-04-27 Thread David V Glasgow via use-livecode


> On 27 Apr 2022, at 2:17 pm, Mike Kerner via use-livecode 
>  wrote:
> 
>  they not only discussed it, but they demo'd it


… and referred to it as a “new ‘dock windows’ capability”.Which sounds like 
it will still be each to his/her own.

Cheers

David G
___
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: Encountering slow navigation to a card containing very large fields? Do this one simple trick.

2022-04-19 Thread David V Glasgow via use-livecode
Maybe context would help.  I receive digital evidence from police Hi Tech Crime 
Units, consisting of lists/tables of messages, search histories, web histories, 
files downloaded, etc etc.  These relate to online activities of alleged 
internet offenders. Some consist of data relating to a few months activity, 
others may be 10 years or more - so vary hugely in the sheer quantity of data. 
This is what is imported into the first field.

 I have established a number of sets of keywords/tags  which can be cycled 
through using ‘filter with’ to find list items which might indicate particular 
forms of malign motivation of the alleged offender. So, a user clicks button 
“Filter with X keywords” looking for, for example,  coercive/aggressive tags.

All ‘filtered with' lines containing selected tags appear in the second 
scrolling field. Sometimes nothing much will be found, but sometimes this field 
may become 50 to 74% the size of the field containing the original  imported 
data.  This (second) field can be scrolled and eyeballed until something of 
forensic significance is spotted.   Clicking on that line scrolls the first 
field to display and highlight the line in its original context (i.e showing 
preceding and following lines).  

With respect to Bob’s observation about the work to display a background group 
being 'already done’ if the navigated-to card contains the background group 
containing the field, that is pretty much what I assumed is happening.  The 
intriguing question is why the work necessarily  is ‘undone’  when navigating 
to any card not containing the group.  Does it consume such significant 
resources the default is to clear it?  It would be nice to be able choose to 
preserve or cache the work if that has such a significant impact on performance 
as in this case. 

Best Wishes,

David Glasgow


> On 18 Apr 2022, at 7:02 pm, Richard Gaskin via use-livecode 
>  wrote:
> 
> David Glasgow wrote:
> 
> > The user just initiates the automatic filtering for various keywords.
> 
> What does that mean? What actions do they perform requiring them to review 
> the full list?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> 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: Encountering slow navigation to a card containing very large fields? Do this one simple trick.

2022-04-17 Thread David V Glasgow via use-livecode

> On 17 Apr 2022, at 12:30 am, Bob Sneidar via use-livecode 
>  wrote:
> 
> Yes, I think you have it when you say that displaying text in a field is 
> processor intensive. Fields are notoriously inefficient at storage. Do all 
> your processing in memory and then display your results in whatever object 
> you desire.

Yup, I do that.  processing takes time, but honestly it is amazingly fast.  
Dumping found lines into the results field takes a surprising amount of time, 
but even that doesn’t bother me too much.  The issue is purely navigating back 
to the card containing the 600lb fields from any card that doesn’t.

> Datagrids can provide an efficient intermediary display mechanism because the 
> data is already in a form that is easy to work with, namely arrays. An array 
> is merely a handle to a position in memory. A datagrid is a window on that 
> object. As you scroll through the datagrid, you are only manipulating the 
> data appearing in the window, and not the data itself. 
> 
> A field is different in that how the data appears in the interface must be 
> calculated in advance. Think of it like the old “How do you eat an Elephant” 
> allegory. The Datagrid eats the Elephant, “One Bite At a Time.” The field 
> tries to eat the Elephant all at once. 
> 
> Sent from my iPhone
> 
>> On Apr 16, 2022, at 01:40, David V Glasgow via use-livecode 
>>  wrote:
>> 
>> Thanks for this, Bob.  I have followed various discussions about datagrids, 
>> but didn’t appreciate the property your “window on the data” metaphor 
>> describes.  I have also noticed that processing text in a variable is 
>> amazingly fast but then the results being put into a field takes a lot of 
>> time.  I assume the linking of a text variable to a datagrid would also 
>> avoid that bottleneck?
>> 
>> That is very interesting and I will explore the functions you describe.  
>> Thanks very much.
>> 
>> Best Wishes,
>> 
>> David Glasgow
>> 
>> 
>>> On 15 Apr 2022, at 8:35 pm, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> Not sure why you are having this issue, but I will say that this is one of 
>>> the primary reasons Datagrids were created. Table fields with large amounts 
>>> of data were causing issues, and especially if the limits of lines or 
>>> characters were exceeded. 
>>> 
>>> With a Datagrid however, only the data that is visible is actually being 
>>> displayed. For example, you can have a datagrid with 10 visible rows and 
>>> containing 10,000 lines of text (or array keys if you prefer) but only 10 
>>> lines of data will actually be in fields in the datagrid. There is wizardry 
>>> in play when you scroll. It *appears* like there is data above and below 
>>> the visible data, but trust me there is not. You can think of a datagrid as 
>>> a moving window above the data. Anything not showing throught the window is 
>>> not being processed by your vision, if you take my clumsy analogy. 
>>> 
>>> Once the data is in the datagrid, there are a number of ways to work with 
>>> it. I like using the dgData of the datagrid which returns a numbered array, 
>>> because I have written functions like filterArray and arrayToSQLite, 
>>> cursorToArray, arrayToText, mergeArray etc. which allow me to work 
>>> efficiently with these numbered arrays. 
>>> 
>>> Of particular interest to you might be the arrayToSQLite, bcause once you 
>>> have data in an sqLite table, querying is a much more powerful (and 
>>> efficient) way of getting just the data you want, such as the information 
>>> displayed in your summary page. 
>>> 
>>> To use datagrids, you only need to know about a few properties, 
>>> particularly the dgData, the dgText, the dgHilitedLine / Index, the 
>>> dgDataOfLine / Index and handling the selectionChanged message. 
>>> 
>>> Bob S
>>> 
>>> 
>>>>> On Apr 15, 2022, at 10:27 , David Glasgow via use-livecode 
>>>>>  wrote:
>>>> 
>>>> Hi folks,
>>>> 
>>>> 
>>>> MacOS 10.13.6 and Livecode 9.6.0
>>>> 
>>>> It may be that this is well known to everyone but me.  But just in case...
>>>> 
>>>> I have a card (A) with two fields in separate groups.  Field 1 contains 
>>>> many many thousands of lines of text which are filtered for keywords and 
>>>> the results displayed in field 2 (which can also be many thousands of 
>>>> lines).  The user can navigate to a separate card (B) to vie

Re: Encountering slow navigation to a card containing very large fields? Do this one simple trick.

2022-04-17 Thread David V Glasgow via use-livecode
Hi Richard

> On 16 Apr 2022, at 8:20 pm, Richard Gaskin via use-livecode 
>  wrote:
> 
> How many is "many many thousands of lines"?  10k? 100k? More?

Typically 30,000 to 800,000.  One field wrapped (the imported ‘source’ text) 
and the other a, unwrapped list of found lines containing a keyword.
> 
> Is the data displayed in list fields, or must the line wraps be calculated?

The wrapped line field is locked and doesn’t change after import and is 
unaffected by the  keyword-containing-lines process.  I suppose a good question 
is are line wraps recalculated on navigation to the card.

> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web

___
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: Encountering slow navigation to a card containing very large fields? Do this one simple trick.

2022-04-17 Thread David V Glasgow via use-livecode
Hi Jim,

The text in fields doesn’t move or change after the initial analysis. the 
slowdown is just navigating back to to the card containing the fields from from 
one which doesn’t contain the fields.  

Cheers

David G

> On 16 Apr 2022, at 8:46 pm, Jim Lambert via use-livecode 
>  wrote:
> 
> 
>> but then the results being put into a field takes a lot of time. 
> 
> Does locking the screen before putting text into the field help speed things 
> up?
> ___
> 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: can I filter lines with a list of alternative OR strings?

2022-03-21 Thread David V Glasgow via use-livecode
Thanks, Dick!  I’ll play with that and see how I get on.  The filter is in a 
loop which mostly uses simple strings, so presumably I would need to separate 
any regex filters into a separate loop using 'with regex'.

I have also learned that this is called “alternation”.  Didn’t know that, so 
now I can investigate further! 

thanks again

David G

> On 6 Mar 2022, at 11:12 pm, Dick Kriesel via use-livecode 
>  wrote:
> 
> 
>> On Mar 3, 2022, at 2:30 AM, David V Glasgow via use-livecode 
>>  wrote:
>> 
>> I can filter text using a single term plus a numerical range s eg:
>> *re 1[0-5]*
>> matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15 
>> 
>> But is there a form where the alternatives are also text?  eg something like:
>> 
>> *big [“dog”, “cat”, “fish”]*
> 
> Hi, David.
> 
> regex supports alternation, so if you put "big dog|big fish" into tTarget 
> then you can
> 
> filter pText with regex tTarget
> 
> 
> Does that work for you?
> 
> — Dick
> ___
> 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


OT Re: What happens if an Indy license renews these days?

2022-03-20 Thread David V Glasgow via use-livecode
Matthias, please could you also start reminding me of all the things I misread 
and forget in my emails   ;-)

Best wishes,

David Glasgow

> On 19 Mar 2022, at 5:21 pm, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Andre,
> didn‘t you get an email from LC some time ago.
> 
> If i recall it correctly then the Indy license was transitioned to a Pro 
> license but you keep your „old“ subscription price.
> 
> Matthias
> 
> Von meinem iPad gesendet
> 
>> Am 19.03.2022 um 17:26 schrieb Andre Garzia via use-livecode 
>> :
>> 
>> Hi Folks,
>> 
>> My Indy license is up for renewal on Monday and given the new licensing
>> scheme, I have no idea what will happen if I let it renew. Anyone has a
>> clue?
>> 
>> -- 
>> https://www.andregarzia.com 
>> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
>> ___
>> 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: Text overwriting itself in non wrapping field

2022-03-18 Thread David V Glasgow via use-livecode
Fixed line height didn’t fix the problem but thanks for the suggestion.

However, looking more closely there are 3 visible characters where cr should 
be.   They are â9u except 9u is constant and the first character is almost 
always there, but varies wildly.  Often an underscore but also accented a, e or 
u.  Even more weirdly, if I search the field for ‘9u', several lines are found, 
but not any in the mutant line.  

And yet more weirdly again, when the line is displayed in a field with wrap 
true, the weird three characters appear at the beginning of ‘new lines’ except 
they are not actually new lines because they highlight as a single block.  An 
invisible form feed?  or something else between 9 and u  that a wrapping field 
decides is a wrap point but confuses the hell out of a non-wrapping field?

If I thought this was just a weird one off, I would shrug my shoulders and move 
on.

Shall I do that, and we will never speak of this again?

Best wishes,

David G

> On 17 Mar 2022, at 7:21 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 3/17/22 10:58 AM, David V Glasgow via use-livecode wrote:
>> Examining it, it looks like it ought to be a number of separate lines, and 
>> it also contains weird visible and also white space that is not a simple 
>> space.  I can’t see any recognisable pattern to suggest where cr should be.
> 
> I usually copy the mysterious character and in the message box: put 
> charToNum(the clipboarddata)
> 
> That gives me something to look up in an ascii or unicode table. Then you can 
> replace all those characters with space or whatever seems reasonable for the 
> data. That may give you a clue as to what the line should actually be.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> 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


Text overwriting itself in non wrapping field

2022-03-17 Thread David V Glasgow via use-livecode
Hi folks,

I have imported just under 10,000 lines of a web history into a non wrapping 
scrollable field.  As the subject above indicates, in one line characters 
appear rendered over the top of each other.  The is quite stable, so redrawing 
or scrolling doesn’t make it go away.

That line is pretty long, but not longer than field limits - 10693 chars

Examining it, it looks like it ought to be a number of separate lines, and it 
also contains weird visible and also white space that is not a simple space.  I 
can’t see any recognisable pattern to suggest where cr should be.

Any suggestions about what is going on and how I might fix it?

Cheers

David Glasgow
___
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


can I filter lines with a list of alternative OR strings?

2022-03-03 Thread David V Glasgow via use-livecode


Hi Folks,

I can filter text using a single term plus a numerical range s eg:
*re 1[0-5]*
matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15 

But is there a form where the alternatives are also text?  eg something like:

*big [“dog”, “cat”, “fish”]*

The above searches OK, but only for “big”.  There is no error, but the 
parenthetic list is ignored, I think.  A number of lines 'filtered with' 
contain the stem but none of the listed suffix strings.

I suppose there is also a supplementary question that if there is a list of 
alternative strings  option, is it more efficient than filtering for "big dog", 
big cat, etc in turn?  If the option exists I feel like it ought to be faster, 
but what do I know?

Cheers

David Glasgow
___
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: scripted Show tooltip not a thing?

2022-01-15 Thread David V Glasgow via use-livecode
I rather lazily didn’t post an update, but on reflection I had already decided 
to do exactly what you recommend, Richard.  

Your advice isn’t wasted because my thinking about why it is the best thing to 
do wasn’t that clear.  It is an important UI point you make about advice only 
being  useful as an antecedent of choice.  Also, since I have avoided flippy 
flappy tooltips in my rather control-crowded app, it makes zero sense to have 
one exception which users would have no knowledge of, or reason to find until 
they stumble upon it.  And then maybe wonder why the same doesn’t happen 
elsewhere.

Why is it so easy to design a bad UI, when it is such a pleasure to experience 
a good one?

Thanks,

David G

> On 14 Jan 2022, at 10:33 pm, Richard Gaskin via use-livecode 
>  wrote:
> 
> Tooltips can be a solution, but the mechanism has some limitations in this 
> context.
> 
> First, tooltips are a sort of hidden feature, where the user discovers them 
> only after moving the mouse over the object.  Prior to that moment they're 
> invisible, offering no guidance at all.
> 
> And in this case, the good explanatory text you're offering can't be seen 
> until after the user commits to a choice, but that explanation would seem 
> helpful to guide them to making that choice.
> 
> If space permits, you could consider adding the explanatory text in 
> parentheses after the symbol directly in the control:
> 
>  -
>  | = (Equals)|
>  | ≤ (Is at least)   |
>  | ≅ (Is approximately)  |
>  -
> 
> This would allow users to fully grasp the implications of a choice before 
> making it.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> 
> 
> avid Glasgow wrote:
> 
>> I have an app in which tooltips are generally off.  I also have a button 
>> menu which allows the selection of equality/inequelity.  Users are non 
>> technical, and on selection (i.e. not the usual hover) I wanted to pop up a 
>> brief tooltip describing the selected item in ordinary language 
>> (irrespective of whether tooltips are globally on or off):
>> on menuPick pChosenItem
>>   set the label of me to pChosenitem
>>   switch
>>  case pChosenItem = "="
>> set the tooltip of me to "Equals"
>> break
>>  case pChosenItem = "≤"
>> set the tooltip of me to  “Is at least"
>> break
>>  case pChosenItem = "≅"
>> set the tooltip of me to “Is approximately"
>> break
>>   end switch
>>   set the tooltipdelay to 500
>>   show the tooltip of me
>>   set the tooltip delay to 0
>> end menuPick
>> It seems  show the tooltip of me isn’t a thing.  I appreciate that I could 
>> show and hide an ordinary field, but I wondered if I have overlooked a 
>> suitable message and/or syntax that will enable what I want. Best Wishes,
>> David Glasgow
> 
> 
> 
> ___
> 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: scripted Show tooltip not a thing?

2022-01-14 Thread David V Glasgow via use-livecode
Thanks all.

I scripted as if the delay was the duration the tooltip is displayed.  Duh!  Of 
course the delay is hover delay before the tooltip shows!  I knew that, and yet 
somehow didn’t know it at the same time.

Cheers

David G

> On 11 Jan 2022, at 2:48 pm, Craig Newman via use-livecode 
>  wrote:
> 
> You can do this. In a button script;
> 
> on mouseenter
> 
> set the tooltip of me to random(999)
> 
> end mouseenter
> 
> 
> Now every time you move the cursor into that button, you get a new integer 
> when you hover.
> 
> Craig
> 
>> On Jan 11, 2022, at 9:38 AM, Klaus major-k via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Hi David,
>> 
>>> Am 11.01.2022 um 15:29 schrieb David Glasgow via use-livecode 
>>> :
>>> 
>>> Hi folks
>>> 
>>> I have an app in which tooltips are generally off.  I also have a button 
>>> menu which allows the selection of equality/inequelity.  Users are non 
>>> technical, and on selection (i.e. not the usual hover) I wanted to pop up a 
>>> brief tooltip describing the selected item in ordinary language 
>>> (irrespective of whether tooltips are globally on or off):
>>> 
>>> on menuPick pChosenItem
>>> set the label of me to pChosenitem
>>> switch
>>>case pChosenItem = "="
>>>   set the tooltip of me to "Equals"
>>>   break
>>>case pChosenItem = "≤"
>>>   set the tooltip of me to  “Is at least"
>>>   break
>>>case pChosenItem = "≅"
>>>   set the tooltip of me to “Is approximately"
>>>   break
>>> end switch
>>> set the tooltipdelay to 500
>>> show the tooltip of me
>>> set the tooltip delay to 0
>>> end menuPick
>>> 
>>> It seems  show the tooltip of me isn’t a thing.  I appreciate that I could 
>>> show and hide an ordinary field, but I wondered if I have overlooked a 
>>> suitable message and/or syntax that will enable what I want. 
>>> 
>>> 
>>> Best Wishes,
>>> 
>>> David Glasgow
>> 
>> well, we cannot explicitely show a tooltip by script.
>> So "show the tooltup of me" will not work if it doesn't throw an error.
>> 
>> Problem in your script:
>> ...
>> set the tooltipdelay to 500
>> ## from this point the tooltip will appear in 500 millisecs
>> ## show the tooltip of me
>> 
>> ## but this will disable the tooltip again much EARLIER than the 500 
>> millisecs!
>> ## LC is too fast for this :-)
>> set the tooltip delay to 0
>> ...
>> 
>> 
>> Best
>> 
>> Klaus
>> 
>> 
>> 
>> --
>> Klaus Major
>> https://www.major-k.de 
>> https://www.major-k.de/bass  
>> >
>> kl...@major-k.de  > >
>> 
>> 
>> ___
>> 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 cards problem solved

2022-01-06 Thread David V Glasgow via use-livecode
Hope I didn’t come over as sarcastic!  Not at all.  

It all took me back to HC days and my astonishment at how powerful and fast 
searching and marking cards was…  I was eagerly following the thread to learn 
more.

> On 4 Jan 2022, at 6:55 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 1/3/22 2:53 PM, David V Glasgow via use-livecode wrote:
>> Please let me not be the only one who can’t stand the suspense...
> 
> I know this topic has taken over the list, and it's probably run its course 
> now so you can breathe easy. The last puzzle remains unsolved, though I got a 
> couple of tips from someone about trailing carriage returns in the title 
> field.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> 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 cards problem solved

2022-01-03 Thread David V Glasgow via use-livecode
Please let me not be the only one who can’t stand the suspense...

> On 3 Jan 2022, at 7:18 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 1/3/22 12:13 PM, Mark Wieder via use-livecode wrote:
>> On 1/3/22 9:30 AM, J. Landman Gay via use-livecode wrote:
>>> Right, Zweibelwähe should be last, and other Parsley recipes are in the Ps 
>>> inside the Vegetable category. Just not this one.
>> If I sort by Category (after adding the two fields to the first two cards as 
>> Alex suggested) I see the following sort order:
>> card id 9181
>> card id 9182
>> card id 9183
>> card id 7908
>> (all with a category of "Vegetable".
> 
> 7908 isn't right either. I get:
> 
> card id 9181
> card id 9182
> card id 9183
> card id 9184
> 
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> 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


OT Re: Livecode downloads VERY slow

2021-12-23 Thread David V Glasgow via use-livecode


> On 23 Dec 2021, at 3:39 am, William Prothero via use-livecode 
>  wrote:
> 
> I bet I got you all beat, for geezerdom.


I took the first National UK examinations in 'Computer Studies' in the early 
70s.  Part of the final exam was to read a short piece of punched tape.  With 
your eyes.

Mine said "Marilyn Monroe”

Apologies if I have previously posted this.  More than once.

Now.  What was I talking about again?
___
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: Command "Launch"

2021-12-12 Thread David V Glasgow via use-livecode


> On 11 Dec 2021, at 12:08 pm, Klaus major-k via use-livecode 
>  wrote:
> 
> Ken Ray has a nice list of many specialfolderpath() names on his website:
>  >

I can’t say how many times I have looked through that.  Thank you, Ken.

___
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: screen resolution and stack height

2021-12-02 Thread David V Glasgow via use-livecode
Thanks for more thoughts guys.  I do have a scale factor button, but don’t want 
to stretch, so I use ‘letterbox'

The cinematography web page inspired me to experiment more freely and I found 
that 3:2 seems to be a good compromise despite not matching any screen 
’standard'.  It scales on screens pretty well, and fits reasonably well printed 
onto a landscape A4 page, which is about 2.82:2

It is matches the aspect ratio of  DSLR sensors and classic 35mm film, which to 
my eye at least, looks lovely.  Perhaps because it is very close to the ‘golden 
rectangle’ (3:1.85).  That could just be me being a bit bonkers, but it would 
be interesting to know if there is more widely felt appreciation of certain 
aspect ratios.

So for now I am going with 1200x800

Cheers, & thanks again

David G

> On 2 Dec 2021, at 3:41 pm, Paul McClernan via use-livecode 
>  wrote:
> 
> Alternatively you could add a magnification control that sets the stack’s
> scaleFactor properly, or sets the stack to fullscreen mode and stretches it
> to fit with fullScreenMode “exact fit”.

___
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: screen resolution and stack height

2021-12-02 Thread David V Glasgow via use-livecode


> On 2 Dec 2021, at 2:31 pm, Craig Newman via use-livecode 
>  wrote:
> 
> Here is a neat article:
> 
> https://www.studiobinder.com/blog/what-is-4-3-aspect-ratio/
> 

Interesting!  I suppose my original point is that in the old days you could 
create at any intermediate ratio and it would match or scale nicely to fit the 
screen.  

Is there a larger ratio that works similarly?(I suspect not)

Alternatively, I will take the recommended anarchists’ solution and make it the 
best dimensions for the task.

Thanks for the advice folks.

Cheers

David G


___
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: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread David V Glasgow via use-livecode
I don’t know what my wife is complaining about.

 It IS all about me!

> On 8 Oct 2021, at 4:37 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> For the sake of clarity, in retrospect it may have been better to use This 
> Me, That Me, The Other Me, and perhaps Not Me. :-)
> 
> Bob S
> 
> 
>> On Oct 8, 2021, at 08:28 , J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> And then there's "this me", which still tickles me.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
> 
> 
> ___
> 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: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread David V Glasgow via use-livecode
Ah! (light comes on).  Thanks Sean.  So ‘me’ is actually more specific than it 
would seem!  I avoided ‘me' because it returns the short name of an object (of 
which there are several), and went for the long name of me because it is 
unique.  

Just to be clear, what you are saying is that when LC searches for ‘me’, the 
first one found will always be the target, and the search stops there.

I still don’t understand why rect (the rect of the long name of me) works in 
one but fails in another group, though.

Cheers,

David G

> On 8 Oct 2021, at 10:58 am, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> The message path looks for the first instance it finds with a given name.
> As your script is within the group itself, it would be easier (lazier ;) )
> to reference to each group as 'me'
> eg
> lock screen for visual effect in rect (the rect of me)
> 
> rather than 'the rect of the long name of me'
> 
> Sean
> 
> On Fri, 8 Oct 2021 at 10:32, David Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Being essentially a lazy and a sloppy programmer, I made a group which
>> contained a script that caused the group to do what I wanted.  Then I
>> copied it again and again, and grouped the resultant groups.   Rather than
>> adapting the script to be located on the card I just left several identical
>> scripts in groups which have the same short name.  I told you.  Lazy.
>> However, all groups worked absolutely fine.
>> 
>> I then decided to add a visual effect to the final unlock screen in each
>> instance.  I tried a couple of groups to see how it would look, and I found
>> that it worked perfectly on one group, but not a second, identical(?)
>> group.
>> 
>> The script is...
>> +++
>> 
>> on mouseup
>> 
>> lock screen for visual effect in rect (the rect of the long name of me)
>> 
>> **depending on target object which was clicked, change appearance of group
>> here**
>> 
>> unlock screen with visual wipe right slow
>> 
>> end mouseup
>> 
>> +++
>> 
>> There are no other locks or unlocks.
>> 
>> The weird thing is that the script runs without error in both cases.  The
>> final appearance of the group in both cases is exactly what I would
>> expect.  However, the visual effect manifests itself in one instance, but
>> not the other.  I was bit hesitant about 'the rect of the long name of me’,
>> but as I keep saying, it seems to works perfectly in one case.
>> 
>> Que pasa?
>> 
>> (  Mac 10.13.6 and LC 9.6, if that makes a difference.)
>> 
>> Best Wishes,
>> 
>> David Glasgow
>> Consultant Forensic & Clinical Psychologist
>> Carlton Glasgow Partnership
>> Director, Child & Family Training, York
>> Honorary Professor, Nottingham Trent University (SOCAMRU)
>> 
>> 
>> ___
>> 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


OT Re: Testers wanted for score tracking app

2021-09-30 Thread David V Glasgow via use-livecode
I visited Finland in 40 years ago, and saw someone playing kyykkä

Much to the amusement of my host, I initially thought I was witnessing someone 
deranged throwing a stick at tins of beans.

> On 30 Sep 2021, at 3:30 pm, Andreas Bergendal via use-livecode 
>  wrote:
> 
> Thanks Mark! 
> 
> Here is a decent video on how to play (less than 2 minutes)
> https://www.youtube.com/watch?v=3fwtBomGp7Q 
> 
> 
> And here are the basics in text:
> 
> ---
> 12 wooden pins, numbered 1-12, are set up close together.
> 
> Players stand 3-4 meters away and take turns trying to knock over pins with a 
> special throwing pin.
> 
> If a player knocks down one pin, the number on the pin is the score.
> If a player knocks down more than one pin, the number of fallen pins is the 
> score.
> 
> After each throw and score count, all fallen pins are raised up at the exact 
> point where they fell (resulting in an ever more scattered field).
> 
> After the first round, each new round starts with the player with the lowest 
> score etc.
> 
> The first player to reach exactly 50 points is the winner, and the game then 
> ends.
> 
> If a player ends up scoring over 50 points, their total score is reduced to 
> 25 points (but they remain in the game).
> If a player scores 0 (misses all pins) three times in a row, they are 
> eliminated from the game.
> 
> If only one player remains in the game, they are the winner regardless of 
> score.
> ---
> 
> Now, to test the app, pretend to be a few people playing, and just make up a 
> score from 0-12 for each throw.
> 
> Suggested things to test:
> Let someone get 0 three times in a row. 
> Let someone overshoot 50. 
> Let someone win, etc. 
> Shut down the app mid-game and check that it resumes the active game 
> correctly.
> Click the Undo button to correct (imagined) mistakes in the scoring
> Modify the rules in the Settings section
> Change voices for the announcements (and language if you want :)
> Delete a previous games
> Delete a player
> Find a bug (if you can! :D)
> ___
> 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: Text encoding: summary of results and times.

2021-09-09 Thread David V Glasgow via use-livecode
So if someone  has a cross platform (Win/Mac) app designed to process text 
files of various and unknown formats and provenance, is there some incantation 
process which would ensure it is best prepared for lots of finding and 
filtering?

Best  wishes

David Glasgow
___
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: Text encoding.

2021-09-03 Thread David V Glasgow via use-livecode
Following this with interest, but also a little confusion.  I completely fell 
into the trap of assuming you encode outgoing and decode incoming.

Alex states that put textEncode(tWHoleText, "UTF8") into tWholeText speeds 
replace up, but David B says LC internal format is UTF16.  Doesn’t the 8 vs 16 
difference matter?  Or matters less than other encodings?

Cheers

David Glasgow


> On 2 Sep 2021, at 1:01 pm, David Bovill via use-livecode 
>  wrote:
> 
> Thanks for the question Alex, I’m wrestling with the same issues - but so far 
> got no responses from encoding gurus here :)
> 
> This is my understanding:
> 
> 1) Yes its recommended to textEncode text that comes from outside into 
> Livecode’s internal native format (which is utf16).  Livecode handles 
> everything internally “transparently” from then on - which I guess means all 
> usual language and control operations expect this utf16 internal format. My 
> guess is this is why a few things have got slower as compared with early 
> versions of Livecode.
> 2) Without doing textEncode the engine tries to guess the encoding 
> (duck-typing?) and does this in a platform specific way? Again exactly what 
> is going on there is a bit opaque to me, but the take-home message is that 
> this is slower and less robust. So yes -losing nothing (assuming the original 
> file is utf8, and yes its the best alternative.
> 
> I thing the hard thing to find out is exactly what type of encoding some 
> files are - would be great if there was a duck-typing service where we could 
> paste text or upload files and it would say - hey this looks like utf8 - but 
> that’s asking too much
> 
> Schedule a call with me
> On 2 Sep 2021, 12:12 +0100, Alex Tweedly via use-livecode 
> , wrote:
>> Sorry to drag us off the interesting topic of licensing :-) into some
>> Livecode question.
>> 
>> I know little or nothing about Unicode, text encodings, etc. - so my
>> question is indeed naive.
>> 
>> I have a text file (War & Peace from Project Gutenberg), about 3.4Mb.
>> The Mac describes it simply as "Plain text".
>> 
>> When I read that into a variable, and then do
>> replace tChar by SPACE in tWholeText
>> it takes between 1000 and 4000 millisecs - versus the 8-10 msecs I had
>> expected from other samples.
>> 
>> If I put in
>> put textEncode(tWHoleText, "UTF8") into tWholeText
>> before the replace then it does indeed tae 8-10 msecs.
>> 
>> Q1. What (if anything) am I losing by doing that ?
>> 
>> Q2. Is this the best alternative ?
>> 
>> Additional info - I just discovered that according to 'more' command
>> line, the file start with :
>> 
>> The Project 
>> 
>> if that is useful.
>> 
>> Many thanks,
>> 
>> Alex.
>> 
>> 
>> ___
>> 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: LiveCode community edition is gone

2021-09-01 Thread David V Glasgow via use-livecode


> On 1 Sep 2021, at 11:26 am, Bernard Devlin via use-livecode 
>  wrote:
> 
> There you had a group of programmers who supposedly loved what
> HyperCard could do, but they only loved that concept as a historical
> artefact, not as a tool available to people now.

Abso-frogging-lutely.

The really interesting questions are “why?"  and “Is there anything we could do 
about it?”


Best Wishes,

David Glasgow
Consultant Forensic & Clinical Psychologist
Carlton Glasgow Partnership
Director, Child & Family Training, York
Honorary Professor
Sexual Offences, Crime and Misconduct Research Unit
Nottingham Trent University


___
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: [ANN] Release 9.6.3

2021-08-03 Thread David V Glasgow via use-livecode
Any help?

https://developer.android.com/google/play/expansion-files

> On 3 Aug 2021, at 5:06 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> Don't make really big apps? :-) 
> 
> I'd start by going through all your graphics and using the lowest resolution 
> that you can get away with. If you linked your graphics to an actual file on 
> the disk this becomes really easy. If not you would have to re-import all 
> your low res graphics and optionally script them. 
> 
> Also, the less cards and stacks, the better. I tend to put a LOT of 
> functionality on my cards, then use tabs to show/hide groups accordingly. 
> 
> Bob S
> 
> 
>> On Aug 2, 2021, at 19:17 , Sannyasin Brahmanathaswami via use-livecode 
>>  wrote:
>> 
>> Aloha Panagiotis
>> 
>> But you cannot release an Android App which is more the 100MB!
>> 
>> See this screen shot
>> 
>> http://wiki.hindu.org/screenshots/You-Cannot-Release-Android-Over-100MB.png
>> 
>> What are we going to do?
>> 
>> 
>> Svasti Astu – Be Well
>> Brahmanathaswami
>> 
>> Get SivaSiva.app – It free!
>> https://www.himalayanacademy.com/view/sivasiva
> 
> ___
> 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: Forum?

2021-06-15 Thread David V Glasgow via use-livecode
I’m with Richmond.  I have had nothing since 13th, except for this thread.

Cheers

David G

> On 15 Jun 2021, at 11:41 am, Keith Martin via use-livecode 
>  wrote:
> 
>> On 15 Jun 2021, at 09:58, Richmond Mathewson via use-livecode 
>>  wrote:
>> 
>> Has the Forum gone bottom up?
> 
> It’s a little quieter than normal I think, but there are posts there from as 
> recent as 20 minutes ago.
> 
> k
> ___
> 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: Replacetext of any characters between parentheses with a space

2021-06-10 Thread David V Glasgow via use-livecode
Ha! Another way.  I couldn’t get the regex to work, despite Paul's invaluable 
help reminding me that replacetext  is a function.

My cobbled together solution involved setting itemdel to parentheses then 
deleting items.

As the Grateful Dead rather repetitively put it:

So many roads
So many roads 
Mountain high, river wide
So many roads to ride
So many roads
So many roads

(in LiveCode)

Cheers

David G

> On 10 Jun 2021, at 9:10 am, Richmond Mathewson via use-livecode 
>  wrote:
> 
> Well, at the rsik of getting things wrong, here's my attempt:
> 
> https://forums.livecode.com/viewtopic.php?f=7=35951
> 
> Richmond.
> 
> On Wed, Jun 9, 2021 at 8:05 PM David V Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> LC coders, please tell me why this won’t work!  My guess is that this is a
>> regex issue, not LC, but I am so stuck.
>> 
>> I want to replace all text within in parentheses (including the
>> parentheses) with a single space.  I have tried assembling the
>> matchExpression in advance and in line, and also escaping the parentheses
>> just in case they are reserved in regex.  Or do I need to enclose the
>> matchExpression in something other than or in addition to, quotes?
>> 
>> on mouseup
>> 
>>  put field "import" into timport
>> 
>>  replacetext (timport, "(.*)", " ")
>> 
>>  put timport into field "import"
>> 
>> end mouseup
>> 
>> 
>> I get the less than inspiring:
>> 
>> execution error at line 3 (Handler: can't find handler) near
>> "replacetext", char 1
>> 
>> 
>> 
>> Best Wishes,
>> 
>> David Glasgow
>> 
>> ___
>> 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
>> 
> 
> 
> -- 
> 
> This communication may be unlawfully collected and stored by the Agents
> of a large number of governments in secret. The parties to this email do
> not consent to the retrieving or storing of this communication and any
> related metadata, as well as printing, copying, re-transmitting,
> disseminating, or otherwise using it. If you believe you have received
> this communication in error, please delete it immediately.
> ___
> 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: Replacetext of any characters between parentheses with a space

2021-06-09 Thread David V Glasgow via use-livecode
D’Oh!  

Thanks Paul.  Much appreciated.

Cheers

David G

> On 9 Jun 2021, at 6:10 pm, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 6/9/2021 1:03 PM, David V Glasgow via use-livecode wrote:
>> on mouseup
>> 
>>   put field "import" into timport
>> 
>>   replacetext (timport, "(.*)", " ")
>> 
>>   put timport into field "import"
>> 
>> end mouseup
> 
> replaceText is a function, not a command, so
> 
> on mouseup
>  put field "import" into timport
>  put replacetext(timport,"(.*)"," ") into field "import"
> 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


___
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


Replacetext of any characters between parentheses with a space

2021-06-09 Thread David V Glasgow via use-livecode
LC coders, please tell me why this won’t work!  My guess is that this is a 
regex issue, not LC, but I am so stuck.

I want to replace all text within in parentheses (including the parentheses) 
with a single space.  I have tried assembling the matchExpression in advance 
and in line, and also escaping the parentheses just in case they are reserved 
in regex.  Or do I need to enclose the matchExpression in something other than 
or in addition to, quotes?

on mouseup

  put field "import" into timport

  replacetext (timport, "(.*)", " ")

  put timport into field "import"

end mouseup


I get the less than inspiring:

 execution error at line 3 (Handler: can't find handler) near "replacetext", 
char 1



Best Wishes,

David Glasgow

___
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: Finding invisible/non printable characters in a string

2021-05-11 Thread David V Glasgow via use-livecode

> On 10 May 2021, at 6:23 pm, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Another fun accent example is using a "Zalgo" generator:


I set out to learn some Livecode, but instead learned about Zalgo.

… and that invisible characters have to go in the ‘maybe when I have some time’ 
drawer, with datagrids, arrays and regex.

Cheers

David G

___
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


Finding invisible/non printable characters in a string

2021-05-10 Thread David V Glasgow via use-livecode
Hi folks, hope everyone is well.

Would I be right in thinking if codepoint count > the number of chars in a text 
string, then it probably contains invisible characters?  

Or would I need to search through Hex to check?

Or something much easier and cleverer that I hadn’t even considered.  Because 
that’s what this list and working with Livecode is like.

Cheers

David Glasgow
___
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: Close & remove from memory - Engine hang

2021-05-08 Thread David V Glasgow via use-livecode


> On 8 May 2021, at 12:57 am, Curry Kenworthy via use-livecode 
>  wrote:
> 
> > I just wrote about my observations and asked for a recipe.
> ...
> > If you felt that as "doubt" then i am really sorry.
> 
> No worries! I also apologize if I've misread your message.

Now *that’s* how to do it.

David Glasgow
___
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: Snapshot image density

2021-04-17 Thread David V Glasgow via use-livecode

 Thanks Richard.

> On 16 Apr 2021, at 4:17 pm, Richard Gaskin via use-livecode 
>  wrote:
> 
> David V Glasgow wrote:
> 
> > Is it right that import snapshot doesn’t offer image density options
> > as export snapshot does?
> 
> Is the metadata["density"] settable?
> 
> I haven't used it so I can't say, but given how snapshotting works I'd be 
> surprised if it lets us control the pixel density of LC's imaging buffer. My 
> hunch is that it's there to inform other programs which may be used to 
> display the image. I'd love to be wrong on that.
> 

Hmmm maybe I have just completely misunderstood. The parameters dictionary 
entry for export snapshot says:


object: Any valid object reference.
size:   The width,height of the snapshot in pixels.
metadataarray:  The metadata is an array of metadata. Currently the 
only key supported is "density" with a value in pixels per inch (ppi).

import snapshot parameters include rectDescription and stackRef, then :


objectRef:  Any valid card or control object reference.
sizeDescription:The width and height of the snapshot in pixels, 
in the form height,width.

no mention of a metadata array

> 
> > should I just export to the temp folder, immediately import, copy to
> > clipboard and proceed as before?  Or is there a more elegant route?
> 
> As of v7 or so you can also export to a variable, which can then be used to 
> set the data of an image object without the intermediary file I/O.

Thanks! That is useful to know.

> 
> 
> > are temp folders always available irrespective of the severity of
> > security restrictions which might be imposed?)
> 
> Good question. I don't know; I'd always had the impression that tmp is a sort 
> of free-for-all where sensitive data is understood to be inappropriate.  
> Maybe modern systems sandbox tmp by app?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web

Thanks for the information Richard, I will just have to try it out I guess.  
Maybe at the weekend.

Cheers

David G

___
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


Snapshot image density

2021-04-16 Thread David V Glasgow via use-livecode

Hi Livecoders,


I have been thinking about offering snapshot image density options on an app 
which currently only offers (import) snapshot size options.  I chose import 
snapshot script variant because users’ machines may well react badly to an 
attempt to save an image (security).  However, most of the software they use 
will allow a clipboard image to be pasted into a record.

First question:  Is it right that import snapshot doesn’t offer image density 
options as export snapshot does?  If that is correct, (it is what the 
dictionary on 9.6.0 shows) question the second….should I just export to the 
temp folder, immediately import, copy to clipboard and proceed as before?  Or 
is there a more elegant route?  (I suppose there is also a question 2.5, are 
temp folders always available irrespective of the severity of security 
restrictions which might be imposed?)

The density options I want to offer are 

Screen (96 DPI)
Print  (300 DPI)
Publication (1000 DPI)

3rd (double barrelled) question… Would the correct syntax to set up for 
publication density be

'put 1000 into snapshotArray[“density”]’  

and then to actually capture…  

'export snapshot from objectref with metadata snapshotArray[“density”] to file 
“SeeSR.png" as PNG

I would investigate myself if I had the time, but sadly I also have to earn a 
living through my day job.




Best Wishes,
David Glasgow
___
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


BPD EUPD

2021-04-08 Thread David V Glasgow via use-livecode
Not going to get all professional/technical here, but this condition is 
*really* tough on those who have it.  Think social-emotional roller coaster.

It also generates challenges for those who interact with them.  What allowances 
individuals choose to take is a matter of choice, of course.  However it seems 
to me it would be useful for some consideration from list-parent.  Not a 
license to offend gratuitously, but equally I would be more than happy for 
there to be encouragement to repair off list rather than the usual threshold 
for list off-booting.

Cheers

David Glasgow

> On 8 Apr 2021, at 5:21 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> I mistakenly remembered the diagnosis, for which Sean was gracious. However, 
> the US government is unlikely to be involved since Sean is in the UK where 
> they actually have humane health care.

___
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: Star score graphic generator achievable with inks... or...?

2021-04-04 Thread David V Glasgow via use-livecode
Thanks, but Bob Sneidar was exactly right in his original post.  His solution 
works beautifully with real numbers represented as part stars.  I did look at 
the segmented widget, but I wanted to represent real numbers from averaging 
customer ratings.

The only teeny  limitation is that between each star there is a small gap in 
which ‘between stars’ scores are not displayed until the threshold of the next 
stars leftmost point is reached.

In terms of the typical web display of customer feedback, it isn’t significant.

Cheers

David G

> On 2 Apr 2021, at 11:57 pm, Martin Koob via use-livecode 
>  wrote:
> 
> Hi again
> 
> I just installed it following the instructions here
> 
> https://gist.github.com/matthewmaier/a803283ffa46a28e27fd
> 
> It seems to do the job.
> 
> Martin
> 
> 
>> On Apr 2, 2021, at 6:51 PM, Martin Koob via use-livecode 
>>  wrote:
>> 
>> Hi David
>> 
>> If I understand what you want you could use the Segmented Control Widget to 
>> get what you want.
>> 
>> https://livecode.com/livecode-widgets-the-segmented-control/
>> 
>> It just has full ratings, i.e. whole stars however  in a comment to that 
>> tutorial Paul McClernan has a link to a "Five-Star rating system LiveCode 
>> Builder Widget has 10 states (half-stars)"
>> https://github.com/PaulMcClernan/community.livecode.widget.fivestars
>> 
>> I think this would do what you need.
>> 
>> You would need to install the widget in your IDE to use it.
>> 
>> Martin
>> 
>>> On Apr 2, 2021, at 9:14 AM, David V Glasgow via use-livecode 
>>>  wrote:
>>> 
>>> Of course what you suggest is a perfect solution.  
>>> 
>>> Someone had to mail me off list and explain it using very small words.
>>> 
>>> Cheers
>>> 
>>> David G
>>> 
>>>> On 2 Apr 2021, at 10:08 am, David V Glasgow  wrote:
>>>> 
>>>> 
>>>> 
>>>>> On 1 Apr 2021, at 6:00 pm, Bob Sneidar via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> Actually I think you would have to set the width of the top group, then 
>>>>> set the left of the top group to the left of the bottom group. Simply 
>>>>> changing the right will move the group I think. Just going off memory.
>>>>> 
>>>>> Bob S
>>>>> 
>>>> 
>>>> 
>>>> Thanks,Bob,  but as I understand what you are saying, wouldn’t that only 
>>>> trade in whole stars?  The easiest way to do that would be with icon 
>>>> switching - I want to have the last star part gold and part grey, (with a  
>>>> vertical boundary through the star) if that is what is demand by the mean 
>>>> feedback score being represented.
>>>> 
>>>> I’m thinking perhaps icons will be the easiest way to go.  Maybe 10 stars 
>>>> each representing a degree of  ‘goldness’ and I will just set the stars 
>>>> Icons as required.  Duh!  Actually 11 stars, I will need a 0% gold.
>>>> 
>>>> Thanks anyway
>>>> 
>>>> Cheers
>>>> 
>>>> David G
>>> 
>>> 
>>> ___
>>> 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: Star score graphic generator achievable with inks... or...?

2021-04-02 Thread David V Glasgow via use-livecode
Of course what you suggest is a perfect solution.  

Someone had to mail me off list and explain it using very small words.

Cheers

David G

> On 2 Apr 2021, at 10:08 am, David V Glasgow  wrote:
> 
> 
> 
>> On 1 Apr 2021, at 6:00 pm, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Actually I think you would have to set the width of the top group, then set 
>> the left of the top group to the left of the bottom group. Simply changing 
>> the right will move the group I think. Just going off memory.
>> 
>> Bob S
>> 
> 
> 
> Thanks,Bob,  but as I understand what you are saying, wouldn’t that only 
> trade in whole stars?  The easiest way to do that would be with icon 
> switching - I want to have the last star part gold and part grey, (with a  
> vertical boundary through the star) if that is what is demand by the mean 
> feedback score being represented.
> 
> I’m thinking perhaps icons will be the easiest way to go.  Maybe 10 stars 
> each representing a degree of  ‘goldness’ and I will just set the stars Icons 
> as required.  Duh!  Actually 11 stars, I will need a 0% gold.
> 
> Thanks anyway
> 
> Cheers
> 
> David G


___
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: Star score graphic generator achievable with inks... or...?

2021-04-02 Thread David V Glasgow via use-livecode


> On 1 Apr 2021, at 6:00 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> Actually I think you would have to set the width of the top group, then set 
> the left of the top group to the left of the bottom group. Simply changing 
> the right will move the group I think. Just going off memory.
> 
> Bob S
> 


Thanks,Bob,  but as I understand what you are saying, wouldn’t that only trade 
in whole stars?  The easiest way to do that would be with icon switching - I 
want to have the last star part gold and part grey, (with a  vertical boundary 
through the star) if that is what is demand by the mean feedback score being 
represented.

I’m thinking perhaps icons will be the easiest way to go.  Maybe 10 stars each 
representing a degree of  ‘goldness’ and I will just set the stars Icons as 
required.  Duh!  Actually 11 stars, I will need a 0% gold.

Thanks anyway

Cheers

David G
___
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


Star score graphic generator achievable with inks... or...?

2021-04-01 Thread David V Glasgow via use-livecode
Hi folks,

I am thinking about an app to create a 'star score' graphic for any given 
score/maximum value.

I don’t want it to be just integers up to the number of stars, but for one for 
the stars (if mean score is neither zero or the maximum) to be part golden and 
part grey.

I initially thought this would be straightforward but I am now scratching my 
head.

I was wondering whether there is an ink combination of two graphics (star and 
‘screen’) which would allow the covered part of the star to appear grey but the 
card bg  behind the screen to be unaffected.

Please assume I really don’t understand inks at all.  If that isn’t going to 
work, any other suggestions?


Best Wishes,
David G


___
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: Resources folder on mac, and the good old days

2021-03-29 Thread David V Glasgow via use-livecode
I am following this with interest because, as I have previously lamented, I 
would like to give away apps to colleagues without the huge, incomprehensible 
headache of certificates, signing and notarising etc.

I want to make absolutely sure that I understand it correctly, that a player 
app which was enabled to run on a machine (either by user or the more formal 
method) could be designed to list and run any number of stacks distributed as 
stacks, and placed in a designated folder or sub folder.

If correct, doesn’t that:

A/  Enable distribution and updating of any LC ‘app’ simply by the prospective 
user dropping it into the correct folder?  (AKA ‘the good old days')

B/  Undermine the fundamental intention of certification in the first place?  
(Personally, I would trust Livecoders, and indeed often run posted stacks 
without a second thought, but what if Richmond* went over to the dark side?) 

Cheers

David G

* Selected not because I think he might, but because the idea is amusing
___
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: [ANN] New Book: Development Oriented Development

2021-03-17 Thread David V Glasgow via use-livecode
Going off at a bit of a tangent, but maybe not entirely OT…

I see that Payhip state you can sell software through their platform.  

Andre, do you do that?  or any  Livecoders for that matter?  If so, how is it 
going?

Cheers

David Glasgow


> On 16 Mar 2021, at 6:26 pm, Andre Garzia via use-livecode 
>  wrote:
> 
> Dear Roland,
> 
> I haven't updated that book in a long time. What I did was switch stores to
> payhip. In that purchase URL, you'll notice that my name as an author is a
> link. If you click it, you're redirected to my payhip store at:
> 
> https://payhip.com/aagarzia
> 
> Which has the other book for sale as well.
> 
> I'll generate a preview and add it to my site.
> 
> Best
> Andre
> 
> On Tue, 16 Mar 2021 at 17:14, R.H. via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Andre
>> 
>> I have purchased your new book and downloaded the three versions (very
>> clever in three formats!).
>> 
>> https://payhip.com/b/18eH
>> 
>> With me is also your other book published first. Somewhere I read that you
>> updated that version. Can I download that somewhere as well? Or is there
>> some update price?
>> 
>> This purchasing page looks very professional and nice. But there is no link
>> to your other products or possibilities to contact you from that page.
>> Maybe a small preview would also possibly attract more readers? Anyway..
>> the price is very modest.
>> 
>> Regards, Roland
>> ___
>> 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
>> 
> 
> 
> -- 
> https://www.andregarzia.com 
> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
> ___
> 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: Multidimensional array issue

2021-03-09 Thread David V Glasgow via use-livecode
 Er, I think I have just reached the fourth level of array un-enlightenment.

Wait!…. I can see the cyberverse!  SCHLOOOppp!-ting!

> On 3/8/21 5:36 PM, Bob Sneidar via use-livecode wrote:
>> Are you testing for empty, or are you testing if there is a value in an 
>> array variable? If there is no key matching your array variable, LC will 
>> return an empty string. An empty string is a value.
>> 
>> Mark is using a different method, seeing if a key of an array is itself an 
>> array. If bobtest ["value"] contains another array so that bobtest ["value"] 
>> ["anumber"] contains 1, then bobtest ["value"] is an array. If bobtest 
>> ["value"] contains 1 then it is not an array.
>> 
>> But getting the value of bobtest ["value"] ["number"] will return empty 
>> whether or not bobtest '{value"] is an array. This is why Mark is testing 
>> for an array rather than the value.
>> 
>> It seems a bit wonky, you might think, "Why not return an error?" But trust 
>> me, when you work with arrays, especially when it comes to datagrid data, 
>> this is the best course.
>> 
>> Bob S
>> 
>> 
>>> On Mar 8, 2021, at 16:25 , HENRY LOWE via use-livecode 
>>>  wrote:
>>> 
>>> Thanks Mark. There are two possible states:
>>> 
>>> tArray[“status”] holds a value and tArray[“status”][“text”] does not
>>> 
>>> or
>>> 
>>> tArray[“status”][“text”] holds a value and tArray[“status”] does not
>>> 
>>> 
>>> My code is trying to do the following:
>>> 
>>> If tArray[“status”] does not hold a value then check if 
>>> tArray[“status”][“text”] holds a value
>>> 
>>> 
>>> The crux is how one reliably determines that an array member (e.g. 
>>> tArray[“status”]) holds a value?
>>> 
>>> I would have assumed that if the array member does not hold a value then  - 
>>> if tArray[member] is empty would always return true. However that does not 
>>> appear to be the case if the array is multidimensional.
>>> 
>>> 
>>> It appears that both tArray[“status”] is an array and 
>>> tArray[“status”][“text”] is an array are true. Am I missing something about 
>>> using this syntax?
>>> 
>>> Thanks,
>>> 
>>> Henry
>>> 
>>> 
 On Mar 8, 2021, at 3:56 PM, Mark Wieder via use-livecode 
  wrote:
 
 On 3/8/21 3:46 PM, HENRY LOWE via use-livecode wrote:
 
> I have often used the form 'if tArray[“key1”] is empty' to determine 
> whether an array element hold a value but this breaks if 
> tArray[“key1”][“key2”] holds a value.
 Same here. Not that I've every liked that paradigm, just that it's been 
 that way since life crawled out of the ocean.
 
 However this should do the trick.
 
 if tArray["status"] is an array then
 put tArray["status"]["text"] into tStatus
 else
 put tArray["status"] into tStatus
 end if
 
 -- 
 Mark Wieder
 ahsoftw...@gmail.com
 
 ___
 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
> 
> -- 
> Phil Davis
> 503-307-4363
> 
> 
> ___
> 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: Baffling can't create variable message

2021-02-24 Thread David V Glasgow via use-livecode
h!

Why did that not occur to me?  Damn, on one of my variants I was so close, 
though...

Thanks Matthias

Cheers

David G

> On 24 Feb 2021, at 12:42 pm, matthias rebbe via use-livecode 
>  wrote:
> 
> David,
> 
> the Text is a property of button "search all". You have to use  "set the 
> text"
> 
> set the text of button "search all" to return & fld "custom" & the text of 
> button "search all"
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 24.02.2021 um 12:53 schrieb David V Glasgow via use-livecode 
>> :
>> 
>> put return & field "custom" after the text of button "Search All"
> 
> ___
> 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


Baffling can't create variable message

2021-02-24 Thread David V Glasgow via use-livecode
LiveCoders,

I have a pulldown menu button to which I want to append new searches that it 
does not already contain.

I have scripted this in various ways, multiple lines, single line, add 
parentheses, leave ‘em out, use extra variable/not,  in an attempt to isolate 
what I am doing wrong.  Sometimes I get a missing ‘then’ error, when it is 
clearly present.  However, in several constructions of the script, including 
the one liner below, I get

 “Can’t create a variable with that name (explicitvariables?) near text, char 
113

The script is:

if the text of button "Search All" contains field "custom" = false then put 
return & field "custom" after the text of button "Search All"


I'm doubly confused because a) in this version of the script I am not using 
variables, and b) Strict compilation mode is unchecked.

I have no idea whether this is a clue, but only commands seem to be colourised 
in the script editor.  I also noticed that the breakpoints tab reports a 
breakpoint on line 54 (which doesn’t exist), and which I have never knowingly 
set.

LC 9.6.0 MacOS 10.13.6


At this stage I would welcome someone pointing out  a palm->face rookie error 
rather than anything more sinister .  


Best Wishes,

David Glasgow



___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-17 Thread David V Glasgow via use-livecode
Double [OT], but I just want to say that I have looked at HyperRESEARCH several 
times over the years, and have been hugely impressed with its features.

In fact, it is too feature rich for my needs, but it looks like a really great 
piece of work.

Cheers,

David G

> On 16 Feb 2021, at 9:43 pm, Paul Dupuis via use-livecode 
>  wrote:
> 
>  company Researchware produces called HyperRESEARCH for performing 
> qualitative data analysis.

___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread David V Glasgow via use-livecode
Well, my suggestion a non starter if you need to do hard sums, and you eschew 
invisibles. 

However, my thinking was this... I understood that the task was to detect when 
two rectangles r1 and r2 were within distance d of each other.   Presumably 
ether a flat bit or a pointy bit, coming in at any angle.  if each rectangle is 
centred and grouped with a rect that is bigger by d/2, any intersection of any 
two bigger rects means that the smaller corresponding r1 and r2 rects are at or 
within the desired distance d (half d measured by r1’margin over r1, and half 
by r2’margin over r2). The size of the groups is ignored, and as long as all r 
& r’ stay centred it should work, unless the rects move super quickly.

Oh.  It just occurred to me is that the bigger rects would have to have rounded 
corners.  Hmmm.  


OK, I’ll just sit back and see how it should be done.

Cheers

David G



> On 16 Feb 2021, at 5:08 pm, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 2/16/2021 6:16 AM, David V Glasgow via use-livecode wrote:
>> Being a bear of little brain, I would try placing each rect into a group 
>> centred on a larger rect, where the margin is d/2,  then test using 
>> intersect.
>> 
>> Now, where did I put that hunny?
>> 
>> 
> 
> Like the pooh reference!
> 
> Although I am not sure I follow exactly what you are suggests - AND - I need 
> to do this via math rather than visible (or invisible) objects in LC.
> 
> for rects r1,r2, I have l1,t1,r1,b2 and l2,t2,r2,b2 for their coordinates. 
> The rect min(l1,l2),min(t1,t2),max(r1,r2),max(b1,b2) is a rectangle that 
> exactly bounds both rects - this would be the rect of the group (if you 
> created them as objects and grouped them (less margins/borders).
> 
> I don't follow the part about 'centered on a larger rect where the margin is 
> d/2?
> 
> 
> ___
> 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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread David V Glasgow via use-livecode
Being a bear of little brain, I would try placing each rect into a group 
centred on a larger rect, where the margin is d/2,  then test using intersect.

Now, where did I put that hunny?

Best wishes

David Glasgow
___
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: LC Roadmap

2021-02-13 Thread David V Glasgow via use-livecode


> On 13 Feb 2021, at 12:37 pm, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> I was told last year that HTML5 deployment would see upgrades maybe by
> Jan2021 LC 9.7.

Hi Sean,

I think that kind of aspirational statement, particularly in the world of 
software development, is the kind of thing to be really pleased and surprised 
about if it actually happens within 12 months of the estimate. In my book it 
certainly doesn’t qualify as a lie.  To anticipate features for a commercial 
product in development would need  a seriously strong and informed insider 
steer.  No consolation, I appreciate, but if anyone should be in a position to 
understand the particular challenges of software development, it must be other 
developers.

Which kind of reminds me about my last mail…. paying for Windows SuperCard and 
waiting for it to arrive.  I was SO wound up about that.  Weirdly now, it is a 
fond memory.


Best Wishes,
David Glasgow

___
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: lock screen

2021-01-22 Thread David V Glasgow via use-livecode
I once got in an unholy mess with a couple of lock screens which, of their own 
accord, had sneaked into repeat loops.

> On 22 Jan 2021, at 2:24 pm, Craig newman via use-livecode 
>  wrote:
> 
> Something else you might want to to know, though it may only be academic. 
> 
> LockScreen commands are queued. So if you lock the screen twice, you have to 
> explicitly unlock twice in order to clear the locked state.
> 
> It does not matter what happens in the flow of code in terms of screen 
> locking, whether other command or function calls are made. The queue rules 
> throughout. All is reset at idle time.
> 
> Craig
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Brian Milby via use-livecode
> Sent: Friday, January 22, 2021 6:50 AM
> To: How to use LiveCode 
> Cc: Brian Milby 
> Subject: Re: lock screen
> 
> I’m sure someone else can be more clear, but when the engine gets to an idle 
> state then locks should be cleared.  In your example, it would probably clear 
> at the end of that mouseUp handler, but aTest would completely run with the 
> screen locked.
> 
> Sent from my iPhone
> 
>> On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
>>  wrote:
>> 
>> Just looking for clarity with regard to lock screen.
>> 
>> Is there only one state for the screen, either locked or not locked and when 
>> is that state changed.
>> 
>> ---
>> on mouseUp
>> 
>> lock screen
>> 
>> aTest
>> 
>> end mouseUp
>> 
>> 
>> on aTest
>> 
>> — is the screen still locked here
>> 
>> end aTest
>> 
>> 
>> 
>> At what point is unlock screen called by livecode without me calling it 
>> directly.
>> 
>> The docs say when all pending handlers have completed but what exactly is a 
>> pending handler.
>> 
>> 
>> 
>> Thanks
>> 
>> Terry
>> ___
>> 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: Cmi5 eLearning Standard in LiveCode MEETING TODAY AT 1 PM EST

2021-01-19 Thread David V Glasgow via use-livecode
I intended to comment on list, because I was impressed with Videolinkwell and 
thought folks on the list might be interested!

 I watched the videos and think your app is really cool and worthwhile.

There!  I did it again!

David G

> On 19 Jan 2021, at 5:37 pm, Martin Koob  wrote:
> 
> Hi List.
> 
> 
> I didn't mean to  spam everyone with this.  I did not notice I was conversing 
> with David G  thru the use-LiveCode list till  just now.  We can take this 
> offline.
> 
> But since you now have the links you can do a trial of my software.  Curious 
> what people think.
> 
> 

___
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: Cmi5 eLearning Standard in LiveCode MEETING TODAY AT 1 PM EST

2021-01-18 Thread David V Glasgow via use-livecode
VideoLinkwell looks like a great tool, Martin.  I spend a lot of time analysing 
video recorded police interviews, so I I know what a huge slog it is to 
document what happens and at which point(s) in a video.

Is there a walkthrough of features/tools?

Cheers

David G 

> On 18 Jan 2021, at 6:49 pm, Martin Koob via use-livecode 
>  wrote:
> 
> Hi
> 
> I am back to 3G.  So go on without me.  It is more frustration for you than 
> it is worth. 
> 
> I will watch the video. 
> 
> If you want to see and try my SaaS Product VideoLinkwell go to 
> VideoLinkwell.com.  
> 
> Let me know when the next meeting is.  Thanks. 
> 
> Martin
> 
> Sent from my iPhone
> 
>> On Jan 18, 2021, at 1:43 PM, David Bovill  wrote:


___
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: [ANN] Release 9.6.2 RC-2

2021-01-14 Thread David V Glasgow via use-livecode
I paid for the Windows version of SuperCard that was advertised in MacUser for 
some considerable time in the ?mid 90s.  I waited, and waited, and waited….

> On 13 Jan 2021, at 8:00 pm, Michael Kristensen via use-livecode 
>  wrote:
> 
> Richard Gaskin wrote:
> 
>> We've been here before...
>> 
>> 68k -> PPC
>> Classic -> OS X
>> PPC -> Intel
>> 32-bit -> 64-bit
> 
> 
> More form memory-land:
> 
> Yesterday I downloaded SuperCard 4.8.1 Trail wich still is maintained.
> 
> I was able to convert some 30 years old SC stacks so they could run again (at 
> least for 30 days).
> 
> It look exactly like when I left it for Revolution and Livecode.
> 
> Richard, you might be the first person I ever emailed to, back then when we 
> had telephone modems (ky)
> 
> Michael
> ___
> 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


OT Re: Audioclips overlapping

2021-01-09 Thread David V Glasgow via use-livecode
Oh my!  I had a minuet generator dongle for my Sinclair Spectrum!!

So that’s how it worked!

> On 9 Jan 2021, at 3:08 pm, Richmond via use-livecode 
>  wrote:
> 
> Erm . . . not sure about this, but the word 'concatenation' just bubbled
> up in my brain.
> 
> But any concatenation would need to be done on the fly inwith LiveCode.
> 
> Having a seriously bonkers patch:
> 
> https://introcs.cs.princeton.edu/java/assignments/mozart.html
> 
> On 9.01.21 16:59, Klaus major-k via use-livecode wrote:
>> Hi Richmond,
>> 
>>> Am 09.01.2021 um 15:52 schrieb Richmond via use-livecode 
>>> :
>>> 
>>> When I try to play a succession of audioClips they overlap each other.
>>> Is there a way to ensure each clip does not start playing before the 
>>> preceding one has finished?
>> do you mean this?
>> ...
>> play ac "a_clip.wav"
>> wait until the sound is "done"
>> play ac "another_clip.aif"
>> ...
>> 
>>> Richmond Mathewson.
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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


Field ID clash

2021-01-02 Thread David V Glasgow via use-livecode
Using 9.6.0 on Mac 10.13.6

I duplicated a field and found a third field responded to the mouseup of the 
duplicate.  It seems the duplication generated a clash of IDs between the 
duplicate and third field.  I could just select and start again, but I was 
wondering whether there is a safe way to manually (or force automatic) change 
the ID of one pr other of the fields.  I also wondered how this might happen in 
the first place.  Is my stack OK, or might a more serious problem be 
developing? 

Any thoughts or suggestions?

Best wishes,

David Glasgow


___
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 Re: Trying to use the Segmented Control

2020-12-06 Thread David V Glasgow via use-livecode



> On 6 Dec 2020, at 10:16 am, Richmond via use-livecode 
>  wrote:
> 
> I started driving again in the United Arab Emirates on the basis of a Saudi 
> licence I had got for a bottle
> of fake Chanel number 5.


I never drive in the UAE.  Hit a camel = go to jail.

David G
___
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: filter

2020-11-20 Thread David V Glasgow via use-livecode
Apologies for barging in, but I am confused by regex generally and in this 
specific example by the function of the terminal ‘+’  If you are only finding 
one character, why do you need to specify 'at least one' of one char?

Cheers

David G

> On 20 Nov 2020, at 8:44 am, Klaus major-k via use-livecode 
>  wrote:
> 
>> ^ = start at beginning of line
>> \[ = a literal "[" character ("\" escapes whatever comes next)
>> + = at least one of those characters

___
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: Design Question

2020-11-17 Thread David V Glasgow via use-livecode
Oooh!  For once I might make a contribution!

I had the same issue in a healthcare context.  These IT systems vary 
tremendously between services, are complex and often hard to connect with - 
either by design, or by lack of interest in supporting other software.

I found the best way to get a combo education and training/clinical app to be 
accepted was to create it with no dependencies (local or online), no attempt to 
connect with management systems, no writing of data anywhere, just the ability 
to copy and paste charts and data that nurses can incorporate into other 
reports.  Although clinical information systems are hostile to most actions, 
they have to allow pictures (like x rays and other scans) and spread sheet data 
to be pasted into the record.  Ironically, they almost all allow Word documents 
to be incorporated into the clinical record too.  Nurses don’t need to be shown 
how to do these things, because they wrestle with ugly, poorly designed 
clinical information systems on a daily basis.

In other words, you’re on the money, I think.

Cheers,

David G

> On 16 Nov 2020, at 11:28 pm, William Prothero via use-livecode 
>  wrote:
> 
> Folks,
> I’m refining an application I used to teach Plate Tectonics when I was a 
> working prof. The application’s core is access to Earth data (that scientists 
> used to develop the theory of plate tectonics) and capturing and annotating 
> plots that can be incorporated into student writing.
> 
> I am adding features that give the student (and teacher) more direction about 
> how to use the material. The final student product would be some kind of 
> short writeup with figures, that presents student results of their 
> exploration using the data in the application. The major goal is to have 
> students learn about the process of doing science and writing about their 
> results.
> 
> However, I am thinking hard about how to proceed. It seems the effort to make 
> this app work with learning management systems would be huge, something I’m 
> definitely not up for. Yet, an assignment with text and figures needs to be 
> packaged in some way that is easy for students to use, but can be transmitted 
> to the teacher (who will make comments, assign a grade, and return it to the 
> student) in some efficient way. What I’m thinking, at the simplest level, is 
> to export the text and figures of the student’s work and let the student 
> create a final product using word, Pages, google classroom, or some other 
> application I haven’t thought about  but which they would normally have 
> access to.
> 
> I’d love to have any of you teachers’ ideas and/or experience with great ways 
> to proceed.
> 
> Thanks,
> Bill
> 
> William A. Prothero
> https://earthlearningsolutions.org
> 
> 
> 
> ___
> 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: The Most Stupid Question Ever?

2020-11-11 Thread David V Glasgow via use-livecode



> On 10 Nov 2020, at 11:14 pm, Craig newman via use-livecode 
>  wrote:
> 
> So then LC knows when the message box is about to be the target, and
> therefore acts differently than with any other container. The actual already
> executed  command "put" is left stranded, unrequited, because the next line
> in sequence, not yet executed,  has foreknowledge that the upcoming target
> is the message box, and is girding itself to access it?? 


"Spooky action at a distance"?


___
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


Getting page counts of PDFs

2020-08-23 Thread David V Glasgow via use-livecode
Livecoders,

In my day job, some of my income comes from the number of pages from  a number 
of PDF documents thatI have to read for individual cases.  I thought it would 
be fun and useful to write an LC script that would either count the pages or 
(even better) get the page count of a folder full of PDFs.

I didn’t imagine it would be too hard, because both Mac and Win OSs report page 
number instantly and accurately in the file information windows.

I discovered that in a small sample of PDFs a line… 
<< /Type /Pages /MediaBox [0 0 612 792] /Count 149 /Kids [ 1396 0 R 1397 0 R


...contained the page count, which was a bit confusing because I read that the 
Mediabox was only about page dimensions.  Then I found that some PDFs don’t 
contain that line, or at least not in the clear.

There is a general online consensus that reliably finding the page count of a 
PDF involves quite a lot of messing about and parsing, and may involve pretty 
much counting the pages.

I found some code here  with 
the following walk through:

//1.  See if there's a 'Linearization dictionary' for easy parsing.
//Mostly there isn't so ...
//2.  Locate 'startxref' at end of file
//3.  get 'xref' offset and go to xref table
//4.  depending on version the xref table may or may not be in a compressed
//stream. If it's in a compressed stream (PDF ver 1.5+) then getting the
//page number requires a LOT of code which is too convoluted to summarise
//here. Otherwise it still requires a moderate amount of code ...
//5.  parse the xref table and fill a list with object numbers and offsets
//6.  handle subsections within xref table.
//7.  read 'trailer' section at end of each xref
//8.  store 'Root' object number if found in 'trailer'
//9.  if 'Prev' xref found in 'trailer' - loop back to step 3
//10. locate Root in the object list
//11. locate 'Pages' object from Root
//12. get Count from Pages.


If this is right, how on earth do OSs do it so quickly?  Also, and more to the 
point, am I on a fools errand to do this with LC?  I haven’t seen anything that 
obviously couldn’t be done (didn’t understand the regex, but assumed with 
effort…).  However parsing huge files just doesn’t look like it would be worth 
the effort, particularly as I can select all the documents,  get info, and sum 
the pages in my head..

Cheers,

David Glasgow
___
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: Layers in PBrowser

2020-08-13 Thread David V Glasgow via use-livecode


> On 13 Aug 2020, at 4:16 am, Pi Digital via use-livecode 
>  wrote:
> 
> Why do I have the same discussion with you people

Hi Sean, There are no ‘you people’, there is only us, including you.  

I can’t help you with your IDE problem, but I can see that others are trying 
hard to be helpful, and that you are running on empty.  

Maybe get some sleep and revisit the issue when you are feeling refreshed?

Cheers,

David G
___
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 lines by date

2020-07-12 Thread David V Glasgow via use-livecode
Thanks everyone & Curry.  I will play with this some more.  Looking at the 
lists I am given, most of the date columns are declared to be UTC.  I intended 
to try to detect other formats in due course, but thought I’d start with the 
common one.

Reminds me of my favourite Jake Peralta line: “Stupid rest of the world, 
writing their dates all dumb!”

Cheers, and thanks again.

David G

> On 11 Jul 2020, at 7:06 pm, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Like everything field and text related, this thread caught my eye! :)
> 
> One of my favorite areas of LiveCode, and also one of the areas I have to 
> actively keep an eye on since I rely on it a lot.
> 
> Here's an observation that might help in one way or another
> 
> David:
> 
> > http://adomain/ 27/06/2016 8:10
> 
> > set itemdel to tab
> > sort lines of field "import" datetime by the last item of each
> 
> > the order above is generated.
> > I can’t see any meaningful ordering of the lines.
> 
> I was curious and copied your content into a field where I changed the date 
> format of the dates, like so:
> 
> http://adomain/   06/27/2016 8:10
> http://adomain/   11/17/2013 22:18
> 
> And for me, over here on this side of the ocean (cue Trump rally: USA! USA!) 
> that both looks good, and works well, using your unmodified code. The lines 
> without a date also stacked up at the top, as you predicted, and as I know to 
> be the normal LC sort behavior.
> 
> I realize you need the British format, but again out of curiosity and to make 
> sure everything LC datewise is working properly, you might try your sort 
> again, with a few lines of your content and that modification.
> 
> (There is also a useSystemDate keyword that you could test.)
> 
> Regardless, be assured that ABSOLUTELY it is possible to have datetime sorts 
> working well in fields or text with tabbed columns. Have no doubts or fears 
> in that regard. I very recently delivered a client project, this year, with 
> that feature.
> 
> The only question is efficiency. It would be better and faster to get the 
> datetime sort working directly with your content.
> 
> But if not, you can also sort with a custom function, and then the sky is the 
> limit! LC sort really is powerful and flexible.
> 
> But I would like to know the outcome, so when this is resolved, thanks in 
> advance for posting again to let us know what worked!
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> 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 lines by date

2020-07-10 Thread David V Glasgow via use-livecode
Hi Tom,

That’s what I thought I was doing.  From the dictionary…

The dateTime keyword recognizes all LiveCode's date and time formats and sorts 
them in time order, rather than alphabetical or numeric order. 

Cheers,

David G

> On 10 Jul 2020, at 11:24 pm, Tom Glod via use-livecode 
>  wrote:
> 
> Hi David, you should be able to do this by specifying the sort-type. look
> up 'sort container' in the dictionary.

___
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 lines by date

2020-07-10 Thread David V Glasgow via use-livecode
Livecodeistas,

I am working with text files consisting of many thousands of lines, most of 
which are in the format URL & Tab & Date - but a few don’t have a date.

So they look like this ...

http://1.lw6.blah/b7f3bd9e6b4d728a0f6d5883ed3a5ce/5326d47f?ss=152   
17/03/2014 9:55
http://1.lw6.zdomain/storage/1/x/xk/xkwEp/encoded.mp4/7aecf5e57e34c5f9212f30d0ca16da5a/5326d454?ss=107
  
http://1.lw6.zdomain/storage/1/x/xk/xkwEp/encoded.mp4/7aecf5e57e34c5f9212f30d0ca16da5a/5326d454?ss=107
  
http://1.lw6.zdomain/storage/1/x/xk/xkwEp/encoded.mp4/7aecf5e57e34c5f9212f30d0ca16da5a/5326d454?ss=107
  
http://adomain/ 27/06/2016 8:10
http://adomain/ 27/06/2016 8:10
http://adomain/ 27/06/2016 8:10
http://adomain/ 27/06/2016 8:10
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18

I assumed I could sort the lines by date using the following:

set itemdel to tab
sort lines of field "import" datetime by the last item of each

(I know I could speed this up using a variable, but I wanted to just see the 
result first.)

I wasn’t sure what would happen to the lines with no date, but assumed they 
would pile up at the beginning or the end of the field (which would be fine).  
However, what happens is that the script runs, and the order above is 
generated.  I can’t see any meaningful ordering of the lines.

I have a horrible feeling that dates are more complicated than I imagined, 
although I am sort of hoping  there something simple I just haven’t grasped.  
If so, what?

Best wishes,

David Glasgow
___
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: slow loading & navigation to card containing large field

2020-07-01 Thread David V Glasgow via use-livecode
Hmmm.  Food for thought both!  

Loading I just use 

put URL ("file:" & theFilePath) into tdata

I have always assumed that reading as binary is only for data that isn’t  text. 
 I’ll try that. If I want to display some or all of the file in a field, do I 
need to process the data read as a binary, or can I just put it into a field?

So far I have worked on the principle that users should be able to see the 
effects of their searches, etc, so have defaulted to field.  Maybe I could 
store part of the list in the field (and swap in/out out as users scroll 
through) but do the main storage and heavy lifting within a custom property?

Thanks very much for the suggestions.

Cheers,

David G

> On 1 Jul 2020, at 5:15 pm, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi David
> 
>> Am 01.07.2020 um 18:10 schrieb Richard Gaskin via use-livecode 
>> :
>> 
>> David V Glasgow wrote:
>> 
>>> Loading the plain text list of URLs from file is slowish, but more
>>> importantly, for some time gives no indication that the file is
>>> loading.
>> 
>> Are you reading the file as text or binary?
>> I would imagine reading as binary would be more efficient since it's a 
>> straight pull from disk, without the content alterations text-read does.
>> 
>> -- 
>> Richard Gaskin
> 
> and unless REALLY neccessary, store the data in a custom property instead of 
> a field.
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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


slow loading & navigation to card containing large field

2020-07-01 Thread David V Glasgow via use-livecode
Hello LCers

On Mac 10.13, LC 9.6

In my stack I have a field on one card consisting of imported text, which is 
typically several thousand of internet searches/file names/URLs.

I search for a number of  keywords, which are then aggregated, and by 
navigating to another card, display summary statistics  on the content 
analysis, in the form of a bar chart displaying the top 20 found terms.  So not 
a lot of data on the charting card.

I have a fairly extreme case of 781,000 lines (80,988,686 chars) in the content 
analysis field, consisting of a web history.

I am amazed at the efficiency of the searching process, which takes a while, 
but is as fast as I could hope.  It is slower than earlier versions, but the 
memory usage stays very steady, which wasn’t the case in 8 or early 9.  I’m 
happy to swap a bit of speed for more stability.  The content analysis works 
nicely, the transition to the chart card and chart displays quite quickly.

I have 2 problems:

1/ Loading the plain text list of URLs from file is slowish, but more 
importantly, for some time gives no indication that the file is loading.  After 
selecting the file, there is a long pause before the cursor becomes the OS 
beachball, another long pause and then eventually the card and populated field 
appears.  Is there any way of letting users know that this 82MB file *is* being 
loaded, they just need to be patient?  Or am I wholly in the hands of the OS?

2/  Navigating from the chart card back to the card containing the big list of 
URLs is very slow, typically taking about a minute from the mouseup on the 
navigate button (or command from message box).  A précis of the message watcher 
shows the delay occurs between the consecutive closeBackground and cREVTable 
messages below.

mouseup 3:55:45 PM (1)

closeCard 3:55:45 PM (0)

closeBackground 3:55:45 PM (0)

cREVTable 3:56:43 PM (58144)

opencard 3:56:45 PM (22)

(In the preopenstack of the big field card, I hide a group containing 9 fields 
each containing maybe 30 words - nothing that should take much time)

Am I just asking too much of LC, or are there any suggestions about making the 
transition between cards brisker? 


Best Wishes,
David Glasgow
Consultant Forensic & Clinical Psychologist

  

  
 
___
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


Fwd: Build problems with 9.6 [mostly fixed]

2020-06-23 Thread David V Glasgow via use-livecode
I never saw mail below  reach the list, and received no replies, so I am trying 
again.  

Aside from thanks to Panos, I reported  a new problem with an error “could not 
auto-detect inclusions or security categories because stack is password 
protected” when I don’t think it is password protected.  I tried setting the 
password of the stack  to empty, with no change to error.  Stack has no sub 
stacks. I suppose I could select inclusions manually, but it would be nice to 
know what is going on.

Cheers,

David G

> Begin forwarded message:
> 
> From: David V Glasgow 
> Subject: Re: Build problems with 9.6 [mostly fixed]
> Date: 20 June 2020 at 3:24:06 pm BST
> To: How to use LiveCode 
> 
> Updating to Xcode 10.1 did the trick, so it looks like something had gone 
> awry with the previous Xcode install.  I really hadn’t  appreciated that 
> there is any LC dependency on Xcode with respect to desktop builds.
> 
> Thanks for the advice Panos.
> 
> I now get a build, but with the warning “could not auto-detect inclusions or 
> security categories because stack is password protected”
> 
> This didn’t happen in 7.x or 8.x, and as far as I know, the stack is not 
> encrypted.  I have seen a discussion of the same message with a script only 
> stack, but I couldn’t see any real connection with my case.  
> 
> I tried 
> 
> set the password of stack "ISOPtex" to empty
> 
> in the message box, but still got the same message on build.
> 
> Any suggestions anyone?
> 
> Thanks David G
> 
>> On 16 Jun 2020, at 1:11 pm, panagiotis merakos via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Hello David,
>> 
>> Sorry about that, I should have mentioned that "/path/to/your/Xcode.app" is
>> a placeholder for the actual path to your Xcode.app. So for example if you
>> have installed Xcode into your Applications folder, then the above command
>> should read:
>> 
>> sudo xcode-select -s /Applications/Xcode.app
>> 
>> *>>>>>>>Launching X-Code I get an unknown error with a long field of text
>> in the console.  Want to see it? *
>> 
>> If the previous command does not make any difference, then yes please :)
>> 
>> Which version of Xcode have you installed BTW?
>> 
>> Kind regards,
>> Panos
>> --
>> 
>> On Tue, 16 Jun 2020 at 15:04, David V Glasgow via use-livecode <
>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>>> 
>>> 
>>>> On 15 Jun 2020, at 5:04 pm, panagiotis merakos via use-livecode <
>>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> wrote:
>>>> 
>>>> Hello David,
>>>> 
>>>> Where have you installed Xcode?
>>>> 
>>>> Could you try this in a terminal:
>>>> 
>>>> sudo xcode-select -s /path/to/your/Xcode.app
>>> 
>>> 
>>> In response to this I get
>>> 
>>> xcode-select: error: invalid developer directory '/path/to/your/Xcode.app'
>>> 
>>> Launching X-Code I get an unknown error with a long field of text in the
>>> console.  Want to see it?
>>> 
>>> Cheers,
>>> 
>>> David G
>>> 
>>>> 
>>>> Also, it might be worth opening Xcode first (in case you have never
>>> opened
>>>> it).
>>>> 
>>>> Kind regards,
>>>> Panos
>>>> --
>>>> 
>>>> On Mon, 15 Jun 2020 at 18:12, David V Glasgow via use-livecode <
>>>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> 
>>>> wrote:
>>>> 
>>>>> Hi Panos,
>>>>> 
>>>>> The tools appeared to install, but the error(s) still appear, and the
>>>>> standalone isn’t saved.
>>>>> 
>>>>> Best wishes,
>>>>> 
>>>>> David G
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com <mailto: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 <mailto: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: Build problems with 9.6 [mostly fixed]

2020-06-20 Thread David V Glasgow via use-livecode
Updating to Xcode 10.1 did the trick, so it looks like something had gone awry 
with the previous Xcode install.  I really hadn’t  appreciated that there is 
any LC dependency on Xcode with respect to desktop builds.

Thanks for the advice Panos.

I now get a build, but with the warning “could not auto-detect inclusions or 
security categories because stack is password protected”

This didn’t happen in 7.x or 8.x, and as far as I know, the stack is not 
encrypted.  I have seen a discussion of the same message with a script only 
stack, but I couldn’t see any real connection with my case.  

I tried 

set the password of stack "ISOPtex" to empty

in the message box, but still got the same message on build.

Any suggestions anyone?

Thanks David G

> On 16 Jun 2020, at 1:11 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello David,
> 
> Sorry about that, I should have mentioned that "/path/to/your/Xcode.app" is
> a placeholder for the actual path to your Xcode.app. So for example if you
> have installed Xcode into your Applications folder, then the above command
> should read:
> 
> sudo xcode-select -s /Applications/Xcode.app
> 
> *>>>>>>>Launching X-Code I get an unknown error with a long field of text
> in the console.  Want to see it? *
> 
> If the previous command does not make any difference, then yes please :)
> 
> Which version of Xcode have you installed BTW?
> 
> Kind regards,
> Panos
> --
> 
> On Tue, 16 Jun 2020 at 15:04, David V Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>> 
>>> On 15 Jun 2020, at 5:04 pm, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hello David,
>>> 
>>> Where have you installed Xcode?
>>> 
>>> Could you try this in a terminal:
>>> 
>>> sudo xcode-select -s /path/to/your/Xcode.app
>> 
>> 
>> In response to this I get
>> 
>> xcode-select: error: invalid developer directory '/path/to/your/Xcode.app'
>> 
>> Launching X-Code I get an unknown error with a long field of text in the
>> console.  Want to see it?
>> 
>> Cheers,
>> 
>> David G
>> 
>>> 
>>> Also, it might be worth opening Xcode first (in case you have never
>> opened
>>> it).
>>> 
>>> Kind regards,
>>> Panos
>>> --
>>> 
>>> On Mon, 15 Jun 2020 at 18:12, David V Glasgow via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>>> Hi Panos,
>>>> 
>>>> The tools appeared to install, but the error(s) still appear, and the
>>>> standalone isn’t saved.
>>>> 
>>>> Best wishes,
>>>> 
>>>> David G
>> 
>> ___
>> 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: Build problems with 9.6

2020-06-16 Thread David V Glasgow via use-livecode


> On 16 Jun 2020, at 1:11 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Sorry about that, I should have mentioned that "/path/to/your/Xcode.app" is
> a placeholder for the actual path to your Xcode.app.


Oh boy.  Feel a bit dumb now!

Currently 10.1, downloading 11 now, just in case.

response this time 

You have new mail in /var/mail/mrdglasgow

… which was a report.  I searched for ‘error’ and there were none, but 
launching Xcode resulted in the same error as before.

Is it worth trying a build with LC, or should I install Xcode 11?

Cheers

David G
___
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: Build problems with 9.6

2020-06-16 Thread David V Glasgow via use-livecode


> On 15 Jun 2020, at 5:04 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello David,
> 
> Where have you installed Xcode?
> 
> Could you try this in a terminal:
> 
> sudo xcode-select -s /path/to/your/Xcode.app


In response to this I get

xcode-select: error: invalid developer directory '/path/to/your/Xcode.app'

Launching X-Code I get an unknown error with a long field of text in the 
console.  Want to see it? 

Cheers,

David G

> 
> Also, it might be worth opening Xcode first (in case you have never opened
> it).
> 
> Kind regards,
> Panos
> --
> 
> On Mon, 15 Jun 2020 at 18:12, David V Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Panos,
>> 
>> The tools appeared to install, but the error(s) still appear, and the
>> standalone isn’t saved.
>> 
>> Best wishes,
>> 
>> David G

___
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: Build problems with 9.6

2020-06-15 Thread David V Glasgow via use-livecode
Hi Panos,

The tools appeared to install, but the error(s) still appear, and the 
standalone isn’t saved.

Best wishes,

David G

> On 15 Jun 2020, at 1:04 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello David,
> 
> Could you try what is suggested in
> https://quality.livecode.com/show_bug.cgi?id=22740?
> 
> Kind regards,
> Panos
> --
> 
> On Mon, 15 Jun 2020 at 14:02, David V Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Should have said, MacOS 10.13.6
>> 
>>> On 15 Jun 2020, at 11:20 am, David V Glasgow 
>> wrote:
>>> 
>>> Hi Folks,
>>> 
>>> I have been trying out 9.6 on Mac on a stack developed with 7.1.4.  I
>> made some minor tweaks to the stack and then tried to build a standalone.
>> I didn’t check change the default build settings.  It built for linux, then
>> entered a blizzard of 'stack with the same name is in memory’ alerts then
>> crashed.
>>> 
>>> I relaunched and switched off builds for Win, Mac 32 bit and Linux, so
>> building just for Mac 64 (which was all I wanted).  Build for mobile both
>> unchecked by default
>>> 
>>> This failed with the following error(s)
>>> 
>>> There was an error while saving the
>>> standalone application
>>> 
>>> Adding ad-hoc signature failed with error:
>>> /Users/mrdglasgow/Dropbox/Rev
>>> Dev/ISOtex/Forinan12/Forinan.app:
>>> replacing existing signature
>>> 
>>> Agreeing to the Xcode/iOS license requires
>>> admin privileges, please run xcodebuild -license,All and then retry this
>>> command.
>>> 
>>> /Users/mrdglasgow/Dropbox/Rev
>>> Dev/ISOtex/Forinan12/Forinan.app: the
>>> codesign_allocate helper tool cannot be
>>> found or used
>>> 
>>> Que Pasa?  This isn’t for distribution or anything, and I have never
>> tried to sign anything previously built.
>>> 
>>> Cheers,
>>> 
>>> David Glasgow
>> 
>> ___
>> 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: Build problems with 9.6

2020-06-15 Thread David V Glasgow via use-livecode
Should have said, MacOS 10.13.6

> On 15 Jun 2020, at 11:20 am, David V Glasgow  wrote:
> 
> Hi Folks,
> 
> I have been trying out 9.6 on Mac on a stack developed with 7.1.4.  I made 
> some minor tweaks to the stack and then tried to build a standalone.  I 
> didn’t check change the default build settings.  It built for linux, then 
> entered a blizzard of 'stack with the same name is in memory’ alerts then 
> crashed.
> 
> I relaunched and switched off builds for Win, Mac 32 bit and Linux, so 
> building just for Mac 64 (which was all I wanted).  Build for mobile both 
> unchecked by default
> 
> This failed with the following error(s)
> 
> There was an error while saving the
> standalone application
> 
> Adding ad-hoc signature failed with error:
> /Users/mrdglasgow/Dropbox/Rev
> Dev/ISOtex/Forinan12/Forinan.app:
> replacing existing signature
> 
> Agreeing to the Xcode/iOS license requires
> admin privileges, please run xcodebuild -license,All and then retry this
> command.
> 
> /Users/mrdglasgow/Dropbox/Rev
> Dev/ISOtex/Forinan12/Forinan.app: the
> codesign_allocate helper tool cannot be
> found or used
> 
> Que Pasa?  This isn’t for distribution or anything, and I have never tried to 
> sign anything previously built.  
> 
> Cheers,
> 
> David Glasgow

___
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


Build problems with 9.6

2020-06-15 Thread David V Glasgow via use-livecode
Hi Folks,

I have been trying out 9.6 on Mac on a stack developed with 7.1.4.  I made some 
minor tweaks to the stack and then tried to build a standalone.  I didn’t check 
change the default build settings.  It built for linux, then entered a blizzard 
of 'stack with the same name is in memory’ alerts then crashed.

I relaunched and switched off builds for Win, Mac 32 bit and Linux, so building 
just for Mac 64 (which was all I wanted).  Build for mobile both unchecked by 
default

This failed with the following error(s)

There was an error while saving the
standalone application

Adding ad-hoc signature failed with error:
/Users/mrdglasgow/Dropbox/Rev
Dev/ISOtex/Forinan12/Forinan.app:
replacing existing signature

Agreeing to the Xcode/iOS license requires
admin privileges, please run xcodebuild -license,All and then retry this
command.

/Users/mrdglasgow/Dropbox/Rev
Dev/ISOtex/Forinan12/Forinan.app: the
codesign_allocate helper tool cannot be
found or used

Que Pasa?  This isn’t for distribution or anything, and I have never tried to 
sign anything previously built.  

Cheers,

David Glasgow
___
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: Unicode and languages

2020-06-07 Thread David V Glasgow via use-livecode
Ha!  You beat me to it, Alex.  The only extra is that Paul might be able to 
identify very common but distinct markers to identify the language, and create 
a simple algorithm.  

Made me wonder how Google translate does it when it is set to 'detect language’

Cheers,

David G 

> On 6 Jun 2020, at 2:11 pm, Alex Tweedly via use-livecode 
>  wrote:
> 
> If you simply need to protect users in the scenario you describe, then you 
> could try a simple heuristic
> 
>  - extract the first 100 (200? - 500?) characters (or first 20 words)
> 
>  - spell check that
> 
>  - if there are more than 10 (20? - 50??) spelling errors then flag it as a 
> likely language mismatch.
>  - and if not, proceed to do the spellcheck.
> 
> Adjust the numbers until it gives protection without too many false positives.
> 
> Alex.
> 
> On 05/06/2020 18:15, Paul Dupuis via use-livecode wrote:
>> In all the added stuff the LC7 and higher Unicode engine includes, is there 
>> any way to determine the LANGUAGE of a range of text?
>> 
>> USE-CASE
>> 
>> We have a tool that helps researchers transcribe text from digital media. It 
>> is used internationally. We have added spell checking using lclSpell form 
>> Live Code Labs, a LiveCode store add-on.
>> 
>> For lclSpell, we only have Dictionaries for a small set of languages. You 
>> can build you own Dictionaries for lclSpell, but we'll still only have 
>> Dictionaries for a small subset of the languages people transcribe in. We 
>> also have people who do BOTH transcription AND translations.
>> 
>> For example, transcribing a Chinese language media recording, typing in the 
>> Simplified or Traditional Chinese characters AND then translate it to 
>> English, typing the English translation after the transcription.
>> 
>> With lclSpell (or I suspect ANY LiveCode compatible spell checker) if you 
>> try to spell check a reasonably large chunk of text that is NOT in the same 
>> language as your Dictionary, it ties up LiveCode forever, or at least such a 
>> long time and most people would force-quit. It is after all marking every 
>> word as misspelled and trying to do whatever it does to determine  that.
>> 
>> Now, you can react, that the researcher should just KNOW better than to do 
>> Spell check a text in a language that is not their loaded Dictionary! 
>> However, people are people, and will do such things and expect software to 
>> protect them from their own mistakes. Also, with mixed transcription and 
>> translation, you do want to spell check the English part and skip the 
>> Chinese (if you do not have a Chinese Dictionary)
>> 
>> So, we're looking for a way to detect the LANGUAGE of a range of text, in a 
>> LiveCode field, to be able to then determine whether it matches the current 
>> (or any available) dictionary or not and act accordingly.
>> 
>> There is a "fontLanguage" function in LC, but that seem to predate Unicode 
>> Everywhere and seem pretty useless now.
>> 
>> For example. in a new stack, with a single scrolling field, we paste in a 
>> Chinese text and then execute:
>> 
>> put the fontLanguage of (the effective textfont of char 1 to -1 of fld 1)
>> 
>> and get "ansi". Even you you set the range (char 2 to 3) that is 
>> specifically Chinese (no white space), it still returns "ansi". The textFont 
>> returns empty and the effective textFont returns "Segue UI"
>> 
>> I don't even know if language exists in the IBM Unicode engine as some 
>> exportable property a future version of LiveCode could expose.
>> 
>> Any clever ideas or thoughts on this problem are welcome.
>> 
>> 
>> 
>> ___
>> 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: Any electronic document formats offering interactivity?

2020-03-19 Thread David V Glasgow via use-livecode
Thanks for responses.

I should have been clearer.  As usual.

The interactivity within LC is no problem.  The user effectively creates a 
‘dashboard’ profile representing their own assessment of multiple risk factors 
at play in a particular case.  Currently, a representation of the resultant 
profile can then be captured as static image or PDF.  To keep the dashboard as 
clean as possible, within the app, explanatory notes are hidden unless labels 
are clicked.  I was wondering if it might be possible to retain just this 
aspect of functionality.  So someone viewing previously saved profiles could 
access pop-up explanatory notes.  It seems to me that PDF could offer that, but 
1 it is hard to do and 2 many PDF viewers don’t offer the interactivity 
promised by Adobe.

I did briefly consider HTML, but wanted to deliver a single file as the output, 
and an image of the dashboard profile is essential.  

An alternative strategy I think is going to be preferable, would be to save 
locked cards to a ‘results’ stack as the output format.  I was kind of hoping 
minimally interactive profiles could be saved in a more generally accessible 
format, but it seems (once again) what is easy in LC is blimming tricky outside 
it.

Cheers,

David G

> On 19 Mar 2020, at 12:05 am, Alex Tweedly via use-livecode 
>  wrote:
> 
> Hi David,
> 
> as Richard says, there are many unknowns, or unstated constraints, etc. - so 
> anyone who would try to give a detailed answer without more details is either:
> 
>  - brave
> 
>  - foolhardy  or
> 
>  - just foolish.
> 
> 
> So here I go  you choose which of the above adjectives fits :-)
> 
> Possibly a suitable format is  HTML.
> 
> Not just any old html, but a carefully selected subset / context.
> 
> Deliver a single, self-contained file of html. CSS and a small amount of JS 
> all inline within the file.
> 
> Put in enough JS library/framework  (i.e. probably lift a minimal subset of 
> Bootstrap or similar) to provide any kinds of interactivity you need such as 
> clever tooltips, etc.), and build a LC tool to create the elements you want 
> to place.
> 
> -- Alex.
> 
> P.S. If you need images then this "single page" idea breaks - you might need 
> to make images be "in the cloud" and require Internet connectivity.
> 
> 
> On 18/03/2020 18:00, David V Glasgow via use-livecode wrote:
>> Hi folks,
>> 
>> I would like to be able to generate a document from LC consisting of a 
>> single page (effectively a copy of a card) which can offer some basic 
>> interactivity.
>> 
>> I would be pretty happy if users can create a document that would display 
>> ‘tooltip-like’ explanatory notes if summary fields are clicked.
>> 
>> I couldn’t make any sense of the interactivity offered by PDF.  I did a bit 
>> better with ePub, but the emphasis seems to be on links, animation and video 
>> etc, which is far more than I want.
>> 
>> Any advice or suggestions?
>> 
>> 
>> Best Wishes,
>> David Glasgow
>> Consultant Forensic & Clinical Psychologist
>> 
>>  <http://www.i-psych.co.uk/ <http://www.i-psych.co.uk/>> 
>> <https://twitter.com/iPsychApps <https://twitter.com/iPsychApps>>
>> 
>>  <https://twitter.com/iPsychApps <https://twitter.com/iPsychApps>> 
>> <http://uk.linkedin.com/in/davidvglasgow 
>> <http://uk.linkedin.com/in/davidvglasgow>>
>>  <http://uk.linkedin.com/in/davidvglasgow 
>> <http://uk.linkedin.com/in/davidvglasgow>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com <mailto: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 
>> <http://lists.runrev.com/mailman/listinfo/use-livecode>
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto: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 
> <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


Any electronic document formats offering interactivity?

2020-03-18 Thread David V Glasgow via use-livecode
Hi folks,

I would like to be able to generate a document from LC consisting of a single 
page (effectively a copy of a card) which can offer some basic interactivity. 

I would be pretty happy if users can create a document that would display 
‘tooltip-like’ explanatory notes if summary fields are clicked.

I couldn’t make any sense of the interactivity offered by PDF.  I did a bit 
better with ePub, but the emphasis seems to be on links, animation and video 
etc, which is far more than I want.

Any advice or suggestions?


Best Wishes,
David Glasgow
Consultant Forensic & Clinical Psychologist

  

  
 
___
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: [macOS] Notarization, hardened runtimes, LCB, and executables

2020-02-06 Thread David V Glasgow via use-livecode
I have to say that this fills me with despair.  I try hard to  write serious, 
useful  programs, for fellow professionals,  but I am not a developer by trade 
or training.  I have a full time job, which subsidises my time using LC

The beauty of LC (and Metacard before it)  has always been how amazingly easy 
it is to write something genuinely useful and share it with others, pretty much 
irrespective of platform.  I used to just share with colleagues via DropBox.  

Now I look at an app I have developed and realise I have neither the time or 
technical ability to navigate through certification and notarization.  

Is this the beginning of the end for enthusiast developers?


Best wishes,

David Glasgow





> On 6 Feb 2020, at 5:22 pm, Trevor DeVore via use-livecode 
>  wrote:
> 
> On Thu, Feb 6, 2020 at 10:23 AM Trevor DeVore 
> wrote:
> 
>> 
>> After packaging up the app I did a quick test to make sure the new feature
>> worked on my machine. It didn't. The error message was about some code
>> trying to execute that wasn't signed and some note about library validation
>> or something or other (I didn't write it down).
>> 
> 
> Actually, I did capture the error:
> 
> [13283] Error loading Python lib
> '/var/folders/px/g8hg_x_10697wwmdb9t3thd4gn/T/_MEIT0IjWA/Python':
> dlopen:
> dlopen(/var/folders/px/g8hg_x_10697wwmdb9t3thd4gn/T/_MEIT0IjWA/Python,
> 10): no suitable image found.  Did find:
> /var/folders/px/g8hg_x_10697wwmdb9t3thd4gn/T/_MEIT0IjWA/Python: code
> signature in
> (/var/folders/px/g8hg_x_10697wwmdb9t3thd4gn/T/_MEIT0IjWA/Python) not
> valid for use in process using Library Validation: mapped file has no
> cdhash, completely unsigned? Code has to be at least ad-hoc signed.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.com
> ___
> 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: Parent Group of the Target

2020-01-07 Thread David V Glasgow via use-livecode
The wonderful “Owner” is the property you’re after, I think.

Hope that is useful.  If it is, possibly my first time!

Best wishes,

David Glasgow

> On 7 Jan 2020, at 3:18 pm, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> I could have sworn we passed way before, but I can't find it anywhere on the 
> list
> 
> what is the most efficient was to get the name of the "Parent Group" of the 
> target?
> 
> Do we really have to parse this?
> 
> widget id 67388 of group id 67392 of card id 8169 of stack 
> "/Users/brahmanathaswami/Documents/_Siva-Siva-App/Siva-Siva-Portal.livecode"
> 
> To get the name of "group id 67392"
> 
> ?
> 
> 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: CEF Browser woes! no console.

2019-10-24 Thread David V Glasgow via use-livecode



> On 24 Oct 2019, at 3:49 pm, Tom Glod via use-livecode 
>  wrote:
> 
> crap. sorry ... its http://radio.garden 

No No No No No! I have WORK to do!
___
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 does OSX tell what app to open when you double click a file?

2019-08-08 Thread David V Glasgow via use-livecode
Hah! The devil is in the last line. (not to mention that the criteria don’t 
seem to match what actually happens)

> On 8 Aug 2019, at 12:34 pm, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 8/6/2019 10:10 PM, Mark Waddingham via use-livecode wrote:
>> On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote:
>>> For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all
>>> had a info.plist defintion for a .xyz file extension onto a virgin OSX
>>> system out of the box and then double-clicked a .wyz file, which of
>>> the 5 would open?
>> 
>> I *think* the answer to this question probably lies here:
>> 
>> https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP3999-CH202-TP9
>>  
>> 
>> The sections on 'Application Registration' and 'Preferred Applications' are 
>> probably the most pertinent - although it isn't entirely clear how the two 
>> mechanisms co-exist: registration suggests the 'most recent' modification 
>> time wise app is stored against a file kind, but preferred applications 
>> suggests that multiple apps are stored but the newest CFBundleVersion wise 
>> is chosen.
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
> 
> Thank you again!
> 
> This section of that web page was exactly what I was looking for:
> 
> 
> Preferred Application for a Document
> 
> For individual document files (whether specified by a file-system reference 
> or a URL with scheme |file|), the criteria are as follows:
> 
> 1.
> 
>   If the user has specified an explicit binding for the document (or
>   for the entire document type to which it belongs), the preferred
>   application is the one the user has specified.
> 
> 2.
> 
>   If the document has a filename extension (or if one has been
>   specified as a parameter to |LSGetApplicationForInfo|), find all
>   applications in the Launch Services database that claim to accept
>   documents with that extension.
> 
> 3.
> 
>   If the document carries a four-character file type (or if one has
>   been specified as a parameter), find all applications that claim to
>   accept files of that type.
> 
> 4.
> 
>   If more than one application has been found as a result of steps
>   2–3, apply the following criteria in the order shown:
> 
>1.
> 
>   If the document carries a four-character creator signature (or
>   if one has been specified as a parameter), give preference to
>   any application that claims to accept documents with that
>   signature (typically the application to which the signature
>   belongs).
> 
>2.
> 
>   Give preference to native OS X applications over those that run
>   in the Classic emulation environment.
> 
>3.
> 
>   Give preference to applications residing on the boot volume over
>   those residing on other file-system volumes.
> 
>4.
> 
>   Give preference to applications residing on a local volume over
>   those residing on a remote volume.
> 
>5.
> 
>   If two or more versions of the same application have been found,
>   give preference to the one with the latest version number as
>   identified by |CFBundleVersion
>   
> |.
> 
> If two or more candidate applications remain after all of the foregoing 
> criteria have been applied, Launch Services chooses one of the remaining 
> applications in an unspecified manner.
> 
> 
> ___
> 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 does OSX tell what app to open when you double click a file?

2019-08-07 Thread David V Glasgow via use-livecode
No idea if this is any help at all, but I run two versions of Apple Pages (I 
have my reasons… ;-)

I have the older version set as the default for all Pages documents, and make 
exceptions when I need to.  Interestingly, MacOS 10.13.6 gets confused 
sometimes.  Even if a document is set to open with the newer version, some 
launch the older version.  Can’t always see why.

They also always open with the older version, if that version is already open, 
irrespective of the setting in Get Info.  Except if you use “open with” 8.1, 
then the later version is launched and used.

I have also noticed that some docs are set to open with the older version with 
the text in the get info 'open with' drop down menu saying 

Pages (Default) (4.3)

Whereas others just say

Pages (4.3)

I can’t work out if there is a difference between the two, but the drop down 
menu also normally offers 

Pages (Default) (8.1) 

Which is only effective if 4.3 is not open

So this looks like a dark art not even the Apple Developers have mastered.  
Although I guess they would argue that no one in their right minds runs more 
than one version of the same app. 

Cheers,

David G

> On 7 Aug 2019, at 3:10 am, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote:
>> For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all
>> had a info.plist defintion for a .xyz file extension onto a virgin OSX
>> system out of the box and then double-clicked a .wyz file, which of
>> the 5 would open?
> 
> I *think* the answer to this question probably lies here:
> 
> https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP3999-CH202-TP9
> 
> The sections on 'Application Registration' and 'Preferred Applications' are 
> probably the most pertinent - although it isn't entirely clear how the two 
> mechanisms co-exist: registration suggests the 'most recent' modification 
> time wise app is stored against a file kind, but preferred applications 
> suggests that multiple apps are stored but the newest CFBundleVersion wise is 
> chosen.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: 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

___
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: Do variable vs field as AppleScript

2019-07-04 Thread David V Glasgow via use-livecode
Thanks, Bob, that’s what I suspected.

From the UI point of view, its just feels a bit clunky - combined with being 
uncertain about whether the speechrecognitionserver is still working or whether 
recognition has failed, and whether the human  needs to repeat the phrase or 
not.

Maybe I am conflating two issues, but I wondered whether I could get it all to 
be a bit more brisk.

Cheers,

David G

> On 3 Jul 2019, at 3:55 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> Relative to the speech recognition, and there only being several hundred 
> iterations, I would say hardly. if it added 20 milliseconds to a process that 
> takes many tens of minutes (I suspect the speech has to be uttered in real 
> time) I hardly call that a delay. 
> 
> Bob S
> 
> 
>> On Jul 3, 2019, at 03:28 , David V Glasgow via use-livecode 
>>  wrote:
>> 
>> I have a script which in the fullness of time will repeatedly (several 
>> hundred times) run a list of commands as an Applescript.  It will take a 
>> fair bit of time to loop through because each iteration involves speech 
>> recognition.
>> 
>> My question is, will there be any meaningful speed advantage to storing the 
>> AppleScript in a variable rather than field?  This doesn’t mean finishing 
>> all 340 iterations faster, because the slowdown is the human thinking about 
>> the question and giving a response.  I’m thinking about a bit more 
>> responsivity from 
>> 
>> tell application "SpeechRecognitionServer"
>>  local tresult, choicesLanguageModel, titem
>>  set choicesLanguageModel to {"false", "slightly true", "mainly true", 
>> "very true"}
>> set tPrompt to "item 6"
>>  set tresult to listen for choicesLanguageModel with prompt tPrompt 
>> giving up after 30
>>  say tresult
>>  return tresult
>> end tell
>> 
>> (I should say that the line "set tPrompt to "item 6”” looks a bit weird 
>> because it is incremented under script control, and when that happens the 
>> indent is lost.)
>> 
>> I know I could test, but if someone just knows….
>> 
>> Cheers
>> 
>> David Glasgow
> 
> ___
> 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

Do variable vs field as AppleScript

2019-07-03 Thread David V Glasgow via use-livecode
I have a script which in the fullness of time will repeatedly (several hundred 
times) run a list of commands as an Applescript.  It will take a fair bit of 
time to loop through because each iteration involves speech recognition.

My question is, will there be any meaningful speed advantage to storing the 
AppleScript in a variable rather than field?  This doesn’t mean finishing all 
340 iterations faster, because the slowdown is the human thinking about the 
question and giving a response.  I’m thinking about a bit more responsivity 
from 

tell application "SpeechRecognitionServer"
local tresult, choicesLanguageModel, titem
set choicesLanguageModel to {"false", "slightly true", "mainly true", 
"very true"}
set tPrompt to "item 6"
set tresult to listen for choicesLanguageModel with prompt tPrompt 
giving up after 30
say tresult
return tresult
end tell

(I should say that the line "set tPrompt to "item 6”” looks a bit weird because 
it is incremented under script control, and when that happens the indent is 
lost.)

I know I could test, but if someone just knows….

Cheers

David Glasgow
___
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: teeny tiny answer dialog text on Windows

2019-06-19 Thread David V Glasgow via use-livecode
Yeah, I did wonder that, too.   On openstack (mainstack ) I set the font to 
Arial.  I will double check just in case I have contradicted that somewhere 
else, but I don’t think that is it.

Cheers,

David G

> On 19 Jun 2019, at 4:09 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> I wonder what the default font for the stack is? I know new fields will 
> "inherit" the font of the stack. Perhaps dialogs do too. When I look at one 
> of my stacks, the stack font is, "System Font Regular". If the font for the 
> stack was set to a font that only exists on the MacOS, Windows will attempt 
> to substitute for a near match, which usually does not end well. 
> 
> Bob S
> 
> 
>> On Jun 19, 2019, at 08:02 , David V Glasgow via use-livecode 
>>  wrote:
>> 
>> Hello, folks.
>> 
>> Having returned to work on an old stack I have found that whereas standalone 
>> answer dialogs look fine on Mac, on Windows (10) the text (eg. “Do you 
>> really want to quit?”) is so small it is barely legible.  (Building on Mac 
>> 10.12 and 10.13)
>> 
>> I set the font to Arial, so although I would expect some font difference, 
>> there won’t be  problem with missing font.  I also built standalones with LC 
>> 7.x and 8.x, because I seem to remember that fonts changed in some way in 
>> LC8.  No obvious difference between them, and no improvement.
>> 
>> Before I resort to setting font size via HTML in script for each dialog in 
>> turn, any suggestions for a  global fix?
>> 
>> Thanks
>> 
>> Best Wishes,
>> David Glasgow
>> Consultant Forensic & Clinical Psychologist
> 
> ___
> 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

teeny tiny answer dialog text on Windows

2019-06-19 Thread David V Glasgow via use-livecode
Hello, folks.

Having returned to work on an old stack I have found that whereas standalone 
answer dialogs look fine on Mac, on Windows (10) the text (eg. “Do you really 
want to quit?”) is so small it is barely legible.  (Building on Mac 10.12 and 
10.13)

I set the font to Arial, so although I would expect some font difference, there 
won’t be  problem with missing font.  I also built standalones with LC 7.x and 
8.x, because I seem to remember that fonts changed in some way in LC8.  No 
obvious difference between them, and no improvement.

Before I resort to setting font size via HTML in script for each dialog in 
turn, any suggestions for a  global fix?

Thanks

Best Wishes,
David Glasgow
Consultant Forensic & Clinical Psychologist

 
___
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 Re: repeat with times

2019-05-23 Thread David V Glasgow via use-livecode
What if Yoda you are?

> On 23 May 2019, at 7:57 am, Richmond via use-livecode 
>  wrote:
> 
> If I write: The dog me bit.
> 
> It is wrong: it is not a bug, nor a regression.

___
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


Woo License Keys Manager

2019-01-30 Thread David V Glasgow via use-livecode
Does anyone use the above for managing keys on their LC apps?  If so, are you 
happy with it?  

Conversely, anyone recommend any other solutions, whether just license 
management, or complete ecommece?

Cheers,

David Glasgow
___
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: Displaying or identifying emoji

2019-01-24 Thread David V Glasgow via use-livecode
That’s fantastic! Thanks Ali, very helpful.  Awww.  ‚ù§Ô∏è is a heart!

Thanks again.

> On 24 Jan 2019, at 8:45 am, Ali Lloyd  wrote:
> 
> For the specific examples you have there, simply putting the strings through 
> textDecode(, "utf-8") will give you your emoji back.
> 
> On Wed, Jan 23, 2019 at 4:34 PM David V Glasgow via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> 
> > On 23 Jan 2019, at 2:15 pm, Stephen MacLean via use-livecode 
> > mailto:use-livecode@lists.runrev.com>> 
> > wrote:
> > 
> > You say you are importing them? From where? A text file or DB?
> 
> Basically, Stephen, I take what I am given.  
> 
> Could be plain text, Word, HTML , even spreadsheetn- and often I don’t know 
> any intermediate steps between the original chat record (on whatever device 
> and in whatever software was involved), and the final format I receive.  
> Usually I get a digital record, but the last one I received was a scan of a 
> fax of a Word document.
> 
> I was hoping for easy way to back translate, gobbledegook to emoji ID/code, 
> but it looks like maybe there isn’t one.  
> 
> Thanks to all who chipped in.
> 
> Cheers,
> 
> David Glasgow
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto: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 
> <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: Displaying or identifying emoji

2019-01-23 Thread David V Glasgow via use-livecode


> On 23 Jan 2019, at 2:15 pm, Stephen MacLean via use-livecode 
>  wrote:
> 
> You say you are importing them? From where? A text file or DB?

Basically, Stephen, I take what I am given.  

Could be plain text, Word, HTML , even spreadsheetn- and often I don’t know any 
intermediate steps between the original chat record (on whatever device and in 
whatever software was involved), and the final format I receive.  Usually I get 
a digital record, but the last one I received was a scan of a fax of a Word 
document.

I was hoping for easy way to back translate, gobbledegook to emoji ID/code, but 
it looks like maybe there isn’t one.  

Thanks to all who chipped in.

Cheers,

David Glasgow



___
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

Displaying or identifying emoji

2019-01-23 Thread David V Glasgow via use-livecode
Hello folks,

I am working on imported text messages from various sources, and which have 
been through various (unknown) processes/displays before I get them.  Some 
retain emoji intact, but others render them as an odd series of characters 
(presumably having been substituted when stored in a non-unicode environment):

582 hexman555 (04/17/15 11:13:54 PM): I'll be here 😊❤️
600 hexman555 (04/17/15 11:32:15 PM): Me too ❤️
615 hexman555 (04/17/15 11:49:18 PM): Thank you ❤️💋
625 hexman555 (04/17/15 11:52:29 PM): ❤️❤️❤️

 I would like to know which emoji were being used, either by displaying them in 
the field or substituting "‚ù§Ô∏è” etc with parenthetic text describing the 
emoji.  I have tried to break emojis down, but can’t find an app that doesn’t 
display them - or rather mangles them in this way.  Similarly, I have looked at 
the ascii and hex of the component characters of the gobbledegook, but can’t 
see a pattern.

Any suggestions?


Best Wishes,
David Glasgow


  

  
 
___
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

LC Wildcard filter citation source?

2018-12-08 Thread David V Glasgow via use-livecode
Hello folks,

I am writing an academic paper on an analysis of internet predator messages 
undertaken using an LC app.  

A few of the filtered terms I used incorporated wildcards (I avoided regular 
expressions).  I need to reference a published source for the implementation of 
wildcards within LC, if such a thing exists.

Does it?

Cheers,

David Glasgow
___
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: Numbering lines

2018-10-29 Thread David V Glasgow via use-livecode
Thanks to everyone who helped me on this.  Apologies if I misdirected the 
discussion, but even that was very instructive.

My mouth hung open when I saw the cost of updating the progress bar every time 
through a loop.  

I guess I have become sloppy about time saving because most operations seem 
‘quick enough’ to me …and also it seems counterintuitive that adding a 
conditional line inside the loop would speed things up.  Useful information on 
arrays too.

Cheers,

David G
___
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

  1   2   >