Re: SSL Library Not Found
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 during the standalone build process). I've created a report on the issue and this will be invetigated promptly. http://quality.runrev.com/show_bug.cgi?id=12408 Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com —— On 07/05/2014 17:06, Mike Kerner wrote: I'm not going to the simulator, I'm going to a live device, and I'm using XC 5.1.1 On Wed, May 7, 2014 at 11:19 AM, Neil Roger n...@runrev.com wrote: Hi Mike, That is strange as there is nothing else you need to check apart from the encryption external in the standalone settings. Do you have sample of the script you are trying to use? What version of Xcode/Simulator are you deploying too? Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com —— On 07/05/2014 16:03, Mike Kerner wrote: 661. On Wed, May 7, 2014 at 10:45 AM, Neil Roger n...@runrev.com wrote: Hi Mike, What version of LC are you using? I tried the following against 6.6.1 and the encrypted data is returned as expected- on mouseUp encrypt field 1 using blowfish with password test and salt livecode put it into field 2 end mouseUp Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com —— On 07/05/2014 15:26, Mike Kerner wrote: I'm trying to use the native encrypt/decrypt code on ios. I have the encryption external selected in ios standalone settings, but when I run the app and attempt to decrypt I get SSL Library not found. As one would expect, everything works fine with Monte's encrypt/decrypt goodies. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Modularising Code
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 order to make the script more manageable I would like to have the SQLite scripts modularised and separate from any other scripts in the mainstack which I also may wish to modularise at some point. I have placed all these scripts together in the mainstack to allow them to be easily called from all other parts of the project and to have easy access to user properties of the mainstack. What is the best way to achieve this type of modularisation within the LiveCode IDE? All the best Terry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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. There's also behavior scripts of course, but I think they're more useful for repetitive handlers, not for different calls to a database, but someone who actually likes them should probably talk about wether they're appropriate or not. If you want to go super crazy you can also do it like I did, and use sockets to have the db run in another program... but that's of course a different topic ;) On 08 May 2014, at 13:28, Terence Heaford t.heaf...@btinternet.com wrote: 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 order to make the script more manageable I would like to have the SQLite scripts modularised and separate from any other scripts in the mainstack which I also may wish to modularise at some point. I have placed all these scripts together in the mainstack to allow them to be easily called from all other parts of the project and to have easy access to user properties of the mainstack. What is the best way to achieve this type of modularisation within the LiveCode IDE? All the best Terry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Anyone thinking about going to Zurich in the summer? Please fill out the form and send me an email: http://doodle.com/yapygihh3itgz2qr -- Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 store these methods/functions. If I use say Xcode as an example. You can organise your code in folders/nested folders from within the IDE. In LiveCode methods/functions are usually applicable to an object with the facility to have common methods/functions accessible to all objects by placing them in the Card Script or Stack Script etc. There does not appear to be any way within say the Stack Script to organise methods/functions into folders. The handler list on the left hand side of the script window in the IDE would be better if it had the means of placing the scripts into folders, purely for aesthetics. How do people overcome this limitation? That is my question. All the best Terry On 8 May 2014, at 13:18, Björnke von Gierke b...@mac.com wrote: 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). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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, Terence Heaford t.heaf...@btinternet.com wrote: Xcode... You can organise your code in folders/nested folders from within the IDE. ... How do people overcome this limitation? That is my question. -- Anyone thinking about going to Zurich in the summer? Please fill out the form and send me an email: http://doodle.com/yapygihh3itgz2qr -- Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 some objects there to represent your modules and put the scripts into those. Name them after the modules. put them in front or in back as seems right when you open your stack. If you need some module only on cards with certain background groups, then consider whether those scripts belong in the group. If you have a family of applications that use the same splash-screen main stack, consider putting those things that are special to the family in that stack. Dar Scott Controls, Libraries and Externals On May 8, 2014, at 5:28 AM, Terence Heaford t.heaf...@btinternet.com wrote: 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 order to make the script more manageable I would like to have the SQLite scripts modularised and separate from any other scripts in the mainstack which I also may wish to modularise at some point. I have placed all these scripts together in the mainstack to allow them to be easily called from all other parts of the project and to have easy access to user properties of the mainstack. What is the best way to achieve this type of modularisation within the LiveCode IDE? All the best Terry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Testing proxy servers in 6.6.2/6.7
On Wed, May 7, 2014 at 9:07 PM, Nakia Brewer nakia.bre...@westrac.com.auwrote: 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 have authentication callbacks installed by default libURL may just be failing when the proxy server asks for authentication. If the authentication is BASIC or DIGEST then a person can write their own callbacks prompting the user for a username/password. If the authentication type is NTLM then it is a little more complex. I just did a quick test with WonderProxy and see this in the libURL log: -- _proxyForURL_proxyForURL use _proxyFromHTTPProxy() with HTTPProxyProxy for URL: http://baltimore.wonderproxy.com:80 socket selected: 199.15.252.141:80|6924 GET http://www.google.com:80/ HTTP/1.1 Host: www.google.com User-Agent: LiveCode (MacOS) HTTP/1.1 407 Proxy Authentication Required Server: squid/3.4.4 Mime-Version: 1.0 Date: Thu, 08 May 2014 13:01:36 GMT Content-Type: text/html Content-Length: 3318 X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0 Proxy-Authenticate: Basic realm=WonderProxy X-Cache: MISS from baltimore.wonderproxy.com Via: 1.1 baltimore.wonderproxy.com (squid/3.4.4) Connection: keep-alive -- So the authentication part fails. Can you turn on logging for lib URL and see if you can figure anything out from the diagnostics? Just create a stack with a field and tell libURL to log to it: libURLSetLogField the long id of field 1 of stack Untitled 1 Do you see any authentication headers? -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com-www.clarify-it.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 my Mac concerning the display of text being corrupted. Something like — in GLX2 would be useful in the LiveCode IDE. I also thought that an updated IDE was one of the stretch goals of the Kickstarter campaign. How is that going? All the best Terry On 8 May 2014, at 13:55, Dar Scott d...@swcp.com wrote: 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 some objects there to represent your modules and put the scripts into those. Name them after the modules. put them in front or in back as seems right when you open your stack. If you need some module only on cards with certain background groups, then consider whether those scripts belong in the group. If you have a family of applications that use the same splash-screen main stack, consider putting those things that are special to the family in that stack. Dar Scott Controls, Libraries and Externals ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 them twice. There might be some packaging issues if you make a splash screen, but others would know better than I. If the sub stack depends on the main stack and they both become sub stacks in standalones, there is a potential for slightly different behavior in the standalone. Dar On May 8, 2014, at 7:11 AM, Terence Heaford t.heaf...@btinternet.com wrote: 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 my Mac concerning the display of text being corrupted. Something like — in GLX2 would be useful in the LiveCode IDE. I also thought that an updated IDE was one of the stretch goals of the Kickstarter campaign. How is that going? All the best Terry On 8 May 2014, at 13:55, Dar Scott d...@swcp.com wrote: 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 some objects there to represent your modules and put the scripts into those. Name them after the modules. put them in front or in back as seems right when you open your stack. If you need some module only on cards with certain background groups, then consider whether those scripts belong in the group. If you have a family of applications that use the same splash-screen main stack, consider putting those things that are special to the family in that stack. Dar Scott Controls, Libraries and Externals ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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 terry.j...@unimelb.edu.au wrote: Hi Rick - I have the shutdown message in the stack script. Is that where your's is? Terry... On 08/05/2014 12:00 PM, Rick Harrison harri...@all-auctions.com wrote: Hi there, I have an iOS app that when the user hits the iPhone ³Home² button, it doesn¹t seem to be sending the ³shutdown² message to the current card. Yes, I also tried ³shutdownRequest² and that doesn¹t work either. I therefore have no way to save the state of the app so the user can pick up where he/she left off in the app when they decide to come back to it. Suggestions? Thanks in advance! Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 seems to take forever. Also, the substack stack script handlers seem to be able to call handlers in other substack stack scripts without message path concerns. I figure that if I need to use the code in other projects later, I can easily make the substacks into library stacks. Keeping track of where specific scripts reside and using dispatch commands seems extremely cumbersome to me. Another thing, which I didn't start doing until recently, but wish I had stared that way, is to put a prefix before each handler in a library. Like iml_myhandler, where iml_ goes in front of each handler name. That way it's much easier to remember where handlers are, as the project grows, Folks, I'm still new to livecode, so if I'm doing anything that will get me into trouble down the road, I'd like to hear about it. Like, the seeming lack of hierarchy in the message path of substack stack scripts. Is this likely to change? Cheers, Bill William Prothero http://es.earthednet.org On May 8, 2014, at 6:37 AM, Dar Scott d...@swcp.com wrote: 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 them twice. There might be some packaging issues if you make a splash screen, but others would know better than I. If the sub stack depends on the main stack and they both become sub stacks in standalones, there is a potential for slightly different behavior in the standalone. Dar On May 8, 2014, at 7:11 AM, Terence Heaford t.heaf...@btinternet.com wrote: 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 my Mac concerning the display of text being corrupted. Something like — in GLX2 would be useful in the LiveCode IDE. I also thought that an updated IDE was one of the stretch goals of the Kickstarter campaign. How is that going? All the best Terry On 8 May 2014, at 13:55, Dar Scott d...@swcp.com wrote: 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 some objects there to represent your modules and put the scripts into those. Name them after the modules. put them in front or in back as seems right when you open your stack. If you need some module only on cards with certain background groups, then consider whether those scripts belong in the group. If you have a family of applications that use the same splash-screen main stack, consider putting those things that are special to the family in that stack. Dar Scott Controls, Libraries and Externals ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Snapshot quirks bug
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 n...@runrev.com wrote: 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 during the standalone build process). I've created a report on the issue and this will be invetigated promptly. http://quality.runrev.com/show_bug.cgi?id=12408 Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com —— On 07/05/2014 17:06, Mike Kerner wrote: I'm not going to the simulator, I'm going to a live device, and I'm using XC 5.1.1 On Wed, May 7, 2014 at 11:19 AM, Neil Roger n...@runrev.com wrote: Hi Mike, That is strange as there is nothing else you need to check apart from the encryption external in the standalone settings. Do you have sample of the script you are trying to use? What version of Xcode/Simulator are you deploying too? Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com —— On 07/05/2014 16:03, Mike Kerner wrote: 661. On Wed, May 7, 2014 at 10:45 AM, Neil Roger n...@runrev.com wrote: Hi Mike, What version of LC are you using? I tried the following against 6.6.1 and the encrypted data is returned as expected- on mouseUp encrypt field 1 using blowfish with password test and salt livecode put it into field 2 end mouseUp Kind Regards, Neil Roger -- RunRev Support Team ~ http://www.runrev.com —— On 07/05/2014 15:26, Mike Kerner wrote: I'm trying to use the native encrypt/decrypt code on ios. I have the encryption external selected in ios standalone settings, but when I run the app and attempt to decrypt I get SSL Library not found. As one would expect, everything works fine with Monte's encrypt/decrypt goodies. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: set the location of an iPad menuPick
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 requested the pick. If you want to move it around create a small invisible field or button. Then do: Send (mouseupMyPickListLinesVar) to button myInvisibleButton in 0 seconds The myInvisibleButton mouseup handler: On mouseup pPicklistLines Mobilepick pPicklistLines end mouseup The pick list will be positioned near and pointing to the invisible field. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Ezpzapps Sent: Sunday, March 09, 2014 7:03 AM To: How to use LiveCode Subject: set the location of an iPad menuPick Anyone know how to set the location of an iPad menuPick (aka popup or popover)? Am using 6.5.2 and the popup seems to work fine but seems no way to set where it happens. TIA sims Sent from my iPodo, blame it for poor spellingk ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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 that with a put statement right at the beginning of your handler, if you haven’t done so already. If you don’t see any output in the console, then there’s definitely an issue and it should be reported to RunRev. But if you do, then you should be able to do a little debugging and try to figure out exactly where the problem lies. Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On May 7, 2014, at 8:00 PM, Rick Harrison harri...@all-auctions.com wrote: Hi there, I have an iOS app that when the user hits the iPhone “Home” button, it doesn’t seem to be sending the “shutdown” message to the current card. Yes, I also tried “shutdownRequest” and that doesn’t work either. I therefore have no way to save the state of the app so the user can pick up where he/she left off in the app when they decide to come back to it. Suggestions? Thanks in advance! Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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 harri...@all-auctions.com 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 ideas? Thanks, Rick -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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 for me. Does this work for you in LC 6.5.2? Thanks, Rick On May 8, 2014, at 10:44 AM, Chris Sheffield cmsheffi...@icloud.com wrote: 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 that with a put statement right at the beginning of your handler, if you haven’t done so already. If you don’t see any output in the console, then there’s definitely an issue and it should be reported to RunRev. But if you do, then you should be able to do a little debugging and try to figure out exactly where the problem lies. Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On May 7, 2014, at 8:00 PM, Rick Harrison harri...@all-auctions.com wrote: Hi there, I have an iOS app that when the user hits the iPhone “Home” button, it doesn’t seem to be sending the “shutdown” message to the current card. Yes, I also tried “shutdownRequest” and that doesn’t work either. I therefore have no way to save the state of the app so the user can pick up where he/she left off in the app when they decide to come back to it. Suggestions? Thanks in advance! Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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 shows up. Thanks, Rick at 11:18 AM, J. Landman Gay jac...@hyperactivesw.com wrote: 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 harri...@all-auctions.com 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 ideas? Thanks, Rick -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 called start using and LiveCode’s engine Is that correct? If you only have handlers in the stack script of the substack then any messages will only call them after passing through the mainstacks script. Is that correct? If you actually use the substack as more than a repository for scripts then any control will pass the message through the substacks script to mainstack and onto the substack again. Is that correct or once you start using the substack is it removed from the normal message passing and any control only passes to the substack script and onto the engine? I hope the above is understandable. All the best Terry On 8 May 2014, at 14:37, Dar Scott d...@swcp.com wrote: 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 them twice. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OT] For Mark Laffoon: Scripter's Scrapbook
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 Deadly Sins,HTML Or somesuch like that. Thanks! Mark New email: mark@administrivia.solutions (still migrating from gmail) On Tue, May 6, 2014 at 1:09 AM, FlexibleLearning.com ad...@flexiblelearning.com wrote: Mark Your gmail account is bouncing my emails to you. Since a Scrapbook link requires some text or an in-line image, you could try using the API and ssBkSetEntryData (#17 in the API webpage) to set the required link as htmlText... Example: ssBkSetEntryData MyEntry,Code,This is a Btest/B,HTML LiveCode's htmlText has recently changed a bit, so the exact format may need some trial and error! Hugh Senior FLCo Message: I have been banging away at the API, and have not found a way to include a link to another entry when setting an entries data. Any way I can do this? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- I am CDO. This is a lot like OCD, except the letters are in alphabetical order... as they should be. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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 we’re running into that bug with LC 6.5.2. Another way to test this would be to write out a simple text file to the Documents folder in the shutdown handler. If you test it in the simulator, you can fairly easily locate that text file. The path would be something like this /Users/[user_name]/Library/Application Support/iPhone Simulator/[iOS_version]/Applications/F16EE956-F742-4FB9-80A6-51C521B2FA75/Documents. Maybe you already know this. Anyway, that big long nasty folder name will have to be replaced with whatever folder contains your app. No easy way that I know of. You’ll just have to browse all the folders until you find the one containing your app. Anyway, this is kind of a dumb workaround that shouldn’t even be necessary, but hopefully it’ll get you started in determining whether or not shutdown is actually firing. My guess is that it is, and 6.5.2 has the “put” bug, and there’s some error occurring that makes it seem like shutdown is not running. If you have access to a newer version of LC, I’d recommend switching over when you can. I realize that’s not always easy to do. Hope this helps a bit. Good luck! Chris On May 8, 2014, at 9:20 AM, Rick Harrison harri...@all-auctions.com wrote: 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 for me. Does this work for you in LC 6.5.2? Thanks, Rick On May 8, 2014, at 10:44 AM, Chris Sheffield cmsheffi...@icloud.com wrote: 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 that with a put statement right at the beginning of your handler, if you haven’t done so already. If you don’t see any output in the console, then there’s definitely an issue and it should be reported to RunRev. But if you do, then you should be able to do a little debugging and try to figure out exactly where the problem lies. Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On May 7, 2014, at 8:00 PM, Rick Harrison harri...@all-auctions.com wrote: Hi there, I have an iOS app that when the user hits the iPhone “Home” button, it doesn’t seem to be sending the “shutdown” message to the current card. Yes, I also tried “shutdownRequest” and that doesn’t work either. I therefore have no way to save the state of the app so the user can pick up where he/she left off in the app when they decide to come back to it. Suggestions? Thanks in advance! Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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. Click it 2) The second link down is the User Guide. Click it 3) Inside there search for message path. There is a whole discussion of what it is and how to use it. 4) SEND and PASS and START USING STACK are your friends. On Thu, May 8, 2014 at 11:57 AM, Terence Heaford t.heaf...@btinternet.comwrote: 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 called start using and LiveCode’s engine Is that correct? If you only have handlers in the stack script of the substack then any messages will only call them after passing through the mainstacks script. Is that correct? If you actually use the substack as more than a repository for scripts then any control will pass the message through the substacks script to mainstack and onto the substack again. Is that correct or once you start using the substack is it removed from the normal message passing and any control only passes to the substack script and onto the engine? I hope the above is understandable. All the best Terry On 8 May 2014, at 14:37, Dar Scott d...@swcp.com wrote: 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 them twice. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 pedantic but for someone just setting out could be a little confusing but I take your point. All the best Terry On 8 May 2014, at 19:20, Mike Kerner mikeker...@roadrunner.com wrote: 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. Click it 2) The second link down is the User Guide. Click it 3) Inside there search for message path. There is a whole discussion of what it is and how to use it. 4) SEND and PASS and START USING STACK are your friends. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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. Does anyone else? So there’s a possibility we’re running into that bug with LC 6.5.2. 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 have a bug/feature report about it in the QCC. http://quality.runrev.com/show_bug.cgi?id=11868 My workaround, like yours, was to write to a text file. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
On May 8, 2014, at 9:20 AM, Rick Harrison harri...@all-auctions.com 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 to do the same thing. No message appears for me. The answer dialog should have worked. The only other thing I can think of is that there are other shutdown handlers somewhere in the message path that are blocking the one you're trying to test. Try searching all the scripts for an extra one. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Thu, May 8, 2014 at 11:20 AM, Mike Kerner mikeker...@roadrunner.comwrote: 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. Click it 2) The second link down is the User Guide. Click it 3) Inside there search for message path. There is a whole discussion of what it is and how to use it. 4) SEND and PASS and START USING STACK are your friends. On Thu, May 8, 2014 at 11:57 AM, Terence Heaford t.heaf...@btinternet.comwrote: 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 called start using and LiveCode’s engine Is that correct? If you only have handlers in the stack script of the substack then any messages will only call them after passing through the mainstacks script. Is that correct? If you actually use the substack as more than a repository for scripts then any control will pass the message through the substacks script to mainstack and onto the substack again. Is that correct or once you start using the substack is it removed from the normal message passing and any control only passes to the substack script and onto the engine? I hope the above is understandable. All the best Terry On 8 May 2014, at 14:37, Dar Scott d...@swcp.com wrote: 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 them twice. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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 jac...@hyperactivesw.com 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 have a bug/feature report about it in the QCC. http://quality.runrev.com/show_bug.cgi?id=11868 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
Works for me too in RC3 and 10.9.2 Best, Steve On May 8, 2014, at 3:17 PM, Chris Sheffield cmsheffi...@icloud.com 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 jac...@hyperactivesw.com 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 have a bug/feature report about it in the QCC. http://quality.runrev.com/show_bug.cgi?id=11868 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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, at 1:03 PM, J. Landman Gay jac...@hyperactivesw.com 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 have a bug/feature report about it in the QCC. http://quality.runrev.com/show_bug.cgi?id=11868 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
7.0 dp 3
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: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 the message path log.) button Test -- stack Test main stack button Test -- stack Test Sub Stack of stack Test main stack bottom stack Test Alt Stack -- stack Test Alt Stack stack Test Alt Stack -- stack Test Sub Stack of stack Test main stack bottom stack Test Sub Stack -- stack Test Sub Stack of stack Test main stack stack Test Sub Stack -- stack Test main stack stack Test Sub Stack -- stack Test Sub Stack of stack Test main stack bottom The first two cases are as we would expect for any library stack. The third case would apply to things such as messages sent to the substack. I don’t know about built-in messages like socketTimeout. As you can see the substack is in the message path twice. Handlers that change something and pass would be affected. Dar On May 8, 2014, at 7:37 AM, Dar Scott d...@swcp.com wrote: 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 them twice. There might be some packaging issues if you make a splash screen, but others would know better than I. If the sub stack depends on the main stack and they both become sub stacks in standalones, there is a potential for slightly different behavior in the standalone. Dar On May 8, 2014, at 7:11 AM, Terence Heaford t.heaf...@btinternet.com wrote: 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 my Mac concerning the display of text being corrupted. Something like — in GLX2 would be useful in the LiveCode IDE. I also thought that an updated IDE was one of the stretch goals of the Kickstarter campaign. How is that going? All the best Terry On 8 May 2014, at 13:55, Dar Scott d...@swcp.com wrote: 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 some objects there to represent your modules and put the scripts into those. Name them after the modules. put them in front or in back as seems right when you open your stack. If you need some module only on cards with certain background groups, then consider whether those scripts belong in the group. If you have a family of applications that use the same splash-screen main stack, consider putting those things that are special to the family in that stack. Dar Scott Controls, Libraries and Externals ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 the message, then back to substack, ad infinitude. A reasonable scenario would be a mouseup handler. Bill William Prothero http://es.earthednet.org On May 8, 2014, at 12:10 PM, Peter Haworth p...@lcsql.com wrote: 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 http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Thu, May 8, 2014 at 11:20 AM, Mike Kerner mikeker...@roadrunner.comwrote: 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. Click it 2) The second link down is the User Guide. Click it 3) Inside there search for message path. There is a whole discussion of what it is and how to use it. 4) SEND and PASS and START USING STACK are your friends. On Thu, May 8, 2014 at 11:57 AM, Terence Heaford t.heaf...@btinternet.comwrote: 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 called start using and LiveCode’s engine Is that correct? If you only have handlers in the stack script of the substack then any messages will only call them after passing through the mainstacks script. Is that correct? If you actually use the substack as more than a repository for scripts then any control will pass the message through the substacks script to mainstack and onto the substack again. Is that correct or once you start using the substack is it removed from the normal message passing and any control only passes to the substack script and onto the engine? I hope the above is understandable. All the best Terry On 8 May 2014, at 14:37, Dar Scott d...@swcp.com wrote: 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 them twice. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 in the path of messages sent to it. Enough said, before I say something stupid again. Dar On May 8, 2014, at 2:04 PM, Dar Scott d...@swcp.com wrote: 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 the message path log.) button Test -- stack Test main stack button Test -- stack Test Sub Stack of stack Test main stack bottom stack Test Alt Stack -- stack Test Alt Stack stack Test Alt Stack -- stack Test Sub Stack of stack Test main stack bottom stack Test Sub Stack -- stack Test Sub Stack of stack Test main stack stack Test Sub Stack -- stack Test main stack stack Test Sub Stack -- stack Test Sub Stack of stack Test main stack bottom The first two cases are as we would expect for any library stack. The third case would apply to things such as messages sent to the substack. I don’t know about built-in messages like socketTimeout. As you can see the substack is in the message path twice. Handlers that change something and pass would be affected. Dar On May 8, 2014, at 7:37 AM, Dar Scott d...@swcp.com wrote: 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 them twice. There might be some packaging issues if you make a splash screen, but others would know better than I. If the sub stack depends on the main stack and they both become sub stacks in standalones, there is a potential for slightly different behavior in the standalone. Dar On May 8, 2014, at 7:11 AM, Terence Heaford t.heaf...@btinternet.com wrote: 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 my Mac concerning the display of text being corrupted. Something like — in GLX2 would be useful in the LiveCode IDE. I also thought that an updated IDE was one of the stretch goals of the Kickstarter campaign. How is that going? All the best Terry On 8 May 2014, at 13:55, Dar Scott d...@swcp.com wrote: 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 some objects there to represent your modules and put the scripts into those. Name them after the modules. put them in front or in back as seems right when you open your stack. If you need some module only on cards with certain background groups, then consider whether those scripts belong in the group. If you have a family of applications that use the same splash-screen main stack, consider putting those things that are special to the family in that stack. Dar Scott Controls, Libraries and Externals ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[OFF] Cool Plugins
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 spacing objects a lot simpler and easier than LC's tool does, and it does it in what seems to me to be a more logical manner and gives a much more dynamic, visual representation of what it's going to do before you approve it. tmEffects lets you add a bunch of graphical effects to objects in projects, which for guys like me, that have more graphical KILL than graphical SKILL is also helpful. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modularising Code
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 proth...@earthednet.org wrote: 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 the message, then back to substack, ad infinitude. A reasonable scenario would be a mouseup handler. Bill William Prothero http://es.earthednet.org On May 8, 2014, at 12:10 PM, Peter Haworth p...@lcsql.com wrote: 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 http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Thu, May 8, 2014 at 11:20 AM, Mike Kerner mikeker...@roadrunner.comwrote: 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. Click it 2) The second link down is the User Guide. Click it 3) Inside there search for message path. There is a whole discussion of what it is and how to use it. 4) SEND and PASS and START USING STACK are your friends. On Thu, May 8, 2014 at 11:57 AM, Terence Heaford t.heaf...@btinternet.comwrote: 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 called start using and LiveCode’s engine Is that correct? If you only have handlers in the stack script of the substack then any messages will only call them after passing through the mainstacks script. Is that correct? If you actually use the substack as more than a repository for scripts then any control will pass the message through the substacks script to mainstack and onto the substack again. Is that correct or once you start using the substack is it removed from the normal message passing and any control only passes to the substack script and onto the engine? I hope the above is understandable. All the best Terry On 8 May 2014, at 14:37, Dar Scott d...@swcp.com wrote: 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 them twice. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
FOLLOW UP: iOS Provisioning Profiles - Dev vs. Production
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 or what device you had. It was crashing on an update and a clean install. The app ran without error in LC, the simulator and a real device (with the dev profile). We were experiencing a 100% crash rate - reported by users calling and eMailing us - not to mention the not-so-nice reviews people were leaving in the app store. If the app crashes for everyone, how could it have passed Apple's app review process? We were completely stumped. Then we thought... Could it be? Could the error be with the All Mighty Powerful Apple? I contacted Apple and started a support ticket. They of course gave me the runaround, try this (wait 24 hours for a response), try that (wait another 24 hours). All the responses I got translated to: go away kid, ya bother me. Then I was told that they can only support apps that are created in XCode [not LiveCode]. They apparently had no interested in even looking at the app for signs of corruption. Even the crash reports I provided pointed to something fishy. If I wanted to explore a problem in the App Store, I would have to contact another department and start a new ticket. Ug. Oh yeah, did I mention that the client is breathing down my neck demanding answers and action because his app has been down for a week! Anyway, we took the same LC stack and upped the version number. Using the same computer, with the same version of LC and the same version of XCode, we built a new standalone. We submitted the new (but same) app to the app store and requested an expedited review which Apple shockingly granted. The app passed review and was released in the app store... What a shock! It worked perfectly! Apple will never confirm, but we are 100% convinced that the app was corrupted after it passed review and was copied to the app store. It's been a long week. I'm going to take a nap. -Dan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OFF] Cool Plugins
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 mikeker...@roadrunner.com 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. tmAlign is really sweet. It makes lining up, resizing, and spacing objects a lot simpler and easier than LC's tool does, and it does it in what seems to me to be a more logical manner and gives a much more dynamic, visual representation of what it's going to do before you approve it. tmEffects lets you add a bunch of graphical effects to objects in projects, which for guys like me, that have more graphical KILL than graphical SKILL is also helpful. -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Resizing a group's controls when the group is resized
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 one command in it: set the width of field Data of me to (the width of me - the borderwidth of me) When I drag the right handle of the group, it kinda works although the group handles move in a very jerky fashion until I let go the mouse. However, if I try to change the height of the group by dragging on its bottom handle, the group gets wider not taller no matter whether I drag up or down!! I feel like I'm missing something obvious, hopefully someone can tell me what it is. 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 use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Home Button Shutdown not working!
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 handler the code executes - writes the file, and reads the file correctly. I’m reluctant to move to a newer version of LC than 6.5.2 because the newer version I tried - LC 6.1.1 made my animations run 4 times slower. They looked terrible! Has the speed/performance improved adequately in LC 6.6.2? Thanks, Rick On May 8, 2014, at 3:05 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On May 8, 2014, at 9:20 AM, Rick Harrison harri...@all-auctions.com 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 to do the same thing. No message appears for me. The answer dialog should have worked. The only other thing I can think of is that there are other shutdown handlers somewhere in the message path that are blocking the one you're trying to test. Try searching all the scripts for an extra one. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: FOLLOW UP: iOS Provisioning Profiles - Dev vs. Production
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 d...@clearvisiontech.comwrote: 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 or what device you had. It was crashing on an update and a clean install. The app ran without error in LC, the simulator and a real device (with the dev profile). We were experiencing a 100% crash rate - reported by users calling and eMailing us - not to mention the not-so-nice reviews people were leaving in the app store. If the app crashes for everyone, how could it have passed Apple's app review process? We were completely stumped. Then we thought... Could it be? Could the error be with the All Mighty Powerful Apple? I contacted Apple and started a support ticket. They of course gave me the runaround, try this (wait 24 hours for a response), try that (wait another 24 hours). All the responses I got translated to: go away kid, ya bother me. Then I was told that they can only support apps that are created in XCode [not LiveCode]. They apparently had no interested in even looking at the app for signs of corruption. Even the crash reports I provided pointed to something fishy. If I wanted to explore a problem in the App Store, I would have to contact another department and start a new ticket. Ug. Oh yeah, did I mention that the client is breathing down my neck demanding answers and action because his app has been down for a week! Anyway, we took the same LC stack and upped the version number. Using the same computer, with the same version of LC and the same version of XCode, we built a new standalone. We submitted the new (but same) app to the app store and requested an expedited review which Apple shockingly granted. The app passed review and was released in the app store... What a shock! It worked perfectly! Apple will never confirm, but we are 100% convinced that the app was corrupted after it passed review and was copied to the app store. It's been a long week. I'm going to take a nap. -Dan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OFF] Cool Plugins
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 char...@buchwald.ca wrote: 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 mikeker...@roadrunner.com 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. tmAlign is really sweet. It makes lining up, resizing, and spacing objects a lot simpler and easier than LC's tool does, and it does it in what seems to me to be a more logical manner and gives a much more dynamic, visual representation of what it's going to do before you approve it. tmEffects lets you add a bunch of graphical effects to objects in projects, which for guys like me, that have more graphical KILL than graphical SKILL is also helpful. -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: FOLLOW UP: iOS Provisioning Profiles - Dev vs. Production
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. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Testing proxy servers in 6.6.2/6.7
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 XXX Content-Type:application/xml Accept:application/xml HTTP/1.1 200 OK Server: nginx Date: Thu, 08 May 2014 22:53:15 GMT Content-Type: application/xml; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Status: 200 OK Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate X-Served-From: https://csu.harvestapp.com/account/who_am_i X-UA-Compatible: IE=Edge,chrome=1 Set-Cookie: _harvest_sess=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWNmZTMyYjdiMzNhMjBjZmJhMGI5OWQyOWVlYjdkNDVmBjsAVA%3D%3D--54c6eb1f196c118651809a3c883fe7dd38192102; domain=.harvestapp.com; path=/; secure; HttpOnly X-Request-Id: ac2761c2-1e1f-4eb0-aac3-ed4d1345cd10 X-Runtime: 0.345064 X-Server: rails10 X-LB: lb2 Strict-Transport-Security: max-age=31536000; includeSubDomains httpproxyforurl for host 'proxy.harvestfiles.com': Proxy for URL: socket selected: proxy.harvestfiles.com:443|6931 GET /production_harvestapp_public/uploads/users/avatar/000/524/958/normal.jpg?1390885472 HTTP/1.1 Host: proxy.harvestfiles.com User-Agent: LiveCode (Win32) Content-Type:application/xml Accept:application/xml HTTP/1.1 200 OK Server: nginx Date: Thu, 08 May 2014 22:53:16 GMT Content-Type: image/jpeg Content-Length: 2494 Connection: keep-alive Last-Modified: Mon, 16 Dec 2013 04:03:33 GMT x-amz-version-id: null ETag: 0c27c202ea437a4ea88cd7217d67dd4d X-Cached: HIT Accept-Ranges: bytes Nakia Brewer | Technology Solutions Manager | Equipment Management Solutions t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au ACN 009 342 572 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Nakia Brewer Sent: Friday, 9 May 2014 8:52 AM To: How to use LiveCode Subject: RE: Testing proxy servers in 6.6.2/6.7 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 socket error csu.harvestapp.com:443|6928 Error 10061 on socket httpproxyforurl for host 'samaritans.org.au': Proxy for URL: socket selected: csu.harvestapp.com:443|6929 socket error csu.harvestapp.com:443|6929 Error 10061 on socket Nakia Brewer | Technology Solutions Manager | Equipment Management Solutions t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au ACN 009 342 572 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Trevor DeVore Sent: Thursday, 8 May 2014 11:04 PM To: How to use LiveCode Subject: Re: Testing proxy servers in 6.6.2/6.7 On Wed, May 7, 2014 at 9:07 PM, Nakia Brewer nakia.bre...@westrac.com.auwrote: 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 have authentication callbacks installed by default libURL may just be failing when the proxy server asks for authentication. If the authentication is BASIC or DIGEST then a person can write their own callbacks prompting the user for a username/password. If the authentication type is NTLM then it is a little more complex. I just did a quick test with WonderProxy and see this in the libURL log: -- _proxyForURL_proxyForURL use _proxyFromHTTPProxy() with HTTPProxyProxy for URL: http://baltimore.wonderproxy.com:80 socket selected: 199.15.252.141:80|6924 GET http://www.google.com:80/ HTTP/1.1 Host: www.google.com User-Agent: LiveCode (MacOS) HTTP/1.1 407 Proxy Authentication Required Server: squid/3.4.4 Mime-Version: 1.0 Date: Thu, 08 May 2014 13:01:36 GMT Content-Type: text/html Content-Length: 3318 X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0 Proxy-Authenticate: Basic realm=WonderProxy X-Cache: MISS from baltimore.wonderproxy.com Via: 1.1 baltimore.wonderproxy.com (squid/3.4.4) Connection: keep-alive -- So the authentication part fails. Can you turn on logging for lib URL and see if you can figure anything out from the diagnostics? Just create a stack with a field and tell libURL to log to it: libURLSetLogField the long id of field 1 of stack Untitled 1 Do you see any authentication headers? -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com-www.clarify-it.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage
Digest Access Authentication with cookie? How
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 trying this in livecode i do not get the information i get when doing it in Safari. I think i have to fetch the cookie and send a modified http header to the server. But i do not know the steps are needed for this In the Browser the following line for example gives back the correct information from the server http://MyUsername:MyPassword@192.168.1.1/swapi_get_about;. After one successful login a cookie is stored on the hard disk and i can connect to the server without any problems. But in LC i just get some html code back which does not contain the data i see in the browser. I tried already to use libUrlLastRhHeaders(), but cannot find any cookie information in it. I read that i have to set the httpheader before doing another api request. But how do i get the cookie information? Does anyone know what i have to do? Regards, Matthias ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Testing proxy servers in 6.6.2/6.7
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 009 342 572 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Nakia Brewer Sent: Friday, 9 May 2014 8:58 AM To: How to use LiveCode Subject: RE: Testing proxy servers in 6.6.2/6.7 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 XXX Content-Type:application/xml Accept:application/xml HTTP/1.1 200 OK Server: nginx Date: Thu, 08 May 2014 22:53:15 GMT Content-Type: application/xml; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Status: 200 OK Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate X-Served-From: https://csu.harvestapp.com/account/who_am_i X-UA-Compatible: IE=Edge,chrome=1 Set-Cookie: _harvest_sess=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWNmZTMyYjdiMzNhMjBjZmJhMGI5OWQyOWVlYjdkNDVmBjsAVA%3D%3D--54c6eb1f196c118651809a3c883fe7dd38192102; domain=.harvestapp.com; path=/; secure; HttpOnly X-Request-Id: ac2761c2-1e1f-4eb0-aac3-ed4d1345cd10 X-Runtime: 0.345064 X-Server: rails10 X-LB: lb2 Strict-Transport-Security: max-age=31536000; includeSubDomains httpproxyforurl for host 'proxy.harvestfiles.com': Proxy for URL: socket selected: proxy.harvestfiles.com:443|6931 GET /production_harvestapp_public/uploads/users/avatar/000/524/958/normal.jpg?1390885472 HTTP/1.1 Host: proxy.harvestfiles.com User-Agent: LiveCode (Win32) Content-Type:application/xml Accept:application/xml HTTP/1.1 200 OK Server: nginx Date: Thu, 08 May 2014 22:53:16 GMT Content-Type: image/jpeg Content-Length: 2494 Connection: keep-alive Last-Modified: Mon, 16 Dec 2013 04:03:33 GMT x-amz-version-id: null ETag: 0c27c202ea437a4ea88cd7217d67dd4d X-Cached: HIT Accept-Ranges: bytes Nakia Brewer | Technology Solutions Manager | Equipment Management Solutions t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au ACN 009 342 572 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Nakia Brewer Sent: Friday, 9 May 2014 8:52 AM To: How to use LiveCode Subject: RE: Testing proxy servers in 6.6.2/6.7 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 socket error csu.harvestapp.com:443|6928 Error 10061 on socket httpproxyforurl for host 'samaritans.org.au': Proxy for URL: socket selected: csu.harvestapp.com:443|6929 socket error csu.harvestapp.com:443|6929 Error 10061 on socket Nakia Brewer | Technology Solutions Manager | Equipment Management Solutions t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au ACN 009 342 572 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Trevor DeVore Sent: Thursday, 8 May 2014 11:04 PM To: How to use LiveCode Subject: Re: Testing proxy servers in 6.6.2/6.7 On Wed, May 7, 2014 at 9:07 PM, Nakia Brewer nakia.bre...@westrac.com.auwrote: 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 have authentication callbacks installed by default libURL may just be failing when the proxy server asks for authentication. If the authentication is BASIC or DIGEST then a person can write their own callbacks prompting the user for a username/password. If the authentication type is NTLM then it is a little more complex. I just did a quick test with WonderProxy and see this in the libURL log: -- _proxyForURL_proxyForURL use _proxyFromHTTPProxy() with HTTPProxyProxy for URL: http://baltimore.wonderproxy.com:80 socket selected: 199.15.252.141:80|6924 GET http://www.google.com:80/ HTTP/1.1 Host: www.google.com User-Agent: LiveCode (MacOS) HTTP/1.1 407 Proxy Authentication Required Server: squid/3.4.4 Mime-Version: 1.0 Date: Thu, 08 May 2014 13:01:36 GMT Content-Type: text/html Content-Length: 3318 X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0 Proxy-Authenticate: Basic realm=WonderProxy X-Cache: MISS from baltimore.wonderproxy.com Via: 1.1 baltimore.wonderproxy.com (squid/3.4.4) Connection: keep-alive -- So the
Mysql UNIQUE and .lc server scripts?
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 to the fact that the filed is not unique, but it also does not give the user any clue of this fact. Thank you! John Patten ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mysql UNIQUE and .lc server scripts?
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 than 0. If it isn't, something may have gone wrong and 0 records were affected. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 5/9/2014 01:18, JOHN PATTEN wrote: 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 to the fact that the filed is not unique, but it also does not give the user any clue of this fact. Thank you! John Patten ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Server Scripts Editor
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 the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mysql UNIQUE and .lc server scripts?
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 http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Thu, May 8, 2014 at 4:18 PM, JOHN PATTEN johnpat...@me.com wrote: 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 to the fact that the filed is not unique, but it also does not give the user any clue of this fact. Thank you! John Patten ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: FOLLOW UP: iOS Provisioning Profiles - Dev vs. Production
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.nabble.com/FOLLOW-UP-iOS-Provisioning-Profiles-Dev-vs-Production-tp4679274p4679289.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OFF] Cool Plugins
Thanks for this, Scott! I'll look forward to them... On 08 May 2014, at 5:06 PM, Scott Rossi sc...@tactilemedia.com 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 Tactile Media, UX/UI Design -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server Scripts Editor
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 Creative Director Tactile Media, UX/UI Design On 5/8/14 4:57 PM, Nakia Brewer nakia.bre...@westrac.com.au wrote: Just starting to play with some LC Server scripts and was wondering what text editor people use for the LC file? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OFF] Cool Plugins
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 LiveCode developers have a lot more of custom tools, plugins and stacks created for a single purpose or project. After used these single purpose tools are stored or discarded forever... :o Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OFF-Cool-Plugins-tp4679272p4679292.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server Scripts Editor
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 stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server Scripts Editor
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 Server, I tend to make mostly HTML templates with simple placeholder tags for function calls, so once again most of the LC code is in LC library stacks, and the HTML is either hand-written with GEdit/TextEdit/my own half-finished text editor/whatever I happen to have handy, with some occasional WYSIWYG authoring in BlueGriffon. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode