Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts

2015-02-05 Thread Scott Rossi
If you can do it, the easiest way is to place all your handlers in the card script of the first card of your main stack. All the handlers will be triggered by the main stack, but not the substacks. If you must place your handlers in the stack script, you can compare the name of the owner of

Best Practice: Prevent Substacks from Triggering Main Stack Scripts

2015-02-05 Thread Brahmanathaswami
If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I just moved all those to the main background group of the main stack, but I'm not happy with that

Re: Mobile cloud storage

2015-02-05 Thread Dave Kilroy
Oops This is wrong: Dave Kilroy wrote so tightly bound-in to phxDropboxLib which is not Guglielmo's baby and not mine This is what I should have written: so tightly bound-in to phxDropboxLib which is Guglielmo's baby and not mine Dave - Some are born coders, some achieve coding, and

Re: Mobile cloud storage

2015-02-05 Thread Matthias Rebbe | M-R-D
Hi Alan, i assume it is not on sale anymore. I purchased that external in 2012 and it worked as supposed. But with newer LC and iOS SDK it did not work anymore. I contacted Maarten and he send me the source code, so i could compile it with newer xCode version. I was able to, but was not

Re: Mobile cloud storage

2015-02-05 Thread Dave Kilroy
Concerning authentication and fog - is it just Dropbox authentication that is 'foggy'? If so then I may be able to help I'm using phxDropboxLib together with a dropbox app (created on dropbox's website, it's very easy to do) and a new dropbox account to allow apps to connect to the same dropbox

Re: Livecode Server on Dreamhost fails in Ubuntu upgrade

2015-02-05 Thread Richard Gaskin
Phil Davis wrote: I upgraded my DH/LC server to 7.0 and am finding I can't use do in my scripts. Is that your experience? For me it causes a SIGIOT error in the HTTP error log and no further output to the browser (or your client of choice). Maybe this is noted in the release docs - dunno. It

Re: stackfileversion and locking 6.5.2

2015-02-05 Thread Bob Sneidar
Probably unrelated, but I have noticed that text that has been produced in a PDF via their OCR tool will have hidden characters in it that will prevent me from inserting or updating records in my SQL database with that data. The SQL generates an error as though there were nothing beyond the

Re: Livecode Precision or me?

2015-02-05 Thread Bob Sneidar
I was just about to tell you what the problem was! ;-) Bob S On Jan 31, 2015, at 12:42 , Michael Doub miked...@gmail.com wrote: Of coarse it was me. And as you would expect, I found it right after sending the mail to the list. put lon2 - lon2 into dlon should be put lon2 - lon1 into

Re: ISO 8601 date to seconds

2015-02-05 Thread Bob Sneidar
It’s my understanding that sqLite accepts any value in any field type, whereas mySQL will toss an error and reject the SQL statement. Correct me if I am wrong, it’s happened before. Bob S On Jan 31, 2015, at 12:44 , Peter Haworth p...@lcsql.com wrote: On Sat, Jan 31, 2015 at 11:41 AM,

Re: Where did the handlers for my menukeys go???

2015-02-05 Thread Bob Sneidar
My mind powers only work if my subjects actually can remember what I am trying to read their mind for. ;-) But seriously, try the find function. Bob S On Jan 31, 2015, at 13:00 , Dr. Hawkins doch...@gmail.commailto:doch...@gmail.com wrote: Sometime, over two years ago, I set up some key

Re: How to detect that user closed window

2015-02-05 Thread Bob Sneidar
It doesn’t work in the IDE. I tried it. I set a checkpoint on the first line of that very handler, and I got the save dialog before the handler was triggered, which is why I put it in the frontScript. Besides, in the frontScript, it works no matter which stack or substack I close. This is

Re: Mobile cloud storage

2015-02-05 Thread Mark Wilcox
So most folks have either iCloud, Goggle Drive, Dropbox, or OwnCloud, and using those sure beats building a complex storage backend for simple apps. Does our community have yet a library for allowing the user to pick which common storage system they have and an API for reading/writing to

Re: gratuitous inclusion of oracle in 7.0.2-RC2

2015-02-05 Thread Richard Gaskin
J. Landman Gay wrote: The project I've been on lately has hundreds of stacks and thousands of support files with gigabytes of data, they're just not all in the main app. It's easier that way. The app itself takes under 15 seconds to compile. That's a good strategy for many reasons, but I

Re: How to detect that user closed window

2015-02-05 Thread Richard Gaskin
Bob Sneidar wrote: Nope. You would think it does, but I have this in the stack script: on closeStackRequest save this stack pass closeStackRequest end closeStackRequest I still get the save dialog when I close it. The script above will work well in a standalone, but won't account for

Re: How to detect that user closed window

2015-02-05 Thread Bob Sneidar
Had to pass closeStackRequest, but I still get the menu. I am not sure there is a way in LC to do this, and there ought to be. Perhaps I’ll include a feature request for this, something like a property called suppressSavePrompt. It can be set to values “save” or “close”. Bob S On Feb 5,

Re: Troubles with inequality

2015-02-05 Thread Jim Lambert
Graham wrote: I wanted to test if two numbers were equal, knowing that they probably weren’t exactly equal to the last decimal place but nevertheless were 'engineering equal' as it were - say to six places of decimals. Perhaps performing a statround() on the numbers prior to checking

Re: encrypt storage

2015-02-05 Thread Richard Gaskin
Bob Sneidar wrote: No I am encrypting the password using the encrypt command before storing it in mySQL. Does the system handle authentication, or is it just storing the password for some other system? If the password will be decrypted on the server (as Mark Wieder is probably typing a

Re: encrypt storage

2015-02-05 Thread Bob Sneidar
No I am encrypting the password using the encrypt command before storing it in mySQL. encrypt thePassword using aes128 with thePassKey put it into thePassword get empty Works fine on a LAN, but not sure what would happen if I passed this through a 20 year old router. Bob S On Feb 5,

Re: Set Script Limits in Standalones

2015-02-05 Thread Bob Sneidar
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? Bob S On Feb 1, 2015, at 08:50 , Earthednet-wp proth...@earthednet.orgmailto:proth...@earthednet.org wrote: Personally, I'd rather be judged on my

Re: How to detect that user closed window

2015-02-05 Thread Bob Sneidar
Didn’t work. Bob S on closeStackRequest dispatch menuPick to btn File of grp revMenuBar \ of stack revMenuBar with Save end closeStackRequest On Feb 5, 2015, at 09:10 , Richard Gaskin ambassa...@fourthworld.commailto:ambassa...@fourthworld.com wrote: dispatch menuPick to

Re: Livecode Server on Dreamhost fails in Ubuntu upgrade

2015-02-05 Thread Phil Davis
On 2/5/15 6:51 AM, Richard Gaskin wrote: Phil Davis wrote: I upgraded my DH/LC server to 7.0 and am finding I can't use do in my scripts. Is that your experience? For me it causes a SIGIOT error in the HTTP error log and no further output to the browser (or your client of choice). Maybe this

Re: removing accumulated garbage fro stacks?

2015-02-05 Thread Jim Lambert
If I removed all the accumulated garbage in my stacks none of my code would be left! Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Invisible character treated as word?

2015-02-05 Thread Bob Sneidar
he means non-printing character. Bob S On Jan 30, 2015, at 21:01 , Thierry Douez th.do...@gmail.commailto:th.do...@gmail.com wrote: Umm, as invisible char has no-standard meaning, ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: gratuitous inclusion of oracle in 7.0.2-RC2

2015-02-05 Thread Bob Sneidar
Ya once I heard about the splashStack method and all the problems it solves, it’s the only way I will build an app now. Bob S On Feb 4, 2015, at 22:25 , J. Landman Gay jac...@hyperactivesw.commailto:jac...@hyperactivesw.com wrote: On 2/4/2015 11:54 PM, Dr. Hawkins wrote: On Wed, Feb 4, 2015

Re: Troubles with inequality

2015-02-05 Thread Bob Sneidar
So here’s what I came up with. Pretty simple. on mouseUp put 5.226 into myVar set the numberFormat to 0.00 add .001 to myVar put myvar cr into myString set the numberFormat to 0.000 put myvar after myString put myString end mouseUp I get 5.23 5.227 Clearly the value in

Re: encrypt storage

2015-02-05 Thread Richard Gaskin
Bob Sneidar wrote: The issue is whether or not the aes128 hash can pass unmolested over the internet. I suppose I could just binary encode/decode it for good measure. Most hashes return binary values directly, but it's common to convert them to hex for general storage and transport, e.g.:

Re: Rotating non-square images

2015-02-05 Thread Bob Sneidar
Do you have locLoc set to false? Bob S On Jan 31, 2015, at 13:03 , Richmond richmondmathew...@gmail.commailto:richmondmathew...@gmail.com wrote: I must say I wonder why Livecode still mucks up non-square images: http://forums.livecode.com/viewtopic.php?f=22t=22974p=118632#p118632 Richmond.

Re: Rotating non-square images

2015-02-05 Thread Bob Sneidar
I took a screen shot of the image, pasted it in a new LC stack, it rotates fine. Then I set the locLoc to true and… well… it didn’t. Bob S On Feb 5, 2015, at 08:17 , Bob Sneidar bobsnei...@iotecdigital.com wrote: Do you have locLoc set to false? Bob S On Jan 31, 2015, at 13:03 ,

Re: Invisible character treated as word?

2015-02-05 Thread Bob Sneidar
[ -~] http://www.catonmat.net/blog/my-favorite-regex/ bob s On Jan 31, 2015, at 13:03 , J. Landman Gay jac...@hyperactivesw.com wrote: On 1/30/2015 11:01 PM, Thierry Douez wrote: if looking at regular expressions it's like a goat staring at a new fence, Wonderful imagery. :) I knew

Re: encrypt storage

2015-02-05 Thread Bob Sneidar
It’s a simple password entered in the ask password dialog. The issue is whether or not the aes128 hash can pass unmolested over the internet. I suppose I could just binary encode/decode it for good measure. Bob S On Feb 4, 2015, at 18:29 , kee nethery k...@kagi.com wrote: Need more

Re: How to detect that user closed window

2015-02-05 Thread Bob Sneidar
Nope. You would think it does, but I have this in the stack script: on closeStackRequest save this stack pass closeStackRequest end closeStackRequest I still get the save dialog when I close it. Bob S On Feb 4, 2015, at 14:32 , J. Landman Gay jac...@hyperactivesw.com wrote: On

Re: How to detect that user closed window

2015-02-05 Thread Mike Bonner
Silly question, but.. the filename of the stack is set, right? If its empty, when you try to save, the save as dialog will pop. On Thu, Feb 5, 2015 at 1:44 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: It doesn’t work in the IDE. I tried it. I set a checkpoint on the first line of that

Re: Mobile cloud storage

2015-02-05 Thread Alan Stenhouse
Has anyone used this external miCloud? Would like to have a look but Maarten’s website seems to no longer exist… http://maartenkoopmans.com/micloud Anyone heard from him lately or used the external? Is it available somewhere else? cheers Alan On 4 Feb 2015, at 11:42 pm,

Re: encrypt storage

2015-02-05 Thread Mark Wieder
Richard- Thursday, February 5, 2015, 9:38:56 AM, you wrote: (as Mark Wieder is probably typing a reply to this as I'm writing g) chortle -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The

iOS app rejection issue

2015-02-05 Thread Gerry
Hi all I’ve just submitted an app to Apple using LC 6.7.2 (rc 2) and the latest version of xCode (6.1.1). That xCode version is the only one set in the mobile prefs for LiveCode. The app build requirement is set to iOS 8 or later. I’m getting the following error messages back from Apple with

Re: iOS app rejection issue

2015-02-05 Thread Jeff Brindle
Gerry, Apparently that is an error in the current RCs (7.0.2 and 6.7). I ran into the same thing and the devs have confirmed that they are fixing it. I asked Heather by support email and apparently there is a new version coming in a day or so. Frustrating I know. Cheers Cheers, Jeff Brindle

Re: iOS app rejection issue

2015-02-05 Thread Gerry
Update: Submitting with the minimum supported OS set to 7.0 I just get the first error back. Gerry On Fri Feb 06 2015 at 1:52:25 PM Gerry gerry.or...@gmail.com wrote: Hi all I've just submitted an app to Apple using LC 6.7.2 (rc 2) and the latest version of xCode (6.1.1). That xCode

Re: encrypt storage

2015-02-05 Thread Bob Sneidar
I am not using a web server for this, I am communicating directly with the SQL server. I understand that most people regard this as a major no-no, but the information being stored is not confidential, just names and addresses along with copier and network information. At some point I intend to

Re: encrypt storage

2015-02-05 Thread Jim Lambert
Richard wrote: PS: Annoyance report: If I run that script above as a single line in the Message Box, a la: get binaryDecode(h*, sha1digest(tSomeString), tHex); put tHex ...the Message Box shows true, but when I run it in a button it shows the expected hex string. Have any of

Re: Rotating non-square images

2015-02-05 Thread Richmond
On 05/02/15 18:21, Bob Sneidar wrote: I took a screen shot of the image, pasted it in a new LC stack, it rotates fine. Then I set the locLoc to true and… well… it didn’t. Bob S Thanks for that, will have a go. Richmond. ___ use-livecode mailing

Re: How to detect that user closed window

2015-02-05 Thread Bob Sneidar
It’s called gREVStackStatus. Given: on closeStackRequest save this stack put gREVStackStatus into aStackStatus put empty into aStackStatus [Customer Search] put aStackStatus into gREVStackStatus pass closeStackRequest end closeStackRequest Still no workie. I still get the save

Re: How to detect that user closed window

2015-02-05 Thread Peter Haworth
Is empty the right value? I thought it had true/false in the values. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Thu, Feb 5, 2015 at 10:18 AM, Bob Sneidar

Re: How to detect that user closed window

2015-02-05 Thread Bob Sneidar
Hi all. Simple workaround. Aren’t most workarounds simple in the end? Include this in a frontScript: on closeStackRequest save stack the currentWindow pass closeStackRequest end closeStackRequest Bob S ___ use-livecode mailing list

Re: encrypt storage

2015-02-05 Thread Richard Gaskin
Bob Sneidar wrote: I am not using a web server for this, I am communicating directly with the SQL server. I understand that most people regard this as a major no-no, but the information being stored is not confidential, just names and addresses along with copier and network information. If

Re: How to detect that user closed window

2015-02-05 Thread Peter Haworth
I think there's a global array in the IDE keyed by stack name with a value of true/false that indicates whether the stack is dirty. You could probably set that appropriately but unfortunately, I can't remember its name, except that it begins with g!!! Pete lcSQL Software http://www.lcsql.com

Re: Troubles with inequality

2015-02-05 Thread Peter Haworth
It's almost like there should be a cast() function to change the type of a variable, although that would be most unLivecodeLike. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Wed,

Re: removing accumulated garbage fro stacks?

2015-02-05 Thread Richmond
On 05/02/15 19:41, Jim Lambert wrote: If I removed all the accumulated garbage in my stacks none of my code would be left! Jim Lambert ___ Likewise :) Lovely comment: right on target! Richmond. ___

Re: Question re project organization

2015-02-05 Thread William Prothero
Never mind! There’s lots happening on the list re this. I expect the splash app model is the way to go. I’ll have to do some testing and re-organizing to develop more specific questions. Regards, Bill On Feb 4, 2015, at 3:39 PM, William Prothero proth...@earthednet.org wrote: Folks: I’d

Re: How to detect that user closed window

2015-02-05 Thread FlexibleLearning.com
The IDE can be easily suppressed with... on closeStackRequest lock messages save this stack pass closeStackRequest end closeStackRequest Hugh Senior FLCo Bob Sneidar wrote: Nope. You would think it does, but I have this in the stack script: on closeStackRequest save