Re: Duplicate simultaneous calls to same handler

2015-01-22 Thread Peter W A Wood
I “improved” my script just to check that each time the handler is called it still gets its own local variables: on oneOrTwo local tCount add 1 to tCount put "one" && tCount & return after Field "Field" wait 50 with messages put "two" && tCount & return after Field "Field" end oneO

Re: Duplicate simultaneous calls to same handler

2015-01-22 Thread Mark Wieder
Jacque- >> If so, what happens to the values of the variables? > Google idempotent. Oh, all right. Each invocation of a function gets its own set of local variables. Script local variables are in a shared common pool. Changing them from within a function is commonly referred to as a side effect.

Re: Duplicate simultaneous calls to same handler

2015-01-22 Thread Mark Wieder
Jacque- Thursday, January 22, 2015, 7:26:16 PM, you wrote: > Does the engine queue the second call until the long handler finishes, Every "wait with messages" call will yield time to the system to allow other tasks to continue. > and then send the message from the second call (serial responses)

Re: Duplicate simultaneous calls to same handler

2015-01-22 Thread Peter W A Wood
Jacque I believe that the engine can start processing the second call before the first is finished after I did a little experiment: One card, button1, button2 and a field Both buttons with this script: on mouseUp oneOrTwo

Duplicate simultaneous calls to same handler

2015-01-22 Thread J. Landman Gay
Suppose I have a long handler that includes a few "wait with messages" so that users can continue interacting with the stack while it runs. The user does something that calls the long handler while it is still running from a previous instance. Assume there is no flag in the script to prevent th

Re: [Probably OT] Strange loss of ability to do SSL (through curl)

2015-01-22 Thread Mike Bonner
I've never done it, but think i've seen that you can get around issues with ssl stuff by setting liburlsslverification to false. If I understand correctly (always in doubt) you'll still end up with an ssl connection, but if the cert is expired, or off domain or something of that nature, the connec

Re: A code style question

2015-01-22 Thread Geoff Canyon
On Thu, Jan 22, 2015 at 1:42 PM, Ben Rubinstein wrote: > Sorry, I've only just realised as I was about to press send that the point > you were making was that if it was built-in, then it also wouldn't need to > evaluate both outcomes. Good point - though I'd personally still tend to > restrict t

Re: A Got-Ya

2015-01-22 Thread Dr. Hawkins
On Thu, Jan 22, 2015 at 10:07 AM, Peter Haworth wrote: > On Wed, Jan 21, 2015 at 4:56 PM, Dr. Hawkins wrote: > > > repeat for each word theProp in "a b c" > >set the theProp of me to empty > > end repeat > > > > That's correct, but the contents of theProp variable should still be > interpret

Re: Posting to php problem

2015-01-22 Thread William Prothero
Gerry: It seems to be working for me now, though in LC 7.0.1 and 7.0.2. Now I’m thrashing through the permissions forest to get access to my db. Regards, Bill > On Jan 22, 2015, at 11:17 AM, Gerry wrote: > > There's a httpHeaders bug in recent versions of LiveCode. Andre Garzia has > been havin

Re: [Probably OT] Strange loss of ability to do SSL (through curl)

2015-01-22 Thread Ben Rubinstein
Thanks Mike and Peter, that's indeed got me to the next stage. Using this technique I can get curl to work correctly (and by using env/printenv as the command, I can see the differences in the environment) - as you suspected, the difference is in PATH. Now the next question (which brings it b

Re: A code style question

2015-01-22 Thread Ben Rubinstein
On 21/01/2015 15:53, Geoff Canyon wrote: the obvious drawback of the way it is now is that both outcomes have > to be evaluated, where in an if statement, obviously, only one of them is. True, but (coding style preference) I tend to use it pretty much only for constants. If there's a complex

Re: Posting to php problem

2015-01-22 Thread Gerry
There's a httpHeaders bug in recent versions of LiveCode. Andre Garzia has been having problems with it in his Facebook lib - perhaps he has a workround? Gerry Sent from my iPhone > On 23 Jan 2015, at 4:33 am, William Prothero wrote: > > httpHeaders _

Re: Windows 10 and Spartan

2015-01-22 Thread Dave Kilroy
Hi Dave Because tonight's "Create it with LiveCode" webinar tanked (GoToWebinar's issue, not RunRev's) I have some spare time so I got active and after a bit of googling I found this https://www.thurrott.com/windows/windows-10/470/maybe-windows-10s-spartan-isnt-going-suck In short it seems that S

Re: A Got-Ya

2015-01-22 Thread Geoff Canyon
On Wed, Jan 21, 2015 at 6:00 PM, Peter Haworth wrote: > doesn't the presence of "the" and "of " indicate that > the reference is to a (custom) property not a variable > You can store the name of a custom property in a variable, even one with the same name as some other custom property. So there'

Re: A Got-Ya

2015-01-22 Thread Peter Haworth
On Wed, Jan 21, 2015 at 4:56 PM, Dr. Hawkins wrote: > repeat for each word theProp in "a b c" >set the theProp of me to empty > end repeat > That's correct, but the contents of theProp variable should still be interpreted as a custom property name, not a variable because of "the" and "of me"

Re: extracting the thumbnail from digital photos?

2015-01-22 Thread Michael Doub
Alejandro, I have been playing with your script. I don't understand why I am getting the same value returned from: put offset(tStart,temp1) into tThumbstart put offset(tEnd,temp1) into tThumbEnd In my testing tThumbstart and tThumbEnd are equal which does not make sense to me since t

Re: Posting to php problem

2015-01-22 Thread William Prothero
Dang! Just solved it. The syntax for getting the $_POST variable in php is: $_POST[“fullame”] the underscore was the problem. Regards, Bill > On Jan 22, 2015, at 9:33 AM, William Prothero wrote: > > Folks: > This simple code inexplicably stopped working. LC 7.0.1 and 7.0.2 (rc1), > Yosemite on

Posting to php problem

2015-01-22 Thread William Prothero
Folks: This simple code inexplicably stopped working. LC 7.0.1 and 7.0.2 (rc1), Yosemite on Mac. I’m setting up my mySQL database code and accessing the db’s thru php. This code worked at first, then after I did a bit of changing, it stopped. Reverting to the initial working code didn’t work.

Re: Mac Menu Bar Apps

2015-01-22 Thread Matthias Rebbe | M-R-D
Of course. I´ve uploaded it now to my dropbox. https://dl.dropbox.com/s/o5zfiiqg4q8d163/index.html > Am 22.01.2015 um 15:20 schrieb Trevor DeVore : > > Matthias, > > I'm traveling this week. Would you be able to post what I sent you for > Peter to download? > > -- > Trevor DeVore > ScreenSte

Re: Mac Menu Bar Apps

2015-01-22 Thread Trevor DeVore
On Wednesday, January 21, 2015, Matthias Rebbe | M-R-D < matthias_livecode_150...@m-r-d.de> wrote: > Hi Pete, > > yes, but only with an external. > > Trevor Devore created such an external. > > ... > > Maybe you ask him, if he is willing to share it with you. > But i am pretty sure, he will do. >

Re: extracting the thumbnail from digital photos?

2015-01-22 Thread Malte Brill
Hi Al! Thanks so much for taking the time to look into this and sorry for my late reply. I was on the road without any access to the interwebs the last 3 days. Looking at your script it makes a lot of sense, however, I can not get it to work if the images I have here. The resulting jpeg Data i

Windows 10 and Spartan

2015-01-22 Thread Dave Kilroy
I've been remiss about digging into the details of Windows 10 (and spartan) - for those who have been keeping more up to date with Windows developments - could you let us know if there any implications for LiveCode developers in their proposed changes? Thanks! Dave - "Some are born coders,

Re: A code style question

2015-01-22 Thread Dick Kriesel
> On Jan 21, 2015, at 9:54 AM, Ken Ray wrote: > > I use a similar inline "switch": > >put stsSwitch(the platform,"MacOS=Finder","Win32=Explorer","*=Desktop") > into tReference One line can accomplish that even without invoking a custom function: put item itemOffset( the platform, "MacOS,

Re: A code style question

2015-01-22 Thread René Micout
> Le 21 janv. 2015 à 18:54, Ken Ray a écrit : > > easier/shorter then: > >switch (the platform) >case "MacOS" >put "Finder" into tReference >break >case "Win32" >put "Explorer" into tReference >break >default >