LC Screen Recording?

2022-06-28 Thread Rick Harrison via use-livecode
I’m wondering if there is a way from within LC to
make a video recording of what is going on within
a rect in a macOS LC app.  Recording audio at
the same time would also be a big plus.

Anyone with good ideas or suggestions for what
I might be able to do?

Thanks,

Rick
___
use-livecode mailing list
use-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: Is Anyone on the list still using macOS 10.11?

2022-06-27 Thread Rick Harrison via use-livecode
Hi Matthias,

Sorry, but I am no longer have Yosemite on any of my older Macs.

Thanks for the clarification though.  Hopefully someone can
help you out with this.

Cheers,

Rick

> On Jun 27, 2022, at 10:14 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Hi Rick,
> 
> it's even older. I meant 10.10 (Yosemite). ;)
> 
> I would just send you a download link with a zip file. The zip file contains 
> 2 or 3 app. I need to know which of the apps can be opened on 10.10.
> 
> There seems to be a problem when a standalone was code sigend on a Mac with 
> Apple cpu. Codesign then automatically uses SHA256, but macOS below 10.11 
> still needs the standalone to be code signed with SHA1.
> There is a way to do this by telling codesign command not to automatically 
> choose the algorithm, but to use instead SHA1 and SHA256. This should fix 
> this. 
> 
> And i just need a confirmation, if that's the case
> 
> 
> Regards,
> Matthias

___
use-livecode mailing list
use-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: Is Anyone on the list still using macOS 10.11?

2022-06-27 Thread Rick Harrison via use-livecode
Hi Matthias,

macOS 10.11 El Capitan?

You shouldn’t be testing with that at all.  It’s 6-7 years out of date now.

What kind of testing do you need?

Good luck!

Rick

> On Jun 27, 2022, at 8:26 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Hi,
> is there anyone on the list still using macOS 10.10 and would be willing to 
> test 2 or 3 sample apps for me.
> The apps are just with one answer dialog.
> 
> There seems to be a problem with standalones under macOS 10.10 that were code 
> signed with a Mac with Apple cpu (M1/M2).
> 
> The results of the testing would me help to enhance my LC Notarizing lesson.
> 
> 
> Regards,
> Matthias
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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


LC Server & Monterey

2022-06-18 Thread Rick Harrison via use-livecode
I’m trying to upgrade my web-server from
Catalina to Monterey, and I’m running into

Error 403
Forbidden

You don't have permission to access this resource.

I’m using LiveCode Server 9.6.7

Everything worked great under Catalina.
What extra thing do I need to do for Monterey?

Anyone else worked through this problem?

Thanks,

Rick

___
use-livecode mailing list
use-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-07 Thread Rick Harrison via use-livecode
Try rolling 2 six-sided dice.  7 is the number that appears the most
so it’s at the middle of the curve, while 2 and 12 are at the ends
of the distribution.  Roll the dice multiple times to generate a
distribution.

Now simulate rolling the dice with random numbers in LC the same way.

Now conduct your own experiments, and graph your results.

Have fun!

Rick



> On Jun 7, 2022, at 4:51 PM, David V Glasgow via use-livecode 
>  wrote:
> 
> 
> Quite a lot of stats and maths packages offer a feature whereby the N, the 
> Mean and the SD are variables specified by the user, and N random numbers are 
> then generated with the required mean and SD.  I remember the venerable and 
> excellent Hypercard  HyperStat 
>  (1993) by 
> David M Lane doing exactly that.
> 
> In general terms, how do they do this?  One option would be to ‘pair’ each 
> random number with its reciprocal around the mean, but that would generate 
> perfectly symmetrical distributions, not to mention is only half random.
> 
> Alternatively you could ‘aim’ at the sum and do a little series of kludges at 
> the end of the RND generation.  Ugly and cheaty, and neither addresses the SD 
> challenge
> 
> Or is there an elegant formula?  I have Googled about and can’t see one, but 
> maybe I don’t know the magic words.  And if someone wanted to script this in 
> LC what would be the best approach? (just general guidance here, wouldn’t 
> want anyone to invest their valuable time in what is at present just vague 
> musings)
> 
> Any hints from the stats gurus?
> 
> Cheers
> 
> David Glasgow
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
Hi Paul,

Thanks for this.  I’ll keep this in mind for the future.

I found that Bob’s simple suggestion of:
put URL VarURL into VarHTMLText

to work the best for me.

Thanks again!

Rick


> On May 18, 2022, at 1:38 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Instead of:
> 
> set the HTMLText of VarHTMLText to URL VarURL
> 
> Use:
> 
> set the HTMLText of the templateField to URL VarURL
> 
> And instead of:
> 
> get the effective HTMLText of VarHTMLText2
> 
> Use:
> 
> get the effective HTMLText of the templateField
> 
> ___
> use-livecode mailing list
> use-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: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
Hi Bob,

That might be what I need, but I’ll have to
look at the resulting code to see if that will work.

Thanks,

Rick

> On May 18, 2022, at 12:43 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> put URL VarURL into VarHTMLText

___
use-livecode mailing list
use-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: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
Hi Klaus,

Thanks for getting back to me on this.

That explains the problem. 

I wish it worked with variables though 
because execution would be faster.  

Oh well, at least it will do for now until we have
the LC 10 compiler which will make it all faster!

Rick

> On May 18, 2022, at 12:29 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> HTMLTEXT is a property of FIELDS, variables do not have this!
> Presumed VarHTMLText is a variable.
> 
> 
> Best
> 
> Klaus

___
use-livecode mailing list
use-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: Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
Thanks!  It’s a bummer though,
because variables are much faster.

Rick

> On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode 
>  wrote:
> 
> I would think it is because the htmlText is a property of a field. It is one 
> of the properties that it inherited by any field.  The variable does not have 
> this property.
> 
> Best regards
> Tore Nilsen

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


Set HTMLText and Get Effective HTMLText

2022-05-18 Thread Rick Harrison via use-livecode
This works:

set the HTMLText of field "HTMLTextField1" of this card to URL VarURL


This doesn’t work:

set the HTMLText of VarHTMLText to URL VarURL

(The syntax is accepted fine, but it throws the following error at execution 
time.)

Chunk: error in object expression



This works:

get the effective HTMLText of field "HTMLTextField1" of this card


This doesn’t work:

get the effective HTMLText of VarHTMLText2

(The syntax is accepted fine, but it throws the following error at execution 
time.)

Chunk: error in object expression


Why?

Thanks for your insight in advance!

Rick
___
use-livecode mailing list
use-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: Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
Hi Bob,

Nice to know this for the future.

Thanks for your research!

Rick

> On May 16, 2022, at 7:53 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> OK so it appears there is a log2 property. The log2 of 1000 yields 9.965784 
> so I suppsoe if you round up, that would give you the maximum number of 
> iterations to isolate a single line in a 1000 line sorted list. 
> 
> 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


Re: Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
Hi Bob,

Yes, I was looking into the binary sort idea.  It’s too bad that
isn’t just a built-in function for LC.  I’m not sure it’s worth
that kind of effort for my particular case.

Thanks,

Rick



> On May 16, 2022, at 6:44 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> So this has got me thinking. Apparently what I am calling Divide and Conquer 
> is really called a binary sort. I have looked up on the interwebs to 
> calculate the maximum number of iterations for a given number of values, but 
> it seems that all the formulas offered up use functions for C. I am trying to 
> figure out what a basic math formula for this is, given n values. 
> 
> 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


Re: Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
Hi Bob,

I just need to make one pass at the data, so building an SQL database for it 
doesn’t make sense.

I don’t have any definitive line for the boundary between good and bad data.  
It’s more of a
consistent first guess used just to cut down on the amount of data to process.  
I start looking
for the good data after about a third of it has passed by.

Thanks,

Rick

> On May 16, 2022, at 6:00 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Do you know exactly which lines you need to toss, or do you need to searc the 
> data to find out where the beginning and end of the useful data is? 
> If the former, then just put line x to y of your data into a new variable. If 
> the latter, then a divide and conquer approach might be the answer. Get the 
> line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% 
> or 37.5% depending on your test. 
> 
> You may only have to do this a dozen or so times to find the exact line where 
> your valid data begins. 
> 
> The other way of course is to get it all into a SQL database (how did you all 
> know I was going to say that??) The downside is that you have to iterate 
> through all your data once. The upside is a good one liner query statement 
> may be all you need to process your data. And if you need to make multiple 
> passes at your data, all the better. 
> 
> 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


Re: Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
Hi Ralph,

Filtering the data first made a huge difference in the size of the data I need 
to search.

Thanks!

Rick

> On May 16, 2022, at 4:01 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> If the needed OR unneeded lines have something in common then the filter 
> command is your friend. Filter is blazingly fast.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Rick Harrison via use-livecode
> Sent: Monday, May 16, 2022 1:46 PM
> To: How to use LiveCode
> Cc: Rick Harrison
> Subject: Divide Large Data Blob?
> 
> I have a large chunk of data that I want to search as quickly as possible.  
> 
> Unfortunately the part I want to search is the middle third of the data.  The 
> other thirds at the beginning and at the end are just junk and slow down my 
> search so I want to get rid of them.
> 
> I don’t want to search line by line as that takes way too long.
> 
> There’s no unique character dividing any of these data regions.
> 
> What’s the best way to do this?
> 
> Thanks in advance!
> 
> Rick
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
Hi Ralph,

I was looking at filter.  It might help me to
cut down on the amount of data to search,
but I would still have to throw out the
first 1/3 of the data.  Perhaps filtering
first and then processing what’s left
by line number wouldn’t be too slow.

Thanks for the suggestion!

Rick

> On May 16, 2022, at 4:01 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> If the needed OR unneeded lines have something in common then the filter 
> command is your friend. Filter is blazingly fast.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Rick Harrison via use-livecode
> Sent: Monday, May 16, 2022 1:46 PM
> To: How to use LiveCode
> Cc: Rick Harrison
> Subject: Divide Large Data Blob?
> 
> I have a large chunk of data that I want to search as quickly as possible.  
> 
> Unfortunately the part I want to search is the middle third of the data.  The 
> other thirds at the beginning and at the end are just junk and slow down my 
> search so I want to get rid of them.
> 
> I don’t want to search line by line as that takes way too long.
> 
> There’s no unique character dividing any of these data regions.
> 
> What’s the best way to do this?
> 
> Thanks in advance!
> 
> Rick
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
Hi Richmond,

Doesn’t the following still require a loop?

LC doesn’t like the syntax you provided.

Thanks,

Rick

> On May 16, 2022, at 2:23 PM, Richmond via use-livecode 
>  wrote:
> 
> 3 put chars 1-SLICER of MyDATA into firstTHIRD

___
use-livecode mailing list
use-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: Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
Hi Richard,

I was looking at the offset function and thinking about
the starting points.  It still presents a looping problem
for me that I’m trying to avoid.  If other methods aren’t
more efficient I will play with it more.

Thanks,

Rick

> On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> The offset function has an optional third param for starting point, so 
> setting that value to the number of bytes you want to skip would take you 
> right where you want to be. Offset can then be used in a loop, updating the 
> starting value as you go. Exiting the loop once your into the tail you don't 
> want to index can be a simple if to escape the loop.
> 
> There may also be options for using delimiters. What does the source data 
> look like, and what should the resulting index look like?
> 
> And the most central question with things like this: how large is "large"?

___
use-livecode mailing list
use-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: Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
Hi Richmond,

An interesting approach.  I’ll give it try

Thanks!

Rick

> On May 16, 2022, at 2:23 PM, Richmond via use-livecode 
>  wrote:
> 
> Well one of the things you could do is this:
> 
> slightly pseudo
> 
> 1 put the number of chars in MyDATA into MyNUM
> 2 put MyNUM / 3 into SLICER
> 3 put chars 1-SLICER of MyDATA into firstTHIRD
> 4 put chars SLICER-(SLICER * 2) into secondTHIRD
> 5 put chars (SLICER * 2)-(SLICER*3) into thirdTHIRD
> 
> at which point you can perform you search inwith secondTHIRD.
> 
> Unless you want to recombine all those bits having performed some sort of 
> operation on secondThird
> lines 3 and 5 are a waste of time.
> 
> Best, 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


Divide Large Data Blob?

2022-05-16 Thread Rick Harrison via use-livecode
I have a large chunk of data that I want to
search as quickly as possible.  

Unfortunately the part I want to search is the 
middle third of the data.  The other thirds at 
the beginning and at the end are just junk and 
slow down my search so I want to get rid of them.

I don’t want to search line by line as that
takes way too long.

There’s no unique character dividing any
of these data regions.

What’s the best way to do this?

Thanks in advance!

Rick



___
use-livecode mailing list
use-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: Visual Dissolve Times

2022-05-05 Thread Rick Harrison via use-livecode
Hi Tore,

set the effectRate.. Cool!

Thanks Tore!

> On May 5, 2022, at 1:45 PM, Tore Nilsen via use-livecode 
>  wrote:
> 
> You can set the effectRate to speed up or down the visual effects. Lower 
> number increases the speed. Look it up in the Dictionary for more precise 
> explanation.
> 
> Best regards
> Tore Nilsen

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


Visual Dissolve Times

2022-05-05 Thread Rick Harrison via use-livecode
Greetings LiveCoders,

I was playing around with the visual dissolve effect
and I wanted to be able to specify an amount of
time for the effect.  In my case I wanted it to
do the effect in 0.75 seconds (3/4 of a second).

We only get choices of 

very fast
fast
normal
slow
very slow

When I tried the very fast setting, the 
fastest time I got was about 1 second.

Is there anyway to make it faster?

Thanks

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


Ken Burns LC Stack

2022-04-07 Thread Rick Harrison via use-livecode
I downloaded the Ken Burns LC Stack and
found that it doesn’t seem to work.

Is anyone else finding it doesn’t work?

Thanks,

Rick



___
use-livecode mailing list
use-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: Hey Lurkers: Anyone still using LC 6.7? (Regulars too)

2022-04-04 Thread Rick Harrison via use-livecode
Ah, the old days of LC 6.7 when LiveCode was fast.
How much I miss that!

Hopefully our new compiler when it comes out
will make me feel that LC 6.7 was really slow.

Thanks for the walk down memory lane!

Rick

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

2022-03-28 Thread Rick Harrison via use-livecode
Hi Tom,

I found htmltext gave me html not just text.

I tried the following, and it yielded a lot of formatting junk, plus some 
useable text.

set the HTMLText of field  “MyTestTextField" to the HTMLtext of widget  
“MyWebBrowser"

Bob is correct about javascript variable contents not coming across. 
I have found that aspect to be a source of much frustration.  If we could
just have a command that would copy and paste from the widget like a human
we would be able to capture those javascript variable values.

Thanks for the suggestions.

Rick


> On Mar 28, 2022, at 4:38 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Rick,
> 
> try the htmltext property instead of text. I just tested it, it works and
> text does not.

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

2022-03-27 Thread Rick Harrison via use-livecode
Hi Keith,

Yes, I have tried that several times and ways.  It doesn’t seem to work.
One would think that would work fine.

Other ideas?

Thanks,

Rick

> On Mar 27, 2022, at 3:58 PM, Keith Clarke via use-livecode 
>  wrote:
> 
> Hi Rick,
> Maybe try 'put the text of widget "youtBrowserName" into field 
> "yourFieldName" ' to get the plain text? If you need the html source, try 
> '...the htmlText' of widget...
> Best,
> Keith

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


Getting Webpage Information

2022-03-27 Thread Rick Harrison via use-livecode
I have been playing around with the WebBrowser
widget, and I can’t seem to grab the content results of
what the page returns.

Example:  If I use the Browser to navigate to google,
I can program a way to search for “Bird”.
When the results are returned in the browser, I can
manually perform a select all. I can then do a simple
copy and paste of the copied text into a field.

I just can’t perform the above programmatically
with LiveCode.  What am I missing here?

Thanks,

Rick



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

2022-03-24 Thread Rick Harrison via use-livecode
Yes, I’m looking into that.  Web-scraping isn’t fun though, and it can be a lot 
of work.
One also has to make sure it doesn’t violate company policies etc.  I’m not a 
fan
of getting sued.

Rick

> On Mar 24, 2022, at 1:55 AM, Dick Kriesel via use-livecode 
>  wrote:
> 
> You could scrape an online dictionary to obtain the syllabification for each 
> given word.
> 
> For example, if you investigate 
> https://www.dictionary.com/browse/syllabification 
>  
>  >, you can find the query 
> that yielded "syl·lab·i·fi·ca·tion."
> 
> You might find other dictionaries that make it easier.
> 
> — Dick

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


Re: Counting Syllables

2022-03-22 Thread Rick Harrison via use-livecode
Yes, that is where I’m at.  An existing database would make things a lot easier.

Rick

> On Mar 22, 2022, at 9:06 AM, Craig Newman via use-livecode 
>  wrote:
> 
> If you have a database at all, it would cost nothing much in speed to just 
> use the whole thing all the time. Put the database into an array, of the form:
> “cat 1”
> "chicken 2”
> “elephant 3”
> ‘miaou 1"
> …
> 
> The hard part is finding that database. It would take quite a while to build 
> and finalize your own.
> 
> Craig

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

2022-03-21 Thread Rick Harrison via use-livecode
I’ve tried a bunch of things. It’s 80-90% correct, but failing 10-20% of the 
time due to irregulars isn’t acceptable.
I think I have to look into a database table lookup solution, but I’m dreading 
it.

Thanks,

Rick

> On Mar 21, 2022, at 4:18 PM, Craig Newman via use-livecode 
>  wrote:
> 
> Such cases are rare, certainly, but “queue” comes to mind. I am sure that a 
> vowel parsing routine will be reasonably accurate, but not perfect, as per 
> the previous example.
> 
> A quick search did not turn up any “list of all words and their syllable 
> count”, but there still might be one. One site mentioned that algorithms were 
> being used, but were “not perfect”.
> 
> Craig

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

2022-03-21 Thread Rick Harrison via use-livecode
“miaou” has 4 consecutive vowels so I’m not surprised it has 2 syllables.  That 
may be a rule.

The average person uses about 20,000 words on a regular basis.

They know about 40,000 visually.

It’s estimated there are about 1.25 million english words, but a lot of those 
are scientific terms.

Anyone up to building a cross reference database that can be searched quickly?

Rick

> “miaou” is two syllables

> On Mar 21, 2022, at 10:56 AM, Craig Newman via use-livecode 
>  wrote:
> 
> I would think one would need a database that maps all words with the number 
> of syllables in those words. I am sure some sort of algorithm would do a 
> creditable job, but I bet it would not do a perfect job. For example, and 
> embedded “eau” is usually one syllable, but a word such as “miaou” is two 
> syllables
> 
> Craig

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

2022-03-20 Thread Rick Harrison via use-livecode
I found this:

https://www.dcc-cde.ca.gov/professionaldev/events/documents/syllabication-packet-2021-04.pdf
 


I’m not sure how comprehensive it is yet, but it has me thinking!

I tried looking up syllable in wikipedia and read more about it then I could 
ever practically use.
You might want to take a look at the article just for fun anyway.

https://en.wikipedia.org/wiki/Syllable 

Rick


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

2022-03-20 Thread Rick Harrison via use-livecode
Hi Richmond,

Yes, I came across syllablecounter.net which only intrigued me more.

Unfortunately it reports the word triangle has 2 syllables which is incorrect.
Any dictionary will tell you triangle has 3 syllables.  Is there a rule for that
or is it just an exception to some rule?

Perhaps there are other examples out there I can find.

Whatever happened to our pocket English Teacher App?
(Oh sorry, I forgot, that one hasn’t been invented yet to my knowledge.)

Thanks,

Rick

> On Mar 20, 2022, at 3:57 PM, Richmond via use-livecode 
>  wrote:
> 
> Frankly I'd go for isolated vowels (I, A), Vowel+ Consonant (In, On, An), and 
> Consonant+ Vowel (La, Lo, Fi), you
> also have a problem with the semi-vowel Y, and the semi-vowel U ( 'yu' as un 
> Union, and 'u' as in Utter).
> 
> This is pretty impressive: https://syllablecounter.net/count 
> 
> 
> I gave it 'Beautiful aesthetic foetuses' and it came up, correctly, with 9 
> syllables . . . the Q is what's the code:
> probably time to download the webpage and poke around a bit.

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

2022-03-20 Thread Rick Harrison via use-livecode
Hi Colin,

Thanks for sharing this.  I’m reading it now!

Rick

> On Mar 20, 2022, at 3:12 PM, Colin Holgate via use-livecode 
>  wrote:
> 
> This post goes over some techniques:
> 
> https://mholtzscher.github.io/2018/05/29/syllables/ 
>  
>  >
> 
> 

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

2022-03-20 Thread Rick Harrison via use-livecode
Hi Richmond,

Yes, English. Sorry I forgot to be specific, I thought it was implied.

Yes, I have been counting vowels, but there appear to be a lot of exceptions,
so there must be a lot more rules.

I need to know what all the rules are to make it work if possible.

There are websites out there on the internet that will count
syllables in whatever text given to them so it must be possible.
How are they doing it?  Is it an algorithm ,or are they comparing
the words to a database table that has all the dictionary information?

Thanks,

Rick


> On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode 
>  wrote:
> 
> Well, syllables are language dependent, so let's suppose for the moment that
> you are ONLY working with English, the, presumably, you can set up vowels
> as item-delimiters: although you might get a bit mixed up with words sucj
> as 'beautiful' which, while having 5 vowels only has 3 syllables.
> 
> Basically you have to work out how to detect V+C and open vowels at the
> end of words.

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


Counting Syllables

2022-03-20 Thread Rick Harrison via use-livecode
I’m working on a project that requires an LC program to count
the number of syllables in a paragraph.

I don’t want to have to re-invent the wheel here if there
is an existing solution to the problem.

If not, what are all the rules I need to check?

Suggestions?

Thanks,

Rick
___
use-livecode mailing list
use-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 extract a video clip...

2022-03-19 Thread Rick Harrison via use-livecode
I was looking for some LiveCode lessons on how to use mergAV and there weren’t 
any.  :-(

Are there any good examples anywhere on how to use it?

Thanks,

Rick

> On Mar 19, 2022, at 9:37 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> If mergeAV was macOS and Windows, I would definitely prioritize it over 
> ffmpeg as a solution. I appreciate the suggestion though. I did not know 
> mergeAV could create clips.

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


Compiler Funding Options Update

2022-03-16 Thread Rick Harrison via use-livecode
Hi LiveCoders,

I just received a message from LiveCode Ltd.,
that stated the compiler has been 83% funded
with just 1 day to go.

This project really needs to be fully funded if
LiveCode is to move forward.  

Quite often I find that our present version of 
LiveCode isn’t fast enough for me to be able 
to write games with it, or to be able to process
searches fast enough.  

With a 10X speed improvement all things 
suddenly become possible.

As it was first presented, $499 for a 1 year
subscription or $99 to just support the
project was all that was in the emails
sent to me.

I was surprised that when I went to the
website to add my support, I discovered
there were a few more offerings that
weren’t in any of the emails sent to me
by LiveCode Ltd.

Other options were:

$125 for a 3 month compiler benefit  (No subscription)
$249 for a 6 month compiler benefit  (No subscription)

$499 for a 1 year subscription
$999 for a 2 year subscription
$1,499 for a 3 year subscription

I wasn’t at all aware of these additional options.

I think those options should have been mentioned
in the emails sent to me upfront instead of hoping
that I would click on a link button before seeing
that information. The marketing department could
have done better with this!

Anyway I wanted to help out with some of the
fence sitters on this project by letting you know
of some these other options in case you missed
them like I did!

Thanks,

Rick




___
use-livecode mailing list
use-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: Browser Widget and Images

2022-03-14 Thread Rick Harrison via use-livecode
Thanks!

I had forgotten about "import as control" and about
set the imagedata of image “my image”.

set the imagedata doesn’t fit to the image’s object size though.
I would probably have to resize the image beforehand.

I also came across:

put URL "binfile:///ExportedImageFile.png" into image  “my image”

The above does fit the image size nicely and I can paint on it etc.

Thanks for all of your help!

Rick



> On Mar 14, 2022, at 5:04 AM, Klaus major-k via use-livecode 
>  wrote:
> 
>> set the imagedata of img "myImage" to the imagedata of img "myImage"
> 
> what Jim said! :-)
> 
> Thisw way the image becomes part of the stack as if "imported as control" 

___
use-livecode mailing list
use-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: Browser Widget and Images

2022-03-13 Thread Rick Harrison via use-livecode
Hi Klaus,

Thanks for answering.

So accessing the URL of the image directly in the image object
puts the image there, which is a good first step.

How is it stored however?  

If one looks at the image source it still shows the URL. 
 
I find I’m unable to paint on top of the image, probably 
because that would require my being able to modify the
online URL which isn’t possible for the obvious reason.

I probably need to make a local copy of the image to
be able to work on it.  Export image? Copy it to
the clipboard and paste it elsewhere?

Suggestions?

Rick



> On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Rick,
> 
>> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode 
>> :
>> 
>> I have a large free public domain image displaying nicely in my LC Browser 
>> Widget.
>> I want to bring the image directly into a LiveCode image object to be able 
>> to play around with it.
>> What’s the best way to do that?
> 
> why not just set the FILENAME of the image object to the file, either local 
> or online?
> If the image is very big, you could group that single image object and add 
> the groups scrollbars.
> Or just scale the image...
> 
>> While I was looking around in the dictionary for possibilities, I came
>> across some older revBrowser commands.  Do they work with with
>> the new browser widget or are the two completely different animals?
> 
>> 
>> Thanks,
>> 
>> Rick
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Browser Widget and Images

2022-03-13 Thread Rick Harrison via use-livecode
I have a large free public domain image displaying nicely in my LC Browser 
Widget.

I want to bring the image directly into a LiveCode image object to be able to 
play around with it.

What’s the best way to do that?

While I was looking around in the dictionary for possibilities, I came
across some older revBrowser commands.  Do they work with with
the new browser widget or are the two completely different animals?

Thanks,

Rick
___
use-livecode mailing list
use-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: Problems with Filter?

2022-03-12 Thread Rick Harrison via use-livecode
Ok, that straightened out my confusion.

Thanks!

> On Mar 12, 2022, at 5:40 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> Exactly. You want matchtext, not filter.
> 
> There is a way to finesse this if you really need to use filter:
> 
>   local tSubString, tTarget, tLargeTextString
>   local tResult
> 
>   put "*THIS*FIND*" into tTarget
>   put "abcdef" into 
> tLargeTextString
> 
>   filter tLargeTextString with tTarget
>   set the itemDelimiter to "THIS"
>   put item 2 of tLargeTextString into tSubString
>   set the itemDelimiter to "FIND"
>   put item 1 of tSubString into tResult

___
use-livecode mailing list
use-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: Problems with Filter?

2022-03-12 Thread Rick Harrison via use-livecode

put "THIS*FIND" into tTarget

put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString

put tLargeTextString into pText


— Adding your code here Mark:
put ".*THIS.*FIND.*" into tTarget

filter pText with regex pattern tTarget into tFilteredTextResult

answer "tFilteredTextResult = " & tFilteredTextResult

yields: 

tFilteredTextResult = "abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz”

So what did it filter?  It’s the same string I started with.

Rick

> On Mar 12, 2022, at 3:43 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> or
>put ".*THIS.*FIND.*" into tTarget
>filter pText with regex pattern tTarget into tFilteredTextResult

___
use-livecode mailing list
use-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: Problems with Filter?

2022-03-12 Thread Rick Harrison via use-livecode
Hi Mark,

matchText works fine.

That doesn’t explain why “filter” doesn’t work though.

Thanks!

Rick

> On Mar 12, 2022, at 2:05 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> Try matchtext rather than filter:
> 
> local tTextt, tFound?
> put matchtext(tLargeTextString, ".*THIS(.*)FIND.*", tText) into tFound?

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


Problems with Filter?

2022-03-12 Thread Rick Harrison via use-livecode
Good Morning!

I’m trying to get filter to work with some text and so far no success at all.

Given large string:  abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz

I want the text between THIS and FIND which could be anything like ISLJFKKDKLS

It’s OK to include the THIS and FIND in my result.

I’m thinking I need a wildcard character like * to get the information.


So if I try:
put "THIS*FIND" into tTarget

put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString

put tLargeTextString into pText

filter pText with regex tTarget into tFilteredTextResult

answer "tFilteredTextResult = " & tFilteredTextResult

One might think this would work, but it doesn’t, and I get nothing for 
tFilteredTextResult

Suggestions?


___
use-livecode mailing list
use-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: Browser Widget Issues

2022-03-11 Thread Rick Harrison via use-livecode
Hi Tom,

Do you have a more specific Javascript/LC example?

I’m not a big fan of Javascript and only use it very sparingly.

I would also have to first scan the HTML to find the name of the button I want 
it to activate wouldn’t I?

If I have to go into that fine detail I would be better off scanning for the 
link and just using a URL statement.

Why doesn’t click at location work?

Thanks,

Rick

> On Mar 11, 2022, at 3:49 PM, Tom Glod via use-livecode 
>  wrote:
> 
> You just need to pass some javascript to the browser to trigger the button
> you want.
> 
> do this_js in widget "myBrowser"
> 
> and this_js should have the javascript to click the button.
> 
> Imagine the possibilities :)
> 
> 
> On Fri, Mar 11, 2022 at 3:31 PM Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Simple mouseClick at location.
>> 
>>> On Mar 11, 2022, at 1:51 PM, Klaus major-k via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> what did you try so far?
>> 
>> ___
>> use-livecode mailing list
>> use-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: Browser Widget Issues

2022-03-11 Thread Rick Harrison via use-livecode
Simple mouseClick at location.

> On Mar 11, 2022, at 1:51 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> what did you try so far?

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


Browser Widget Issues

2022-03-11 Thread Rick Harrison via use-livecode
I was hoping to be able to programmatically
tell the browser widget where to go to next
by having LC click on an image or button
within the browser window.  

So far I have had no success with that.  
Is there a bug in LC preventing me from
doing this seemingly simple task?

Is there a work around?

Thanks in advance!

Rick

___
use-livecode mailing list
use-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: Sign In with Apple and Google

2022-03-07 Thread Rick Harrison via use-livecode
Do it in a webpage.  I doubt there is a plug-in or a better way.

Personally whenever I see any website that tells me to
login with my google, facebook, or apple account, I
immediately view that website as being suspicious.

If there is a standard login using a Login ID and
password that I set up, then I always elect to do
things that way.

Good luck!

Rick

> On Mar 7, 2022, at 5:39 PM, Dan Friedman via use-livecode 
>  wrote:
> 
> Hey all... does anyone have a method to do user sign-ins with Apple and 
> Google (on iOS AND Android)?  I know we could do it in a webpage, but 
> wondered if there was a plug-in or better method to handle it.   Any advice 
> on this?
> 
> Thanks in advance,
> -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


___
use-livecode mailing list
use-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: A question about the compiler to come

2022-03-03 Thread Rick Harrison via use-livecode
According to Kevin’s email:

Would this script compiler work on all platforms?
All platforms will benefit. Code will run faster and readable scripts will be 
removed whatever platform you are targeting. 
Rick

> On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode 
>  wrote:
> 
> Dear all
> 
> You probably have received some mail asking for funding concerning a compiler 
> to come.
> 
> I would like to know if this compiler can target MacOS/ARM processor on the 
> desktop.
> 
> Best regards,
> 
> François
> ___
> use-livecode mailing list
> use-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: Speed up a slow loop

2022-03-02 Thread Rick Harrison via use-livecode
It could also be the garbage collection cycle isn’t working right.

> On Mar 2, 2022, at 7:52 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I noticed today though that there's a more general slowdown overall. When I 
> first launch the app it takes only a second to set up the board display. If I 
> keep hitting the "new board" button repeatedly, each setup takes a bit longer.

___
use-livecode mailing list
use-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 Rick Harrison via use-livecode
That sounds like a memory leak!

> On Mar 2, 2022, at 7:52 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I noticed today though that there's a more general slowdown overall. When I 
> first launch the app it takes only a second to set up the board display. If I 
> keep hitting the "new board" button repeatedly, each setup takes a bit longer.

___
use-livecode mailing list
use-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 Rick Harrison via use-livecode
A few years ago I found that  0.1 milliseconds was faster for some crazy reason.
Maybe that bug finally got fixed?

> On Mar 2, 2022, at 7:40 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> It gets slower. :(

___
use-livecode mailing list
use-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 Rick Harrison via use-livecode
Eon’s ago I had a similar problem in Fortran.

My solution was to break up my huge array into 3 smaller
alphabetical arrays.  I had to first determine with some
if statements which of the 3 arrays I had to search.

The solution turned a glacially slow search into a very acceptable one.

You may want to try a similar solution.

Good luck!

Rick

> On Mar 2, 2022, at 4:57 PM, J. Landman Gay via use-livecode 
>  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


___
use-livecode mailing list
use-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 Rick Harrison via use-livecode
What happens if you wait longer than 0?

Rick

> On Mar 2, 2022, at 4:57 PM, J. Landman Gay via use-livecode 
>  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


___
use-livecode mailing list
use-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] Circling Balls Illusion

2022-02-03 Thread Rick Harrison via use-livecode
That’s a clever little demo!  It’s not a lot of code either.
There is a fair amount of interesting math involved.

Ahh, the power of math!

Thanks Roger!

Rick

> On Feb 3, 2022, at 11:59 AM, Roger Guay via use-livecode 
>  wrote:
> 
> Yes:
> 
>> https://forums.livecode.com/viewtopic.php?f=9=36724 
>>  
>> > >
> Later today I will also upload a copy to Sample Stacks.
> 
> Thanks,
> 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


Re: [ANN] Circling Balls Illusion

2022-02-03 Thread Rick Harrison via use-livecode
Hi Roger,

Can you please provide a link to it?

Thanks,

Rick

> On Feb 2, 2022, at 4:10 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Hi List,
> 
> Over on the forums I introduced my LC version of a well know dynamic optical 
> illusion wherein a number of balls appear to be circling inside of a bigger 
> circle.
> Check it out there if interested.
> 
> Cheers,
> 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


___
use-livecode mailing list
use-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: tsNet Gmail Email

2022-01-23 Thread Rick Harrison via use-livecode
Hi Matthias,

Thanks for getting back to me.

I will give that a try!

Rick

> On Jan 23, 2022, at 4:55 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Rick,
> 
> please let me add something
> 
> If you have 2FA enabled for your Google Account you can create an app 
> specific password
> https://myaccount.google.com/apppasswords 
>  
>  >
> 
> You then use the app password instead of your "normal" google password with 
> tsNet
> 
> If you don't have 2FA enabled for your account then you can enable the option 
> "google security non secure apps allow"
> If that option is enabled, then you use your normal google password with 
> tsNet.

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


tsNet Gmail Email

2022-01-23 Thread Rick Harrison via use-livecode
Hi there,

I just tried out email using the tsNet LiveCode lesson
that was updated on 8/17/2020.

I ran into an error (67) when trying to send using Gmail.

Google has updated their security for 3rd party Apps, and 
now you need to use an App password.

How can an App password be included for a tsNet
email when using Gmail?

Thanks,

Rick

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

2022-01-21 Thread Rick Harrison via use-livecode
I doubt that will work.  Once you have converted it into a video, it’s just a 
video.
You want to have a video with HTML5 button overlays.   You will probably
have to use Javascript for jumping to the various points in the video.

Let us know what finally works for you.

Cheers,

Rick

> On Jan 21, 2022, at 11:02 AM, jbv via use-livecode 
>  wrote:
> 
> Hi Rick,
> 
> Thank you for your answer. That was actually my very first option,
> but it remains the most simple one.
> I am now exploring a new option : generate an HTML5 animation and
> then convert it to a video format. I'm just wondering if hotspots
> (mostly to offer viewers options for branching to different segments
> of the video) will be kept after the conversion...

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

2022-01-20 Thread Rick Harrison via use-livecode
You could probably do it on your own website with LiveCode server.

It would not work with YouTube though.

You might however be able to publish an optional link to
your interactive video on YouTube just below a video
you have posted.

You could say something like:  To try the interactive
version of this video, please click on the link below.

Good Luck!

Rick

> On Jan 20, 2022, at 6:49 AM, jbv via use-livecode 
>  wrote:
> 
> Hi list,
> This might be a dumb question but anyway...
> Imagine a simple quiz made of a succession of static slides, each slide 
> featuring a question and 4 possible answers.
> When the user clicks 1 answer, he gets notified if he's right or wrong, then 
> a comment about the right answer is displayed, and then the user clicks to 
> move to the next question.
> At the end, a final screen shows the score and some additional comments.
> 
> This is easily done with LC. But is there a way to export such an app from LC 
> into a format compatible with an interactive video for youtube for instance ?
> 
> Thanks in advance.
> jbv
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Sorting cards problem, and a link

2022-01-02 Thread Rick Harrison via use-livecode
Ouch!  That’s why I always charge an hourly rate,
and never quote by the job.

Here’s hoping you solve your problem soon!

Rick

> On Jan 2, 2022, at 1:17 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 1/1/22 11:30 PM, Rick Harrison via use-livecode wrote:
>> I’ve been looking at the exchange of messages here which had made me
>> want to ask, why are you sorting cards at all?
>> Wouldn’t it be easier just to use array pointers or an index for the cards.
>> You can sort the pointers however you like and the cards never have to
>> move at all according to your sort.  You can do all of your sorting
>> experiments that way, and just go to the correct card that your
>> pointer index tells you to go to.  It might be quicker too.
> 
> In hindsight, you bet. This was one of those jobs I thought would take a day 
> or so, squeezed in over a weekend between my long-term project. A quick 
> export/import, minor visual adjustments, and done. The existing scripts were 
> minimal, mostly one-liners dating back to a novice using HC. In fact, the 
> only scripts I actually added were to convert some duplicate buttons to 
> popups and adjust for Cmd-F so it would work the way he was used to instead 
> of opening the LC Find dialog.
> 
> And mostly it did work, thanks to LC's compatibility. I hadn't planned on 
> doing anything major and bid as such. If I'd known ahead of time there was 
> going to be a problem I might have set up an alternate method to start with.
> 
> But then my curiosity took over, so I posted here and now it's a puzzle to be 
> solved. When that happens I find it hard to let go. If no here can figure it 
> out I'll probably fix it off the clock and write off the time.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Sorting cards problem, and a link

2022-01-01 Thread Rick Harrison via use-livecode
Hi Jacque,

I’ve been looking at the exchange of messages here which had made me
want to ask, why are you sorting cards at all?

Wouldn’t it be easier just to use array pointers or an index for the cards.
You can sort the pointers however you like and the cards never have to
move at all according to your sort.  You can do all of your sorting
experiments that way, and just go to the correct card that your
pointer index tells you to go to.  It might be quicker too.

Happy New Year, and I hope that helps!

Rick


> On Jan 1, 2022, at 6:45 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> Hi Alex, thanks so much for volunteering. There's a Dropbox transfer here:
> 
> 
> 
> The stack is huge, 8K+ cards. I told him he needs a database but he doesn't 
> want to go there yet. In general it seems to work okay, at least for now. The 
> stack was created 30 years ago in HC, he imported it to SuperCard, and now 
> needs to move to LC. The original scripts were very minimal, I added a few 
> more and cleaned up the visual appearance. I wrote an export script that he 
> ran in SuperCard, and then imported the file to the new LC stack, creating 
> cards along the way.
> 
> The HC and SC stacks sorted correctly. Only LC fails.
> 
> The first 13 cards always sort to the front of the stack which is where he 
> wants them. They shouldn't, but they do, so okay. Go to one of the recipe 
> cards and choose to sort by category.
> 
> - The first 13 cards have no category so they don't move. Good.
> - The next cards, up to about 50, remain sorted by title
> - The following cards do sort by category, with each category alphabetical 
> (good)
> 
> Sort by title seems to work okay. If you can't duplicate the above, sort by 
> title first and then by category.
> 
> My question is, why don't "The Cheese Board" and "The Fruit Bowl" sort to the 
> Ts when sorting by title? We don't want them to, but how come they don't? If 
> you notice that Breakfast is out of order, it's because there's a space in 
> front of the category name. He did that on purpose to keep it at the front.
> 
> I checked for spaces and other invisible characters in the title and category 
> fields and didn't find any.
> 
> It's just weird. Thanks very much for taking a look, I'm at a loss.
> 
> Jacque
> 
> -- 
> 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: Is there a better way to check if images are the same? I now use imagedata

2021-12-29 Thread Rick Harrison via use-livecode
Hi William,

If you could provide a link to a photo example of 
what you are doing that would help us to understand
the problem better.

There may be a way to simplify your process so you
don’t have to check every pixel.

Rick

> On Dec 29, 2021, at 4:57 AM, William de Smet via use-livecode 
>  wrote:
> 
> Hi there,
> 
> Is there a better way to check if images are the same?
> I now use imagadata.
> 
> In my app I have an example drawn image (5x5 matrix with dots, a Geoboard).
> These dots are important because by touching them their Loc is used
> (gStartLoc and gStartLoc)
> Two dots will be connected by setting the points of the last grc to
> gStartLoc & return & gStartLoc.
> No problem here.
> 
> The idea is that the user copies my example on their matrix/geoboard by
> connecting the dots.
> To check if the made images (geoboards) are the same I make a snapshot of
> both and compare the imagadata of these images.
> Everything is fine as long as the user connects the same dots as the way
> (length between dots) it is done in the example.
> Then the imagadat is the same.
> 
> The geoboards can look the same but the connected dots can be different in
> length so use imagadata to compare these is not the way to get it right.
> 
> Any ideas for a better way?
> 
> 
> 
> greetings,
> 
> William
> ___
> use-livecode mailing list
> use-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: Smile for Christmas.

2021-12-16 Thread Rick Harrison via use-livecode
Ok then.  Thanks for clearing up the confusion.

Rick

> On Dec 16, 2021, at 6:12 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> On 16/12/2021 18:25, Rick Harrison via use-livecode wrote:
>> Combining two arrays is nice, but it really shouldn’t spell correct “color” 
>> to “colour”.
> 
> No, it doesn't Rick. It's just a typo in the example in the dictionary.
> 
> I mentioned it because it made me smile when I noticed it - a tiny example of 
> our not-so-common language between the two sides of the ocean :-)
> 
> 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


Re: Smile for Christmas.

2021-12-16 Thread Rick Harrison via use-livecode
Combining two arrays is nice, but it really shouldn’t spell correct “color” to 
“colour”.

> On Dec 16, 2021, at 12:55 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> Not only does it combine two arrays, but apparently it also spell-corrects 
> "color" to "colour" !!

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


OT: Facebook -> Meta (Damaged Infinity!)

2021-10-28 Thread Rick Harrison via use-livecode
Facebook on Thursday announced that it will change its company name to Meta!

It figures he would mess with the infinity symbol to try to make it his own!

Oh well…

Rick
___
use-livecode mailing list
use-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: Mudslinging and consequences - a change to our policy

2021-10-28 Thread Rick Harrison via use-livecode
Hi Bob and Martin,

On a Mac the solution is to use the Option and 5 keys.  The result is:  ∞
All you really had to do was G∞gle it!

I remember the math class discussions of a googol and a googolplex.

Then I recalled that some infinite sets are bigger than others.

The following article will really get your thinking about infinity:

https://www.scientificamerican.com/article/a-deep-math-dive-into-why-some-infinities-are-bigger-than-others/
 


Perhaps some forevers are longer than others?  ;-)

Cheers,

Rick



> On Oct 28, 2021, at 6:34 AM, KOOB via use-livecode 
>  wrote:
> 
> Hi
> 
> Here is what I do
> Rotate your keyboard 90 degrees
> Press the 8 key
> Rotate yours monitor 90 degrees
> Repeat
> It took me forever to figure that out. 
> 
> Martin Koob
> 
> 
> Sent from my iPad
> 
>> On Oct 27, 2021, at 8:10 PM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I didn't know the keystroke for infinity.
>> 
>> 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

___
use-livecode mailing list
use-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: Problems with simulator

2021-10-26 Thread Rick Harrison via use-livecode
Hi Mark,

I used to have a problem with the simulator timing out
when it was trying to load my stack.  I think I gave
up on using the simulator, and went with testing everything
on my target device.

Good luck!

Rick





> On Oct 26, 2021, at 11:54 AM, Mark Smith via use-livecode 
>  wrote:
> 
> I wonder if anyone has any suggestions I can try. I am using macOS 10.15.7 
> (Catalina), LC 9.6.3, Xcode 12.4 and iOS14.8
> 
> This configuration should be completely usable and indeed I am able to 
> properly build an iOS app and install it on my 6S or 12 and it works fine. 
> However, I can’t get it to run on the Simulator. I load the Simulator first, 
> then press the Test button, LC saves the application, but it never gets past 
> that point… no build happens, and nothing is loaded on the simulator. 
> Subsequently pressing on Test does nothing. 
> 
> Just wondering if anyone might have a suggestion as how to fix this.
> 
> Thanks
> Mark
> 
> 
> ___
> use-livecode mailing list
> use-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: Screensizes.app

2021-10-09 Thread Rick Harrison via use-livecode
Hi Mark,

That’s a nice resource.

Thanks!

Rick

> On Oct 9, 2021, at 6:50 AM, Mark Smith via use-livecode 
>  wrote:
> 
> Stumbled on this today. Lists all Apple models and screen sizes (plus safe 
> areas,  notch areas, portrait, landscape, etc) includes iPhone, iPad, 
> watches, TV, etc. You can list by screen size or model, and there is a 
> spreadsheet view ('Compare Models').
> 
> https://www.screensizes.app 
> 
> Mark
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: OT: Favorite Simple Static Webpage Builder?

2021-10-01 Thread Rick Harrison via use-livecode
Thanks Paul, I will check it out!

Rick

> On Oct 1, 2021, at 11:00 AM, Paul Richards via use-livecode 
>  wrote:
> 
> Mobirise.com   works on Mac and Windows.  Drag and drop 
> blocks onto the page to build. 
> 
> Paul 

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


OT: Favorite Simple Static Webpage Builder?

2021-10-01 Thread Rick Harrison via use-livecode
I used to love iWeb for Mac, but that is way too old
to run on a current macOS system.

All I need is one that will allow me to show text,
images, short videos, and put in a few links that
doesn’t access databases, that is WYSIWYG.

I’m eyeing Sparkle right now, and considering getting it.

What do you like to use?

Thanks for your recommendations in advance!

Rick



___
use-livecode mailing list
use-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: iOS 15 - Xcode version

2021-09-25 Thread Rick Harrison via use-livecode
Hi Marty,

There are a bunch of other programs that have a lot of the same features as 
photoshop.

Graphic Converter 11
GIMP
InkScape
GravitDesigner

Even Apple’s Photos program has come a long way.

Good luck!

Rick

> On Sep 24, 2021, at 6:19 PM, Marty Knapp via use-livecode 
>  wrote:
> 
> But now I can no longer use Photoshop CS3! It’s probably 10 years old so it 
> had a good long run. Now to find a replacement as I don’t want to pay $20 a 
> month for that...
> 
> 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


Re: LC IDE Menu suddenly is slow / responds slowly

2021-09-17 Thread Rick Harrison via use-livecode
Hi Matthias,

Check to see if after later use the memory consumption gets a lot larger.
It could be a memory leak, or garbage collection failure.

Rick

> On Sep 17, 2021, at 4:25 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Hi, 
> 
> i am currently noticing a massive slow down of the LC 9.6.4 IDE menu. Not 
> right away after opening Livecode IDE, but after some time of usage.
> I never noticed that in 9.6.3. Clicking on an main menu entry takes then 
> about 2 or 3 seconds until i can see the submenu
> 
> But I am not sure if this is really only an LC problem or due to the fact 
> that i upgraded to Big Sur around the same time as LC 9.6.4 was released.
> 
> Currently i only notice this slow down of the menu in 9.6.4 and i am not able 
> to see this in 9.6.3. But maybe i am a little bit to impatient and my testing 
> is too short.
> 
> In the activity monitor i cannot see anything unusual. Now large memory 
> consumption of LC and no high CPU usage.
> 
> After a restart of LC the IDE menu behaves normal, but some time later it 
> slows down. 
> 
> 
> Is anyone else experiencing the same or a similar behavior? 
> 
> 
> Regards,
> 
> Matthias
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Send a table in an email.

2021-09-09 Thread Rick Harrison via use-livecode
Hi Sean,

Maybe you should have led with your explanation.

Cheers,

Rick

> On Sep 9, 2021, at 4:35 AM, Pi Digital via use-livecode 
>  wrote:
> 
> Hehe. Full of ‘solutions’ :)
> 
> It’s because we need to see it as a table in an email :D
> That’s the point of the question. 
> 
> Here’s my full process if it helps you understand. 
> 
> I (that is to say, a server I code and manage) process around 100-120 emails 
> a day from the mobile (cell phone) carriers O2 and EE. They all get done at 
> about 5am every day at including weekends. Some have call data in them and 
> some do not. Some have broken csv’s in them. Myself and others in the team 
> need to quickly know when it breaks so we can look into it. 
> 
> So, to be absolutely sure, we email ourselves every morning a list of which 
> emails have been processed for all of the clients (4 so far). It has the 
> details of the email UID, the customer name, the client(or Dealer as we call 
> them) name, the date range, the account number, number of Kb, and a bunch of 
> other relevant data to us. This list has grown. Each line has a of course a 
> different length and does not format out like the table it is put into in LC. 
> 
> The purpose of the email is a forceful reminder to us to check. The subject 
> let’s us know immediately if there may be issues by telling us how many got 
> processed and how many had data and how many are potentially broken. These 
> can only be indicators. We find ourselves in the rubbish position of checking 
> it over by eye. 
> 
> We ‘could’ have it sent to a database, or show up in an app or all manner of 
> other methods but by far and away the simplest way for us to daily get this 
> reminder is by a simple email with a heading and a list. Email is a system 
> with a long track record of ‘working’. The fact that email still exists is 
> testament to this. A quick scan over this daily doc helps us quickly see 
> which ones we’ve already checked, what potential issues there are and, more 
> importantly for me, if the remote server had completely fallen over. No need 
> to open any links or other software to view quickly a stream of data. It’s 
> easier to recall and delete than our mySQL database. Email is just there, 
> always. 
> 
> So, the ability to quickly convert our little table from a text field on the 
> server into the body of an email is what I’m looking to do. I had expected 
> the mime field encoder to do this but it seems it’s only very simple in its 
> view of a field. 
> 
> The data returned from ‘the htmlText of field’ is so long and convoluted and 
> also does not contain either the correct formatting or table info suitable 
> for email. 
> 
> So, it looks like if I have to do it I will have to code a whole html method 
> for expressing it as a table in an email body that email will accept and 
> display as expected. That’s why I had ‘hoped’ that the MIME encoder already 
> did it for us. Alas, negatory!
> 
> I didn’t want to have to have put all this into an email when asking the 
> question and ‘hoped’ that a simple question would suffice to get a simple 
> answer (which MarkW was gracious to provide from the most qualified position 
> I know). 
> 
> But, seriously, thank you for your interest and attempts to offer useful 
> suggestions. Sometimes what sounds like a simple answer actually just 
> overcomplicates the ‘end user experience’. Something we as software engineers 
> should be ever aware of ;)
> 
> Thanks again
> 
> Sean
> Pi Digital

___
use-livecode mailing list
use-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: Send a table in an email.

2021-09-08 Thread Rick Harrison via use-livecode
Hi Sean,

Why don’t you just email them a spreadsheet or a .csv file,
let them open it. and they can copy and paste whatever they want
into their own spreadsheet?

Rick


> On Sep 8, 2021, at 10:43 PM, Pi Digital via use-livecode 
>  wrote:
> 
> Hi Rick
> 
> Because, as stated before, you can’t select the text and paste it into a 
> spreadsheet. 
> 
> Thanks though. 
> 
> Sean

___
use-livecode mailing list
use-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: Send a table in an email.

2021-09-08 Thread Rick Harrison via use-livecode
Hi Sean,

If you just want to show the table in an email why not just send
an image of it? Create a screenshot of the table and email it.
Are you trying to send just one or a lot of them over a period of time?

Rick

> On Sep 8, 2021, at 3:42 PM, Pi Digital via use-livecode 
>  wrote:
> 
> I just wanted a simple way of showing it without all the extra coding 
> rigmarole. Especially in html. 
> 
> Sean Cole
> Pi Digital Productions Ltd
> 
> eMail Ts & Cs
> 


___
use-livecode mailing list
use-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: Send a table in an email.

2021-09-08 Thread Rick Harrison via use-livecode
Hi Sean,

So you want the receiver of your emailed table to be able to modify the data in 
it.

I would make it an HTML email so you can allow the user to enter the data
directly into your server database table field.

That’s if I am understanding you correctly here.

Rick


> On Sep 8, 2021, at 11:05 AM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi Rick,
> 
> It's not strictly what I was asking as I am talking about the mimeEncode
> library. Plus it's a file that is then not easily selectable directly from
> the email. I just want to be able to display a small table of data in the
> email that is easily readable with a small footprint and using specifically
> the mimeEncodeFieldAsMIMEMultipartDocument(pField).
> 
> Sean

___
use-livecode mailing list
use-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: Send a table in an email.

2021-09-08 Thread Rick Harrison via use-livecode
Hi Sean,

Could you try converting your table into a .pdf file so it displays properly?

Good luck!

Rick

> On Sep 8, 2021, at 6:02 AM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all
> 
> I'm trying to use the MIME encoder to send an email with a table in the
> body. I have a field that has both plain text and a few lines that are
> displayed as a table in the middle of it. I basically just turn on the v
> and h lines and set tab stops.
> 
> mimeEncodeField... puts the text into the email body but does not seem to
> format out the table. Is there a way to get it to recognise the table or
> some other way of getting the table to display correctly in the email?
> 
> Thanks
> Sean
> -- 
> Pi Digital
> ___
> use-livecode mailing list
> use-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: Suggestion: Non-Appbuilding Community Edition

2021-09-05 Thread Rick Harrison via use-livecode
Hi Dan,

So you want the company to break more promises, even to the lifetimers?

A lot of the lifetimers have spent a lot of money on licenses before
deciding to invest in lifetime licenses.  I don’t think you want to be
ticking off what is probably the company's most loyal base.  
It’s a recipe for disaster!

Just my 2 cents for the day.

Rick

> On Sep 5, 2021, at 9:55 AM, Dan Brown via use-livecode 
>  wrote:
> 
> If revenue is the root of livecodes
> problems then I don't  see why a small demographic of lifetimers is exempt
> from an update in policy that seeks to increase the paying subscription
> count

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


Re: LiveCode community edition is gone

2021-09-02 Thread Rick Harrison via use-livecode
Hi Dan,

Yes, there were a lot of us who specifically contributed to make the Community 
version possible
as open source.  One of the justifications was that if the company went under 
we would still have
the Community version available to us. The promise that the company would also 
support it was
equally appealing. While the original intent was to use the Community version 
to widen the user
base, and get more paying customers, it apparently didn’t get enough of them to 
be able to
justify sustaining the Community version. 

I can understand why there are users who feel betrayed by the company 
especially with the new 
pricing structure, and the discontinuance of support for the Community version 
which was even 
paid for in a marketing campaign in advance of it’s release.

It can seem that the company keeps increasing it’s prices while taking away 
functionality by
forcing users to select which specific platforms to be able to deploy to. That 
seems to go against 
the idea of coding once and being able to deploy to all platforms in one 
affordable package.

Access to the Community version is still very important as that is how many 
users were first 
introduced to LiveCode who then became paying customers. I believe the try it 
before buying 
model is still very important for helping users to make the purchase decision.

It would be nice if the company were willing to provide the final version of 
the Community 
version under an MIT license instead of GPL since they will no longer be 
supporting it at all, and 
it marks a true fork in the road from the codebase going forward.  That might 
make the transition
easier to accept for some users. Continually making users of your product feel 
disappointed
or angry isn’t a good marketing strategy.  The happier you can make your 
customers the better
your business will be!

I think it’s great that the CEO is interested in negotiating with those users 
who feel they can’t
afford the new pricing structure, which is certainly something one would never 
see with
large companies like Disney.

The LC community is going through a shock with so much change that had no 
gradual hints
about it. Acceptance of the changes will take time as it always does, but we 
will adjust.

Just my 2 cent observations for the day.

Rick

> On Sep 1, 2021, at 11:44 AM, Dan Brown via use-livecode 
>  wrote:
> 
> That's a bit harsh, are you forgetting the amount of money that was
> contributed by users to the fund raisers over the years?  > $600k
> 




___
use-livecode mailing list
use-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't reach license server...

2021-08-31 Thread Rick Harrison via use-livecode
That’s why I use the manual license method.

Hopefully they are aware of the problem and are working on it.

Rick

> On Aug 31, 2021, at 10:57 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> When trying to launch LiveCode, I keep getting errors contacting the license 
> server and I see that Livecode.com is currently down for maintenance, so 
> hopefully, this is a very temporary issue.
> 
> However, is anyone else having problems running LC due to not getting a 
> license validated?
> 
> ___
> use-livecode mailing list
> use-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: Is there an issue with beep on iOS?

2021-08-07 Thread Rick Harrison via use-livecode
Hi Bill,

You can always make your own beep sound, but you will have
to call it like you would any other sound.  Don’t use beep.

Example from the dictionary:

put specialFolderPath("engine") & "/applause.mp3" into tSoundFile
play tSoundFile

Good luck!

Rick

> On Aug 5, 2021, at 8:09 PM, William Prothero via use-livecode 
>  wrote:
> 
> Folks:
> This is a small thing, but I wonder if there is an issue with the beep 
> command on iOS. I am on LC 9.6.3 and iOS 14.7.1, I get sound for other apps 
> but my LC app only gives me the vibration.
> 
> Best,
> Bill Prothero
> 
> 
> 
> William Prothero
> waproth...@gmail.com
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Most streamlined method to get data

2021-07-29 Thread Rick Harrison via use-livecode
Nice solution Colin!

Rick

> On Jul 29, 2021, at 9:10 AM, Colin Kelly via use-livecode 
>  wrote:
> 
> Put the last trueword of yourVariable

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

2021-07-25 Thread Rick Harrison via use-livecode
Hi Bernard,

The user should set up an LC Web Server with a database connected to it.

The LC Apps should all then send information to the LC Server, and the Server 
will send information back to the LC Apps.

I think any other way is going to be a huge waste of time and energy.

Good luck,

Rick




> On Jul 25, 2021, at 3:35 AM, Bernard Devlin via use-livecode 
>  wrote:
> 
> Hi all
> 
> Over on the forum someone has run into what appear to be limitations of
> LC's included httpd library.
> 
> I remember over the years seeing that various people implemented something
> like this (Andre comes to mind).  The forum user wants to be able to run a
> LC app on a mobile device within a LAN and have others POST binary data to
> the LC app via HTTP.
> 
> Rather then tell him "you can build your own" I thought I'd ask if anyone
> knew the whereabouts of any of the other httpd implementations.
> 
> Regards
> 
> Bernard

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


Re: How do I get the ID of a database?

2021-07-09 Thread Rick Harrison via use-livecode
Hi Bob,

When you open the database with revOpenDatabase you assign the whole thing to 
yourDatabaseID.

Look it up in the dictionary towards the end and you’ll find what I’m referring 
to.

yourDatabaseID will be an integer and you will use that to refer to your 
database for other functions.

Hope that helps!

Rick

> On Jul 9, 2021, at 6:04 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> I am getting more into MEMORY sqLite databases, and perusing the dictionary, 
> I find no way to close a database or find the ID of a currently open 
> database. 
> 
> I know I can store the ID somewhere, but I am finding that after 
> troubleshooting and tracing my code I have a lot of database IDs open and I 
> want to start with a clean slate. 
> 
> Apart from quitting Livecode, is there a way to do this? There is nothing 
> under the Database Library category. 
> 
> 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


Re: mySQL 8 destroyes umlaute

2021-07-08 Thread Rick Harrison via use-livecode
Hi Tiemo,

Could you use a substitution table as a work around patch?

Rick

> On Jul 8, 2021, at 8:45 AM, Tiemo via use-livecode 
>  wrote:
> 
> Thank you Matthias,
> 
> because it is an existing db and years old LC programs in different versions 
> out at the customers, I can't modify my old LC programs out there.
> 
> I now have read that uft8 gets deprecated in mySQL 8 at some time, so that 
> all new and migrated mySQL 8 databases gets by default uft8mb4 (4 byte 
> chars), which LiveCode obviously doesn't like and can't display anymore the 
> umlaute of my existing db. Perhaps everything would work with LC, when 
> creating a new db and storing the data from the beginning in utf8mb4, but 
> that’s not my use case. My live db has as the server character set "latin1" 
> and as the db character set "utf8", which were both switched to utf8mb4 on 
> mySQL 8.
> 
> Now I am looking for a solution either in the PHPs, which are called from LC 
> and connect to the db, or changing the db itself.
> Overwriting the charset in the PHP by: header ( 'Content-Type: text/html; 
> Charset=latin1' ); doesn't affect the output to LiveCode at all, the umlaute 
> stay corrupted. It seems that the settings of the db have priority.
> 
> I have read that you can alter the charset of a database and/or tables (ALTER 
> TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;) . I 
> am not good in handling databases, so I am not sure yet
> - if this changes just the default value for new db entries or if that 
> changes also the existing db content
> - even if this would work, this wouldn't be a long lasting solution, because 
> uft8 gets deprecated in future and I need again another solution.
> 
> Anybody out here who is good in working with databases / mysql and has any 
> idea how to repair this situation?
> 
> Thanks
> Tiemo

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


Re: Stuck on native database functions

2021-07-06 Thread Rick Harrison via use-livecode
Hi Bob,

Some quick questions:

1. What version of LiveCode are you using?
2. Are you on Mac or Windows or Linux?
3. Are you using MySQL or PostgreSQL?

Have you ever tried using the free version of Valentina Studio
to help you with managing your databases?  It’s quite nice!

Let us know!

Rick

> On Jul 6, 2021, at 7:51 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> So I checked out the lessons. I do not find anything there for using 
> substitutions like :1, :2. I am getting records inserted but with empty data. 
> Really frustrating. 
> 
> I could use literal data, which I tested, and which works, but my real data 
> contains commas, and in the future may contain any number of special 
> characters that I will have to escape. Not my idea of fun. 
> 
> I was hoping to do a "quickie" implementation but it seems I will have to run 
> this through sqlYoga like everything else I do these days. 
> 
> 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


Re: workaround for cut-off text in native scroller?

2021-06-01 Thread Rick Harrison via use-livecode
Hi Klaus,

What happens if you add 100 blank lines?

What happens if you add 100 blank lines and the last one has something on it?

I hope you find a suitable workaround because that’s a serious bug!

Rick

> On Jun 1, 2021, at 7:14 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> are there any (working!) workaround for this pesty bug where
> a correctly set up native scroller does not show the last line(s)?
> 
> Bug #: 
> 
> 
> I am really suprised that noone has noticed resp. reported this
> before, since this is a real showstopper in my opinion. :-/
> 
> OK, there is a special workaround on GITHUB for a stack of SWAMIs
> but this does not help in my current situation.
> 
> Any hints highly appreciated!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: 3-way slider control

2021-05-26 Thread Rick Harrison via use-livecode
Cool custom 3 state toggle switch!

A little more work, and code but truly a worth-while result.

That will make Paul happy for sure!

Thanks!

Rick


> On May 26, 2021, at 3:41 PM, Jim Lambert via use-livecode 
>  wrote:
> 
> go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode;
> 
> This stack contains a group which is a three-state toggle switch.
> 
> The myState of the group contains its current state which is either 
> "ON","OFF" or "MID"
> 
> You can customize the states' colors by setting the color constants.
> 
> See the group script.
> 
> To use: Either drag the thumb OR Tap at the left, right or center of the 
> control.
> 
> Feel free to use, change, copy, whatever.
> Jim Lambert
> ___
> use-livecode mailing list
> use-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: 3-way slider control

2021-05-26 Thread Rick Harrison via use-livecode
I thought of this before I saw Paul’s solution:

Name the scrollbar:  ScrollbarThreeStateButtonValue

on mouseUp

put the thumbposition of me into ScrollbarThreeStateButtonValue

put the round of ScrollbarThreeStateButtonValue into 
VarScrollbarThreeStateButton2

set the thumbposition of me to VarScrollbarThreeStateButton2

end mouseUp



> On May 25, 2021, at 9:08 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
>> Regardless, I have decided to use a standard LC slider set to
>> -1,0,+1 with some labels grouped to it. It works like a charm
>> and minimizes the number of graphics/objects and code.
> 
> I was interested to see that; it's clever, and it does work if you click in 
> the slider bar. But dragging the indicator allows partial decimal positions. 
> I don't know if that matters for your purposes.
> 
> --
> 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: 3-way slider control

2021-05-25 Thread Rick Harrison via use-livecode
Hi Paul,

You can make your own custom controls in LiveCode.

Perhaps you just want something more like three radio buttons,
or simulate a slider control with buttons and graphics.

Give us an example image to help clarify what you want.

Thanks,

Rick

> On May 25, 2021, at 11:38 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Rick and Jacqueline,
> 
> Thank you for the horizontal slider suggestions. This could suffice for what 
> I need. I was imagining more of the common "circle inside an oval" "switch" 
> control you see on the web and in apps these days. However, beggars can't 
> always be choosers and I the slider works well for what I need.
> 
> Roger,
> 
> Thank you. ScrollbarOmatic looks like I could adjust setting to get something 
> closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting 
> the controls to get the style I am seeking the following error popped up:
> 
> *compiling at 11:34:54 AM*
> 
> Type Expression: bad factor
> 
> Object backBar
> 
> Line if tx ≥ tIndEndPos then
> 
> Hint ≥
> 
> I did not seem to actually impact continue to refine the appearance.
> 
> ___
> use-livecode mailing list
> use-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: 3-way slider control

2021-05-24 Thread Rick Harrison via use-livecode
Hi Paul,

Grab a horizontal slider control.

Set the start position to -1
Set the end position to +1
Set the current position to 0

Make it any length you want.

If you try clicking on a 1/4 setting it will spring to the next value,
giving it the left middle and right positions you want.

Let me know if that works well enough for you.

Rick

> On May 24, 2021, at 4:18 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Hi all,
> 
> I am looking to see if anyone has a 3-positions slider control they might be 
> willing to share. I need a control that has a "left, middle, and Right" 
> positions (whatever they are called). Prefer horizontal orientation and 
> resizable so I can adjust the size to the screen area where it needs to go, 
> but I can resize graphics if needed.
> 
> Thank you to anyone (and everyone) in advance.
> 
> 
> ___
> use-livecode mailing list
> use-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: LC puts stuff in the trash upon quit!

2021-05-17 Thread Rick Harrison via use-livecode
Thanks for getting back to me on this.
This bug has been around for over 3 years now.
Will it ever get squashed?

Rick

> On May 15, 2021, at 12:06 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> There is a bug report for this already
> 
> https://quality.livecode.com/show_bug.cgi?id=21233
> 
> 
> 
>> Am 15.05.2021 um 15:46 schrieb Rick Harrison via use-livecode 
>> :
>> 
>> I have noticed this oddity for a long time.
>> No other program that I own does this.
>> 
>> Why is LC so dirty?
>> 
>> Rick


___
use-livecode mailing list
use-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 puts stuff in the trash upon quit!

2021-05-15 Thread Rick Harrison via use-livecode
I have noticed this oddity for a long time.
No other program that I own does this.

Why is LC so dirty?

Rick

___
use-livecode mailing list
use-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: Really need In App Purchasing for macOS

2021-05-14 Thread Rick Harrison via use-livecode
Hi Kee,

IAP in the Apple World only applies to iOS apps in their environment for now as 
I understand it.
That may change in the future as Apple starts making iOS Apps available for 
macOS.

To implement what you want, you would probably have to add a link to your 
website in your Mac App.
At your website you can offer the user a chance to upgrade to another version 
of your app.
(Of course Apple may not like this because at this point you might be cutting 
them out of the equation
and it might violate your terms with Apple.  You will have to research that.)

You may even just refer them to another Mac App on the Apple Store which would 
not violate anything
in your terms because Apple will still be able to take their cut.

The old strategy was to give the users a cheap or free version of your product, 
and then provide a link
to the Pro-version or SuperPro or Ultra-Pro version of your software with more 
capability each time.

Please let us know how you solve your problem, and what extra success you had 
with the strategy.

Good luck!

Rick


> On May 14, 2021, at 11:27 AM, Kee Nethery via use-livecode 
>  wrote:
> 
> Any suggestions? Each month my app gets 800+ views on the App Store and 1 
> purchase. With IAP I could convert so many more into paying customers. Any 
> suggestions on how to add IAP to a Mac app?
> 
> Kee Nethery

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


Re: Close & remove from memory - Engine hang

2021-05-07 Thread Rick Harrison via use-livecode
Hi Tiemo,

I have also seen this weirdness, I don’t think it’s just your computer.

Rick

> On May 7, 2021, at 5:04 AM, Tiemo via use-livecode 
>  wrote:
> 
> Hello,
> 
> 
> 
> LC 9.6.1 macOS 11.2.3
> 
> 
> 
> when trying to close and remove a file from memory I get the known window
> "really remove the stack file stack?" with the options "cancel" & "OK"
> 
> Both options are non responsible, nothing happens.
> 
> I still can navigate thru the file menu (with the above dialog still open)
> and close that stack (without removing from memory)
> 
> But even then I can't close the IDE - nothing happens when trying to quit
> the engine.
> 
> Only a hard close via task manager is the only option to quit the engine
> 
> When selecting just "close" from the file menu, everything works fine.
> 
> There is one additional strange issue. In that dialog "really remove the
> stack file stack? The text really says "stack file stack" and not "stack
>  file"
> 
> 
> 
> Is it something about my stack what makes the engine hang, or do you also
> experience this behaviour?
> 
> 
> 
> Tiemo

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


Re: New(?) Idea for Standalones

2021-03-29 Thread Rick Harrison via use-livecode
Hi Mark,

Perhaps improving standalone building should be put at
the top of the priority of things to improve for LiveCode.

I think people are very frustrated that they are having
great difficulties in building a standalone. A process that
used to be relatively simple is now way too complex.

Many LC users want to be able to create their application,
and deploy it quickly to their own computers, or to give
away to their family members.  They are not interested
in inserting Apple or other corporations into their personal
programming loop, and a lot of us feel the same way.

No one wants to deal with having to create bundle ids
or other corporate nonsense.  (Option for a unique random
bundle id generator here?)

I believe users want LC to step up it’s game in dealing
with these issues so the deployment experience is an
enjoyable one, and not a PITA.

Successfully addressing this problem helps everyone!

Just my 2 cents for the day.  ;-)

Rick


> 
> In terms of the general thrust behind this thread - I completely agree that 
> standalone building has become tortuous over the last few years as all 
> platforms add more and more hoops you have to jump through. However, this is 
> probably best done by improving the standalone building process (i.e. making 
> it as easy as possible) rather than anything else.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps


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


Re: LC Server - Check for Screen size?

2021-03-21 Thread Rick Harrison via use-livecode
Hi Matthias,

Thanks!

Rick

> On Mar 21, 2021, at 7:51 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Hi Rick,
> here's a sample with some put commands and comments for better understanding.
>  -- read Cookie screeres if available
> put $_COOKIE["screenres"] into tScreenRes
> 
> if tScreenRes is empty
> then
>   put "cookie not found. we need to write the cookie"
> -- the cookie does not exists or is empty, so we now executing JS, but 
> -- the following closing tag is mandatory, otherwise the js is not executed
> ?>   
> 
>   let screenwidth = (screen.availWidth);
>   let screenheight =(screen.availHeight);
>   document.cookie = "screenres="+screenwidth +","+screenheight;
> 
>put "cookie written"
> else
>   put "Cookie already there"
> end if
> 
> --now we extract height and width from the var tScreenRes
> set the itemdelimiter to ","
> put item 1 of tScreenRes to tWidth
> put item 2 of tScreenRes to tHeight
> 
> --from here take action according the detected screenresolution.
> ?>
> 
> 
> Note: The above script detects and uses the available screen resolution. 
> Regards,
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 


___
use-livecode mailing list
use-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 Server - Check for Screen size?

2021-03-20 Thread Rick Harrison via use-livecode
Hi Matthias,

So you are thinking something like:





Your Screen:




var txt = "";
txt += "

Total width/height: " + screen.width + "*" + screen.height + "

"; txt += "

Available width/height: " + screen.availWidth + "*" + screen.availHeight + "

"; txt += "

Color depth: " + screen.colorDepth + "

"; txt += "

Color resolution: " + screen.pixelDepth + "

"; document.getElementById("demo").innerHTML = txt; And then put the information into a Javascript cookie and then read the cookie value with an LC Server script. I’ll see if I can get that to work. Thanks! Rick > On Mar 20, 2021, at 6:10 PM, matthias rebbe via use-livecode > wrote: > > As Livecode Server runs on the server there is no direct command/function in > LC Server available for this task. > > But you could use Javascript (document.cookie) in your LC Server script to > write the screen resolution into a cookie and read that cookie then with your > Livecode Server script. > > > - > Matthias Rebbe > Life Is Too Short For Boring Code ___ use-livecode mailing list use-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 Server - Check for Screen size?

2021-03-20 Thread Rick Harrison via use-livecode
I was wondering if there is anyway to check for the
device type or screen size of the connected device
for LC Server so I can serve the correct size screen?

Thanks,

Rick

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