Re: Animation Engine: speed tips

2020-07-01 Thread Mark Talluto via use-livecode
This is completely awesome!  Thank you Bernd.

-Mark Talluto
Canela Software

On Wed, Jul 1, 2020 at 8:27 AM Niggemann, Bernd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> While not exactly what David asked for but on the topic  of animating
> multiple objects with acceptable speed:
>
> http://forums.livecode.com/viewtopic.php?f=10=11726=sand#p56253
>
> The original poster asked for "sand" particles that should have some sort
> of collision detection and should react to a mouseDown to either attract
> the objects or pushes them away.
>
> It uses _one_ polygon graphic and sets individual points of that graphic
> (separated by an empty line). The points are just x,y coordinates and
> markers make the visual objects of the moving parts.
>
> It manages to animate quite some number of objects depending on the size
> of the markers and some other features that are optional (dropshadow,
> ounteglow, markers filled and antialiasing)
>
> The stack is completely useless but perfect for a rainy day at home.
> Depending on the complexity of the marker graphic it manages to animate
> smoothly (frame rate 18 and up)  from 150 to 1500 (small) objects (you can
> change appearance while the objects are moving.
>
> Kind regards
> Bernd
> ___
> 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


Apple Transporter for iOS uploads?

2020-07-01 Thread Graham Samuel via use-livecode
Anyone having any trouble with  this app? I downloaded it and signed in with my 
Apple ID, but then it got stuck displaying “signing in” with a rotatiing 
progress indicator. The ‘Force Quit’ system doesn’t report it as ’not 
responding’, but it doesn’t seem to be responding to me!

iMac running Catalina 10.15.5.

Graham
___
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: slow loading & navigation to card containing large field

2020-07-01 Thread Curry Kenworthy via use-livecode



I would use binfile to a variable, rather than a custom prop.

I've seen LC 9 fields become unusable after reaching a certain # of 
chars. I would trust LC 9 fields with 8 million chars - maybe not 80.


If users have a need to see what's going on, intentionally show them 
what they need to see. Not the raw data - when it's this big.


Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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: slow loading & navigation to card containing large field

2020-07-01 Thread David V Glasgow via use-livecode
Hmmm.  Food for thought both!  

Loading I just use 

put URL ("file:" & theFilePath) into tdata

I have always assumed that reading as binary is only for data that isn’t  text. 
 I’ll try that. If I want to display some or all of the file in a field, do I 
need to process the data read as a binary, or can I just put it into a field?

So far I have worked on the principle that users should be able to see the 
effects of their searches, etc, so have defaulted to field.  Maybe I could 
store part of the list in the field (and swap in/out out as users scroll 
through) but do the main storage and heavy lifting within a custom property?

Thanks very much for the suggestions.

Cheers,

David G

> On 1 Jul 2020, at 5:15 pm, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi David
> 
>> Am 01.07.2020 um 18:10 schrieb Richard Gaskin via use-livecode 
>> :
>> 
>> David V Glasgow wrote:
>> 
>>> Loading the plain text list of URLs from file is slowish, but more
>>> importantly, for some time gives no indication that the file is
>>> loading.
>> 
>> Are you reading the file as text or binary?
>> I would imagine reading as binary would be more efficient since it's a 
>> straight pull from disk, without the content alterations text-read does.
>> 
>> -- 
>> Richard Gaskin
> 
> and unless REALLY neccessary, store the data in a custom property instead of 
> a field.
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: slow loading & navigation to card containing large field

2020-07-01 Thread Klaus major-k via use-livecode
Hi David

> Am 01.07.2020 um 18:10 schrieb Richard Gaskin via use-livecode 
> :
> 
> David V Glasgow wrote:
> 
> > Loading the plain text list of URLs from file is slowish, but more
> > importantly, for some time gives no indication that the file is
> > loading.
> 
> Are you reading the file as text or binary?
> I would imagine reading as binary would be more efficient since it's a 
> straight pull from disk, without the content alterations text-read does.
> 
> -- 
> Richard Gaskin

and unless REALLY neccessary, store the data in a custom property instead of a 
field.


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: slow loading & navigation to card containing large field

2020-07-01 Thread Richard Gaskin via use-livecode

David V Glasgow wrote:

> Loading the plain text list of URLs from file is slowish, but more
> importantly, for some time gives no indication that the file is
> loading.

Are you reading the file as text or binary?

I would imagine reading as binary would be more efficient since it's a 
straight pull from disk, without the content alterations text-read does.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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


slow loading & navigation to card containing large field

2020-07-01 Thread David V Glasgow via use-livecode
Hello LCers

On Mac 10.13, LC 9.6

In my stack I have a field on one card consisting of imported text, which is 
typically several thousand of internet searches/file names/URLs.

I search for a number of  keywords, which are then aggregated, and by 
navigating to another card, display summary statistics  on the content 
analysis, in the form of a bar chart displaying the top 20 found terms.  So not 
a lot of data on the charting card.

I have a fairly extreme case of 781,000 lines (80,988,686 chars) in the content 
analysis field, consisting of a web history.

I am amazed at the efficiency of the searching process, which takes a while, 
but is as fast as I could hope.  It is slower than earlier versions, but the 
memory usage stays very steady, which wasn’t the case in 8 or early 9.  I’m 
happy to swap a bit of speed for more stability.  The content analysis works 
nicely, the transition to the chart card and chart displays quite quickly.

I have 2 problems:

1/ Loading the plain text list of URLs from file is slowish, but more 
importantly, for some time gives no indication that the file is loading.  After 
selecting the file, there is a long pause before the cursor becomes the OS 
beachball, another long pause and then eventually the card and populated field 
appears.  Is there any way of letting users know that this 82MB file *is* being 
loaded, they just need to be patient?  Or am I wholly in the hands of the OS?

2/  Navigating from the chart card back to the card containing the big list of 
URLs is very slow, typically taking about a minute from the mouseup on the 
navigate button (or command from message box).  A précis of the message watcher 
shows the delay occurs between the consecutive closeBackground and cREVTable 
messages below.

mouseup 3:55:45 PM (1)

closeCard 3:55:45 PM (0)

closeBackground 3:55:45 PM (0)

cREVTable 3:56:43 PM (58144)

opencard 3:56:45 PM (22)

(In the preopenstack of the big field card, I hide a group containing 9 fields 
each containing maybe 30 words - nothing that should take much time)

Am I just asking too much of LC, or are there any suggestions about making the 
transition between cards brisker? 


Best Wishes,
David Glasgow
Consultant Forensic & Clinical Psychologist

  

  
 
___
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: Animation Engine: speed tips

2020-07-01 Thread Niggemann, Bernd via use-livecode
While not exactly what David asked for but on the topic  of animating multiple 
objects with acceptable speed:

http://forums.livecode.com/viewtopic.php?f=10=11726=sand#p56253

The original poster asked for "sand" particles that should have some sort of 
collision detection and should react to a mouseDown to either attract the 
objects or pushes them away.

It uses _one_ polygon graphic and sets individual points of that graphic 
(separated by an empty line). The points are just x,y coordinates and markers 
make the visual objects of the moving parts.

It manages to animate quite some number of objects depending on the size of the 
markers and some other features that are optional (dropshadow, ounteglow, 
markers filled and antialiasing)

The stack is completely useless but perfect for a rainy day at home. 
Depending on the complexity of the marker graphic it manages to animate 
smoothly (frame rate 18 and up)  from 150 to 1500 (small) objects (you can 
change appearance while the objects are moving.

Kind regards
Bernd
___
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: iOS - open next field?

2020-07-01 Thread Mike Kerner via use-livecode
oh, wait, I thought you meant the return key, or in your photo, the "go",
key.
nothing to see here, move along, move along.

On Wed, Jul 1, 2020 at 10:40 AM Mike Kerner 
wrote:

> yep.
> use the on inputReturnKey event
> then mobileControlTarget() to get the current field
> You need to know what the next field is to get the focus, then you use
> use mobileControlDo (next object),"focus"
>
> I generally have a handler in the card to do this, and I also generally
> have a list of the fieldnames in a container because I need the list for
> database work, and for things like creating the native fields when the card
> opens and setting their properties.
>
> On Wed, Jul 1, 2020 at 1:31 AM Dan Friedman via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Is there a way you activate and utilize the "prev" and "next" button on
>> iOS keyboards?   You know, these buttons:
>>
>> https://i.stack.imgur.com/FzrPy.png
>>
>> If you have more than one text field on a card, we want to "tab" between
>> fields.
>>
>> -Dan
>>
>> ___
>> 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."
>


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


Re: iOS - open next field?

2020-07-01 Thread Mike Kerner via use-livecode
yep.
use the on inputReturnKey event
then mobileControlTarget() to get the current field
You need to know what the next field is to get the focus, then you use
use mobileControlDo (next object),"focus"

I generally have a handler in the card to do this, and I also generally
have a list of the fieldnames in a container because I need the list for
database work, and for things like creating the native fields when the card
opens and setting their properties.

On Wed, Jul 1, 2020 at 1:31 AM Dan Friedman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Is there a way you activate and utilize the "prev" and "next" button on
> iOS keyboards?   You know, these buttons:
>
> https://i.stack.imgur.com/FzrPy.png
>
> If you have more than one text field on a card, we want to "tab" between
> fields.
>
> -Dan
>
> ___
> 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