Re: Shutdown on Android

2023-09-01 Thread J. Landman Gay via use-livecode
On 8/31/23 5:36 PM, Dan Friedman via use-livecode wrote: Does the shutdown message (or shutdownRequest message) work on Android? I am playing a song using androidStartAudioPlayingInBackground. However, if the app is closed (swiping up to exit it), then the audio continues to play. So, I

Re: Pasting text and images together?

2023-09-01 Thread J. Landman Gay via use-livecode
On 9/1/23 5:02 PM, Paul Dupuis via use-livecode wrote: If the App copying the mixed content places it on the clipboard as text and an image vs some mixed type, you may be able to do this Your have the on pasteKey message to trap CONTROL/COMMAND-V and if you have a "Paste" menu item, you

Re: Pasting text and images together?

2023-09-01 Thread Paul Dupuis via use-livecode
If the App copying the mixed content places it on the clipboard as text and an image vs some mixed type, you may be able to do this Your have the on pasteKey message to trap CONTROL/COMMAND-V and if you have a "Paste" menu item, you control the script for that. the ClipboardData, the

Re: Sort bug

2023-09-01 Thread Geoff Canyon via use-livecode
With 9.6.9 on a mac and a field where the second and third items of each line are numbers: sort lines of fld 1 numeric by item 2 of each + item 3 of each -- works sort lines of fld 1 numeric by value(item 2 of each + item 3 of each) -- works sort lines of fld 1 numeric by merge("[[item 2

Re: UUID v7

2023-09-01 Thread Tom Glod via use-livecode
Oh yeah,that makes sense usually... just a different use case that is all. On Fri, Sep 1, 2023 at 3:02 PM Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > it's an interesting topic, because in one of the db communities i'm > involved with, they're actually going the

Re: Pasting text and images together?

2023-09-01 Thread David Epstein via use-livecode
To clarify my original question: I'm not expecting the built-in paste command to handle this task; I'm wondering if I can script my own paste command to handle it. Richmond, I can write a script to "paste" an image by itself (by creating an image and setting its text to clipboardData["image"]).

Re: is strictly a name

2023-09-01 Thread Paul Dupuis via use-livecode
Thank you Mark. I followed that explanation and now understand that - for all of my foreseeable applications - I can ignore 'is strictly a name' :-) Paul On 9/1/2023 1:23 PM, Mark Waddingham via use-livecode wrote: On 2023-09-01 17:44, Paul Dupuis via use-livecode wrote: I may just be

Re: is strictly a name

2023-09-01 Thread Bob Sneidar via use-livecode
I put “Bob” is strictly my name in the message box and got false. But then i tried “Bob” is my name and ALSO got false! Is that a bug?? 來 Sent from my iPhone > On Sep 1, 2023, at 10:24, Mark Waddingham via use-livecode > wrote: > > On 2023-09-01 17:44, Paul Dupuis via use-livecode wrote: >>

Re: UUID v7

2023-09-01 Thread Mike Kerner via use-livecode
it's an interesting topic, because in one of the db communities i'm involved with, they're actually going the other way, increasing entropy. On Fri, Sep 1, 2023 at 1:56 PM Tom Glod via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Mike, > > Sometimes you just don't need uniqueness

Re: UUID v7

2023-09-01 Thread Tom Glod via use-livecode
Hi Mike, Sometimes you just don't need uniqueness across all bits, and if you do, use v4. In my example, the ID is used for clipboard clips, but now I don't have to sort them based on their timestamp. Also this improves database performance as the btree is better organized. There are a few videos

Re: UUID v7

2023-09-01 Thread Mike Kerner via use-livecode
why would reducing randomness be desirable in an internet-facing app? isn't the whole point to * ensure uniqueness across the entire space * make it nearly impossible to guess an ID? i would think that once you make the id's sequential, you have eliminated the ability to stop an authorized user

Re: is strictly a name

2023-09-01 Thread Mark Waddingham via use-livecode
On 2023-09-01 17:44, Paul Dupuis via use-livecode wrote: I may just be experiencing a brain fart, but I have read the release notes several times, and I don't understand the purpose of the new: is strictly a name operator? Can someone explain its purpose in really basic terms or examples?

UUID v7

2023-09-01 Thread Tom Glod via use-livecode
Hi Folks, Sharing this because its useful, and also, more eyeballs on the code makes sense. I implemented this with the help of chatGPT. This is a handler that can generate v7 UUIDs. v7 UUIDs work better in databases, because they are not so random, improving performance. And they are

is strictly a name

2023-09-01 Thread Paul Dupuis via use-livecode
I may just be experiencing a brain fart, but I have read the release notes several times, and I don't understand the purpose of the new: is strictly a name operator? Can someone explain its purpose in really basic terms or examples? ___ use-livecode