Re: Would anyone miss convertOctals?

2022-06-09 Thread Devin Asay via use-livecode


On Jun 9, 2022, at 9:53 AM, Mark Waddingham via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 2022-06-09 16:33, Devin Asay via use-livecode wrote:
Wait, you said three questions. But no.

What are those two hard problems of computer science again? ;)

I forget, but I’ve encountered all six of them.

:D


--
Mark Waddingham ~ m...@livecode.com<mailto:m...@livecode.com> ~ 
http://www.livecode.com/
LiveCode: Everyone can create apps

___
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

Devin Asay
Office of Digital Humanities
Brigham Young 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: Would anyone miss convertOctals?

2022-06-09 Thread Devin Asay via use-livecode



On Jun 9, 2022, at 6:44 AM, Mark Waddingham via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

So I'm currently sitting here about to embark on fixing 
 (which is the final thing 
to sort out before being able to merge my constant expression patch) and I was 
reminded of 'convertOctals'.

Now, generally, I am somewhat averse to actually removing any language feature 
(even those we have deprecated, unless we absolutely have to!) - however, I 
would really like to make convertOctals have no effect at all in 10.0+ as it 
adds a disproportionate amount of complexity compared to (what I think, at 
least) its utility is (particularly in the context of things 'coming next' like 
the script compiler).

So three questions:

 1) Do you know what convertOctals is, and what it does?

Nope

 2) If you do, have you ever actually used it in any scripts which are actually 
still in use?

Nyet

 3) If you do use it in any scripts which are still in use, would you be 
willing to change them to not use it?

N/A

 4) If you do use/have used it, had you ever noticed that it has been slightly 
broken for years?

Wait, you said three questions. But no.

Now, its always better to offer a carrot when there is a stick (or in this 
case, an axe) being wielded and the carrot in this case would be to expand the 
numeric literal syntax to add both explicit octal and binary number literals 
alongside hexadecimal:

   0xabcdef - hex literal
   0o777 - octal literal
   0b101110101

The key difference between 0o777 and using 0777 (with convertOctals true) is 
that the former is not ambiguous at parse time, it doesn't require a runtime 
property set to true in order for the engine to convert the string to a number 
correctly.

Please let me know your thoughts :)

Warmest Regards,

Mark.

P.S. In the scheme of 'breaking changes' - we've already made a number of them 
for 10 already, and my gut tells me removing convertOctals is likely to cause 
less consternation than those we already have - but I could be wrong!

--
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

Devin Asay
Office of Digital Humanities
Brigham Young 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: Generating Random numbers to conform a distribution

2022-06-08 Thread Devin Asay via use-livecode
I think Jacque has germaniums in her garden!



On Jun 7, 2022, at 9:50 PM, Mark Wieder via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 6/7/22 20:24, J. Landman Gay via use-livecode wrote:
I don't have an answer. But apparently it's a common problem:
https://xkcd.com/2626/

Chortle.

Back in the day I would generate a random number by back-biasing a germanium 
diode and hook it up to an analog-to-digital converter. Great white noise 
generator too.

--
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

Devin Asay
Office of Digital Humanities
Brigham Young 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: HTML font size in percentages

2022-05-20 Thread Devin Asay via use-livecode
Jacque,

It sounds like the HTML tags are setting the size for runs of text in the 
field, so you can’t just set the textSize of the field?

Are there varying sizes of text runs in the field? Could you set the textSize 
of the char 1 to -1 of the field to empty, then set it for the whole field? In 
one project I’ve implemented a feature similar to what Bob was talking about 
where I increment the textSize of the field by 1 point using Cmd/Cntl + or -.

- Devin


On May 20, 2022, at 10:32 AM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I have a field whose HTMLtext is set to a heavily tagged HTML file that changes 
the font size repeatedly. We want to allow the user to adjust the size of the 
text. The easiest way would be to use percentages for the font sizes so that 
changing the field's textsize would change the markup proportionally, but LC 
fields don't seem to support that. Is there a trick or do I need to do a series 
of replacements? I'm afraid that will be too slow, there's a lot of text.

--
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

Devin Asay
Office of Digital Humanities
Brigham Young 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: Movie text tracks

2022-05-18 Thread Devin Asay via use-livecode
Sorry, I left out the punch line.

My original need was simply to extract the text tracks from the old .mov files. 
It turns out you can do that, after a fashion, with QT Pro, but it comes out 
with lots of binary cruft. I found out you can also do this with ffmpeg, the 
Swiss Army Knife of video tools. This website explains how:

https://forum.videohelp.com/threads/403944-Extract-and-convert-QuickTime-7-Pro-TextTracks

Neither method was perfect, but both were good enough for what I wanted.

- Devin

On May 18, 2022, at 2:36 PM, Devin Asay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi all,

Thanks for the advice. I wanted to follow up with what I eventually ended up 
doing.

So, both Jacque’s and Richmond’s suggestions were good, but too much work for 
just peeking at some text tracks. But they got me thinking: Hey, Windows 10 
actually still runs QT 7, and I have an old QT Pro license key for Windows. I 
wonder if it still works. (Spoiler alert—it does!) So I was at least able to 
open up the movie files. Score 1 for Microsoft and backward compatibility! And 
there, magically, were my text tracks!

Paul, I think your suggestion to encourage LiveCode to support text track 
access that exists in the modern AV frameworks is a great one. Maybe timely, 
now that the mothership has asked for top 10 bug fix requests again.

Richard, thanks for pointing me in the direction of HTML 5. It set me on a 
little journey to educate myself on the state of video captioning in *this* 
century! Definitely glad I took that little detour and learned about WebVTT 
captioning format.

Thanks again for the help and suggestions. This community never disappoints!

- Devin

On May 17, 2022, at 2:16 PM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

Or you could use an OS 9 emulator like SheepShaver where the old version of QT 
is available.
<https://sheepshaver.cebix.net/>


On 5/17/22 1:02 PM, Richmond via use-livecode wrote:
Here's a thought:
Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this:
https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html
--
Jacqueline Landman Gay | 
jac...@hyperactivesw.com<mailto:jac...@hyperactivesw.com>
HyperActive Software   | http://www.hyperactivesw.com

___
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

Devin Asay
Office of Digital Humanities
Brigham Young 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

Devin Asay
Office of Digital Humanities
Brigham Young 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: Movie text tracks

2022-05-18 Thread Devin Asay via use-livecode
Hi all,

Thanks for the advice. I wanted to follow up with what I eventually ended up 
doing.

So, both Jacque’s and Richmond’s suggestions were good, but too much work for 
just peeking at some text tracks. But they got me thinking: Hey, Windows 10 
actually still runs QT 7, and I have an old QT Pro license key for Windows. I 
wonder if it still works. (Spoiler alert—it does!) So I was at least able to 
open up the movie files. Score 1 for Microsoft and backward compatibility! And 
there, magically, were my text tracks!

Paul, I think your suggestion to encourage LiveCode to support text track 
access that exists in the modern AV frameworks is a great one. Maybe timely, 
now that the mothership has asked for top 10 bug fix requests again.

Richard, thanks for pointing me in the direction of HTML 5. It set me on a 
little journey to educate myself on the state of video captioning in *this* 
century! Definitely glad I took that little detour and learned about WebVTT 
captioning format.

Thanks again for the help and suggestions. This community never disappoints!

- Devin

On May 17, 2022, at 2:16 PM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Or you could use an OS 9 emulator like SheepShaver where the old version of QT 
is available.



On 5/17/22 1:02 PM, Richmond via use-livecode wrote:
Here's a thought:
Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this:
https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html
--
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

Devin Asay
Office of Digital Humanities
Brigham Young 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


Movie text tracks

2022-05-17 Thread Devin Asay via use-livecode
Hi all,

I’m resurrecting some QuickTime movies from years ago, and some of them have 
text tracks. (Remember those?)

In the LC player object you can still see that there is a text track with `put 
the tracks of player 1`. But there doesn’t seem to be a way anymore to show 
text tracks, either in the player object or in QT Player. All of the hits I get 
on the topic in a DuckDuckGo search are 15 - 20 years old.

Anybody know how to show, or at least recover, old text tracks from video files?

(Man I hate it when the technology gets *less* capable!)

- Devin


Devin Asay
Office of Digital Humanities
Brigham Young 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: LC subscription and special characters

2022-05-11 Thread Devin Asay via use-livecode
Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1.

https://quality.livecode.com/show_bug.cgi?id=18702


On May 10, 2022, at 11:54 PM, jbv via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thank you for your reply.
Obviously, it was possible in earlier versions of LC.

So, could someone be kind enough to make a quick test with the most recent 
versions of LC, by typing text inside a field, if special characters can be 
used, like alt+144 for É, and possibly on azerty and qwerty keyboards ?
Thank you in advance.

Le 2022-05-10 17:53, Paul Dupuis via use-livecode a écrit :
I thought I recalled a bug in the LC engine where using the keyboard
method of typing the character code, press ALT, and then press X. For
example, to type a dollar symbol ($), type 0024, press ALT, and then
press X, didn't work in Livecode. However, I just tried searching the
Livecode Quality Center for a bug number and couldn't find it so
perhaps I am mis-remembering.

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

Devin Asay
Office of Digital Humanities
Brigham Young 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: OSS installer for Linux?

2022-04-08 Thread Devin Asay via use-livecode
Thanks, Richmond!

On Apr 8, 2022, at 9:03 AM, Richmond via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

https://archive.org/download/live-code-community-linux-x64/LiveCodeCommunityInstaller-9_6_3-Linux.x64

On 8.04.22 17:58, Devin Asay via use-livecode wrote:
Hi all,

Does anyone still have the Community installer for LiveCode 9.6.3 Linux? I have 
a colleague I’m trying to show LC to, but he’s reluctant to d/l the trial 
version.

- Devin

Devin Asay
Office of Digital Humanities
Brigham Young 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


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

Devin Asay
Office of Digital Humanities
Brigham Young 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


OSS installer for Linux?

2022-04-08 Thread Devin Asay via use-livecode
Hi all,

Does anyone still have the Community installer for LiveCode 9.6.3 Linux? I have 
a colleague I’m trying to show LC to, but he’s reluctant to d/l the trial 
version.

- Devin

Devin Asay
Office of Digital Humanities
Brigham Young 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: Speed up a slow loop

2022-03-02 Thread Devin Asay via use-livecode
Jacque,

Have you tried

put the keys of sDictFile into tCorrWdList
repeat for each line I in pList
   if I is among the lines of tCorrWdList then
  put I & cr after tCheckedList
   else
  put I & cr after tNonWords
   end if
end repeat

I just wonder if there is some overhead with checking the array on each 
iteration.

But like you say, it may not be the repeat loop at all.

- Devin


On Mar 2, 2022, at 2:57 PM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

In my Boggle game I have an array containing dictionary words as keys, split as 
set, so all values are "true". I need to compare those keys with a list of user 
words and get back a list of good words and a list of illegal words.

The loop takes forever. Here it is (sDictFile is a script local):

 repeat for each line l in pList -- pList is the user word list
   if sDictFile[l] = true then put l & cr after tCheckedList
   else put l & cr after tNonWords
   wait 0 with messages  -- prevent ANRs
 end repeat

I added the wait because my Android phone was putting up an "app not 
responding" warning while the loop was running (or just after, hard to tell.) 
The loop should be much faster than that. When I added some timing checks 
though, the timer says the loop takes between 0 and 1 millisecond, and yet the 
wait on screen remains.

With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the 
loop takes 6 seconds. The more user words, the longer the wait.

Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 
the response is nearly instantaneous, even if the user list has 200+ words. On 
my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to 
trigger the ANR with only 3 words. I'm building for ARM 64.

I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 
10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something 
else.

--
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

Devin Asay
Office of Digital Humanities
Brigham Young 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: regex backreferences

2021-12-15 Thread Devin Asay via use-livecode
Thanks for confirming, Jacque and Kaveh. I figured that was the case. I can 
stop beating my head against it now!

Now for a trip to workaround land!

- Devin

On Dec 15, 2021, at 2:46 AM, Kaveh via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

This is a major shortcoming and I have wanted this for years. Thierry has
filled the gap with his excellent SunnyRex library
<https://sunny-tdz.com/livecode/sunnyrex>. I have used it successfully, I
recommend it, and it works well. He has also supported me well after I
purchased SunnyRex. But it is a proprietary dependency and that is
something at the back of my mind.

It would be great if LiveCode could add this feature. Or perhaps come to an
agreement with Thierry so that we reduce dependencies.

Regards
Kaveh

On Wed, 15 Dec 2021 at 03:42, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

I wish it did, but replaceText doesn't support back references. The
parameters at the end are treated as literals, whether as actual quoted
literals or variables containing a value.

If there isn't a feature request for it, there should be.
--
Jacqueline Landman Gay | 
jac...@hyperactivesw.com<mailto:jac...@hyperactivesw.com>
HyperActive Software | http://www.hyperactivesw.com
On December 14, 2021 6:03:12 PM Devin Asay via use-livecode
mailto:use-livecode@lists.runrev.com>> wrote:

Hi all,

Does the replaceText() function allow the use of backreferences to
retain
groupings of text between matches. For example, if I have some text like
this:

Good stuff here.

I want to end up something like this:

Good stuff here.”

In BBedit I can search for (.*) and
replace it with \1 and it preserves the run of text designated
by
parentheses.
(I know, I can get more fancy on matching the runs of html tags, but I’m
mainly interested in retaining the text, not in regex madness.)

In LC this does not work:

 put replaceText(myText,"(.*)”,”\1”) into myText

I just end up with \1, when I want Good stuff here.

Can replaceText even do this?

- Devin


Devin Asay
Office of Digital Humanities
Brigham Young University

___
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



--
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalley.io> ● Twitter
<https://twitter.com/rivervalley1000> ● LinkedIn
<https://www.linkedin.com/in/bazargankaveh/> ● ORCID
<https://orcid.org/-0002-1414-9098>
*Accelerating the Communication of Research*
___
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

Devin Asay
Office of Digital Humanities
Brigham Young 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


regex backreferences

2021-12-14 Thread Devin Asay via use-livecode
Hi all,

Does the replaceText() function allow the use of backreferences to retain 
groupings of text between matches. For example, if I have some text like this:

Good stuff here.

I want to end up something like this:

Good stuff here.”

In BBedit I can search for (.*) and replace 
it with \1 and it preserves the run of text designated by parentheses.
(I know, I can get more fancy on matching the runs of html tags, but I’m mainly 
interested in retaining the text, not in regex madness.)

In LC this does not work:

   put replaceText(myText,"(.*)”,”\1”) into myText

I just end up with \1, when I want Good stuff here.

Can replaceText even do this?

- Devin


Devin Asay
Office of Digital Humanities
Brigham Young 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: Our survey - please don't discuss :)

2021-10-27 Thread Devin Asay via use-livecode
And, like magic, I got a followup request to complete the survey today. Somehow 
I missed the first request.

Submitted my 10 “boogs”.

- Devin

> On Oct 27, 2021, at 9:22 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Well then it remains for someone to explain how I got the survey recently in 
> my inbox. 
> 
> Bob S
> 
> 
>> On Oct 27, 2021, at 03:47 , Richmond via use-livecode 
>>  wrote:
>> 
>> I have a feeling that the whole thing was a chimaera that disappeared almost 
>> as soon
>> as it was mooted.
>> 
>> Certainly, without any indications to the opposite from LC centre I feel 
>> that is the
>> way we should behave.
>> 
>> Richmond.
>> 
>> On 27.10.21 12:58, Tiemo via use-livecode wrote:
>>> I didn't received any survey email either, nore in spam, though I got three 
>>> other livecode newsletters in October.
>>> 
>>> Tiemo
>>> 
>>> -Ursprüngliche Nachricht-
>>> Von: use-livecode  Im Auftrag von 
>>> Devin Asay via use-livecode
>>> Gesendet: Freitag, 22. Oktober 2021 20:03
>>> An: How to use LiveCode 
>>> Cc: Devin Asay 
>>> Betreff: Re: Our survey - please don't discuss :)
>>> 
>>> I didn’t receive it either.
>>> 
>>> - Devin
>>> 
>>>> On Oct 22, 2021, at 11:17 AM, Heather Laine via use-livecode 
>>>>  wrote:
>>>> 
>>>> @Sean - I can try. I didn't see an obvious way to do so in the interface. 
>>>> I will return to this on Monday, when we will send out a survey reminder. 
>>>> @Jacque and  any others that want the survey and didn't get it...  I will 
>>>> try and ensure those that wish to receive this survey do so on Monday. I'm 
>>>> am out of time today I'm afraid, but don't worry, we're not going to close 
>>>> this survey quickly. We want plenty of input.
>>>> 
>>>> Best Regards to all,
>>>> 
>>>> Heather
>>>> 
>>>> Heather Laine
>>>> Customer Services Manager
>>>> LiveCode Ltd
>>>> www.livecode.com
>>>> 
>>>> 
>>>> 
>>>>> On 22 Oct 2021, at 14:25, Sean Cole via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> Are you able to resubscribe me as I am certain I never knowingly
>>>>> checked any box to remove my voice from these kinds of discussions?
>>>>> There is not a chance I would have. I may have asked SurveyMonkey to
>>>>> stop sending me random questionnaires but not specifically from LC. Ever!
>>>>> Sean
>>>>> 
>>>>> On Fri, 22 Oct 2021 at 14:11, Heather Laine via use-livecode <
>>>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>>> I'm afraid not. Surveymonkey only tells me who has unsubscribed. It
>>>>>> does not tell me when or how.
>>>>>> 
>>>>>> Best Regards,
>>>>>> 
>>>>>> Heather
>>>>>> 
>>>>>> Heather Laine
>>>>>> Customer Services Manager
>>>>>> LiveCode Ltd
>>>>>> www.livecode.com
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On 22 Oct 2021, at 13:33, Pi Digital via use-livecode <
>>>>>> use-livecode@lists.runrev.com> wrote:
>>>>>>> 
>>>>>>>> Come on, how should Matthias know?
>>>>>>> He won’t. Heather might. Obviously 
>>>>>>> 
>>>>>>> ___
>>>>>>> use-livecode mailing list
>>>>>>> use-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
>>>>&

Re: Our survey - please don't discuss :)

2021-10-22 Thread Devin Asay via use-livecode
I didn’t receive it either. 

- Devin

> On Oct 22, 2021, at 11:17 AM, Heather Laine via use-livecode 
>  wrote:
> 
> @Sean - I can try. I didn't see an obvious way to do so in the interface. I 
> will return to this on Monday, when we will send out a survey reminder. 
> @Jacque and  any others that want the survey and didn't get it...  I will try 
> and ensure those that wish to receive this survey do so on Monday. I'm am out 
> of time today I'm afraid, but don't worry, we're not going to close this 
> survey quickly. We want plenty of input.
> 
> Best Regards to all,
> 
> Heather
> 
> Heather Laine
> Customer Services Manager
> LiveCode Ltd
> www.livecode.com
> 
> 
> 
>> On 22 Oct 2021, at 14:25, Sean Cole via use-livecode 
>>  wrote:
>> 
>> Are you able to resubscribe me as I am certain I never knowingly checked
>> any box to remove my voice from these kinds of discussions? There is not a
>> chance I would have. I may have asked SurveyMonkey to stop sending me
>> random questionnaires but not specifically from LC. Ever!
>> Sean
>> 
>> On Fri, 22 Oct 2021 at 14:11, Heather Laine via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> I'm afraid not. Surveymonkey only tells me who has unsubscribed. It does
>>> not tell me when or how.
>>> 
>>> Best Regards,
>>> 
>>> Heather
>>> 
>>> Heather Laine
>>> Customer Services Manager
>>> LiveCode Ltd
>>> www.livecode.com
>>> 
>>> 
>>> 
 On 22 Oct 2021, at 13:33, Pi Digital via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
 
 
> Come on, how should Matthias know?
 He won’t. Heather might. Obviously 
 
 ___
 use-livecode mailing list
 use-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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Keep stack proportions when resizing

2021-10-08 Thread Devin Asay via use-livecode
Peter,

I asked this question several years ago and what I gathered is that it’s not 
easy because window resizing is under the control of the operating system, and 
LiveCode can’t really override it.

My attempts were not completely satisfactory:

I have a stack that I want to constrain to a 4:3 ratio when resizing, with a 
minimum stack size of 800 X 600. A search of the archives didn't yield any 
relevant results.

If I do this (in the resizeStack handler):

 put the topLeft of this stack into tAnchorPnt
 set the height of this stack to (pNewWdth * 3) div 4
 set the topLeft of this stack to tAnchorPnt

it works as long as my drag on the resize gadget has a horizontal component.

Likewise, this works:

 put the topLeft of this stack into tAnchorPnt
 set the width of this stack to (pNewHgt * 4) div 3
 set the topLeft of this stack to tAnchorPnt

as long as there is a vertical component to the drag.

This:

 put the topLeft of this stack into tAnchorPnt
 if pNewWdth <> pOldWdth then
   set the height of this stack to (pNewWdth * 3) div 4
 else
   set the width of this stack to (pNewHgt * 4) div 3
 end if
 set the topLeft of this stack to tAnchorPnt

Just produces bizarre results.

After I posted about it,I did get a few workarounds.

Scott Rossi suggested that you create your own resize handle instead of using 
the one built-in to the window:

One way to do this is to use a dedicated object for the resizer and to
calculate the new dimensions before resizing the stack.

Execute this in your message box:
go url "http://www.tactilemedia.com/download/constrained.livecode;

This demonstrates one way to do a 4 x 3 ratio stack.  I'm not sure if it's
possible to get the window refresh to completely sync with the location of
the resizer, but maybe this will get you close.

Roger Eller and Berndt Niggeman suggested that you can’t do it in real time, 
but you could “snap” it to the correct size after resizing:

I am with Roger on this.

here is a little code snippet that does constrain the aspect after resizing

---
on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight

  -- block repeat loop if you want to have all the changes occur after last
resize, kind of animation
  repeat for each line aMessage in the pendingMessages
 if aMessage contains "adjustRatio" then cancel item 1 of aMessage
  end repeat

  send "adJustRatio pNewWidth, pNewHeight, pOldWidth, pOldHeight" to me in
0 milliseconds
end resizeStack

on adJustRatio pNewWidth, pNewHeight, pOldWidth, pOldHeight
  put round (pNewWidth / 2) into tNewHeight
  put the rect of me into tRect
  put item 2 of tRect + tNewHeight into item 4 of tRect
  set the rect of me to tRect
end adJustRatio
---


Dunbarx suggested trapping the resizeStack handler, but that doesn’t seem to 
work just right, probably because the message is sent *after* the resize, not 
before.

Hope this helps.

- Devin


On Oct 8, 2021, at 1:18 PM, Peter Bogdanoff via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Does anyone have a script to keep a stack’s proportions constant when the user 
is changing the stack size by dragging the lower right corner? This is a stack 
with a control containing a video or image. I’ve used the geometry manager for 
the objects within the stack but the stack itself needs to be shaped correctly.

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Drag and drop within a list field

2021-07-16 Thread Devin Asay via use-livecode
Hi Paul,

Some years back Scott Rossi created a nifty little demo called GetInLine that 
shows how to do the interface part of drag-reordering. It’s in his archive at 
http://tactilemedia.com/blog/2018/05/12/blasts-from-the-past/. It might give 
you a good foundation, even if you don’t use the exact interface he created.

I don’t think the data part of it should be too hard; just make sure you keep 
the visible list and the custom property synched the same. Or you could 
possibly use hidden text or metadata tags in you visible list to embed the type 
for each line.

Hope this helps.

- Devin

> On Jul 16, 2021, at 9:06 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> I have a scrolling list field that has contents like:
> 
> name1
> name2
> nameA
> name3
> name4
> name5
> nameB
> name6
> name7
> nameC
> name8
> etc.
> 
> the field has a custom property with the contents and a "type" for each name, 
> so the data in the custom property look like:
> 
> codename1
> codename2
> foldernameA
> codename3
> codename4
> codename5
> foldernameB
> codename6
> codename7
> foldernameC
> codename8
> etc.
> 
> The type for each line can be either 'code' or 'folder'. I am trying to craft 
> code for the field script that supports dragging a line that is a 'code' or 
> 'folder' onto a line that is a 'folder'. You can not drag a 'code' or 
> 'folder' onto a 'code' line.
> 
> I have a dragStart, dragMove and dragEnd handlers, but something is off with 
> my code with regard to autoscrolling the field. (the actual list of names is 
> much longer than my example above). When dragging near the bottom of the 
> field, I try to detect if I am within a textHeight of the bottom of the field 
> (or top if scrolling up) and and scroll the field, but it is very jerky. The 
> user must keep moving the mouse around slightly so that continual dragMove 
> messages are sent and I have other problems with highlighting the destination 
> line when you are over a 'folder' that you can drop on.
> 
> Does anyone have some "best practice" code for this capability that they 
> would be willing to share? I admit coding drag and drop operations in LC is 
> one of the areas I am least familiar with.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Stuck on native database functions

2021-07-06 Thread Devin Asay via use-livecode
Bob,

A couple of things: You should either be passing variable names, not variable 
contents, so put your variable names in quotes.

revExecuteSQL “tDBID", “tInsertSQL", “tControlName”, etc

OR  you should be passing the name of an array variable, whose keys are numeric:


revExecuteSQL “aRecordData”

Not tested, but I’m pretty sure if you sort these things it will start to work 
for you.

- Devin



> On Jul 6, 2021, at 5:06 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> I assemble an SQL statement that looks like this: 
> 
> insert into ObjectProperties (recordid,rect,controlname,owner,visible) VALUES 
> (:1,:2,:3,:4,:5)
> 
> I then execute this statement: 
> 
> revExecuteSQL tDBID, tInsertSQL, aRecordData
> 
> I get records but with no data in them. I checked aRecordData and it has all 
> 5 columns as keys and data in each of them. 
> 
> I am at a complete loss. I was sure this was working before, now it is not. 
> 
> Bob S
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Stacks not removed from memory?

2021-05-14 Thread Devin Asay via use-livecode
Marty,

I had intended to respond to this, but got busy with other things. 

I have seen what you’re describing on all of the recent releases—9.5 - 9.6.x; 
i.e., a stack with destroyStack set to true, then closed, is not always removed 
from memory. Sometimes this has caused an infinite loop with the Save - Purge - 
Cancel dialog. I would report it, but I haven’t been able to come up with a 
reliable recipe. It’s a problem that I would like to nail down and squash.

- Devin


> On Apr 28, 2021, at 12:40 PM, Marty Knapp via use-livecode 
>  wrote:
> 
> Is anybody else experiencing with LC 9.6.2 rc5 that stacks with destroyStack 
> set to true are not always removed from memory when they're closed? It's been 
> happening to me in the IDE and standalones but not every time. And even when 
> I specifically go to another stack, set that stack to the defaultStack, that 
> any script with “of this stack” throws an error because it thinks "this 
> stack" it's the stack I just closed.
> 
> Marty
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Which Monitor to Open LC In

2021-02-23 Thread Devin Asay via use-livecode
Roger,

Perhaps you need to set up Spaces first?

- Devin

> On Feb 22, 2021, at 10:52 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Hmmm, I don’t have that option!?? I’m using LC 9.6.1 in OS 11.2 What is your 
> config?
> 
> Thanks Paul!
> 
> Roger
> 
>> On Feb 22, 2021, at 8:48 PM, Paul Hibbert via use-livecode 
>>  wrote:
>> 
>> Right-click (ctrl-click) on the LC icon in the dock and choose “Options” 
>> then select “Assign to Desktop on Display 1”, should do it.
>> 
>> Paul
>> 
>>> On 22Feb, 2021, at 7:47 PM, Roger Guay via use-livecode 
>>>  wrote:
>>> 
>>> I have a MBP with an external monitor. Does anybody know how to force LC to 
>>> open on the internal display and not the external? It suddenly switched on 
>>> me and I can’t figure out why or how to control it. BTW, the external 
>>> monitor is arranged to be above the MBP display.
>>> 
>>> Thanks,
>>> Roger

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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


SSL Error - question from Stack Overflow

2021-02-16 Thread Devin Asay via use-livecode
Hi all,

I came across this question on stack overflow. I like to try to give good 
LiveCode answers there when I can, just to do a little to boost the reputation 
of the LC community there. But I don’t have a clue on this one.


A Livecode script:
get URL 
"https://www.uspto.gov/patent/laws-and-regulations/patent-term-extension/patent-terms-extended-under-35-usc-156;
Winds up with the following in "the result":

 tsneterr: (56) SSLRead() return error -9806


I tried setting libURLSetSSLVerification to both true and false, but got the 
same error each time. Any ideas why this is happening, and is there a solution?


I verified that this error is returned consistently in the result. Anybody have 
any ideas? Charles, are you lurking perhaps?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Using MySQL on (headless) Linux

2021-02-01 Thread Devin Asay via use-livecode
Ben,

I have seen the “invalid database type” error on Linux because of a case error. 
Make sure you use “mysql” as the database type, not “MySQL” or anything else 
with upper case letters. LiveCode is not case-sensitive, but Linux is.

Hope this helps.

Devin

> On Feb 1, 2021, at 2:32 PM, Ben Rubinstein via use-livecode 
>  wrote:
> 
> Update. I have managed to get access to the Rev database external by 
> explicitly setting the `externals` property of the stack before saving it (on 
> Mac) to the full path on the linux machine to `revdb.so`.
> 
> Consequently the functions such as `revOpenDatabases` and `revOpenDatabase` 
> no longer throw error 219. Hurrah. Indeed `externalCommands` and 
> `externalFunctions` now list all the expected commands and functions of the 
> database library.
> 
> This is obviously an appalling solution, since it relies on me knowing the 
> exact path to the LiveCode bundle on the destination machine. (My 
> recollection from a decade or so ago is that this property has to already be 
> set at the time that the stack is opened, i.e. it can't be set dynamically. 
> This may be erroneous.) However, it will get me going for now.
> 
> Now my issue is that when the code tries to open the database, 
> `revOpenDatabase` returns "revdberr,invalid database type". That suggests 
> that the drivers aren't found.
> 
> I've tried to get past this using `revSetDatabaseDriverPath`.
> 
> The documentation says
>> Use the revSetDatabaseDriverPath command if you want to place the database
>> drivers your application uses somewhere other than the same folder as the
>> application.
> In fact the drivers are in the standard location, so this shouldn't be 
> needed, but hey... I started by reporting `revGetDatabaseDriverPath` - but 
> calling that causes LiveCode to immediately exit on signal 11. (This was in a 
> try-catch block, but that doesn't stop it crashing out.)
> 
> However, after using `revSetDatabaseDriverPath`, `revGetDatabaseDriverPath` 
> no longer crashes but faithfully reports the value set.
> 
> Unfortunately, this doesn't seem to help - although "set the defaultFolder to 
> revGetDatabaseDriverPath()/put the files" does list the folder which includes 
> dbmysql.so - revOpenDatabase still returns "revdberr,invalid database type".
> 
> Any suggestions gratefully received!
> 
> Ben
> 
> 
> On 01/02/2021 20:24, Ben Rubinstein via use-livecode wrote:
>> Hi Mark,
>> > "error in function handler" is a pretty generic response - sort of the
>> > engine's version of ¯\_(ツ)_/¯. Is the MySQL database local to the server
>> > machine or on a different computer?
>> I should point out that this error is thrown - I take it to mean that the 
>> function isn't even located. I don't think the problem is with the details 
>> of the database connection, I don't think it gets that far.
>> To test this, I've added a call to revOpenDatabases before doing anything 
>> else - sure enough, this throws the same error.
>> > Does this work locally before moving the
>> > stack to the headless linux box?
>> The whole shebang works on my Mac. I tried to see if I could run LiveCode 
>> headless on Mac, to minimise the differences that might be at issue, and got
>> Startup error - cannot run in command line mode
>> I don't know if that's a generic issue that LiveCode can't run headless on 
>> Mac, or if there's something else going on there.
>> Ben
>> On 01/02/2021 19:37, Mark Wieder via use-livecode wrote:
>>> On 2/1/21 11:15 AM, Ben Rubinstein via use-livecode wrote:
 
 With thanks to friends here who helped me install and start using LC on a 
 headless Linux box. I've now another little problem... my stack tries and 
 fails to connect to a MySQL database.
 
 When it attempts to call revOpenDatabase, it throws error 219, "error in 
 function handler". I take it that this means it can't find or hasn't 
 loaded the revdb external.
 
 I've installed livecodecommunity-9.6.1.x86_64, and I launch it with
~/.runrev/components/livecodecommunity-9.6.1.x86_64/LiveCode\ 
 Community.x86_64 -ui 
 
 I can see revdb.so and dbmysql.so are in the Externals directory. Is there 
 something explicit I need to do to load these?
>>> 
>>> "error in function handler" is a pretty generic response - sort of the 
>>> engine's version of ¯\_(ツ)_/¯. Is the MySQL database local to the server 
>>> machine or on a different computer? Does this work locally before moving 
>>> the stack to the headless linux box?
>>> 
>> ___
>> use-livecode mailing list
>> use-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 
> 

Re: OT Friendly customers....

2021-01-28 Thread Devin Asay via use-livecode
The H word gets tossed about far too casually nowadays. 

Commenting on alleged abuses perpetrated by government agencies is not hate. 
And if it is, then what are allusions to “dark forces” and “fake news”? 

Regardless, it’s just the wrong forum.

And also, “cheese!” (That’s your cue, ListMom.)

- Devin

> On Jan 28, 2021, at 11:07 AM, Stephen Barncard via use-livecode 
>  wrote:
> 
> Curry,
> 
> Putting down the FBI won’t help anything and makes me think you might be
> partial to the dark forces and fake news. We get enough of the hate through
> other sources and it is unwelcome here.
> 
> 
> On Thu, Jan 28, 2021 at 09:36 Curry Kenworthy via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>> Matthias:
>> 
>>> So in my case it was not scam but just a rude person.
>> 
>> Plenty of those around. Including what comes around.
>> 
>> Manipulative people usually follow 2 tactics.
>> Either buttering up for a favor, or being rude to apply pressure.
>> Sometimes both; they will abruptly switch if one fails.
>> 
>> In which case I tend to grab either popcorn or a flamethrower.
>> Not a huge fan of manipulation.
>> 
>> Doc hawk:
>> 
>>> asking about playing games like “hide the salami”
>> 
>> Careful - from a sandwich point of view,
>> that could potentially imply the "c" word!
>> 
>> Heather:
>> 
>>> Did somebody say cheese??
>> 
>> Probably those damn portrait photographers again!
>> Truly evil people - no souls behind the fake smiles.
>> 
>> (A little humor now and then is the best medicine.)
>> 
>> Paul:
>> 
>>> you should not be surprised some people assume SCAM first
>> 
>> My "unfavorites" were the "Windows tech support" and "Google listings"
>> phone call scams.
>> 
>> Right now during 2020-2021 my breathing isn't good enough for phone
>> conversations anymore, and all calls go to voice mail.
>> 
>> But in previous years those guys would call all the time. They weren't
>> following any rules/laws anyway, so you couldn't get off their list by
>> traditional methods.
>> 
>> So I tried some unorthodox methods - pranking and wasting their time.
>> 
>> I had one of the "Windows tech support" guys passionately defending
>> himself when I asked what his family back in India would think about him
>> becoming a criminal. Another couple of times, I played along with their
>> spiel, got transferred from the little crook to the big crook, and
>> wasted his time too for a while before scolding them and hanging up at
>> the crucial moment. They eventually gave up on me just as I was planning
>> some bigger pranks.
>> 
>> (Our "FBI" is way too busy being a partisan political tool to handle any
>> real crime; no telling how many scams they've allowed to flourish that
>> it is their duty and job description to shut down and prevent.)
>> 
>> But the "Google listings" people were unstoppable. They were operating
>> in more of a legal/moral gray area, and they must have been raking in
>> the $$$. Most persistent I've ever seen/heard. I suppose they are still
>> at it; I just haven't been able to answer the phone for ages.
>> 
>> My "unfavorite" email scam is the one where your email account will be
>> closed unless you log in to verify it or approve the new security
>> measures, etc. A couple of variations on this theme looked very real.
>> 
>> 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
>> 
> -- 
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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


Loading fonts not working

2020-12-16 Thread Devin Asay via use-livecode
Hi all,

I recently upgraded my Mac to Catalina, and I notice now that I can’t 
dynamically load ttf or otf fonts with ’start using font file….’

I always get the error message ‘can’t load font file’. 

It worked fine before I upgraded. Has anyone else seen this?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Some sad news

2020-12-04 Thread Devin Asay via use-livecode
I think we all have been dazzled by what Hermann was able to do with LC HTML5. 
Our community has been enriched by Hermann and many others for whom LiveCode 
and the idea of “coding for everyone" is a passion. He will be missed. 
Condolences to his family.

As others have noted, we also remember other LiveCode late-greats: Mark Smith 
and Eric Chatonet. I’m sure I am forgetting someone, but their legacy lives on 
in their generous contributions to the LiveCode developer community, Thanks to 
all who continue to keep their work available.

Devin


> On Dec 4, 2020, at 5:07 AM, Heather Laine via use-livecode 
>  wrote:
> 
> Dear List Folks,
> 
> I have today received some sad news. I am told that Hermann Hoch passed away 
> in April this year, from a stroke. I know many of you knew him either 
> remotely or having met him in person at a conference. He will be missed. I 
> met him myself and found him to be a wonderfully warm and kind person. He 
> could be volatile, but I always felt it was because he cared passionately 
> about things.
> 
> I will take what steps I can to preserve his legacy of HTML5 examples. As 
> these are hosted on an on-rev account we should be able to maintain it in 
> perpetuity for the benefit of the LiveCode Community. 
> 
> LiveCode HTML5 didn't always meet his expectations or progress as fast as he 
> wanted it to and I do wish he could have seen our next planned release, where 
> HTML5 support will be a focus. He was of great benefit to this community and 
> shared his expertise freely. 
> 
> I'm not sure what else I can say. Rest in peace hh, you will be missed :(
> 
> Heather
> 
> 
> Heather Laine
> Customer Services Manager
> LiveCode Ltd
> www.livecode.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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Script colorization not working

2020-11-19 Thread Devin Asay via use-livecode
Thanks Panos, and Bernd also for the tip on the new version of Source Code Pro.

The student was indeed using Source Code Pro, and when she changed to a 
different font for the script editor, it fixed the problem.

Devin


> On Nov 18, 2020, at 2:26 PM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Devin,
> 
> A rough guess is that she is on Big Sur. There is a known issue where
> colorization is lost if the default font (Source Code Pro) is used. If this
> is the case, she can try switching to a different font, and the issue will
> be fixed.
> 
> Kind regards,
> Panos
> --
> 
> On Wed, 18 Nov 2020 at 23:18, Devin Asay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi all,
>> 
>> One of my students is having a problem where the script colorization is
>> not working completely. That is, the bold face style is applied for things
>> like **on** mouseUp and **end** mouseUp, and commands are boldfaced. But
>> nothing else is colorized.
>> 
>> We have checked all of her script editor preferences. Colorization is set
>> to default.
>> 
>> There is nothing in the script editor menu that would affect this as far
>> as I can tell.
>> 
>> My student likes script colorization and finds it very helpful, so she’s
>> anxious to get it fixed.
>> 
>> Has anyone ever seen this? Any suggestions for how to fix it?
>> 
>> She’s on Mac, probably Catalina, LiveCode Community 9.6.1.
>> 
>> Devin
>> 
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young 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
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Script colorization not working

2020-11-18 Thread Devin Asay via use-livecode
Thanks, Panos! I believe I did notice that she is using Source Code Pro. I’ll 
have her look into that.

Devin

> On Nov 18, 2020, at 2:26 PM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Devin,
> 
> A rough guess is that she is on Big Sur. There is a known issue where
> colorization is lost if the default font (Source Code Pro) is used. If this
> is the case, she can try switching to a different font, and the issue will
> be fixed.
> 
> Kind regards,
> Panos
> --
> 
> On Wed, 18 Nov 2020 at 23:18, Devin Asay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi all,
>> 
>> One of my students is having a problem where the script colorization is
>> not working completely. That is, the bold face style is applied for things
>> like **on** mouseUp and **end** mouseUp, and commands are boldfaced. But
>> nothing else is colorized.
>> 
>> We have checked all of her script editor preferences. Colorization is set
>> to default.
>> 
>> There is nothing in the script editor menu that would affect this as far
>> as I can tell.
>> 
>> My student likes script colorization and finds it very helpful, so she’s
>> anxious to get it fixed.
>> 
>> Has anyone ever seen this? Any suggestions for how to fix it?
>> 
>> She’s on Mac, probably Catalina, LiveCode Community 9.6.1.
>> 
>> Devin
>> 
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young 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
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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


Script colorization not working

2020-11-18 Thread Devin Asay via use-livecode
Hi all,

One of my students is having a problem where the script colorization is not 
working completely. That is, the bold face style is applied for things like 
**on** mouseUp and **end** mouseUp, and commands are boldfaced. But nothing 
else is colorized.

We have checked all of her script editor preferences. Colorization is set to 
default.

There is nothing in the script editor menu that would affect this as far as I 
can tell. 

My student likes script colorization and finds it very helpful, so she’s 
anxious to get it fixed.

Has anyone ever seen this? Any suggestions for how to fix it?

She’s on Mac, probably Catalina, LiveCode Community 9.6.1.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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


Audio recording in LC community on Windows?

2020-11-02 Thread Devin Asay via use-livecode
HI all,

From the beginning of Rev/LC we could do basic audio recording cross platform, 
at least on Mac and Windows, using the QuickTime framework. QT went away a few 
years ago, and it took some time for that capability to be restored. On Mac we 
can do it in all LC editions, including Community, using mergMicrophone. 
However the mergMicrophone external is not available on Windows. Now you can do 
audio recording on Windows using camera controls, *but only in Indy and above*. 
In other words, unless I have missed something, Windows Community users have 
lost this functionality. There is no longer feature parity between Mac and 
Windows on Community. That’s a problem for me in teaching LiveCode in my 
college level courses. (Linux users, I’m not trying to ignore you here; I just 
don’t have a firm grasp on what’s possible on Linux.)

So my questions:

- Is there a way to do audio recording in LC Community on Windows that I’m not 
aware of?

- If not, should I approach the mother ship and request that we get feature 
parity on all the desktop platforms?

Thanks all. I look forward to hearing your ideas.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Line length

2020-10-26 Thread Devin Asay via use-livecode
There is also a measureText() function that might help.

Devin

> On Oct 24, 2020, at 4:35 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Richmond,
> 
>> Am 24.10.2020 um 12:17 schrieb Richmond via use-livecode 
>> :
>> 
>> Over in the Forums someone has asked a question about measuring the length 
>> of text lines.
>> Of course one can count characters, but in most alphabetic systems different 
>> characters have different lengths.
>> Is there a way to measure the length as in LENGTH of a line rather than 
>> count the number of characters it
>> contains?
> 
> ...
> put the formattedwidth of line 1 of fld 1
> ...
> 
>> Richmond.
> 
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: What Causes "##string##"

2020-10-02 Thread Devin Asay via use-livecode
Probably when the textAlign property of a line is set to “center”?

> On Oct 2, 2020, at 9:09 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> When setting  htmltext?
> 
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Converting from unicode to ASCII

2020-09-22 Thread Devin Asay via use-livecode
Hi Jacque,

Have you looked at the normalizeText function? I’m not sure that would help, 
but maybe it’s a start.

But it that doesn’t help, and if nobody ever sees the filenames, why not just 
loop through the string and delete anything that’s not in ASCII range?

Devin

> On Sep 22, 2020, at 4:48 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I have a stack with an index. When a user clicks a line, a handler uses the 
> clicktext to create a file name which is always the clicktext plus the 
> ".livecode" extension. The stack is then downloaded from an AWS server and 
> displayed.
> 
> We are now translating some stacks to other languages which require unicode 
> text. AWS recommends not using accented characters in file names, so we need 
> to translate the clicktext into plain ASCII.
> 
> Is there a good way to do that without using a lookup table or metadata? The 
> file names doesn't need to make sense syntactically. For example,
> 
>   l’Académie française -> lAcademiefrancaise.livecode
> 
> ...or similar, whatever works. The user will never see the file name.
> 
> -- 
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Updating a menubar button on Mac

2020-09-21 Thread Devin Asay via use-livecode
Populate it on mouseDown? I’ve done this lots, but mainly with option menus.

> On Sep 21, 2020, at 4:55 PM, David Epstein via use-livecode 
>  wrote:
> 
> I can use a “mouseEnter” handler to update a menu button’s contents just 
> before the user displays that menu.  But if that menu button is part of the 
> stack’s menubar group on a Mac, the Mac menu does not seem to receive the 
> mouseEnter message and the menu is not updated.  Is there a workaround?  
> Thank you!
> 
> David Epstein
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Basic question about behaviors

2020-08-26 Thread Devin Asay via use-livecode
Only cheese puns.

> On Aug 26, 2020, at 8:20 AM, Martin Koob via use-livecode 
>  wrote:
> 
> Is there a rule regarding puns?
> 
> Martin
> 
>> On Aug 26, 2020, at 9:30 AM, Paul Pystcat via use-livecode 
>>  wrote:
>> 
>> ROFL
>> 
>> THAT was gouda!
>> 
>> (I know, I know!  I broke one of the rules… no politics, no religion and no 
>> cheese)
>> 
>>> On Aug 26, 2020, at 9:09 AM, Mike Kerner via use-livecode 
>>>  wrote:
>>> 
>>> On Tue, Aug 25, 2020 at 12:41 PM Sean Cole (Pi) via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 I LOVE 'this me'. This extraordinary use of coding language is truly where
 LC  shines and why I love it so much, - sometimes. [sigh]
 
 Sean
 
>>> 
>>> and that's why your fonts break - because you "LOVE" - not "love", not
>>> "Love", not "l-o-l-o-l-o-v-e", but "LOVE" "this me".
>>> you're 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: New Campaign

2020-06-17 Thread Devin Asay via use-livecode
Ooops! Sorry folks, hit reply without looking at where it was going. Meant for 
Heather, obviously.

Be well, everyone.

Devin

> On Jun 17, 2020, at 9:06 AM, Devin Asay via use-livecode 
>  wrote:
> 
> Heather,
> 
> In light of this we’re going to go ahead and move up our annual 2-license 
> renewal and do them now instead of waiting for them to expire in the Fall.
> 
> Could you send me an invoice so I can get the ball rolling?
> 
> Best wishes, and stay well!
> 
> Devin
> 
> 
>> On Jun 17, 2020, at 8:30 AM, Heather Laine via use-livecode 
>>  wrote:
>> 
>> Dear list folks,
>> 
>> I'm drawing your attention to our crowd funding campaign, which we have just 
>> launched here:
>> 
>> https://livecode.com/covid-19-livecode-impact-fund/ 
>> <https://livecode.com/covid-19-livecode-impact-fund/>
>> 
>> This is an important campaign for LiveCode. If you have a moment please do 
>> go and check it out. 
>> 
>> Warmest Regards,
>> 
>> Heather
>> 
>> Heather Laine
>> Customer Services Manager
>> LiveCode Ltd
>> www.livecode.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
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: New Campaign

2020-06-17 Thread Devin Asay via use-livecode
Heather,

In light of this we’re going to go ahead and move up our annual 2-license 
renewal and do them now instead of waiting for them to expire in the Fall.

Could you send me an invoice so I can get the ball rolling?

Best wishes, and stay well!

Devin


> On Jun 17, 2020, at 8:30 AM, Heather Laine via use-livecode 
>  wrote:
> 
> Dear list folks,
> 
> I'm drawing your attention to our crowd funding campaign, which we have just 
> launched here:
> 
> https://livecode.com/covid-19-livecode-impact-fund/ 
> 
> 
> This is an important campaign for LiveCode. If you have a moment please do go 
> and check it out. 
> 
> Warmest Regards,
> 
> Heather
> 
> Heather Laine
> Customer Services Manager
> LiveCode Ltd
> www.livecode.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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Changing text properties in a field via the IDE

2020-05-19 Thread Devin Asay via use-livecode
Graham,

If you click the lock icon on the property inspector while you’re in edit mode, 
the PI for that object will remain open when you switch back to run mode. 

Hope this helps.

Devin

> On May 19, 2020, at 3:10 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> Well, I am happy to be wrong, so I repeated exactly what you did, of course 
> using my own bit of styled text. It didn’t work - partly because I can only 
> select the text in the field itself in ‘run’ mode, but I can only see the 
> Inspector in ‘edit’ mode. When I switch between the two modes, I can’t do 
> your (5), because I can’t select the text in the pane as you suggest.
> 
> I am sorry to be dumb - I expect you’re right, but it really doesn’t work for 
> me.
> 
> Graham
> 
> 
>> On 19 May 2020, at 19:53, Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> Graham Samuel wrote:
>> 
>>> To an ordinary LC developer, if you can change the properties of the
>>> initial text (to a different size for example) without overtly
>>> selecting it, then the same behaviour can be expected from the IDE
>>> when trying to change text you’ve pasted in. It may or may not be
>>> styled, but the confusing part is that selecting the text in the
>>> Object Inspector has no effect...
>> 
>> I just tried this recipe:
>> 
>> 1. Paste styled text into a field
>> 2. Choose pointer tool
>> 3. Double-click the field to open the Inspector
>> 4. In the Inspector, navigate to the Text pane
>> 5. In that pane, select text, then type Ctrl-B
>> 
>> RESULT: Both the styled text in the Inspector and the styled text in the 
>> field being inspected updates the contents to show the portion I'd changed 
>> to bold.
>> 
>> Is that not working there?
>> 
>> -- 
>> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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


Externals Question from Stack Overflow

2020-05-14 Thread Devin Asay via use-livecode
Once more, this time with the link.


Hi all,

I came across a question on Stack Overflow from a sight-impaired user who is 
trying to figure out how to write and test a LiveCode external. I am pretty 
ignorant about externals in general, so I don’t think I can help in this case. 
But if anyone here feels inclined, I think it would help this user, and boost 
the number of responses to LC questions on Stack Overflow.

https://stackoverflow.com/questions/61782950/testing-livecode-external-in-python

Regards,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Externals Question from Stack Overflow

2020-05-14 Thread Devin Asay via use-livecode
Hi all,

I came across a question on Stack Overflow from a sight-impaired user who is 
trying to figure out how to write and test a LiveCode external. I am pretty 
ignorant about externals in general, so I don’t think I can help in this case. 
But if anyone here feels inclined, I think it would help this user, and boost 
the number of responses to LC questions on Stack Overflow.

Regards,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Building a standalone warns about duplicate stacks

2020-05-07 Thread Devin Asay via use-livecode
Jaque,

I’ve seen this when building standalones with stacks that are using library 
stacks, and the same library stackflles are included in the standalone build. 
Apparently the included stacks are opened during the build process, thus 
colliding with the library stacks already in memory. If this is the problem, I 
suppose a workaround would be to stop using the library stacks before running 
the build process.

Hope this helps.

Devin


> On May 6, 2020, at 6:07 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> When building a standalone (for mobile in this case) I'm getting repeated 
> messages about stacks already being in memory and asking me what to do with 
> them. Since I have a lot of included stacks I need to make a decision a dozen 
> times. This is different from all the "open*" messages, so that workaround 
> won't help.
> 
> It doesn't happen when I use the Test button to install directly to my phone. 
> I think this is new behavior. Bug?
> 
> -- 
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: mergAV Select specific rear camera

2020-04-30 Thread Devin Asay via use-livecode
Andrew, 

I’m not sure about mergAV, but if you gave an Indy license you might want to 
check out cameraControl, which keeps getting better with each new release. I 
was playing around with it in 9.6.0DP4 yesterday, and it seems pretty capable. 
It also has the advantage of being cross-platform on Mac, Win, iOS, and Android.

Devin
 

> On Apr 30, 2020, at 9:01 AM, Andrew at MidWest Coast Media via use-livecode 
>  wrote:
> 
> I’m using mergAv to access video on mobile. I can access the front camera but 
> only one of the rear cameras on my iPhone 11, the 1x “normal” lens rather 
> than the 0.5x “wide angle”. Is there a way to access the multiple lenses that 
> Apple has on their newer devices?
> 
> —Andrew Bell 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Livecode HTML5 and SQL

2020-04-29 Thread Devin Asay via use-livecode
That’s good to know, Matthias. So it seems that what you’d have to do is, still 
do the MySQL I/O in LC Server scripts, but also dynamically construct the HTML 
output in your LC server scripts, so that the calling HTML5 app could make 
sense of it. 

Am I interpreting the situation correctly, Matthias?

Devin


> On Apr 29, 2020, at 12:13 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> I was also thinking about using LC Server or PHP scripts, but if i understand 
> it correctly then  "put URL" or "POST.. to URL" aren't  currently supported 
> in the LC HTML5 engine.
> Only "load URL" is supported and only for http / https.
> 
> Matthias
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 29.04.2020 um 20:06 schrieb Devin Asay via use-livecode 
>> :
>> 
>> Colin,
>> 
>> I haven’t tried it myself, but I would think you’d have to write an API 
>> layer using LiveCode Server scripting. All of the MySQL reads and writes 
>> would take place in your .lc scripts on LC Server. Then it would be simple, 
>> RESTful http calls from your HTML5 app. Of course, this all depends upon 
>> whether the internet libraries have been ported over to the HTML5 platform. 
>> LiveCode Server—I’ve done lots. HTML5 deployment, almost none.
>> 
>> Hope this helps.
>> 
>> Devin
>> 
>> 
>>> On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
>>>  wrote:
>>> 
>>> Anyone got any insightful ways of READING/WRITING to a mySQL table using 
>>> web-apps developed with Livecode HTML5?
>>> 
>>> 
>>> 
>>> Thanks
>>> 
>>> Col.
>>> 
>>> 
>>> 
>>> -- 
>>> 
>>> Colin Kelly
>>> 
>>> M 07951 920680
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young 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
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Livecode HTML5 and SQL

2020-04-29 Thread Devin Asay via use-livecode
Colin,

I haven’t tried it myself, but I would think you’d have to write an API layer 
using LiveCode Server scripting. All of the MySQL reads and writes would take 
place in your .lc scripts on LC Server. Then it would be simple, RESTful http 
calls from your HTML5 app. Of course, this all depends upon whether the 
internet libraries have been ported over to the HTML5 platform. LiveCode 
Server—I’ve done lots. HTML5 deployment, almost none.

Hope this helps.

Devin


> On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
>  wrote:
> 
> Anyone got any insightful ways of READING/WRITING to a mySQL table using 
> web-apps developed with Livecode HTML5?
> 
> 
> 
> Thanks
> 
> Col.
> 
> 
> 
> -- 
> 
> Colin Kelly
> 
> M 07951 920680
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Can a stack know which standalone engine it's running on?

2020-04-27 Thread Devin Asay via use-livecode
But doesn’t the processor just report on the host operating system? I wan’t to 
know which LiveCode engine is running.

Here’s the scenario:

I have a LiveCode splash screen-type application for which I’ve compiled both 
Windows-32 and Windows-64-bit versions. The standalone opens a stack that 
contains the actual business logic. In my About dialog, I’d like to be able to 
report which LiveCode engine the stack is running under. Do we have a way to 
get that information?

Devin


> On Apr 27, 2020, at 3:56 PM, Mark Waddingham via use-livecode 
>  wrote:
> 
> The version almost uniquely identifies every public engine build - the 
> buildNumber always does.
> 
> The platform together with the processor uniquely identify the target it was 
> built for.
> 
> Warmest Regards,
> 
> Mark.
> 
> Sent from my iPhone
> 
>> On 27 Apr 2020, at 22:43, Devin Asay via use-livecode 
>>  wrote:
>> 
>> The subject line says it. Is there a way for my stack to know which Windows 
>> standalone engine it is running on? For diagnostic purposes I would like to 
>> be able to report the current LiveCode standalone engine. I’m probably 
>> missing something obvious.
>> 
>> Devin
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young 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
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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


Can a stack know which standalone engine it's running on?

2020-04-27 Thread Devin Asay via use-livecode
The subject line says it. Is there a way for my stack to know which Windows 
standalone engine it is running on? For diagnostic purposes I would like to be 
able to report the current LiveCode standalone engine. I’m probably missing 
something obvious.

Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Scrollbar scale value not showing in Windows

2020-04-22 Thread Devin Asay via use-livecode
Verified on Windows 10. The default size of the scrollbar object obscures the 
scale values. Just increase the height of the scrollbar/slider (if your sb 
orientation is horizontal) or the width of the sb (if the orientation is 
vertical.)

Devin

> On Apr 21, 2020, at 10:01 PM, Devin Asay  wrote:
> 
> Michael,
> 
> Sometimes resizing the scrollbar will reveal the scale values. Does that 
> work? I’m not near my Windows machine, so can’t verify here. I know that on a 
> Mac if the scrollbar bounds are too small the values disappear.
> 
> Devin
> 
> 
>> On Apr 21, 2020, at 9:35 PM, Michael Lew via use-livecode 
>>  wrote:
>> 
>> I have a small app that I've written for my lockdown-affected class, and the 
>> students with Windows can not see the value of 'scale' type scrollbar 
>> controls that have their showValue property set to true, but the Macs can.  
>> Is there a cross-platform trick that I don't know?
>> 
>> Michael lockdown Lew
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Scrollbar scale value not showing in Windows

2020-04-21 Thread Devin Asay via use-livecode
Michael,

Sometimes resizing the scrollbar will reveal the scale values. Does that work? 
I’m not near my Windows machine, so can’t verify here. I know that on a Mac if 
the scrollbar bounds are too small the values disappear.

Devin


> On Apr 21, 2020, at 9:35 PM, Michael Lew via use-livecode 
>  wrote:
> 
> I have a small app that I've written for my lockdown-affected class, and the 
> students with Windows can not see the value of 'scale' type scrollbar 
> controls that have their showValue property set to true, but the Macs can.  
> Is there a cross-platform trick that I don't know?
> 
> Michael lockdown Lew
> ___
> use-livecode mailing list
> use-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: HTTPHeaders

2020-04-20 Thread Devin Asay via use-livecode
In my experience they are persistent throughout a session, sort of like setting 
the defaultFolder.

Devin

> On Apr 20, 2020, at 3:11 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> Are the httpHeaders persistent or do I need to set them before each server 
> call?
> 
> -- 
> 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: Making an iOS app look like one

2020-04-16 Thread Devin Asay via use-livecode
Hi Graham,

TL/DR: It’s doable, but there is a learning curve.

Making your apps look native is doable, but how to get there is a mixed bag. As 
you’ve discovered, you have to use a range of capabilities.

1. Widgets. They are mostly straightforward to figure out. See my lesson at 
http://livecode.byu.edu/objects/widgets.php. I also created a sample stack with 
mobile-appropriate widgets at 
http://dight310.byu.edu/lesson_materials/13-Mobile_native_controls/mobileAndWidgets.livecode

1.a. Control over SVG icons. You have quite a bit of control over which icons 
you can use, by using icon families. See my stack SVG Icon Family Maker in 
Sample Stacks (AKA revOnline). You can go out on the internet and find an SBG 
icon set you like, import them into your stack, and put them into an icon 
family. Then you can set the icon family when you’re choosing icons for your 
SVG widget or Navbar widget.
1.b. Mobile native controls wrapped into widgets. They include the Android 
Native Button, Android Native Field, and iOS Native Button. The Android ones 
seem alright, but the iOS button just displays a label in the app, nothing 
else, no outline or background color. So these widgets seem incomplete. 
Standard LiveCode buttons using custom icons might be a better choice for now.

2. Mobile Native Controls. See my lesson at 
http://livecode.byu.edu/mobile/device-specific.php. I divide them into a few 
different groups.

2.a. Stuff that “just works”. Basically ask and answer dialogs just work right 
on mobile. Easy. Popup keyboards in fields also appear on mobile without any 
effort.

2.b. Stuff that’s pretty easy, but use mobile-specific commands.
- mobilePick - this is probably what you want in place of a radio button group.
- mobilePickDate
- mobilePickPhoto

2.c. Mobile native controls. These have to be completely scripted, but are 
doable. As for sizing and placing, I usually use a place-holder control during 
development and set the rect of the mobile native control to the place holder, 
hiding the place holder when running in the mobile environment.

Sample stack for native controls at 
http://dight310.byu.edu/lesson_materials/13-Mobile_native_controls/testMobileControls.livecode

Hope this helps.

Devin


On Apr 16, 2020, at 9:15 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Folks, I know this is a desperately naive question, but as I progress with my 
first serious attempt at an iOS app, which I’m trying to do in a hurry with 
only my experience of developing LC desktop apps to go on, I am struck by how 
un-iOS-like it looks. Richard Gaskin has already suggested that I look for good 
practice amongst existing apps from all sources, and I’ve tried to do this. 
Where I come unstuck is how to imitate the ‘look’ of such apps.

I am trying, for example by getting the Native Control Widget pack from the LC 
store, and by attempting (but not so far succeeding) to understand the LC 
lesson about Native text controls, especially how I can create such controls in 
the first place.

My app is not outrageously complicated. What it needs is

 -  Fields to display information, some of which must allow input via keyboard 
or pasting. Although there is a Native Android Field widget, there isn’t one 
for iOS, so I don’t know what my options are. I want the kind of fonts and font 
sizes that are typical of iOS, but so far I haven’t found a reference to these 
properties in the LC documentation. I found a command, mobileControlCreate, 
which it appears can only function dynamically in a mobile app, which seems to 
mean I can’t create and place controls until the app is running. I find that 
confusing.

 -  Small, tidy icons, for use as the equivalent of menus or menu items, for 
example acting as links to various settings cards - so typically an image like 
a cogwheel for example. I would like these to be SVG, but none of LC’s SVG 
images have the necessary unchunky look. Do I have to create them from scratch 
(it would not be the end of the world if I did, but I imagine that there’s a 
library of them somewhere).

 -  “Done” type buttons (there is a built in widget for this but it doesn’t end 
up looking like the ‘done’ buttons I see on typical apps) and other buttons to 
start off processes or displays.

 -  Some kind of control that acts like a radio button group, so that one 
option is chosen to the exclusion of any others in the group (I suppose it’s a 
picking list, but I don’t know how to implement such a thing in an 
iOS-compatible way and the widgets on offer are specialised to date and time)

LC Support has been helpful in pointing me at various lessons, but I have 
obviously missed masses of stuff which must be there somewhere. As usual I am 
searching for pointers and examples in order to try to fast track this 
development.

Sorry for asking yet more questions.

Graham



___
use-livecode mailing list

Re: Old Fossil seeks fast track assistance

2020-04-09 Thread Devin Asay via use-livecode
Graham,

Not really visualizing what you’re seeing. When you choose Xcode from your 
LiveCode mobile support preference pane, all you should have to do is navigate 
to Xcode using the Add Entry button, choose Xcode, and the square next to the 
iOS section should turn green. If you see the green square you should be good 
to go to do Test deploys to the iOS Simulator. 

It’s all about the Green Square!

Devin

> On Apr 9, 2020, at 9:23 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> Devin. I was too optimistic in thinking things would now go smoothly! I would 
> very much appreciated your advice on the following:
> 
> Following your advice to your students, I have downloaded and installed the 
> latest XCode I can use on my Mac, which is 10.1. I have set the mobile 
> preferences of my LiveCode 9.5.1 Indy to point to the developer section in 
> the XCode app as you instruct (to be certain, I deleted the default and input 
> the info afresh). I can open a simulator for any of my target iPhones -  but 
> when I try to set the Standalone settings for my current project, I am unable 
> to select iOS as an option, and indeed I don’t see a detailed set of 
> parameters but just a simpler window. (I think it’s called the General 
> Settings) In fact I find that I can’t add or subtract any platform, although 
> I notice that Mac, Windows and Linux all have a green checkmark, which I 
> don’t want! There is supposed to be a Mode Selector accessed by the top left 
> button on this screen, but I am not seeing it.
> 
> I suppose there must be something wrong with my project, which is at an early 
> stage, but features an iPhone shaped card with some buttons on it, at least!
> 
> I suppose the answer is very very simple, but I have not been able to find 
> it. I just can’t see what I’m doing wrong, and if there’s anything in the LC 
> documentation about this, it is not obvious, nor do the LC preferences 
> settings help.
> 
> Sorry for the interruption - I hope you (or someone else on the list) can 
> help as I am now completely stuck as far as proper testing goes.
> 
> Graham
> 
> 
>> On 6 Apr 2020, at 16:55, Devin Asay via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Graham,
>> 
>> I’ve just been through this gauntlet with my students. I provided some links 
>> and lessons for them at http://livecode.byu.edu/mobile/test-deploy-links.php 
>> <http://livecode.byu.edu/mobile/test-deploy-links.php>. I found the process 
>> for setting up Android a little fraught with pitfalls, so I created an 
>> expanded instruction sheet for Android setup, linked to that page.
>> 
>> I’m staying with the latest Stable version of LiveCode for my class, 9.5.1. 
>> I’m running on Mac OS 10.14 Mojave. With this setup I have to use Xcode 10.1.
>> 
>> As a refresher, on developer.apple.com 
>> <http://developer.apple.com/><http://developer.apple.com 
>> <http://developer.apple.com/>>, you need to create your iOS developer 
>> certificate, register all of the UDIDs for your iOS devices, then create a 
>> wildcard provisioning profile for testing your apps. The provisioning 
>> profile must include all devices you want to test on.
>> 
>> A collection of links of instructions for distributing mobile apps: 
>> http://livecode.byu.edu/mobile/mobileAppDistribution.php 
>> <http://livecode.byu.edu/mobile/mobileAppDistribution.php>.
>> 
>> I hope this will all help jog your memory. I find mine needs to be jogged 
>> every time I come back to this mobile stuff after a long time away.
>> 
>> Cheers,
>> 
>> Devin
> 
> ___
> use-livecode mailing list
> use-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: Building a Board Game

2020-04-07 Thread Devin Asay via use-livecode
Roger,

Rather than moving an object, think about using button icons.  This is the 
basic process:

- on mouseDown: check the icon of the target, set the icon of a hidden, moving 
button to the same icon, set the icon of the target to 0, set a 
flag—isDragging--to true, show the hidden button

- on mouseMove: if isDragging is true, set the loc of the moving button to the 
mouseLoc

- on mouseUp: figure out which square you’re over, set the icon of that button 
to the icon of the moving button, hide moving button, set isDragging to false.

I made a rudimentary chess game that uses this technique, check it out here:

http://dight310.byu.edu/lesson_materials/07-arrays/chessGame-final-key.livecode

Click the Clear Board and Setup Game buttons first to set up the game board 
array. Game state handlers are in the card script; game piece moving handlers 
are in the game board group script.

Hope this helps.

Devin


On Apr 7, 2020, at 1:24 PM, Roger Guay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi all,

I know there must be a simple way to do this but it is escaping me at the 
moment. How can I move an object (grab me on mouseDown) and have it snap to a 
grid (square on a board game) on mouseUp?

Thanks much,

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Old Fossil seeks fast track assistance

2020-04-06 Thread Devin Asay via use-livecode
Graham,

I’ve just been through this gauntlet with my students. I provided some links 
and lessons for them at http://livecode.byu.edu/mobile/test-deploy-links.php. I 
found the process for setting up Android a little fraught with pitfalls, so I 
created an expanded instruction sheet for Android setup, linked to that page.

I’m staying with the latest Stable version of LiveCode for my class, 9.5.1. I’m 
running on Mac OS 10.14 Mojave. With this setup I have to use Xcode 10.1.

As a refresher, on developer.apple.com, you need to 
create your iOS developer certificate, register all of the UDIDs for your iOS 
devices, then create a wildcard provisioning profile for testing your apps. The 
provisioning profile must include all devices you want to test on.

A collection of links of instructions for distributing mobile apps: 
http://livecode.byu.edu/mobile/mobileAppDistribution.php.

I hope this will all help jog your memory. I find mine needs to be jogged every 
time I come back to this mobile stuff after a long time away.

Cheers,

Devin



On Apr 4, 2020, at 2:38 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi All - sorry this is a bit long, but I need help.

I’m a long term LC developer who more or less retired from development a couple 
of years ago, but I’ve kept on lurking in this list and trying rather 
hopelessly to remain up to date. My experience has been mostly on desktop apps, 
with a little iOS work. I haven’t ever done much on Android. I have just about 
retained my credentials as an Apple developer.

Now I find I really want to develop a mobile app at speed, and deploy it.

I don’t anticipate all that much difficulty in creating my app in the sense of 
designing and coding it - this can call on my own quite extensive experience of 
the past, the LC documentation and this invaluable list. I can reasonable hope 
to create a prototype in a few days. However there is a massive gap: testing 
and deployment.

I don’t have access to my most recent development machine (it’s in another 
country and I’m self-isolating), so I am working with an iMac that can only run 
MacOS High Sierra (and Windows 10 via Parallels, but I was hoping not to go 
there for this project). Now, I clearly need to organise the right version of 
XCode and the right SDK for my iOS development, and I need to do the equivalent 
thing for Android - and I don’t know how to do it.

For iOS, I THINK I need XCode 10.2, which I’m trying to download to replace the 
copy of 9.2 already on my machine. I obviously need to work with a compatible 
SDK. For Android, I don’t know where to start, so for now I am putting this on 
the back burner, but I will have to return to it eventually. Even when I’ve 
lined all this up (if indeed it’s feasible), I then need to remind myself how 
to test via simulators (I used to be good at this, so maybe that is not so 
scary, but I am not at all up to date) and then I need to get the app onto real 
hardware - starting with iPhones, as I’ve got a few of these. I really don’t 
know how to do this for testing, and more so I don’t know how to distribute a 
test version to a small population of testers, although I know this is 
feasible. The whole project may crash and burn at this beta testing stage, so 
actually getting it into the App Store can wait a bit.

Obviously I am not expecting people on this list to hold my hand at every step. 
My main concern is to be guided through the body of LC notes etc to get 
absolutely practical advice and recipes as to what to do at each stage. If I 
study the LC stuff long enough, I will get there, but I would dearly love help 
to fast-track it all.

Thanks

Graham
___
use-livecode mailing list
use-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: Strange times, amazing projects

2020-04-03 Thread Devin Asay via use-livecode
Skip, have you tried the Google geocoding web service? Give it an address or 
landmark, and get back latitude/longitude coordinates.

https://developers.google.com/maps/documentation/geocoding/start

Fairly simple to get into, a snap to implement in LiveCode, and free until you 
exceed a certain number of accesses.

Devin



On Apr 3, 2020, at 12:50 PM, Skip Kimpel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Good afternoon LC'ers (evening to some),

Enjoyed the Zoom chat today and it was good to see all of your faces
again.  It has been way too long.

Over the past couple of years I have been sidetracked from LC as I have not
had the need to be as hands on as I once was.  Now, however, I am forced to
pull out skill sets and take on projects / challenges that I have not done
in quite some time.  Actually, it is quite exhilarating.

I won't get into details about the project as a whole right now (but I
can't wait to share it with you all when it is done) but I have a challenge
that involves mapping and coordinates and I am trying to wrap my head
around how to accomplish it.

I have delivery zones built in Google Earth and I have delivery addresses.
I need to run through the list of delivery addresses to determine which
delivery zone they fall in.  Sounds simple (or maybe not) but I can't
figure out how to work out the coordinates of the address and filter it
within the perimeter coordinates of the zone.  Hopefully I explained this
clearly.

I realize I will probably have to first run the delivery addresses against
some database that will give me GPS coordinates which I can then use
against my delivery zone kml data.

Has anybody done this before?  Any suggestions?

As always, your input is GREATLY appreciated :)

Best regards,

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Getting started with geographical coordinates

2020-04-03 Thread Devin Asay via use-livecode
Graham,

You get back lat and long in degrees and fractions of degrees, as a decimal 
numeral. For instance, I get latitude: 40.248676 and longitude: -111.651062, 
and for good measure altitude in meters at 1398.380493. Wow, now you all know 
exactly where I am!

Devin



> On Apr 3, 2020, at 1:49 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> This is cheeky but I can’t run up my mobile simulation today - can someone 
> tell me the format of the geographical coordinates produced by 
> mobileSensorReading et al. I mean, is say latitude just one integer showing 
> seconds, or is it deg, min, sec - and are fractional seconds returned (so, 
> floating point)? I shall find out for myself eventually but it would help a 
> little to know now. AFAIKS there’s nothing in the LC documentation about it.
> 
> Graham
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Getting started with geographical coordinates

2020-04-03 Thread Devin Asay via use-livecode
Hi Graham,

As fate would have it I just created a video tutorial for my students on 
reading mobile device sensors.

http://livecode.byu.edu/mobile/devicesensors-index.php

Hope you find these useful.

Devin


On Apr 3, 2020, at 9:18 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi

I am reviving my LiveCode skills in these troubled times, and I want to do 
something that involves the location of a device using GPS. A very rapid 
(obviously too rapid) search of the documentation finds commands like 
iphoneStartTrackingLocation, but no link to a description of how one reads the 
actual geographical coordinates or what form they take. There is a reference to 
CoreLocation, but that hasn’t got a dictionary entry.

Can anyone point me in the right direction. Sorry if it’s obvious.

Thanks in advance

Graham
___
use-livecode mailing list
use-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: Go to card has become slow

2020-04-02 Thread Devin Asay via use-livecode
I have seen delays when going to a card containing a large image with Resize 
Quality set to “Best”. It was more of an issue on a mobile device, but it’s 
worth looking into.

Devin

> On Apr 2, 2020, at 1:27 PM, Terence Heaford via use-livecode 
>  wrote:
> 
> I have a project that opens at a particular card.
> 
> When I go to another card (any card) it’s very snappy.
> 
> When I return to the original card (from any card) I have noticed a second or 
> two delay before it happens.
> 
> There would appear to be nothing in any script that would account for this.
> 
> Can anyone give some insight as to why this has happened?
> 
> I reinstalled LC to no avail.
> 
> Community 9.5.1
> 
> MacOS 10.15.4
> 
> I read something about font changes on the forum but that seemed to relate to 
> iOS not MacOS.
> 
> I’m at a loss
> 
> 
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Android Studio 3.6 breaks LC Android deployment?

2020-03-20 Thread Devin Asay via use-livecode
Thanks for confirming, Paul. I’ll create a bug report.

Done: https://quality.livecode.com/show_bug.cgi?id=22629

Devin

On Mar 20, 2020, at 6:29 AM, Paul Richards via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Devin,

I had the exact same issue, but on Windows.  Having spent many days on this, 
your solution worked - Thank you or sharing.  I could not setup Livecode with a 
clean install of Android Studio 3.6, but having deleted it and  installed v3.5 
- Livecode worked straightway and I was then able to update Studio to v3.6.

Paul


-Original Message-
From: use-livecode 
mailto:use-livecode-boun...@lists.runrev.com>>
 On Behalf Of Devin Asay via use-livecode
Sent: 19 March 2020 22:04
To: How to use LiveCode 
mailto:use-livecode@lists.runrev.com>>
Cc: Devin Asay mailto:devin_a...@byu.edu>>
Subject: Android Studio 3.6 breaks LC Android deployment?

Hi all,

Yesterday I had to install Android mobile tools on my laptop (since I’m having 
to work from home now. I downloaded the newest JDK 1.8 and the newest Android 
Studio (v. 3.6). (LC v. 9.5.1 on Mac 10.14.6).  I spent a frustrating afternoon 
of getting an error every time I tried to specify the Android SKD root in LC 
Mobile Support preferences. Message was "The chosen folder is not a valid 
Android SDK. Please ensure you have installed it correctly, and enabled support 
for 9.0 (API 28)”. Finally after installing and reinstalling everything several 
times, I decided to drop back to Android Studio v. 3.5.3. Suddenly it was 
working again!

Details on the forums here: 
http://forums.livecode.com/viewtopic.php?f=32=33636=189292#p189292

It seems like Android Studio 3.6 breaks Android deployment in LC. Before I 
submit a bug report, I wondered if anyone else has seen this problem?

Devin



Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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

___
use-livecode mailing list
use-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: Problem opening version 9.6.0 (dp3)

2020-03-19 Thread Devin Asay via use-livecode
Bill,

Does this help? It was at the end of the release announcement:

Known issues

- This build (for Mac) is not notarized yet, so if your Mac is running
MacOS Catalina (10.15.x) you will get a warning dialog saying that the app
cannot be opened. In this case, you have to whitelist LiveCode in the
System Settings -> Security and Privacy, and then right-click on LiveCode
and choose "Open" from the contextual menu. Just double-clicking to open it
will not work.

Note that you'll only need to do this once, the very first time you open
LiveCode 9.6 DP-3. For more details and instructions see here:


On Mar 19, 2020, at 8:29 PM, prothero--- via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Folks:
I must be missing something. I downloaded 9.6.0 (dp3) and my Mac OS won’t let 
me open it because claims Apple can’t check it for malware. Hmm…. I’m on a 
Macbook running Catalina, with BitDefender, but turning BitDefender off doesn’t 
change anything.

Something new?
Bill

William A. Prothero
Santa Barbara, CA. 93105
http://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


Android Studio 3.6 breaks LC Android deployment?

2020-03-19 Thread Devin Asay via use-livecode
Hi all,

Yesterday I had to install Android mobile tools on my laptop (since I’m having 
to work from home now. I downloaded the newest JDK 1.8 and the newest Android 
Studio (v. 3.6). (LC v. 9.5.1 on Mac 10.14.6).  I spent a frustrating afternoon 
of getting an error every time I tried to specify the Android SKD root in LC 
Mobile Support preferences. Message was "The chosen folder is not a valid 
Android SDK. Please ensure you have installed it correctly, and enabled support 
for 9.0 (API 28)”. Finally after installing and reinstalling everything several 
times, I decided to drop back to Android Studio v. 3.5.3. Suddenly it was 
working again!

Details on the forums here: 
http://forums.livecode.com/viewtopic.php?f=32=33636=189292#p189292

It seems like Android Studio 3.6 breaks Android deployment in LC. Before I 
submit a bug report, I wondered if anyone else has seen this problem?

Devin



Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Synchronisation of sound and vision

2020-02-12 Thread Devin Asay via use-livecode
Tore,

You can do audio recording on Mac now using the mergMicrophone library. It 
works great, and I believe is available in every edition of LC, including 
Community.

Devin

> On Feb 12, 2020, at 12:11 PM, Tore Nilsen via use-livecode 
>  wrote:
> 
> Devin,
> I haven’t used callbacks much, and so far I haven’t run in to any problems. 
> If missing callbacks is still an issue, then I agree with you that setting 
> startTime and endTime is the best option. I use this method in a small 
> application I have made for myself where I write comments to audio files 
> handed in by my English students. They can then control playback of the 
> segments I have commented on by clicking links in the field that shows the 
> comments. The lack of audio recording capability on Mac has forced me to use 
> written feedback where I otherwise would have preferred using two players and 
> audio feedback.
> 
> Regards
> Tore
> 
>> 12. feb. 2020 kl. 19:57 skrev Devin Asay via use-livecode 
>> :
>> 
>> Tore,
>> 
>> I would agree if callbacks were 100% reliable. I have tried them in the past 
>> and found that in some cases they were missed. I never had any trouble when 
>> using time indices. But I should say that I haven’t needed to do this for 
>> several years, and the callbacks in the new player object might be 
>> completely reliable.
>> 
>> In other ways creating time indices makes your application more flexible, 
>> however. It’s dead simple, for instance, to set up an application where you 
>> can click on a line of text and play just that line. Set the startTime, set 
>> the endTime, set the playSelection to true, start playing. Done. That would 
>> be a little more challenging if all you had was callbacks.
>> 
>> One of the great things about LiveCode is that there is almost always more 
>> than one way to do what you want.
>> 
>> Regards,
>> 
>> Devin
>> 
>> 
>> On Feb 12, 2020, at 9:55 AM, Tore Nilsen via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Using callbacks negate the need to fiddle with duration or  timescales and 
>> start or stop times. It uses the sampling intervals as is, regardless of 
>> time. In my opinion it is much easier than trying to calculate start and end 
>> times. You can easily handle large audio/video files using callbacks. I 
>> would recommend using one file per poem though, this simplifies the handling 
>> of the messages sent from the player. You can basically use the same message 
>> for all files, resetting a counter variable each time you load a new file to 
>> handle with line you would like to act upon.
>> 
>> You could also store the callbacks for each audio file in a text file and 
>> set the callbacks as a part of the handler used to load each audio file.
>> 
>> Regards
>> Tore
>> 
>> 12. feb. 2020 kl. 16:49 skrev Devin Asay via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Graham,
>> 
>> Take a look at the duration and the timeScale properties of player objects. 
>> By dividing duration by timeScale you get the length of the video in seconds.
>> 
>> 
>> put the duration of player  “foo” / the timescale of player  “foo” into 
>> totalSeconds
>> 
>> What you are contemplating is very doable, but you’ll have to do a fair 
>> amount of work to do to get the synching right. You can take one of several 
>> approaches:
>> 
>> - Calculate times as above to predict when to show/highlight the next line. 
>> Can be tricky with long video files and rounding errors.
>> 
>> - Check the currentTime property of the player to determine the startTime 
>> and endTime of each spoken line, and set the playSelection of the player to 
>> true. When the played segment ends, immediately load the following start and 
>> end times and play again. Something like this, from memory:
>> 
>> set the startTime of player “foo” to 444
>> set the endTime of player “foo” to 999
>> set the currentTime of player “foo” to the startTime of player “foo”
>> set the playerSelection of player “foo” to true
>> start player “foo"
>> - Break up the video or audio file into separate files, one line per file, 
>> then play each succeeding file when the previous one reaches its end. The 
>> playStopped message is your friend here.
>> 
>> Like I said, it’s doable, but takes a bit of thought and planning, creating 
>> segment indexes, that sort of thing.
>> 
>> Hope this helps.
>> 
>> Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Synchronisation of sound and vision

2020-02-12 Thread Devin Asay via use-livecode
Tore,

I would agree if callbacks were 100% reliable. I have tried them in the past 
and found that in some cases they were missed. I never had any trouble when 
using time indices. But I should say that I haven’t needed to do this for 
several years, and the callbacks in the new player object might be completely 
reliable.

In other ways creating time indices makes your application more flexible, 
however. It’s dead simple, for instance, to set up an application where you can 
click on a line of text and play just that line. Set the startTime, set the 
endTime, set the playSelection to true, start playing. Done. That would be a 
little more challenging if all you had was callbacks.

One of the great things about LiveCode is that there is almost always more than 
one way to do what you want.

Regards,

Devin


On Feb 12, 2020, at 9:55 AM, Tore Nilsen via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Using callbacks negate the need to fiddle with duration or  timescales and 
start or stop times. It uses the sampling intervals as is, regardless of time. 
In my opinion it is much easier than trying to calculate start and end times. 
You can easily handle large audio/video files using callbacks. I would 
recommend using one file per poem though, this simplifies the handling of the 
messages sent from the player. You can basically use the same message for all 
files, resetting a counter variable each time you load a new file to handle 
with line you would like to act upon.

You could also store the callbacks for each audio file in a text file and set 
the callbacks as a part of the handler used to load each audio file.

Regards
Tore

12. feb. 2020 kl. 16:49 skrev Devin Asay via use-livecode 
mailto:use-livecode@lists.runrev.com>>:

Graham,

Take a look at the duration and the timeScale properties of player objects. By 
dividing duration by timeScale you get the length of the video in seconds.


put the duration of player  “foo” / the timescale of player  “foo” into 
totalSeconds

What you are contemplating is very doable, but you’ll have to do a fair amount 
of work to do to get the synching right. You can take one of several approaches:

- Calculate times as above to predict when to show/highlight the next line. Can 
be tricky with long video files and rounding errors.

- Check the currentTime property of the player to determine the startTime and 
endTime of each spoken line, and set the playSelection of the player to true. 
When the played segment ends, immediately load the following start and end 
times and play again. Something like this, from memory:

set the startTime of player “foo” to 444
set the endTime of player “foo” to 999
set the currentTime of player “foo” to the startTime of player “foo”
set the playerSelection of player “foo” to true
start player “foo"
- Break up the video or audio file into separate files, one line per file, then 
play each succeeding file when the previous one reaches its end. The 
playStopped message is your friend here.

Like I said, it’s doable, but takes a bit of thought and planning, creating 
segment indexes, that sort of thing.

Hope this helps.

Devin


On Feb 12, 2020, at 5:28 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

Thanks, that’s a start - I will look at the dictionary. I suppose the callbacks 
rely on one analysing how long each line/word takes the performer to say. It’s 
a lot of work, but there’s no way around it since potentially every line takes 
a different length of time to recite. If it’s too much work, I guess I can just 
display the whole text and have one callback at the end of each recording. 
Maybe that is really the practical solution for a large body of work (say all 
the Shakespeare sonnets, for example).

Anyway thanks for the hint.

Graham

On 12 Feb 2020, at 12:16, Tore Nilsen via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

You will have to use the callbacks property of the player to do what you want 
to do. The callbacks list would be your cues. From the dictionary:

The callbacks of a player <> is a list of callbacks, one per line. Each 
callback consists of an interval number, a comma, and a message <> name.


Regards
Tore Nilsen


12. feb. 2020 kl. 11:25 skrev Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>:

Folks, forgive my ignorance, but it’s a long time since I considered the 
following and wondered what pitfalls there are.

I have in mind a project where a recording of someone reading a poetry text 
(“old fashioned” poetry in metrical lines) needs to be synchronised to the 
display text itself on the screen, ideally so that a cursor or highlight would 
move from word to word with the speaker, although that would almost certainly 
involve too much work for the deve

Re: Synchronisation of sound and vision

2020-02-12 Thread Devin Asay via use-livecode
Graham,

Take a look at the duration and the timeScale properties of player objects. By 
dividing duration by timeScale you get the length of the video in seconds.


put the duration of player  “foo” / the timescale of player  “foo” into 
totalSeconds

What you are contemplating is very doable, but you’ll have to do a fair amount 
of work to do to get the synching right. You can take one of several approaches:

- Calculate times as above to predict when to show/highlight the next line. Can 
be tricky with long video files and rounding errors.

- Check the currentTime property of the player to determine the startTime and 
endTime of each spoken line, and set the playSelection of the player to true. 
When the played segment ends, immediately load the following start and end 
times and play again. Something like this, from memory:

set the startTime of player “foo” to 444
set the endTime of player “foo” to 999
set the currentTime of player “foo” to the startTime of player “foo”
set the playerSelection of player “foo” to true
start player “foo"
- Break up the video or audio file into separate files, one line per file, then 
play each succeeding file when the previous one reaches its end. The 
playStopped message is your friend here.

Like I said, it’s doable, but takes a bit of thought and planning, creating 
segment indexes, that sort of thing.

Hope this helps.

Devin


On Feb 12, 2020, at 5:28 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thanks, that’s a start - I will look at the dictionary. I suppose the callbacks 
rely on one analysing how long each line/word takes the performer to say. It’s 
a lot of work, but there’s no way around it since potentially every line takes 
a different length of time to recite. If it’s too much work, I guess I can just 
display the whole text and have one callback at the end of each recording. 
Maybe that is really the practical solution for a large body of work (say all 
the Shakespeare sonnets, for example).

Anyway thanks for the hint.

Graham

On 12 Feb 2020, at 12:16, Tore Nilsen via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

You will have to use the callbacks property of the player to do what you want 
to do. The callbacks list would be your cues. From the dictionary:

The callbacks of a player <> is a list of callbacks, one per line. Each 
callback consists of an interval number, a comma, and a message <> name.


Regards
Tore Nilsen


12. feb. 2020 kl. 11:25 skrev Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>>:

Folks, forgive my ignorance, but it’s a long time since I considered the 
following and wondered what pitfalls there are.

I have in mind a project where a recording of someone reading a poetry text 
(“old fashioned” poetry in metrical lines) needs to be synchronised to the 
display text itself on the screen, ideally so that a cursor or highlight would 
move from word to word with the speaker, although that would almost certainly 
involve too much work for the developer (me), or at least highlight lines as 
they are being spoken. I see that one would inevitably have to add cues to the 
spoken text file to fire off the highlighting, which is indeed an unavoidable 
amount of work, but can it be done at all in LC? For example, what form would 
the cues take?

TIA

Graham
___


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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Do Mac OS apps stop working if your Mac Developer ID Application cert expires?

2020-01-23 Thread Devin Asay via use-livecode
I’ve done lots of test deployments to devices that are registered in my 
wildcard provisioning profile. After the cert expires the app no longer runs on 
the test devices. You have to renew the cert and provisioning profile, re-save 
and reinstall the app on the device if you want it to work again.

I don’t know if it is different if you are distributing with an app-specific 
provisioning profile, since I haven’t tried that.

Devin

> On Jan 23, 2020, at 2:25 PM, Tony Trivia via use-livecode 
>  wrote:
> 
> Hi,
> 
> Anyone know what happens if you let a Mac Developer ID Application cert
> expire? (I'm thinking of apps that are NOT in the Mac app store, but are
> distributed directly to users.)
> 
> I've heard if this cert is revoked, that can block any apps from running
> that were signed with that cert. Just wondering what the effect is if the
> cert just expires.
> 
> Thanks.
> Tony
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Y coordinate for a line of text

2019-11-12 Thread Devin Asay via use-livecode
The selectedLoc function may also be helpful.


> On Nov 12, 2019, at 7:27 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> You may want to look at the Dictionary entry for "measureText"
> 
> 
> On 11/12/2019 1:43 AM, scott--- via use-livecode wrote:
>> I’m needing to know the coordinate (Y is the tricky one) for a line of text. 
>> I’m not do a very good job at calculating it. I think I remember a newish LC 
>> command or function that achieved this but I can’t locate it in the 
>> dictionary. Am I imagining?
>> 
>> --
>> Scott Morrow
>> 
>> Elementary Software
>> (Now with 20% less chalk dust!)
>> web   https://elementarysoftware.com/
>> email sc...@elementarysoftware.com
>> booth1-800-615-0867
>> 
>> --
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Primary Student Livecode Interface (Simplified Developer Interface)

2019-10-10 Thread Devin Asay via use-livecode
RIchmond has an excellent point: your development environment is less important 
than your goal.

The reason that all of us immediately typed ’set the userLevel to 5’ in 
HyperCard is that you wouldn’t get far in your task until you needed a bump-up 
to a higher level of capabilities.

I also teach beginning programming (beginning application development is 
actually a better term), but to college students rather than primary kids. I 
realized recently like a bolt of lightening that I have been spending far too 
much instruction time describing the development environment and too little on 
setting tasks and then telling the students about the tools in LC that let them 
accomplish the task. I don’t know why it took me so long to come to that 
insight, because “need-based” learning is how I learned both HyperCard and 
LiveCode. (And probably how most of us learned.) Now I’m thinking about ways to 
incorporate more task-based instruction into my classes.

But then I’m faced with the paradox that, according to some of the research 
I’ve looked at on teaching programming, large problem solving assignments are 
less effective than focused focused practice in teaching fundamental 
programming concepts. What I take from that is that students are helped by 
“drilling” a concept with canned, focused, smaller tasks than they are by 
setting them a complex problem to solve. So my evolving approach is 1. present 
a concept, 2. do some drill and practice on the concept, 3. set them a more 
complex task that requires them to apply the concept.

I had imagined by this time in my career that I’d have figured this all out. I 
might just be slow. :-)

Devin


On Oct 10, 2019, at 11:48 AM, Richmond via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Well: for starters you are going to have to trawl right through LiveCode and 
decide
which capabilities fall into which of the 5 levels . . .

Then decide who you are going to block, for instance, access to a button script 
at level 4;
or partial blocking as you are going to allow buttons to do some things.

I designed a HyperCard-like set of tools for LiveCode a few years ago because,
over on a Yahoo group, various people who haven't worked a few home truths out 
were
bemoaning having a sophisticated interface to LiveCode instead of a dumed-down 
version: mine
was so dumbed-down it was almost moronic. For "some odd reason"
there were no takers as far as I am aware.

I teach Primary kids LiveCode every summer and we do just fine with the 
standard set of tools:
the kids use exactly what they require and are generally self-limiting.

Richmond.

On 10.10.19 18:53, Devin Asay via use-livecode wrote:
Hi John,

This idea has been discussed over the years, but I don’t know of anyone who has 
implemented it.

The userLevels were:

1 - Browsing - the ability to run and explore stacks, but no ability to make 
changes.
2 - Typing - added the ability to type and edit text in fields.
3 - Painting - added the ability to use the Paint tools to change the appears 
of cards and backgrounds.
4 - Authoring - added the ability to create buttons and fields and to link 
buttons to cards and stacks.
5 - Scripting - gave you full access to all developer components, including 
scripting.

The “magic words” were ’set the userLevel to 5’.

I found this information in my cobwebby brain, but was helped by the 
information on this page: http://folkstream.com/muse/teachhc/using/hcusing.html

Best of luck. I think there are other people here who would be interested in 
this if you find or make something.

Devin

On Oct 10, 2019, at 9:41 AM, JOHN PATTEN via use-livecode 
mailto:use-livecode@lists.runrev.com><mailto:use-livecode@lists.runrev.com>>
 wrote:

Good Morning from SoCal,

Quick question, anybody ever develop a simplified LiveCode “developer 
interface/tool“ project?

If you’ve been around awhile, you might remember how HyperCard had multiple 
development modes. Level one allowed you to use drawing tools create buttons 
that would allow you to ”go to next card” etc. Pretty much no script access.

Levels 2-3 gradually provided more capabilities.

If you new the correct procedure, you could completely unlock Hypercard, with 
access to all developer components (Level 4?)

Has anybody created a simplified Livecode developer interface for newbies?  
Something that could be used to introduce, but not initially over whelm a new 
user?

Just trying to not reinvent the wheel, if someone has already gone down this 
path and would be willing to share :)


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Primary Student Livecode Interface (Simplified Developer Interface)

2019-10-10 Thread Devin Asay via use-livecode
Hi John,

This idea has been discussed over the years, but I don’t know of anyone who has 
implemented it.

The userLevels were:

1 - Browsing - the ability to run and explore stacks, but no ability to make 
changes.
2 - Typing - added the ability to type and edit text in fields.
3 - Painting - added the ability to use the Paint tools to change the appears 
of cards and backgrounds.
4 - Authoring - added the ability to create buttons and fields and to link 
buttons to cards and stacks.
5 - Scripting - gave you full access to all developer components, including 
scripting.

The “magic words” were ’set the userLevel to 5’.

I found this information in my cobwebby brain, but was helped by the 
information on this page: http://folkstream.com/muse/teachhc/using/hcusing.html

Best of luck. I think there are other people here who would be interested in 
this if you find or make something.

Devin


On Oct 10, 2019, at 9:41 AM, JOHN PATTEN via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Good Morning from SoCal,

Quick question, anybody ever develop a simplified LiveCode “developer 
interface/tool“ project?

If you’ve been around awhile, you might remember how HyperCard had multiple 
development modes. Level one allowed you to use drawing tools create buttons 
that would allow you to ”go to next card” etc. Pretty much no script access.

Levels 2-3 gradually provided more capabilities.

If you new the correct procedure, you could completely unlock Hypercard, with 
access to all developer components (Level 4?)

Has anybody created a simplified Livecode developer interface for newbies?  
Something that could be used to introduce, but not initially over whelm a new 
user?

Just trying to not reinvent the wheel, if someone has already gone down this 
path and would be willing to share :)

Thank you!
John Patten



Sent from my iPhone

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: help with mobileSetKeyboardType

2019-09-26 Thread Devin Asay via use-livecode
Dan,

I believe it’s because setting keyboard type with a mobile native control is 
done by setting a property with mobileControlSet:

mobileControlCreate "input","_editingField”
mobileControlSet “input”, “keyboardType”, “number”

The mobileSetKeyboardType command works in all other circumstances, including 
with native LiveCode fields.

Devin


> On Sep 26, 2019, at 12:31 PM, Dan Friedman via use-livecode 
>  wrote:
> 
> I am having some trouble with mobileSetKeyboardType.  Can anyone tell me why 
> mobileSetKeyboardType works with this:
> 
> mobileSetKeyboardType "number"
> ask "Enter a number"
> 
> But it doesn’t work with this:
> 
> mobileSetKeyboardType "number"
> mobileControlCreate "input","_editingField"
> mobileControlSet "_editingField","rect","20,20,200,60"
> mobileControlSet "_editingField","text","123"
> mobileControlSet "_editingField","visible",true
> mobileControlDo "_editingField","focus"
> 
> Doesn't seem to matter what I set mobileSetKeyboardType to or when I set it.  
> It always shows the "normal" keyboard.
> 
> Using LiveCode Business 9.5.0, testing on a iPhone X
> 
> -Dan
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Checking the host OS

2019-08-30 Thread Devin Asay via use-livecode
On Aug 30, 2019, at 9:10 PM, Mark Wieder via use-livecode 
 wrote:
> 
>> On 8/30/19 12:22 PM, Devin Asay via use-livecode wrote:
>> 
>> Now that we can build both 32 and 64 bit applications for Windows, it’s 
>> important to be able to tell whether the host OS is 32 or 64 bit.
> 
> Why? If the 64-bit application won't run on the 32-bit system you won't get 
> as far as your scripted test. Am I missing something?

No, I’m just toying with the idea of having a 32-bit launcher that would 
examine the host OS, then launch the proper executable based on whether it is 
32 or 64 bit. Sort of like a poor man’s universal app like we used to create 
for MacOS. It’s possible I’m use way overthinking this. 

-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


Checking the host OS

2019-08-30 Thread Devin Asay via use-livecode
Hi all,

I know we can get all manner of information about the host system our stack or 
application is running on, including platform(), processor(), and machine() but 
is there a way to check to see whether the host OS is 32 or 64 bit? The 
platform function on Windows always returns Win32 regardless of which version 
of Windows is running, and the processor reports x86_32 or x86_64, depending on 
the host machine’s CPU.

Now that we can build both 32 and 64 bit applications for Windows, it’s 
important to be able to tell whether the host OS is 32 or 64 bit. But I can’t 
work out if these functions let us get that information. For instance, on my 
Windows 10 64-bit system I get:

The platform: Win32
The processor: x86_64
The machine: x86_64

But I just had a user report that they were unable to run a new build of one of 
my Windows applications, which I had built as 64 bit. I’m sending them a 32-bit 
build, but I got to thinking, would there be a way to check that from within 
LiveCode?

Any ideas?

Devin

Devin Asay
Brigham Young 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: Local files in browser widget

2019-07-12 Thread Devin Asay via use-livecode
On Jul 11, 2019, at 9:34 PM, J. Landman Gay via use-livecode 
 wrote:
> 
> I think I asked this before but it isn't working now. I thought 
> specialFolderPath("resources") was okay for read-only files. It fails on 
> Android.
> 
> put specialFolderPath("resources") & "/tFolder/tFile.html" into tPath
> set the url of widget "browser" to ("file://" & tPath)
> 
> I get an error that the file was not found. It's there, the folder was 
> included in the Copy Files pane in standalone settings. When I insert an 
> answer dialog to view the path, there's a string that ends with 
> "...base.apk/tFolder/tFile.html" so I think that's right.
> 
> Do I need more or fewer slashes?

J,

I don’t think you need the slashes after file: at all. (“file:” & 
specialFolderPath(“resources”) & “/tFolder/tFile.hmtl”) should do it.

Also check case on folder and file names. Case matters in mobile file systems 
in my experience.

D


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: CTD meaning?

2019-06-28 Thread Devin Asay via use-livecode
>> On Jun 28, 2019, at 11:59 AM, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> On 6/28/19 8:30 AM, Martin Koob via use-livecode wrote:
>>> Sent from my iPhone
 On Jun 28, 2019, at 11:17 AM, Curry Kenworthy via use-livecode 
  wrote:
 
 Edit Script Save and Crash - it doesn't have as much crash in it as Crash 
 Script Edit and Crash.
>>> We do have some Crash, Edit script and Crash; Edit script,  Crash, Save and 
>>> Crash; Crash, Crash, Crash and Crash.
>>> ## Vikings descend from the ceiling singing
>>> ## Crash, Crash, Crash, Crash
>>> ## Crash, Crash, Crash, Crash
>>> ## Crash, Crash, Crash, Crashity Crash.
>> 
>> LOL.
>> Have you got anything without Crash in it?
>> 
> 
> IDE: Urgghh!  You can’t have Edit script and Save without any crash in it!

I’ll have your crash. I love it!
___
use-livecode mailing list
use-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: Groups do not receive mouseEnter messages?

2019-06-25 Thread Devin Asay via use-livecode
This is  a great idea, Paul. I was just thinking that might be a good solution, 
especially with the addition of the (relatively) new clipsToRect property of 
fields. When that property is true, a group’s boundaries do not automatically 
snap to the area defined by its child objects. Instead the group’s boundaries 
remain where the developer set them. Given that groups can now have an 
arbitrarily larger area than their child objects, it makes sense that we might 
want the option of treating them more like full-fledged objects than simply a 
container for other objects.

Devin


On Jun 25, 2019, at 11:30 AM, Paul Dupuis via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

There are clearly use cases where it makes sense for a group (such as it it 
just being used to contain or enclose a set of other controls) NOT to received 
mouse event messages.

There are also use cases where it DOES make sense of a group to received mouse 
event messages, such as if you are using a group as a drawing canvas.

Yes, wonderfully in Livecode, most things that can't be done one way, can be 
coded around to work another way.

I would suggest an enhancement to LiveCode to add a property to Groups that 
toggle between:

behave as a container: current group behavior regarding mouse event messages 
[default]
OR
behave as an object: cause the group to received mouse event message (and other 
routine object messages) following the usual rules (i.e. if there is a button 
in the group that has a mouseEnter handler it gets the message when the button 
is entered, but the group gets a message when it is entered, just as if you 
have a small button on top of a large button)

I don't know what to call the proposed property, and I certainly would not, at 
this time, prioritize it. I've submitted nearly 20 bugs in the last 60 days and 
I'd much rather see more of those fixed that a new feature added. That said, a 
property like this could be s solution for both use cases of groups.


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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Groups do not receive mouseEnter messages?

2019-06-25 Thread Devin Asay via use-livecode
I have always thought of a group as a container object, like a card, but 
without a “canvas” that constitutes a part of the object. It’s always made 
sense to me that a group doesn’t get mouse messages, except as they are passed 
from child objects. If the group did get mouse click messages, it would 
complicate things in situations where you want to know which child object was 
clicked on.

A group of audio playback buttons, as it stands now:

on mouseUp
   play audioClip (the short name of the target)
end mouseUp

A group of audio playback buttons, as it would be if the group received mouse 
click messages:

on mouseUp
   if the owner of me is not me then
  play audioClip (the short name of the target)
   end if
end mouseUp

So at least for most of my use cases, the current situation makes the most 
sense to me.

My $.02.

Devin

On Jun 25, 2019, at 9:24 AM, dunbarxx via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I suppose as long as one knows how it works, it can be dealt with.

But there is an issue here, in that a group is not really a control, despite
what the dictionary says. A group has a rect, and one can tell if the
mouseLoc, say, is within that rect (and not necessarily within the rect of a
child control), but one cannot rely on any "ordinary" LC thinking to hold at
all.

I understand that a group is merely a group of controls. If it was a
ghostLike object that only did that, then well and good.

But since it interacts with those controls intrinsically (as, for example,
the way radio buttons behave "natively") and owns most "ordinary" control
properties, well then, dammit, if one makes it opaque and green, it ought to
respond to mouse events.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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

Mobile slider control

2019-03-21 Thread Devin Asay via use-livecode
Hi all,

So native LiveCode scrollbars (sliders, progress bars, and little arrows) look 
really bad on mobile devices. Has anyone produced a widget or just a scripted 
replacement for them?

Thanks,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Android SDK

2019-02-11 Thread Devin Asay via use-livecode
I just went through this with my class. To show your user library folder:

1. Open the Terminal application on your Mac, located in 
/Applications/Utilities. 
2. Enter the following command and hit return: 
chflags nohidden ~/Library 
3. You should now be able to see your Library folder, both in the Finder and in 
LiveCode.

> On Feb 10, 2019, at 8:57 AM, Richmond via use-livecode 
>  wrote:
> 
> I have just installed Android studio on my Mac Mini and seem unable to link my
> LiveCode 9.0.0 installation to the SDK because LiveCode seems unable to "see"
> my User/library folder.
> 
> Richmond.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: HTML entity escaping?

2019-01-08 Thread Devin Asay via use-livecode
David, I assume you mean you want to render the named entity as the proper 
glyph? The way to do that is with the htmlText property.

  set the htmlText of fld “foo” to “The book costs 30."

Devin

On Jan 8, 2019, at 6:53 AM, David Bovill via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Is there a way / anyone have a handler to escape named html entities in
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: LC-apps for HC

2018-11-30 Thread Devin Asay via use-livecode
The authoritative guide for converting HyperCard stacks to LiveCode is still 
Jacque’s tutorial at https://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html

Devin

On Nov 30, 2018, at 10:02 AM, Ingar Roggen via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hello, André,
I hope you still remember that we met in Las Vegas. I still use HyperCard and 
wonder if it has become easier to port HC-stacks to LiveCode? Do you know if 
there are any apps for that? And if not, would it be difficult to write them?
Regards
Ingar

Sendt fra min iPhone

30. nov. 2018 kl. 14:41 skrev Andre Alves Garzia via use-livecode 
mailto:use-livecode@lists.runrev.com>>:

Kaveh,

I would work which lines should be shown and hidden inside a variable and then 
replace the whole field...

On 30/11/2018 13:07, Kaveh Bazargan wrote:
Yes Andre, that is the line that fixed it, in a split second :-)

But here is a follow-up: Now I want to hide all lines that have no text style 
and only show lines with colored text. I use:

repeat with i = 1 to the number of lines of fld 1
 if the textcolor of line i of fld "text" is not empty then
set the hidden of line i of fld "text" to false
 end if
  end repeat

This is taking time too. Any suggestions how to speed this up?

On Fri, 30 Nov 2018 at 12:12, Andre Alves Garzia via use-livecode 
mailto:use-livecode@lists.runrev.com> 
> wrote:

  There is another tip here in this thread about

  set the hidden of line 1 to -1 of field "the field" to false

  As a single command, it might be better.

  On 30/11/2018 12:07, Kaveh Bazargan via use-livecode wrote:
Thank you guys. I am always embarrassed to ask here as I know
  the answer is
a one liner!!

And Andre the screen was locked already. :-)

On Fri, 30 Nov 2018 at 11:56, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com
  > wrote:

Hi Andre,

Am 30.11.2018 um 12:48 schrieb Andre Alves Garzia via
  use-livecode <
use-livecode@lists.runrev.com
  >:
tied locking the screen first?
tied AND locked?
Andre, you are hardcore! :-D

On 30/11/2018 10:33, Kaveh Bazargan via use-livecode wrote:
I have a text field with some 3500 lines of text. I want to
  ensure all
lines are visible, as I have hidden some before. I use:

repeat with i = 1 the number of lines of fld 1
  set the hidden of line i of fld 1 to false
end repeat

This is taking over 1 minute to complete. I have tried
  removing all
styling
from the text so e.g. backgroundcolor is empty, etc. Same result.

Any suggestions pls?
Best

Klaus

--
Klaus Major
http://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



--
Kaveh Bazargan
Director
River Valley Technologies  • Twitter 
 • LinkedIn 

___
use-livecode mailing list
use-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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: finding location on mobile device

2018-11-13 Thread Devin Asay via use-livecode
This has worked for me in the past, but I haven’t tried it in quite some time:

mobileStartTrackingSensor "location", false
put mobileCurrentLocation() into tLocArray
mobileStopTrackingSensor "location"
put "lat: " & tLocArray["latitude"] & cr & "long: " & tLocArray["longitude”] 
into fld "report"

Devin

> On Nov 13, 2018, at 1:06 PM, Mike for GDC via use-livecode 
>  wrote:
> 
> I am trying to find my current lat/long on my android device.  I have played
> around with multiple options including "mobileCurrentLocation" and others.
> I have not been able to find an example of code that does it and works.
> What I want to do is push a button, have the lat/long displayed so as I can
> then "feed" it into a map widget for display.  Does anyone have an example
> of code that does just that?  Thanks.  Mike
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: How to find the offset of the last instance of a repeating character in a string?

2018-10-29 Thread Devin Asay via use-livecode
On Oct 29, 2018, at 9:32 AM, Keith Clarke via use-livecode 
 wrote:
> 
> Folks,
> Is there a simple way to find the offset of a character from the ‘right’ end 
> of a string, rather than the beginning - or alternatively get a list of all 
> occurrences?
> 
> I’m trying to separate paths & pages from a list of URLs and so looking to 
> identify the position of the last ‘/‘ character.
> 
> Thanks & regards,
> Keith


There was a discussion on this topic on the list a few years ago, and I saved 
these functions in my script library:

From Peter Brigham:
These are utility functions I use constantly for text processing. 
Offsets(str,cntr) returns a comma-delimited list of all the offsets of str in 
ctnr. Lineoffsets(str,cntr) does the same with lineoffsets. Then you can 
interate over the list of offsets to do whatever you want to each instance of 
str in cntr. I keep them in a utility stack that is in the stackinuse, so it is 
available to all stacks. I don't use regex, as I have never gotten the regex 
syntax to stick in my head firmly enough to find it natural, and in any case 
doing it by script turns out to be as fast or faster.

Peter's lineOffsets function returns a line number for each found char offset. 
I added a function that returns only unique line numbers.

function offsets str,cntr
-- returns a comma-delimited list of
-- all the offsets of str in cntr
put "" into oList
put 0 into startPoint
repeat
put offset(str,cntr,startPoint) into os
if os = 0 then exit repeat
add os to startPoint
put startPoint & "," after oList
end repeat
if oList = "" then return "0"
return item 1 to -1 of oList
end offsets

function lineOffsetsAll str,cntr
-- returns a comma-delimited list of
-- all the lineoffsets of str in cntr
# (returns a line number for ALL instances)
put offsets(str,cntr) into charList
if charList = "0" then return "0"
put the number of items of charList into nbr
put "" into oList
repeat for each item n in charList
put the number of lines of (char 1 to n of cntr) \
& "," after oList
end repeat
return item 1 to -1 of oList
end lineOffsetsAll

# added by Devin Asay
function lineOffsets pStr,pSearchTxt
# (returns only unique line numbers)
put empty into tList
put 0 into tStartLine
repeat 
put lineOffset(pStr,pSearchTxt,tStartLine) into tLineNum
if tLineNum = 0 then exit repeat
add tLineNum to tStartLine
put tStartLine & "," after tList
end repeat
if tList is empty then return "0"
return item 1 to -1 of tList
end lineOffsets

Hope this helps.

Devin

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Natural Programming

2018-09-11 Thread Devin Asay via use-livecode
On Sep 11, 2018, at 12:14 PM, Mark Wieder via use-livecode 
 wrote:
> On 09/11/2018 10:27 AM, Jerry Jensen via use-livecode wrote:
>> Reminds me of the dyslexic cop that tried to give me an IUD.
>>> On Sep 11, 2018, at 8:18 AM, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> You know, programming comes so naturally to me, it's like it's in my NDA.
> 
> I used to have dialup but now I'm happy with my LSD.

LLO! RTOFL!  -:D

Devin
___
use-livecode mailing list
use-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: LC Documentation Cache Cleaner

2018-09-07 Thread Devin Asay via use-livecode

On Sep 6, 2018, at 9:56 PM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

You have to open the LC tools palette occasionally. ;) At the top is a big plus 
sign. Clicking that opens a stack/window much as Sample Stacks does. A tabbed 
interface gives access to a number of Libraries, Widgets, and the Store (which 
is barely populated.)

Hey, I just noticed you can hide and show individual widgets from the Widgets 
tab in the Extensions Manager. Click the down arrow next to the widget and it’s 
one of the options. I’m probably the last one to notice that.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: [OT]Silly weekend LC poll

2018-08-25 Thread Devin Asay via use-livecode
“Care” and “loke”. Habits from way back in the HyperCard days.  

Sent from my iPhone

> On Aug 25, 2018, at 1:28 PM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> 
> 
> CHAR  rhymes with far
> LOC rhymes with lock.
> 
> This is at least how i pronounce them. But i am native German and not native 
> English.
> 
> Btw.: due to the fact that LC language is english like,  you should see my 
> comments  and variable names in my scripts.
> They are mixed, some comments are in english some in german, even in one and 
> the same script. It could be that i use tDate in one script and in another  
> one tDatum as date var.
> But that´s an other story.
> 
> Regards,
> 
> Matthias
> 
> 
>> Am 25.08.2018 um 21:07 schrieb J. Landman Gay via use-livecode 
>> :
>> 
>> I wonder how people pronounce two common LC abbreviations. In print you 
>> never notice but in real life I always have to translate what they're 
>> talking about.
>> 
>> How do you pronounce:
>> 
>> CHAR
>> Rhymes with "care"
>> Sounds like smoldering wood
>> 
>> LOC
>> Rhymes with "smoke"
>> Sounds like a deadbolt
>> 
>> I suppose there are others.
>> -- 
>> 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
___
use-livecode mailing list
use-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: Not many people know this.

2018-08-16 Thread Devin Asay via use-livecode


On Aug 16, 2018, at 1:01 PM, Richmond Mathewson via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Of course it was too good to last . . .

I merrily filled a field up with a series of letters from 2 different fonts and 
then did this:
*
**set the text of fld "f2" to the text of fld "f1"*

and all my font stuff disappeared and everything ended up in the textFont of 
field "f2".

So . . .

The *BIG QUESTION* is how to retain one's "cocktail"
of fonts when taking some text from one field into another one.



The htmlText or rtfText properties should retain all formatting:


  set the htmlText of fld “f2” to the htmlText of fld “f2”

HTH,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Not many people know this.

2018-08-16 Thread Devin Asay via use-livecode
On Aug 16, 2018, at 11:48 AM, Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:



Paragraph-level formatting opens up wholly new opportunities, beyond any xTalk 
I've ever seen.

I'm not sure if this info has been incorporated into the docs system yet, but 
the Release Notes for v5.5 offer a solid overview of the new field features 
(starting on p12), most of which are paragraph-level properties like indent, 
border, padding, etc. (p19), along with the wonderfully efficient styledText 
array representation of field contents ([p16) and super-useful indented lists a 
la HTML and word processors (p18):
https://downloads.livecode.com/livecode/5_5_4/LiveCodeNotes-5_5_4.pdf

When I revised the htmlText property entry in the dictionary a couple of years 
ago, I incorporated all of the changes to the paragraph  tag, which included 
all of the new paragraph level properties. That’s the only place in the 
dictionary I can think of where a discussion of all of the p-level properties 
together is appropriate. What is still left to be done is to update all of the 
entries for the individual properties that were field-level props only before 
v. 5.5. While the syntax statements have all been updated, there is no note in 
the entries of when they were changed to become p-level. I wish I had the time 
now, but my LC time has been severely reduced by my duties at work the last 
couple of years.

Dictionary editing is a great way for community members to contribute to the LC 
project, and the barrier to entry is much lower than trying to learn enough C 
code to work on the LC engine. It requires attention to detail, but otherwise 
is kind of fun and not difficult.

Cheers,

Devin



Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: [OT] Snakey Problem

2018-08-13 Thread Devin Asay via use-livecode
Richmond,

One of my colleagues who teaches Python uses a cloud-based service called 
PythonAnywhere. The basic plan is free for anyone to use. You access it through 
a web browser. You may find it useful.

Host, run, and code Python in the cloud: 
PythonAnywhere

I have just tapped the extent of my Python system knowledge. ;)

Devin


On Aug 13, 2018, at 2:23 AM, Richmond Mathewson via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Like it or not (and mainly NOT), I have to offer Python to kids this fall . . .

This is a b*gger for several reasons:

1. I love LiveCode.

2. To use Python to any effect apart from rather goofy manipulations with 
numbers and text an install
requires 'modules' which are usually installed using a daft command-line system 
using something call
'PIP' [ "Permanently Injurious Python" perhaps? ] . . . which I have signally 
failed to get to work on either
Macintosh or Linux.

I wonder of anyone knows of a way to install Python 3 on Linux with the main 
GUI modules "bound in":
i.e. a one-stop install.

Frankly, Python, by using this module system seems to defeat itself to a 
certain extent: or, maybe I'm just
spoilt by LiveCode.

This question is very timely as Wednesday is Nag Panchami: the day of snakes!

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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


When did highlighted text get fixed?

2018-05-30 Thread Devin Asay via use-livecode
Does anyone remember when text on highlighted lines on Mac started working 
properly? That is, when did black text on a dark colored background start 
showing up as white text on a colored background in a list-style field? 
Methinks is was in the 8.0 series, or was it in 7.x?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: LCG Session Suggestions

2018-04-10 Thread Devin Asay via use-livecode
A couple of years ago, when I was doing lots of dictionary fixes, I created a 
checklist for myself of how to do it and what to look for. Maybe others will 
find it helpful:

https://github.com/asayd/livecode/blob/asayd-docs_editing_checklist/docs/dictionary_editing_checklist.md

Devin

On Apr 10, 2018, at 7:36 AM, Andrew Bell via use-livecode 
> wrote:

Has there been a session where someone showed a bug fix with pull request? I 
recently tried to try a simple contribution (updating a Dictionary entry) and 
found myself struggling (Git virgin). I know there are lots of Github tutorials 
(and Trevor did a tutorial with Git/Levure @ LC Global 17 day 2), but would be 
nice to see a demo explaining LiveCode branches etc.

--Andrew Bell


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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: LCG Session Suggestions

2018-04-10 Thread Devin Asay via use-livecode
Ali,

I notice that in that doc you are still directing people to use the develop-8.2 
branch for submitting PRs for dictionary updates. Is that still the branch you 
want us to use?

Devin

On Apr 10, 2018, at 9:56 AM, Ali Lloyd via use-livecode 
> wrote:

I also recommend reading the docs contribution guide:
https://github.com/livecode/livecode/blob/develop/docs/contributing_to_docs.md
which applies more or less equally to small code changes.

On Tue, Apr 10, 2018 at 4:07 PM Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

My session last month was on setting up to build from source including
submitting a PR. Most of the info is in the screen shots on the slides so
it is easy to skip through the slides.
On Tue, Apr 10, 2018 at 10:31 AM Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

I have finally decided what I will be adding to the September
Sessions

Multi-Core Processing in LC.  No idea how thats gonna happen, but I need
it
for my own projects, so I'll have to find a solution. :D

On Tue, Apr 10, 2018 at 10:29 AM, Tom Glod  wrote:

I would watch that..I was looking for that yesterday, while thinking
about
adding something to the httpd library.

I would watch that one.

On Tue, Apr 10, 2018 at 9:36 AM, Andrew Bell via use-livecode <
use-livecode@lists.runrev.com> wrote:

Has there been a session where someone showed a bug fix with pull
request? I recently tried to try a simple contribution (updating a
Dictionary entry) and found myself struggling (Git virgin). I know
there
are lots of Github tutorials (and Trevor did a tutorial with
Git/Levure
@
LC Global 17 day 2), but would be nice to see a demo explaining
LiveCode
branches etc.

--Andrew Bell


___
use-livecode mailing list
use-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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: variable xref

2018-03-30 Thread Devin Asay via use-livecode
On Mar 29, 2018, at 10:34 PM, Mike Kerner via use-livecode 
 wrote:
> 
> I don't want to pretend to be an expert on the topic of writing compilers,
> since I only ever wrote two, both under the watchful obsession of a
> professor, and my lex and parse code were not optimal in either case.  In
> general, they were some of the easiest pieces of large code I ever wrote
> because the grammars were so rigid and rule-based.  Building forgiveness
> into them would have made the poor developer's life easier, even thought
> that meant adding a third pass to try to ascertain context instead of
> blindly aborting when something didn't exactly fit the formula.
> 
> I agree that unquoted literals are not ideal.  I think they should be
> deprecated, and I think they should have been removed in 1986, so add that
> to the LC10 list.  They have always made reading scripts more difficult.
> Readability and approachability are two things that have set xtalk apart.
> Unquoted literals detract from that.

+1

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: LC 9 and Icon Families

2018-03-14 Thread Devin Asay via use-livecode
Good idea. Done.

I also added my SVG Icon Picker stack.

DNA

On Mar 14, 2018, at 4:29 PM, hh via use-livecode 
> wrote:

Thanks. Please put this on "Sample Stacks" (there are more visitors there).

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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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


LC 9 and Icon Families

2018-03-14 Thread Devin Asay via use-livecode
Hi folks,

Couldn’t resist spending some time on the new RC of LC 9. One of the cool new 
features is the ability to add icon families to your instance of LiveCode. 
Using the release notes and the dictionary I worked out how to create and add 
new icon families. This finally makes it possible to use your own custom icons 
in a Nav bar widget, for example.

Try out my stack here (enter in message box):

  go stack URL "https://asay.byu.edu/stacks/IconFamilyMaker.livecode;

Enjoy!

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Background color in an 'answer' dialog?

2018-02-28 Thread Devin Asay via use-livecode

> On Feb 28, 2018, at 10:02 AM, Graham Samuel via use-livecode 
>  wrote:

> While I’m on to explanations, in all my years of using LC and its 
> predecessors, I have never understood what the right hand column in the 
> ‘colors’ tab of the object inspector is for.

Choosing a background pattern (as you’ve discovered.)

> The left hand column is straightforward: one just picks a color, for example 
> “background fill”. But the next column leads to a strange popup list of icons 
> (some are called ‘standard icons’, whatever that means). Why would I want my 
> background fill to be a repeat of a lot of little forward arrows, for example?

“Standard icons” is in an option list, and the next option on the list is 
Default Patterns. That gives you a slightly less-unusable selection of 
background patterns you can apply to your object. The feature is really more 
useful for setting an image of your choice as the background of an object. Just 
import the image and use:

set the backgroundPattern of fld 1 to 10003 # the id of the imported image


> And if I did this by mistake, how can I delete this choice? I could not find 
> a way.

It’s not clearly indicated. Right click on the pattern box in the right column 
and choose “Reset to default”.

> Proper patterns, as in wallpaper, I find easier to understand, even if I’ve 
> never used them. Am I missing some tremendous feature? Or is this just of 
> archeological interest?
> 
See above re setting the backgroundPattern. There are lots of instances where 
it can be useful. A field with a fancy border, for one example.

HTH

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Background color in an 'answer' dialog?

2018-02-28 Thread Devin Asay via use-livecode
Graham,

I think what is happening is that when you run in the IDE the parent stack of 
the answer dialog stack is the LiveCode engine, which sets a 
platform-appropriate background color (or no background color) for all child 
stacks. When you include it in a standalone, your stack-made-standalone becomes 
the parent stack, and whatever background color is set for that stack is 
inherited by the answer dialog stack. At least I have seen this happen with 
standalones that have a stack color set, and I’m fairly certain this is what 
you’re seeing. What happens if you change your main stack’s background color 
then rebuild the standalone?

Devin


On Feb 28, 2018, at 8:01 AM, Graham Samuel via use-livecode 
> wrote:

Craig, you make an excellent point. We now know there is a stack named “answer 
dialog” and that it has properties you can set. Surely the documentation should 
explain this somewhere?

By the way, when I said my red background had disappeared, it hadn’t. It’s just 
that when you I through the script in the IDE, the background comes up white, 
whereas in the standalone (both platforms), it comes up red. A bug, surely? I 
will see if I can boil it down far enough to report it.

Graham

On 28 Feb 2018, at 14:50, dunbarx via use-livecode 
> wrote:

As a follow-up, is there anywhere a list of all IDE stacks? For example, the
stack named "answer dialog", though perfectly logical, is not listed
anywhere, and the names of some stacks, like the script editor, have changed
over the several LC versions.

It is a great way to get oneself in real trouble, but also useful if one
wants red answer dialog boxes.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: use SSL inside Mysql connection

2018-01-24 Thread Devin Asay via use-livecode
Heribito,

Your revOpenDatabase call is incorrectly formed. The useSSL and autoReconnect 
parameters should be booleans, like this:

put revOpenDatabase(“mysql”, tServer, tDatabaseName, tUser, tPass,true,,,true) 
into tConnectionID

Note also that you have to put the values into the correct parameter sequence, 
leaving empty items for params you are not using.

Hope this helps,

Devin



On Tue, Jan 23, 2018 at 9:01 PM, Heriberto Torrado via use-livecode <
use-livecode@lists.runrev.com> wrote:

Hi,

I'm going crazy trying to make a SSL mysql connection from a Livecode
Stack.
I was searching information in Livecode dictionary and Livecode guides,
but there's not much information about that.

I'm developing a small application for a customer.

This applications will be run inside my customer's premises.

I don't want to build a middleware between that database and the
applications because we don't have the time and resources.

Well, my mysql connection is this:

put revOpenDatabase("MySQL", tserver, tDatabaseName, tuser, tpass,
useSSL=true, autoReconnect) into tResult

But SSL seems not to work.

My questions are:

Is my string database connection well done?
Where do I have to put the client certificates for my MYSQL database?
Could you please send me a couple of small samples?

Thank you very much in advance.

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: LiveCode University bug

2018-01-09 Thread Devin Asay via use-livecode
Andrew,

It’s best just to send them to me; avoids the middleman. :)

I’m in the final stages of creating an updated version that uses much more 
up-to-date content. Perhaps I can send you a “DP” status copy and have you take 
a look at it. I think it’s in pretty good shape except for a final, nagging 
content update bug that I expect to swat this week.

Regards,

Devin


On Jan 9, 2018, at 11:49 AM, Andrew Bell via use-livecode 
> wrote:

I'm getting ready to start a new semester teaching LiveCode using LiveCode 
University. Each time I run this class, I notice some discrepancies between LCU 
and whatever the current version of LC is. Devin Asay is listed as the author, 
but this was purchased through RunRev. I started to file a bug report at 
quality.livecode.com and realized that probably 
isn't the right channel.

Who should bugs be reported to for LiveCode University?

--Andrew Bell


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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: SQL Insert Syntax

2018-01-05 Thread Devin Asay via use-livecode
Bob,

You could try parameterizing your statements as described in the dictionary. 
Also, you don’t want to quote your column names.

put 0,43,500,543 into tRect
put “image “ & quote & “fresh_now.png” & quote into tObj
put “card “ & quote & “Main” & quote into tCard
put false into tVis
revExecuteSQL myID, "insert into arraydata (rect,controlname,owner,visible) 
values(:1,:2,:3,:4)", “tRect" ,”tObj”,”tCard”, “tVis”

This is also best practice, because it protects against SQL injection attacks. 
(Admittedly more of a concern with network databases.)

HTH

Devin


> On Jan 5, 2018, at 2:24 PM, Bob Sneidar via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Possibly, but every sqLite reference I've looked at seems to indicate that I 
> should enclose string values with single quotes, and since my text contains 
> double quotes, I thought that would do the trick. I have tried escaling 
> quotes ie. \" but that doesn't work either. 
> 
> This BTW is why I use sqlYoga, so I don't have to deal with this syntax crap, 
> but I am writing a function that I want to be universally viable. 
> 
> Bob S
> 
> 
>> On Jan 5, 2018, at 13:18 , Devin Asay via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Bob,
>> 
>> Some SQL dialects accept both single and double quotes as string delimiters. 
>> Might that be the problem?
>> 
>> Devin
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: SQL Insert Syntax

2018-01-05 Thread Devin Asay via use-livecode
Bob,

Some SQL dialects accept both single and double quotes as string delimiters. 
Might that be the problem?

Devin

On Jan 5, 2018, at 2:16 PM, Bob Sneidar via use-livecode 
> wrote:

Can anyone find anything wrong with this sqLite insert statement?

INSERT INTO arraydata ("rect","controlname","owner","visible") VALUES 
('0,43,500,543','image "fresh_snow.png"','card "Main"','false')

It doesn't generate an error, but neither does it insert anything! There is a 
primary key column that I don't include because it's supposed to auto increment 
automatically if no column/value is supplied.

Bob S



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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: Simulator woes

2017-12-27 Thread Devin Asay via use-livecode
Thanks, Paul. I did finally get it working, using the old standby—deleting 
LiveCode preferences and then restarting the simulator. Wish I’d thought to try 
that combination earlier. Thanks for your suggestions.

Devin

On Dec 27, 2017, at 3:11 PM, Paul Hibbert via use-livecode 
<use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Devin,

I did just see the same error when launching the simulator for the first time 
(this session), but then I restarted the simulator device and all worked as 
expected, but it was a long laborious process displaying multiple messages.

One trick I’ve used in the past still worked OK. When the simulator does 
finally open, add it’s icon to the dock, now when working on a mobile apps, 
launch the simulator from the dock first, when it does open fully any tests 
sent to the simulator from LC are opened much quicker

LC 9.0.0 (dp11)
Xcode 9.2
Mac OS Sierra 10.13.2

Paul




On Dec 27, 2017, at 11:27 AM, Devin Asay via use-livecode 
<use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Hi all,

I’m heading into my annual foray into teaching mobile development, and so 
testing running stacks in the simulator. For the life of me, I’m unable to get 
a stack to show up in the simulator, where I’ve had little trouble in the past. 
Has something changed?

When I try to test a stack in the simulator I get the “taking a long time to 
launch” message several times. The simulator does launch. Eventually I see the 
message “Unable to start simulation: Simulator session timed out.” This happens 
whether or not the simulator is launched when I hit the Test button in LiveCode.

I’ve tried several different versions of LC and Xcode. All the same result. 
Right now I’m on:

Mac OS 10.12.6
LiveCode 9.0.0 DP 11
Xcode 9.2

Is this a new problem that others are seeing? I’m not finding anything in the 
forums, and have a vague memory of a discussion here about this topic. Any help 
greatly appreciated.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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

Simulator woes

2017-12-27 Thread Devin Asay via use-livecode
Hi all,

I’m heading into my annual foray into teaching mobile development, and so 
testing running stacks in the simulator. For the life of me, I’m unable to get 
a stack to show up in the simulator, where I’ve had little trouble in the past. 
Has something changed?

When I try to test a stack in the simulator I get the “taking a long time to 
launch” message several times. The simulator does launch. Eventually I see the 
message “Unable to start simulation: Simulator session timed out.” This happens 
whether or not the simulator is launched when I hit the Test button in LiveCode.

I’ve tried several different versions of LC and Xcode. All the same result. 
Right now I’m on:

Mac OS 10.12.6
LiveCode 9.0.0 DP 11
Xcode 9.2

Is this a new problem that others are seeing? I’m not finding anything in the 
forums, and have a vague memory of a discussion here about this topic. Any help 
greatly appreciated.

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young 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: ArrayToJSON in LCServer ?

2017-11-17 Thread Devin Asay via use-livecode
Alex,

My recollection is that for functions in libraries, like this one, you have to 
find the library stack in the IDE installation and copy it to your server then 
‘start using’ it, in the case of a stack, or ‘include’ it in the case of a .lc 
script. (The former is what I’ve done, I believe.) I’ve done this successfully. 
The hard part is figuring out where the library is stashed in the IDE 
installation.

HTH

Devin

On Nov 17, 2017, at 3:57 PM, Alex Tweedly via use-livecode 
> wrote:

It looks as though arrayToJSON() isn't included in LCServer  (*).

That can't be right - can it ?

Must be something I need to do - but what ?


(*) The dictionary for the array <-> JSON functions don't mention OS or 
Platforms.

My simple test script could be much simpler ...

http://tweedly.co.uk/tryme.lc>"
  row 6, col 5: Function: error in function handler (arraytojson)
  row 6, col 5: put: error in expression

-- 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young 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

  1   2   >