A code style question

2015-01-20 Thread Geoff Canyon
I think these two functions are equivalent. Which would you use? (or would you use a different function altogether?) function baseID newID if newID is empty then if not exists (the baseID of this stack) then set the baseID of this stack to this card end if else if

libURLftpUploadFile

2015-01-20 Thread Mats Åström
libURLftpUploadFile to my ON-REV server has stopped working on Windows. I use the same code that works on OSX except, of course, for the local file URL. USER is urlEncoded, PASSWORD does not need to be urlEncoded: put /Users/matsastrom/Desktop/ISO3166alpha2.tiff into aLocalFileURL put

libURLftpUploadFile

2015-01-20 Thread Mats Åström
Sorry to have bothered you at all… Having spent 6 hours on this I was certain that the fault was not mine. I could not have been more wrong - a misspelled password... Please disregard my post. /Mats Vidarebefordrat brev: Från: Mats Åström matsast...@yahoo.se Ämne: libURLftpUploadFile Datum:

Re: Subject: Advice on free app and user security

2015-01-20 Thread Mark Rauterkus
Hi Bill and others: Your question matches mine. I have a project that needs to do the same as what you ask. I will be interested in seeing your code and the advice of others. Ours is a bit more teacher / student relationship. We want to keep tabs of the student use in a remote DB. -- Ta.

Re: A code style question

2015-01-20 Thread Peter Haworth
A slightly corrected/modified version. To set the baseID: set the baseID of this stack to baseID(newID) To get the baseID get the baseID of this stack. The function(s) then become function baseID newID if newID is empty then return baseID_newIDempty() else return

Re: A code style question

2015-01-20 Thread Peter Haworth
I'd go with the first one. The second one makes my eyes glaze over! Plus I think there should be an else before the second if in the second function. I might consider something like this. function baseID newID if newID is empty then baseID_newIDempty else baseID_newIDnotempty

Re: Multilingual UI

2015-01-20 Thread Peter Haworth
I'm looking at doing this to. I'm wondering why property profiles haven't been mentioned in this thread. Seems like they would be a good solution, with one profile for each language. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and

Re: A code style question

2015-01-20 Thread Geoff Canyon
It would be good to post code that works: function baseID newID if (newID is not empty and not exists(newID)) or \ (newID is empty and not exists(the baseID of this stack)) then \ set the baseID of this stack to this card if newID is not empty then set the baseID of this

Re: more compound mysql command woes

2015-01-20 Thread Bob Sneidar
Copy paste the sql into an sql utility like mySQLWorkbench, execute it and see if it shows you an error. I did. I get this for the third line: Error Code: 1364. Field 'unqKy' doesn't have a default value There is your error. Bob S On Jan 19, 2015, at 20:54 , Dr. Hawkins doch...@gmail.com

Re: [beginner] x,y coordinates in LiveCode

2015-01-20 Thread Bob Sneidar
I can see the wisdom of this before we had the topLeft and bottomRight properties. You could simply parse the first two items and the last two items and get the same thing. Bob S On Jan 10, 2015, at 09:50 , Richard Gaskin ambassa...@fourthworld.commailto:ambassa...@fourthworld.com wrote:

Re: more compound mysql command woes

2015-01-20 Thread Peter Haworth
Try sending each command separately to make sure the syntax of each is correct. Pete lcSQL Software On Jan 19, 2015 8:54 PM, Dr. Hawkins doch...@gmail.com wrote: On Mon, Jan 19, 2015 at 7:11 PM, Peter Haworth p...@lcsql.com wrote: What error are you getting? They were all along the lines

Mac Menu Bar Apps

2015-01-20 Thread Peter Haworth
Is it possible to put a Livecode app into the Mac Menu Bar? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ use-livecode mailing list

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

2015-01-20 Thread Ben Rubinstein
An app built in LC, sitting on an old box (PPC Mac Mini running 10.4.11) has for several years happily been running a few times a day to perform a batch job involving retrieve some data from a remote system, processing it, and pushing a report to a new location. Recently, it's not been

Re: Re: extracting the thumbnail from digital photos?

2015-01-20 Thread Alejandro Tejada
Hi Malte, Using the more recent version the scripts, I have found a single image that produce an infinite loop while showing the thumbnail So, to be safe, it's better idea to change this line: repeat until offset(tStart,temp1) = 0 for this line: repeat until offset(tEnd,temp1) = 0 Al --

Re: A code style question

2015-01-20 Thread Richard Gaskin
The first is slightly faster, but they don't return the same result - running the code below I always get: 6 8 false this card 1000 Did I mess up the test somewhere? on mouseUp put 1000 into tIterations -- set the baseID of this stack to empty put the millisecs into t repeat

Re: A code style question

2015-01-20 Thread Geoff Canyon
okay, I think this is correct for both versions (gah) function baseID newID if newID is empty then if not exists (the baseID of this stack) then set the baseID of this stack to this card end if else if exists(newID) or \ newID is among the items of

A Got-Ya

2015-01-20 Thread Ralph DiMola
I just spent an 1.5 hours of what the heck just happened. My fault but just wanted to let others know. I have a custom stack prop named pRegion. This worked as expected except in one handler. It always returned empty. From either the handler or from the message box while the handler was being

Re: A code style question

2015-01-20 Thread Richard Gaskin
Thanks for the fix. Once I took care of the email line wrap it ran well. The first version is still slightly faster, and to my eye more readable, so I'd go with that. on mouseUp put 1000 into tIterations -- set the baseID of this stack to empty put the millisecs into t

Re: Livecode server + NGINX ?

2015-01-20 Thread Richard Gaskin
Pierre Sahores wrote: Did anyone know if Livecode Server can be set to use NGINX as its web server ? My (admittedly limited) understanding is that NginX doesn't support CGI, only FastCGI, so without threading LiveCode would seem a difficult fit for that server environment. -- Richard

Re: A Got-Ya

2015-01-20 Thread Dr. Hawkins
On Tue, Jan 20, 2015 at 11:44 AM, Peter Haworth p...@lcsql.com wrote: Confirmed here. Although unlikely to happen, that's a bad bug. The presence of the and of objectreference should make it clear that a custom property is being referenced, not a variable. But it's nastier than that: you

Livecode server + NGINX ?

2015-01-20 Thread Pierre Sahores
Hi Friends, Did anyone know if Livecode Server can be set to use NGINX as its web server ? Thanks and best regards, -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Record Audio in OS X and Windows

2015-01-20 Thread Devin Asay
On Jan 20, 2015, at 12:41 PM, JOHN PATTEN johnpat...@me.com wrote: Hi All, Is the record audio feature currently broken in LiveCode (7.0.0)? When I do this: on mouseUp set the dontuseQt to false record sound file test.wav answer the result end mouseUp I get message “error

Re: Mac Menu Bar Apps

2015-01-20 Thread Peter W A Wood
Peter If I remember correctly, Clarify installed into the Mac Menu Bar. I don’t know how though. I guess Trevor deVore knows. Regards Peter On 21 Jan 2015, at 02:35, Peter Haworth p...@lcsql.com wrote: Is it possible to put a Livecode app into the Mac Menu Bar? Pete lcSQL Software

Re: A Got-Ya

2015-01-20 Thread Dave Kilroy
For those who haven't read it yet I'll leave this link to Richard's excellent article here... http://www.fourthworld.com/embassy/articles/scriptstyle.html - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this

Speaking of sockets...

2015-01-20 Thread Bob Sneidar
I’ve mentioned in the past that if I am unable to connect to a mySQL server (such as going to a location with my laptop and finding their firewall blocks port 3306) it takes close to a minute for LC to release and tell me it cannot connect. During that time LC is completely unresponsive. I

Re: A Got-Ya

2015-01-20 Thread Geoff Canyon
Two things to consider: 1. It's almost impossible to catch conflicts with custom properties. They don't have to be mentioned by name in a script because: 2. It's a feature that custom property names can be stored/referenced using variables. For example: repeat for each item P in left,top

Re: Livecode server + NGINX ?

2015-01-20 Thread Peter W A Wood
Pierre Richard is correct that nginx does not support CGI. It will forward requests to an upstream server or a number of upstream servers. I support one application that has been running for a couple of years that forwards CGI requests to a second server. (The second server is Cheyenne from

Re: Speaking of sockets...

2015-01-20 Thread Dr. Hawkins
On Tue, Jan 20, 2015 at 4:35 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: I’ve mentioned in the past that if I am unable to connect to a mySQL server (such as going to a location with my laptop and finding their firewall blocks port 3306) it takes close to a minute for LC to release and

Re: Record Audio in OS X and Windows

2015-01-20 Thread JOHN PATTEN
Thanks Devin, I will give that a try. I also found a work around that works fine too, AppleScript. Put this in the a field: tell application Finder set savePath to (the path to the desktop folder as text) record.m4a tell application QuickTime Player activate

Re: A code style question

2015-01-20 Thread Geoff Canyon
I figured the first version would be faster, since it only checks each thing once, where the second version tests some booleans twice, but this isn't going to be called repeatedly, so maximum performance isn't an issue. I was more curious about the readability, because I thought I might be the

Re: A code style question

2015-01-20 Thread J. Landman Gay
On 1/20/2015 7:33 PM, Geoff Canyon wrote: I was more curious about the readability, because I thought I might be the odd one out here, and it seems I am. The nested if statements in the first one, and the duplicated set the baseID of this stack to this card offend my eye. There's two of

Re: How to access a file on a remote computer

2015-01-20 Thread Bob Sneidar
This is pretty standard for POSIX permissions. Even though a containing folder can have the appropriate permissions, the owner of the file is still the one who created it. In order to properly ensure your cohorts can read and write to every file in a share, you need to create a user with the

Re: How to access a file on a remote computer

2015-01-20 Thread Bob Sneidar
what is showStatus? There is no such command in the dictionary. Bob S On Jan 18, 2015, at 20:15 , Brahmanathaswami bra...@hindu.orgmailto:bra...@hindu.org wrote: put hostAddressToName(tIP) into tServer if tServer is Empty then set the dialogData to Sorry, there is a connection

Re: How to access a file on a remote computer

2015-01-20 Thread Bob Sneidar
hostAddressToName() returns an error if there is no internet connection. Not empty. Unless the dictionary is wrong. Bob S On Jan 18, 2015, at 20:15 , Brahmanathaswami bra...@hindu.orgmailto:bra...@hindu.org wrote: put hostAddressToName(tIP) into tServer if tServer is Empty then set

Record Audio in OS X and Windows

2015-01-20 Thread JOHN PATTEN
Hi All, Is the record audio feature currently broken in LiveCode (7.0.0)? When I do this: on mouseUp set the dontuseQt to false record sound file test.wav answer the result end mouseUp I get message “error 2 starting recording” Thank you! John Patten SUSD

Re: A Got-Ya

2015-01-20 Thread Peter Haworth
Confirmed here. Although unlikely to happen, that's a bad bug. The presence of the and of objectreference should make it clear that a custom property is being referenced, not a variable. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and

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

2015-01-20 Thread Bob Sneidar
I suspect whatever system you are connecting to has modified in some way how it encrypts data using SSL. Sounds crazy, but Microsoft recently did something to their TLS in their cloud offerings that summarily prevented an entire series of Konica brand copiers from sending email through Exchange

Re: How to access a file on a remote computer

2015-01-20 Thread Peter Haworth
Hi Kay, Sorry for the delayed reply, been too busy getting the filename thing working. I'm using LC 6.6.2 and the controller works fine there (except see my comments below). I just tried exactly the same stack with 7.0.1 and confirm what you experienced, nothing plays. I'm using mp3 files.

Re: A Got-Ya

2015-01-20 Thread Mike Kerner
ugh. That's an ugly. I'd file a feature request to have the parser/compiler catch those for you. I am a big proponent of loose syntax, but if it's going to be loose enough that you can do THAT, then you either should get an error for misusing the token or it should be smart enough to not fail.

Re: How to access a file on a remote computer

2015-01-20 Thread Scott Rossi
You may be running into the audio-only player bug already mentioned here: http://runtime-revolution.278305.n4.nabble.com/new-player-AV-Foundation-and-MP3-td4687743.html Try using the playRate workaround and see if that makes things work for you (for now). Regards, Scott Rossi Creative