Re: Modularising Code

2014-05-08 Thread Terence Heaford
Do you think it is better to use insert [the] script of object into {front | back} for modularising your code when the code is to be solely contained within your project? Is there a limit to the number of front and back scripts a project can have? Is there any downside to using front/back vs.

Re: Server Scripts Editor

2014-05-08 Thread Simon Smith
Can't go wrong with sublime text. On Fri, May 9, 2014 at 1:57 AM, Nakia Brewer wrote: > Hi, > > Just starting to play with some LC Server scripts and was wondering what > text editor people use for the LC file? > > Cheers and Happy Friday! > > > > > > > COPYRIGHT / DISCLAIMER: This message and/o

Re: Server Scripts Editor

2014-05-08 Thread Phil Davis
Nakia, I do what Richard does - put as much code as possible in library stacks, which I can edit in the IDE and upload them to the server for testing (or when done). Much of my server code handles requests from LC desktop apps, so I don't have to deal with HTML pages so much. But when my serv

Re: Server Scripts Editor

2014-05-08 Thread Richard Gaskin
Nakia Brewer wrote: > Just starting to play with some LC Server scripts and was wondering > what text editor people use for the LC file? Most of my LC Server apps are talking to LC-based clients, so all they need are libraries, which lets me use the LC editor. Even when I do Web sites with LC

Re: Server Scripts Editor

2014-05-08 Thread Mark Wieder
Nakia- Thursday, May 8, 2014, 4:57:05 PM, you wrote: > Just starting to play with some LC Server scripts and was > wondering what text editor people use for the LC file? Github just released Atom for OSX. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and

Re: [OFF] Cool Plugins

2014-05-08 Thread Alejandro Tejada
Mike Kerner wrote > It is often harder than it should be to find things that make development > life better in LC. I found two over the weekend at Scott Rossi's site, > "tmAlign" and "tmEffects", and it made me a little mad that I didn't find > them before now. > [snip] I have the sensation that

Re: Server Scripts Editor

2014-05-08 Thread Scott Rossi
On OSX: I use Espresso -- it's really intended for web editing. Doesn't provide any special benefits for LC script editing, but includes server upload, browser preview, and file management. Coda is supposed to be good (same as above). I read good things about SublimeText. Regards, Scott Rossi

Re: [OFF] Cool Plugins

2014-05-08 Thread Charles E Buchwald
Thanks for this, Scott! I'll look forward to them... On 08 May 2014, at 5:06 PM, Scott Rossi wrote: > Mike is quite kind. > > I need to update a number of these tool things, and will make a public > announcement when they're available. > > Best Regards, > > Scott Rossi > Creative Director > T

Re: FOLLOW UP: iOS Provisioning Profiles - Dev vs. Production

2014-05-08 Thread Dave Kilroy
Well done for solving that puzzle - have a nap, drink some whiskey, feel the sun on your face :) - "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.n

Re: Mysql UNIQUE and .lc server scripts?

2014-05-08 Thread Peter Haworth
Hi John, What's in the result after calling revExecuteSQL to issue your INSERT statement? You should get either an integer count of the number of rows inserted or an error message. Pete lcSQL Software Home of lcStackBrowser and SQ

Server Scripts Editor

2014-05-08 Thread Nakia Brewer
Hi, Just starting to play with some LC Server scripts and was wondering what text editor people use for the LC file? Cheers and Happy Friday! COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not

Re: Mysql UNIQUE and .lc server scripts?

2014-05-08 Thread Mark Schonewille
Hi John, After executing a MySQL command with revExecuteSQL, the result contains either an error or an integer. If the result is an error, then you know that the change couldn't be made and 0 records were affected. If the result is an integer, then you need to check that the integer is greater

Mysql UNIQUE and .lc server scripts?

2014-05-08 Thread JOHN PATTEN
Hi All, I’m using some .lc server scripts to add records to a database from an app. My database has one field that is UNIQUE. Is it possible to capture the mySQL message and report it back to the app when text entered for specific field is not unique? The database won’t create the record due

RE: Testing proxy servers in 6.6.2/6.7

2014-05-08 Thread Nakia Brewer
I am starting to think its maybe something I am doing wrong. Trevor, Happy for you to send me a test stack if you want me to do some further testing Nakia Brewer | Technology & Solutions Manager | Equipment Management Solutions t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au   ACN 0

Digest Access Authentication with cookie? How

2014-05-08 Thread Matthias Rebbe | M-R-D
Hi, i need to connect to a webserver which uses Digest Access Authentication to use its API. If i understood the documentation right, then the server does use a cookie to store the session. Is there a way to do this in livecode? When i try this in Safari then it works w/o problems. But when

RE: Testing proxy servers in 6.6.2/6.7

2014-05-08 Thread Nakia Brewer
Here is what it logs when I take it off the proxy. httpproxyforurl for host 'samaritans.org.au': Proxy for URL: socket selected: csu.harvestapp.com:443|6930 GET /account/who_am_i HTTP/1.1 Host: csu.harvestapp.com User-Agent: LiveCode (Win32) Authorization: Basic I HAVE MODIFIED THIS

RE: Testing proxy servers in 6.6.2/6.7

2014-05-08 Thread Nakia Brewer
This is what I get httpproxyforurl for host 'samaritans.org.au': Proxy for URL: socket selected: csu.harvestapp.com:443|6927 socket error csu.harvestapp.com:443|6927 Error 10061 on socket httpproxyforurl for host 'samaritans.org.au': Proxy for URL: socket selected: csu.harvestapp.com:443|6928

Re: FOLLOW UP: iOS Provisioning Profiles - Dev vs. Production

2014-05-08 Thread Dan Friedman
Mike, In this case, my "client" is a minor league baseball team. So, the app is in the app store so their fans can follow the team. Thanks, -Dan > Dan, > > For internal/client distribution, why not use testApp? You can completely > bypass the app store that way.

Re: [OFF] Cool Plugins

2014-05-08 Thread Scott Rossi
Mike is quite kind. I need to update a number of these tool things, and will make a public announcement when they're available. Best Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 5/8/14 2:30 PM, "Charles E Buchwald" wrote: >Hey Mike... I'm not sure I've seen those p

Re: FOLLOW UP: iOS Provisioning Profiles - Dev vs. Production

2014-05-08 Thread Mike Kerner
Dan, For internal/client distribution, why not use testApp? You can completely bypass the app store that way. On Thu, May 8, 2014 at 5:01 PM, Dan Friedman wrote: > If you've seen me on this list during the last week (see also "iOS App > Crash"), you know that I have been trying to track down a

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread Rick Harrison
Hi Chris, Jacque, and Stephen, I built a test stack just to test the shutdown handler. I used the write to file to see if it created a file and then read the data back in to see if it worked. The shutdown does not appear to be working at all. If I have a button send the message to the shutdown

Re: [OFF] Cool Plugins

2014-05-08 Thread Charles E Buchwald
Hey Mike... I'm not sure I've seen those plugins before. I googled them but couldn't find a link. Do you have a link to either one? - Charles On 08 May 2014, at 3:30 PM, Mike Kerner wrote: > It is often harder than it should be to find things that make development > life better in LC. I found

Resizing a group's controls when the group is resized

2014-05-08 Thread Peter Haworth
I have a resizeControl handler for a group in which I've tried changing the height and width of the controls in the group but I can't get it to work correctly. The lockLocation of the controls in the group is set true. To narrow down the problem, I changed the resizeControl handler to have just o

FOLLOW UP: iOS Provisioning Profiles - Dev vs. Production

2014-05-08 Thread Dan Friedman
If you've seen me on this list during the last week (see also "iOS App Crash"), you know that I have been trying to track down a problem with an update to one of my iOS apps that was crashing on launch after installing from the App Store. It didn't matter what version of the OS you were running

Re: Modularising Code

2014-05-08 Thread Dar Scott
I remember there are cases where an infinite loop can occur but I don’t remember the details. However, the message path crawl that I made does use pass and it does get to the back script that puts “bottom” into the message box. Dar On May 8, 2014, at 2:22 PM, Earthednet-wp wrote: > Thanks f

[OFF] Cool Plugins

2014-05-08 Thread Mike Kerner
It is often harder than it should be to find things that make development life better in LC. I found two over the weekend at Scott Rossi's site, "tmAlign" and "tmEffects", and it made me a little mad that I didn't find them before now. tmAlign is really sweet. It makes lining up, resizing, and s

Re: Modularising Code

2014-05-08 Thread Dar Scott
Arg. LiveCode doesn’t lie, but sleepy Dar might not point out what is significant. Being twice in the message path is a characteristic of messages sent to libraries and has nothing to do with any being a substack. It is a library thing. The issue with the substack is that the main stack is

Re: Modularising Code

2014-05-08 Thread Earthednet-wp
Thanks for the reference to Richard's page! Excellent! It clarified some items I've had on my mind. Btw, Dar's post suggests to me that one could create an infinite loop if there was a script in the substack that passed a message, then a script with the same name in the main stack also passed t

Re: Modularising Code

2014-05-08 Thread Dar Scott
I goofed. What I said isn’t right. I didn’t remember the quirk right. Here it is right from LiveCode itself for a stack, its substack also wearing the hat of a library, and some other stack. Listed is the target and the current stack name in the message path crawl. (Non-stacks are skipped in

7.0 dp 3

2014-05-08 Thread Richmond
The Dictionary stack is still as problematic on Linux (XFCE) as it was in dp 2 and dp 1. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: h

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread J. Landman Gay
I don't know, I'm close to a release date and have been working exclusively with 6.6.1. If it works now, that's great. Wonder why my bug report wasn't updated. On 5/8/14, 2:17 PM, Chris Sheffield wrote: Is this fixed in 6.6.2? Because “put” works for me in RC3 under Mavericks. On May 8, 2014,

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread Stephen MacLean
Works for me too in RC3 and 10.9.2 Best, Steve On May 8, 2014, at 3:17 PM, Chris Sheffield wrote: > Is this fixed in 6.6.2? Because “put” works for me in RC3 under Mavericks. > > On May 8, 2014, at 1:03 PM, J. Landman Gay wrote: > >> The problem is only partially with LC. Apple changed the

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread Chris Sheffield
Is this fixed in 6.6.2? Because “put” works for me in RC3 under Mavericks. On May 8, 2014, at 1:03 PM, J. Landman Gay wrote: > The problem is only partially with LC. Apple changed the way stdout works in > Mavericks, so if you're running that OS then "put" will no longer go to > Console. I hav

Re: Modularising Code

2014-05-08 Thread Peter Haworth
I'd also recommend Richard Gaskin's excellent article on the subject which can be found at http://www.fourthworld.com/embassy/articles/revolution_message_path.html Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread J. Landman Gay
On May 8, 2014, at 9:20 AM, Rick Harrison wrote: I’m using LC version 6.5.2 and tested in both the simulator and on the device. I used the “put” statement at the beginning of the handler but do not see my message displayed when I press the “Home button”. I also tried using an answer statement t

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread J. Landman Gay
On 5/8/14, 12:35 PM, Chris Sheffield wrote: Unfortunately, no it doesn’t work for me either. However, I seem to remember a bug in one version of LC where using put statements itself did not work correctly. The output wasn’t displayed in the console. Unfortunately I don’t remember which version. D

Re: Modularising Code

2014-05-08 Thread Terence Heaford
Thanks for your comments: Just had a look at this and as I suspected could see no reference to using a substack as a library only stacks. This could probably do with clarifying in both the user guide and dictionary. In the dictionary for example it says “start using stack”. May be a little pe

Re: Modularising Code

2014-05-08 Thread Mike Kerner
Terry, Definitely use substacks to modularize your code, BUT, I would suggest you do just a wee bit of reading on the message path, because it's important for everyone, and all of the questions you asked are discussed there: 1) In the LC toolbar at the top, the second-to right button is "Resources"

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread Chris Sheffield
Unfortunately, no it doesn’t work for me either. However, I seem to remember a bug in one version of LC where using put statements itself did not work correctly. The output wasn’t displayed in the console. Unfortunately I don’t remember which version. Does anyone else? So there’s a possibility w

Re: [OT] For Mark Laffoon: Scripter's Scrapbook

2014-05-08 Thread Mark Laffoon
Hugh, Thanks for trying to find me through another method! What I was attempting (poorly perhaps) to refer to was including a link to a pre-existing ssbk entry when using the API to set a new entries data. Example: *ssBkSetEntryData* "MyEntry","Pinky Swears","Link to:" && *ssBkGetEntryLink*"13

Re: Modularising Code

2014-05-08 Thread Terence Heaford
My understanding is if you create a library of a stack it’s stack script is placed between the main stack that has called start using and LiveCode’s engine. Is that correct? If yes then I presume if you start using a substack then the substack script is placed between the main stack that has c

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread Rick Harrison
Hi Jacque, Interesting point, although my script only contains the following: on shutdown put "Inside the shutdown script in the stack script section. I guess it works!" answer "Inside the shutdown script in the stack script section. I guess it works!" end shutdown Neither message show

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread Rick Harrison
Hi Chris, I’m using LC version 6.5.2 and tested in both the simulator and on the device. I used the “put” statement at the beginning of the handler but do not see my message displayed when I press the “Home button”. I also tried using an answer statement to do the same thing. No message appears

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread J. Landman Gay
If the shutdown handler has an error, it will abort silently, giving the impression that it never triggered. On May 8, 2014 9:17:58 AM CDT, Rick Harrison wrote: >Hi Terry, > >I’ve tried it just about everywhere including in the stack script. >It just isn’t kicking in for some reason. > >Other i

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread Chris Sheffield
Rick, This seems to be working fine for me. Which version of LC are you using? I just did a simple test using a put command and checking console output using LC 6.6.2 RC3. Tested in both the simulator and on a device. My shutdown handler triggers in both cases. You might try a simple test like

RE: set the location of an iPad menuPick

2014-05-08 Thread Ralph DiMola
Sorry to be so late to this party. I submitted a bug report for the iOS picker http://quality.runrev.com/show_bug.cgi?id=12362 While figuring out what this bug is all about I found the location of the picker is best case position to point the pick list at the field or button whose handler requeste

Snapshot quirks bug

2014-05-08 Thread Earthednet-wp
Folks, FYI, I just got a confirmation notice from livecode about my bug report about snapshot quirks, failures. It's bug 12404. Man, these guys are really on top of things! Best, Bill William Prothero http://es.earthednet.org > On May 8, 2014, at 3:06 AM, Neil Roger wrote: > > Hi Mike, > >

Re: Modularising Code

2014-05-08 Thread Earthednet-wp
Folks, What I am doing is using the stack script of substacks to hold code modules. This way, the search command works nicely. If I use external stacks for my "libraries" the search command doesn't seem to have an option to include them in a search without including the entire library, which see

Re: iOS Home Button Shutdown not working!

2014-05-08 Thread Rick Harrison
Hi Terry, I’ve tried it just about everywhere including in the stack script. It just isn’t kicking in for some reason. Other ideas? Thanks, Rick On May 7, 2014, at 11:44 PM, Terry Judd wrote: > Hi Rick - I have the shutdown message in the stack script. Is that where > your's is? > > Terry..

Re: Modularising Code

2014-05-08 Thread Dar Scott
I think using a substack as a library is OK. Remember that the main stack is in the message path of the substack. So, you will have the main stack twice in the message path for cards and controls. This is probably fine. But, something like a keystroke counter in the main stack might count th

Re: Modularising Code

2014-05-08 Thread Terence Heaford
Thanks for your comments. I have just placed the DBRoutines into a substack and placed "start using" in the preOpenStack handler. That seems to be a workaround for not having folders in the IDE. Are there any downsides to this method? I have downloaded and tried GLX2 but there are issues on m

Re: Testing proxy servers in 6.6.2/6.7

2014-05-08 Thread Trevor DeVore
On Wed, May 7, 2014 at 9:07 PM, Nakia Brewer wrote: > > Okay so just tested in 6.6.2 RC3 and still no luck. > Stack works fine if I take it off this network (away from a Proxy) or if I > use your work around Trevor... > Nakia, Hmm, the other issue could be authentication. LiveCode isn't going to

Re: Modularising Code

2014-05-08 Thread Dar Scott
Stack libraries have some nice advantages for me. I sometimes put some things such as tables into controls. They are often wrappers for externals. (Or maybe the externals are helpers for the libraries.) If you have a card for putting odd things and the card never shows, you might want to put

Re: Modularising Code

2014-05-08 Thread Björnke von Gierke
Oh. Well I don't. If there's too many handler in one object, I tend to either fuse unnecessary functions or move stuff up or down the message path. Some people use fake empty handlers as folders. And there's of course the open source GLX2 editor, which has folders. On 08 May 2014, at 14:34, Te

Re: Modularising Code

2014-05-08 Thread Terence Heaford
Library seems to be more for using code that is reusable between different projects. My methods/functions are applicable only to the project in which they reside. I am just looking for something that allows organisations of the scripts within the IDE without perhaps creating an object just to s

Re: Modularising Code

2014-05-08 Thread Björnke von Gierke
I really would love to hear your reasoning about why start using (library) is not what you want to use (or it's brethren front script and back script). Alternatively there's of course using 'send' and 'call' (more modern 'dispatch'), instead of relying on the natural order of the message path.

Modularising Code

2014-05-08 Thread Terence Heaford
I have been reading up on Library Stacks but in this instance I do not feel this is the solution I require. I have a Project that needs access to a SQLite database and has many calls into that database from functions and commands which at the moment I have placed in the mainstack script. In or

Re: SSL Library Not Found

2014-05-08 Thread Neil Roger
Hi Mike, Running the stack on a device is the key to why the encryption is'nt working as I tested your script on our iPad mini and received the same error message as yourself. As this is happening, it seems there is a bug with encryption and iOS standalones (possibly something going awry du