decrypt error junk

2023-11-01 Thread Tom Glod via use-livecode
Hi Folks,

I'm having bizarre issues with livecode's decrypt command. strap in, its a
weird one.

I have found a "wrong decryption key" that does not return a bad decrypt
error, but returns garbage into "the result".
Every other wrong key correctly gives the usual error.
The right key works to decrypt.

But this one key gives a different result.

the length of the encryption/decryption key is always 64 characters
it is always alphanumeric, because its a hash derivative, no weird
characters, always the correct length.
and the salt is the same for every key i tried.

I can program around it, but its unsettling.
I will report it, but in the meantime has anyone ever come across this
garbage in "the result" as a result of an incorrect. decryption key?

the even more bizzare part is that my test password was "abc123" and the
key that does not work is "abc12"  ...although those become hash
derivatives that are 64 characters, so that has nothing to do with it.
its ...just...so weird.

I spend nearly all my working time in Livecode these days, so I will
find all the bugs.

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


Re: Filter with wildcards

2023-11-01 Thread Neville Smythe via use-livecode
I agree David, regular expressions look intimidating at first sight. But in 
fact if you compare your intuitive attempt

filter tList with “*with [you,u] *”

with the regex which does what you set out to do

filter tList with regex “.*with (you|u) .*”

they are almost exactly the same – for very good reasons of course. The . is 
just the regex for a single character, the * says “any number incuding 0 of the 
preceding pattern”.

I don’t know your actual use-case, the above may be enough for all your 
searches, But I suspect you should allow for the required strings to be 
followed by punctuation or be at the end of the line, things which are hard to 
do with a simple LC wildcard search, at least in a single filter. 

The final tweak to account for a case insensitive search adds a flag at the 
front the of the regex (and I agree is rather arcane). If you want arcane, 
there is a possibly  better way to do the regex search for either the whole 
word “you" or the whole word “u”. You can use the code “\b” to indicate  a word 
boundary instead of a character, that is white space, punctuation or line start 
or end. 

filter tList with regex “.*with\b(you|u)\b.*”

As usual with a complex language there are alternative ways of accomplishing 
the same thing. Hmm, if to be truthful, my previous regex doesn’t do precisely 
the same thing as looking for word boundaries (hyphens, numbers, hard 
spaces…human language is so complicated).

I opine that regular expressions and sql are the two most useful technologies 
to add to the LC developer’s toolbox. After some basic user interface design 
principles course. Beyond those lie the web languages html, css, javascript 
(shudder). And then LCB, something I have yet to tackle.

BTW, apologies for the “numeric” when I meant “alphabetic” in the previous 
email. It seems I cannot write an email these days without at leat one mistke.

Neville

> On 1 Nov 2023, at 7:54 pm, David V Glasgow  wrote:
> 
> This is the thing about regex, amazing,powerful, impressive, but scary as 
> hell.
> 
> I will play with this a little, though… so thanks for your time when you 
> should have been doing something else.  I appreciate it. 
> 
> Best Wishes,
> 
> David Glasgow
> Consultant Forensic & Clinical Psychologist
> Carlton Glasgow Partnership
> Director, Child & Family Training, York
> Honorary Professor (SOCAMRU), Nottingham Trent University
> 
> LinkedIn Profile
> 
>> On 31 Oct 2023, at 8:59 pm, Neville Smythe via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Forgot any number of other chars after the non-numeric character
>> 
>> Filter tList with regex "(?i).*with (you|u)([^a-zA-Z].*|$)”
>> 
>> Now I’ve really got to go … hope I’ve got it all right this time! 
>> 
>> 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


Re: Direct editing of polygrid text cells and polylist text elements

2023-11-01 Thread Paul Dupuis via use-livecode

+1

I'd like to know this too as I can see no way in the Property Inspector 
or the pgColumns property to indicate a column is 'editable'. Nor can I 
find any property, message, etc. in the polygrid Dictionary entry that 
seems to suggest cell editing.



On 11/1/2023 5:28 PM, Peter Thirkell via use-livecode wrote:

I am enjoying both the polygrid and polylist add-ons to Livecode. They are 
infinitely flexible to use once you get to know them, and most importantly they 
render beautifully across all platforms.

I have one question which doesn’t seem to be addressed in the documentation. 
The polygrid widget specifications say that it supports “direct cell editing” 
but I am not able to find any way to do this. Has anyone found a way?

More generally, do we have any multi-line input field options for Livecode 
which render well across all platforms? Polygrid and polylist work beautifully 
in displaying already existing data from some sort of data repository ... but 
it would be awesome to provide the ability for users to input information as 
well as display it using the brilliant polygrid and polylist tools.

Providing truly cross-platform inputting of data and information in an easy way 
would provide the final puzzle piece for many of us wanting to provide a modern 
and beautiful user interface for our apps.

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


Direct editing of polygrid text cells and polylist text elements

2023-11-01 Thread Peter Thirkell via use-livecode
I am enjoying both the polygrid and polylist add-ons to Livecode. They are 
infinitely flexible to use once you get to know them, and most importantly they 
render beautifully across all platforms. 

I have one question which doesn’t seem to be addressed in the documentation. 
The polygrid widget specifications say that it supports “direct cell editing” 
but I am not able to find any way to do this. Has anyone found a way?

More generally, do we have any multi-line input field options for Livecode 
which render well across all platforms? Polygrid and polylist work beautifully 
in displaying already existing data from some sort of data repository ... but 
it would be awesome to provide the ability for users to input information as 
well as display it using the brilliant polygrid and polylist tools.

Providing truly cross-platform inputting of data and information in an easy way 
would provide the final puzzle piece for many of us wanting to provide a modern 
and beautiful user interface for our apps.

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


Re: Modify timeout for shell function

2023-11-01 Thread Mark Waddingham via use-livecode

On 2023-11-01 11:20, Ben Rubinstein via use-livecode wrote:
An install which runs daily and makes a number of calls using the shell 
function occasionally reports

The process "..." exceeded the timeout of 10 seconds.

I'm not sure where this timeout is defined; I'm not totally sure where 
this message is coming from (the shell? LiveCode? the process that was 
invoked through the shell command?).


Definitely not LiveCode - LiveCode runs the shell process until it ends 
on all platforms its implemented on (I'll leave it for another day to 
ponder whether there should be some sort of timeout to account for 
rogue/hung processes!)


Assuming for a moment that this isn't a timeout internal to the process 
that I happen to be invoking, is there a way in LiveCode, or in shell 
configuration, to modify this timeout?


Doing a quick google for variants of "The process ... exceeded the 
timeout of 10 seconds" - then there are various results relating to 
Laravel - which is a PHP framework. So are you shell'ing to PHP? If so 
my guess is that whatever PHP script you are running is using 
sub-processes too, and has a process timeout set to 10s.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Build Amazing Things

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


Re: PolyGrid: UNhilite a row? UPDATE

2023-11-01 Thread Klaus major-k via use-livecode
Hi friends,

> I tried had:
> ...
> set the hilitedrow of widget "index" to "0"
> ...
> set the hilitedrow of widget "index" to 0
> ...
> set the pgHilitedText of widget "index" to ""
> ...
> set the pgHilitedText of widget "index" to EMPTY
> ...
> no dice!?

it turned out that ONLY this widget "index" is affected, 
all other PolyGrid widget behave as advertised!?


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


Modify timeout for shell function

2023-11-01 Thread Ben Rubinstein via use-livecode
An install which runs daily and makes a number of calls using the shell 
function occasionally reports

The process "..." exceeded the timeout of 10 seconds.

I'm not sure where this timeout is defined; I'm not totally sure where this 
message is coming from (the shell? LiveCode? the process that was invoked 
through the shell command?).


Assuming for a moment that this isn't a timeout internal to the process that I 
happen to be invoking, is there a way in LiveCode, or in shell configuration, 
to modify this timeout?


TIA,

Ben


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


Re: Filter with wildcards

2023-11-01 Thread David V Glasgow via use-livecode
This is the thing about regex, amazing,powerful, impressive, but scary as hell.

I will play with this a little, though… so thanks for your time when you should 
have been doing something else.  I appreciate it. 

Best Wishes,

David Glasgow
Consultant Forensic & Clinical Psychologist
Carlton Glasgow Partnership
Director, Child & Family Training, York
Honorary Professor (SOCAMRU), Nottingham Trent University

LinkedIn Profile

> On 31 Oct 2023, at 8:59 pm, Neville Smythe via use-livecode 
>  wrote:
> 
> Forgot any number of other chars after the non-numeric character
> 
> Filter tList with regex "(?i).*with (you|u)([^a-zA-Z].*|$)”
> 
> Now I’ve really got to go … hope I’ve got it all right this time! 
> 
> 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

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


Re: Filter with wildcards

2023-11-01 Thread David Glasgow via use-livecode
Thanks all for the suggestions, folks.

I expected someone to mention regex (shudder).  I have many searches in a loop 
and most are simple strings, so excepting regex filters would be a bit of a 
pain (unless of course I could specify regex but this would not choke if the 
search was simple string containing no regular expressions)

Because I am lazy, and a simple soul, I will probably just  split the task into 
two filter commands - which will deliver exactly what I want at only a minimal 
time and thought overhead.

Cheers

David G

> On 30 Oct 2023, at 7:29 pm, Mark Waddingham via use-livecode 
>  wrote:
> 
> The filter command has had a ‘with[out] regex’ form for a long time - so I’d 
> use a regex instead :)
> 
> (I’m pretty sure [ ] is a set of characters to match, rather than a list of 
> sub strings, in wildcard expressions)
> 
> Warmest Regards,
> 
> Mark.
> 
> Sent from my iPhone
> 
>> On 30 Oct 2023, at 17:19, David Glasgow via use-livecode 
>>  wrote:
>> 
>> Hi folks,
>> 
>> I am doing the above and struggling with an oddity that I can’t find 
>> guidance on on Livecode or wider wildcard stuff
>> 
>> A simple example is I am searching text messages for 'with you' or 'with u’
>> 
>> so I use the wildcard form
>> 
>> *with [you,u]*
>> 
>> That finds all examples of both just fine.  However, it also finds ‘with 
>> unlimited cheese’ and 'with us’, ‘with yours’ etc.  so I want a space after 
>> both u
>> 
>> When I put two spaces inside the square brackets after each string, the 
>> search still works but spaces seem to be ignored (so still finds the above 
>> resamples I don’t want).
>> 
>> If I put a single space after the brackets the first bracketed string is 
>> ignored and the filter only finds “with u “
>> 
>> Hope someone can help me stop pulling my baffled face
>> 
>> Cheers
>> 
>> David Glasgow
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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