Re: Obtaining names of current and calling handlers?

2015-02-11 Thread Lyn Teyla
Thanks Richard — these work perfectly! Lyn > On Feb 12, 2015, at 7:28 AM, Richard Gaskin > wrote: > > Lyn Teyla wrote: > > 1. How does one obtain the name (and its location/object) of > > the handler/function that called the current handler/function? > > the executionContexts > > > > 2. Ho

Re: Run a handler each time a handler/function within current script is run?

2015-02-11 Thread Richard Gaskin
Lyn Teyla wrote: > How does one automatically run a handler each time a handler/function > within the current script is run? If you turn on the messageMessages global property, all handler activity can be monitored in a frontScript with a messageHandled handler. This is global, however. I do

Re: Obtaining names of current and calling handlers?

2015-02-11 Thread Richard Gaskin
Lyn Teyla wrote: > 1. How does one obtain the name (and its location/object) of > the handler/function that called the current handler/function? the executionContexts > 2. How does one obtain the name of the current handler/function > that's running? Word 1 of the params -- Richard Gaskin F

Run a handler each time a handler/function within current script is run?

2015-02-11 Thread Lyn Teyla
Hi all, How does one automatically run a handler each time a handler/function within the current script is run? I'm looking for a proper/non-clumsy way of implementing the following: private command doSomeStuff -- stuff that must be done each time _any_ -- handler/functi

Obtaining names of current and calling handlers?

2015-02-11 Thread Lyn Teyla
Hi all, 1. How does one obtain the name (and its location/object) of the handler/function that called the current handler/function? on cheers hello end cheers on hello put the name of the calling handler -- hypothetical; would have returned "cheers" end hello --

Re: "accept" and socket read/write

2015-02-11 Thread Dr. Hawkins
On Wed, Feb 11, 2015 at 5:02 PM, Richard Gaskin wrote: > Phil Davis wrote: > > As it stands right now, the engine is single-threaded so there's no > > distributing of anything to other cores within a single instance of > > your application. As for the future, I can't address that. > My thinking

Re: Reverse a list

2015-02-11 Thread Kay C Lan
On Thu, Feb 12, 2015 at 8:16 AM, Peter Haworth wrote: > > Oh yes, and doesn't matter whether you're using LC 7 or something prior to > that, although that problem appears to be a bug that is already being > fixed. > > I think that statement requires a qualifier - 'if you are not dealing with unic

Re: "accept" and socket read/write

2015-02-11 Thread Richard Gaskin
Phil Davis wrote: > As it stands right now, the engine is single-threaded so there's no > distributing of anything to other cores within a single instance of > your application. As for the future, I can't address that. If Mark Wieder would be kind enough to add forking to the Server engine we co

Re: "accept" and socket read/write

2015-02-11 Thread Phil Davis
On 2/11/15 2:25 PM, Dr. Hawkins wrote: Am I reading the dictionary correctly? If I am, the accept command on the server end would use the same "read from socket" and "write from socket" commands as the client size uses? Yes. So when I client first connects to set up a connection, the callba

Re: Reverse a list

2015-02-11 Thread Peter Haworth
I just tried this with an in memory SQLite DB using 6.6.2 and 7.0.1. Results were pretty much identical in both cases. Here they are: Time to open in-memory db and create a table with one text column: zero milliseconds Time to load approx 100k rows into the db: 900 milliseconds Time to return

Re: Set Script Limits in Standalones

2015-02-11 Thread Dr. Hawkins
On Thu, Feb 5, 2015 at 9:12 AM, Bob Sneidar wrote: > So, wait a minute. If an MD makes a mistake, people can die. So if a PhD > in Physics makes a mistake, does it alter the fabric of space/time? Or worse, Dr. Venkman . . . it could be *bad* -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

Re: Self Awareness?

2015-02-11 Thread Bob Sneidar
It’s my understanding of the message path that a background group will receive all messages before the card will. I suppose that is the place to intercept any message you want to process. Bob S > On Feb 11, 2015, at 11:06 , Scott Rossi wrote: > > Does a control receive any message when it i

"accept" and socket read/write

2015-02-11 Thread Dr. Hawkins
Am I reading the dictionary correctly? If I am, the accept command on the server end would use the same "read from socket" and "write from socket" commands as the client size uses? So when I client first connects to set up a connection, the callback message on the serer would be used for authenti

Re: Self Awareness?

2015-02-11 Thread Klaus major-k
> Am 11.02.2015 um 20:47 schrieb dunb...@aol.com: > > > Special thanks to Klaus, whose response came in before my message even > appeared! > > He is so annoying that way. So sorry! :-D :-D :-D > Craig Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de

Re: Self Awareness?

2015-02-11 Thread dunbarx
Special thanks to Klaus, whose response came in before my message even appeared! He is so annoying that way. Craig -Original Message- From: Scott Rossi To: LiveCode Mail List Sent: Wed, Feb 11, 2015 2:33 pm Subject: Re: Self Awareness? Thanks for all the quick responses ― I did

Guide for Building Mobile with LC

2015-02-11 Thread Brahmanathaswami
Finally, after several years of server side coding, we are going to build an app in LC. I come with my begging bowl. I have a big of a learning curve in front of me and would like any advice for key resources to get started on the right foot. As far as UX strategy etc we have more than enou

Re: Self Awareness?

2015-02-11 Thread Scott Rossi
Thanks for all the quick responses ― I didn’t realize the “new” message was sent to the control itself, as opposed to the card. Special thanks to Klaus, whose response came in before my message even appeared! Best Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 2/11/15,

Re: Self Awareness?

2015-02-11 Thread Marty Knapp
Scott, See the following: newButton newImage newGraphic etc Marty K Does a control receive any message when it is pasted onto a card? I¹m trying to figure out a way for a control (usually a group) to initialize some of its properties upon being pasted. Things like preOpenControl and openContr

Re: Self Awareness?

2015-02-11 Thread Eric Corbett
Try newBackground, newButton, new…, etc. Eric On Feb 11, 2015, at 11:06 AM, Scott Rossi wrote: > Does a control receive any message when it is pasted onto a card? > > I¹m trying to figure out a way for a control (usually a group) to > initialize some of its properties upon being pasted. Thing

Re: Self Awareness?

2015-02-11 Thread Klaus major-k
Hi Scott, > Am 11.02.2015 um 20:06 schrieb Scott Rossi : > > Does a control receive any message when it is pasted onto a card? > > Iąm trying to figure out a way for a control (usually a group) to > initialize some of its properties upon being pasted. Things like > preOpenControl and openContro

Self Awareness?

2015-02-11 Thread Scott Rossi
Does a control receive any message when it is pasted onto a card? I¹m trying to figure out a way for a control (usually a group) to initialize some of its properties upon being pasted. Things like preOpenControl and openControl don¹t appear to work. I know this can be done with a frontScript, bu

Re: Acceleration minus acceleration from rotation

2015-02-11 Thread Richmond
On 11/02/15 20:08, Mike Bonner wrote: THATS why cats always manage to land on their feet. Good to know. I am tempted to access the Git-hub code repository and attempt a Livecode build for the Cat platform . . . the main thing that is stopping me is that certain programming terms are not rea

Re: Acceleration minus acceleration from rotation

2015-02-11 Thread Geoff Canyon
On Wed, Feb 11, 2015 at 11:59 AM, Richmond wrote: > What my iPad CANNOT do, is detect if it is moved across a surface, for the > very SIMPLE reason that it doesn't have > "little wheels" or other motion sensors on its underside [ err . . . > backside?]. > AccelerationChanged delivers an X, Y, an

Re: Acceleration minus acceleration from rotation

2015-02-11 Thread Mike Bonner
THATS why cats always manage to land on their feet. Good to know. On Wed, Feb 11, 2015 at 11:06 AM, Richmond wrote: > On 11/02/15 20:04, Colin Holgate wrote: > >> Later devices have gyroscopes, that can detect non-rotation movement. >> That may help solve the original problem. >> >> >> On Feb 1

Re: Acceleration minus acceleration from rotation

2015-02-11 Thread Mike Bonner
The accelerometers in the device WILL pick up a linear movement. Tilting it, changes the acceleration in an axis in relation to the direction of gravity. But applying force against the inertia of the accelerometers will definitely be picked up. On Wed, Feb 11, 2015 at 10:59 AM, Richmond wrote: >

Re: Acceleration minus acceleration from rotation

2015-02-11 Thread Richmond
On 11/02/15 20:04, Colin Holgate wrote: Later devices have gyroscopes, that can detect non-rotation movement. That may help solve the original problem. On Feb 11, 2015, at 12:59 PM, Richmond wrote: What my iPad CANNOT do, is detect if it is moved across a surface, for the very SIMPLE reas

Re: Acceleration minus acceleration from rotation

2015-02-11 Thread Colin Holgate
Later devices have gyroscopes, that can detect non-rotation movement. That may help solve the original problem. > On Feb 11, 2015, at 12:59 PM, Richmond wrote: > > >What my iPad CANNOT do, is detect if it is moved across a surface, for the > >very SIMPLE reason that it doesn't have > "little

Re: Acceleration minus acceleration from rotation

2015-02-11 Thread Richmond
On 11/02/15 19:35, Steven Chalmers, UI Insight, Inc. wrote: I have played with, and understand, accelerationChanged and rotationRateChanged but I have a complex requirement to remove the effect of rotation from acceleration. Imagine a phone lying on its back on the table. 1) I want the acceler

Acceleration minus acceleration from rotation

2015-02-11 Thread Steven Chalmers, UI Insight, Inc.
I have played with, and understand, accelerationChanged and rotationRateChanged but I have a complex requirement to remove the effect of rotation from acceleration. Imagine a phone lying on its back on the table. 1) I want the acceleration numbers generated from tapping the phone on its side whi

Re: Reverse a list

2015-02-11 Thread Peter Haworth
Hi Mike, I doubt the sqlite approach will be faster than the other algorithms, but 36 seconds is still way too long to insert 10,000 lines. Could you post your code? Pete lcSQL Software On Feb 11, 2015 4:52 AM, "Mike Kerner" wrote: > With sqlite on my box, doing the inserts via a transction took

Re: The "FIX:" is in

2015-02-11 Thread Richard Gaskin
Mike Kerner wrote: Next FIX: posted: 14475 - Project Browser doesn't hold resize. Yeah, it's another tiny one, but hey, it'll be #2 for me... Thanks for submitting that, Mike. Even small things like that help make the IDE more solid, so I appreciate your taking the time to post that. Ben's

Re: Postgres SSL connection?

2015-02-11 Thread Dr. Hawkins
On Tue, Feb 10, 2015 at 3:41 PM, Andrew Kluthe wrote: > Also, yes, it's just not supported. I wouldn't count on getting it > supported anytime real soon. > I find that mind-boggling, though. Once can argue its merits in comparison with Oracle (technical, political, commercial, and others, I sup

Re: Postgres SSL connection?

2015-02-11 Thread Dr. Hawkins
On Tue, Feb 10, 2015 at 4:33 PM, Bob Sneidar wrote: > IC, no I mean a *local* file, like sqLite. But I take you to mean that > Postgres is socket based. > Postgres runs as a server, either to the localhost, or to the outside world. It can either accept a connection on a regular port, or it can

Re: Postgres SSL connection?

2015-02-11 Thread Dr. Hawkins
On Tue, Feb 10, 2015 at 3:37 PM, Andrew Kluthe wrote: > Is your server side component something that would run on a clients machine > or will you forever be in charge of the potential server side of it? Put > differently, is the server side component something you intend to ship for > end users t

Re: The "FIX:" is in

2015-02-11 Thread Mike Kerner
Next FIX: posted: 14475 - Project Browser doesn't hold resize. Yeah, it's another tiny one, but hey, it'll be #2 for me... On Wed, Jul 30, 2014 at 11:43 AM, Mike Kerner wrote: > Well, my first FIX: has been updated to go into the next build, so it's > nice to see that this effort might be beari

Re: Script Editor Window All Goofed Up

2015-02-11 Thread Ray
OK - I'll shoot you a snap shot if it happens again. On 2/11/2015 11:07 AM, Mike Kerner wrote: Next time you run into it, email me. I'd like to get a look at the screenshot and your settings. I've found a couple of weird IDE bugs that I've been able to generate fixes for. On Wed, Feb 11, 2015

Re: The Future of Animation in LiveCode

2015-02-11 Thread Curry Kenworthy
People have been making games and some types of animation with LC/RR for over a decade, and progress will continue. No barriers if you choose the right project and build around the features. My nerve disease acts up during winter and makes it harder to type or talk, so releasing updates such

Re: Script Editor Window All Goofed Up

2015-02-11 Thread Mike Kerner
Next time you run into it, email me. I'd like to get a look at the screenshot and your settings. I've found a couple of weird IDE bugs that I've been able to generate fixes for. On Wed, Feb 11, 2015 at 8:18 AM, Ray wrote: > Mike - thanks for this suggestion. I re-installed Livecode upgrading

Re: Script Editor Window All Goofed Up

2015-02-11 Thread Ray
Mike - thanks for this suggestion. I re-installed Livecode upgrading to RC2 in the process and it did not solve the problem. Then I deleted the preferences file and that did the trick. I wonder how the window got goofed up in the first place? Oh well, I know how to fix it in the future. Th

Re: A computer science question

2015-02-11 Thread Mike Kerner
If you don't want to reinvent the wheel, you could use Valentina. The Pro version has table graphs. On Wed, Feb 11, 2015 at 4:28 AM, Peter TB Brett wrote: > On 2015-02-10 19:48, kee nethery wrote: > >> This is exactly the problem faced by circuit board layout programs, >> and I’ve never seen an

Re: Reverse a list

2015-02-11 Thread Mike Kerner
With sqlite on my box, doing the inserts via a transction took the time down to 36 seconds from 64, still not good enough. On Tue, Feb 10, 2015 at 11:58 AM, Mike Bonner wrote: > You can find an example that uses begin transaction, and commit with a > repeat loop here: > http://forums.livecode.co

Re: A computer science question

2015-02-11 Thread Peter TB Brett
On 2015-02-10 19:48, kee nethery wrote: This is exactly the problem faced by circuit board layout programs, and I’ve never seen an algorithm for it. You might want to look to see if there are any open source circuit board layout programs available out there and see how they do tracing layouts.

Re: A computer science question

2015-02-11 Thread David Bovill
Pete I did something similar a few years back. I managed to get fairly nice graphs using graphviz.org. I believe you will need to cluster your nodes via the first algorithm you mention then let the hierarchical (not force) graphviz algo do its magic. David On Wed, 11 Feb 2015 at 01:50, Peter Hawor