Re: read from file until a line begins with a certain word

2017-09-16 Thread Colin Holgate via use-livecode
One thought, what if you read overlapping chunks. Like, read from 0-1, then from 9900-2, etc. If the overlap is longer than your test string you would still be able to pick it up, in the cases where the string spanned the chunk boundary. First test could be to read in 1 chunks and

Re: read from file until a line begins with a certain word

2017-09-16 Thread dunbarx via use-livecode
I would just read the whole file and then let LC truncate the text following the keyword sentence in the usual ways. I bet even with a couple of gigabytes this would not take much time. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

[OT] Alan Kay is angry

2017-09-16 Thread Alejandro Tejada via use-livecode
Read the interview: https://www.fastcompany.com/40435064/what-alan-kay-thinks-about-the-iphone-and-technology-now I think that he could be... much more angry if he learns about all memes that compare Mobile Phones users with zombies... Al ___

read from file until a line begins with a certain word

2017-09-16 Thread Matthias Rebbe via use-livecode
Hi, until today i used always put URL to read a complete file into memory. But now i have to process really large text files with a size of 900 - 1500 MB. I know i can read a file until EOF or so. But how would i read a file until a line that starts with a certain keyword, e.g. mstart. I need

Re: Testing iOS apps on attached device

2017-09-16 Thread J. Landman Gay via use-livecode
On 9/16/17 1:40 PM, Ben Rubinstein via use-livecode wrote: Thanks for the reply, and I certainly have had that problem often enough - but not this time. I can build a standalone, and use Xcode to install it on the phone; and it works. So I don't have a provisioning profile issue in this case.

Re: Testing iOS apps on attached device

2017-09-16 Thread Ben Rubinstein via use-livecode
Hi Mike, Thanks for the reply, and I certainly have had that problem often enough - but not this time. I can build a standalone, and use Xcode to install it on the phone; and it works. So I don't have a provisioning profile issue in this case. There's some other reason why it isn't

Re: Testing iOS apps on attached device

2017-09-16 Thread Mike Kerner via use-livecode
you've got a provisioning profile issue, so the install is failing silently. It's documented in bug report xx. To figure out what the heck is going on, do the install using xcode and you'll get the error message. After you have the PP issue resolved, testing directly on the device will

Testing iOS apps on attached device

2017-09-16 Thread Ben Rubinstein via use-livecode
It's taken me ages to get my system back together to do iOS development properly (forced to update phone, so then couldn't develop to it without latest xcode, but that required sierra, needed to not update to Sierra for a while.. bah). So finally I've got my MacBook on Sierra, I've got Xcode