Re: revigniter.com - Temporarily closed for maintenance purposes.

2019-11-12 Thread Riko Abadi via use-livecode
Thanks Tom.

Pada tanggal Rab, 13 Nov 2019 pukul 12.35 Tom Glod via use-livecode <
use-livecode@lists.runrev.com> menulis:

> Hi Riko, welcome.
>
> THe site seems to work fine, no mention of anything being closed.
>
> I would say the road is clear.
>
> https://github.com/revig/revigniter is another place to check. everything
> seems fine there too.
>
> On Tue, Nov 12, 2019 at 11:34 PM Riko Abadi via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hello,
> >
> > I am new to the world of livecode.
> > I found https://revigniter.com/ whether this framework can still be used
> > for livecode projects?
> >
> > Thanks.
> > RIko
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> --
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Office:226-706-9339
> Mobile:226-706-9793
> ___
> use-livecode mailing list
> use-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: revigniter.com - Temporarily closed for maintenance purposes.

2019-11-12 Thread Tom Glod via use-livecode
Hi Riko, welcome.

THe site seems to work fine, no mention of anything being closed.

I would say the road is clear.

https://github.com/revig/revigniter is another place to check. everything
seems fine there too.

On Tue, Nov 12, 2019 at 11:34 PM Riko Abadi via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hello,
>
> I am new to the world of livecode.
> I found https://revigniter.com/ whether this framework can still be used
> for livecode projects?
>
> Thanks.
> RIko
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


revigniter.com - Temporarily closed for maintenance purposes.

2019-11-12 Thread Riko Abadi via use-livecode
Hello,

I am new to the world of livecode.
I found https://revigniter.com/ whether this framework can still be used
for livecode projects?

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


Re: Y coordinate for a line of text

2019-11-12 Thread scott--- via use-livecode
Thank you Craig and Paul. Your answers were what I was hoping for. Devin, it 
turned out that selectedLoc() was the easiest to implement. How did I not know 
about that function!
Thanks!

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   https://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-800-615-0867
--



> On Nov 12, 2019, at 8:46 AM, Devin Asay via use-livecode 
>  wrote:
> 
> The selectedLoc function may also be helpful.
> 
> 
>> On Nov 12, 2019, at 7:27 AM, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> You may want to look at the Dictionary entry for "measureText"
>> 
>> 
>> On 11/12/2019 1:43 AM, scott--- via use-livecode wrote:
>>> I’m needing to know the coordinate (Y is the tricky one) for a line of 
>>> text. I’m not do a very good job at calculating it. I think I remember a 
>>> newish LC command or function that achieved this but I can’t locate it in 
>>> the dictionary. Am I imagining?
>>> 
>>> --
>>> Scott Morrow
>>> 
>>> Elementary Software
>>> (Now with 20% less chalk dust!)
>>> web   https://elementarysoftware.com/
>>> email sc...@elementarysoftware.com
>>> booth1-800-615-0867
>>> 
>>> --
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode






___
use-livecode mailing list
use-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: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Mark Wieder via use-livecode

On 11/12/19 2:06 PM, Mark Wieder via use-livecode wrote:


That will give you both the private and public keys to pass to the Box api.


Urk. Misspoke that sentence. Obviously you don't want to send the 
private key.


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


Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Mark Wieder via use-livecode

On 11/12/19 6:23 AM, Bleiler, Timothy via use-livecode wrote:

Hi,

I’ve seen some great presentations in the last few years from the conferences 
and Livecode Global sessions using Livecode to access REST API’s from web 
services, so I’m hoping someone can help me out here.

I need to access a web service (Box.com) from my Livecode app 
using JSON web tokens.
The service  documentation states that they only support RS256, RS384, and 
RS512 for hashing the signature in the token. Unfortunately, in the 139 options 
and variations listed by the Livecode CipherNames function I don’t see these.

Have I missed or misunderstood something or am I out of luck for using Livecode 
for this task?


Box integration has been on my back burner for a while now, so I'll be 
very much interested in what you come up with here.


Are you referring to the authorization step for the Box api?
If so, this might help... this should be a one-time thing, so I would 
just do this once at the command line by hand and then grab the existing 
key with LiveCode.


ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub

That will give you both the private and public keys to pass to the Box api.

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


Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Tom Glod via use-livecode
Hey TimothyWhile I'm no expert on this subject or the schemes used by
box.com I would put money on the idea that livecode has what you need to
make this work.  You can generate RSA keys... you can hash anything you
need. and you can encrypt and decrypt using RSA private or public
keys..

https://livecode.fandom.com/wiki/Encrypt_using_rsa

What could the box api ask of you that you cannot give it?

Often times for me knowing i have the tools I need to figure it out gets me
over the hump.

message me at tom at makeshyft dot com if you can't figure it out and u
want me to look at the docs for box.com and your code.

Cheers

Tom

On Tue, Nov 12, 2019 at 12:48 PM Bleiler, Timothy via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thank you Tom!
>
> This is all new to me and I’d missed that distinction. I hope you don’t
> mind a follow up question.
>
> Is it your understanding that using SHA-256 or SHA3-256 as the
> “digestType” in the Livecode function would meet the service requirement
> for RS-256 or is there something else I’m missing?
>
> Tim
>
>
> On Nov 12, 2019, at 11:27 AM, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com>
> wrote:
>
> Hey Tim, the ciphernames lists "encryption" algorithms not hashing.
>
> I believe RS256 refers to RSA with SHA 256.
>
> messagedigest is the function you want to look up for hashing algorithms.
>
> On Tue, Nov 12, 2019 at 9:24 AM Bleiler, Timothy via use-livecode <
> use-livecode@lists.runrev.com>
> wrote:
>
> Hi,
>
> I’ve seen some great presentations in the last few years from the
> conferences and Livecode Global sessions using Livecode to access REST
> API’s from web services, so I’m hoping someone can help me out here.
>
> I need to access a web service (Box.com http://box.com/>>) from my Livecode
> app using JSON web tokens.
> The service  documentation states that they only support RS256, RS384, and
> RS512 for hashing the signature in the token. Unfortunately, in the 139
> options and variations listed by the Livecode CipherNames function I don’t
> see these.
>
> Have I missed or misunderstood something or am I out of luck for using
> Livecode for this task?
>
> Thanks,
>
> Tim Bleiler, Ph.D.
> Instructional Designer, HSIT
> University at Buffalo
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> --
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Office:226-706-9339
> Mobile:226-706-9793
> ___
> use-livecode mailing list
> use-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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-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: Commands on server and lack of examples

2019-11-12 Thread JJS via use-livecode

Hi Erik,


yes i've been busy with that, read most pages,but i can't get my head 
around it.


So i guess it's not quite for me, although it has very much potential.


Thanks a lot.

Jerry

Op 12-11-2019 om 21:31 schreef Erik Beugelaar via use-livecode:

Hello Jerry,

Maybe you've already heard of revIgniter.
revIgniter is a framework to build webapps with LiveCode: 
https://github.com/revig/revigniter/
The official site is https://revigniter.com/ but is temporarily closed for 
maintenance purposes.
The documentation is excellent.

Cheers,
Erik

On 12/11/2019, 21:06, "use-livecode on behalf of JJS via use-livecode" 
 wrote:

 Thank you Brian.
 
 So actually the Dictionary needs some updates of stuff that is not an

 error but also doing nothing when used on server.
 
 
 Thanks, Jerry
 
 
 Op 12-11-2019 om 19:34 schreef Brian Milby via use-livecode:

 > Unless you are doing a HTML5 app (entire stack resides in a web page), 
none of the GUI stuff applies.  The LC code is pretty much a replacement for PHP 
code, so the GUI piece would be the same (whatever HTML/JS frameworks you choose).
 >
 > Thanks,
 > Brian
 > On Nov 12, 2019, 1:24 PM -0500, JJS via use-livecode 
, wrote:
 >> Hello,
 >>
 >>
 >> i'm really curious how some things from the dictionary should work or
 >> behave on server. (when filtered on server)
 >>
 >> And i can find almost no examples, the forum section is small, the list
 >> is searchable but not easy, lessons almost nothing and mostly about
 >> installing the server, dictionary only IDE examples.
 >>
 >> As it is serverside, how should for example a field work or a widget.
 >>
 >> How should on mouseUp work? i can type on mouseUp and some things in it
 >> like put"hi" and then end mouseUp, no error, but nothing
 >> happening either.
 >>
 >> Or in better words maybe, how to use a HTML button like an LC button.
 >>
 >> How to send data without opening another lc script, i just want to stay
 >> for example on the same page, but i need the result back without the
 >> whole page being reloaded.
 >>
 >> ( i know how to send data as i can choose categories and products and so
 >> on each on their own page)
 >>
 >> If i need jQuery or Javascript then i can just as good go on with the
 >> PHP versions i have.
 >>
 >> I've rewritten some html/php scripts to html/lc and now i've come to the
 >> same point, there where the products should go in the basket.
 >>
 >> When one uses html form action="check.lc" for instance then when pushing
 >> the html button it tries to open that script as a page.
 >>
 >> So in short what i'm asking is a lot of examples and some answers to the
 >> above.
 >>
 >>
 >> Thanks for any help.
 >>
 >>
 >> Cheers,
 >>
 >> Jerry
 >>
 >>
 >> ___
 >> use-livecode mailing list
 >> use-livecode@lists.runrev.com
 >> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
 >> http://lists.runrev.com/mailman/listinfo/use-livecode
 > ___
 > use-livecode mailing list
 > use-livecode@lists.runrev.com
 > Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
 > http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___

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




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


___
use-livecode mailing list
use-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: Commands on server and lack of examples

2019-11-12 Thread Erik Beugelaar via use-livecode
Hello Jerry,

Maybe you've already heard of revIgniter.
revIgniter is a framework to build webapps with LiveCode: 
https://github.com/revig/revigniter/
The official site is https://revigniter.com/ but is temporarily closed for 
maintenance purposes.
The documentation is excellent.

Cheers,
Erik

On 12/11/2019, 21:06, "use-livecode on behalf of JJS via use-livecode" 
 wrote:

Thank you Brian.

So actually the Dictionary needs some updates of stuff that is not an 
error but also doing nothing when used on server.


Thanks, Jerry


Op 12-11-2019 om 19:34 schreef Brian Milby via use-livecode:
> Unless you are doing a HTML5 app (entire stack resides in a web page), 
none of the GUI stuff applies.  The LC code is pretty much a replacement for 
PHP code, so the GUI piece would be the same (whatever HTML/JS frameworks you 
choose).
>
> Thanks,
> Brian
> On Nov 12, 2019, 1:24 PM -0500, JJS via use-livecode 
, wrote:
>> Hello,
>>
>>
>> i'm really curious how some things from the dictionary should work or
>> behave on server. (when filtered on server)
>>
>> And i can find almost no examples, the forum section is small, the list
>> is searchable but not easy, lessons almost nothing and mostly about
>> installing the server, dictionary only IDE examples.
>>
>> As it is serverside, how should for example a field work or a widget.
>>
>> How should on mouseUp work? i can type on mouseUp and some things in it
>> like put"hi" and then end mouseUp, no error, but nothing
>> happening either.
>>
>> Or in better words maybe, how to use a HTML button like an LC button.
>>
>> How to send data without opening another lc script, i just want to stay
>> for example on the same page, but i need the result back without the
>> whole page being reloaded.
>>
>> ( i know how to send data as i can choose categories and products and so
>> on each on their own page)
>>
>> If i need jQuery or Javascript then i can just as good go on with the
>> PHP versions i have.
>>
>> I've rewritten some html/php scripts to html/lc and now i've come to the
>> same point, there where the products should go in the basket.
>>
>> When one uses html form action="check.lc" for instance then when pushing
>> the html button it tries to open that script as a page.
>>
>> So in short what i'm asking is a lot of examples and some answers to the
>> above.
>>
>>
>> Thanks for any help.
>>
>>
>> Cheers,
>>
>> Jerry
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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




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


Re: Commands on server and lack of examples

2019-11-12 Thread JJS via use-livecode

Thank you Brian.

So actually the Dictionary needs some updates of stuff that is not an 
error but also doing nothing when used on server.



Thanks, Jerry


Op 12-11-2019 om 19:34 schreef Brian Milby via use-livecode:

Unless you are doing a HTML5 app (entire stack resides in a web page), none of 
the GUI stuff applies.  The LC code is pretty much a replacement for PHP code, 
so the GUI piece would be the same (whatever HTML/JS frameworks you choose).

Thanks,
Brian
On Nov 12, 2019, 1:24 PM -0500, JJS via use-livecode 
, wrote:

Hello,


i'm really curious how some things from the dictionary should work or
behave on server. (when filtered on server)

And i can find almost no examples, the forum section is small, the list
is searchable but not easy, lessons almost nothing and mostly about
installing the server, dictionary only IDE examples.

As it is serverside, how should for example a field work or a widget.

How should on mouseUp work? i can type on mouseUp and some things in it
like put"hi" and then end mouseUp, no error, but nothing
happening either.

Or in better words maybe, how to use a HTML button like an LC button.

How to send data without opening another lc script, i just want to stay
for example on the same page, but i need the result back without the
whole page being reloaded.

( i know how to send data as i can choose categories and products and so
on each on their own page)

If i need jQuery or Javascript then i can just as good go on with the
PHP versions i have.

I've rewritten some html/php scripts to html/lc and now i've come to the
same point, there where the products should go in the basket.

When one uses html form action="check.lc" for instance then when pushing
the html button it tries to open that script as a page.

So in short what i'm asking is a lot of examples and some answers to the
above.


Thanks for any help.


Cheers,

Jerry


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


Decoding "quoted-printable" -- Help needed

2019-11-12 Thread R.H. via use-livecode
Even with a lot of research and comparing functions in C# and Javascript, I
do understand it yet.

In E-Mail-bodies, the content parts are often either based64-encoded, no
problem with that, but there are also other encodings called
"quoted-printable". This is text that in my case needs to be converted to
UTF-8.

Now, here all characters that are not pure ASCII are marked with a equal
sign "=" (similar to the "%" in an URL encoded string) and the following
two characters define the byte value in Hex notation. There can be one, two
and even three separate byte values for a character encoded in UTF-8.

Example: "F=C3=BCr". This translates to the German Umlaut and would render
to the string "für". The "ü" is not part of the pure ASCII and therefore it
is encoded this way. It is an encoding specific for UTF-8.

Now, as you can see, there is not just one byte represented with "=C3".
There are actually two bytes "=C3=BC": represented in Hex by "C3" and "BC"
each individually converted to decimal notation as 195 and 188. If you
URL-encode the single bytes using "%" instead of "=" such as "%U3" it will
give it's own character whith will be "À". The URL-encoding of "%BC" gives
"Ä". So, this does not help. I have to somenow look at the two bytes
together.

Converting pure ASCI to Hex gives the correct result in other programs:
-- Link: https://www.rapidtables.com/convert/number/ascii-to-hex.html:
-- Enter: "ü"
-- Result: "C3,BC" --- what we are looking for when encoding: Two separate
byte representations.
-- But it only works when the character encoding is UTF-8.

How do I come from "=C3=BC" to codepoint("ü") = 252? What do I need to
calculate?
How do we  decode such "quoted-printable" encoded string to UTF-8?

Thanks in advance...)
Roland
___
use-livecode mailing list
use-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: Commands on server and lack of examples

2019-11-12 Thread Brian Milby via use-livecode
Unless you are doing a HTML5 app (entire stack resides in a web page), none of 
the GUI stuff applies.  The LC code is pretty much a replacement for PHP code, 
so the GUI piece would be the same (whatever HTML/JS frameworks you choose).

Thanks,
Brian
On Nov 12, 2019, 1:24 PM -0500, JJS via use-livecode 
, wrote:
> Hello,
>
>
> i'm really curious how some things from the dictionary should work or
> behave on server. (when filtered on server)
>
> And i can find almost no examples, the forum section is small, the list
> is searchable but not easy, lessons almost nothing and mostly about
> installing the server, dictionary only IDE examples.
>
> As it is serverside, how should for example a field work or a widget.
>
> How should on mouseUp work? i can type on mouseUp and some things in it
> like put"hi" and then end mouseUp, no error, but nothing
> happening either.
>
> Or in better words maybe, how to use a HTML button like an LC button.
>
> How to send data without opening another lc script, i just want to stay
> for example on the same page, but i need the result back without the
> whole page being reloaded.
>
> ( i know how to send data as i can choose categories and products and so
> on each on their own page)
>
> If i need jQuery or Javascript then i can just as good go on with the
> PHP versions i have.
>
> I've rewritten some html/php scripts to html/lc and now i've come to the
> same point, there where the products should go in the basket.
>
> When one uses html form action="check.lc" for instance then when pushing
> the html button it tries to open that script as a page.
>
> So in short what i'm asking is a lot of examples and some answers to the
> above.
>
>
> Thanks for any help.
>
>
> Cheers,
>
> Jerry
>
>
> ___
> use-livecode mailing list
> use-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: Identifying Un-used functions and commands

2019-11-12 Thread Ralph DiMola via use-livecode
"DO"s make this tricky. EX: Say you have some code that is mobile platform 
specific. do "myHandlerBaseName platform param1, param2". This example may 
not be good practice but "DO"s can trip you up looking for orphan handlers.

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 
dunbarx--- via use-livecode
Sent: Tuesday, November 12, 2019 12:43 PM
To: use-livecode@lists.runrev.com
Cc: dunb...@aol.com
Subject: Re: Identifying Un-used functions and commands

Hi.
"unused functions and commands"?
Do you mean handlers that exist in a script somewhere but are never called from 
anywhere?
I suppose you can search all scripts, and if a certain handler name does not 
appear without being prepended by either "on" & space(s) or "function" & 
space(s) then you can say that handler is never called.
Craig


-Original Message-
From: Stephen MacLean via use-livecode 
To: How to use LiveCode 
Cc: Stephen MacLean 
Sent: Tue, Nov 12, 2019 12:14 pm
Subject: Identifying Un-used functions and commands

Hi All,

I’m wondering if anyone has a way or code to identify any un-used functions and 
commands in a set of stacks?

Best,
Steve MacLean

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


Commands on server and lack of examples

2019-11-12 Thread JJS via use-livecode

Hello,


i'm really curious how some things from the dictionary should work or 
behave on server. (when filtered on server)


And i can find almost no examples, the forum section is small, the list 
is searchable but not easy, lessons almost nothing and mostly about 
installing the server, dictionary only IDE examples.


As it is serverside, how should for example a field work or a widget.

How should on mouseUp work? i can type on mouseUp and some things in it 
like put"hi" and then end mouseUp, no error, but nothing 
happening either.


Or in better words maybe, how to use a HTML button like an LC button.

How to send data without opening another lc script, i just want to stay 
for example on the same page, but i need the result back without the 
whole page being reloaded.


( i know how to send data as i can choose categories and products and so 
on each on their own page)


If i need jQuery or Javascript then i can just as good go on with the 
PHP versions i have.


I've rewritten some html/php scripts to html/lc and now i've come to the 
same point, there where the products should go in the basket.


When one uses html form action="check.lc" for instance then when pushing 
the html button it tries to open that script as a page.


So in short what i'm asking is a lot of examples and some answers to the 
above.



Thanks for any help.


Cheers,

Jerry


___
use-livecode mailing list
use-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: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Bleiler, Timothy via use-livecode
Thank you Tom!

This is all new to me and I’d missed that distinction. I hope you don’t mind a 
follow up question.

Is it your understanding that using SHA-256 or SHA3-256 as the “digestType” in 
the Livecode function would meet the service requirement for RS-256 or is there 
something else I’m missing?

Tim


On Nov 12, 2019, at 11:27 AM, Tom Glod via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hey Tim, the ciphernames lists "encryption" algorithms not hashing.

I believe RS256 refers to RSA with SHA 256.

messagedigest is the function you want to look up for hashing algorithms.

On Tue, Nov 12, 2019 at 9:24 AM Bleiler, Timothy via use-livecode <
use-livecode@lists.runrev.com> wrote:

Hi,

I’ve seen some great presentations in the last few years from the
conferences and Livecode Global sessions using Livecode to access REST
API’s from web services, so I’m hoping someone can help me out here.

I need to access a web service 
(Box.com>) from my Livecode
app using JSON web tokens.
The service  documentation states that they only support RS256, RS384, and
RS512 for hashing the signature in the token. Unfortunately, in the 139
options and variations listed by the Livecode CipherNames function I don’t
see these.

Have I missed or misunderstood something or am I out of luck for using
Livecode for this task?

Thanks,

Tim Bleiler, Ph.D.
Instructional Designer, HSIT
University at Buffalo

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



--
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-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: Disappearing "column lables" of Datagrid

2019-11-12 Thread dunbarx--- via use-livecode
Why not just ask Klaus?
Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: Tom Glod via use-livecode 
Cc: Klaus major-k 
Sent: Tue, Nov 12, 2019 11:59 am
Subject: Disappearing "column lables" of Datagrid

Hi friends,

what might cause the fact that in my datagrids on card 2
the "column labels" disapear whenever I (re-)open that stack

NO scripting involved so far, the labels are just gone!?

"refreshline/refreshindex/refreshlist" does NOT work in a script.
I have to click "Refresh" in the inspector for these two datagrids
to make then appear again. This is driving me crazy! :-/

macOS 10.14.6, LC 9.0.5, same with LC 9.5.
Thanks for any hints.


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Identifying Un-used functions and commands

2019-11-12 Thread dunbarx--- via use-livecode
Hi.
"unused functions and commands"?
Do you mean handlers that exist in a script somewhere but are never called from 
anywhere?
I suppose you can search all scripts, and if a certain handler name does not 
appear without being prepended by either "on" & space(s) or "function" & 
space(s) then you can say that handler is never called.
Craig


-Original Message-
From: Stephen MacLean via use-livecode 
To: How to use LiveCode 
Cc: Stephen MacLean 
Sent: Tue, Nov 12, 2019 12:14 pm
Subject: Identifying Un-used functions and commands

Hi All,

I’m wondering if anyone has a way or code to identify any un-used functions and 
commands in a set of stacks?

Best,
Steve MacLean

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


Identifying Un-used functions and commands

2019-11-12 Thread Stephen MacLean via use-livecode
Hi All,

I’m wondering if anyone has a way or code to identify any un-used functions and 
commands in a set of stacks?

Best,
Steve MacLean

___
use-livecode mailing list
use-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: Disappearing "column lables" of Datagrid

2019-11-12 Thread Tom Glod via use-livecode
I've had that happen in the past  but unfortunately, i was unable to
track it down at the time.i remember this happening way back on v 7
...so its a bug thats been around a while.  I've also not had it happen in
quite a while, so its triggered by something very particular.

do we have a way to step through code in the datagrid library yet?  If not,
this is gonna be really hard to trace.



On Tue, Nov 12, 2019 at 11:59 AM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi friends,
>
> what might cause the fact that in my datagrids on card 2
> the "column labels" disapear whenever I (re-)open that stack
>
> NO scripting involved so far, the labels are just gone!?
>
> "refreshline/refreshindex/refreshlist" does NOT work in a script.
> I have to click "Refresh" in the inspector for these two datagrids
> to make then appear again. This is driving me crazy! :-/
>
> macOS 10.14.6, LC 9.0.5, same with LC 9.5.
> Thanks for any hints.
>
>
> Best
>
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Disappearing "column lables" of Datagrid

2019-11-12 Thread Klaus major-k via use-livecode
Hi friends,

what might cause the fact that in my datagrids on card 2
the "column labels" disapear whenever I (re-)open that stack

NO scripting involved so far, the labels are just gone!?

"refreshline/refreshindex/refreshlist" does NOT work in a script.
I have to click "Refresh" in the inspector for these two datagrids
to make then appear again. This is driving me crazy! :-/

macOS 10.14.6, LC 9.0.5, same with LC 9.5.
Thanks for any hints.


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


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


Re: Y coordinate for a line of text

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


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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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


Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Tom Glod via use-livecode
Hey Tim, the ciphernames lists "encryption" algorithms not hashing.

I believe RS256 refers to RSA with SHA 256.

messagedigest is the function you want to look up for hashing algorithms.

On Tue, Nov 12, 2019 at 9:24 AM Bleiler, Timothy via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi,
>
> I’ve seen some great presentations in the last few years from the
> conferences and Livecode Global sessions using Livecode to access REST
> API’s from web services, so I’m hoping someone can help me out here.
>
> I need to access a web service (Box.com) from my Livecode
> app using JSON web tokens.
> The service  documentation states that they only support RS256, RS384, and
> RS512 for hashing the signature in the token. Unfortunately, in the 139
> options and variations listed by the Livecode CipherNames function I don’t
> see these.
>
> Have I missed or misunderstood something or am I out of luck for using
> Livecode for this task?
>
> Thanks,
>
> Tim Bleiler, Ph.D.
> Instructional Designer, HSIT
> University at Buffalo
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Y coordinate for a line of text

2019-11-12 Thread Paul Dupuis via use-livecode

You may want to look at the Dictionary entry for "measureText"


On 11/12/2019 1:43 AM, scott--- via use-livecode wrote:

I’m needing to know the coordinate (Y is the tricky one) for a line of text. 
I’m not do a very good job at calculating it. I think I remember a newish LC 
command or function that achieved this but I can’t locate it in the dictionary. 
Am I imagining?

--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   https://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-800-615-0867

--








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



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


REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Bleiler, Timothy via use-livecode
Hi,

I’ve seen some great presentations in the last few years from the conferences 
and Livecode Global sessions using Livecode to access REST API’s from web 
services, so I’m hoping someone can help me out here.

I need to access a web service (Box.com) from my Livecode app 
using JSON web tokens.
The service  documentation states that they only support RS256, RS384, and 
RS512 for hashing the signature in the token. Unfortunately, in the 139 options 
and variations listed by the Livecode CipherNames function I don’t see these.

Have I missed or misunderstood something or am I out of luck for using Livecode 
for this task?

Thanks,

Tim Bleiler, Ph.D.
Instructional Designer, HSIT
University at Buffalo

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


Re: Y coordinate for a line of text

2019-11-12 Thread dunbarx--- via use-livecode
How do I format a simple handler so that it is not strung out like a 1960's 
hippie? Why is there no forum-like area to post scripts? Is this because I am 
using AOL as a portal to the use list?
Craig


-Original Message-
From: dunbarx--- via use-livecode 
To: use-livecode 
Cc: dunbarx 
Sent: Tue, Nov 12, 2019 9:05 am
Subject: Re: Y coordinate for a line of text

Hi.
Assuming you have a field 1 with several lines of text in it, and have set the 
textHeight of that field, then in a button script somewhere;
on mouseUpanswer the textHeight of fld 1 * lineOffset(yourText,fld 1) + the top 
of fld 1end mouseUp
Craig

-Original Message-
From: scott--- via use-livecode 
To: How to use LiveCode 
Cc: sc...@elementarysoftware.com 
Sent: Tue, Nov 12, 2019 1:45 am
Subject: Y coordinate for a line of text

I’m needing to know the coordinate (Y is the tricky one) for a line of text. 
I’m not do a very good job at calculating it. I think I remember a newish LC 
command or function that achieved this but I can’t locate it in the dictionary. 
Am I imagining?

--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web      https://elementarysoftware.com/
email    sc...@elementarysoftware.com
booth    1-800-615-0867

--








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


Re: Y coordinate for a line of text

2019-11-12 Thread dunbarx--- via use-livecode
Hi.
Assuming you have a field 1 with several lines of text in it, and have set the 
textHeight of that field, then in a button script somewhere;
on mouseUpanswer the textHeight of fld 1 * lineOffset(yourText,fld 1) + the top 
of fld 1end mouseUp
Craig

-Original Message-
From: scott--- via use-livecode 
To: How to use LiveCode 
Cc: sc...@elementarysoftware.com 
Sent: Tue, Nov 12, 2019 1:45 am
Subject: Y coordinate for a line of text

I’m needing to know the coordinate (Y is the tricky one) for a line of text. 
I’m not do a very good job at calculating it. I think I remember a newish LC 
command or function that achieved this but I can’t locate it in the dictionary. 
Am I imagining?

--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web      https://elementarysoftware.com/
email    sc...@elementarysoftware.com
booth    1-800-615-0867

--








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