Search found 348 matches
- Tue Mar 09, 2021 3:39 pm
- Forum: Talking LiveCode
- Topic: LC > 5.5.1 performance is really disappointing!
- Replies: 18
- Views: 7696
Re: LC > 5.5.1 performance is really disappointing!
put "file:" & the defaultfolder & "/" & symb into thefile put url theFile into thedata Not sure if it's still a good idea to copy the whole file into memory in the age of solid state dives? Maybe if it's on a network share. I'm pulling values out of each file and organizing them into an array by da...
- Tue Mar 09, 2021 3:08 pm
- Forum: Talking LiveCode
- Topic: LC > 5.5.1 performance is really disappointing!
- Replies: 18
- Views: 7696
Re: LC > 5.5.1 performance is really disappointing!
While you ponder that, there's also a third option: revising the script for optimization. Richard my man! Nice to hear from you. I reviewed an old post of mine from years (and years) ago where you submitted a function speed comparison between pre-7 and post-7, which was very enlightening. Perhaps y...
- Sat Mar 06, 2021 4:21 pm
- Forum: Talking LiveCode
- Topic: LC > 5.5.1 performance is really disappointing!
- Replies: 18
- Views: 7696
LC > 5.5.1 performance is really disappointing!
I use LC on my 2014 MacPro running Sierra to process MASSIVE amounts of data (machine learning for algorithmic trading systems) including importing large data files, and processing very large arrays. I have never EVER been able to even come close to matching the performance of LC version 5.5.1 with ...
- Thu May 28, 2020 9:26 pm
- Forum: Talking LiveCode
- Topic: driving me crazy!
- Replies: 3
- Views: 2876
Re: driving me crazy!
Perfect. Decorations was it. Thanks.
- Thu May 28, 2020 2:54 pm
- Forum: Talking LiveCode
- Topic: driving me crazy!
- Replies: 3
- Views: 2876
driving me crazy!
Hi: This is driving me nuts. For some reason, the title bar disappeared on my stack (the horizontal bar at the top of a stack window which includes the resize bottom right corner button). I can't find a function or handler that controls this. Any idea what it is?
Cheers,
Greg
Cheers,
Greg
- Wed Oct 24, 2018 11:35 pm
- Forum: Internet
- Topic: dont understand Curl
- Replies: 7
- Views: 7681
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?
Next question: I need to run this from lc server on Linux. My standard shell command should work right?
- Wed Oct 24, 2018 12:43 pm
- Forum: Internet
- Topic: dont understand Curl
- Replies: 7
- Views: 7681
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
$ 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
- Tue Oct 23, 2018 10:39 pm
- Forum: Internet
- Topic: dont understand Curl
- Replies: 7
- Views: 7681
Re: dont understand Curl
tried that post and it doesn't work. How would I send this as a shell command?
- Tue Oct 23, 2018 10:34 pm
- Forum: Internet
- Topic: dont understand Curl
- Replies: 7
- Views: 7681
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?
- Mon Oct 22, 2018 10:32 pm
- Forum: CGIs and the Server
- Topic: running Livecode server on Linux NGNIX
- Replies: 2
- Views: 8305
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
thanks,
Greg
- Mon Oct 22, 2018 8:51 pm
- Forum: Internet
- Topic: dont understand Curl
- Replies: 7
- Views: 7681
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 ...
- Mon Sep 24, 2018 7:18 pm
- Forum: Talking LiveCode
- Topic: writing a file while another process is reading it
- Replies: 10
- Views: 7119
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.
- Mon Sep 24, 2018 6:06 pm
- Forum: Talking LiveCode
- Topic: writing a file while another process is reading it
- Replies: 10
- Views: 7119
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.
- Mon Sep 24, 2018 3:58 pm
- Forum: Talking LiveCode
- Topic: writing a file while another process is reading it
- Replies: 10
- Views: 7119
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.
- Mon Sep 24, 2018 11:40 am
- Forum: Talking LiveCode
- Topic: writing a file while another process is reading it
- Replies: 10
- Views: 7119
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...