Re: webP and webM support in LiveCode

2017-08-26 Thread hh via use-livecode
For webP you could use (from LC via shell) these free WebP utilities for Mac/Win/linux: cwebp -- WebP encoder tool dwebp -- WebP decoder tool vwebp -- WebP file viewer webpmux -- WebP muxing tool gif2webp -- Tool for converting GIF images to WebP See https://developers.google.com/speed/webp/downl

Video files not showing on my PC (LiveCode 5.5)

2017-08-26 Thread Francis Nugent Dixon via use-livecode
Hi from Beautiful Brittany, LiveCode 5.5 (I know, I can't afford the updates - Am I the only one ?) Sierra 10.12.3 On my Mac, I have successfully run Audio and Video functions (Quicktime) MP3 for Audio, MP4/Mov for Video, for some years. Recently moving the app to PC (Windows 7, with Quicktime

Text (uni)coding issue

2017-08-26 Thread Andrew Bell via use-livecode
I have a database on a LiveCode server that I use to track user interactions in a LiveCode app. It has gotten too big to query in LiveCode without timeout errors (the JSON gets mangled because there are now several thousand records), so I'm trying to generate a text file on the server and d

Re: Text (uni)coding issue

2017-08-26 Thread Mike Kerner via use-livecode
Any reason why you're using binfile instead of file if the text isn't encoded? On Sat, Aug 26, 2017 at 8:34 AM, Andrew Bell via use-livecode < use-livecode@lists.runrev.com> wrote: > I have a database on a LiveCode server that I use to track user > interactions in a LiveCode app. It has gotten t

Re: Search Values of Array in "One Go"

2017-08-26 Thread Alex Tweedly via use-livecode
I think regex (or multiple string comparisons) is too limited a way to go. I would want to be able to do numeric comparisons, range comparisons, etc. e.g. x is a number, x<25, 24 < x < 33, etc. -- Alex. On 26/08/2017 05:05, Brian Milby via use-livecode wrote: tElement isn't the part that woul

webP and webM support in LiveCode

2017-08-26 Thread Alejandro Tejada via use-livecode
On Sat, 26 Aug 2017, Monte Goulding wrote: > I don?t think anyone is ruling anything out. This is good news! :D Hermann Hoch wrote: > For webP you could use (from LC via shell) these > free WebP utilities for Mac/Win/linux Yes, LiveCode shell control is a real godsend for working with command li

Re: Video files not showing on my PC (LiveCode 5.5)

2017-08-26 Thread Kenji Kojima via use-livecode
Hi Francis, I am using LiveCode 5.5 (Mac, Sierra 10.12.6) mainly. But it cannot play some mp4 files. The video files do not show video frames. QuickTime 7 player cannot play the problem files, but QuickTime 10 player can. I think some new video files (mp4) are not a same old format of video. I

Re: Video files not showing on my PC (LiveCode 5.5)

2017-08-26 Thread Matthias Rebbe via use-livecode
Hi Francis, i think it depends which version of Mediaplayer is installed on the Windows PC, see an overview which file format is support by which version of Mediaplayer here https://support.microsoft.com/en-us/help/316992/file-types-supported-by-windows-media-player

Re: Search Values of Array in "One Go"

2017-08-26 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: > I think regex (or multiple string comparisons) is too limited a way to > go. > > I would want to be able to do numeric comparisons, range comparisons, > etc. > > e.g. x is a number, x<25, 24 < x < 33, etc. The problem of querying hierarchically-ordered data has been around

Re: webP and webM support in LiveCode

2017-08-26 Thread Richard Gaskin via use-livecode
Alejandro Tejada wrote: > Hermann Hoch wrote: >> For webP you could use (from LC via shell) these >> free WebP utilities for Mac/Win/linux > > Yes, LiveCode shell control is a real godsend for > working with command line programs, but we could > not use webP compressed images within our stacks >

webP and webM support in LiveCode

2017-08-26 Thread Alejandro Tejada via use-livecode
Richard Gaskin wrote: > This sounds like a good opportunity > for using FFI in a Widget. Looks like every computer language now uses FFI. I think that we need a Cookbook to learn this new feature or adapt tutorials from other platforms. Who volunteers to add LiveCode to this Wikipedia article: ht

Re: Search Values of Array in "One Go"

2017-08-26 Thread J. Landman Gay via use-livecode
This would be really useful. I'd suggest: filter elements of tArray by tPath[each] is “baz” -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 26, 2017 1:14:59 AM Monte Goulding via use-livecode wrote:

Re: webP and webM support in LiveCode

2017-08-26 Thread hh via use-livecode
> Al wrote: > Yes, LiveCode shell control is a real godsend for > working with command line programs, but we could > not use webP compressed images within our stacks > unless LC engine could decode them back to RGBA > images within LiveCode. So what's the problem? Decode them with shell to a (tem

Using "Launch URL" without actually opening browser?

2017-08-26 Thread JOHN PATTEN via use-livecode
Hi All, I’m using the Google spreadsheet that gets created when you create a Google Form to collect data from a stack. I’ve copied out the specific Google submit form button to send my stack data to the Google spreadsheet. This works fine using “Launch URL” however it opens the browser and g

Re: Using "Launch URL" without actually opening browser?

2017-08-26 Thread Mike Bonner via use-livecode
Try get url "https://docs.google.com/forms/d/e/1FAIpQLScoYoEfrcewj4IEG0FnfjBn feVVSLva5tWv-dVexoP95trNNA/formResponse?"& tStudentName & tDate & tSecondsSince & tCardName & tTargetObject On Sat, Aug 26, 2017 at 3:15 PM, JOHN PATTEN via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi All,

Re: Search Values of Array in "One Go"

2017-08-26 Thread Monte Goulding via use-livecode
> On 27 Aug 2017, at 5:57 am, J. Landman Gay via use-livecode > wrote: > > This would be really useful. I'd suggest: > > filter elements of tArray by tPath[each] is “baz” Array paths don’t work like that. `each` here is the element and tPath is a path within it so it needs to be `each[tPath]

Re: Search Values of Array in "One Go"

2017-08-26 Thread Phil Davis via use-livecode
On 8/26/17 2:23 PM, Monte Goulding via use-livecode wrote: On 27 Aug 2017, at 5:57 am, J. Landman Gay via use-livecode wrote: This would be really useful. I'd suggest: filter elements of tArray by tPath[each] is “baz” Array paths don’t work like that. `each` here is the element and tPath is

Re: Search Values of Array in "One Go"

2017-08-26 Thread Monte Goulding via use-livecode
> On 27 Aug 2017, at 7:40 am, Phil Davis via use-livecode > wrote: > > Another one I would like: > > filter lines of tList WHERE item 1 of each >= 10 Yes I like that too… a tad more than `by`. It seems to read more naturally. Cheers Monte ___ us

Re: Search Values of Array in "One Go"

2017-08-26 Thread Brian Milby via use-livecode
You could set your needle to be a valid LCS expression. I just ran a test using the following: *do* "if (" & pNeedle & ") then put tPath into xFoundPaths[the number of elements in xFoundPaths + 1]" It took around 4x of the time to run though. I set my needle to "tElement > 5000" for one test an

Re: Text (uni)coding issue

2017-08-26 Thread Monte Goulding via use-livecode
Howdy Andrew There’s a few things to deal with here. - you need to know your database encoding (let’s assume UTF-8) - you need to get values out of your database in a way that gives you the binary data rather than strings that the engine has assumed were in native encoding. Use: local tCurso

Re: Search Values of Array in "One Go"

2017-08-26 Thread Mark Wieder via use-livecode
On 08/26/2017 02:43 PM, Monte Goulding via use-livecode wrote: On 27 Aug 2017, at 7:40 am, Phil Davis via use-livecode wrote: Another one I would like: filter lines of tList WHERE item 1 of each >= 10 Yes I like that too… a tad more than `by`. It seems to read more naturally. Since w

Re: Search Values of Array in "One Go"

2017-08-26 Thread Monte Goulding via use-livecode
> On 27 Aug 2017, at 9:04 am, Mark Wieder via use-livecode > wrote: > > I assume that syntax would do what the filter command normally does in terms > of modifying the contents of tList. I'd also like to see the form that > returns the result rather than modifying the original, as in > > fil

Re: Search Values of Array in "One Go"

2017-08-26 Thread Mark Wieder via use-livecode
On 08/26/2017 04:11 PM, Monte Goulding via use-livecode wrote: On 27 Aug 2017, at 9:04 am, Mark Wieder via use-livecode wrote: I assume that syntax would do what the filter command normally does in terms of modifying the contents of tList. I'd also like to see the form that returns the res

Re: Text (uni)coding issue

2017-08-26 Thread Andrew Bell via use-livecode
- you need to know your database encoding (let?s assume UTF-8) I was still fairly green to mySQL when I first created this database, so I never changed the default. Looks like the collation is "utf8mb4_unicode_ci". Should that be changed to something else? The server charset is UTF-8 Unic

Re: Search Values of Array in "One Go"

2017-08-26 Thread Monte Goulding via use-livecode
> On 27 Aug 2017, at 10:24 am, Mark Wieder via use-livecode > wrote: > > Well, yes and no. > I just wanted to make sure that the 'where' clause doesn't mean that we also > can't have the 'into' clause. Oh, sure I would expect if implemented that it wouldn’t inhibit the `into` clause. Cheers

Re: Search Values of Array in "One Go"

2017-08-26 Thread Sannyasin Brahmanathaswami via use-livecode
Please do post your stack… over at the forums? On 8/26/17, 12:21 PM, "use-livecode on behalf of Brian Milby via use-livecode" wrote: I'm using example 5 from this site for my JSON: https://adobe.github.io/Spry/samples/data_region/JSONDataSetSample.html I can post a copy of the

Re: Using "Launch URL" without actually opening browser?

2017-08-26 Thread JOHN PATTEN via use-livecode
Hi Mike, I tried "Get URL" too. It may not be possible to submit/post the data in the URL (launch url "https://docs.google.com/forms/d/e/1FAIpQLScoYoEfrcewj4IEG0FnfjBnfeVVSLva5tWv-dVexoP95trNNA/formResponse

Re: Bad Crash on Attempt to Group Radio Buttons

2017-08-26 Thread Sannyasin Brahmanathaswami via use-livecode
OK so editing groups was crashing LC on my Mac again today. I had pasted a grc into a group, could not select it, then closed the stack and LC crashed (reported here bug 20299) But when I reopened the stack the grc was there on the top layer of the group that I had edited before crashing. so hm

Re: Search Values of Array in "One Go"

2017-08-26 Thread Brian Milby via use-livecode
Here is a link to the file on OneDrive: https://1drv.ms/u/s!Apo0Atd869AFkjiW39Xit7Rmmp4b (https***1drv.ms/u/s!Apo0Atd869AFkjiW39Xit7Rmmp4b) If that won't work, I can upload to the forum somewhere. On Sat, Aug 26, 2017 at 10:30 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > Please do

Re: Using "Launch URL" without actually opening browser?

2017-08-26 Thread Mike Bonner via use-livecode
It seems to me that it should just be a matter of setting the proper headers before sending your request, but thats another area I don't know enough about. Didn't someone write a library for just this sort of thing? There is also the oath2 library in lc 9 and the google api uses oath2 so maybe tha

Re: Bad Crash on Attempt to Group Radio Buttons

2017-08-26 Thread J. Landman Gay via use-livecode
On 8/26/17 10:41 PM, Sannyasin Brahmanathaswami via use-livecode wrote: So, what is this "selectable" property? It's the cantSelect property, which doesn't show up in any search I did in the dictionary. But if you search for "select" and scroll forever, it's in the list. It's also the first h

Re: Bad Crash on Attempt to Group Radio Buttons

2017-08-26 Thread Brian Milby via use-livecode
"select\b" will make finding it a little easier. > > On Aug 26, 2017 at 11:49 PM, (mailto:use-livecode@lists.runrev.com)> wrote: > > > > On 8/26/17 10:41 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > So, what is this "selectable" property? It's the cant

Re: Bad Crash on Attempt to Group Radio Buttons

2017-08-26 Thread J. Landman Gay via use-livecode
Thanks. But it should be easier. On 8/26/17 11:53 PM, Brian Milby via use-livecode wrote: "select\b" will make finding it a little easier. On Aug 26, 2017 at 11:49 PM, mailto:use-livecode@lists.runrev.com)> wrote: On 8/26/17 10:41 PM, Sannyasin Brahmanathaswami vi