Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
Put the handlers in the card script of the main stack. When opening the mainStack the card will receive the messages, but not when the substacks are opened. The card of the mainStack is not in the message path of the substacks. Alternately, you can put the same handlers in the substacks stack script and not pass them. Bob S On Feb 5, 2015, at 22:49 , Brahmanathaswami bra...@hindu.org wrote: If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I just moved all those to the main background group of the main stack, but I'm not happy with that architecture. I'm so use to running most script in the main stack script for simplicity sake and ease of finding things. I suppose one can install dummy handlers in the substacks to match. e.g on preopenstack end preopenstack and since you are not passing anything, I suspect it will prevent triggering that handler in the main stack.. But, what are you veterans doing to handle this? Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.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: No subject
Andrew Kluthe wrote: I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? Kill is kill - there's nothing an app can to when the rug is pulled out from under it. You could instead handle cleanup in your app's initialization. While it can't guarantee it can close every session cleanly, it can guarantee starting cleanly. Also, if any temp files are written to the OS temp folder (specialFolderPath(temporary)) the OS will take care of those itself sooner or later, often on the next reboot. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the 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
Re:
Yep, and that's no problem either, but I really want to minimize the length of time these could sit around on a machine between uses. I am decrypting a sqlite db to an obscure temp folder on launch. I am doing this in lieu of being able to use something like sqlcipher with livecode and my sqlite DB being too large to store in memory. The DB is only about 250 mb, but still too much to do anything comfortably in memory or stored in a custom property on the machines this is intended to run on (Older machines sitting in dealership maintenance departments). Just trying to get the best of everything shutdown wise. shutdownRequest responds to SIGTERM's I was hoping there was something equivalent for SIGKILL or whatever windows is sending the process when exited from the task manager. Thanks, Andrew On Fri, Feb 6, 2015 at 2:42 PM, Peter Haworth p...@lcsql.com wrote: Not sure if there is aa appropriate message but maybe you could check for these files on startup and delete them then? 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 Fri, Feb 6, 2015 at 12:37 PM, Andrew Kluthe and...@ctech.me wrote: Hello Ya'll, I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? -- Regards, Andrew Kluthe and...@ctech.me ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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:
Yep, totally forgot a subject here after reading over my content. Jeez... On Fri, Feb 6, 2015 at 2:37 PM, Andrew Kluthe and...@ctech.me wrote: Hello Ya'll, I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? -- Regards, Andrew Kluthe and...@ctech.me -- Regards, Andrew Kluthe and...@ctech.me ___ 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
[no subject]
Hello Ya'll, I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? -- Regards, Andrew Kluthe and...@ctech.me ___ 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
Data Grid objects in standalones
I am using several Data Grid objects, as tables, in a standalone. When I try to manually enter data into fields in the data grid object it works alright as long as the main stack and the substacks are built as a single file, but not when I try to build the standalone with the substacks as separate files. I guess the reason is that the main stack loses connection with the Data Grid Template stack once this is moved into a separate file. I would however prefer to have the substacks as individual files in order to be able to upgrade them easily, without the need for an upgrade of the application as such. Are there any solutions to this problem that does not require a total rebuild of the application structure. Tore N ___ 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: Data Grid objects in standalones
As mentioned in the past, the easiest way around this is to have a mainstack that calls your actual application stacks. Password protect the app stacks if you like to protect the code. That way the app stacks are not actually a part of the read-only application, they are like support files that can be modified if put in the right place, which the compiler does for you. Bob S On Feb 6, 2015, at 12:47 , Tore Nilsen tore.nil...@me.commailto:tore.nil...@me.com wrote: I am using several Data Grid objects, as tables, in a standalone. When I try to manually enter data into fields in the data grid object it works alright as long as the main stack and the substacks are built as a single file, but not when I try to build the standalone with the substacks as separate files. I guess the reason is that the main stack loses connection with the Data Grid Template stack once this is moved into a separate file. I would however prefer to have the substacks as individual files in order to be able to upgrade them easily, without the need for an upgrade of the application as such. Are there any solutions to this problem that does not require a total rebuild of the application structure. Tore N ___ 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: encrypt storage
Mark Wieder wrote: Richard- Thursday, February 5, 2015, 9:38:56 AM, you wrote: (as Mark Wieder is probably typing a reply to this as I'm writing g) chortle Was I wrong? :) Even just in principle? After all, both you and Kyle are partially to blame for my paranoia: with all that I've learned from both of you I've upped my game on security a lot over the last few years, but I still feel it's never enough; there's always a part of me that thinks about my servers with a nagging What if, wondering when the hack will happen. Was my post over-reactive, or under? Security is one of those funny areas in life where the more I learn the more I feel I don't really know much at all, or at least not as much as the 160+ IQ hacker whose botnet is trying to break into my systems. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the 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
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
There are some advantages to using substacks methinks. The monistic automatically “knows” about the substacks without any extra coding or adding the stacks to the main stack files property. Also, I am not sure that graphics loaded in the main stack will be accessible to any stacks that are not substacks of the same. Thirdly, if you don’t want anyone to open the substack without first opening the main stack, a simple “if the mainStack of me is me then get the hell out” sort of command in the openStack script is all you need. There are probably some others. Not sure but if you password protect the main stack, aren’t the substacks inaccessible as well? Finally, I think it looks good organizationally. Just my humble opinion tho’. Bob S On Feb 6, 2015, at 01:12 , Mark Schonewille m.schonewi...@economy-x-talk.commailto:m.schonewi...@economy-x-talk.com wrote: Hi Brahmanathaswami, It isn't obligatory to use substacks. You could use two mainstacks simultaneously. Just make sure to include the additional mainstacks as files when you build a standalone. With two mainstacks, the scripts in one stack won't be triggered by messages from the other. If you have handlers that you want to use in both stacks, you can put those handlers into another separate stack and use that as a library with the start using command or by defining front and back scripts. -- Best regards, Mark Schonewille ___ 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: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
On 2/6/2015 1:38 PM, Bob Sneidar wrote: Not sure but if you password protect the main stack, aren’t the substacks inaccessible as well? Nope. You have to protect each one separately. -- 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: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
On 2/6/2015 12:49 AM, Brahmanathaswami wrote: If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I usually do the thing where you put the open* handlers into the first card of the mainstack. It's easiest. If there are handlers that should be shared, but only with a few stacks, I put those handlers into the mainstack and check in the first line of the handler to see if the target is one of the stacks it needs to work with, and if not it exits. If almost everything needs to use the open* handlers except one or two stacks, then I put the handlers into the mainstack stack script and put blocking handlers into the stacks that are an exception. So I guess the answer is...it depends. -- 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: encrypt storage
On Fri, Feb 6, 2015 at 12:43 PM, Richard Gaskin ambassa...@fourthworld.com wrote: Security is one of those funny areas in life where the more I learn the more I feel I don't really know much at all, or at least not as much as the 160+ IQ hacker whose botnet is trying to break into my systems. The Anthem IT folks probably feel the same way right now! 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:
Force quit is force quit. No way around that. If the OS allowed the app to do some cleanup, it wouldn’t be forcing anything. Bob S On Feb 6, 2015, at 12:37 , Andrew Kluthe and...@ctech.me wrote: Hello Ya'll, I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? -- Regards, Andrew Kluthe and...@ctech.me ___ 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: encrypt storage
I didn’t take it as overreactive. But I have always felt that security measures should be tempered with the value (or if you like vulnerability) of what is being secured. You wouldn’t want to institute Fort Knox for example to protect your piggy bank. Neither would you necessarily need bit level encryption to protect the web sites you visit (unless you are Richmond and then you probably would). I think that mySQL, if properly configured, is just as secure as any other modern server technology. If you encrypt data in transit, and as an added measure encrypt data in storage, it’s not a big deal. If I ever store data that is in any way confidential, I will employ these measures. I imagine a very resourceful person could decompile my app and somehow discern the seed value for a particular record, but I am not sure that would automatically give him access to the database, it also being password protected, and the code is password protected so it would be difficult to say the least. Also the seed is variable. Have fun with the one record. Right now the payoff would be that the hacker gains access to some names and addresses, and the copiers they have onsite. Hell, email me and I will zip up a copy of it and send it to them to save them some trouble. Bob S On Feb 6, 2015, at 12:43 , Richard Gaskin ambassa...@fourthworld.commailto:ambassa...@fourthworld.com wrote: Was my post over-reactive, or under? ___ 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: Data Grid objects in standalones
DOH, thats what you said above, though this might be a good time for a feature request. It would be nice if inclusions were searched for BEFORE the option to disconnect substacks into seperate stack files, it would make building splashstack. On Fri, Feb 6, 2015 at 2:32 PM, Mike Bonner bonnm...@gmail.com wrote: Tore, read this. http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid Specifically the part of bulding with a datagrid using a splashstack. The easiest way to get functional datagrids that are parts of seperate stack files is to incuded a single substack in your main that is named datagrid templates dud so that the builder will decide to include all the datagrid support libraries. More detail available in the link from above. On Fri, Feb 6, 2015 at 2:27 PM, Tore Nilsen tore.nil...@me.com wrote: The problem with letting the compiler handle this is that I cannot access the Data Grid Template stack from the main stack if it is not a part of the engine file. The standalone setup dialog is somewhat confusing in the sense that it seems as if it is possible to choose which substack files to include with the engine file and which substack files to branch out in a folder of its own. As far as I have discovered it is all or nothing. I guess I will have to dive into the code of the main stack again and write relative paths to all the stacks I don’t want to be a part of the engine. Luckily there are not very many of them, and they are not called from more than a couple of handlers. Tore N 6. feb. 2015 kl. 22.17 skrev Bob Sneidar bobsnei...@iotecdigital.com: As mentioned in the past, the easiest way around this is to have a mainstack that calls your actual application stacks. Password protect the app stacks if you like to protect the code. That way the app stacks are not actually a part of the read-only application, they are like support files that can be modified if put in the right place, which the compiler does for you. Bob S On Feb 6, 2015, at 12:47 , Tore Nilsen tore.nil...@me.commailto: tore.nil...@me.com wrote: I am using several Data Grid objects, as tables, in a standalone. When I try to manually enter data into fields in the data grid object it works alright as long as the main stack and the substacks are built as a single file, but not when I try to build the standalone with the substacks as separate files. I guess the reason is that the main stack loses connection with the Data Grid Template stack once this is moved into a separate file. I would however prefer to have the substacks as individual files in order to be able to upgrade them easily, without the need for an upgrade of the application as such. Are there any solutions to this problem that does not require a total rebuild of the application structure. Tore N ___ 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:
Unfortunately the singlethreadedness of the engine prohibits any kind of cron process, which is what you need. You may be able to shell it out though. Not sure of the syntax, and I would look it up for you, but I wouldn’t want to rob you of the joys of paging through lots of nonsense to get the the real gem of information you need. Bob S On Feb 6, 2015, at 13:18 , Andrew Kluthe and...@ctech.me wrote: Yep, and that's no problem either, but I really want to minimize the length of time these could sit around on a machine between uses. I am decrypting a sqlite db to an obscure temp folder on launch. I am doing this in lieu of being able to use something like sqlcipher with livecode and my sqlite DB being too large to store in memory. The DB is only about 250 mb, but still too much to do anything comfortably in memory or stored in a custom property on the machines this is intended to run on (Older machines sitting in dealership maintenance departments). Just trying to get the best of everything shutdown wise. shutdownRequest responds to SIGTERM's I was hoping there was something equivalent for SIGKILL or whatever windows is sending the process when exited from the task manager. Thanks, Andrew On Fri, Feb 6, 2015 at 2:42 PM, Peter Haworth p...@lcsql.com wrote: Not sure if there is aa appropriate message but maybe you could check for these files on startup and delete them then? 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 Fri, Feb 6, 2015 at 12:37 PM, Andrew Kluthe and...@ctech.me wrote: Hello Ya'll, I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? -- Regards, Andrew Kluthe and...@ctech.me ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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:
As my stacks are targeting windows only for the moment, cron isnt really an option here either. I do appreciate the follow up though. On Fri, Feb 6, 2015 at 3:27 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: Ah what the hell. http://www.maclife.com/article/columns/terminal_101_creating_cron_jobs Bob S On Feb 6, 2015, at 13:24 , Bob Sneidar bobsnei...@iotecdigital.com mailto:bobsnei...@iotecdigital.com wrote: Unfortunately the singlethreadedness of the engine prohibits any kind of cron process, which is what you need. You may be able to shell it out though. Not sure of the syntax, and I would look it up for you, but I wouldn’t want to rob you of the joys of paging through lots of nonsense to get the the real gem of information you need. Bob S ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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: Data Grid objects in standalones
Ah k. Yep. There is a behavior script that the datagrid is linked to, i bet it goes wonky when things are separated. If you put the behavior of group.. whatever the group is that is your datagrid, and its in the toplevel of the main stack it says button id 1005 of stack revDataGridLibrary Ah k. So you're having it move substacks to separate stackfiles from the standalone settings? I think you can get around the problem by a) just having all your secondary stacks be mainstacks in their own rights (and you can include them in the files to copy pane) Don't have the compiler change substacks to stackfiles (because my guess is that it does this BEFORE looking for inclusions) and then leave the datagrid templates stack as a substack of the main, and don't choose to move substacks to stackfiles. Otherwise, I doubt the stack revdatagridlibrary is getting included, so the last option would be to manually clone that stack, save it tooand include it in the stackfiles, then change the behaviors of all your datagrids to point to button id 1005 of stack path/to/the/revdatagridlibrafyfile.. I also don't know for sure if you would have to start using.. the revdatagridlibrary stackfile or not. On Fri, Feb 6, 2015 at 2:41 PM, Tore Nilsen tore.nil...@me.com wrote: Thanks for pointing me in this direction. I have read this lesson, and I have also made the data grid templates dud, although there should be no need for it, as the compiler does include the correct data grid template as a substack. The problem arises when I choose to move substacks into individual files during compiling. Then the application seems to lose contact with the data grid template stack. This happens whether or not I include a substack called data grid templates dud or not. As I need to get my application ready for my students for Monday, I think I will do as Bob S suggests and just “rewire” the structure in code. Tore N 6. feb. 2015 kl. 22.32 skrev Mike Bonner bonnm...@gmail.com: Tore, read this. http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid Specifically the part of bulding with a datagrid using a splashstack. The easiest way to get functional datagrids that are parts of seperate stack files is to incuded a single substack in your main that is named datagrid templates dud so that the builder will decide to include all the datagrid support libraries. More detail available in the link from above. On Fri, Feb 6, 2015 at 2:27 PM, Tore Nilsen tore.nil...@me.com wrote: The problem with letting the compiler handle this is that I cannot access the Data Grid Template stack from the main stack if it is not a part of the engine file. The standalone setup dialog is somewhat confusing in the sense that it seems as if it is possible to choose which substack files to include with the engine file and which substack files to branch out in a folder of its own. As far as I have discovered it is all or nothing. I guess I will have to dive into the code of the main stack again and write relative paths to all the stacks I don’t want to be a part of the engine. Luckily there are not very many of them, and they are not called from more than a couple of handlers. Tore N 6. feb. 2015 kl. 22.17 skrev Bob Sneidar bobsnei...@iotecdigital.com : As mentioned in the past, the easiest way around this is to have a mainstack that calls your actual application stacks. Password protect the app stacks if you like to protect the code. That way the app stacks are not actually a part of the read-only application, they are like support files that can be modified if put in the right place, which the compiler does for you. Bob S On Feb 6, 2015, at 12:47 , Tore Nilsen tore.nil...@me.commailto: tore.nil...@me.com wrote: I am using several Data Grid objects, as tables, in a standalone. When I try to manually enter data into fields in the data grid object it works alright as long as the main stack and the substacks are built as a single file, but not when I try to build the standalone with the substacks as separate files. I guess the reason is that the main stack loses connection with the Data Grid Template stack once this is moved into a separate file. I would however prefer to have the substacks as individual files in order to be able to upgrade them easily, without the need for an upgrade of the application as such. Are there any solutions to this problem that does not require a total rebuild of the application structure. Tore N ___ 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
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
it depends got it... for me it's not about protecting anything.. it's about..eg. on resizestack x,y set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end resize stack This gets triggered by a substack that does not have those controlled. How do you do this in real code on resizestack x,y if this stack is not the stack that this handler resides in then do nothing else set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end if end resizestack Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com J. Landman Gay wrote: I usually do the thing where you put the open* handlers into the first card of the mainstack. It's easiest. If there are handlers that should be shared, but only with a few stacks, I put those handlers into the mainstack and check in the first line of the handler to see if the target is one of the stacks it needs to work with, and if not it exits. If almost everything needs to use the open* handlers except one or two stacks, then I put the handlers into the mainstack stack script and put blocking handlers into the stacks that are an exception. So I guess the answer is...it depends. ___ 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:
Yeah, adding another running process seems like the only option I have for this (if its important enough case to warrant it). My livecode standalone is actually a launcher and updater for a node-webkit (http://nwjs.io/) application, so I am already adding extra running processes to the three nw.exe that get put into use by node-webkit via the livecode standalone. (Totaling 4 processes right now.) You could see why I might be hesitant to go down the rabbit hole to a process to manage my manager process. ;) It was just wishful thinking on my part, wasn't sure if there was a message I wasn't privy to that could work like I described. Thanks again, Andrew On Fri, Feb 6, 2015 at 3:24 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: Unfortunately the singlethreadedness of the engine prohibits any kind of cron process, which is what you need. You may be able to shell it out though. Not sure of the syntax, and I would look it up for you, but I wouldn’t want to rob you of the joys of paging through lots of nonsense to get the the real gem of information you need. Bob S On Feb 6, 2015, at 13:18 , Andrew Kluthe and...@ctech.me wrote: Yep, and that's no problem either, but I really want to minimize the length of time these could sit around on a machine between uses. I am decrypting a sqlite db to an obscure temp folder on launch. I am doing this in lieu of being able to use something like sqlcipher with livecode and my sqlite DB being too large to store in memory. The DB is only about 250 mb, but still too much to do anything comfortably in memory or stored in a custom property on the machines this is intended to run on (Older machines sitting in dealership maintenance departments). Just trying to get the best of everything shutdown wise. shutdownRequest responds to SIGTERM's I was hoping there was something equivalent for SIGKILL or whatever windows is sending the process when exited from the task manager. Thanks, Andrew On Fri, Feb 6, 2015 at 2:42 PM, Peter Haworth p...@lcsql.com wrote: Not sure if there is aa appropriate message but maybe you could check for these files on startup and delete them then? 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 Fri, Feb 6, 2015 at 12:37 PM, Andrew Kluthe and...@ctech.me wrote: Hello Ya'll, I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? -- Regards, Andrew Kluthe and...@ctech.me ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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: Data Grid objects in standalones
The problem with letting the compiler handle this is that I cannot access the Data Grid Template stack from the main stack if it is not a part of the engine file. The standalone setup dialog is somewhat confusing in the sense that it seems as if it is possible to choose which substack files to include with the engine file and which substack files to branch out in a folder of its own. As far as I have discovered it is all or nothing. I guess I will have to dive into the code of the main stack again and write relative paths to all the stacks I don’t want to be a part of the engine. Luckily there are not very many of them, and they are not called from more than a couple of handlers. Tore N 6. feb. 2015 kl. 22.17 skrev Bob Sneidar bobsnei...@iotecdigital.com: As mentioned in the past, the easiest way around this is to have a mainstack that calls your actual application stacks. Password protect the app stacks if you like to protect the code. That way the app stacks are not actually a part of the read-only application, they are like support files that can be modified if put in the right place, which the compiler does for you. Bob S On Feb 6, 2015, at 12:47 , Tore Nilsen tore.nil...@me.commailto:tore.nil...@me.com wrote: I am using several Data Grid objects, as tables, in a standalone. When I try to manually enter data into fields in the data grid object it works alright as long as the main stack and the substacks are built as a single file, but not when I try to build the standalone with the substacks as separate files. I guess the reason is that the main stack loses connection with the Data Grid Template stack once this is moved into a separate file. I would however prefer to have the substacks as individual files in order to be able to upgrade them easily, without the need for an upgrade of the application as such. Are there any solutions to this problem that does not require a total rebuild of the application structure. Tore N ___ 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: Data Grid objects in standalones
Thanks for pointing me in this direction. I have read this lesson, and I have also made the data grid templates dud, although there should be no need for it, as the compiler does include the correct data grid template as a substack. The problem arises when I choose to move substacks into individual files during compiling. Then the application seems to lose contact with the data grid template stack. This happens whether or not I include a substack called data grid templates dud or not. As I need to get my application ready for my students for Monday, I think I will do as Bob S suggests and just “rewire” the structure in code. Tore N 6. feb. 2015 kl. 22.32 skrev Mike Bonner bonnm...@gmail.com: Tore, read this. http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid Specifically the part of bulding with a datagrid using a splashstack. The easiest way to get functional datagrids that are parts of seperate stack files is to incuded a single substack in your main that is named datagrid templates dud so that the builder will decide to include all the datagrid support libraries. More detail available in the link from above. On Fri, Feb 6, 2015 at 2:27 PM, Tore Nilsen tore.nil...@me.com wrote: The problem with letting the compiler handle this is that I cannot access the Data Grid Template stack from the main stack if it is not a part of the engine file. The standalone setup dialog is somewhat confusing in the sense that it seems as if it is possible to choose which substack files to include with the engine file and which substack files to branch out in a folder of its own. As far as I have discovered it is all or nothing. I guess I will have to dive into the code of the main stack again and write relative paths to all the stacks I don’t want to be a part of the engine. Luckily there are not very many of them, and they are not called from more than a couple of handlers. Tore N 6. feb. 2015 kl. 22.17 skrev Bob Sneidar bobsnei...@iotecdigital.com: As mentioned in the past, the easiest way around this is to have a mainstack that calls your actual application stacks. Password protect the app stacks if you like to protect the code. That way the app stacks are not actually a part of the read-only application, they are like support files that can be modified if put in the right place, which the compiler does for you. Bob S On Feb 6, 2015, at 12:47 , Tore Nilsen tore.nil...@me.commailto: tore.nil...@me.com wrote: I am using several Data Grid objects, as tables, in a standalone. When I try to manually enter data into fields in the data grid object it works alright as long as the main stack and the substacks are built as a single file, but not when I try to build the standalone with the substacks as separate files. I guess the reason is that the main stack loses connection with the Data Grid Template stack once this is moved into a separate file. I would however prefer to have the substacks as individual files in order to be able to upgrade them easily, without the need for an upgrade of the application as such. Are there any solutions to this problem that does not require a total rebuild of the application structure. Tore N ___ 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: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
Brahmanathaswami wrote: it depends got it... for me it's not about protecting anything.. it's about..eg. on resizestack x,y set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end resize stack This gets triggered by a substack that does not have those controlled. How do you do this in real code on resizestack x,y if this stack is not the stack that this handler resides in then do nothing else set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end if end resizestack If the mainstack is a single card, just put the handler in the card script. If the mainstack has multiple cards, put the handler in a common group script. If neither of those are viable in your setup, you could add a check to make sure the long name of me is in the long ID of the target. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the 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
Re: Data Grid objects in standalones
Tore, read this. http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid Specifically the part of bulding with a datagrid using a splashstack. The easiest way to get functional datagrids that are parts of seperate stack files is to incuded a single substack in your main that is named datagrid templates dud so that the builder will decide to include all the datagrid support libraries. More detail available in the link from above. On Fri, Feb 6, 2015 at 2:27 PM, Tore Nilsen tore.nil...@me.com wrote: The problem with letting the compiler handle this is that I cannot access the Data Grid Template stack from the main stack if it is not a part of the engine file. The standalone setup dialog is somewhat confusing in the sense that it seems as if it is possible to choose which substack files to include with the engine file and which substack files to branch out in a folder of its own. As far as I have discovered it is all or nothing. I guess I will have to dive into the code of the main stack again and write relative paths to all the stacks I don’t want to be a part of the engine. Luckily there are not very many of them, and they are not called from more than a couple of handlers. Tore N 6. feb. 2015 kl. 22.17 skrev Bob Sneidar bobsnei...@iotecdigital.com: As mentioned in the past, the easiest way around this is to have a mainstack that calls your actual application stacks. Password protect the app stacks if you like to protect the code. That way the app stacks are not actually a part of the read-only application, they are like support files that can be modified if put in the right place, which the compiler does for you. Bob S On Feb 6, 2015, at 12:47 , Tore Nilsen tore.nil...@me.commailto: tore.nil...@me.com wrote: I am using several Data Grid objects, as tables, in a standalone. When I try to manually enter data into fields in the data grid object it works alright as long as the main stack and the substacks are built as a single file, but not when I try to build the standalone with the substacks as separate files. I guess the reason is that the main stack loses connection with the Data Grid Template stack once this is moved into a separate file. I would however prefer to have the substacks as individual files in order to be able to upgrade them easily, without the need for an upgrade of the application as such. Are there any solutions to this problem that does not require a total rebuild of the application structure. Tore N ___ 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: No subject
Right, already doing some of these goodies. Was just looking to round out my current method by covering all the bases possible. It's not a must have, just a would-be-nice kinda thing. On Fri, Feb 6, 2015 at 2:49 PM, Richard Gaskin ambassa...@fourthworld.com wrote: Andrew Kluthe wrote: I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? Kill is kill - there's nothing an app can to when the rug is pulled out from under it. You could instead handle cleanup in your app's initialization. While it can't guarantee it can close every session cleanly, it can guarantee starting cleanly. Also, if any temp files are written to the OS temp folder (specialFolderPath(temporary)) the OS will take care of those itself sooner or later, often on the next reboot. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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:
Ah what the hell. http://www.maclife.com/article/columns/terminal_101_creating_cron_jobs Bob S On Feb 6, 2015, at 13:24 , Bob Sneidar bobsnei...@iotecdigital.commailto:bobsnei...@iotecdigital.com wrote: Unfortunately the singlethreadedness of the engine prohibits any kind of cron process, which is what you need. You may be able to shell it out though. Not sure of the syntax, and I would look it up for you, but I wouldn’t want to rob you of the joys of paging through lots of nonsense to get the the real gem of information you need. Bob S ___ 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:
If your concern is that someone might poke around, find, examine the old data, you could encrypt it before writing it to the temp folder. Just a thought - Phil On 2/6/15 1:29 PM, Andrew Kluthe wrote: As my stacks are targeting windows only for the moment, cron isnt really an option here either. I do appreciate the follow up though. On Fri, Feb 6, 2015 at 3:27 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: Ah what the hell. http://www.maclife.com/article/columns/terminal_101_creating_cron_jobs Bob S On Feb 6, 2015, at 13:24 , Bob Sneidar bobsnei...@iotecdigital.com mailto:bobsnei...@iotecdigital.com wrote: Unfortunately the singlethreadedness of the engine prohibits any kind of cron process, which is what you need. You may be able to shell it out though. Not sure of the syntax, and I would look it up for you, but I wouldn’t want to rob you of the joys of paging through lots of nonsense to get the the real gem of information you need. Bob S ___ 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 -- Phil Davis ___ 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: Question re project organization
On Fri, Feb 6, 2015 at 3:40 AM, William Prothero proth...@earthednet.org wrote: I expect the splash app model is the way to go. Only if you never ever plan on deploying to iOS or you don't believe that OS X's iOSification will get to the point that the same restrictions that prevent splash stacks from being approved by Apple for iOS will be applied to desktop. The latter obviously assuming that you are working within the Mac App Store not an unknown developer. If on the other hand an iOS version is a possibility then you may as well cross the bridge now and find a non-splash stack solution - as you already seem to be working with a server side db a local sqlite db might be a possibility; stored in specialFolderPath(documents) for iOS and specialFolderPath(support) for OS X and Win (not sure for Linux). ___ 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:
Yeah, sorry for the wasted bandwidth, because there was no subject all the replies weren't threaded properly so I didn't see a couple of the other responses - now I see you've basically got it covered. On Sat, Feb 7, 2015 at 8:25 AM, Andrew Kluthe and...@ctech.me wrote: I am. ;) It works pretty good, I was just trying to button up this one specific pitfall. On Fri, Feb 6, 2015 at 6:24 PM, Kay C Lan lan.kc.macm...@gmail.com wrote: On Sat, Feb 7, 2015 at 5:18 AM, Andrew Kluthe and...@ctech.me wrote: The DB is only about 250 mb, but still too much to do anything comfortably in memory or stored in a custom property on the machines this is intended to run on (Older machines sitting in dealership maintenance departments). Maybe I have it completely wrong but why aren't you using specialFolderPath(temporary) - works on every platform and it's my understanding that if you don't clean up the file the next time the machine is shutdown it'll be automatically removed anyway. HTH ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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:
There are cron methods in Windows too. Use the AT command in a shell script. Bob S On Feb 6, 2015, at 13:29 , Andrew Kluthe and...@ctech.memailto:and...@ctech.me wrote: As my stacks are targeting windows only for the moment, cron isnt really an option here either. I do appreciate the follow up though. ___ 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:
Yeah, the no subject thing was very regrettable. Totally meant to fill it in, just got a but button happy after I finished my email text. For some reason, I write my message and then give it a subject to frame it best. Kind of backwards. On Fri, Feb 6, 2015 at 6:40 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: There are cron methods in Windows too. Use the AT command in a shell script. Bob S On Feb 6, 2015, at 13:29 , Andrew Kluthe and...@ctech.memailto: and...@ctech.me wrote: As my stacks are targeting windows only for the moment, cron isnt really an option here either. I do appreciate the follow up though. ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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
LC, SQLite and REGEXP
OK, SQLite DB in Valentina Studio I test the following: SELECT something FROM aTable WHERE anotherThing REGEX '[acdehkiouBW]{4,6} Test' works fine, I get the data I'm looking for. Same SQLite DB accessed via LC, selecting and updating all sorts of tables and columns, no problem until I run the above statement. The result is: revdberr,Database Error: no such function: REGEXP Any clues? ___ 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: Question re project organization
Kay: Thanks for offering your expertise. What I’m thinking is to have a main application stack. then the user will be able to add stacks to enhance the software. I’m thinking of a mySQL database that is queried, that lists available enhancements and their location. The user would get a menu of enhancements and choosing one or more would download and connect them into the main application. I’m thinking the main app will be the “engine” that supports peripheral activities. It’s an educational app, so various activities, writing exercises, challenges, explanations and videos, etc would be added. The way the program develops will depend on feedback from teachers and what they will actually use. Is this practical in the iOS style of app? I’m really tired of rewriting my software for new authoring systems and would like to get this right. From what I understand, Apple will not let you write apps that download code that they haven’t approved of. Is there a way I could accomplish what I want, within the current iOS rules, which will probably eventually be applied to the desktop too? In fact, will Apple allow the app to connect to my mySQL database for configurations and content downloads? I guess I should spend some time going over Apple’s documentation on this. Best, Bill On Feb 6, 2015, at 3:57 PM, Kay C Lan lan.kc.macm...@gmail.com wrote: On Fri, Feb 6, 2015 at 3:40 AM, William Prothero proth...@earthednet.org wrote: I expect the splash app model is the way to go. Only if you never ever plan on deploying to iOS or you don't believe that OS X's iOSification will get to the point that the same restrictions that prevent splash stacks from being approved by Apple for iOS will be applied to desktop. The latter obviously assuming that you are working within the Mac App Store not an unknown developer. If on the other hand an iOS version is a possibility then you may as well cross the bridge now and find a non-splash stack solution - as you already seem to be working with a server side db a local sqlite db might be a possibility; stored in specialFolderPath(documents) for iOS and specialFolderPath(support) for OS X and Win (not sure for Linux). ___ 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: How to detect that user closed window
Ah, thx richard, but didn't know it was only the main, but it makes sense. So, if you want to save a substack as a separate stack file, you'd have to a) set its mainstack property to itself, and b) set the path and filename you wish to save it to before you save it, otherwise the save as dialog will always pop up. If you just want to save the mainstack (which wouldn't work in a standalone anyway unless using the splashstack method) You'd want to make sure you were actually saving the mainstack, which would of course save its substacks. And as richard said, any newly created or downloaded mainstacks won't have the filename set, so you'd have to do that in code before calling save if you don't want it to pop up the dialog. On Fri, Feb 6, 2015 at 6:40 PM, Richard Gaskin ambassa...@fourthworld.com wrote: Bob Sneidar wrote: filename does not seem to be a property of a stack. The filename is a property of mainstacks. For substacks use the effective filename. For stacks that have been newly created, or downloaded over the Web, the filename will be empty. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the 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 ___ 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: LC, SQLite and REGEXP
You have to create a user function for it to work. REGEXP is there in sqlite, but all it does is refer to a function you create. From this page: http://stackoverflow.com/questions/5071601/how-do-i-use-regex-in-a-sqlite-query is this. If you can figure out how to execute this with revexecutesql after opening the db, you can then most likely use REGEXP. The error pretty much confirms this is the case. $pdo-sqliteCreateFunction('regexp', function ($pattern, $data, $delimiter = '~', $modifiers = 'isuS') { if (isset($pattern, $data) === true) { return (preg_match(sprintf('%1$s%2$s%1$s%3$s', $delimiter, $pattern, $modifiers), $data) 0); } return null; }); On Fri, Feb 6, 2015 at 9:22 PM, Kay C Lan lan.kc.macm...@gmail.com wrote: OK, SQLite DB in Valentina Studio I test the following: SELECT something FROM aTable WHERE anotherThing REGEX '[acdehkiouBW]{4,6} Test' works fine, I get the data I'm looking for. Same SQLite DB accessed via LC, selecting and updating all sorts of tables and columns, no problem until I run the above statement. The result is: revdberr,Database Error: no such function: REGEXP Any clues? ___ 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: Untitled messages...
Richard Gaskin: ...break the utility of the archives True! I was just trying to view those. Succeeded by selecting the previous message's link and then using Tab and Enter. (Win 7 Firefox.) Best wishes, Curry K. ___ 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: LC, SQLite and REGEXP
Thanks Mike, I guess Valentina Studio must include that function automatically because I certainly didn't add it. Thankfully I've been able to implement a work around, not as powerful as regex, but it works. On Sat, Feb 7, 2015 at 12:38 PM, Mike Bonner bonnm...@gmail.com wrote: You have to create a user function for it to work. REGEXP is there in sqlite, but all it does is refer to a function you create. From this page: http://stackoverflow.com/questions/5071601/how-do-i-use-regex-in-a-sqlite-query is this. If you can figure out how to execute this with revexecutesql after opening the db, you can then most likely use REGEXP. The error pretty much confirms this is the case. $pdo-sqliteCreateFunction('regexp', function ($pattern, $data, $delimiter = '~', $modifiers = 'isuS') { if (isset($pattern, $data) === true) { return (preg_match(sprintf('%1$s%2$s%1$s%3$s', $delimiter, $pattern, $modifiers), $data) 0); } return null; }); On Fri, Feb 6, 2015 at 9:22 PM, Kay C Lan lan.kc.macm...@gmail.com wrote: OK, SQLite DB in Valentina Studio I test the following: SELECT something FROM aTable WHERE anotherThing REGEX '[acdehkiouBW]{4,6} Test' works fine, I get the data I'm looking for. Same SQLite DB accessed via LC, selecting and updating all sorts of tables and columns, no problem until I run the above statement. The result is: revdberr,Database Error: no such function: REGEXP Any clues? ___ 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: Hide Stack Message
NVM found it. We were just talking about putting preopenstack handlers in the card script of the main stack so it doesn’t get triggered inadvertently. DOH! Bob S On Feb 6, 2015, at 16:56 , Bob Sneidar bobsnei...@iotecdigital.com wrote: Is there a message that gets sent when a stack is hidden? I have a stack that is getting hidden every time I go to one of it’s substacks. I’ve used the find command on my scripts to search for “hide stack” or “hide this” but there is no place this command exists that ought to trigger it. The one place it DOES exist I put a checkpoint on and it didn’t trigger. I need to find where this is happening so I can nuke it. Bob S ___ 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: Mobile cloud storage
For simple, small files this could probably be done with livecode alone as it exists today. For large file uploads where it would block the entire process while it uploads, maybe not so much. I've got high hopes for being able to wrap all kinds of dll's and sdks in livecode in the future when the replacement for externals hits the street. How much of this ends up being do-able with what they are building along those lines is still to be seen. I believe it was the intention to replace externals for non-gui related things with widgets as well, yeah? MongoDB Drivers, sqlcipher, curl, etc? On Thu, Feb 5, 2015 at 8:22 AM, Mark Wilcox m...@sorcery-ltd.co.uk wrote: So most folks have either iCloud, Goggle Drive, Dropbox, or OwnCloud, and using those sure beats building a complex storage backend for simple apps. Does our community have yet a library for allowing the user to pick which common storage system they have and an API for reading/writing to it? Apple made a generic solution for this on iOS and OS X. Document Provider Extensions (OK, new OS versions only). https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/FileProvider.html#//apple_ref/doc/uid/TP40014214-CH18-SW1 If you want to read and write files from/to cloud storage then there's single interface and the device only shows providers that the user has installed/configured. The latter part you obviously can't get without being the OS provider and having providers write Extensions to tell the system they offer file storage. For Apple platforms at least it would make sense to mimic the interface as far as possible though, assuming you don't just want to wrap what they've already done. -- Mark Wilcox m...@sorcery-ltd.co.uk ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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: Data Grid objects in standalones
Either that or having the possibility to choose which substacks to include in the application and which substacks to save as individual stacks would help. Tore 6. feb. 2015 kl. 23.11 skrev Mike Bonner bonnm...@gmail.com: DOH, thats what you said above, though this might be a good time for a feature request. It would be nice if inclusions were searched for BEFORE the option to disconnect substacks into seperate stack files, it would make building splashstack. On Fri, Feb 6, 2015 at 2:32 PM, Mike Bonner bonnm...@gmail.com wrote: Tore, read this. http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid Specifically the part of bulding with a datagrid using a splashstack. The easiest way to get functional datagrids that are parts of seperate stack files is to incuded a single substack in your main that is named datagrid templates dud so that the builder will decide to include all the datagrid support libraries. More detail available in the link from above. On Fri, Feb 6, 2015 at 2:27 PM, Tore Nilsen tore.nil...@me.com wrote: The problem with letting the compiler handle this is that I cannot access the Data Grid Template stack from the main stack if it is not a part of the engine file. The standalone setup dialog is somewhat confusing in the sense that it seems as if it is possible to choose which substack files to include with the engine file and which substack files to branch out in a folder of its own. As far as I have discovered it is all or nothing. I guess I will have to dive into the code of the main stack again and write relative paths to all the stacks I don’t want to be a part of the engine. Luckily there are not very many of them, and they are not called from more than a couple of handlers. Tore N 6. feb. 2015 kl. 22.17 skrev Bob Sneidar bobsnei...@iotecdigital.com: As mentioned in the past, the easiest way around this is to have a mainstack that calls your actual application stacks. Password protect the app stacks if you like to protect the code. That way the app stacks are not actually a part of the read-only application, they are like support files that can be modified if put in the right place, which the compiler does for you. Bob S On Feb 6, 2015, at 12:47 , Tore Nilsen tore.nil...@me.commailto: tore.nil...@me.com wrote: I am using several Data Grid objects, as tables, in a standalone. When I try to manually enter data into fields in the data grid object it works alright as long as the main stack and the substacks are built as a single file, but not when I try to build the standalone with the substacks as separate files. I guess the reason is that the main stack loses connection with the Data Grid Template stack once this is moved into a separate file. I would however prefer to have the substacks as individual files in order to be able to upgrade them easily, without the need for an upgrade of the application as such. Are there any solutions to this problem that does not require a total rebuild of the application structure. Tore N ___ 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:
I am. ;) It works pretty good, I was just trying to button up this one specific pitfall. On Fri, Feb 6, 2015 at 6:24 PM, Kay C Lan lan.kc.macm...@gmail.com wrote: On Sat, Feb 7, 2015 at 5:18 AM, Andrew Kluthe and...@ctech.me wrote: The DB is only about 250 mb, but still too much to do anything comfortably in memory or stored in a custom property on the machines this is intended to run on (Older machines sitting in dealership maintenance departments). Maybe I have it completely wrong but why aren't you using specialFolderPath(temporary) - works on every platform and it's my understanding that if you don't clean up the file the next time the machine is shutdown it'll be automatically removed anyway. HTH ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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:
IC so then the suggestion of encrypting the data before writing it to the HD is probably a good idea. It’s a simple thing to do: encrypt theData using aes128 with theSeedValue put it into theEncData get empty -- for safe measure and the seed can be anything you want it to be. Bob S On Feb 6, 2015, at 17:00 , Andrew Kluthe and...@ctech.memailto:and...@ctech.me wrote: Yeah, it's pretty similar. I still kind of run the risk of not being able to tell it when to delete the file as this is going to be a long running application (one that stays open most of the day, or days? it's a parts lookup and interchange program) on the users system and I wouldn't be able to set the AT command at end process the same as me being unable to call any kind of lc script when it does. It's in an obscure but vulnerable state when its open anyway so this one little thing isn't a huge issue. I was just looking to see if there was any kind of message at all that was sent to a stack on ending a process like that on windows. ___ 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: How to detect that user closed window
filename does not seem to be a property of a stack. If you mean the first two fields in the Stack Properties palette, then yes it is named. Bob S On Feb 5, 2015, at 17:00 , Mike Bonner bonnm...@gmail.commailto:bonnm...@gmail.com wrote: Silly question, but.. the filename of the stack is set, right? If its empty, when you try to save, the save as dialog will pop. ___ 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: Hide Stack Message
set the vis[ible] of stack x to false ?? On 2/6/15 4:56 PM, Bob Sneidar wrote: Is there a message that gets sent when a stack is hidden? I have a stack that is getting hidden every time I go to one of it’s substacks. I’ve used the find command on my scripts to search for “hide stack” or “hide this” but there is no place this command exists that ought to trigger it. The one place it DOES exist I put a checkpoint on and it didn’t trigger. I need to find where this is happening so I can nuke it. Bob S ___ 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 -- Phil Davis ___ 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:
Yeah, it's pretty similar. I still kind of run the risk of not being able to tell it when to delete the file as this is going to be a long running application (one that stays open most of the day, or days? it's a parts lookup and interchange program) on the users system and I wouldn't be able to set the AT command at end process the same as me being unable to call any kind of lc script when it does. It's in an obscure but vulnerable state when its open anyway so this one little thing isn't a huge issue. I was just looking to see if there was any kind of message at all that was sent to a stack on ending a process like that on windows. On Fri, Feb 6, 2015 at 6:40 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: There are cron methods in Windows too. Use the AT command in a shell script. Bob S On Feb 6, 2015, at 13:29 , Andrew Kluthe and...@ctech.memailto: and...@ctech.me wrote: As my stacks are targeting windows only for the moment, cron isnt really an option here either. I do appreciate the follow up though. ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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: Troubles with inequality
On Thu, Feb 5, 2015 at 7:02 AM, Graham Samuel livf...@mac.com wrote: Thanks Jacque, a gold mine of information as usual. But it’s pretty obscure, isn’t it? All this started for me because I wanted to test if two numbers were equal, knowing that they probably weren’t exactly equal to the last decimal place but nevertheless were ‘engineering equal’ as it were - say to six places of decimals. So I tried to truncate them to that length and then compare them. More fool me. But now I think I know what should be done, thanks to you - and to everyone else who replied. Graham Why not a simple: (in the multline msg box) put 1.901 into a put 1.902 into b put a = b into msg put cr (char 1 to 8 of a = char 1 to 8 of b) after msg put 1.0 into a put 1.01 into b put cr (a = b) after msg put cr (char 1 to 8 of a = char 1 to 8 of b) after msg 8 characters is to 6 decimal places and the fact that LC automatically casts to numbers where it can nicely solves the problem that although string 1.0 1.00 in your case you are interested in the numeric value so you get the correct answer. LCs chunking capabilities are brilliant, we sometimes just need to remember that a number is a word in LC, and words have characters, and characters can be compared. The nice thing about LC is when presented with a number Cat you don't have to skin it with only number solutions; you can engineer any result you want ;-) ___ 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: How to detect that user closed window
Bob Sneidar wrote: filename does not seem to be a property of a stack. The filename is a property of mainstacks. For substacks use the effective filename. For stacks that have been newly created, or downloaded over the Web, the filename will be empty. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the 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
Untitled messages...
...break the utility of the archives (see the bottom here): http://lists.runrev.com/pipermail/use-livecode/2015-February/date.html Could you please consider adding a title to the next message in an untitled thread? Thanks - -- 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
Re:
On Sat, Feb 7, 2015 at 5:18 AM, Andrew Kluthe and...@ctech.me wrote: The DB is only about 250 mb, but still too much to do anything comfortably in memory or stored in a custom property on the machines this is intended to run on (Older machines sitting in dealership maintenance departments). Maybe I have it completely wrong but why aren't you using specialFolderPath(temporary) - works on every platform and it's my understanding that if you don't clean up the file the next time the machine is shutdown it'll be automatically removed anyway. HTH ___ 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:
It stays encrypted on disk, but the file is being obscured away in a random temp folder *during runtime only* in a decrypted state. ;) I was just trying to make cleanup on exiting a little more foolproof than I have it already. I can't even use lc's built in encryption without hitting out of memory errors. Hence the reason I cant just hide it in a custom prop or run it in memory. thanks though. On Fri, Feb 6, 2015 at 5:58 PM, Phil Davis rev...@pdslabs.net wrote: If your concern is that someone might poke around, find, examine the old data, you could encrypt it before writing it to the temp folder. Just a thought - Phil On 2/6/15 1:29 PM, Andrew Kluthe wrote: As my stacks are targeting windows only for the moment, cron isnt really an option here either. I do appreciate the follow up though. On Fri, Feb 6, 2015 at 3:27 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: Ah what the hell. http://www.maclife.com/article/columns/terminal_101_creating_cron_jobs Bob S On Feb 6, 2015, at 13:24 , Bob Sneidar bobsnei...@iotecdigital.com mailto:bobsnei...@iotecdigital.com wrote: Unfortunately the singlethreadedness of the engine prohibits any kind of cron process, which is what you need. You may be able to shell it out though. Not sure of the syntax, and I would look it up for you, but I wouldn’t want to rob you of the joys of paging through lots of nonsense to get the the real gem of information you need. Bob S ___ 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 -- Phil Davis ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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
Hide Stack Message
Is there a message that gets sent when a stack is hidden? I have a stack that is getting hidden every time I go to one of it’s substacks. I’ve used the find command on my scripts to search for “hide stack” or “hide this” but there is no place this command exists that ought to trigger it. The one place it DOES exist I put a checkpoint on and it didn’t trigger. I need to find where this is happening so I can nuke it. Bob S ___ 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: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
Richard Gaskin wrote: 1) If the mainstack is a single card, just put the handler in the card script. 2) If the mainstack has multiple cards, put the handler in a common group script. 3) If neither of those are viable in your setup, you could add a check to make sure the long name of me is in the long ID of the target. BR: Understood. I doing # 2 now... so I guess that will do for now. How do you do this in real code on resizestack x,y if this stack is not the stack that this handler resides in then do nothing else set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end if end resizestack ___ 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:
I'm already doing this, I've already explained why LC's built in encryption wont work for me. Nor do I need it to work. Nor do I need further advice on the rest of my implementation that I didn't come seeking advice on. I've said several times that I came looking for information on a specific message for a specific. I got my answer, I've tried to be polite and sate your curiosity in what I am trying to accomplish. I made a grave mistake. I get that there might be threading issues with the messages in this series, but lawdy lawdy the signal to noise ratio is insane around here these days. On Fri, Feb 6, 2015 at 7:07 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote: IC so then the suggestion of encrypting the data before writing it to the HD is probably a good idea. It’s a simple thing to do: encrypt theData using aes128 with theSeedValue put it into theEncData get empty -- for safe measure and the seed can be anything you want it to be. Bob S On Feb 6, 2015, at 17:00 , Andrew Kluthe and...@ctech.memailto: and...@ctech.me wrote: Yeah, it's pretty similar. I still kind of run the risk of not being able to tell it when to delete the file as this is going to be a long running application (one that stays open most of the day, or days? it's a parts lookup and interchange program) on the users system and I wouldn't be able to set the AT command at end process the same as me being unable to call any kind of lc script when it does. It's in an obscure but vulnerable state when its open anyway so this one little thing isn't a huge issue. I was just looking to see if there was any kind of message at all that was sent to a stack on ending a process like that on windows. ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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
HTML5 will it or won't it?
I think RunRev are being a bit naughty again and not keeping their user-base informed . . . whither the HTML5 project? As Canonical release their Ubuntu phone which uses apps written in HTML5 this becomes even more pressing. http://www.bbc.com/news/technology-31148661 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:
Not sure if there is aa appropriate message but maybe you could check for these files on startup and delete them then? 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 Fri, Feb 6, 2015 at 12:37 PM, Andrew Kluthe and...@ctech.me wrote: Hello Ya'll, I'm trying to run some cleanup handlers to delete temporary files when my standalone exits. I was wanting to now if there was a way to trap when an application is quit via ending the process abruptly in the task manager on Windows (in my case 7). I was hoping the shutdownRequest message would get hit when this is done, but testing it on windows 7 and LC 6.5.5 it exits without sending shutdownRequest I can already handle when the my application is quit through more conventional means, but I want these temp files cleaned up regardless of how it exits (unless its a crash of course, etc). Any tips on what to try next? -- Regards, Andrew Kluthe and...@ctech.me ___ 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: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
Hi Brahmanathaswami, It isn't obligatory to use substacks. You could use two mainstacks simultaneously. Just make sure to include the additional mainstacks as files when you build a standalone. With two mainstacks, the scripts in one stack won't be triggered by messages from the other. If you have handlers that you want to use in both stacks, you can put those handlers into another separate stack and use that as a library with the start using command or by defining front and back scripts. -- 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 2/6/2015 07:49, Brahmanathaswami wrote: If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I just moved all those to the main background group of the main stack, but I'm not happy with that architecture. I'm so use to running most script in the main stack script for simplicity sake and ease of finding things. I suppose one can install dummy handlers in the substacks to match. e.g on preopenstack end preopenstack and since you are not passing anything, I suspect it will prevent triggering that handler in the main stack.. But, what are you veterans doing to handle this? Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.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
[OT)ish iOS app rejection issue
I submitted 2 apps on the same day last week. Both apps are identical in every way except for the data set. One was approved, one was rejected??? Just an FYI on the inconsistency of the review process. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net ___ 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: gratuitous inclusion of oracle in 7.0.2-RC2
On Feb 4, 2015, at 6:48 PM, Dr. Hawkins wrote: Can you give us some estimates (or actual numbers) for: - Number of objects Lots. Lots and lots and lots. :) I don't even know how to guess. Looks like generally 60-200 per page on the main entry stack of 12 cards, with about 1200 lines of code between the stack and cards. Hmm, only 600 objects on the Chapter 13 plan; Im surprised. snip Here's a script I use to get the number of lines of code in my stack system. Adapt it as needed. In some of my stacks I have many cards but they all have the same backgrounds. I have only a few stacks where multiple cards have their own controls (as opposed to those belonging to a place background), so you'll have to adjust accordingly. (See the line starting if the short name of stack s is among the items of...) -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig - function countScriptLines put the mainstack of stack PDdata into ms put the long id of stack ms into mainID put the number of lines of the script of mainID into totScrLines put the number of lines of the script of card 1 of mainID into scrLines add scrLines to totScrLines put the substacks of mainID into ssList repeat for each line s in ssList put the number of lines of the script of stack s into scrLines add scrLines to totScrLines if the short name of stack s is among the items of PCAreferral,PCPletter, \ termination then -- two cards, with different layouts put the number of cards of stack s into nbrCards else put 1 into nbrCards end if repeat with c = 1 to nbrCards put the number of lines of the script of card c of stack s into scrLines add scrLines to totScrLines put the number of controls of card c of stack s into nbrControls repeat with o = 1 to nbrControls put the short id of control o of card c of stack s into thisCtrlID if c 1 then -- second card -- don't duplicate shared controls if there is a control id thisCtrlID of card 1 of stack s then next repeat end if end if put the long id of control o of card c of stack s into ctrID put the number of lines of the script of ctrID into scrLines add scrLines to totScrLines end repeat end repeat end repeat return totScrLines end countScriptLines ___ 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
SQLite BLOB Data
When inserting and selecting BLOB data in an SQLite database, Livecode applies some sort of encoding/decoding thus ensuring that only Livecode applications can access it. In LC 6.6, a new revOpenDatabase option, binary, was provided for SQLite databases which eliminates the encoding. Personally, I think the binary option should have been the default for new SQLite databases created with Livecode but that's another story. Does anyone happen to know the encoding method used for this? 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