is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread FlexibleLearning
There is a difference between logical and string comparisons. A logical comparison using 'and/or' will exit as soon as 'false' is encountered. A string comparison using '=' (or 'is') or '<>' (or 'is not') will evaluate both components. Try func1()= func2() instead. Hugh Senior FLCo > on mouseU

Re: is evaluation order defined, and evaluation of conditionals"and" to "or

2012-06-25 Thread Dr. Hawkins
On Monday, June 25, 2012, Jerry Jensen wrote: > I had that drilled into my alleged mind in the late '60s in a Boolean > Algebra class I talked my way into. In those days minimization was > important because each gate cost a few bucks! Yes, and a 16 pin dip had four 2 input gates. So if you had

Re: is evaluation order defined, and evaluation of conditionals"and" to "or

2012-06-25 Thread Jerry Jensen
I had that drilled into my alleged mind in the late '60s in a Boolean Algebra class I talked my way into. In those days minimization was important because each gate cost a few bucks! It was sort of a geeky joke then that you could actually build any logic net using nothing but NAND gates. .Jer

Re: is evaluation order defined, and evaluation of conditionals"and" to "or

2012-06-25 Thread Dr. Hawkins
On Monday, June 25, 2012, wrote: > > > "or" is a simpler case, as there is never a need to evaluate after > a first round "true". Again, at least externally. > No, they're not. OR is "when both inputs are false, output is false (else its true)" AND is "when both inputs are true, output is true (e

Re: is evaluation order defined, and evaluation of conditionals"and" to "or

2012-06-25 Thread dunbarx
Jerry wrote": similarly if "or" is used instead of "and", > if the first part evaluates to "true", the second is NOT called. "or" is a simpler case, as there is never a need to evaluate after a first round "true". Again, at least externally. I changed the "and" to "or" in Jerry's example, and

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Jerry Jensen
Ah, then it must be actualy guaranteed! Thanks! I'd still try to write it out the long way with "if"s for the sake of the poor reader (probably me later under stress), but thats a matter of personal style I suppose. .Jerry On Jun 25, 2012, at 9:25 PM, Mike Bonner wrote: > Its useful if you ha

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Mike Bonner
Its useful if you have a processor intensive function (say intersect()). You can do several bounds checks prior to the intersect, if any of them fail the intersect is never done. This was mentioned in the game academy. On Mon, Jun 25, 2012 at 10:18 PM, wrote: > Jerry. > > > Fsscinating example.

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread dunbarx
Jerry. Fsscinating example. It seems there is in fact an order to the conditionals, at least as constructed your way. The "false" rendered in the left side seems to (un)satisfy the "and", played out in order. Stepping through shows this clearly. Cool. Is this useful? Crig Newman -Or

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Dr. Hawkins
On Monday, June 25, 2012, Jerry Jensen wrote: > > This behavior is guaranteed in the C language, but I don't know about > guarantees in LiveCode. In C, similarly if "or" is used instead of "and", > if the first part evaluates to "true", the second is NOT called. Again, I > dunno about LiveCode. Ex

is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Dr. Hawkins
On Monday, June 25, 2012, wrote: > > The case specifies a boolean "and". The order is unimportant in this > example. If either argument is false, the case is ignored. It would not > matter which was written first. The same would be true for a boolean "or, > in that the order is not pertinent. If

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Jerry Jensen
I'm not Richard, but I'm curious too. Here's an example that may point out his issue: In a button script, or somewhere . . . on mouseUp local tFoo put func1() and func2() into tFoo end mouseUp function func1 return "false" end func1 function func2 put "func2 was called" retur

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Bob Sneidar
Ahgh Peter, imbibing again? Good on ya mate! Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On Jun 25, 2012, at 16:40, Peter Haworth wrote: > If the dead cat does not exist, there will be no check for bad smell. > Pete > On Jun 25, 2012 4:17 PM, "Dr. Hawkins" wrote: > >> Is the ord

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread dunbarx
Richard. The case specifies a boolean "and". The order is unimportant in this example. If either argument is false, the case is ignored. It would not matter which was written first. The same would be true for a boolean "or, in that the order is not pertinent. In that sense (though it is tri

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Jerry Jensen
Note that exists() is only sensible for objects. From the dictionary: "You can also specify a chunk of a container, but in this case the exists function always returns true." .Jerry On Jun 25, 2012, at 4:17 PM, Dr. Hawkins wrote: > Is the order in which expressions will be evaluated defined int

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Bob Sneidar
I believe this was discussed in a thread long ago. To my knowledge, logical expressions are evaluated left to right. Mathematical expressions of course, follow the order of operations found here: http://en.wikipedia.org/wiki/Order_of_operations I will be corrected if I am mistaken. Bob On J

Re: is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Peter Haworth
If the dead cat does not exist, there will be no check for bad smell. Pete On Jun 25, 2012 4:17 PM, "Dr. Hawkins" wrote: > Is the order in which expressions will be evaluated defined int LiveCode > > For example, if I have fields such as live_cats live_dogs and such, > some but not others of whic

is evaluation order defined, and evaluation of conditionals

2012-06-25 Thread Dr. Hawkins
Is the order in which expressions will be evaluated defined int LiveCode For example, if I have fields such as live_cats live_dogs and such, some but not others of which have corresponding fields dead_cat, dead_mouse, etc, can if have a construct that comes to switch case exists(dead_cat) and

Re: Arriving on Newark Airport on Monday, anyone arriving at the same time

2012-06-25 Thread Thomas McGrath III
Now that would be funny. Tom McGrath Lazy River Software www.lazyriversoftware.com On Jun 25, 2012, at 5:12 PM, Colin Holgate wrote: > Sounds good. And what is Jo wearing? > > > On Jun 25, 2012, at 4:51 PM, Thomas McGrath III wrote: > >> Finally checked in. Nice place. Found Jo. Red and Bl

Re: Arriving on Newark Airport on Monday, anyone arriving at the same time

2012-06-25 Thread Jerry Jensen
Now I'm really sorry I didn't go! ;-) On Jun 25, 2012, at 2:12 PM, Colin Holgate wrote: > Sounds good. And what is Jo wearing? > > On Jun 25, 2012, at 4:51 PM, Thomas McGrath III wrote: > >> Finally checked in. Nice place. Found Jo. Red and Black dress. ___

Re: Arriving on Newark Airport on Monday, anyone arriving at the same time

2012-06-25 Thread Colin Holgate
Sounds good. And what is Jo wearing? On Jun 25, 2012, at 4:51 PM, Thomas McGrath III wrote: > Finally checked in. Nice place. Found Jo. Red and Black dress. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscri

Re: Arriving on Newark Airport on Monday, anyone arriving at the same time

2012-06-25 Thread Thomas McGrath III
Finally checked in. Nice place. Found Jo. Red and Black dress. Tom McGrath Lazy River Software www.lazyriversoftware.com On Jun 25, 2012, at 10:49 AM, Mark Wieder wrote: > Björnke- > > Yes, that's my plan, depending on whether or not it's raining at the > time (currently 40% chance of rain at

Re: can the httpproxy setting include a username and password

2012-06-25 Thread Terry Judd
On 26/06/2012, at 12:04 AM, "Dave Cragg" wrote: > > On 25 Jun 2012, at 11:42, Terry Judd wrote: > >> Thanks Tiemo - so something like... >> >> set the httpHeaders to "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" yeah? >> > > I think for a proxy, it should look like this: > > set the http

Re: Getting a URL is working, but not the put -- trying to write to a web file. Troubleshooting needed.

2012-06-25 Thread Guglielmo Braguglia
If the file that you have to transfer is smaller than 250 MBytes, you can easily use the Dropbox REST API, which uses *https://* protocol. Guglielmo On 25.06.2012 20:56, Mark Rauterkus wrote: Perhaps it is easier to try to write to a drop box location or else Google Drive? -- Ta. ___

Re: Getting a URL is working, but not the put -- trying to write to a web file. Troubleshooting needed.

2012-06-25 Thread Mark Schonewille
Hi Matthias and Mark, There are in fact a few ways to use the put URL command with the http protocol. If the server supports it, you can use "put myVar into url myURL" directly and retrieve the data in PHP. Some time ago, there was a discussion about it on this mailing list. Here's some more in

Re: Getting a URL is working, but not the put -- trying to write to a web file. Troubleshooting needed.

2012-06-25 Thread Matthias Rebbe
Hi Mark, someone might correct me, but i am pretty sure it is not possible to put something into an http url. And open file only works with files in a local file system. So if you want to write into a file on the web you can either use ftp. example: put "Hello from LiveCode" into URL "ftp://

Re: Getting a URL is working, but not the put -- trying to write to a web file. Troubleshooting needed.

2012-06-25 Thread Mark Rauterkus
Hi Mark, I'm nailing it on "wrong." But I'm not able to figure out how to write to a file on a web server yet. Perhaps it is with the server end? Can anyone make a LC script to change this file? http://Rauterkus.com/dreamers/2012/here.txt also known as ftp://ftp.rauterkus.com/public_html/drea

Re: Gradients (was "Re: Table field")

2012-06-25 Thread Bob Sneidar
Scott, that is just a magnificent tool. You never cease to amaze me! Bob On Jun 25, 2012, at 10:31 AM, Scott Rossi wrote: > Hi Peter: > > Execute the following in your LiveCode message box: > > go url > "http://www.tactilemedia.com/site_files/downloads/gradient_explorer.rev"; > > Regards,

Re: Gradients (was "Re: Table field")

2012-06-25 Thread Scott Rossi
Hi Peter: Execute the following in your LiveCode message box: go url "http://www.tactilemedia.com/site_files/downloads/gradient_explorer.rev"; Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Haworth wrote: > I'm glad this came up because it's an opportunity

Re: Getting a URL is working, but not the put -- trying to write to a web file. Troubleshooting needed.

2012-06-25 Thread Mark Schonewille
Hi Mark, I wouldn't mess with file permissions if you're not absolutely sure that it is necessary. In your first example, you use put URL "http://www.bla.com/etc"; but in your second script you write put file URL "http://..."; which is wrong. -- Best regards, Mark Schonewille Economy-x-Ta

Re: Datagrid Field Editor Question

2012-06-25 Thread Bob Sneidar
Can't you just type numToChar(13)? For cancel, type numToChar(27). Bob On Jun 24, 2012, at 9:30 AM, Peter Haworth wrote: > I have a datagrid with straightforward text cells and I'm using the various > messages/handlers provided by the datagrid to allow cells to be edited and > update the under

Re: MouseWithin

2012-06-25 Thread Klaus on-rev
Hi Bob, Am 25.06.2012 um 18:35 schrieb Bob Sneidar: > I have read in another post that you can vastly improve the performance of > the mouseTrap function by issuing "set catnap to true". :-D :-D :-D > Bob Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com _

Getting a URL is working, but not the put -- trying to write to a web file. Troubleshooting needed.

2012-06-25 Thread Mark Rauterkus
Hi, Newbie: This works in a button: on mouseUp put URL "http://www.Rauterkus.com/dreamers/2012/here.html"; into field "URL_Catcher" end mouseUp But this does not work in a button -- showing all the failures in all sorts of ways. on mouseUp -- open file URL "http://Rauterkus.com/dreamer

Re: MouseWithin

2012-06-25 Thread Bob Sneidar
I have read in another post that you can vastly improve the performance of the mouseTrap function by issuing "set catnap to true". Bob On Jun 23, 2012, at 11:07 PM, Peter Haworth wrote: > I just discovered the mouseTrap message but I think I can make a better one > with an external. > Pete >

Re: MouseWithin

2012-06-25 Thread Bob Sneidar
I hide my behavior buttons and access the scripts via the Application Browser. Bob On Jun 23, 2012, at 3:33 PM, Peter Haworth wrote: > Thanks Richard. As noted in my reply to Craig, I found a solution by using > mouseMove in the behavior instead of mouseWithin. There is still an > anomaly th

Re: MouseWithin

2012-06-25 Thread Bob Sneidar
Try creating a mouseWithin handler in both the table control and the behavior button and put a breakpoint at the beginning of each. See which fires first. Bob On Jun 23, 2012, at 12:59 PM, Peter Haworth wrote: > It would appear that a mouseWithin handler can't be used in a behavior > script?

Re: Table field

2012-06-25 Thread Peter Haworth
Thanks Bjornke. Jacques' idea wouyld work but I'd prefere a Livecode approach so I can alter it to deal with, e.g., different line heights and colors. I'm glad this came up because it's an opportunity for me to learn yet another area of Livecode - gradients - for which there is precious little pu

Re: Standalone won't run

2012-06-25 Thread Peter Haworth
Richard/Ken, Thanks for the suggestions. I was taken aback by the fact that the standalone quit "silently", no message of any sort except the Finder message on Snow Leopard that the program had quit "unexpectedly". That still seems strange to me but I'm realizing that there are several areas of c

Re: Arriving on Newark Airport on Monday, anyone arriving at the same time

2012-06-25 Thread Mark Wieder
Björnke- Yes, that's my plan, depending on whether or not it's raining at the time (currently 40% chance of rain at the time we'll arrive). -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please vis

Re: lcTaskList 1.0rc3 release candidate 3 available now

2012-06-25 Thread Chris Sheffield
Yes! Thanks for adding the horizontal scrollbar. I love this thing! On Jun 24, 2012, at 11:45 PM, Bill Vlahos wrote: > Thank you to everyone for their encouragement and feedback on the task list > IDE plugin. > > I believe this version (1.0rc3) is feature complete and bug free. Let me know >

Re: can the httpproxy setting include a username and password

2012-06-25 Thread Dave Cragg
On 25 Jun 2012, at 11:42, Terry Judd wrote: > Thanks Tiemo - so something like... > > set the httpHeaders to "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" yeah? > I think for a proxy, it should look like this: set the httpHeaders to "Proxy-Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" C

Re: can the httpproxy setting include a username and password

2012-06-25 Thread Terry Judd
On 25/06/2012, at 09:17 PM, Tiemo Hollmann TB wrote: Thanks Tiemo - so something like... set the httpHeaders to "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" yeah? Yes looks like Will this have the same effect as setting the web proxy (and supplying a username and password) in the proxies

AW: can the httpproxy setting include a username and password

2012-06-25 Thread Tiemo Hollmann TB
> > Thanks Tiemo - so something like... > > set the httpHeaders to "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" > yeah? Yes looks like > > Will this have the same effect as setting the web proxy (and supplying a > username and password) in the proxies tab of the Network preferences panel >

Re: Arriving on Newark Airport on Monday, anyone arriving at the same time

2012-06-25 Thread Björnke von Gierke
Just so you guys know, all Trains from Philadelphia to Atlantic city stop at Absecon. There's two bus lines nearby that go almost directly to the hotel from Absecon, 508 and 559. Sadly, they stop on opposite sites of the train station. If you go towards east from the station, there's a diner/bar

Re: can the httpproxy setting include a username and password

2012-06-25 Thread Terry Judd
Thanks Tiemo - so something like... set the httpHeaders to "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" yeah? Will this have the same effect as setting the web proxy (and supplying a username and password) in the proxies tab of the Network preferences panel on a Mac? Regards, Terry... O

Re: Table field

2012-06-25 Thread Björnke von Gierke
Hey, did Jacques tip help you achieve what you want? If not, here's an image that can be used as a line thingy: http://i.imgur.com/AXVve.png On 24.06.2012, at 15:55, Peter Haworth wrote: > Hi Jacques, > Thanks for the tip! > Pete > lcSQL Software > > > > On Sun, Jun 24,

AW: can the httpproxy setting include a username and password

2012-06-25 Thread Tiemo Hollmann TB
As far as I know, you set the HTTPProxy only to theServerAddress & colon & thePort But you can use the base64Encode(theUserName & colon & thePassword) in the httpHeaders Tiemo > -Ursprüngliche Nachricht- > Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.run

can the httpproxy setting include a username and password

2012-06-25 Thread Terry Judd
When setting the httpproxy property, can you include a username and password in front of it (username:password@host:port) and if so, is it used or ignored? Terry... Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The Unive