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 time how long that takes 
compared to reading in 100 at a time, or 10 at a time. There may be 
a sweet spot where reading in the text is fast enough to not bother with 
reading in smaller chunks.


> On Sep 16, 2017, at 9:11 PM, dunbarx via use-livecode 
>  wrote:
> 
> 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
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[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
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 to read until the line before that line which starts with 
mstart.
And then read from that “mstart” line until the next line before “mstart”.
Do i have to read line by line and check if the line starts with that keyword 
or is there also an other way? 

Maybe i am thinking to complicated.

Regards,
Matthias



Matthias Rebbe
+49 5741 31
‌wirmachen.software ‌

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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.


Check to be sure that the profile in standalone settings is the same one 
that XCode is using.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 installing when I use Test, although 
Xcode has no problem doing it.


Any other ideas?

Many thanks,

Ben

On 16/09/2017 15:40, Mike Kerner via use-livecode wrote:

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 work.

On Sat, Sep 16, 2017 at 10:13 AM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:


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 10.3, and LC
8.6.1, and I've gone through certificate hell, and it all works - I can
build an iOS standalone, and use Xcode to install it on my phone.

But I can't use the "Test" function to test directly on my phone. If Test
Target is set to Simulator, then Test works. But if I select my phone as
Test Target, then Test causes a build process, but nothing happens on the
phone.

Last time I had it all working ... it worked - there would be an update in
the message box that went from 0% to 100% installed.

A very long time ago I recall installing Fruitstrap - maybe that's been
neutered by updating to Sierra. What is now the approach to get "Test"
working to direct deploy to an attached iOS device?

Many thanks,

Ben


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 work.

On Sat, Sep 16, 2017 at 10:13 AM, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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 10.3, and LC
> 8.6.1, and I've gone through certificate hell, and it all works - I can
> build an iOS standalone, and use Xcode to install it on my phone.
>
> But I can't use the "Test" function to test directly on my phone. If Test
> Target is set to Simulator, then Test works. But if I select my phone as
> Test Target, then Test causes a build process, but nothing happens on the
> phone.
>
> Last time I had it all working ... it worked - there would be an update in
> the message box that went from 0% to 100% installed.
>
> A very long time ago I recall installing Fruitstrap - maybe that's been
> neutered by updating to Sierra. What is now the approach to get "Test"
> working to direct deploy to an attached iOS device?
>
> Many thanks,
>
> Ben
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
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 few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 10.3, and LC 8.6.1, 
and I've gone through certificate hell, and it all works - I can build an iOS 
standalone, and use Xcode to install it on my phone.


But I can't use the "Test" function to test directly on my phone. If Test 
Target is set to Simulator, then Test works. But if I select my phone as Test 
Target, then Test causes a build process, but nothing happens on the phone.


Last time I had it all working ... it worked - there would be an update in the 
message box that went from 0% to 100% installed.


A very long time ago I recall installing Fruitstrap - maybe that's been 
neutered by updating to Sierra. What is now the approach to get "Test" working 
to direct deploy to an attached iOS device?


Many thanks,

Ben

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode