Search found 314 matches

by adventuresofgreg
Wed Oct 24, 2018 11:35 pm
Forum: Internet
Topic: dont understand Curl
Replies: 7
Views: 558

Re: dont understand Curl

oh my god Klaus! Thats it. I was so shocked to see my it that didn't just say error, that it actually scared me a bit! Thanks!

Next question: I need to run this from lc server on Linux. My standard shell command should work right?
by adventuresofgreg
Wed Oct 24, 2018 12:43 pm
Forum: Internet
Topic: dont understand Curl
Replies: 7
Views: 558

Re: dont understand Curl

field "stripeCurl" =

$ curl https://api.stripe.com/v1/charges \
-u sk_test_abc123: \
-d amount=999 \
-d currency=usd \
-d description="Example charge" \
-d source=tok_visa

My code:
get shell(field "stripeCurl")
put it

I get error:
/bin/sh: line 1: command not found
by adventuresofgreg
Tue Oct 23, 2018 10:39 pm
Forum: Internet
Topic: dont understand Curl
Replies: 7
Views: 558

Re: dont understand Curl

tried that post and it doesn't work. How would I send this as a shell command?
by adventuresofgreg
Tue Oct 23, 2018 10:34 pm
Forum: Internet
Topic: dont understand Curl
Replies: 7
Views: 558

Re: dont understand Curl

Thank you. I tried something like your POST command, but didn't have a "?" in there. I'll give that a shot. But reading around - doesn't a Curl command require some kind of header?
by adventuresofgreg
Mon Oct 22, 2018 10:32 pm
Forum: CGIs and the Server
Topic: running Livecode server on Linux NGNIX
Replies: 1
Views: 527

running Livecode server on Linux NGNIX

Trying to get LC server running on NGNIX and having problems executing the <?!c code in my html - any special server settings required?

thanks,
Greg
by adventuresofgreg
Mon Oct 22, 2018 8:51 pm
Forum: Internet
Topic: dont understand Curl
Replies: 7
Views: 558

dont understand Curl

Hey there. I'm trying to authenticate a Stripe transaction with LC script, and Yp totally don't understand Curl. According to the Stripe api guide, this is what I need to post to the stripe api URL: curl https://api.stripe.com/v1/charges \ -u sk_test_123456ABCDEFG: \ -d amount=999 \ -d currency=usd ...
by adventuresofgreg
Mon Sep 24, 2018 7:18 pm
Forum: Talking LiveCode
Topic: writing a file while another process is reading it
Replies: 10
Views: 269

Re: writing a file while another process is reading it

thanks Richard - no this one will run on a windows server. But great advice - thank you.
by adventuresofgreg
Mon Sep 24, 2018 6:06 pm
Forum: Talking LiveCode
Topic: writing a file while another process is reading it
Replies: 10
Views: 269

Re: writing a file while another process is reading it

the flag is the answer. I think the only reason a file name change might work 'better' is that less time is taken changing a file name than writing the entire file, therefore, there is a smaller chance that the reading app will read at exactly the time the file name is being changed.
by adventuresofgreg
Mon Sep 24, 2018 3:58 pm
Forum: Talking LiveCode
Topic: writing a file while another process is reading it
Replies: 10
Views: 269

Re: writing a file while another process is reading it

Seems like writing a .temp file first, then changing it's name to overwrite the old file works.
by adventuresofgreg
Mon Sep 24, 2018 11:40 am
Forum: Talking LiveCode
Topic: writing a file while another process is reading it
Replies: 10
Views: 269

writing a file while another process is reading it

Hi there: If I am running 2 separate LC apps, with App A over-writing a file at the exact same time as App B is reading from it, is it possible that App B could read a PARTIAL file due to it being written to disk at the same time as the read? And if so, is there a way to ensure that App B always rea...
by adventuresofgreg
Thu Mar 15, 2018 5:13 pm
Forum: Talking LiveCode
Topic: Linux SSL errors
Replies: 13
Views: 662

Re: Linux SSL errors

Hi: 9.0.0 stanalones (Linux, OSX or windows) don't work because the revdb.so or dbmysql.so is bad 8.1.0 standalones (Linux, OSX or windows) db's DO work and https also works I think there is an upgrade from 9.0.0 (DP6) that I should download to test, as I'm sure the SA externals issue has been resol...
by adventuresofgreg
Thu Mar 15, 2018 12:49 pm
Forum: Talking LiveCode
Topic: Linux SSL errors
Replies: 13
Views: 662

Re: Linux SSL errors

Thank you. I bet the early version is the reason I'm having trouble. I'll try 6 and see.

Reason I'm still on 5.5 is due to speed. It's way faster than anything subsequent - but 6 may still be fast enough.

Greg
by adventuresofgreg
Wed Mar 14, 2018 2:26 pm
Forum: Talking LiveCode
Topic: Linux SSL errors
Replies: 13
Views: 662

Linux SSL errors

Hi: I have a standalone that uses the SSL library (revsecurity.so file) I'm trying to put "https://something.." into a field. The native LC on my Mac works, the Mac standalone works, but I get this error when running the Linux standalone: a bunch of stuff, then "... unable to get local issuer certif...
by adventuresofgreg
Sun Feb 11, 2018 2:39 pm
Forum: Databases
Topic: mySQL on GCS "normal shutdown" causing LC to hang
Replies: 11
Views: 1205

Re: mySQL on GCS "normal shutdown" causing LC to hang

Hi, [...] i check for revopendatabases() on each command, and reconnect within my script if it is required [...] I started to follow the advice & use a fresh connection for every query (as seen in above function). Time measured for a simple connect/ disconnect is usually in the ~150 ms range here, ...
by adventuresofgreg
Sat Feb 10, 2018 12:07 am
Forum: Talking LiveCode
Topic: message path trouble
Replies: 10
Views: 697

Re: message path trouble

FiGURED IT OUT! put "connection,green" into thedets send AllsystemsGood && thedets to stack "robottrader" This will ensure that the handler "AllsystemsGood" references fields on the stack "robotTrader" Simply AllsystemsGood conection,red also works, since that handler is on the main stack, but.. it ...

Go to advanced search