Re: best way to store data from signature widget into mysql db

2019-08-13 Thread JJS via use-livecode

Ok yes, i did not think about that.

Thanks Ralph for pointing me to that.

I will test it.


Kind regards,

Jerry

Op 13-8-2019 om 21:39 schreef Ralph DiMola via use-livecode:

If everything is in an array then "arrayEncode" the array and store it in a db. 
Then arrayDecode it when retrieving it from the DB. You may also have to 
base64Encode/base64Decode to eliminate any binary.

Ex: (not tested)
Put Base64Encode(arrayEncode(sigArray)) into DBdata
Put arrayDecode(Base64Decode(DBdata)) into sigArray

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 
JJS via use-livecode
Sent: Tuesday, August 13, 2019 3:23 PM
To: How to use LiveCode
Cc: JJS
Subject: best way to store data from signature widget into mysql db

Hi,


i was wondering what the best way would be to store a signature of the 
signature widget into mysql db, so i can recall it.

1. figure out how many keys/elements there are in the array, as  it will be 
different per signature (serialize it as a single string, or create a JSON and 
store it directly)

or

2. is it possible to export the signature, which probably is an svg, to an 
jpg/png so i can store it as BLOB?


thanks for any insights.


Regards,

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


RE: best way to store data from signature widget into mysql db

2019-08-13 Thread Ralph DiMola via use-livecode
If everything is in an array then "arrayEncode" the array and store it in a db. 
Then arrayDecode it when retrieving it from the DB. You may also have to 
base64Encode/base64Decode to eliminate any binary.

Ex: (not tested)
Put Base64Encode(arrayEncode(sigArray)) into DBdata
Put arrayDecode(Base64Decode(DBdata)) into sigArray

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 
JJS via use-livecode
Sent: Tuesday, August 13, 2019 3:23 PM
To: How to use LiveCode
Cc: JJS
Subject: best way to store data from signature widget into mysql db

Hi,


i was wondering what the best way would be to store a signature of the 
signature widget into mysql db, so i can recall it.

1. figure out how many keys/elements there are in the array, as  it will be 
different per signature (serialize it as a single string, or create a JSON and 
store it directly)

or

2. is it possible to export the signature, which probably is an svg, to an 
jpg/png so i can store it as BLOB?


thanks for any insights.


Regards,

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


best way to store data from signature widget into mysql db

2019-08-13 Thread JJS via use-livecode

Hi,


i was wondering what the best way would be to store a signature of the 
signature widget into mysql db, so i can recall it.


1. figure out how many keys/elements there are in the array, as  it will 
be different per signature (serialize it as a single string, or create a 
JSON and store it directly)


or

2. is it possible to export the signature, which probably is an svg, to 
an jpg/png so i can store it as BLOB?



thanks for any insights.


Regards,

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

QR-Reader_v100

2019-08-13 Thread hh via use-livecode
QR-Reader runs with any edition of LC 8/9 (tested with 9.5/9.0.4/8.1.10)
on every platform that supports the browser widget.

It is a QR code *reader* which reads from static images that may be
slightly rotated/skewed/distorted.

You can make it to a QR code *scanner* by providing webCam/mobileCam
camera snapshots to read from. Usually images from cameras that can't
autofocus or focus manually are not good enough for that.

We use the excellent JS library jsQR 
( https://github.com/cozmo/jsQR ) and are by that Apache2-licensed.

Download QR-Reader from "Sample Stacks" of the LC toolbar or
http://livecodeshare.runrev.com/stack/943/


___
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: MatchText issue

2019-08-13 Thread Mark Wieder via use-livecode

On 8/13/19 8:07 AM, Bob Sneidar via use-livecode wrote:

What I was trying to do was include dashes and the letter x but "-x" means 
something in Regex!


Try "[0-9x /-]"

--
 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: MatchText issue

2019-08-13 Thread Bob Sneidar via use-livecode
What I was trying to do was include dashes and the letter x but "-x" means 
something in Regex!

Bob S


> On Aug 13, 2019, at 08:02 , Bob Sneidar via use-livecode 
>  wrote:
> 
> NVM I see what -x does. It's ALL ascii characters between 32 and 120! 
> 
> Bob S
> 
> 
>> On Aug 13, 2019, at 07:54 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Hi all. I am using matchText to filter text on closeField. I use this 
>> extensively for all kinds of things, and for the most part it works 
>> famously. But for phone numbers it is allowing the characters "()" when the 
>> match string is "[0-9 -x]". Not sure why. 
>> 
>> Bob S
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: MatchText issue

2019-08-13 Thread Bob Sneidar via use-livecode
NVM I see what -x does. It's ALL ascii characters between 32 and 120! 

Bob S


> On Aug 13, 2019, at 07:54 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. I am using matchText to filter text on closeField. I use this 
> extensively for all kinds of things, and for the most part it works famously. 
> But for phone numbers it is allowing the characters "()" when the match 
> string is "[0-9 -x]". Not sure why. 
> 
> Bob S


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


MatchText issue

2019-08-13 Thread Bob Sneidar via use-livecode
Hi all. I am using matchText to filter text on closeField. I use this 
extensively for all kinds of things, and for the most part it works famously. 
But for phone numbers it is allowing the characters "()" when the match string 
is "[0-9 -x]". Not sure why. 

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


Re: QR Code Reader with Livecode

2019-08-13 Thread JJS via use-livecode
ah ok that's clears it up. and you are using the barcode library for it 
i presume.


Op 12-8-2019 om 18:19 schreef hh via use-livecode:

My stack is a (simple) QR Code *reader* not a *scanner*.
It reads from static images.

That is, if you use a webcam on desktop or a built-in camera on mobile you have 
to take a (sharp) picture and then select from that picture to read the code.

Usually a webcam or a mobile that cannot do an automatic or manual focus isn't 
good for that.

But, on desktop, you can for example read (via snapshot) from any valid QR on 
screen (for example those displayed in a pdf or a word document etc.).
___
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


[ANN] This Week in LiveCode 189

2019-08-13 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #189 here: http://bit.ly/2Z4ML7C

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

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: 9.5.0 crash to desktop

2019-08-13 Thread axwald via use-livecode
Hi.

Mark Wieder via use-livecode wrote
> LOL. That's an utterly bizarre workflow, but I'm glad it works.
> I'm filing that away somewhere if I ever have to record the screen on 
> Windows.

That's actually the most nasty method I ever read of. You may as well:
1. Press "Print" on your keyboard, open your favorite imagining program, and
"paste".
2. On a up-to-date Windows, Go "Start", choose "Snip & Sketch" in the
alphabetical program list, and use this for a custom size screenshot.
(On older versions there's a "Snipping Tool" ...)
3. Go to the  MS store

  
and choose one among the many free screenshot tools ;-)

Have fun! (axwald @ forums.livecode.com)




-
• Livecode programming until the cat hits the fan •
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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