Re: How to meet an integer

2017-10-16 Thread Stephen Barncard via use-livecode
I never met an integer I didn't like. -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Oct 16, 2017 at 6:11 PM, Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > you..one? > > On Mon, Oct 16, 2017 at 12:12 PM, hh via use-livecode < >

Re: How to meet an integer

2017-10-16 Thread Mike Kerner via use-livecode
you..one? On Mon, Oct 16, 2017 at 12:12 PM, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > > JLG wrote: > > Until I met my husband, ALL my dates were zeros. > > You won. > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com

Re: quicken dates

2017-10-16 Thread Mike Kerner via use-livecode
I'll email it to you off-list On Mon, Oct 16, 2017 at 4:45 PM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks Mike! I have something similar but limited in scope, where I can > type in yesterday or tomorrow ot today and get the respective date. I will > incorporate

Re: Atkinson dither algorithm

2017-10-16 Thread Alejandro Tejada via use-livecode
Hi Alex, This is Amazing! :-D Alex, your function saved another 34% in the running time of this handler! In retrospect, only now it seems very obvious that merging two functions could save more running time in this handler... but I just keep wondering: How far can we go merging functions to save

Re: Atkinson dither algorithm

2017-10-16 Thread Alex Tweedly via use-livecode
On 17/10/2017 00:21, Alex Tweedly via use-livecode wrote: Sorry about the horrible formatting on the last post... I'll try to find my Forum password and post the modified version there I haven't tackled the second half (i.e. the actual dithering bit yet - maybe tomorrow). I can trim

Re: Atkinson dither algorithm

2017-10-16 Thread Alex Tweedly via use-livecode
On 16/10/2017 19:37, Alejandro Tejada via use-livecode wrote: Hi Bob, Bob Sneidar wrote: I didn't post any code I don't think, but I will certainly take some credit for having done so! ;-) In fact, you are not late! :-D But I am too late - the file is called "...Final Version ..." :-) :-)

Send "rawKeyUp"

2017-10-16 Thread Alejandro Tejada via use-livecode
Hi Bob, Bob Sneidar wrote: > Nowhere in the symptoms is any description > of mental disorder. In fact, it does affect the behavior of SOME people. Take a look: https://www.salon.com/2015/03/27/the_parasite_made_me_do_it_how_a_common_infection_could_manipulate_our_behavior_partner/ In this blog,

Re: OAuth2 (LC 9) on mobile?

2017-10-16 Thread Monte Goulding via use-livecode
> On 17 Oct 2017, at 7:58 am, Ben Rubinstein via use-livecode > wrote: > > Plot thickens - with the additional inclusions, I do indeed get a browser > with an invitation to log in to, in my case, Dropbox. > > However after logging into Dropbox, and getting a

Re: OAuth2 (LC 9) on mobile?

2017-10-16 Thread Ben Rubinstein via use-livecode
Plot thickens - with the additional inclusions, I do indeed get a browser with an invitation to log in to, in my case, Dropbox. However after logging into Dropbox, and getting a page asking whether I approve connecting this app - touching the "allow" button has no effect. Has anyone else

Re: quicken dates

2017-10-16 Thread Bob Sneidar via use-livecode
Thanks Mike! I have something similar but limited in scope, where I can type in yesterday or tomorrow ot today and get the respective date. I will incorporate your method for all my date fields! Unfortunately there are a TON of line wrapping errors introduced by your pasted code. I'll have to

Re: Send "rawKeyUp"

2017-10-16 Thread Bob Sneidar via use-livecode
Toxoplasmosis is a parasitic infection spread by coming into contact with cat feces and ingesting the parasite. Nowhere in the symptoms is any description of mental disorder. Bob S > On Oct 16, 2017, at 13:22 , Alejandro Tejada via use-livecode > wrote: > >

Send "rawKeyUp"

2017-10-16 Thread Alejandro Tejada via use-livecode
Hi Richmond, Richmond wrote: > My experience is that adolescents have considerably > less foibles than adults; merely that adolescents are > honest enough to admit them openingly. > However, what I meant was labelling a program with > "don't do this" would produce the opposite > with

Re: Word recognition

2017-10-16 Thread Mark Wieder via use-livecode
Peter, Hermann, Frans: Does anyone know of an implementation of an FFT function written in LiveCode? I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as part of my attempt to compare 2 short sound clips of people speaking a single word. I'm trying to judge whether a

Atkinson dither algorithm

2017-10-16 Thread Alejandro Tejada via use-livecode
Hi Bob, Bob Sneidar wrote: > I didn't post any code I don't think, but I will certainly > take some credit for having done so! ;-) In fact, you are not late! :-D Please, take a look at the script of Atkinson Dither 04 (Fastest Version) and make it faster. How would you do this? Making the

Re: Send "rawKeyUp"

2017-10-16 Thread Richmond Mathewson via use-livecode
My experience is that adolescents have considerably less foibles than adults; merely that adolescents are honest enough to admit them openingly. However, what I meant was labelling a program with "don't do this" would produce the opposite with adolescents. Richmond. On 10/16/17 8:36 pm, Bob

quicken dates

2017-10-16 Thread Mike Kerner via use-livecode
Way back in the day, Quicken allowed all kinds of shenanigans with dates It allowed a variety of delimiters It allowed pseudo-dates: 20 -- 20th of the current month 10/20 -- 10/20/current year + -- tomorrow m -- first of this month h -- last of this month etc. I really like this, because it makes

Re: is a date

2017-10-16 Thread Mike Kerner via use-livecode
Did I miss someone checking if the allegedly valid date is really a valid date? I don't think 99/99/99 is valid. On Mon, Oct 16, 2017 at 2:07 PM, Mike Kerner wrote: > HEY BOB COPYCAT! > > On Mon, Oct 16, 2017 at 1:34 PM, Bob Sneidar via use-livecode < >

Re: is a date

2017-10-16 Thread Mike Kerner via use-livecode
HEY BOB COPYCAT! On Mon, Oct 16, 2017 at 1:34 PM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > May want to check out the MasterLibrary then. It's got a lot of great > commands and functinos, one of which will format a date any way you like, > including sql date. > > Bob

Word recognition

2017-10-16 Thread Frans Schoffelen via use-livecode
> On 16 Oct 2017, at 19:00, use-livecode-requ...@lists.runrev.com wrote: > > > Does anyone know of an implementation of an FFT function written in LiveCode? > I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as > part of my attempt to compare 2 short sound clips of

Re: Send "rawKeyUp"

2017-10-16 Thread Bob Sneidar via use-livecode
Adolescents are the perfect patients for this kind of thing. Better to train them how to use a thing properly than to try and get the thing to accomodate all their foibles. Bob S > On Oct 16, 2017, at 10:20 , Richmond Mathewson via use-livecode > wrote: > >

Re: is a date

2017-10-16 Thread Bob Sneidar via use-livecode
May want to check out the MasterLibrary then. It's got a lot of great commands and functinos, one of which will format a date any way you like, including sql date. Bob S > On Oct 16, 2017, at 10:14 , Andrew Bell via use-livecode > wrote: > >> From: Bob

Re: Comparing 2 Spoken words, FFT function in LiveCode?

2017-10-16 Thread hh via use-livecode
LC Script is probably not fast enough for performing a FFT. But you could use, for example, the following digital signal processing library for javascript via a browser widget. https://github.com/corbanbrook/dsp.js Or try to use LCB's java-FFI based on these approaches:

Re: Send "rawKeyUp"

2017-10-16 Thread Richmond Mathewson via use-livecode
That's OK in theory until you start thinking about adolescents . . . Richmond. On 10/16/17 8:00 pm, Bob Sneidar via use-livecode wrote: I have a great solution, which is simple, elegant and effective. Tell the end user, "Don't do that!" :-) Bob S On Oct 15, 2017, at 09:31 , Richmond

Re: is a date

2017-10-16 Thread Andrew Bell via use-livecode
From: Bob Sneidar To: How to use LiveCode Subject: Re: is a date Message-ID: <6eb529a3-5d21-4186-bd90-641746e96...@iotecdigital.com> Content-Type: text/plain; charset="us-ascii" This probably matters to no one at all, but SQL does not

Re: is a date

2017-10-16 Thread Roger Eller via use-livecode
Again, I would prefer a simple one-liner built-in function. What if instead of "is a date" returning true or false, it instead returned some expected outputs like "short, long, internet, seconds, ect.". Something short and sweet. ~Roger On Mon, Oct 16, 2017 at 12:56 PM, Bob Sneidar via

Re: Send "rawKeyUp"

2017-10-16 Thread Bob Sneidar via use-livecode
I have a great solution, which is simple, elegant and effective. Tell the end user, "Don't do that!" :-) Bob S > On Oct 15, 2017, at 09:31 , Richmond Mathewson via use-livecode > wrote: > > Normally, when I have personal problems . . . > > This was, oddly

Re: is a date

2017-10-16 Thread Bob Sneidar via use-livecode
This probably matters to no one at all, but SQL does not store dates with forward slashes. SQL datetime formats look like this: -dd-mm hh:mm:ss Bob S ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: is a date

2017-10-16 Thread Bob Sneidar via use-livecode
This of course assumes you know tDate is supposed to be a short date. I also have this function which is part of the master library methinks: function formatDate theDate, theFormat /* Accepts any valid date for the first parameter. If not a valid date, it simply returns what was

Re: is a date

2017-10-16 Thread Bob Sneidar via use-livecode
Old trick I learned in Foxpro. Convert something then convert it back and see if it is identical. put 20 into tDate put tDate into tOldDate convert tDate to dateitems convert tDate to short date return ((tDate is a date) and (tDate is tOldDate)) Bob S

Re: Comparing 2 Spoken words, FFT function in LiveCode?

2017-10-16 Thread Bob Sneidar via use-livecode
Oh NVM I thought you were takling about text. Bob S > On Oct 16, 2017, at 06:18 , Peter Reid via use-livecode > wrote: > > Does anyone know of an implementation of an FFT function written in LiveCode? > I've tried joneslib but this doesn't include FFT. I'm

Re: is a date

2017-10-16 Thread Roger Eller via use-livecode
Exactly! I was elated to find the built-in "is a date" check, because I really wanted to NOT have to roll my own. I was THRILLED that our lovely English-like syntax was working FOR me. And then an integer was accepted as a legit date. I didn't like that at all. Why can't the engine have "is a

Re: Comparing 2 Spoken words, FFT function in LiveCode?

2017-10-16 Thread Bob Sneidar via use-livecode
mySQL has a soundex function. Bob S > On Oct 16, 2017, at 06:18 , Peter Reid via use-livecode > wrote: > > Does anyone know of an implementation of an FFT function written in LiveCode? > I've tried joneslib but this doesn't include FFT. I'm hoping to use

Re: Atkinson dither algorithm

2017-10-16 Thread Bob Sneidar via use-livecode
I didn't post any code I don't think, but I will certainly take some credit for having done so! ;-) Bob S > On Oct 14, 2017, at 21:57 , Alejandro Tejada via use-livecode > wrote: > > Hi All, > > This forum message contains the final version of this stack. >

Re: How to meet an integer

2017-10-16 Thread hh via use-livecode
> JLG wrote: > Until I met my husband, ALL my dates were zeros. You won. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: How to meet an integer

2017-10-16 Thread J. Landman Gay via use-livecode
On October 16, 2017 5:16:15 AM hh via use-livecode wrote: JLG wrote: You know, after all the dicussion here, I'm not sure any of the options are better than "x is a date". The one exception may be that any integer is considered a date. Being a

Re: OAuth2 (LC 9) on mobile?

2017-10-16 Thread Ben Rubinstein via use-livecode
OAuth2 does work on mobile - I needed to include the Browser widget in the standalone. (The 'search for inclusions' doesn't know to include the Oauth2 library, let alone the browser widget.) If anyone else finds themselves sometimes spending a long time going down a path where the answer is

Re: libURLLast/xx/headers on mobile?

2017-10-16 Thread Ben Rubinstein via use-livecode
Aha, thanks Mark! That did it. On 13/10/2017 18:23, Mark Waddingham via use-livecode wrote: On 2017-10-13 12:15, Ben Rubinstein via use-livecode wrote: I'm trying to debug a case where making some calls to an external API works fine on desktop, but fails on mobile (both iOS and Android) with

Comparing 2 Spoken words, FFT function in LiveCode?

2017-10-16 Thread Peter Reid via use-livecode
Does anyone know of an implementation of an FFT function written in LiveCode? I've tried joneslib but this doesn't include FFT. I'm hoping to use FFTs as part of my attempt to compare 2 short sound clips of people speaking a single word. I'm trying to judge whether a single word spoken by 2

[ANN] This Week in LiveCode 102

2017-10-16 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 #102 here: https://goo.gl/RW6UMX This is a weekly newsletter about LiveCode, focussing on what's been going on in and around

How to meet an integer

2017-10-16 Thread hh via use-livecode
> JLG wrote: > You know, after all the dicussion here, I'm not sure any of the > options are better than "x is a date". The one exception may be > that any integer is considered a date. Being a mathematician I always dreamed about meeting an integer. How did you manage to meet an integer? Was it

Re: is a date

2017-10-16 Thread hh via use-livecode
> JLG wrote ... > The one exception may be that any _integer_ is considered a date. > To get around that we could just check that there are 3 items > delimited by slashes before testing for "is a date". I write "is a /real/ date" into my notes whenever a meeting is a date. How do you handle such

AW: is a date

2017-10-16 Thread Tiemo Hollmann TB via use-livecode
-Urspr√ľngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode Gesendet: Sonntag, 15. Oktober 2017 22:38 An: How to use LiveCode Cc: J. Landman Gay

Re: not really OT: The Coming Software Apocalypse

2017-10-16 Thread Peter Alcibiades via use-livecode
Thanks for the link, which was very interesting. There is a quite deep insight there about what made Hypercard so inviting, and why LC is so accessible. Its not just drag and drop, its working directly with the thing one is making. Of course you still end up typing a lot of text, but these