RE: Speed test in LC application

2017-04-26 Thread Ralph DiMola via use-livecode
I see some unexplainable delays from an app to a LC web service on on-rev
that I have not started to debug yet. I almost looks like a DNS resolution
delay. I am going to WireShark the lan and see what's going on. I will let
you know what I find.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Peter Bogdanoff via use-livecode
Sent: Wednesday, April 26, 2017 6:33 PM
To: Mike Kerner via use-livecode
Cc: Peter Bogdanoff
Subject: Speed test in LC application

Hi,

I'm sometimes having trouble with my application downloading audio and image
files from a remote server when they are requested. I'm thinking of adding
some diagnostic tools to the application to see what is going on and I would
like to know if anyone has experience with this and can give me advice.

My application, "Music in the Air," a music exploration/history program for
music students is heavily dependent on audio and image files being
downloaded from a remote server (currently Amazon AWS) while the user
peruses the program. The user chooses a musical work to view and play and
immediately the program downloads 2 to 100+ image files (gifs averaging 50
KB each) of the musical notation. When the user start the audio playing, the
program loads the player with a remote audio file (10-50 MB). This library
of audio and images is 2 GB+, so the need to store and serve it as needed.

However, users are reporting that possibly 10-15% of the time the music
stalls while playing at the beginning, pointing to some bottleneck in their
Internet connection or local network. These users are usually on a fast,
high-capacity university network, getting files from a robust server, so
they shouldn't normally see this happen, and I would like to track down what
is going on. Also when this program is published, it will be deployed to
areas of the world where an Internet connection is not so robust. So I'm
thinking more and more that it would be vitally important to include tests
within the program to monitor and report, if necessary, on the user's
ongoing connection and bandwidth while the program is being used and send me
diagnostics when there are problems.

Does anyone have any experience with this kind of thing that I could draw
upon or employ?

Peter Bogdanoff 






___
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


Color Conversion - RGB to HSV and back... (almost)

2017-04-26 Thread Alejandro Tejada via use-livecode
Hi Mike,

Many thanks for posting a link to your
compilation stack: Master Library.

How many new LiveCode users are aware of this
wonderful resource? Thanks again for posting this.

Sorry for replying so late, but recently I am not feeling well.
Food intoxication is my educated guess... :(
Because of this, I have been posting only to the forums,
where I could edit or delete my own messages that
do not say what I meant. :)

Your HSV and RGB conversion functions works great
with only a few changes:

In Function HSVtoRGB this line:

put var_2  var_R
should be
put var_2 into var_R

and

put abs(trunc(var_R * 255)) into R  //RGB results from 0 to 255
put abs(trunc(var_G * 255)) into G
put abs(trunc(var_B * 255)) into B

works better if we replace trunc() for round().

After this small change, HSV is converted
back to RGB with 100% precision. :D

By the way, I posted a stack in the forums
that converts RGB colors of an image to
HSV colors. After this conversion, JPEG
compression artifacts become much more
evident and some strange patches of color
appears in the most unexpected places. :o

You could download the stack from this forum thread:
http://forums.livecode.com/viewtopic.php?f=10=29172

Now, I am looking for some script that allows
users to replace all 6 HSV color and their 7 gradients
(red to orange, orange to yellow, yellow to green
green to cyan, cyan to blue, blue to magenta,
magenta to red ) with colors of their own selection.

Have a nice weekend.
Keep up your Great Work!

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


Map Widget"

2017-04-26 Thread William Prothero via use-livecode
I found this link on the LC site. 
https://livecode.com/map-widget-coming-to-livecode/ 


Is there a map widget? Anybody working with google maps, not in a browser? If 
so, could you point me to a URL for a starter
Bill

William A. Prothero
http://earthlearningsolution.org/

___
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


mouseMove & backgoundBehavior

2017-04-26 Thread Jim Lambert via use-livecode
Make a group that is smaller than your card.
Place this in the group’s script:
on mousemove newMouseH, newMouseV
put newMouseH, newMouseV
end mousemove

When the cursor moves around within the group the current mouseLoc is put into 
the message box. When the cursor moves outside of the group the mouseloc is no 
longer placed into the message box.

Next set the backgroundBehaviour of the group to TRUE.

Now wherever the cursor is within the CARD the mouseLoc is placed in the 
message box regardless of whether the cursor is within or without the rect of 
the group.

The dictionary states, "The mouseMove message is sent to the control the mouse 
pointer is over, or to the card if no control is under the mouse pointer.”

It is true that a background group is not 'officially' on a card (rather it’s 
on the background in HyperCard parlance.) But why would the mousemove message 
get passed to the card when the mouse is outside of the background group 
containing that handler?

Is this a bug or expected behavior?

Thanks,
Jim Lambert
___
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: on tabKey - what field contains the blinking curser?

2017-04-26 Thread Roger Eller via use-livecode
When I tab to the next field, I want to select after the field content, or
in other words place the blinking bar at the end of whatever is already
there.  By default, it is placing it in front of the field content.

On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" <
use-livecode@lists.runrev.com> wrote:

> On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote:
>
>> How do I discover the name of the field which has received focus (blinking
>> edit bar cursor) when the tabKey is pressed?
>>
>
> One way:
>
> on openfield
>   put the name of the target
> end openfield
>
> I'm not sure if you want to trap a message though. The selectedField will
> return identification if you're querying from inside another handler.
>
> --
> 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
>
___
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


Speed test in LC application

2017-04-26 Thread Peter Bogdanoff via use-livecode
Hi,

I’m sometimes having trouble with my application downloading audio and image 
files from a remote server when they are requested. I’m thinking of adding some 
diagnostic tools to the application to see what is going on and I would like to 
know if anyone has experience with this and can give me advice.

My application, “Music in the Air,” a music exploration/history program for 
music students is heavily dependent on audio and image files being downloaded 
from a remote server (currently Amazon AWS) while the user peruses the program. 
The user chooses a musical work to view and play and immediately the program 
downloads 2 to 100+ image files (gifs averaging 50 KB each) of the musical 
notation. When the user start the audio playing, the program loads the player 
with a remote audio file (10-50 MB). This library of audio and images is 2 GB+, 
so the need to store and serve it as needed.

However, users are reporting that possibly 10-15% of the time the music stalls 
while playing at the beginning, pointing to some bottleneck in their Internet 
connection or local network. These users are usually on a fast, high-capacity 
university network, getting files from a robust server, so they shouldn’t 
normally see this happen, and I would like to track down what is going on. Also 
when this program is published, it will be deployed to areas of the world where 
an Internet connection is not so robust. So I’m thinking more and more that it 
would be vitally important to include tests within the program to monitor and 
report, if necessary, on the user’s ongoing connection and bandwidth while the 
program is being used and send me diagnostics when there are problems.

Does anyone have any experience with this kind of thing that I could draw upon 
or employ?

Peter Bogdanoff 






___
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: on tabKey - what field contains the blinking curser?

2017-04-26 Thread J. Landman Gay via use-livecode

On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote:

How do I discover the name of the field which has received focus (blinking
edit bar cursor) when the tabKey is pressed?


One way:

on openfield
  put the name of the target
end openfield

I'm not sure if you want to trap a message though. The selectedField 
will return identification if you're querying from inside another handler.


--
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: on tabKey - what field contains the blinking curser?

2017-04-26 Thread Roger Eller via use-livecode
Thank you, Tom!


On Wed, Apr 26, 2017 at 5:18 PM, tbodine via use-livecode <
use-livecode@lists.runrev.com> wrote:

> One way...
>
> if the focusedObject begins with "field" then
> put the focusedObject into tActiveField
> end if
>
> Tom B.
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/on-tabKey-what-field-contains-the-blinking-curser-
> tp4714288p4714289.html
> Sent from the Revolution - User mailing list archive at Nabble.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: on tabKey - what field contains the blinking curser?

2017-04-26 Thread tbodine via use-livecode
One way...

if the focusedObject begins with "field" then
put the focusedObject into tActiveField
end if

Tom B.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/on-tabKey-what-field-contains-the-blinking-curser-tp4714288p4714289.html
Sent from the Revolution - User mailing list archive at Nabble.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


on tabKey - what field contains the blinking curser?

2017-04-26 Thread Roger Eller via use-livecode
How do I discover the name of the field which has received focus (blinking
edit bar cursor) when the tabKey is pressed?

~Roger
___
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: Swiping between cards - metaphor end-of-the-road?

2017-04-26 Thread Paul Dupuis via use-livecode
On 4/26/2017 3:02 PM, Richard Gaskin via use-livecode wrote:
> Either way, the gestures themselves are only part of the challenge. 
> In fact, for card swiping we need only one, a swipe. The bigger part
> is handling the dual-card render during the gesture. 


This would work (in theory) for the visualization except that didn't
visual effect end in LC 8 with deprecating quicktime?

  visual effect wipe left slowly
  go next cd


___
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: Swiping between cards - metaphor end-of-the-road?

2017-04-26 Thread Sannyasin Brahmanathaswami via use-livecode
This is an important subject, I've been meaning to write this for a couple of 
weeks, but Richard got here first.

our current app.

(if anyone is interested I can send you the git repo link off line…it is 
public;  I just don't want to post It public)

use click and swipe "everywhere"

the model is simple: group of rows (smaller groups) whole "portal" group is 
scrollable

each row is a "hyper link" to 
a) a dynamic rebuild of the card with differernt rows
b) open another *module.livecode binary stack
c) open a stack that has a browser widget on it the URL to view pass to it 
dynamically.

Seeims simple enough, works great on desk top… so much promise for a highly 
scalable modular app. 

 but are are getting major failures on mobile and I have been wrestling for 
weeks with the the simple problem of just opening and closing stacks without 
crashing or render issuea (mostly on Android) and performance (super slow on 
some android devices) Once any given stack is actually opened and rendering 
correctly, it works great.  

Anyway, the need to respond to a touch/aka/mouseup  OR swipe the group up and 
down.

That's the tricky bit

Currently we are (pseudo code)

 using locals to get the tStartLoc on mousedown and using

if the  abs(the endloc) > 10  # assume swipe
else
assume tap: fire the hyper link

I'm having issue with this. can't quite figure out why, but I have to tap twice 
to fire the touch event… could be the code needs top be optimized there.  and 
standard mouse/widget/icon/image with just a mouseup alone, fires instantly.

This is not exactly focusing on the card metaphor… but the issues are the same. 
(I think)  Because you might want to trap the touch on a card and not actually 
swipe left or right, group up/down/sideways


Suffice it so say we do need improvements here.  I have a lot of design 
requirements that would use this algorithm

all modern apps do this… verycommon now to load (sometimes over load IMHO) a 
single interface with scrolling groups going sideways… all of which are 
basically create a giant TOC/Index to dive into some other screen/list/listen 
to music (Spotify is a very good model)


" While apps are generally built in
a hierarchical fashion, there are instances where
horizontal navigation can flatten vertical hierarchies
and make access to related data items faster and more
enjoyable."


Anyone else doing the 

touch or swipe  thing?  on a scrolling group/card can you share your code 
methods for this?  I would like to test and improve what we have if possible.



BR



 

On 4/26/17, 8:50 AM, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

Mike Kerner wrote:

> So you'd like a swipe event instead of using nav buttons.

Button where appropriate, swiping where appropriate.


iOS:
Use touch gestures to create fluidity. Make it easy to move
through your interface with minimum friction. For example,
you could let people swipe from the side of the screen to
return to the previous screen.




Android:
Efficient navigation is one of the cornerstones of a
well-designed app. While apps are generally built in
a hierarchical fashion, there are instances where
horizontal navigation can flatten vertical hierarchies
and make access to related data items faster and more
enjoyable. Swipe views allow the user to efficiently
move from item to item using a simple gesture and
thereby make browsing and consuming data a more
fluent experience.


___
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: Will LiveCode run an x86 android device?

2017-04-26 Thread Ralph DiMola via use-livecode
I run an x86 tablet for testing and LC apps work but it's slow like 1/3
speed.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Jonathan Lynch via use-livecode
Sent: Wednesday, April 26, 2017 2:45 PM
To: use-livecode@lists.runrev.com
Cc: jonathandly...@gmail.com
Subject: Will LiveCode run an x86 android device?

I see that it won't run on an x86 emulator - will it work on on actual x86
device?

Sent from my iPhone
___
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: Please block sims emails

2017-04-26 Thread Bob Sneidar via use-livecode
I clicked the link but I feel fairly confident as I am running Apple Mail and 
the email has to go through a fairly rigorous spam/malware filter on the inter 
webs before it gets here, then get past the firewall, which ALSO had malware 
detection built in. It wasn't very interesting though. Just a weight loss ad 
using Helen Degenerous. 

Bob S


> On Apr 25, 2017, at 20:36 , Jerry Jensen via use-livecode 
>  wrote:
> 
> Somebody is using sims email to post phishing/spam/malware - I don’t know 
> which because I won’t click it.
> 
> Please block email from him. 
> 
> Listmom, hello???
> 
> 
> ___
> 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: Will LiveCode run an x86 android device?

2017-04-26 Thread Jonathan Lynch via use-livecode
Does it run arm-emulation automatically or do we need to warn it?

The parts I use that are processor-intensive are running in the browser widget, 
which I assume runs on both architectures.

Sent from my iPhone

> On Apr 26, 2017, at 3:37 PM, jonathandly...@gmail.com wrote:
> 
> Lol - thank you - that is what I meant.
> 
> Sent from my iPhone
> 
>> On Apr 26, 2017, at 3:12 PM, Richmond Mathewson via use-livecode 
>>  wrote:
>> 
>> I don't think LiveCode (the development environment) will work on
>> Android of any sort: but it should develop standalones that work on Android.
>> 
>> Richmond.
>> 
>>> On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote:
>>> I see that it won't run on an x86 emulator - will it work on on actual x86 
>>> device?
>>> 
>>> Sent from my iPhone
>>> ___
>>> 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

___
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: Will LiveCode run an x86 android device?

2017-04-26 Thread Jonathan Lynch via use-livecode
Lol - thank you - that is what I meant.

Sent from my iPhone

> On Apr 26, 2017, at 3:12 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> I don't think LiveCode (the development environment) will work on
> Android of any sort: but it should develop standalones that work on Android.
> 
> Richmond.
> 
>> On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote:
>> I see that it won't run on an x86 emulator - will it work on on actual x86 
>> device?
>> 
>> Sent from my iPhone
>> ___
>> 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

___
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: Will LiveCode run an x86 android device?

2017-04-26 Thread Colin Holgate via use-livecode
x86 Android devices can run ARM code in emulation. The performance would be 
better if you could publish to x86, but the app should work.


> On Apr 26, 2017, at 12:22 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> I don't think you can build for x86 android but i'm not positive.
> 
> On Wed, Apr 26, 2017 at 1:12 PM, Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I don't think LiveCode (the development environment) will work on
>> Android of any sort: but it should develop standalones that work on
>> Android.
>> 
>> Richmond.
>> 
>> On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote:
>> 
>>> I see that it won't run on an x86 emulator - will it work on on actual
>>> x86 device?


___
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: Will LiveCode run an x86 android device?

2017-04-26 Thread Mike Bonner via use-livecode
I don't think you can build for x86 android but i'm not positive.

On Wed, Apr 26, 2017 at 1:12 PM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I don't think LiveCode (the development environment) will work on
> Android of any sort: but it should develop standalones that work on
> Android.
>
> Richmond.
>
> On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote:
>
>> I see that it won't run on an x86 emulator - will it work on on actual
>> x86 device?
>>
>> Sent from my iPhone
>> ___
>> 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
>
___
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: Will LiveCode run an x86 android device?

2017-04-26 Thread Richmond Mathewson via use-livecode

I don't think LiveCode (the development environment) will work on
Android of any sort: but it should develop standalones that work on Android.

Richmond.

On 4/26/17 9:45 pm, Jonathan Lynch via use-livecode wrote:

I see that it won't run on an x86 emulator - will it work on on actual x86 
device?

Sent from my iPhone
___
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: Please block sims emails

2017-04-26 Thread Richmond Mathewson via use-livecode

Personally I prefer to take things lying down.

Richmond.

On 4/26/17 4:22 pm, Ralph DiMola via use-livecode wrote:

Jacqueline Landman Gay wrote:
He frequently gets infected with malware. But I rather liked this set.
"Dear!" I wanted to respond, "Darling!!"

Now I'm laughing... And just when I thought this was another day in cyber land.
Do you do standup?
  
Ralph DiMola

IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
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: Swiping between cards - metaphor end-of-the-road?

2017-04-26 Thread Richard Gaskin via use-livecode

Mike Kerner wrote:
> On Wed, Apr 26, 2017 at 2:50 PM, Richard Gaskin wrote:
>
>> Mike Kerner wrote:
>> > So you'd like a swipe event instead of using nav buttons.
>>
>> Button where appropriate, swiping where appropriate.
...
> so bug 9320?

I suppose it's related, but indirectly.  That request is for access to 
iOS-specific gesture APIs.  Those should be accessible through FFI, no?


Either way, the gestures themselves are only part of the challenge.  In 
fact, for card swiping we need only one, a swipe. The bigger part is 
handling the dual-card render during the gesture.


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


Re: Swiping between cards - metaphor end-of-the-road?

2017-04-26 Thread Mike Kerner via use-livecode
so bug 9320?

On Wed, Apr 26, 2017 at 2:50 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Mike Kerner wrote:
>
> > So you'd like a swipe event instead of using nav buttons.
>
> Button where appropriate, swiping where appropriate.
>
>
> iOS:
>Use touch gestures to create fluidity. Make it easy to move
>through your interface with minimum friction. For example,
>you could let people swipe from the side of the screen to
>return to the previous screen.
>  interaction/navigation/>
>
>
> Android:
>Efficient navigation is one of the cornerstones of a
>well-designed app. While apps are generally built in
>a hierarchical fashion, there are instances where
>horizontal navigation can flatten vertical hierarchies
>and make access to related data items faster and more
>enjoyable. Swipe views allow the user to efficiently
>move from item to item using a simple gesture and
>thereby make browsing and consuming data a more
>fluent experience.
> 
>
>
>
> --
>  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
>



-- 
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: Swiping between cards - metaphor end-of-the-road?

2017-04-26 Thread Richard Gaskin via use-livecode

Mike Kerner wrote:

> So you'd like a swipe event instead of using nav buttons.

Button where appropriate, swiping where appropriate.


iOS:
   Use touch gestures to create fluidity. Make it easy to move
   through your interface with minimum friction. For example,
   you could let people swipe from the side of the screen to
   return to the previous screen.



Android:
   Efficient navigation is one of the cornerstones of a
   well-designed app. While apps are generally built in
   a hierarchical fashion, there are instances where
   horizontal navigation can flatten vertical hierarchies
   and make access to related data items faster and more
   enjoyable. Swipe views allow the user to efficiently
   move from item to item using a simple gesture and
   thereby make browsing and consuming data a more
   fluent experience.



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


Will LiveCode run an x86 android device?

2017-04-26 Thread Jonathan Lynch via use-livecode
I see that it won't run on an x86 emulator - will it work on on actual x86 
device?

Sent from my iPhone
___
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: Swiping between cards - metaphor end-of-the-road?

2017-04-26 Thread Mike Kerner via use-livecode
So you'd like a swipe event instead of using nav buttons.
___
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


Swiping between cards - metaphor end-of-the-road?

2017-04-26 Thread Richard Gaskin via use-livecode

I stumbled across this thread and it got me thinking:
http://forums.livecode.com/viewtopic.php?f=7=29184

LC has cards, which are great for many things but somewhat limited.

For example, as the OP asks about there: how does one swipe between them?

That seems a perfectly reasonable expectation, given what cards are and 
the central role they play in LC's object model and language.


And yet we don't really have any way of doing that.

Doing it right on mobile would mean some drag-triggered transition which 
responds to the drag movement itself, and could be canceled if the user 
releases their finger before a certain mid-screen threshold is reached.


Of course we can do that with groups, but consider what that means:

We'd have to construct all of our layouts on a single card, and have 
some means of moving the groups on and off screen as needed, both during 
development and at runtime.


All doable, and not too much of a brain-bender.

But it's work.  And non-obvious to newcomers.  And even for experienced 
devs it's tedious.


And at that point, the beautiful simplicity of the card metaphor breaks 
down.  Indeed, it's no longer even relevant because we're not using 
cards at all, but groups on a single card.


At that point, some of the advantage of choosing LiveCode is lost, 
because one of the most central elements of its object model is no 
longer a best fit for today's designs.


Modern UIs (most mobile and increasingly on desktop as well) benefit 
from providing a sense of unifying flow with, among other things, 
interactive drag actions as transitions between screen layouts.


I was considering putting in a feature request for a new drag 
transition, but before I do I think we need some design work to figure 
out exactly what it should do and how we work with it.


It's not even a transition per se, since those are discrete visual 
operations performed after a user action has been completed (e.g., a 
mouses click or a menu selection).


This seems perhaps a good candidate for a property, maybe something like 
"the dragTransitions" of a stack.  When true, any drag actions not 
handled by any script would be handled by the engine by dragging a 
transition from card to card according to the direction of the drag.


That may be too simplistic, though. Do we really want free travel 
between all cards in a stack?  If not, how do we specify what happens in 
response to a drag when we want a card-to-card transition?


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


Re: Make numberFormat even better AND Cognitive Load

2017-04-26 Thread Mike Kerner via use-livecode
I think 3 is something we should scratch off the list, since we have more
important fish for you to fry.

On Wed, Apr 26, 2017 at 11:42 AM, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2017-04-26 16:00, prothero--- via use-livecode wrote:
>
>> Ok, I'll shut up about this for now. Sorry to unfocus the thread.
>>
>
> To be fair, I managed to conflate three issues:
>
>   1) Improving numberFormat
>
>   2) How we could get arbitrary precision integers whilst retaining
> doubles for reals
>
>   3) How to make numberFormat and array keys play nice together
>
> They are all distinct issues really, although the numberFormat is involved
> in all three (at least in some way) :)
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
>
> ___
> 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


Re: Make numberFormat even better

2017-04-26 Thread Mike Kerner via use-livecode
Whenever we decide we're done with this, someone needs to send me the code
and I'll throw it up on github, since I'd like to have a central repo for
helpful code, especially since with git and levure we have a pretty easy
way of adding those modules to our projects.

On Wed, Apr 26, 2017 at 11:14 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Roland Huettmann wrote:
>
> > It is a very nice approach that Curry already realized: and it is
> > available:
> > http://curryk.com/ck-num-format.pngn better
>
> That does look very nice indeed.  If that formatting is factored in a way
> that would lend itself to a generalized behavior script for fields, and if
> Curry or Hugh were inclined to contribute some existing code it would help
> the project get a running start.
>
>
> > But what I do not yet understand is how to make a joint effort with
> > hundreds of developers ))) available to ALL of us in practical terms
> > seamlessly.
>
> In more popular languages like Python or R, or pretty much any open source
> tool (among programming languages that would be nearly all of them), what
> we commonly see is one person with an itch to scratch writes a something to
> fit their needs, posts it to a code-sharing repository like Github, and
> others come along an augment it.  Over time it grows into an ever more
> mature, robust, general-purpose solution, but even out of the starting gate
> it's useful, and only gets better over time.
>
> A small project of this scope wouldn't need hundreds of developers. I
> can't imagine more than half a dozen contributing to it.  Most of the
> coding could be done by one person in less than a day.
>
> Where more eyeballs may be most useful would be in the design.  The
> property names need to make sense, and ideally there would be ways to use
> this for list columns in addition to individual fields, so we'd need to
> come up with a sensible way to handle that.
>
> We'd probably want to ask ourselves if this should be a function or a
> property?
>
> As a property it feels most natural, applying formatting specs to a given
> object.  But there are tradeoffs there, including being able to have only
> one behavior script applied to an object, and the issue with getProp and
> setProp being unreliable in any environment in which the lockMessages might
> be set to true.
>
> As a function it would be far simpler to design, but would require the
> user to code for it, rather than having it be a property you set once and
> never need to think about it again.
>
> There may be other options too.
>
> And the choice of whether such a library be written in LC Script or LC
> Builder.  The latter offers direct support for documentation and Inspector
> options (though it would certainly be useful to see those options available
> for LC Script as well, though that's another discussion).
>
> We could brainstorm those design aspects here and now if we want.
>
>
> > For any newbie and for those using formatting all the time, do we
> > have to load a separate library or would it be supported out of the
> > IDE? For example, could the numberFormat or format() functions be
> > overwritten so that simply using LiveCode Script it would work the
> > way we defined and this out of the engine?
>
> By design LC does not allow overriding built-in functions the way
> HyperCard used to.  When I asked Dr. Raney about this decision, he asked me
> to observe the execution speed difference between the two, and noted that
> his token table was kept very trim with this decision.  He also invited me
> to come up with a case in which it was truly necessary to override built-in
> functions as opposed to using a new name for the new function.  In all
> these years I couldn't come up with one.
>
> So in short, I think a new name for new functionality may be best.
>
>
> > Or is it a new function? And could it be shipped with the product if
> > approved? Again, we are thinking of Excel style formatting that any
> > user, even non-programmers, often enough know about.
>
> To be included in the LC install it needs to be good, and if implemented
> as a function it may perhaps eventually be included with the other handlers
> currently in the revCommon lib.
>
> But that would require that it be field-tested, so early adopters would
> first use it as a library or behavior they download and install.
>
> It may be that the engine team may later borrow some of the design from
> the scripted version for inclusion in the engine.  But until Mark
> Waddingham posts "Yes, we have time and will do that this week" we'll need
> to consider options that aren't dependent on the engine team.  And as Curry
> and Hugh have shown, these things can be done by a single person in script,
> valuable even as add-ons.
>
>
> [I was tempted to write a rant about package managers here, about how
> every popular language has one and we don't, and the relationship between
> platform adoption and the ease with which one can find and 

Re: Application not working with MacOSX 10.6 (maybe due to tsNet)

2017-04-26 Thread Hakima Manseri via use-livecode

Will do !

Thanks.

Le 26/04/2017 à 18:38, panagiotis merakos via use-livecode a écrit :

If you have not done it already, I suggest you add your email in the cc
list of this bug report, so as you get notified when the bug is fixed.

On Wed, Apr 26, 2017 at 5:37 PM, panagiotis merakos 
wrote:


Hi Hakima,

This bug will be fixed in a future release.

Best,
Panos
--

On Wed, Apr 26, 2017 at 5:28 PM, Hakima Manseri via use-livecode <
use-livecode@lists.runrev.com> wrote:


With 8.1, it doesn't work.
Is this bug corrected or do we give up on MacOSX 10.6 ?

Hakima

Le 26/04/2017 à 14:53, Peter TB Brett via use-livecode a écrit :



On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote:


Hi again,

the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0
doesn't seem include SFTP support.
Is that the case or have we messed up somewhere ?


tsNet is only included in LiveCode 8.1.0 or later.

Peter



--
Hakima Manseri
Ingénieure développement et bases de données

Tél : 04 67 14 58 42
Site : http://asm.cnrs.fr/
Dev@LR : http://devatlr.univ-montp2.fr/


___
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



--
Hakima Manseri
Ingénieure développement et bases de données

Tél : 04 67 14 58 42
Site : http://asm.cnrs.fr/
Dev@LR : http://devatlr.univ-montp2.fr/


___
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: Font embedding for iOS in LC9

2017-04-26 Thread Mike Kerner via use-livecode
we really, really, really need a central repo

On Wed, Apr 26, 2017 at 12:23 PM, Andrew Bell via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Try with 8 to make sure fonts work.  There is a font bug in 9 on devices
>> with retina screens.
>>
>
> I should have searched the bug list first and I would have seen #19358
> which describes this issue. I just did a build using 8.1.4rc1 with the same
> exact code base and the fonts work fine.
>
> Haven't had a chance yet to try the workaround that Keith Martin had
> mentioned @ http://thehelpful.com/iosfonts/
>
> --Andrew Bell
>
>
>
> ___
> 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


Re: Application not working with MacOSX 10.6 (maybe due to tsNet)

2017-04-26 Thread panagiotis merakos via use-livecode
If you have not done it already, I suggest you add your email in the cc
list of this bug report, so as you get notified when the bug is fixed.

On Wed, Apr 26, 2017 at 5:37 PM, panagiotis merakos 
wrote:

> Hi Hakima,
>
> This bug will be fixed in a future release.
>
> Best,
> Panos
> --
>
> On Wed, Apr 26, 2017 at 5:28 PM, Hakima Manseri via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> With 8.1, it doesn't work.
>> Is this bug corrected or do we give up on MacOSX 10.6 ?
>>
>> Hakima
>>
>> Le 26/04/2017 à 14:53, Peter TB Brett via use-livecode a écrit :
>>
>>>
>>>
>>> On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote:
>>>
 Hi again,

 the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0
 doesn't seem include SFTP support.
 Is that the case or have we messed up somewhere ?

>>>
>>> tsNet is only included in LiveCode 8.1.0 or later.
>>>
>>>Peter
>>>
>>>
>>
>> --
>> Hakima Manseri
>> Ingénieure développement et bases de données
>>
>> Tél : 04 67 14 58 42
>> Site : http://asm.cnrs.fr/
>> Dev@LR : http://devatlr.univ-montp2.fr/
>>
>>
>> ___
>> 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: Application not working with MacOSX 10.6 (maybe due to tsNet)

2017-04-26 Thread panagiotis merakos via use-livecode
Hi Hakima,

This bug will be fixed in a future release.

Best,
Panos
--

On Wed, Apr 26, 2017 at 5:28 PM, Hakima Manseri via use-livecode <
use-livecode@lists.runrev.com> wrote:

> With 8.1, it doesn't work.
> Is this bug corrected or do we give up on MacOSX 10.6 ?
>
> Hakima
>
> Le 26/04/2017 à 14:53, Peter TB Brett via use-livecode a écrit :
>
>>
>>
>> On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote:
>>
>>> Hi again,
>>>
>>> the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0
>>> doesn't seem include SFTP support.
>>> Is that the case or have we messed up somewhere ?
>>>
>>
>> tsNet is only included in LiveCode 8.1.0 or later.
>>
>>Peter
>>
>>
>
> --
> Hakima Manseri
> Ingénieure développement et bases de données
>
> Tél : 04 67 14 58 42
> Site : http://asm.cnrs.fr/
> Dev@LR : http://devatlr.univ-montp2.fr/
>
>
> ___
> 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: Application not working with MacOSX 10.6 (maybe due to tsNet)

2017-04-26 Thread Hakima Manseri via use-livecode

With 8.1, it doesn't work.
Is this bug corrected or do we give up on MacOSX 10.6 ?

Hakima

Le 26/04/2017 à 14:53, Peter TB Brett via use-livecode a écrit :



On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote:

Hi again,

the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0
doesn't seem include SFTP support.
Is that the case or have we messed up somewhere ?


tsNet is only included in LiveCode 8.1.0 or later.

   Peter




--
Hakima Manseri
Ingénieure développement et bases de données

Tél : 04 67 14 58 42
Site : http://asm.cnrs.fr/
Dev@LR : http://devatlr.univ-montp2.fr/


___
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: Font embedding for iOS in LC9

2017-04-26 Thread Andrew Bell via use-livecode

Try with 8 to make sure fonts work.  There is a font bug in 9 on devices
with retina screens.


I should have searched the bug list first and I would have seen #19358  
which describes this issue. I just did a build using 8.1.4rc1 with the  
same exact code base and the fonts work fine.


Haven't had a chance yet to try the workaround that Keith Martin had  
mentioned @ http://thehelpful.com/iosfonts/


--Andrew Bell


___
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: Make numberFormat even better AND Cognitive Load

2017-04-26 Thread Mark Waddingham via use-livecode

On 2017-04-26 16:00, prothero--- via use-livecode wrote:

Ok, I'll shut up about this for now. Sorry to unfocus the thread.


To be fair, I managed to conflate three issues:

  1) Improving numberFormat

  2) How we could get arbitrary precision integers whilst retaining 
doubles for reals


  3) How to make numberFormat and array keys play nice together

They are all distinct issues really, although the numberFormat is 
involved in all three (at least in some way) :)


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: Please block sims emails

2017-04-26 Thread Dr. Hawkins via use-livecode
On Tue, Apr 25, 2017 at 10:03 PM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> He frequently gets infected with malware. But I rather liked this set.
> "Dear!" I wanted to respond, "Darling!!"
>

One of the reasons I hang around the Knights of Columbus so much is it's
the only place I get called "young man" any more . . .

:)


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Make numberFormat even better

2017-04-26 Thread Richard Gaskin via use-livecode

Roland Huettmann wrote:

> It is a very nice approach that Curry already realized: and it is
> available:
> http://curryk.com/ck-num-format.pngn better

That does look very nice indeed.  If that formatting is factored in a 
way that would lend itself to a generalized behavior script for fields, 
and if Curry or Hugh were inclined to contribute some existing code it 
would help the project get a running start.



> But what I do not yet understand is how to make a joint effort with
> hundreds of developers ))) available to ALL of us in practical terms
> seamlessly.

In more popular languages like Python or R, or pretty much any open 
source tool (among programming languages that would be nearly all of 
them), what we commonly see is one person with an itch to scratch writes 
a something to fit their needs, posts it to a code-sharing repository 
like Github, and others come along an augment it.  Over time it grows 
into an ever more mature, robust, general-purpose solution, but even out 
of the starting gate it's useful, and only gets better over time.


A small project of this scope wouldn't need hundreds of developers. I 
can't imagine more than half a dozen contributing to it.  Most of the 
coding could be done by one person in less than a day.


Where more eyeballs may be most useful would be in the design.  The 
property names need to make sense, and ideally there would be ways to 
use this for list columns in addition to individual fields, so we'd need 
to come up with a sensible way to handle that.


We'd probably want to ask ourselves if this should be a function or a 
property?


As a property it feels most natural, applying formatting specs to a 
given object.  But there are tradeoffs there, including being able to 
have only one behavior script applied to an object, and the issue with 
getProp and setProp being unreliable in any environment in which the 
lockMessages might be set to true.


As a function it would be far simpler to design, but would require the 
user to code for it, rather than having it be a property you set once 
and never need to think about it again.


There may be other options too.

And the choice of whether such a library be written in LC Script or LC 
Builder.  The latter offers direct support for documentation and 
Inspector options (though it would certainly be useful to see those 
options available for LC Script as well, though that's another discussion).


We could brainstorm those design aspects here and now if we want.


> For any newbie and for those using formatting all the time, do we
> have to load a separate library or would it be supported out of the
> IDE? For example, could the numberFormat or format() functions be
> overwritten so that simply using LiveCode Script it would work the
> way we defined and this out of the engine?

By design LC does not allow overriding built-in functions the way 
HyperCard used to.  When I asked Dr. Raney about this decision, he asked 
me to observe the execution speed difference between the two, and noted 
that his token table was kept very trim with this decision.  He also 
invited me to come up with a case in which it was truly necessary to 
override built-in functions as opposed to using a new name for the new 
function.  In all these years I couldn't come up with one.


So in short, I think a new name for new functionality may be best.


> Or is it a new function? And could it be shipped with the product if
> approved? Again, we are thinking of Excel style formatting that any
> user, even non-programmers, often enough know about.

To be included in the LC install it needs to be good, and if implemented 
as a function it may perhaps eventually be included with the other 
handlers currently in the revCommon lib.


But that would require that it be field-tested, so early adopters would 
first use it as a library or behavior they download and install.


It may be that the engine team may later borrow some of the design from 
the scripted version for inclusion in the engine.  But until Mark 
Waddingham posts "Yes, we have time and will do that this week" we'll 
need to consider options that aren't dependent on the engine team.  And 
as Curry and Hugh have shown, these things can be done by a single 
person in script, valuable even as add-ons.



[I was tempted to write a rant about package managers here, about how 
every popular language has one and we don't, and the relationship 
between platform adoption and the ease with which one can find and use 
extensions.but that's probably best left for another thread.]



> Is there any guide telling that such LiveCode Script following certain
> style and rules and using the best performant way will be accepted as
> "quality code"?

At the bottom of the "Contributing" page for the LC code base there are 
links to C++ style guides:

https://github.com/livecode/livecode/blob/develop/CONTRIBUTING.md

I don't know of such a guide for scripted contributions.  That would be 
a good 

Re: Make numberFormat even better AND Cognitive Load

2017-04-26 Thread prothero--- via use-livecode
Folks,
This thread addresses two issues with numbers. The main issue being discussed 
is the display of numbers. This is very important and the main point of 
diddling with numberformat. I like the idea of making a behavior we can all use 
to format numbers in a variety of ways.

The other one is the internal representation of numbers in the engine. 
Currently, it seems there are either strings or numbers and the engine converts 
between the two, depending on rules that it carries internally. It's partially 
my bad that this issue got incorporated into this thread. But where I saw the 
problem was in the discussion of array keys and how the engine treated a[1] 
different from a[01]. It's really the way arrays work and that the keys are 
really text, not numbers (at least, that's what I understand from the 
discussion). I use arrays a lot and love them for this. They become a bit 
inconvenient when all I want is a numerically indexed array without gaps. But 
it's only a minor issue for me. When it comes to integers, I only need to 
decide whether to round or trunc a value. 

When speed issues arise, the most transparent way of dealing with this would be 
to declare an integer type variable, and the engine would then treat all 
instances of that variable as an integer. We already declare variables as local 
or global, and I see no conflict with the xTalk language philosophy in adding 
that property to a variable.

Ok, I'll shut up about this for now. Sorry to unfocus the thread.

Best,
Bill P

William Prothero
http://es.earthednet.org

> On Apr 26, 2017, at 2:31 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Roland:
> 
>> I vote for the LC-NATIVE "Excel style" number format
>> (enhanced numberFormat in LC, not a new one, no
>> depreciation, but just different ways to achieve the same)
> 
> Excel number format is powerful and popular, that's for sure.
> 
> Richard:
> 
>> The Excel spec is a guide, but not an implementation.
>> Making that work robustly, flexibly, and sensibly within
>> LiveCode is a considerable design project.
> 
> SpreadLib supports a portion of the Excel number and date formatting, a good 
> start on that effort and with some lessons learned. Excel does have its 
> quirks like everything else.
> 
> Over time I've also chosen my own favorite "Curry Lite" formatting features, 
> with the convenience of a single code for both positive and negative. I tried 
> some tests with that style, and here are the results:
> 
> http://curryk.com/ck-num-format.png
> 
> 
> 
> I can choose where to put a negative sign or parentheses, and include 
> arbitrary text. Maybe I can break that out into a separate formatting 
> library. Still want to try some of the crazier things that Excel can do. :)
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> ___
> 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: Make numberFormat even better AND Cognitive Load

2017-04-26 Thread prothero--- via use-livecode
Curry,
This is great and best of all is the table of examples. This, in the 
dictionary, would have made my thrashing around with format, to get what In 
wanted a lot easier.
Bill

William Prothero
http://es.earthednet.org

> On Apr 26, 2017, at 2:31 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Roland:
> 
>> I vote for the LC-NATIVE "Excel style" number format
>> (enhanced numberFormat in LC, not a new one, no
>> depreciation, but just different ways to achieve the same)
> 
> Excel number format is powerful and popular, that's for sure.
> 
> Richard:
> 
>> The Excel spec is a guide, but not an implementation.
>> Making that work robustly, flexibly, and sensibly within
>> LiveCode is a considerable design project.
> 
> SpreadLib supports a portion of the Excel number and date formatting, a good 
> start on that effort and with some lessons learned. Excel does have its 
> quirks like everything else.
> 
> Over time I've also chosen my own favorite "Curry Lite" formatting features, 
> with the convenience of a single code for both positive and negative. I tried 
> some tests with that style, and here are the results:
> 
> http://curryk.com/ck-num-format.png
> 
> 
> 
> I can choose where to put a negative sign or parentheses, and include 
> arbitrary text. Maybe I can break that out into a separate formatting 
> library. Still want to try some of the crazier things that Excel can do. :)
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> ___
> 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: Please block sims emails

2017-04-26 Thread Ralph DiMola via use-livecode
>Jacqueline Landman Gay wrote:
>He frequently gets infected with malware. But I rather liked this set. 
>"Dear!" I wanted to respond, "Darling!!"

Now I'm laughing... And just when I thought this was another day in cyber land.
Do you do standup?
 
Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
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: Application not working with MacOSX 10.6 (maybe due to tsNet)

2017-04-26 Thread Peter TB Brett via use-livecode



On 26/04/2017 11:41, Hakima Manseri via use-livecode wrote:

Hi again,

the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0
doesn't seem include SFTP support.
Is that the case or have we messed up somewhere ?


tsNet is only included in LiveCode 8.1.0 or later.

   Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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: Please block sims emails

2017-04-26 Thread Mike Kerner via use-livecode
Since this is the nth time, can we have probation?

On Wed, Apr 26, 2017 at 1:03 AM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 4/25/17 10:36 PM, Jerry Jensen via use-livecode wrote:
>
>> Somebody is using sims email to post phishing/spam/malware - I don’t
>> know which because I won’t click it.
>>
>
> He frequently gets infected with malware. But I rather liked this set.
> "Dear!" I wanted to respond, "Darling!!"
>
> --
> 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
>



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

Make numberFormat even better

2017-04-26 Thread Roland Huettmann via use-livecode
Thank you, Richard, Curry, Mark...

It is a very nice approach that Curry already realized: and it is available:
http://curryk.com/ck-num-format.pngn better

But what I do not yet understand is how to make a joint effort with
hundreds of developers ))) available to ALL of us in practical terms --
seamlessly.

For any newbie and for those using formatting all the time, do we have to
load a separate library or would it be supported out of the IDE? For
example, could the numberFormat or format() functions be overwritten so
that simply using LiveCode Script it would work the way we defined and this
out of the engine?

Or is it a new function? And could it be shipped with the product if
approved? Again, we are thinking of Excel style formatting that any user,
even non-programmers, often enough know about.

And how can we contribute? Is it a joint effort where someone is delegating
the task? Or is it the work of someone taking the time to write it for ALL
of us? And, also I wrote about this, I feel a bit shy to think that I could
provide code that would or could really be seen as a viable contribution. I
do not know what really makes LiveCode Script be quality code?

Is there any guide telling that such LiveCode Script following certain
style and rules and using the best performant way will be accepted as
"quality code"?

I know about naming variables (naming conventions), and I assume that
comments could also follow style (comments disabling parts of code,
comments to the code, etc.), and even possibly assigning variable names
that are common to everybody -- for example, I have a style to always name
sames types of variables the same way: For example for variables containing
file information: tFileName (with extension), tFilePath (full absolute
path), tFolderPath (without ending slash), tShortFileName (without
extension), tFileExtension (just the extension), or i, j, k... as counters.
Because I am lazy, I find such conventions (for private use, or for
community use) very helpful. I assume there are 30-50 standardized names
that could be shared to make code easily readable and that also newbies
should know about.

Then, again to be practical, how would we name fields and how would we name
custom properties indicating how code should work with a field and format
such field?

Assumed, there is a currency style field with a format such as
"$#,###.00":=  "$1,000.00" where a style property would be set for this
field. This field also serves as a database field and should "know" to
which data source it is connected and also may know in which order database
fields appear. That is another custom property. So, a command saving to the
database would look up all such fields, convert strings to numbers the
database understands, already know the underlying database field name
without any further scripting, and simply saves whatever is there. And,
yes, there is a behavior script assigned to such field - and it depends
whether data is entered manually, or it is put into the field through a
script.

Another field could present a scientific notation and accept and display
scientific notations.

This can grow to become a very dynamic behavior when strictly following a
certain style that is used by everybody.

Or am I thinking into the wrong direction?

I am not worrying doing it for myself. I am more thinking when we are
offering this as an adopted standard.

With dates, there is always a problem in Central Europe because the system
date displays a date string that is not seen by the engine to be a date. It
is NOT a date for LiveCode Script. Here, we have DD/MM/YYY or DD.MM..
So, I must always convert such date anyway to allow LiveCode testing it to
be a valid date. For SQLite and other databases we need it to be
"-MM-DD" and internally we might just use the seconds.

Then, adding field "A" of type date to field "B" of type date (or
variables/arrays representing such fields) should result in a new date
without even having to think.

And I assume it would be best for users setting the field format using a
context menu clicking on the field in questions and setting such behavior
and formatting options -- if this is not part of the Property Inspector.
Such context menu could open some Settings pane when needed.

Or can we, should we, simple users, modify the Property Inspector?

I assume it would be best if someone following the guides and with deep
experience would implement while the rest of us could contribute with
testing, discussing, etc. ?

And because of all this, and for joint work especially, I would really
appreciate more standards, more guides for "best practice", even strict
rules -- not to make things not work when breaking such rules, but to make
things easier and more transparent in the other 99% of cases.

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

Re: Application not working with MacOSX 10.6 (maybe due to tsNet)

2017-04-26 Thread Hakima Manseri via use-livecode

Hi again,

the new standalone does leunch on 10.6 but tsNet with LiveCode 8.0 
doesn't seem include SFTP support.

Is that the case or have we messed up somewhere ?

Thanks again for your help.
Cheers,
Hakima




Le 25/04/2017 à 17:57, Hakima Manseri via use-livecode a écrit :

I'll look into that.
Thanks !


Le 25/04/2017 à 17:52, Ludovic THEBAULT via use-livecode a écrit :
Le 25 avr. 2017 à 17:47, Hakima Manseri via use-livecode 
 a écrit :


Hi everyone,

I'm a LC newbie and have been trying to use an application a 
colleague is developping with LiveCode 8.1.3


It works with MacOSX 10.9 and above but fails to launch for previous 
version. This was surprising since we thought LiveCode was still 
compatible with the 10.6 version.


I have this message in the log :


Apr 17 20:49:15 myuser myapp[787]: ***
__NSAutoreleaseNoPool(): Object 0xd82460 of class NSMachPort
autoreleased with no pool in place - just leaking
Apr 17 20:49:16 myuser myapp[787]: Error loading
/Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet: 

dlopen(/Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet, 
262): Symbol not found: _kSecImportExportPassphrase\n Referenced from:

/Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet\n
  Expected in:
/System/Library/Frameworks/Security.framework/Versions/A/Security\n in
/Users/myuser/myapp.app/Contents/MacOS/Externals/tsNet.bundle/Contents/MacOS/tsNet 


Apr 17 20:49:16: --- last message repeated 1 time ---
Apr 17 20:49:16 myuser [0x0-0x40040].myapp-Org.[787]: Startup error 
- failed to load external
Apr 17 20:49:16 myuser com.apple.launchd.peruser.501[208] 
([0x0-0x40040].myapp-Org.[787]): Exited with exit code: 255
I've looked up the "_kSecImportExportPassphrase" variable and it 
seems that there may be a difference between iOS and MacOSX 
regarding this variable : 
http://stackoverflow.com/questions/17348420/private-key-signature-different-on-ios-and-macosx#17349506


So is tsNet the culprit ? Or is this a problem in the way we add the 
external ? Or something else ?


Thanks in advance for your help.

Hakima

See http://quality.livecode.com/show_bug.cgi?id=19035 



Workaround : compile standalone with Livecode 8.0
___
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






--
Hakima Manseri
Ingénieure développement et bases de données

Tél : 04 67 14 58 42
Site : http://asm.cnrs.fr/
Dev@LR : http://devatlr.univ-montp2.fr/


___
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: Make numberFormat even better AND Cognitive Load

2017-04-26 Thread Curry Kenworthy via use-livecode


Roland:


I vote for the LC-NATIVE "Excel style" number format
(enhanced numberFormat in LC, not a new one, no
depreciation, but just different ways to achieve the same)


Excel number format is powerful and popular, that's for sure.

Richard:


The Excel spec is a guide, but not an implementation.
Making that work robustly, flexibly, and sensibly within
LiveCode is a considerable design project.


SpreadLib supports a portion of the Excel number and date formatting, a 
good start on that effort and with some lessons learned. Excel does have 
its quirks like everything else.


Over time I've also chosen my own favorite "Curry Lite" formatting 
features, with the convenience of a single code for both positive and 
negative. I tried some tests with that style, and here are the results:


http://curryk.com/ck-num-format.png



I can choose where to put a negative sign or parentheses, and include 
arbitrary text. Maybe I can break that out into a separate formatting 
library. Still want to try some of the crazier things that Excel can do. :)


Best wishes,

Curry Kenworthy

___
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: Primes and primality checking

2017-04-26 Thread Mark Waddingham via use-livecode

On 2017-04-25 17:01, Devin Asay via use-livecode wrote:

However, it doesn’t seem to be reliable for very large numbers (> 100
digits) as the fellow wants. My math skills are pretty creaky. Anybody
want a crack at this? It’s a fun challenge, plus it can boost LC’s
presence on stackoverflow.


You can only represent integers up to around 2^53 without losing 
precision (as they are represented using IEEE doubles) which means the 
maximum number you can check for primality using this method is around 
9007199254740992.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: An anomaly in the "read from file" command?

2017-04-26 Thread Mark Waddingham via use-livecode

On 2017-04-26 08:35, Quentin Long via use-livecode wrote:

ask file "What do you want to read?"
put it into DisFile
read from file DisFile until EOF
put it into fld "This Field"

Why didn't I get an error message when I tried to read from a file
that hadn't been opened yet? Shouldn't LiveCode have gotten fussy
about that?


The read / write file commands both set 'the result' if there is an 
error with the operation requested - in this case it would be set to 
something like 'file not open'.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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


An anomaly in the "read from file" command?

2017-04-26 Thread Quentin Long via use-livecode
First off, thanks to Alan Stenhouse for zeroing in on my filter-related 
mistake. Any number fo people *could* have done so, but it was Alan who 
actually did the deed. So, yay Alan!

Second: I discovered something odd as a result of another mistake I made. My 
mistake:

ask file "What do you want to read?"
put it into DisFile
read from file DisFile until EOF
put it into fld "This Field"

What went into field "This Field" was the contents of the *variable* DisFile, 
*not* the contents of the *file* whose name is stored in the variable DisFile. 
This is because of how the pseudo-variable "it" behaves, i suspect.

My mistake was that I didn't *open* file DisFile before reading it, of course. 
And once I did open the file, the reading went on normally, and the contents of 
the field did indeed end up in the field "This Field". So, bad on me for not 
opening the file first, good on me for recognizing & fixing that lapse without 
external assistance. But I do have a question:

Why didn't I get an error message when I tried to read from a file that hadn't 
been opened yet? Shouldn't LiveCode have gotten fussy about that? 

   
"Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length"

Read the webcomic at [ http://www.atarmslength.net ]!

If you like "At Arm's Length", support it at [ 
http://www.patreon.com/DarkwingDude ].

___
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