Re: LC-only 'POST' file upload code?

2015-05-21 Thread J. Landman Gay
I use that to talk to servers but does that work with files? Don't you need credentials or something? On May 21, 2015 11:27:40 PM CDT, Phil Davis wrote: >Hmm. That's far too easy. ;-) > >Phil > > >On 5/21/15 7:30 PM, Mark Wieder wrote: >> I shell out to curl because I need to supply client cer

Re: LC-only 'POST' file upload code?

2015-05-21 Thread Phil Davis
Hmm. That's far too easy. ;-) Phil On 5/21/15 7:30 PM, Mark Wieder wrote: I shell out to curl because I need to supply client certs. Otherwise... post urlencode(tPayload) to url(tURL) should work because that's what I use when I don't need certs. -- Phil Davis _

Re: Livecode <=> SQL?

2015-05-21 Thread Pierre Sahores
> Le 22 mai 2015 à 03:47, Dr. Hawkins a écrit : > > On Sun, May 17, 2015 at 3:57 PM, Pierre Sahores > wrote: >> >> >>> Le 18 mai 2015 à 00:23, Dr. Hawkins a écrit : >>> >> >>> There are definitely a couple of *whopping* holes: >>> * cannot connect securely to Postgres >> >> Why don’t you

Re: LC-only 'POST' file upload code?

2015-05-21 Thread Mark Wieder
I shell out to curl because I need to supply client certs. Otherwise... post urlencode(tPayload) to url(tURL) should work because that's what I use when I don't need certs. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-liv

Re: Livecode <=> SQL?

2015-05-21 Thread Dr. Hawkins
On Sun, May 17, 2015 at 3:57 PM, Pierre Sahores wrote: > > > > Le 18 mai 2015 à 00:23, Dr. Hawkins a écrit : > > > > > There are definitely a couple of *whopping* holes: > > * cannot connect securely to Postgres > > Why don’t you access it in localhost mode only (via lc server + script/stack >

LC-only 'POST' file upload code?

2015-05-21 Thread Phil Davis
Does anyone have a LC code you're willing to share that uploads a file to a server via POST? I'm looking for pure LC code, not where LC is used to build an HTML form that uploads a file in revBrowser or other browser. Here's hoping! Otherwise I can use shell(curl) but would rather keep it in L

Re: gps tracker

2015-05-21 Thread Monte Goulding
> On 22 May 2015, at 8:36 am, Michael Gruenthal wrote: > > If I recall correctly the potential issue is with the wait command. If you > can avoid using wait (or perhaps just forms of wait that are blocking?), > removing exits on suspend shouldnąt cause problems. I’m suspicious that this hurdle

Re: Clock

2015-05-21 Thread Mark Schonewille
Hi, That's probably only part of the explanation. I guess Apple's clock app uses special battery-friendly API's that allow the app to go on forever so to speak. I could imagine that these API's even circumvent the need for the main processor. (All speculation: I didn't examine all features of

Re: Clock

2015-05-21 Thread Peter Bogdanoff
I can see why Apple does this. Someone makes an app with an interface that looks like one of Apple’s, but functions somewhat differently—space for user confusion. pb On May 21, 2015, at 10:13 AM, Roger Eller wrote: > Well, I think that's dumb. lol > > Any Android watch face apps are just a

Re: gps tracker

2015-05-21 Thread Michael Gruenthal
If I recall correctly the potential issue is with the wait command. If you can avoid using wait (or perhaps just forms of wait that are blocking?), removing exits on suspend shouldn¹t cause problems. On 5/21/15, 5:01 PM, "Monte Goulding" wrote: > >> On 22 May 2015, at 5:32 am, Richard Gaskin >>

Re: Anybody Hear From Jan Schenkel?

2015-05-21 Thread Colin Holgate
You could try his LinkedIn page: https://www.linkedin.com/profile/view?id=5610582 He hasn’t tweeted or posted anything for over a year. Hopefully he’s ok. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, un

Re: [OT] More on false timeouts and headers

2015-05-21 Thread J. Landman Gay
On 5/21/2015 4:11 PM, Dave Cragg wrote: You could modify libUrl. :-) Perhaps not an option if you have many users of the software. But it might be worth trying to confirm this is the problem: I'll keep your notes and if I get some energy I'll see. We've been fighting with this for 2 weeks and

Re: gps tracker

2015-05-21 Thread Monte Goulding
> On 22 May 2015, at 12:25 am, Richard Gaskin > wrote: > > If LiveCode doesn't work in the background, how will Todd be able to use any > function, whether built-in or added on, to retrieve the current location and > send it to a server? > > It sounds like what's needed is for LC to adopt cu

Re: gps tracker

2015-05-21 Thread Monte Goulding
> On 22 May 2015, at 5:32 am, Richard Gaskin wrote: > > That would seem useful for handling locations in LC in general. > > To paraphrase Steve Jobs, why doesn't it do that? Well it’s a different API for a start and then there’s the fact that the suspended state is not officially supported by

Re: [OT] More on false timeouts and headers

2015-05-21 Thread Mark Wieder
Dave Cragg writes: > Under rfc-talk, that sounds a little like "shouldn’t contain" rather than > "mustn’t contain". I can see blame going in both directions here. LOL. Agreed. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-li

Re: [OT] More on false timeouts and headers

2015-05-21 Thread Dave Cragg
> On 21 May 2015, at 20:07, J. Landman Gay wrote: >> >> I think that will pick up any Content-Transfer-Encoding header if it >> exists before a Transfer-Encoding header, and therefore miss the >> "chunked" value, and so not try to de-chunk the data. (I guess that >> might be considered a bug in

Re: [OT] More on false timeouts and headers

2015-05-21 Thread J. Landman Gay
On 5/21/2015 2:37 PM, Mark Wieder wrote: J. Landman Gay writes: So is this something you think I should report? Or is it just a side-effect of working with different servers? There is a workaround; specifying a Content-Length header appears to eliminate both the "Content-Transfer-Encoding" and

Anybody Hear From Jan Schenkel?

2015-05-21 Thread Mike Kerner
It's now been just under a month since I started trying to contact Jan, but I haven't heard anything, yet. Has anybody else heard anything? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a fe

Re: [OT] More on false timeouts and headers

2015-05-21 Thread Mark Wieder
J. Landman Gay writes: > So is this something you think I should report? Or is it just a > side-effect of working with different servers? There is a workaround; > specifying a Content-Length header appears to eliminate both the > "Content-Transfer-Encoding" and "Transfer-Encoding: chunked" hea

Re: gps tracker

2015-05-21 Thread Richard Gaskin
Todd Geist wrote: > I believe with mergeCL, the app gets notified when the location > changes. If it is suspended in the background it will awake, and > have a brief amount of time to act before it is suspended again. That would seem useful for handling locations in LC in general. To paraphrase

Re: [OT] More on false timeouts and headers

2015-05-21 Thread J. Landman Gay
On 5/21/2015 3:42 AM, Dave Cragg wrote: Is there really a "Content-Transfer-Encoding" line among the headers? Yup, there is, and it happens to occur before the Transfer-Encoding header. If so, that may be part of the problem. As far as I know, "Content-Transfer-Encoding" is not a valid http h

Re: Clock

2015-05-21 Thread Roger Eller
Well, I think that's dumb. lol Any Android watch face apps are just apps. Albeit the provided app has an API for adding more, and you can easily swipe through to pick one you like, or that goes well with your shirt, etc. Notifications are always above the running app, whether it's your own, or

Re: SQL IN() function

2015-05-21 Thread Bob Sneidar
Okay, once again it’s Regex to the rescue. There is no function in sqLite to do this sort of thing. Instead one can use a series of LIKE statements like so: SELECT * FROM formsgen.service where devicelist LIKE '6480,%' OR devicelist LIKE '%,6480' OR devicelist LIKE '%,6480,%'

Re: SQL IN() function

2015-05-21 Thread Bob Sneidar
Understood. But my list is a BLOB column, not a literal. And with a BLOB column (and possibly *ANY* column) the IN function only returns 1 if the first item matches. It will not find the 2+ item in a list. But I did some more digging and it turns out that FIND_IN_SET works. Now to see if this

RE: SQL IN() function

2015-05-21 Thread Ralph DiMola
The IN function is a substitute for multiple Ors SELECT * FROM customers WHERE name IN ('Ralph', 'Bob', 'Bill'); Is the same as SELECT * FROM customers WHERE name = 'Ralph' OR name = 'Bob' OR name = 'Bill'; Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net

Re: SQL IN() function

2015-05-21 Thread Bob Sneidar
that should read devicelist stupid spel corect. :-) Bob S > On May 21, 2015, at 09:14 , Bob Sneidar wrote: > > Hi all. > > I am having a problem with a query. I have the value “647,6480” in a column > called devicelist. I use the query: > > SELECT * FROM formsgen.service where 647 in(devic

SQL IN() function

2015-05-21 Thread Bob Sneidar
Hi all. I am having a problem with a query. I have the value “647,6480” in a column called devicelist. I use the query: SELECT * FROM formsgen.service where 647 in(device list); It returns one record as it should. However if I use the query: SELECT * FROM formsgen.service where 6480 in(device

Code signing Mac app store

2015-05-21 Thread Maarten Koopmans
Hi, I've been out of the Livecode loop for a while and am just wondering: what's the guide/tool people use these days when they publish an application for the Mac or Mac App store? Thanks! --Maarten ___ use-livecode mailing list use-livecode@lists.runr

Re: gps tracker

2015-05-21 Thread Todd Geist
I believe with mergeCL, the app gets notified when the location changes. If it is suspended in the background it will awake, and have a brief amount of time to act before it is suspended again. Todd On Thu, May 21, 2015 at 7:25 AM, Richard Gaskin wrote: > Monte Goulding wrote: > >> On 21 May 20

Re: gps tracker

2015-05-21 Thread Richard Gaskin
Monte Goulding wrote: >> On 21 May 2015, at 10:36 am, Richard Gaskin wrote: >> >> Last time I used it mobileCurrentLocation is working on Android. >> >> Does it not work in iOS? > > Does it work in the background? If LiveCode doesn't work in the background, how will Todd be able to use any funct

Re: Clock

2015-05-21 Thread Richard Gaskin
Roger Eller wrote: > Building such a tiny ui on a watch face has been both a fun and > challenging diversion from my normal work on the desktop. Minimal > is the key. I'll try your clock on my watch when I find some time. Enjoy it on your own or on an Android Wear watch, but it turns out that

Re: Clock

2015-05-21 Thread Roger Eller
Building such a tiny ui on a watch face has been both a fun and challenging diversion from my normal work on the desktop. Minimal is the key. I'll try your clock on my watch when I find some time. Haha... what a weird sentence that was. ~Roger On May 21, 2015 2:55 AM, "Mark Schonewille" < m.sch

Re: [OT] More on false timeouts and headers

2015-05-21 Thread Dave Cragg
> On 21 May 2015, at 04:17, J. Landman Gay wrote: > > Thanks for this, Dave. I don't see any chunk markers in the file with the > version of libURL I'm using, I see rows of plain text. But even though the > Content-Encoding header indicates it's a gzip file, it isn't coming in as > one. The d