RE: Android ANR (App not responding | Jacque was right :-)

2023-09-17 Thread Ralph DiMola via use-livecode
Was invited to an experimental Jazz show yesterday. I finally realized that all 
jazz is experimental.

"Jazz is not dead it just smells funny"
Frank Zappa


What do you call a person who hangs out with musicians?


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 
Bob Sneidar via use-livecode
Sent: Friday, September 15, 2023 10:02 PM
To: How to use LiveCode
Cc: Bob Sneidar
Subject: Re: Android ANR (App not responding | Jacque was right :-)

Yes. It’s the one that no batter can hit. 

Sent from my iPhone

> On Sep 15, 2023, at 18:14, Mark Wieder via use-livecode 
>  wrote:
> 
> On 9/15/23 13:10, Ralph DiMola via use-livecode wrote:
>> Does accordion count?
> 
> You know the definition of perfect pitch, right?
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Your scripts as a flowchart

2023-09-17 Thread Geoff Canyon via use-livecode
Is there a way to export the entire flowchart, instead of just the portion
currently displayed?

As an aside, I don't know whether to be proud or horrified at the map
Navigator produces...

On Sat, Sep 16, 2023 at 8:04 PM Geoff Canyon  wrote:

> Ah, okay, that explains it. In Navigator, *everything* is a script-only
> stack behavior. In a few of the substacks there are scripts for a few
> template objects or where script-only-stack behaviors were inconvenient (I
> don't remember why, honestly).
>
> That has it working, and the resulting diagram is nice. Navigator does a
> similar survey (without the visualization, that's a neat trick).
>
> Navigator reports:
>
> 302986 characters in
> 8092 lines in
> 112 scripts in
> 885 objects.
>
> ScriptDependencies reports:
>
> 341 unique handler names - 407 commands, 124 functions, 1 setProps
>
> regards,
>
> Geoff
>
> On Sat, Sep 16, 2023 at 6:24 PM Andreas Bergendal via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> As long as you include all the script-only stacks in the analysis, they
>> will be handled.
>> The tool will not look for behaviors and auto-include them. Every stack
>> that has relevant code must be included manually in the project pane. If
>> you have many SoSs, you can quickly add them all by adding the whole folder
>> they are in.
>>
>> How many handlers does the analysis find?
>>
>> /Andreas
>>
>>
>> > 16 sep. 2023 kl. 22:43 skrev Geoff Canyon via use-livecode <
>> use-livecode@lists.runrev.com>:
>> >
>> > I didn't change anything before generating, and the flow chart is
>> literally
>> > blank -- unless it:
>> >
>> > 1. scrolls invisibly
>> > 2. keeps returning the project name to the upper left while scrolling
>> > 3. has *at least* 30 screens' worth of blank space at the top?
>> >
>> > On Sat, Sep 16, 2023 at 1:35 PM J. Landman Gay via use-livecode <
>> > use-livecode@lists.runrev.com> wrote:
>> >
>> >> That happened to me too with a very long script. To keep everything in
>> >> view
>> >> there's a lot of white space. Keep scrolling. This happens only if you
>> >> have
>> >> set it to use unlimited sizing.
>> >> --
>> >> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> >> HyperActive Software | http://www.hyperactivesw.com
>> >> On September 16, 2023 11:15:00 AM Geoff Canyon via use-livecode
>> >>  wrote:
>> >>
>> >>> Does it not handle script-only stack behaviors? I get a blank display
>> for
>> >>> Navigator (which has no code other than SoS behaviors).
>> >>>
>> >>> gc
>>
>>
>> ___
>> use-livecode mailing list
>> use-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


Encoding in LC server - the final piece of the puzzle

2023-09-17 Thread Neville Smythe via use-livecode
So all I had to do was move that “put header..” to the first line of the 
script, and abracadabra, all is now working. Many many thanks Ralf, I think I 
have  a smidgeon better understanding of how LC interacts with Apache.

Ralf wrote
> did you try:
> 
> put header "Content-Type: text/html; charset=" & quote & "UTF-8" & quote
> 
> ***before*** [my emphasis] sending the [html] output to the client?


Neville Smythe




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


Forum Software LC?

2023-09-17 Thread harrison--- via use-livecode
Has anyone built Forum Software with LiveCode?
There are a lot of PHP ones, but I have yet to
find one that was built with LiveCode.

PHP is hacked all the time, and I have found
hacker bots that try to hack my server all
the time by exploiting holes in PHP.  They
even try to install PHP on my server so they
can then use it to hack my server!

I think Forum Software built with LiveCode
could be more secure, but I don’t want to
build it myself if someone has already
created it.

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: revXML and UTF-8

2023-09-17 Thread jbv via use-livecode

Thank you for your reply.

I found a workaround, but not a very elegant one :
when xml parsing returns some "", I start the
parsing again, but I process the line as plain text
and not as xml.
It's about as fast.

Le 2023-09-17 09:32, Paul Dupuis via use-livecode a écrit :
There are a number of "rev" libraries (revXML, revZIP, perhaps others) 
that are not fully Unicode compatible.


See:
https://quality.livecode.com/show_bug.cgi?id=18942 (revXML, revZIP)
https://quality.livecode.com/show_bug.cgi?id=22202 (revZIP)

... and possibly others. There are no work-arounds for not being 
Unicode compatible (at least none I know of). In my opinion, bugs with 
no work-around should be among LC's higher priorities for bug fixes.



On 9/17/2023 8:32 AM, jbv via use-livecode wrote:

Hi list,

I have a text file encoded in UTF-8. Each line of the file
is an xml node with several sub-nodes and attributes.

I have a loop in LC that reads lines one by one and creates
an xml tree with revXMLCreateTree. The goal is to parse each
line and extract some data.

The problem is that, when for instance data is japanese or
chinese characters, the data always outputs as .

When opening the file I use :
open file myFile for UTF8 read

I tried to insert before each line :


and also :
put textEncode(myLine,"UTF8") into myLine

Is there a way to declare an xml tree as UTF-8 ?

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


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


Re: revXML and UTF-8

2023-09-17 Thread Paul Dupuis via use-livecode
There are a number of "rev" libraries (revXML, revZIP, perhaps others) 
that are not fully Unicode compatible.


See:
https://quality.livecode.com/show_bug.cgi?id=18942 (revXML, revZIP)
https://quality.livecode.com/show_bug.cgi?id=22202 (revZIP)

... and possibly others. There are no work-arounds for not being Unicode 
compatible (at least none I know of). In my opinion, bugs with no 
work-around should be among LC's higher priorities for bug fixes.



On 9/17/2023 8:32 AM, jbv via use-livecode wrote:

Hi list,

I have a text file encoded in UTF-8. Each line of the file
is an xml node with several sub-nodes and attributes.

I have a loop in LC that reads lines one by one and creates
an xml tree with revXMLCreateTree. The goal is to parse each
line and extract some data.

The problem is that, when for instance data is japanese or
chinese characters, the data always outputs as .

When opening the file I use :
open file myFile for UTF8 read

I tried to insert before each line :


and also :
put textEncode(myLine,"UTF8") into myLine

Is there a way to declare an xml tree as UTF-8 ?

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


revXML and UTF-8

2023-09-17 Thread jbv via use-livecode

Hi list,

I have a text file encoded in UTF-8. Each line of the file
is an xml node with several sub-nodes and attributes.

I have a loop in LC that reads lines one by one and creates
an xml tree with revXMLCreateTree. The goal is to parse each
line and extract some data.

The problem is that, when for instance data is japanese or
chinese characters, the data always outputs as .

When opening the file I use :
open file myFile for UTF8 read

I tried to insert before each line :


and also :
put textEncode(myLine,"UTF8") into myLine

Is there a way to declare an xml tree as UTF-8 ?

Thank you in advance,
jbv

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


Re: Encoding in LC server - the final piece of the puzzle

2023-09-17 Thread Ralf Bitter via use-livecode

Neville, you need to send the header
before outputting anything else.
So, this means your LC server script
should send the header and then the HTML data.


Ralf



On 17.09.2023 01:56, Neville Smythe via use-livecode wrote:


Ralf wrote

did you try:

put header "Content-Type: text/html; charset=" & quote & "UTF-8" & quote

before sending the output to the client?



That sounds exactly like the incantation I needed.

But I can’t get it to work.

The first 3 lines of my webPage.lc  file are





(Not sure that 3rd line is necessary with HTML5, but presumably it couldn’t 
hurt)

The header suggested just seems to be ignored when LC Server sends the output 
to Apache.  (Tried it with “put new header…” too after I found some 
documentation for the magic spell.)

The default setting for Apache on Dreamhost is naturally the native encoding 
ISO-8859-1.(Is there any way to override that with htaccess, since all my 
WordPress pages are served as utf-8 already?)

Neville Smythe




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