Re: Smile for Christmas.

2021-12-16 Thread Pi Digital via use-livecode

> I will donate "aluminium" for them. I don't know where they got that.

Sir Humphry Davy, the same one responsible for the confusion in the term/name. 
So, the same place as our American cousins. 

> Oh, and don't forget Wales. They only have one sorta vowel, "y", and they 
> make do with random consonants when they run short.
They use a, e, o, u and I. W and Y are also considered vowels. They don’t use 
K, Q, V or Z  Double L, D, F as well as ch, ph, rh, th and ng all make 
consonant sounds. 29 ‘letters’ in total with 7 vowels. 

But I get that you were only jesting ;)
___
use-livecode mailing list
use-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 J. Landman Gay via use-livecode

I will donate "aluminium" for them. I don't know where they got that.

Oh, and don't forget Wales. They only have one sorta vowel, "y", and they 
make do with random consonants when they run short.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 16, 2021 8:06:23 PM doc hawk via use-livecode 
 wrote:



rick ruminated,


Combining two arrays is nice, but it really shouldn’t spell correct “color” 
to “colour”.


Oh, dear I almost forgot.

It’s time for my annual vowel drive!

Please send all your excess “u” and other vowels (I’m looking at *you*, 
Britain!).


I will package them, and send them to the vowel-starved folks in czch, srb, 
and so forth . . .


:_)


___
use-livecode mailing list
use-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 Terry Judd via use-livecode
Surely we should be sending them straight to the US ;)

Terry…


From: use-livecode  on behalf of doc 
hawk via use-livecode 
Date: Friday, 17 December 2021 at 1:05 pm
To: How to use LiveCode 
Cc: doc hawk 
Subject: Re: Smile for Christmas.

rick ruminated,


>Combining two arrays is nice, but it really shouldn’t spell correct “color” to 
>“colour”.

Oh, dear I almost forgot.

It’s time for my annual vowel drive!

Please send all your excess “u” and other vowels (I’m looking at *you*, 
Britain!).

I will package them, and send them to the vowel-starved folks in czch, srb, and 
so forth . . .

:_)


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

rick ruminated,


>Combining two arrays is nice, but it really shouldn’t spell correct “color” to 
>“colour”.

Oh, dear I almost forgot.

It’s time for my annual vowel drive!

Please send all your excess “u” and other vowels (I’m looking at *you*, 
Britain!).

I will package them, and send them to the vowel-starved folks in czch, srb, and 
so forth . . .

:_)


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


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.

The example in question :


*local*tLeft, tRight*
put*"green"intotLeft["color"]*
put*"left"intotLeft["align"]*
put*"blue"intotRight["color"]*
put*"100"intotRight["width"]

*union*tLeft withtRight

*# RESULT**
# tLeft["colour"] = "green"
# tLeft["align"] = "left"**
# tLeft["width"] = "100"*





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

___
use-livecode mailing list
use-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: Encrypting long text

2021-12-16 Thread Monte Goulding via use-livecode
I have opened this issue to correct the documentation. Autocomplete parses the 
syntax definitions in the docs to create a list of possible command variations.
https://quality.livecode.com/show_bug.cgi?id=23489

> On 17 Dec 2021, at 6:08 am, Sean Cole via use-livecode 
>  wrote:
> 
> Hi Mark
> 
> So it must be the auto-completes that have the wrong possible values added
> to its list. Type 'encrypt' into the script editor and go to the bottom,
> then right and there are every possible iteration based on the syntax given
> in the dictionary. This does not match up with your description so perhaps
> needs looking in to.
> 
> Thanks for your help
> 
> Sean
> 
> On Thu, 16 Dec 2021 at 17:36, Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> On 2021-12-16 17:09, Sean Cole via use-livecode wrote:
>>> Thanks Mark,
>>> 
>>> New problem. Trying to use aes-256-ctr instead. I'm following the
>>> syntax in
>>> the dictionary but it throws a red cross on it:
>>> 
>>> encrypt tData using "aes-256-ctr" with key tMyKey and salt tMySalt
>> 
>> I think you can either specify a key, or a password with an optional
>> salt.
>> 
>> If you specify a password it uses the provided salt (or a random one if
>> one is not provided) to generate a key of the correct length (the bit
>> length of the cipher).
>> 
>> If you provide a key then it uses that verbatim to encrypt the data (in
>> this case the key must be the correct number of bits as defined by the
>> chosen cipher - 256 in this case).
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
>> --
>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>> LiveCode: Everyone can create apps
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Encrypting long text

2021-12-16 Thread Sean Cole via use-livecode
Hi Mark

So it must be the auto-completes that have the wrong possible values added
to its list. Type 'encrypt' into the script editor and go to the bottom,
then right and there are every possible iteration based on the syntax given
in the dictionary. This does not match up with your description so perhaps
needs looking in to.

Thanks for your help

Sean

On Thu, 16 Dec 2021 at 17:36, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2021-12-16 17:09, Sean Cole via use-livecode wrote:
> > Thanks Mark,
> >
> > New problem. Trying to use aes-256-ctr instead. I'm following the
> > syntax in
> > the dictionary but it throws a red cross on it:
> >
> > encrypt tData using "aes-256-ctr" with key tMyKey and salt tMySalt
>
> I think you can either specify a key, or a password with an optional
> salt.
>
> If you specify a password it uses the provided salt (or a random one if
> one is not provided) to generate a key of the correct length (the bit
> length of the cipher).
>
> If you provide a key then it uses that verbatim to encrypt the data (in
> this case the key must be the correct number of bits as defined by the
> chosen cipher - 256 in this case).
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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


Smile for Christmas.

2021-12-16 Thread Alex Tweedly via use-livecode

I was just reading the dictionary entry for 'union'.

Not only does it combine two arrays, but apparently it also 
spell-corrects "color" to "colour" !!


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: Encrypting long text

2021-12-16 Thread Mark Waddingham via use-livecode

On 2021-12-16 17:09, Sean Cole via use-livecode wrote:

Thanks Mark,

New problem. Trying to use aes-256-ctr instead. I'm following the 
syntax in

the dictionary but it throws a red cross on it:

encrypt tData using "aes-256-ctr" with key tMyKey and salt tMySalt


I think you can either specify a key, or a password with an optional 
salt.


If you specify a password it uses the provided salt (or a random one if 
one is not provided) to generate a key of the correct length (the bit 
length of the cipher).


If you provide a key then it uses that verbatim to encrypt the data (in 
this case the key must be the correct number of bits as defined by the 
chosen cipher - 256 in this case).


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: open socket on start up and can't close

2021-12-16 Thread Craig Newman via use-livecode
Curry.

Surely you are right.

I just remember when HC was on the ropes, and wish that the LC Forum was so 
full of posts that I never have to do my actual job. I can just kibitz there 
all day long. It would mean that the world finally gets what LC offers.

Craig

> On Dec 16, 2021, at 11:16 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Craig:
> 
> > I have never understood how anyone working with LC,
> > at any level of expertise, can lurk silently either here
> > or on the Forum, and never ask a question, comment on something,
> > complain or praise, whatever.
> 
> Understanding is a valuable commodity!
> 
> Not everyone is extrovert/expulsive.
> Not all have the time or inclination.
> And the list goes on ... different strokes.
> 
> None of which necessarily mean less interest
> or enthusiasm for LC. Many a quiet sage
> 
> Interesting backstory too; thanks for sharing.
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> Christian LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Encrypting long text

2021-12-16 Thread Sean Cole via use-livecode
Thanks Mark,

New problem. Trying to use aes-256-ctr instead. I'm following the syntax in
the dictionary but it throws a red cross on it:

encrypt tData using "aes-256-ctr" with key tMyKey and salt tMySalt


What is wrong with this syntax that the auto language detector shows it as
a mistake?
Sean

On Thu, 16 Dec 2021 at 16:45, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2021-12-16 16:23, Sean Cole via use-livecode wrote:
> > Hi all,
> > I'm trying to use RSA to encrypt data from a text field like an address
> > or
> > notes. When I try to use the encrypt command I get a result 'message
> > too
> > long'. What is the method for encrypting long or large data?
> >
> > My current line of code:
> >encrypt tData using rsa with public key tMyKey and
> > passphrase tMyPass
>
> RSA encryption can only encrypt data up to a certain length (I can't
> remember off the top of my head the exact relation, but it is related to
> the size of the key) so it isn't designed to be used on arbitrary length
> messages.
>
> Encrypting arbitrary length messages is the domain of symmetric
> encryption functions - like AES and friends.
>
> The solution, therefore, is to combine the two:
>
>1) Generate a random (using randomBytes()) fixed length encryption key
> FixedKey
>
>2) Encrypt the actual data using a symmetric algorithm with FixedKey
> as password
>
>2) Use RSA to encrypt the (fixed length!) key FixedKey
>
>4) Make you message the RSA-encrypted FixedKey followed by the
> encrypted data
>
> The RSA encrypted FixedKey will be a constant length, and thus you can
> just split that off of the combined data, decrypt it using RSA and then
> use the result to decrypt the payload.
>
> Hope this helps!
>
> Mark.
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Encrypting long text

2021-12-16 Thread Mark Waddingham via use-livecode

On 2021-12-16 16:23, Sean Cole via use-livecode wrote:

Hi all,
I'm trying to use RSA to encrypt data from a text field like an address 
or
notes. When I try to use the encrypt command I get a result 'message 
too

long'. What is the method for encrypting long or large data?

My current line of code:
   encrypt tData using rsa with public key tMyKey and
passphrase tMyPass


RSA encryption can only encrypt data up to a certain length (I can't 
remember off the top of my head the exact relation, but it is related to 
the size of the key) so it isn't designed to be used on arbitrary length 
messages.


Encrypting arbitrary length messages is the domain of symmetric 
encryption functions - like AES and friends.


The solution, therefore, is to combine the two:

  1) Generate a random (using randomBytes()) fixed length encryption key 
FixedKey


  2) Encrypt the actual data using a symmetric algorithm with FixedKey 
as password


  2) Use RSA to encrypt the (fixed length!) key FixedKey

  4) Make you message the RSA-encrypted FixedKey followed by the 
encrypted data


The RSA encrypted FixedKey will be a constant length, and thus you can 
just split that off of the combined data, decrypt it using RSA and then 
use the result to decrypt the payload.


Hope this helps!

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


Encrypting long text

2021-12-16 Thread Sean Cole via use-livecode
Hi all,
I'm trying to use RSA to encrypt data from a text field like an address or
notes. When I try to use the encrypt command I get a result 'message too
long'. What is the method for encrypting long or large data?

My current line of code:
   encrypt tData using rsa with public key tMyKey and
passphrase tMyPass

Thanks

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: open socket on start up and can't close

2021-12-16 Thread Curry Kenworthy via use-livecode



Craig:

> I have never understood how anyone working with LC,
> at any level of expertise, can lurk silently either here
> or on the Forum, and never ask a question, comment on something,
> complain or praise, whatever.

Understanding is a valuable commodity!

Not everyone is extrovert/expulsive.
Not all have the time or inclination.
And the list goes on ... different strokes.

None of which necessarily mean less interest
or enthusiasm for LC. Many a quiet sage

Interesting backstory too; thanks for sharing.

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
Christian LiveCode Training and Consulting
http://livecodeconsulting.com/

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


Re: open socket on start up and can't close

2021-12-16 Thread Craig Newman via use-livecode
> "A few regulars - but many others who work/lurk! :)"

I have never understood how anyone working with LC, at any level of expertise, 
can lurk silently either here or on the Forum, and never ask a question, 
comment on something, complain or praise, whatever. Checking these two venues 
is the first thing I do in the morning.

Craig

> On Dec 16, 2021, at 9:02 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Curry.
> 
> "A few regulars - but many others who work/lurk! :)"
> 
> I see that.
> 
> Robert Eppich, back in the ’90’s, way before sockets, sold a product called 
> “Epsitalk”. This was HC based, and essentially used the now deprecated “send 
> message to program”. This was listed as a keyword, not a command, in the HC 
> lexicon. I never understood that.
> 
> Anyway, I still have a peer-to-peer collection of OS9 Macs that run part of 
> my business, used daily. The only reason I have not migrated that stuff to LC 
> is that I have played with sockets only just a little, and do not want to fix 
> what is not broken. My LC world is rich and busy enough with the other things 
> I do with it.
> 
> So Robert, glad to see you still in the xTalk world...
> 
> Craig
> 
>> On Dec 15, 2021, at 11:58 PM, Curry Kenworthy via use-livecode 
>>  wrote:
>> 
>> 
>> Craig:
>> 
>>> ROBERT EPPICH?
>> 
>> More people read this list than anyone might assume.
>> A few regulars - but many others who work/lurk! :)
>> 
>> Best wishes,
>> 
>> Curry Kenworthy
>> 
>> Custom Software Development
>> "Better Methods, Better Results"
>> Christian LiveCode Training and Consulting
>> http://livecodeconsulting.com/
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: open socket on start up and can't close

2021-12-16 Thread Craig Newman via use-livecode
Curry.

"A few regulars - but many others who work/lurk! :)"

I see that.

Robert Eppich, back in the ’90’s, way before sockets, sold a product called 
“Epsitalk”. This was HC based, and essentially used the now deprecated “send 
message to program”. This was listed as a keyword, not a command, in the HC 
lexicon. I never understood that.

Anyway, I still have a peer-to-peer collection of OS9 Macs that run part of my 
business, used daily. The only reason I have not migrated that stuff to LC is 
that I have played with sockets only just a little, and do not want to fix what 
is not broken. My LC world is rich and busy enough with the other things I do 
with it.

So Robert, glad to see you still in the xTalk world...

Craig

> On Dec 15, 2021, at 11:58 PM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Craig:
> 
> > ROBERT EPPICH?
> 
> More people read this list than anyone might assume.
> A few regulars - but many others who work/lurk! :)
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> Christian LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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