From runrev at vonfintel.org Wed Apr 1 01:57:56 2015 From: runrev at vonfintel.org (Thomas von Fintel) Date: Wed, 1 Apr 2015 07:57:56 +0200 Subject: system weekdayNames In-Reply-To: References: Message-ID: <1A32E01A-243C-4BD9-B0DC-5A42A124FEA9@vonfintel.org> I get "Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag" using LC 6.7.3 on OS 10.7.5 with week starting on Monday. Thomas Am 01.04.2015 um 03:15 schrieb Peter Haworth: > The system weekdayNames returns a list of day names in the user's local > language but is the order of the day names influenced by the calendar > conventions of the user's location? > > In other words, if I'm in the USA, the first name in the list is Sunday. > If I was in a country where the convention is to start the week on a > Monday, would Sunday still be the first day name in the list or would it be > Monday? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin From ilola.antti at gmail.com Wed Apr 1 05:29:40 2015 From: ilola.antti at gmail.com (Antti Ilola) Date: Wed, 1 Apr 2015 12:29:40 +0300 Subject: system weekdayNames In-Reply-To: <1A32E01A-243C-4BD9-B0DC-5A42A124FEA9@vonfintel.org> References: <1A32E01A-243C-4BD9-B0DC-5A42A124FEA9@vonfintel.org> Message-ID: I get always english day names in OS 10.9.5 on what ever version of LC. Starting day Sunday. 2015-04-01 8:57 GMT+03:00 Thomas von Fintel : > I get "Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag" > using LC 6.7.3 on OS 10.7.5 with week starting on Monday. > > Thomas > > Am 01.04.2015 um 03:15 schrieb Peter Haworth: > > > The system weekdayNames returns a list of day names in the user's local > > language but is the order of the day names influenced by the calendar > > conventions of the user's location? > > > > In other words, if I'm in the USA, the first name in the list is Sunday. > > If I was in a country where the convention is to start the week on a > > Monday, would Sunday still be the first day name in the list or would it > be > > Monday? > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ilola.antti at gmail.com Wed Apr 1 05:32:36 2015 From: ilola.antti at gmail.com (Antti Ilola) Date: Wed, 1 Apr 2015 12:32:36 +0300 Subject: system weekdayNames In-Reply-To: References: <1A32E01A-243C-4BD9-B0DC-5A42A124FEA9@vonfintel.org> Message-ID: There should be Finnish day names. I forget to mention. 2015-04-01 12:29 GMT+03:00 Antti Ilola : > I get always english day names in OS 10.9.5 on what ever version of LC. > Starting day Sunday. > > 2015-04-01 8:57 GMT+03:00 Thomas von Fintel : > >> I get "Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag" >> using LC 6.7.3 on OS 10.7.5 with week starting on Monday. >> >> Thomas >> >> Am 01.04.2015 um 03:15 schrieb Peter Haworth: >> >> > The system weekdayNames returns a list of day names in the user's local >> > language but is the order of the day names influenced by the calendar >> > conventions of the user's location? >> > >> > In other words, if I'm in the USA, the first name in the list is Sunday. >> > If I was in a country where the convention is to start the week on a >> > Monday, would Sunday still be the first day name in the list or would >> it be >> > Monday? >> > >> > Pete >> > lcSQL Software >> > Home of lcStackBrowser and >> > SQLiteAdmin >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From revolution at derbrill.de Wed Apr 1 06:36:29 2015 From: revolution at derbrill.de (Malte Brill) Date: Wed, 1 Apr 2015 12:36:29 +0200 Subject: [ANN] libDate on gitHub In-Reply-To: References: Message-ID: <4ECD0659-C0B3-4DB9-8B85-6A4853C1BB83@derbrill.de> Hi all, trying to get my feet wet with gitHub I have now created a repository for libDate. https://github.com/derbrill/libdate It remains released into the PD. :-) Hope some of you find this useful. All the best, Malte From david at viral.academy Wed Apr 1 06:40:02 2015 From: david at viral.academy (David Bovill) Date: Wed, 1 Apr 2015 11:40:02 +0100 Subject: [ANN] libDate on gitHub In-Reply-To: <4ECD0659-C0B3-4DB9-8B85-6A4853C1BB83@derbrill.de> References: <4ECD0659-C0B3-4DB9-8B85-6A4853C1BB83@derbrill.de> Message-ID: Cool - and you name your handlers just the same way I do :) On 1 April 2015 at 11:36, Malte Brill wrote: > Hi all, > > trying to get my feet wet with gitHub I have now created a repository for > libDate. > > https://github.com/derbrill/libdate > > It remains released into the PD. :-) > > Hope some of you find this useful. > > All the best, > > Malte > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at viral.academy Wed Apr 1 06:42:21 2015 From: david at viral.academy (David Bovill) Date: Wed, 1 Apr 2015 11:42:21 +0100 Subject: LiveNode Server Message-ID: The question is can you create in Livecode an aynchronous event-drive architecture? Livecode is built after all around an event loop, and through commands like dispatch, send in time, and wait with messages, it is possible to create asynchronous call back mechanisms - so why can we not create a node-like server in Livecode? Perhaps the answer lies in the nature of the asynchronous commands that are available? Still I don't see why this in an issue. From my experience of coding an HTTP server in Livecode - I cannot understand why it should not be possible to accept a socket connection, dispatch a command, and immediately return a result on the connected socket. The event loop should take over and allow new connections / data on the socket, and when the dispatched command completes it will return a result that can then be send back down the open socket. So why is this not an asynchronous event driven architecture? If it is then pwerhaps the way to go is to have LiveCode as another async event driven server - which can talk to other node server processes Assuming there is an issue with the above, the next question is that given that Node already can be extended with C / C++ extensions api - so why not treat Livecode as simply a Node extension and let Node do the async event driven I/O that it is so good at? From livfoss at mac.com Wed Apr 1 09:55:57 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 01 Apr 2015 15:55:57 +0200 Subject: OT: On-Rev issue (non-emergency) In-Reply-To: <10120B09-4E7A-4566-B30B-DF4E0D534B11@m-r-d.de> References: <77A06298-AF5D-4583-9024-73C07F964B42@mac.com> <64D6B4C0-1D0B-444D-966E-62A1BB03F3B5@mac.com> <10120B09-4E7A-4566-B30B-DF4E0D534B11@m-r-d.de> Message-ID: Matthias, you?re a treasure! I did what you said, using the files you kindly put onto dropbox. I assume my account name is just ?livfoss? (that?s the unique part of my On-Rev presence). It looks as if things are going OK despite my deep ignorance (as you see I am not even certain about my account name, nor indeed of the hostname to use when looking at databases. I suppose I will learn eventually). In case you wondered, I?m having to do a Joomla installation, so now I am deep into the next step, which is telling the Joomla installation system that I?ve already created an SQL database for it. That part?s not going so well, but don?t worry, I?m getting help from elsewhere. Still no messages from official On-Rev support, by the way, and yes, I have checked my Junk folder. Thanks for all your help. Graham > On 31 Mar 2015, at 22:38, Matthias Rebbe wrote: > > Graham, > > the htaccess.txt file might contain the correct stuff, but as long as it is not named .htaccess it will be ignored by the Apache server. > > Can you open it and post the content of that file here? > > Or if you want to use the php.ini for your custom settings and the public_html folder does not contain the php.ini and/or the .htaccess file, > then you just need to create these 2 files. > You can do this very easy. > > 1. Create a php.ini file on your Mac or Windows > 2. add the line > magic_quotes_gpc = Off > to the new php.ini and save it > 3. upload that file to your public_html folder using ftp > 4. create a new file named htaccess on your Mac or Windows (yes without the period at the beginning) > 5. Add the following 5 lines > suPHP_ConfigPath /home/YOURACCOUNTNAME/public_html/ > > order allow,deny > deny from all > > > to the new htaccess file and save it > 6. upload the file htaccess to your public_html folder using ftp > 7. now rename that file to .htaccess (yes now with the period) > If something goes wrong, you can just delete the 2 files again from your server. > > If you are unsure how to edit those files you can downloaded them from here as zip-archive > https://dl.dropbox.com/s/bkamsdqyx0114fz/index.html > > After unpacking just upload them to the public_html folder and rename the htaccess file to .htaccess. > > Regards, > > Matthias >> Am 31.03.2015 um 21:42 schrieb Graham Samuel : >> >> Thanks Matthias, and thanks also to Shawn Beagle who contacted me off list. >> >> I am frankly too scared to follow these instructions: the editor suggests I make a back up before editing anything, and I don?t really know how to do the restore. As a LiveCode person and very much not a server person I have a very strong feeling of not being in Kansas any more. So I guess I will have to wait for On-Rev support to wake up. >> >> My nervousness is not helped by the fact that I don?t seem to have files like php.ini or .htaccess within the files I can see on the server. There is a htaccess.txt file but that belongs to Joomla which is the package telling me to turn off Magic Quotes - so why can?t it do the job itself? Confusion. >> >> Sorry to be a scaredy-cat, but for all I know I could start World War 3 by hitting the wrong part of some file. >> >> Graham >> >> >>> On 31 Mar 2015, at 19:38, Matthias Rebbe > wrote: >>> >>> Graham, >>> >>> you could try to disable it using an .htaccess file which is put into the root folder of your domain. >>> >>> Please add the following line to the .htaccess files >>> php_flag magic_quotes_gpc Off >>> >>> If this does not work you could use a php.ini file to disable it. >>> >>> See the first example at http://php.net/manual/de/security.magicquotes.disabling.php > >>> >>> >>> But to use a php.ini with custom php settings you will have to modify the .htaccess file in your public_html folder. >>> >>> Please add the following to the .htaccess file in the public_html folder. >>> >>> suPHP_ConfigPath /home/YOURACCOUNTNAME/public_html/ >>> >>> order allow,deny >>> deny from all >>> >>> >>> Please replace YOURACCOUNTNAME in the above line with your account name. >>> >>> This will make sure your custom settings in the php.ini are recognized by the server. >>> >>> If this all does not work i would say you should open an emergency support ticket, as the above described solutions should work on their servers. >>> >>> HTH >>> >>> Matthias >>> >>> >>>> Am 31.03.2015 um 16:34 schrieb Graham Samuel : >>>> >>>> Sorry to be OT, but I can?t describe my need for On-Rev support to be an emergency, yet I am completely stuck until I get help and I have not had a squeak out of On-Rev support since asking a question on 28th March; and my attempts to join the forum have not worked so far, as nobody has activated my account. >>>> >>>> Since many on this list have On-Rev accounts, maybe someone can enlighten me. I want to change Magic Quotes GPC to ?Off?. I need this for an installation process. As there?s nothing relevant that I can see in the cPanel and I have no real idea what this means, I need someone to tell me how to do it or to do it for me. >>>> >>>> If anyone can help, thanks. If not I?ll just wait for the folks at On-Rev to catch up. >>>> >>>> Graham >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From admin at FlexibleLearning.com Wed Apr 1 10:14:57 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Wed, 1 Apr 2015 15:14:57 +0100 Subject: Summer (Winter) Time Fun Message-ID: <000501d06c86$3ced5a70$b6c80f50$@FlexibleLearning.com> I was going to post a link to EXACTLY the same video clip! There are simply some things that defy any reasonable solution, but a 3am check-point on the change-over day is perhaps the least painful... or you allow a 1-day grace period on any date. Hugh Senior FLCo Peter wrote... If you have 10 minutes to spare, check out the video at https://youtu.be/-5wpm-gesOY on the topic of dealing with time zones and various other time related anomalies It's quite funny! It does mention that there is open source code to deal with this but doesn't say where it can be found. Pete lcSQL Software From paul at researchware.com Wed Apr 1 11:10:42 2015 From: paul at researchware.com (Paul Dupuis) Date: Wed, 01 Apr 2015 11:10:42 -0400 Subject: exporting htmlText for use in current browsers Message-ID: <551C0A72.3090308@researchware.com> I have run into a problem where current versions of FireFox, IE, and Chrome appear no longer recognize the HTML generated by the htmlText of a field, specifically the depricated tag (among others) When I wrap the htmText of a field in an HTML document structure, such as: [[title_HERE]] [[htmlText_HERE]] Regardless of what I use for a DOCTYPE, whether for HTML4.1 (loose): or HTML 3.2 (when was supported): is, of course, no longer supported at all in HTML5 The font sizes are not recognized in any of the three browsers above, with either DOCTYPE. Has anyone else run into this? And does anyone have a solution? I would really rather not have to code a translator to convert all FONT tags to CSS styles. Thank you in advance for any help. From th.douez at gmail.com Wed Apr 1 11:15:23 2015 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 1 Apr 2015 17:15:23 +0200 Subject: ABC of arrays Message-ID: Hi, I'm looking for any learning material to understand the basics of arrays in Livecode. It's for someone who is working since eons with Livecode but who doesn't understand arrays. Thanks for any pointer on the best beginner's lessons, stacks or whatsoever. Kind regards, Thierry From ambassador at fourthworld.com Wed Apr 1 11:55:34 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Apr 2015 08:55:34 -0700 Subject: LiveNode Server In-Reply-To: References: Message-ID: <551C14F6.2040304@fourthworld.com> GMTA: the folder where I keep my experimental server stacks is named "LiveNode". :) Good stuff here, a very useful and practical pursuit, IMO, in a world where one of the largest MMOs is also written in a high-level scripting language (EVE Online, in Python) so we know it's more than possible to consider a full-stack server solution entirely written in LiveCode: David Bovill wrote: > The question is can you create in Livecode an aynchronous event-drive > architecture? Livecode is built after all around an event loop, and > through commands like dispatch, send in time, and wait with messages, > it is possible to create asynchronous call back mechanisms - so why > can we not create a node-like server in Livecode? > > Perhaps the answer lies in the nature of the asynchronous commands > that are available? Still I don't see why this in an issue. From > my experience of coding an HTTP server in Livecode - I cannot > understand why it should not be possible to accept a socket > connection, dispatch a command, and immediately return a result on > the connected socket. The event loop should take over and allow > new connections / data on the socket, and when the dispatched > command completes it will return a result that can then be send > back down the open socket. I've been pondering similar questions myself: Pierre's been exploring this even longer: With socket I/O apparently handled asynchronously when the "with " option is used, this is a very tempting pursuit. The challenge arises from the recipient of the message: it will be running in the same thread as the socket broker, causing a backlog of message queueing; requests are received well enough, but responding requires then to be processes one at a time. Down the road we may have some form of threading, though that's not without programming complication and threads are somewhat expensive in terms of system resources (though there are options like "green threads" at least one Python build uses). Working with what we have, Mark Talluto, Todd Geist, and I (and probably others) have been independently exploring concurrency options using multiprocessing in lieu of multithreading, using a single connection broker feeding processing to any number of worker instances. The challenge there is that the LC VM is not currently forkable, so we can't pass a socket connection from the broker to a child worker process. Instead, we have to look at more primitive means, which tend toward two camps (though I'm sure many others are possible): a) Consistent Socket Broker The socket broker handles all network I/O with all clients, and feeds instructions for tasks to workers via sockets, stdIn, or even files (/sys/shm is pretty fast even though it uses simple file routines). The upside here is that any heavy processing is distributed among multiple workers, but the downside is that all network I/O still goes through one broker process. b) Redirects to Multiple Workers Here the main socket broker listening on the standard port only does one thing: it looks at a list of available workers (whether through simple round-robin, or something smarter like load reporting), each of which is listening on a non-standard port, and sends the client a 302 redirect to the server with that non-standard port so each worker is handling the socket comms directly and only a subset of them. If each worker also has its own collection of sub-workers as in option a) above, this could greatly multiple the number of clients served concurrently. The upside is that all aspects of load are distributed among multiple processes, even socket I/O, but the downside is the somewhat modest but annoying requirement that each request be submitted twice, once to the main broker and again to the redirected instance assigned to handle it. Purpose-built application servers can indeed be made with the LiveCode we have today and can handle reasonable amounts of traffic, more than one might think for a single-threaded VM. But all systems have scaling limits, and the limits with LC would be encountered sooner than with some other systems built from the ground up as high-load servers. IMO such explorations can be valuable for specific kinds of server apps, but as tempting as it is I wouldn't want to build a general purpose Web server with LiveCode. In addition to the scope of the HTTP 1.1 spec itself, Web stuff consists of many small transactions, in which a single page may require a dozen or more requests for static media like CSS, JS, images, etc., and Apache and NgineX are really good solutions that handle those needs well. I think the sweet spot for an entirely LiveCode application server would be those apps where backend processing load exceeds network I/O. As interesting as these things are, I have to admit I currently have no practical need for such a creature, so my brief experiments have been few and limited to an occasional Sunday with a free hour on my hands. :) If you have such a need it would be interesting to see how these things flesh out under real-work load. > Assuming there is an issue with the above, the next question is > that given that Node already can be extended with C / C++ > extensions api - so why not treat Livecode as simply a Node > extension and let Node do the async event driven I/O that it is > so good at? I have no direct experience with either Node.js or NgineX, so I'm out of my depth here - but that won't stop me from conjecturing : My understanding is that LiveCode, being single-threaded today, is limited to CGI, while Node.js and NgineX expect FastCGI (forkable) support. If you can get LiveCode to run well under Node.js I'd be very interested to see what you come up with. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Wed Apr 1 12:03:22 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 1 Apr 2015 09:03:22 -0700 Subject: Chromebooks revisited In-Reply-To: <551C14F6.2040304@fourthworld.com> References: <551C14F6.2040304@fourthworld.com> Message-ID: <4656C544-7EC2-49DA-B49E-C8CB69AA7F37@earthednet.org> Thinking about Chromebooks because my son, a 4'th grade teacher will be using them in his school. Still just a browser in a box? So we'll be waiting for livecode export to html5? Bill William Prothero http://es.earthednet.org > On Apr 1, 2015, at 8:55 AM, Richard Gaskin wrote: > > GMTA: the folder where I keep my experimental server stacks is named "LiveNode". :) > > Good stuff here, a very useful and practical pursuit, IMO, in a world where one of the largest MMOs is also written in a high-level scripting language (EVE Online, in Python) so we know it's more than possible to consider a full-stack server solution entirely written in LiveCode: > > David Bovill wrote: > > > The question is can you create in Livecode an aynchronous event-drive > > architecture? Livecode is built after all around an event loop, and > > through commands like dispatch, send in time, and wait with messages, > > it is possible to create asynchronous call back mechanisms - so why > > can we not create a node-like server in Livecode? > > > > Perhaps the answer lies in the nature of the asynchronous commands > > that are available? Still I don't see why this in an issue. From > > my experience of coding an HTTP server in Livecode - I cannot > > understand why it should not be possible to accept a socket > > connection, dispatch a command, and immediately return a result on > > the connected socket. The event loop should take over and allow > > new connections / data on the socket, and when the dispatched > > command completes it will return a result that can then be send > > back down the open socket. > > I've been pondering similar questions myself: > > > > Pierre's been exploring this even longer: > > > With socket I/O apparently handled asynchronously when the "with " option is used, this is a very tempting pursuit. > > The challenge arises from the recipient of the message: it will be running in the same thread as the socket broker, causing a backlog of message queueing; requests are received well enough, but responding requires then to be processes one at a time. > > Down the road we may have some form of threading, though that's not without programming complication and threads are somewhat expensive in terms of system resources (though there are options like "green threads" at least one Python build uses). > > Working with what we have, Mark Talluto, Todd Geist, and I (and probably others) have been independently exploring concurrency options using multiprocessing in lieu of multithreading, using a single connection broker feeding processing to any number of worker instances. > > The challenge there is that the LC VM is not currently forkable, so we can't pass a socket connection from the broker to a child worker process. > > Instead, we have to look at more primitive means, which tend toward two camps (though I'm sure many others are possible): > > a) Consistent Socket Broker > The socket broker handles all network I/O with all clients, and > feeds instructions for tasks to workers via sockets, stdIn, or > even files (/sys/shm is pretty fast even though it uses simple > file routines). > > The upside here is that any heavy processing is distributed among > multiple workers, but the downside is that all network I/O still > goes through one broker process. > > > b) Redirects to Multiple Workers > Here the main socket broker listening on the standard port only > does one thing: it looks at a list of available workers (whether > through simple round-robin, or something smarter like load > reporting), each of which is listening on a non-standard port, > and sends the client a 302 redirect to the server with that > non-standard port so each worker is handling the socket comms > directly and only a subset of them. If each worker also has > its own collection of sub-workers as in option a) above, this > could greatly multiple the number of clients served concurrently. > > The upside is that all aspects of load are distributed among > multiple processes, even socket I/O, but the downside is the > somewhat modest but annoying requirement that each request > be submitted twice, once to the main broker and again to the > redirected instance assigned to handle it. > > > Purpose-built application servers can indeed be made with the LiveCode we have today and can handle reasonable amounts of traffic, more than one might think for a single-threaded VM. > > But all systems have scaling limits, and the limits with LC would be encountered sooner than with some other systems built from the ground up as high-load servers. > > IMO such explorations can be valuable for specific kinds of server apps, but as tempting as it is I wouldn't want to build a general purpose Web server with LiveCode. In addition to the scope of the HTTP 1.1 spec itself, Web stuff consists of many small transactions, in which a single page may require a dozen or more requests for static media like CSS, JS, images, etc., and Apache and NgineX are really good solutions that handle those needs well. > > I think the sweet spot for an entirely LiveCode application server would be those apps where backend processing load exceeds network I/O. > > As interesting as these things are, I have to admit I currently have no practical need for such a creature, so my brief experiments have been few and limited to an occasional Sunday with a free hour on my hands. :) > > If you have such a need it would be interesting to see how these things flesh out under real-work load. > > > > Assuming there is an issue with the above, the next question is > > that given that Node already can be extended with C / C++ > > extensions api - so why not treat Livecode as simply a Node > > extension and let Node do the async event driven I/O that it is > > so good at? > > I have no direct experience with either Node.js or NgineX, so I'm out of my depth here - but that won't stop me from conjecturing : > > My understanding is that LiveCode, being single-threaded today, is limited to CGI, while Node.js and NgineX expect FastCGI (forkable) support. > > If you can get LiveCode to run well under Node.js I'd be very interested to see what you come up with. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Wed Apr 1 12:14:10 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 01 Apr 2015 18:14:10 +0200 Subject: ABC of arrays In-Reply-To: References: Message-ID: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> I?m coming from the same place. When you find this material, I?ll be looking at it too! Although I have made some baby steps with arrays with lots of help from members of this list (I can send you references to these conversations if you want), I still find them confusing. I have already complained that both the User Guide and the Dictionary do not do justice to arrays. And some things are just wrong: for example the very simple statement put the keys of myArray may or may not list all the keys, or it may. I have never understood this, especially as the Dictionary doesn?t discuss such ambiguities. Best of luck Graham > On 1 Apr 2015, at 17:15, Thierry Douez wrote: > > Hi, > > I'm looking for any learning material to understand > the basics of arrays in Livecode. > > It's for someone who is working since eons with Livecode > but who doesn't understand arrays. > > Thanks for any pointer on the best beginner's lessons, stacks or whatsoever. > > Kind regards, > > Thierry From ambassador at fourthworld.com Wed Apr 1 12:18:26 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Apr 2015 09:18:26 -0700 Subject: SoCal LUG tomorrow - NEW LOCATION Message-ID: <551C1A52.3070208@fourthworld.com> Pardon the second notice on this, but it's important to note for anyone interest in attending tomorrow night's SoCal LiveCode Group meeting that our location has changed - details in the forum: At the meeting I'll cover a Q/A on LiveCode 8, and have some other goodies to share time permitting. Looking forward to seeing you locals there - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From m.schonewille at economy-x-talk.com Wed Apr 1 12:22:44 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 01 Apr 2015 18:22:44 +0200 Subject: ABC of arrays In-Reply-To: References: Message-ID: <551C1B54.7060405@economy-x-talk.com> Hi Thierry, My book explains arrays in just over 2 pages. If this isn't enough, then I'd be very interested in reading the person's questions. -- 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 4/1/2015 17:15, Thierry Douez wrote: > Hi, > > I'm looking for any learning material to understand > the basics of arrays in Livecode. > > It's for someone who is working since eons with Livecode > but who doesn't understand arrays. > > Thanks for any pointer on the best beginner's lessons, stacks or whatsoever. > > Kind regards, > > Thierry From ambassador at fourthworld.com Wed Apr 1 12:27:45 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Apr 2015 09:27:45 -0700 Subject: ABC of arrays In-Reply-To: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> Message-ID: <551C1C81.5080300@fourthworld.com> Thierry Douez wrote: > I'm looking for any learning material to understand > the basics of arrays in Livecode. 1. Skim these: 2. Set aside an hour to experiment With that modest investment you'll gain a good understanding of arrays, and once gained your programming style will be changed forever. :) Graham Samuel wrote: > And some things are just wrong: for example the very simple statement > > put the keys of myArray > > may or may not list all the keys, or it may. I have never understood > this, especially as the Dictionary doesn?t discuss such ambiguities. The Dictionary doesn't describe that because it should never happen. Under what circumstances would "the keys" not returns the keys? FWIW, I've only seen "the keys" return all keys in every version of LC/MC I've ever used. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Wed Apr 1 12:31:37 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 1 Apr 2015 18:31:37 +0200 Subject: OT: On-Rev issue (non-emergency) In-Reply-To: References: <77A06298-AF5D-4583-9024-73C07F964B42@mac.com> <64D6B4C0-1D0B-444D-966E-62A1BB03F3B5@mac.com> <10120B09-4E7A-4566-B30B-DF4E0D534B11@m-r-d.de> Message-ID: <2071CCB7-CA27-4EB7-9AEE-6B0AA0D94EA7@m-r-d.de> > Am 01.04.2015 um 15:55 schrieb Graham Samuel : > > Matthias, you?re a treasure! I did what you said, using the files you kindly put onto dropbox. I assume my account name is just ?livfoss? (that?s the unique part of my On-Rev presence). It looks as if things are going OK despite my deep ignorance (as you see I am not even certain about my account name, nor indeed of the hostname to use when looking at databases. The server name is ?localhost?. > I suppose I will learn eventually). > In case you wondered, I?m having to do a Joomla installation, so now I am deep into the next step, which is telling the Joomla installation system that I?ve already created an SQL database for it. That part?s not going so well, but don?t worry, I?m getting help from elsewhere. > > Still no messages from official On-Rev support, by the way, and yes, I have checked my Junk folder. > > Thanks for all your help. > > Graham > >> On 31 Mar 2015, at 22:38, Matthias Rebbe wrote: >> >> Graham, >> >> the htaccess.txt file might contain the correct stuff, but as long as it is not named .htaccess it will be ignored by the Apache server. >> >> Can you open it and post the content of that file here? >> >> Or if you want to use the php.ini for your custom settings and the public_html folder does not contain the php.ini and/or the .htaccess file, >> then you just need to create these 2 files. >> You can do this very easy. >> >> 1. Create a php.ini file on your Mac or Windows >> 2. add the line >> magic_quotes_gpc = Off >> to the new php.ini and save it >> 3. upload that file to your public_html folder using ftp >> 4. create a new file named htaccess on your Mac or Windows (yes without the period at the beginning) >> 5. Add the following 5 lines >> suPHP_ConfigPath /home/YOURACCOUNTNAME/public_html/ >> >> order allow,deny >> deny from all >> >> >> to the new htaccess file and save it >> 6. upload the file htaccess to your public_html folder using ftp >> 7. now rename that file to .htaccess (yes now with the period) >> If something goes wrong, you can just delete the 2 files again from your server. >> >> If you are unsure how to edit those files you can downloaded them from here as zip-archive >> https://dl.dropbox.com/s/bkamsdqyx0114fz/index.html >> >> After unpacking just upload them to the public_html folder and rename the htaccess file to .htaccess. >> >> Regards, >> >> Matthias >>> Am 31.03.2015 um 21:42 schrieb Graham Samuel : >>> >>> Thanks Matthias, and thanks also to Shawn Beagle who contacted me off list. >>> >>> I am frankly too scared to follow these instructions: the editor suggests I make a back up before editing anything, and I don?t really know how to do the restore. As a LiveCode person and very much not a server person I have a very strong feeling of not being in Kansas any more. So I guess I will have to wait for On-Rev support to wake up. >>> >>> My nervousness is not helped by the fact that I don?t seem to have files like php.ini or .htaccess within the files I can see on the server. There is a htaccess.txt file but that belongs to Joomla which is the package telling me to turn off Magic Quotes - so why can?t it do the job itself? Confusion. >>> >>> Sorry to be a scaredy-cat, but for all I know I could start World War 3 by hitting the wrong part of some file. >>> >>> Graham >>> >>> >>>> On 31 Mar 2015, at 19:38, Matthias Rebbe > wrote: >>>> >>>> Graham, >>>> >>>> you could try to disable it using an .htaccess file which is put into the root folder of your domain. >>>> >>>> Please add the following line to the .htaccess files >>>> php_flag magic_quotes_gpc Off >>>> >>>> If this does not work you could use a php.ini file to disable it. >>>> >>>> See the first example at http://php.net/manual/de/security.magicquotes.disabling.php > >>>> >>>> >>>> But to use a php.ini with custom php settings you will have to modify the .htaccess file in your public_html folder. >>>> >>>> Please add the following to the .htaccess file in the public_html folder. >>>> >>>> suPHP_ConfigPath /home/YOURACCOUNTNAME/public_html/ >>>> >>>> order allow,deny >>>> deny from all >>>> >>>> >>>> Please replace YOURACCOUNTNAME in the above line with your account name. >>>> >>>> This will make sure your custom settings in the php.ini are recognized by the server. >>>> >>>> If this all does not work i would say you should open an emergency support ticket, as the above described solutions should work on their servers. >>>> >>>> HTH >>>> >>>> Matthias >>>> >>>> >>>>> Am 31.03.2015 um 16:34 schrieb Graham Samuel : >>>>> >>>>> Sorry to be OT, but I can?t describe my need for On-Rev support to be an emergency, yet I am completely stuck until I get help and I have not had a squeak out of On-Rev support since asking a question on 28th March; and my attempts to join the forum have not worked so far, as nobody has activated my account. >>>>> >>>>> Since many on this list have On-Rev accounts, maybe someone can enlighten me. I want to change Magic Quotes GPC to ?Off?. I need this for an installation process. As there?s nothing relevant that I can see in the cPanel and I have no real idea what this means, I need someone to tell me how to do it or to do it for me. >>>>> >>>>> If anyone can help, thanks. If not I?ll just wait for the folks at On-Rev to catch up. >>>>> >>>>> Graham >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From th.douez at gmail.com Wed Apr 1 12:33:47 2015 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 1 Apr 2015 18:33:47 +0200 Subject: ABC of arrays In-Reply-To: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> Message-ID: > I?m coming from the same place. > When you find this material, I?ll be looking at it too! > Best of luck > > Graham Hello Graham, As usual, Bernd came to the rescue with a nice link from Devin Asay: http://livecode.byu.edu/arrays/introToArrays.php I did read it quickly and might be enough... don't know. ( The problem is I'm coding in different languages with arrays since so long, I'm a bit lost to explain them in a simple way) Otherwise, there is this one, but I find it scary and certainly not useful as a 1st reading about arrays. http://lessons.runrev.com/searches?utf8=?&text=array&commit=Search Thanks Mark for pointing out your book. Any other ideas ? Kind regards, Thierry > >> I'm looking for any learning material to understand >> the basics of arrays in Livecode. >> >> It's for someone who is working since eons with Livecode >> but who doesn't understand arrays. >> >> Thanks for any pointer on the best beginner's lessons, stacks or whatsoever. >> >> Kind regards, >> >> Thierry > From ambassador at fourthworld.com Wed Apr 1 12:39:42 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Apr 2015 09:39:42 -0700 Subject: ABC of arrays In-Reply-To: References: Message-ID: <551C1F4E.9020103@fourthworld.com> Thierry Douez wrote: > Otherwise, there is this one, > but I find it scary and certainly not useful as a 1st reading about arrays. > > http://lessons.runrev.com/searches?utf8=?&text=array&commit=Search As we explore options for unifying and expanding various help resources in the community it would be helpful to know, what is it about the lessons that seems "scary"? -- Richard Gaskin LiveCode Community Manager richard at livecode.org From th.douez at gmail.com Wed Apr 1 12:47:49 2015 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 1 Apr 2015 18:47:49 +0200 Subject: ABC of arrays In-Reply-To: <551C1F4E.9020103@fourthworld.com> References: <551C1F4E.9020103@fourthworld.com> Message-ID: >> >> http://lessons.runrev.com/searches?utf8=?&text=array&commit=Search > > As we explore options for unifying and expanding various help resources in > the community it would be helpful to know, what is it about the lessons that > seems "scary"? replace "scary" by "intimidating" in your post Sounds better? :) the subject is ABC... Kind regards, Thierry From jacque at hyperactivesw.com Wed Apr 1 12:50:31 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 01 Apr 2015 11:50:31 -0500 Subject: ABC of arrays In-Reply-To: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> Message-ID: I've never had any problems with "put the keys of myArray". Can you give an example where it fails? Maybe you expect It to return all the keys of a multidimensional array? On April 1, 2015 11:14:10 AM CDT, Graham Samuel wrote: >I?m coming from the same place. When you find this material, I?ll be >looking at it too! Although I have made some baby steps with arrays >with lots of help from members of this list (I can send you references >to these conversations if you want), I still find them confusing. I >have already complained that both the User Guide and the Dictionary do >not do justice to arrays. And some things are just wrong: for example >the very simple statement > > put the keys of myArray > >may or may not list all the keys, or it may. I have never understood >this, especially as the Dictionary doesn?t discuss such ambiguities. > >Best of luck > >Graham > > >> On 1 Apr 2015, at 17:15, Thierry Douez wrote: >> >> Hi, >> >> I'm looking for any learning material to understand >> the basics of arrays in Livecode. >> >> It's for someone who is working since eons with Livecode >> but who doesn't understand arrays. >> >> Thanks for any pointer on the best beginner's lessons, stacks or >whatsoever. >> >> Kind regards, >> >> Thierry > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Wed Apr 1 12:59:17 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Apr 2015 09:59:17 -0700 Subject: ABC of arrays In-Reply-To: References: Message-ID: <551C23E5.4010506@fourthworld.com> Thierry Douez wrote: >>> >>> http://lessons.runrev.com/searches?utf8=?&text=array&commit=Search >> >> As we explore options for unifying and expanding various help resources in >> the community it would be helpful to know, what is it about the lessons that >> seems "scary"? > > replace "scary" by "intimidating" in your post > > Sounds better? :) > > the subject is ABC... Thanks. If you have any thoughts on how the lessons might adopt a friendlier writing style, I'd be happy to pass that along to the docs team. The goal of the Lessons is to provide topic-specific entry points for learning LiveCode basics, so if they're missing the mark we need to refine them. For general info, have you found the User Guide's discussion of arrays helpful? Arrays are introduced in Section 5.5.7 beginning on page 147 as part of the "Variables" section, with further details in Section 6.5, "Using Arrays", beginning on page 183. The docs are being dramatically revised, so your feedback is very helpful. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From pete at lcsql.com Wed Apr 1 13:33:54 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 1 Apr 2015 10:33:54 -0700 Subject: Summer (Winter) Time Fun In-Reply-To: <000501d06c86$3ced5a70$b6c80f50$@FlexibleLearning.com> References: <000501d06c86$3ced5a70$b6c80f50$@FlexibleLearning.com> Message-ID: I also found another video by the same guy explaining how UTF-8 works at the binary level. I think I finally understand it! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 1, 2015 at 7:14 AM, FlexibleLearning.com < admin at flexiblelearning.com> wrote: > I was going to post a link to EXACTLY the same video clip! > > There are simply some things that defy any reasonable solution, but a 3am > check-point on the change-over day is perhaps the least painful... or you > allow a 1-day grace period on any date. > > Hugh Senior > FLCo > > > Peter wrote... > > If you have 10 minutes to spare, check out the video at > https://youtu.be/-5wpm-gesOY on the topic of dealing with time zones and > various other time related anomalies It's quite funny! > > It does mention that there is open source code to deal with this but > doesn't > say where it can be found. > > Pete > lcSQL Software > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Wed Apr 1 13:35:21 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 1 Apr 2015 10:35:21 -0700 Subject: system weekdayNames In-Reply-To: References: <1A32E01A-243C-4BD9-B0DC-5A42A124FEA9@vonfintel.org> Message-ID: Thanks you Thomas and Antti. That answers my question. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 1, 2015 at 2:32 AM, Antti Ilola wrote: > There should be Finnish day names. I forget to mention. > > 2015-04-01 12:29 GMT+03:00 Antti Ilola : > > > I get always english day names in OS 10.9.5 on what ever version of LC. > > Starting day Sunday. > > > > 2015-04-01 8:57 GMT+03:00 Thomas von Fintel : > > > >> I get "Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag" > >> using LC 6.7.3 on OS 10.7.5 with week starting on Monday. > >> > >> Thomas > >> > >> Am 01.04.2015 um 03:15 schrieb Peter Haworth: > >> > >> > The system weekdayNames returns a list of day names in the user's > local > >> > language but is the order of the day names influenced by the calendar > >> > conventions of the user's location? > >> > > >> > In other words, if I'm in the USA, the first name in the list is > Sunday. > >> > If I was in a country where the convention is to start the week on a > >> > Monday, would Sunday still be the first day name in the list or would > >> it be > >> > Monday? > >> > > >> > Pete > >> > lcSQL Software > >> > Home of lcStackBrowser and > >> > SQLiteAdmin > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From th.douez at gmail.com Wed Apr 1 13:41:58 2015 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 1 Apr 2015 19:41:58 +0200 Subject: ABC of arrays In-Reply-To: <551C23E5.4010506@fourthworld.com> References: <551C23E5.4010506@fourthworld.com> Message-ID: >> replace "scary" by "intimidating" in your post >> Sounds better? :) >> >> the subject is ABC... > Thanks. > The docs are being dramatically revised, so your feedback is very helpful. Richard, I don't think in this case my comments are too relevant. I'm not the one who want an ABC of arrays. The story is I helped a lot someone to optimize a very old code, and I managed to put down some time processing from 20-30 seconds to an almost not noticeable timing, using arrays ( and regex :) ) And now I'm stuck explaining what an array is, so he can carry on without me. Let see if Devin's tuto is enough for this purpose... If you are really interested, I can send you some feedback *afterwards* Kind regards, Thierry From th.douez at gmail.com Wed Apr 1 13:44:01 2015 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 1 Apr 2015 19:44:01 +0200 Subject: ABC of arrays In-Reply-To: References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> Message-ID: > I've never had any problems with "put the keys of myArray". > Maybe you expect It to return all the keys of a multidimensional array? Jacque, I think that is what he meant. Thierry From revdev at pdslabs.net Wed Apr 1 14:07:31 2015 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 01 Apr 2015 11:07:31 -0700 Subject: ABC of arrays In-Reply-To: References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> Message-ID: <551C33E3.6090300@pdslabs.net> If you want to see a visual representation of the array, the following code will give that to you: -- your stack has a field and a button -- button code: global gSomeBigArray on mouseUp put dataTree(gSomeBigArray) into field 1 end mouseUp function dataTree pData, pSpacer put pSpacer & tab into tNextSpacer put the keys of pData into tKeyList if line 1 of tKeyList is a number then sort lines of tKeyList numeric else sort lines of tKeyList repeat for each line tKey in tKeyList if pData[tKey] is an array then put pSpacer & tKey & ":" & CR & dataTree(pData[tKey],tNextSpacer) after tDataTree else put pSpacer & tKey & " = " & singleLine(pData[tKey]) & cr after tDataTree end repeat return tDataTree end dataTree function singleLine pData replace CR with "[[CR]]" in pData return pData end singleLine HTH - Phil Davis On 4/1/15 10:44 AM, Thierry Douez wrote: >> I've never had any problems with "put the keys of myArray". >> Maybe you expect It to return all the keys of a multidimensional array? > Jacque, > > I think that is what he meant. > > Thierry > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 From christer at mindcrea.com Wed Apr 1 15:41:42 2015 From: christer at mindcrea.com (=?iso-8859-1?Q?Pyyhti=E4_Christer?=) Date: Wed, 1 Apr 2015 22:41:42 +0300 Subject: Summer (Winter) Time Fun Message-ID: <743A010B-BD99-477A-A8DA-3D2F44F404B7@mindcrea.com> Thanks, folks! It looks like there is a great challenge to make it work correctly. Let me refine the problem just to add interest. First, the client signs into the app (getDealDone), at the same time committing to automatically renewing subscription. Let's assume this is on the next to the last Monday of March or September (for simplicity we are still all in Europe). As everyone would, so I have given seven (7) days of Free Trial Period. Here I want to put a trigger into the device to cut off in seven days, on the last Monday of the month - where we have tuned the clock ahead. Why in the device; the other alternative is to cron the server part to do the API calls just too many times per each 24 hours - which may be the only reasonable solution. Actually Google Play is setting the expiry correctly for the expiry day, but it does it day by day. So, for the first Tuesday after the initial subscription commitment, the expiry is exactly in 24 hours (give or take a few milliseconds spent in network comms and server response). Ant it goes on, and actually for the 7th day it does implement the move of the clock in the expiry time. For me it would be logical GP would set the correct time for the 7th day from the beginning, but these guys want to do it day by day, asking all people to send API's to them every day. It is vital to take the Google Play expiry milliseconds in, if you want for example to give a client a deferral in the next payment. All this is very simple, if you deal with a limited number of users for your app. But when you get to a few tens, not to speak about my dreams, or for any expiry times cross the summer/winter time changes with different countries, it begins to fall apart. And we haven't yet spoken about the case of September nor the case of those happy nations not implemented this clock jiggle. Does anyone have an idea how Apple is working with the subscription expiry's? The next chapter will be about the exchange rate changes and VAT stuff - more fun. From livfoss at mac.com Wed Apr 1 15:48:02 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 01 Apr 2015 21:48:02 +0200 Subject: ABC of arrays In-Reply-To: <551C1C81.5080300@fourthworld.com> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> Message-ID: <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> Well, Richard, I am always very willing to believe that I?ve misunderstood something, but this is what happened (this material is extracted from conversations I had on this list in the middle of March). 1. I had an XML file - it was actually a .gpx file, which shows a geographical route as a series of waypoints. The ?top level? of this structure is ?gpx?. I mean the first three lines are (watch for wordwrap): 2. I converted it to an array using the function ConvertXMLToArray, by Trevor deVore - from Mike Doub?s Master Library. 3. I put the result into an array called ?gGeneralArray? - I can see this in the IDE as a nested structure. 4. I executed put the keys of gGeneralArray in the message box, and got the result gpx 5. I discussed this on the use-list, and Mike Bonner suggested > try > put the keys of gGeneralArray["gpx?] > and you'll get the next level of keys. 6. I did that and got wpt[1] trk @attributes wpt[4] wpt[2] metadata wpt[3] I just did this all again to prove to myself that I hadn?t made an obvious error.I am definitely only dealing with one array, so I can?t explain this, and the LC dictionary certainly doesn?t help. Tell me where I went wrong! Graham > On 1 Apr 2015, at 18:27, Richard Gaskin wrote: > > Graham Samuel wrote: > > And some things are just wrong: for example the very simple statement > > > > put the keys of myArray > > > > may or may not list all the keys, or it may. I have never understood > > this, especially as the Dictionary doesn?t discuss such ambiguities. > > The Dictionary doesn't describe that because it should never happen. > > Under what circumstances would "the keys" not returns the keys? > > FWIW, I've only seen "the keys" return all keys in every version of LC/MC I've ever used. From livfoss at mac.com Wed Apr 1 15:55:17 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 01 Apr 2015 21:55:17 +0200 Subject: ABC of arrays In-Reply-To: References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> Message-ID: <53C6B695-CEC6-4E4E-88CD-ED5A0C5204FF@mac.com> Yes I do, because the LC dictionary does not qualify ?the keys? in any way. It just says: > returns a list of the element names in an array variable It doesn?t suggest that an ?array variable? can?t be multi-dimensionl - in fact we know that it can. So maybe I?m just looking at a documentation issue. Graham > On 1 Apr 2015, at 18:50, J. Landman Gay wrote: > > I've never had any problems with "put the keys of myArray". Can you give an example where it fails? Maybe you expect It to return all the keys of a multidimensional array? > From ambassador at fourthworld.com Wed Apr 1 16:32:35 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Apr 2015 13:32:35 -0700 Subject: ABC of arrays In-Reply-To: <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> References: <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> Message-ID: <551C55E3.5080401@fourthworld.com> Graham Samuel wrote: > Well, Richard, I am always very willing to believe that I?ve > misunderstood something, but this is what happened (this material is > extracted from conversations I had on this list in the middle of > March). > > 1. I had an XML file - it was actually a .gpx file, which shows a > geographical route as a series of waypoints. The ?top level? of > this structure is ?gpx?. I mean the first three lines are (watch > for wordwrap): > > > version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.topografix.com/GPX/1/1 > http://www.topografix.com/GPX/1/1/gpx.xsd"> > > > > 2. I converted it to an array using the function ConvertXMLToArray, > by Trevor deVore - from Mike Doub?s Master Library. > > 3. I put the result into an array called ?gGeneralArray? - I can see > this in the IDE as a nested structure. > > 4. I executed > > put the keys of gGeneralArray > > in the message box, and got the result > > gpx > > 5. I discussed this on the use-list, and Mike Bonner suggested > >> try >> put the keys of gGeneralArray["gpx?] >> and you'll get the next level of keys. > > 6. I did that and got > > wpt[1] > trk > @attributes > wpt[4] > wpt[2] > metadata > wpt[3] > > I just did this all again to prove to myself that I hadn?t made an > obvious error.I am definitely only dealing with one array, so I can?t > explain this, and the LC dictionary certainly doesn?t help. > > Tell me where I went wrong! You're using other people's code so you're off the hook. :) There does appear to be a problem there, but I'm not sure it's with LiveCode, and even with the oddities in that example the "keys" function appears to be working as designed. The "keys" should return a list of all keys, even when the value of any of them may be another array. This is consistent with what you found: your array gGeneralArray contain one element, and that element is another array. You can also query the keys for the sub-array and obtain its keys, as you did. Consider this much simpler example in which we have three keys, two of which have values that are not arrays and one of which has an array for its value: on mouseUp put "1" into tA[1] put "2.1" into tA[2][1] put "2.2" into tA[2][2] put 3 into tA[3] put the keys of tA end mouseUp In my Message Box I get: 3 1 2 ...showing that all keys are accounted for, even tA[2] where the value is another array. So while the "keys" function seems to be fine here, your example above has other interesting factors that make it somewhat curious, no doubt contributing to the confusion here: Nothing in the XML shown contains any of the elements shown in the sub-array keys listing, so it's not possible to see how it was parsed given what we have here. Moreover, some of those sub-array keys appear to contain array notation in in the name itself, which may be valid but is unusual and potentially confusing. Key names are pretty flexible, even more than the Dictionary entry recommends, allowing (IIRC) pretty much any character other than NULLs (and in v7 perhaps even NULLs are allowed). So using "[" and "]" is as valid as part of a key name as any other characters, but stylistically the choice is confusing, and unlikely the actual name of the element as expressed in the source XML. To figure out how you got the output you did I'd have to put together a test stack after gathering up the relevant handlers from Master Library, and given Trevor's characteristically excellent coding I'm sure the final analysis would make sense of that example. But for the moment, I think the key lesson here (if you'll pardon the pun) is that sometimes stumbling across edge cases like this one can lead one to think features are more intimidating or confusing than they need to me. Arrays in LiveCode are fairly straightforward name-value pairs, and there's not even very much we can do with them: put, get, delete, and obtain the keys. That's pretty much it. If we stumble across an extremely uncommon case like the one you had the misfortune to discover above, it may seem much more complicated than it really is. This is why I recommend experimentation on one's own to learn a specific feature, like arrays. Get the basic operations down in an hour experimenting on a throwaway stack, and then even confusing edge cases like this one will become less daunting. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From livfoss at mac.com Wed Apr 1 16:33:31 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 01 Apr 2015 22:33:31 +0200 Subject: ABC of arrays In-Reply-To: <551C23E5.4010506@fourthworld.com> References: <551C23E5.4010506@fourthworld.com> Message-ID: <79C1DAB8-9CF0-405F-AE12-33A369EBEDDE@mac.com> Hi Richard As it?s evident I?m interested in this, I had a quick look through the User?s Guide sections on arrays as you suggested to Thierry. FWIW I think it is pretty helpful, and it gives a very good idea of the power of LC arrays and the corresponding built-in operations. I think the vocabulary needs tightening up a bit, especially with the term ?sub-array?. This needs to be explained at the beginning, I think. Also the examples could be expanded: for instance, when it explains that the arithmetic operations applying to arrays work on > all the elements in an array where the element is a number there are no examples of arrays which mix numbers with elements that aren't numbers (is the text 'one' a number or not, for example? Is an element which is an array containing only numbers a number? I think this kind of thing should not be left as an 'exercise for the reader' as my old maths books used to say.) Another point is to be a bit more explicit about the fact that these are associative arrays, since some readers will have come from a background where arrays always have numeric keys and are thus inherently ordered (I am one of these people). Another thing that might occur to someone who's used a different environment is to wonder whether if I put say a number in an array element, can I then replace it with an array or some other kind of item? The answer has to be 'yes', which in a way is a consequence of LiveCode not using strong data types. There is also a certain amount of jumping around required of the reader - for example, the User Guide makes you look up 'combine' in the Dictionary if you want to find out if it's possible to preserve the keys of an array during a 'combine' (it is). It would be better, I think, to have a bit of redundancy and put this info in the Guide along with an example. I could go on, but perhaps it wouldn't be productive. Cheers Graham > > > On 1 Apr 2015, at 18:59, Richard Gaskin wrote: > > Thierry Douez wrote: >>>> >>>> http://lessons.runrev.com/searches?utf8=?&text=array&commit=Search >>> >>> As we explore options for unifying and expanding various help resources in >>> the community it would be helpful to know, what is it about the lessons that >>> seems "scary"? >> >> replace "scary" by "intimidating" in your post >> >> Sounds better? :) >> >> the subject is ABC... > > Thanks. If you have any thoughts on how the lessons might adopt a friendlier writing style, I'd be happy to pass that along to the docs team. The goal of the Lessons is to provide topic-specific entry points for learning LiveCode basics, so if they're missing the mark we need to refine them. > > For general info, have you found the User Guide's discussion of arrays helpful? Arrays are introduced in Section 5.5.7 beginning on page 147 as part of the "Variables" section, with further details in Section 6.5, "Using Arrays", beginning on page 183. > > The docs are being dramatically revised, so your feedback is very helpful. > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Wed Apr 1 16:48:17 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 01 Apr 2015 22:48:17 +0200 Subject: ABC of arrays In-Reply-To: <551C55E3.5080401@fourthworld.com> References: <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> <551C55E3.5080401@fourthworld.com> Message-ID: <15FDE933-049C-405B-AA04-4A3DC9B1CAE7@mac.com> Richard, forgive me for just extracting a bit of your interesting mail. I see that the real issue is with the idea of sub-arrays, which have their own sets of keys. You emphatically do not get a list of all the keys of an array with subarrays in it from the ?put the keys? action. I modified your handler in just one respect: on mouseUp put "1" into tA[1] put "2.1" into tA[2][1] put "2.2" into tA[2]["surprise me, Jean"] put 3 into tA[3] put the keys of tA put the keys of tA end mouseUp and I got 3 1 2 So, the ?surprise? key wasn?t represented - because it?s a sub-array of tA[2], I suppose. In fact your example is odd in a way, since you use the key [1] for example in the primary array and again in the sub array. These are different keys that just happen to use the same value. This makes my head hurt a bit. So, following on another mail I just sent, I think people can get confused by sub-arrays and what ?the keys? actually looks at. More examples needed in the docs, perhaps. Hope this is not seen as wilful misunderstanding - it?s not meant to be! Graham > On 1 Apr 2015, at 22:32, Richard Gaskin wrote: > > > The "keys" should return a list of all keys, even when the value of any of them may be another array. > > This is consistent with what you found: your array gGeneralArray contain one element, and that element is another array. You can also query the keys for the sub-array and obtain its keys, as you did. > > Consider this much simpler example in which we have three keys, two of which have values that are not arrays and one of which has an array for its value: > > on mouseUp > put "1" into tA[1] > put "2.1" into tA[2][1] > put "2.2" into tA[2][2] > put 3 into tA[3] > put the keys of tA > end mouseUp > > In my Message Box I get: > > 3 > 1 > 2 > > ...showing that all keys are accounted for, even tA[2] where the value is another array. From mikedoub at gmail.com Wed Apr 1 17:19:09 2015 From: mikedoub at gmail.com (Michael Doub) Date: Wed, 01 Apr 2015 17:19:09 -0400 Subject: ABC of arrays In-Reply-To: <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> Message-ID: <551C60CD.7010401@gmail.com> Graham, I think one of the things that is confusing you as you are trying to learn arrays is the fact that you are looking at output created by ConvertXMLToArray. ConvertXMLToArray is working as designed, but it just happens to create key in a syntax that looks like a livecode array reference. LiveCode keys are just strings, so ConvertXMLToArray is adding a open bracket, a counter, and a close bracket when it sees multiples of a xml tag, to make it unique within the array. This makes perfect sense technically but I can see where it could really confuse someone trying to figure out livecode arrays. -= Mike On 4/1/15 3:48 PM, Graham Samuel wrote: > Well, Richard, I am always very willing to believe that I?ve misunderstood something, but this is what happened (this material is extracted from conversations I had on this list in the middle of March). > > 1. I had an XML file - it was actually a .gpx file, which shows a geographical route as a series of waypoints. The ?top level? of this structure is ?gpx?. I mean the first three lines are (watch for wordwrap): > > > > > > > 2. I converted it to an array using the function ConvertXMLToArray, by Trevor deVore - from Mike Doub?s Master Library. > > 3. I put the result into an array called ?gGeneralArray? - I can see this in the IDE as a nested structure. > > 4. I executed > > put the keys of gGeneralArray > > in the message box, and got the result > > gpx > > 5. I discussed this on the use-list, and Mike Bonner suggested > >> try >> put the keys of gGeneralArray["gpx?] >> and you'll get the next level of keys. > 6. I did that and got > > wpt[1] > trk > @attributes > wpt[4] > wpt[2] > metadata > wpt[3] > > I just did this all again to prove to myself that I hadn?t made an obvious error.I am definitely only dealing with one array, so I can?t explain this, and the LC dictionary certainly doesn?t help. > > Tell me where I went wrong! > > Graham > >> On 1 Apr 2015, at 18:27, Richard Gaskin wrote: >> >> Graham Samuel wrote: >>> And some things are just wrong: for example the very simple statement >>> >>> put the keys of myArray >>> >>> may or may not list all the keys, or it may. I have never understood >>> this, especially as the Dictionary doesn?t discuss such ambiguities. >> The Dictionary doesn't describe that because it should never happen. >> >> Under what circumstances would "the keys" not returns the keys? >> >> FWIW, I've only seen "the keys" return all keys in every version of LC/MC I've ever used. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dave.cragg at lacscentre.co.uk Wed Apr 1 18:58:11 2015 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Wed, 1 Apr 2015 23:58:11 +0100 Subject: ABC of arrays In-Reply-To: <15FDE933-049C-405B-AA04-4A3DC9B1CAE7@mac.com> References: <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> <551C55E3.5080401@fourthworld.com> <15FDE933-049C-405B-AA04-4A3DC9B1CAE7@mac.com> Message-ID: <6B481AFB-47B1-4BBF-A33A-7E1A4A811DF9@lacscentre.co.uk> > On 1 Apr 2015, at 21:48, Graham Samuel wrote: > So, following on another mail I just sent, I think people can get confused by sub-arrays and what ?the keys? actually looks at. More examples needed in the docs, perhaps. > > Hope this is not seen as wilful misunderstanding - it?s not meant to be! I can understand that "sub-arrays" can be confusing. And perhaps the use of multiple sets of square brackets makes it more so. Where possible, I try to avoid using multiple square brackets. So instead of this: ---------------------- put "1" into tA[1] put "2.1" into tA[2][1] put "2.2" into tA[2]["surprise me, Jean"] ---------------------- I might use this: ----------------------- put "1" into tA[1] put "2.1" into tB[1] put "2.2" into tB["surprise me, Jean"] put tB into tA[2] ------------------------ I think it makes it clearer that the "sub-array" is actually a quite separate array. It just happens to be kept in one of the elements of the other array. As Michael pointed out, the ConvertXMLToArray example was probably not the easiest of examples to deal with. XML doesn't easily convert to an array, and the function uses complex key names to try to preserve the xml structure. I don't know if it helps, but below is an example of the kind of thing I've used to try to illustrate arrays to people before. --------------------------- on mouseUp put empty into field 1 put "John" into tPerson["firstName"] put "Smith" into tPerson["lastName"] put "M" into tPerson["gender"] put "1994-04-04" into tPerson["dateOfBirth"] put tPerson into tPeople[1] put "Sue" into tPerson["firstName"] put "Jones" into tPerson["lastName"] put "F" into tPerson["gender"] put "1992-03-03" into tPerson["dateOfBirth"] put tPerson into tPeople[2] //lets look at the keys put the keys of tPeople & cr & cr after field 1 put the keys of tPeople[1] & cr & cr after field 1 put the keys of tPeople[2] & cr & cr after field 1 //lets look at the data put the keys of tPeople into tTopKeys repeat for each line tKey in tTopKeys put tPeople[tKey] into tPerson put the keys of tPerson into tPersonKeys repeat for each line tPersonKey in tPersonKeys put tPersonKey & ": " & tPerson[tPersonKey] & cr after field 1 end repeat put cr after field 1 end repeat end mouseUp --------------------------- Cheers Dave Cragg From monte at sweattechnologies.com Wed Apr 1 19:05:32 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 2 Apr 2015 10:05:32 +1100 Subject: [ANN] libDate on gitHub In-Reply-To: <4ECD0659-C0B3-4DB9-8B85-6A4853C1BB83@derbrill.de> References: <4ECD0659-C0B3-4DB9-8B85-6A4853C1BB83@derbrill.de> Message-ID: <5FAC0B81-5577-469A-BC1B-7A39233A29EE@sweattechnologies.com> Hi Malte The engine can now load a text file as a stack. If you use the livecodescript extension I think newer versions will launch the file at some point. All you need to do is write this on the first line: stack "libDate" It might be worth modifying libDate so the current libDate stack is just a demo that loads the library from the script file in this way to make it simpler to contribute. I'm not sure which version the scriptified stacks were introduced though so it may not support 6.6 releases. I won't recommend anyone get started with lcVCS at this stage because there is meant to be an optional mergable file format coming in LC 8 and as a result I have no real plan to do the work required to support widgets. Cheers Monte On 1 Apr 2015, at 9:36 pm, Malte Brill wrote: > Hi all, > > trying to get my feet wet with gitHub I have now created a repository for libDate. > > https://github.com/derbrill/libdate > > It remains released into the PD. :-) > > Hope some of you find this useful. > > All the best, > > Malte > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From david at viral.academy Wed Apr 1 19:06:17 2015 From: david at viral.academy (David Bovill) Date: Thu, 2 Apr 2015 00:06:17 +0100 Subject: LiveNode Server In-Reply-To: <551C14F6.2040304@fourthworld.com> References: <551C14F6.2040304@fourthworld.com> Message-ID: On 1 April 2015 at 16:55, Richard Gaskin wrote: > > > David Bovill wrote: > > > The question is can you create in Livecode an aynchronous event-drive > > architecture? .. > > With socket I/O apparently handled asynchronously when the "with " option is used, this is a very tempting pursuit. > > The challenge arises from the recipient of the message: it will be running in the same thread as the socket broker, causing a backlog of message queueing; requests are received well enough, but responding requires then to be processes one at a time. Ah - OK So the first response would be fine - but not the second. > > The challenge there is that the LC VM is not currently forkable, so we can't pass a socket connection from the broker to a child worker process. I am not quite sure what not being forkable is here - can you explain. What is special about LC here compared with other VM's > > > Instead, we have to look at more primitive means, which tend toward two camps (though I'm sure many others are possible): > > a) Consistent Socket Broker > The socket broker handles all network I/O with all clients, and > feeds instructions for tasks to workers via sockets, stdIn, or > even files (/sys/shm is pretty fast even though it uses simple > file routines). > > The upside here is that any heavy processing is distributed among > multiple workers, but the downside is that all network I/O still > goes through one broker process. > > > b) Redirects to Multiple Workers > Here the main socket broker listening on the standard port only > does one thing: it looks at a list of available workers (whether > through simple round-robin, or something smarter like load > reporting), each of which is listening on a non-standard port, > and sends the client a 302 redirect to the server with that > non-standard port so each worker is handling the socket comms > directly and only a subset of them. If each worker also has > its own collection of sub-workers as in option a) above, this > could greatly multiple the number of clients served concurrently. > > The upside is that all aspects of load are distributed among > multiple processes, even socket I/O, but the downside is the > somewhat modest but annoying requirement that each request > be submitted twice, once to the main broker and again to the > redirected instance assigned to handle it. OK - so a graph of servers communicating over sockets is better than one central spoke and hub scenario. >From the FastCGI docs: http://www.fastcgi.com/drupal/node/6?q=node/16 With session affinity you run a pool of application processes and the Web server routes requests to individual processes based on any information contained in the request. For instance, the server can route according to the area of content that's been requested, or according to the user. The user might be identified by an application-specific session identifier, by the user ID contained in an Open Market Secure Link ticket, by the Basic Authentication user name, or whatever. Each process maintains its own cache, and session affinity ensures that each incoming request has access to the cache that will speed up processing the most. > > I think the sweet spot for an entirely LiveCode application server would be those apps where backend processing load exceeds network I/O. Yes - I see no real use for using LiveCode as a server. I'd use Node. I want to be able to use LiveCode within a mixed coding environment and get LiveCode to do stuff there - for instance image processing. I want to be able to deploy it using NPM - so it's easy to set up. > > As interesting as these things are, I have to admit I currently have no practical need for such a creature, so my brief experiments have been few and limited to an occasional Sunday with a free hour on my hands. :) Hell - I do. I'd be able to write all sorts of stuff for real world applications if I could choose to write a routine in LiveCode and switch to something else down the line if needed. The main use case is to work in teams with other mainstream devs, and to choose the language that suites the problem - so polyglot server programming. > > If you have such a need it would be interesting to see how these things flesh out under real-work load. > > > > Assuming there is an issue with the above, the next question is > > that given that Node already can be extended with C / C++ > > extensions api - so why not treat Livecode as simply a Node > > extension and let Node do the async event driven I/O that it is > > so good at? > > I have no direct experience with either Node.js or NgineX, so I'm out of my depth here - but that won't stop me from conjecturing : Addons are dynamically linked shared objects. They can provide glue to C and C++ libraries - [https://nodejs.org/api/addons.html nodejs.org] > > My understanding is that LiveCode, being single-threaded today, is limited to CGI, while Node.js and NgineX expect FastCGI (forkable) support. This does not make sense to me - not the single threaded bit. It's not single threading that is the problem. Node is single threaded. In the Node example I tried - a long Fibonacci sequence blocked the server to any further incoming calls. To solve this you could pass the request to another server and return asynchronously. Then the server could return to other requests. However more calls to the Fibonacci sequence would cue up like you say. Is that a problem though? That's the sort of thing that yes you would handle with some sort of broker and farm of LC server processes - but that is a second order problem. The main one is keep doing normal file serving fast. The second problem is make installation on any server easy. I think the main problems are simply delt with by having LiveCode available as a Node Addon - https://nodejs.org/api/addons.html Or am I missing anything? The two aspects of that that seem relevant are: 1. V8 JavaScript, a C++ library. Used for interfacing with JavaScript: creating objects, calling functions, etc. 2. libuv , C event loop library. Anytime one needs to wait for a file descriptor to become readable, wait for a timer, or wait for a signal to be received one will need to interface with libuv. That is, if you perform any I/O, libuv will need to be used. The first would seem to being handled by the core LC team as they integrate Javascript with LiveCode Builder? The second I think is the work that would need doing? As far as I get it - LiveCode would need to allow Node to return to Node's event loop any time any I?O was performed. I'm not sure why this is only about I/O and not other long running calculations - but it's something in this area - right? > > If you can get LiveCode to run well under Node.js I'd be very interested to see what you come up with. > It's great that since LiveCode is open source we can look to answer these things ourselves :) From kee at kagi.com Wed Apr 1 19:18:46 2015 From: kee at kagi.com (kee nethery) Date: Wed, 1 Apr 2015 16:18:46 -0700 Subject: Accessing Amazon Database? In-Reply-To: <55145241.8050706@hyperactivesw.com> References: <14c5656a3f4-47fe-c9a@webprd-a83.mail.aol.com> <55145241.8050706@hyperactivesw.com> Message-ID: I want to build a multi-user database client that uses Amazon AWS capabilities for the centralized database. I envision one S3 bucket for app updates. Have the app hit a text file to see if it is up to date and if not, download the latest version. I envision some kind of SQL-ish database where shared data is stored so that each client can access and write to it. Is anyone else out there doing this and if so, what experiences could you share with me? Thanks in advance. Kee Nethery From kee at kagi.com Wed Apr 1 19:20:02 2015 From: kee at kagi.com (kee nethery) Date: Wed, 1 Apr 2015 16:20:02 -0700 Subject: [OT] And You Thought Richmond Kept Old Macs Alive In-Reply-To: <4B837B3C-4D51-4B9F-8395-1A71B63B7CE8@iotecdigital.com> References: <519F6AE6-9EBA-400A-826B-305A05722B39@earthlink.net> <551452EE.1060002@hyperactivesw.com> <4B837B3C-4D51-4B9F-8395-1A71B63B7CE8@iotecdigital.com> Message-ID: <2FFD9159-CA87-4E4F-8F56-A7001E79B94D@kagi.com> Or if they have RJ11 phone jacks, PhoneNet connectors. Kee > On Mar 27, 2015, at 1:39 PM, Bob Sneidar wrote: > > Localtalk connectors. > > Bob S From bonnmike at gmail.com Wed Apr 1 19:40:13 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 1 Apr 2015 17:40:13 -0600 Subject: ABC of arrays In-Reply-To: <551C60CD.7010401@gmail.com> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> <551C60CD.7010401@gmail.com> Message-ID: I'm one who uses visualization to get a handle on things like arrays. For me, arrays are just a bunch of nested boxes. And a box can contain other boxes, or a dataitem, but not both. So if you get the keys of myArray you've just looked into the first box to see whats there. If there are no keys in myArray of course, its not array, and must be empty, or contain a data item. If there are keys, those are just other boxes, and you must specifically open each box to see whats inside it. the keys of myArray["box1"] might contain a data item, or more boxes. (and since square brackets are used, it actually reinforces my mental picture of little boxes all the same) On Wed, Apr 1, 2015 at 3:19 PM, Michael Doub wrote: > Graham, > > I think one of the things that is confusing you as you are trying to learn > arrays is the fact that you are looking at output created by > ConvertXMLToArray. ConvertXMLToArray is working as designed, but it just > happens to create key in a syntax that looks like a livecode array > reference. LiveCode keys are just strings, so ConvertXMLToArray is > adding a open bracket, a counter, and a close bracket when it sees > multiples of a xml tag, to make it unique within the array. > > This makes perfect sense technically but I can see where it could really > confuse someone trying to figure out livecode arrays. > > -= Mike > > > > > On 4/1/15 3:48 PM, Graham Samuel wrote: > >> Well, Richard, I am always very willing to believe that I?ve >> misunderstood something, but this is what happened (this material is >> extracted from conversations I had on this list in the middle of March). >> >> 1. I had an XML file - it was actually a .gpx file, which shows a >> geographical route as a series of waypoints. The ?top level? of this >> structure is ?gpx?. I mean the first three lines are (watch for wordwrap): >> >> >> > version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.topografix.com/GPX/1/1 >> http://www.topografix.com/GPX/1/1/gpx.xsd"> >> >> >> >> 2. I converted it to an array using the function ConvertXMLToArray, by >> Trevor deVore - from Mike Doub?s Master Library. >> >> 3. I put the result into an array called ?gGeneralArray? - I can see this >> in the IDE as a nested structure. >> >> 4. I executed >> >> put the keys of gGeneralArray >> >> in the message box, and got the result >> >> gpx >> >> 5. I discussed this on the use-list, and Mike Bonner suggested >> >> try >>> put the keys of gGeneralArray["gpx?] >>> and you'll get the next level of keys. >>> >> 6. I did that and got >> >> wpt[1] >> trk >> @attributes >> wpt[4] >> wpt[2] >> metadata >> wpt[3] >> >> I just did this all again to prove to myself that I hadn?t made an >> obvious error.I am definitely only dealing with one array, so I can?t >> explain this, and the LC dictionary certainly doesn?t help. >> >> Tell me where I went wrong! >> >> Graham >> >> On 1 Apr 2015, at 18:27, Richard Gaskin >>> wrote: >>> >>> Graham Samuel wrote: >>> >>>> And some things are just wrong: for example the very simple statement >>>> >>>> put the keys of myArray >>>> >>>> may or may not list all the keys, or it may. I have never understood >>>> this, especially as the Dictionary doesn?t discuss such ambiguities. >>>> >>> The Dictionary doesn't describe that because it should never happen. >>> >>> Under what circumstances would "the keys" not returns the keys? >>> >>> FWIW, I've only seen "the keys" return all keys in every version of >>> LC/MC I've ever used. >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skiplondon at gmail.com Wed Apr 1 19:40:19 2015 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 1 Apr 2015 19:40:19 -0400 Subject: Accessing Amazon Database? In-Reply-To: References: <14c5656a3f4-47fe-c9a@webprd-a83.mail.aol.com> <55145241.8050706@hyperactivesw.com> Message-ID: I am actually in the process of experimenting with Azure and SQL. Very, very impressed with what I have been able to do so far and how easy it is to implement and manage. SKIP > On Apr 1, 2015, at 7:18 PM, kee nethery wrote: > > I want to build a multi-user database client that uses Amazon AWS capabilities for the centralized database. > > I envision one S3 bucket for app updates. Have the app hit a text file to see if it is up to date and if not, download the latest version. > > I envision some kind of SQL-ish database where shared data is stored so that each client can access and write to it. > > Is anyone else out there doing this and if so, what experiences could you share with me? > > Thanks in advance. > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From vclement at gmail.com Wed Apr 1 19:53:03 2015 From: vclement at gmail.com (Vaughn Clement) Date: Wed, 1 Apr 2015 16:53:03 -0700 Subject: Accessing Amazon Database? In-Reply-To: References: <14c5656a3f4-47fe-c9a@webprd-a83.mail.aol.com> <55145241.8050706@hyperactivesw.com> Message-ID: Hi Kee I am a database developer and I am also familiar with Amazon's seller reports. The reports can be exported so the data is available to use in a database. But why not just use the reports Amazon provides? Do you need to something special with the data? Vaughn Clement www.ontargetsolutions.biz On Wednesday, April 1, 2015, kee nethery wrote: > I want to build a multi-user database client that uses Amazon AWS > capabilities for the centralized database. > > I envision one S3 bucket for app updates. Have the app hit a text file to > see if it is up to date and if not, download the latest version. > > I envision some kind of SQL-ish database where shared data is stored so > that each client can access and write to it. > > Is anyone else out there doing this and if so, what experiences could you > share with me? > > Thanks in advance. > > Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Thank you Vaughn Clement On Target Solutions LLC (Support) On Target Solutions LLC Website: http://www.ontargetsolutions.biz Email: ontargetsolutions at yahoo.com Skype: vaughn.clement FaceTime: vclement at gmail.com Ph. 928-254-9062 From rdimola at evergreeninfo.net Wed Apr 1 20:58:09 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 1 Apr 2015 20:58:09 -0400 Subject: ABC of arrays In-Reply-To: References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> <551C60CD.7010401@gmail.com> Message-ID: <013001d06ce0$169c4ac0$43d4e040$@net> Mike, Well explained... Just when I learned the power of LC array the fact that a box could only contain a data item OR other boxes is what bit me. I actually coded up a mini storm and it wasn't until I start testing that I figured this out. At the time I couldn't think of a reason why LC couldn't be changed so a box could contain a data item AND other boxes. Later on I realized that it would break old code. Other than that it would be an asset to the LC array. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Bonner Sent: Wednesday, April 01, 2015 7:40 PM To: How to use LiveCode Subject: Re: ABC of arrays I'm one who uses visualization to get a handle on things like arrays. For me, arrays are just a bunch of nested boxes. And a box can contain other boxes, or a dataitem, but not both. So if you get the keys of myArray you've just looked into the first box to see whats there. If there are no keys in myArray of course, its not array, and must be empty, or contain a data item. If there are keys, those are just other boxes, and you must specifically open each box to see whats inside it. the keys of myArray["box1"] might contain a data item, or more boxes. (and since square brackets are used, it actually reinforces my mental picture of little boxes all the same) On Wed, Apr 1, 2015 at 3:19 PM, Michael Doub wrote: > Graham, > > I think one of the things that is confusing you as you are trying to > learn arrays is the fact that you are looking at output created by > ConvertXMLToArray. ConvertXMLToArray is working as designed, but it just > happens to create key in a syntax that looks like a livecode array > reference. LiveCode keys are just strings, so ConvertXMLToArray is > adding a open bracket, a counter, and a close bracket when it sees > multiples of a xml tag, to make it unique within the array. > > This makes perfect sense technically but I can see where it could > really confuse someone trying to figure out livecode arrays. > > -= Mike > > > > > On 4/1/15 3:48 PM, Graham Samuel wrote: > >> Well, Richard, I am always very willing to believe that I?ve >> misunderstood something, but this is what happened (this material is >> extracted from conversations I had on this list in the middle of March). >> >> 1. I had an XML file - it was actually a .gpx file, which shows a >> geographical route as a series of waypoints. The ?top level? of this >> structure is ?gpx?. I mean the first three lines are (watch for wordwrap): >> >> > xmlns="http://www.topografix.com/GPX/1/1" creator="Geolives" >> version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.topografix.com/GPX/1/1 >> http://www.topografix.com/GPX/1/1/gpx.xsd"> >> >> >> >> 2. I converted it to an array using the function ConvertXMLToArray, >> by Trevor deVore - from Mike Doub?s Master Library. >> >> 3. I put the result into an array called ?gGeneralArray? - I can see >> this in the IDE as a nested structure. >> >> 4. I executed >> >> put the keys of gGeneralArray >> >> in the message box, and got the result >> >> gpx >> >> 5. I discussed this on the use-list, and Mike Bonner suggested >> >> try >>> put the keys of gGeneralArray["gpx?] and you'll get the next level >>> of keys. >>> >> 6. I did that and got >> >> wpt[1] >> trk >> @attributes >> wpt[4] >> wpt[2] >> metadata >> wpt[3] >> >> I just did this all again to prove to myself that I hadn?t made an >> obvious error.I am definitely only dealing with one array, so I can?t >> explain this, and the LC dictionary certainly doesn?t help. >> >> Tell me where I went wrong! >> >> Graham >> >> On 1 Apr 2015, at 18:27, Richard Gaskin >>> wrote: >>> >>> Graham Samuel wrote: >>> >>>> And some things are just wrong: for example the very simple >>>> statement >>>> >>>> put the keys of myArray >>>> >>>> may or may not list all the keys, or it may. I have never >>>> understood this, especially as the Dictionary doesn?t discuss such ambiguities. >>>> >>> The Dictionary doesn't describe that because it should never happen. >>> >>> Under what circumstances would "the keys" not returns the keys? >>> >>> FWIW, I've only seen "the keys" return all keys in every version of >>> LC/MC I've ever used. >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Apr 1 21:32:24 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Apr 2015 18:32:24 -0700 Subject: ABC of arrays In-Reply-To: <79C1DAB8-9CF0-405F-AE12-33A369EBEDDE@mac.com> References: <79C1DAB8-9CF0-405F-AE12-33A369EBEDDE@mac.com> Message-ID: <551C9C28.8090401@fourthworld.com> Graham Samuel wrote: > Hi Richard > > As it?s evident I?m interested in this, I had a quick look through > the User?s Guide sections on arrays ... > I could go on, but perhaps it wouldn't be productive. On the contrary, though I'm certain this could be even more productive if we were back at the bar in Malta. :) Your feedback is very useful - specific, actionable. I've copied your thoughts to a file I keep for the upcoming docs project. Feel free to share any other thoughts you have. -- Richard Gaskin LiveCode Community Manager richard at livecode.com From ambassador at fourthworld.com Wed Apr 1 21:47:27 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 01 Apr 2015 18:47:27 -0700 Subject: ABC of arrays In-Reply-To: <013001d06ce0$169c4ac0$43d4e040$@net> References: <013001d06ce0$169c4ac0$43d4e040$@net> Message-ID: <551C9FAF.7030203@fourthworld.com> Ralph DiMola wrote: > Mike, > > Well explained... Agreed. I think he gets Explaintion of the Month for that. Sure, the month just started, but that was good. > Just when I learned the power of LC array the fact that a box > could only contain a data item OR other boxes is what bit me. > I actually coded up a mini storm and it wasn't until I start > testing that I figured this out. At the time I couldn't think > of a reason why LC couldn't be changed so a box could contain > a data item AND other boxes. Later on I realized that it would > break old code. Other than that it would be an asset to the > LC array. I'm not sure it's just backwards compatibility, but maybe just maintaining logical consistency. Right now every array element is a name-value pair, in which the value can be anything - text, binary, or even another array. If we allow text and binary values to be stored and accounted for separately from array values, then that would mean that some array slots have two values while others have just one. Definitely calls for some clarity in the introductory docs. Like Mike said, when you open the box you either get a value or another box. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Wed Apr 1 23:16:07 2015 From: sundown at pacifier.com (JB) Date: Wed, 1 Apr 2015 20:16:07 -0700 Subject: Data Crid - set the dgNumberOfRecords Message-ID: <83FAD35C-FD31-4DF5-A3EB-56C4F0B0B4A5@pacifier.com> I am using a table form of data grid and trying to display the records using a cursor and then setting the dgNumberOfRecords. I am able to get the cursor and the record count of the cursor and I can get dgNumberOfRecords before I set dgNumberOfRecords. I want to set dgNumberOfRecords so the records are displayed dynamically like is done in the sample stack for displaying a large number of records. Am I supposed to set up the GetDataForLine or the dgNumberOfRecords in my data grid somehow? When I set dgNumberOfRecords nothing else happens and any script after that does not work either. Anyone have a clue why it stops or a different stack that shows how to use it properly? John Balgenorth From revolution at derbrill.de Thu Apr 2 04:38:22 2015 From: revolution at derbrill.de (Malte Brill) Date: Thu, 2 Apr 2015 10:38:22 +0200 Subject: [ANN] libDate on gitHub In-Reply-To: References: Message-ID: Monte: That is extremly interesting! I was not aware that the engine would load plain text files as a stack nowadays. Do you know when that was introduced? Do you know where I can find more information on that?? All the best and thanks a lot, Malte From m.schonewille at economy-x-talk.com Thu Apr 2 05:27:37 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 02 Apr 2015 11:27:37 +0200 Subject: Installer Maker 1.8.8b01 Message-ID: <551D0B89.5080206@economy-x-talk.com> Dear Installer Maker users, Economy-x-Talk has released a beta version of Installer Maker 1.8.8. When it leaves beta stage, it will be a free update for anyone who bought a license after 1st November 2014. Recently, we received reports from 3 of our customers about corrupt application packages. We have made an attempt to solve this problem, but we need more test results. We would like to ask for your help. We have added a few hidden debugging features to Installer Maker. These features store the defaultFolder and other information about the scripts as they are running. The installer doesn't store any personal information. Please, download Installer Maker here. Windows: http://qery.us/tn6 OSX: http://qery.us/tn5 We would appreciate it if you could build and test an installer. Please, let us know if the application package installed by the installer is corrupt. If it is, we would like to have a look at your installer. -- 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/ From monte at sweattechnologies.com Thu Apr 2 06:28:19 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 2 Apr 2015 21:28:19 +1100 Subject: [ANN] libDate on gitHub In-Reply-To: References: Message-ID: Hey Malte I'm not sure where any more info is. There's examples in the github LiveCode repo if you look in the IDE support directory and also if you look in the LC app bundle you can see the livecodescript files. Cheers -- M E R Goulding Software development services mergExt - There's an external for that! > On 2 Apr 2015, at 7:38 pm, Malte Brill wrote: > > Monte: That is extremly interesting! I was not aware that the engine would load plain text files as a stack nowadays. Do you know when that was introduced? Do you know where I can find more information on that?? > > All the best and thanks a lot, > > Malte > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Apr 2 11:08:37 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 02 Apr 2015 18:08:37 +0300 Subject: Connexion to external device Message-ID: <551D5B75.4070704@gmail.com> You wrote: "I wrote a simple LiveCode program running on OSX, Win, Linux, iOS and ... KindleFire (the only Android that I have), connecting an Arduino Uno R3 + Arduino WiFi Shield. The program read the 6 analog port values and can read/set the only 4 digital pin (5,6,8,9) remaining free when you use the WiFi Shield (which, as probably you know, use a lot of pin : 4,11,12,13,7,10). To increase the I/O I'm now trying to move to Arduino Mega 2560 ... ;-) All the exchange of information is done using the HTTP/GET protocol, so quite easy ... If you need more info or help, free to contact me off-list ... :-)" I am trying to send and receive information to a Valiant Roamer (turtle) over a USB connexion (cross-platform) and would be most grateful for any help. Richmond Mathewson. From devin_asay at byu.edu Thu Apr 2 11:53:36 2015 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 2 Apr 2015 15:53:36 +0000 Subject: Movie problems in LiveCode In-Reply-To: <14c71af2a03-781e-12331@webprd-a48.mail.aol.com> References: <14c71af2a03-781e-12331@webprd-a48.mail.aol.com> Message-ID: On Mar 31, 2015, at 3:14 PM, stgoldberg at aol.com wrote: > > Yes, Devin, in using your script for Macintosh using LC 6.7 and higher: > > set the filename of player 1 to the defaultFolder & "/media/mymovie.mov" > > that appears to let the movie show after the standalone is transferred to other Mac or Windows computers. > I thank you for pointing that out. However, with that script, I am now unable to see the movie in the stack prior to creating the standalone. > Any suggestion for that? Thanks. > > Stephen Goldberg Stephen, Yes, the defaultFolder is, by default, set to the folder where the LiveCode engine is located. That means that in standalones the defaultFolder is the folder where the .app bundle (on Macs) or .exe file (on Windows) is located. However, when working in the IDE the engine is the LiveCode application. Thus, in the IDE the defaultFolder is initially the folder containing the LC application, something like /Applications on my Mac, or C:\Program Files(x86)\RunRev\LiveCode on Windows. That means you need to do something different while working in the IDE. In most of my projects I check the environment before setting the folder path for external media resources, similar to this: # In the script where I?m setting the filepath of the player (or image) object: set the filepath of player ?myplayer? to mediaFolderPath() & ?/media/mymovie.mov? In the stack script I?ll include functions like this: function mediaFolderPath put the environment into tEnv if tEnv is ?development? then return enclosingFolder() else if tEnv is ?standalone? then return the defaultFolder else if tEnv is ?mobile? then return specialFolderPath(?engine?) end if end mediaFolderPath function enclosingFolder set the itemDelimiter to ?/? return item 1 to -2 of the effective filename of this stack end enclosingFolder There is one interesting wrinkle with setting the defaultFolder on Mac OS X that allows you to ?hide? your media assets inside the .app bundle. If you choose to set the defaultFolder to enclosingFolder() in the standalone environment, the defaultFolder will be the ApplicationName.app/Contents/MacOS folder *inside* the .app bundle. If you choose NOT to set the defaultFolder in the standalone, it will remain, by default, the folder that encloses the .app bundle. Of course, if you choose to ?hide? your media assets using this technique you must be sure to move them into the Contents/MacOS folder at build time. This is most easily done by using the Copy Files tab in the Standalone Application Settings. (Some time ago I added a note regarding this "quirk"?I happen to think it?s a ?feature??of Mac OS X to the defaultFolder entry in the LC dictionary. You may also find that helpful.) Regards, Devin Devin Asay Office of Digital Humanities Brigham Young University From pete at lcsql.com Thu Apr 2 12:22:35 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 2 Apr 2015 09:22:35 -0700 Subject: Data Crid - set the dgNumberOfRecords In-Reply-To: <83FAD35C-FD31-4DF5-A3EB-56C4F0B0B4A5@pacifier.com> References: <83FAD35C-FD31-4DF5-A3EB-56C4F0B0B4A5@pacifier.com> Message-ID: The datagrid calls GetDataForLine every time it needs a line of data to put into the datagrid. You will need to write a GetDataForLine handler in the datagrid's script to handle the logic for doing this. Get DataFor Line includes a parameter that specifies the line number of the line needed. If you are using a database cursor, use the line number to get hold of the database data for that line (actually, it's the line number - 1 since cursor record numbers are zero based), format it according to the datagrid columns, and put into the pdata parameter of the handler. Be aware that using this method to populate the datagrid means that things like the dgText and dgData properties of the datagrid will return empty. If I remember correctly, you will also have to handle your own sorting when the user clicks on a column header. It's not trivial and I would not recommend doing it unless you truly need to display a very large number of records in the datagird and you are experiencing performance issues. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 1, 2015 at 8:16 PM, JB wrote: > I am using a table form of data grid and trying > to display the records using a cursor and then > setting the dgNumberOfRecords. > > I am able to get the cursor and the record count > of the cursor and I can get dgNumberOfRecords > before I set dgNumberOfRecords. > > I want to set dgNumberOfRecords so the records > are displayed dynamically like is done in the sample > stack for displaying a large number of records. > > Am I supposed to set up the GetDataForLine or the > dgNumberOfRecords in my data grid somehow? > > When I set dgNumberOfRecords nothing else happens > and any script after that does not work either. > > Anyone have a clue why it stops or a different stack that > shows how to use it properly? > > John Balgenorth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Thu Apr 2 16:37:13 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 02 Apr 2015 23:37:13 +0300 Subject: Getting in a mix-up with COMn Message-ID: <551DA879.2030907@gmail.com> Having got my USB device connected to a Windows 7 box, and the driver installed, and determined that the device is listed at COM3 I put this into a button: on mouseUp open file "COM3:" for read read from file COM3: until end put it into fld "DData" end mouseUp and I got one of those charmingly seasonal red hotcross buns right next to line 3, which seems funny give that I just copied that from the Documentation . . . Richmond. From sundown at pacifier.com Thu Apr 2 18:58:43 2015 From: sundown at pacifier.com (JB) Date: Thu, 2 Apr 2015 15:58:43 -0700 Subject: Data Crid - set the dgNumberOfRecords In-Reply-To: References: <83FAD35C-FD31-4DF5-A3EB-56C4F0B0B4A5@pacifier.com> Message-ID: <29BBFA27-1E2D-4E4D-A37D-32249E46CBB5@pacifier.com> Hi Pete, Thank you very much for the reply and all of the info! I relay appreciate the help. It sounds like that is not the way to go. I assume it will also disable any checkboxes that were added to the data grid. thanks again, John Balgenorth On Apr 2, 2015, at 9:22 AM, Peter Haworth wrote: > The datagrid calls GetDataForLine every time it needs a line of data to put > into the datagrid. You will need to write a GetDataForLine handler in the > datagrid's script to handle the logic for doing this. > > Get DataFor Line includes a parameter that specifies the line number of the > line needed. If you are using a database cursor, use the line number to > get hold of the database data for that line (actually, it's the line number > - 1 since cursor record numbers are zero based), format it according to the > datagrid columns, and put into the pdata parameter of the handler. > > Be aware that using this method to populate the datagrid means that things > like the dgText and dgData properties of the datagrid will return empty. > If I remember correctly, you will also have to handle your own sorting when > the user clicks on a column header. > > It's not trivial and I would not recommend doing it unless you truly need > to display a very large number of records in the datagird and you are > experiencing performance issues. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Apr 1, 2015 at 8:16 PM, JB wrote: > >> I am using a table form of data grid and trying >> to display the records using a cursor and then >> setting the dgNumberOfRecords. >> >> I am able to get the cursor and the record count >> of the cursor and I can get dgNumberOfRecords >> before I set dgNumberOfRecords. >> >> I want to set dgNumberOfRecords so the records >> are displayed dynamically like is done in the sample >> stack for displaying a large number of records. >> >> Am I supposed to set up the GetDataForLine or the >> dgNumberOfRecords in my data grid somehow? >> >> When I set dgNumberOfRecords nothing else happens >> and any script after that does not work either. >> >> Anyone have a clue why it stops or a different stack that >> shows how to use it properly? >> >> John Balgenorth >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pystcat at gmail.com Thu Apr 2 19:04:27 2015 From: pystcat at gmail.com (PystCat) Date: Thu, 2 Apr 2015 19:04:27 -0400 Subject: [OT] Unconference in NYC In-Reply-To: <1426106479558-4689986.post@n4.nabble.com> References: <12A8DD3C-25C0-495B-A23B-0EBE5E5C688D@gmail.com> <27FD52C0-1F52-4F7D-9C7A-8AE73EB5C3B1@gmail.com> <5500A6DA.60106@hyperactivesw.com> <1426106479558-4689986.post@n4.nabble.com> Message-ID: <87A3C18C-643D-408E-96CE-D89B3E7A19E2@gmail.com> Thanks Craig. I just got this? you go straight into my spam folder? apparently Google thinks you are a spam sender? > On Mar 11, 2015, at 4:41 PM, dunbarx wrote: > > There are parking garages around the neighborhood, one on Broadway (Brooklyn, > of course) just below the Williamsburg Bridge, and a few a bit north of the > venue. All within a handful of blocks. > > Colin lives in Brooklyn. I would follow his lead > > The old NYHUG group is meeting tonight. I will try to find out about the > time. I assume it starts at 10AM EST. > > Craig Newman > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Unconference-in-NYC-tp4689980p4689986.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Thu Apr 2 19:16:53 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 2 Apr 2015 16:16:53 -0700 Subject: [OT] Unconference in NYC In-Reply-To: <87A3C18C-643D-408E-96CE-D89B3E7A19E2@gmail.com> References: <12A8DD3C-25C0-495B-A23B-0EBE5E5C688D@gmail.com> <27FD52C0-1F52-4F7D-9C7A-8AE73EB5C3B1@gmail.com> <5500A6DA.60106@hyperactivesw.com> <1426106479558-4689986.post@n4.nabble.com> <87A3C18C-643D-408E-96CE-D89B3E7A19E2@gmail.com> Message-ID: On Thu, Apr 2, 2015 at 4:04 PM, PystCat wrote: > Thanks Craig. I just got this? you go straight into my spam folder? > apparently Google thinks you are a spam sender? > I used to have the same problem with anyone on AOL. I have a gMail filter that sends all the lC mailing list entries to a specific folder. I just changed that filter to use the "never send to spam" option. HTH, Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From pystcat at gmail.com Thu Apr 2 19:18:27 2015 From: pystcat at gmail.com (PystCat) Date: Thu, 2 Apr 2015 19:18:27 -0400 Subject: [OT] Unconference in NYC In-Reply-To: References: <12A8DD3C-25C0-495B-A23B-0EBE5E5C688D@gmail.com> <27FD52C0-1F52-4F7D-9C7A-8AE73EB5C3B1@gmail.com> <5500A6DA.60106@hyperactivesw.com> <1426106479558-4689986.post@n4.nabble.com> <87A3C18C-643D-408E-96CE-D89B3E7A19E2@gmail.com> Message-ID: HA!! Thanks? I?m going to go check that out in Gmail, now? > On Apr 2, 2015, at 7:16 PM, Peter Haworth wrote: > > On Thu, Apr 2, 2015 at 4:04 PM, PystCat wrote: > >> Thanks Craig. I just got this? you go straight into my spam folder? >> apparently Google thinks you are a spam sender? >> > > I used to have the same problem with anyone on AOL. I have a gMail filter > that sends all the lC mailing list entries to a specific folder. I just > changed that filter to use the "never send to spam" option. > > HTH, > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Thu Apr 2 19:19:28 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 2 Apr 2015 16:19:28 -0700 Subject: Data Crid - set the dgNumberOfRecords In-Reply-To: <29BBFA27-1E2D-4E4D-A37D-32249E46CBB5@pacifier.com> References: <83FAD35C-FD31-4DF5-A3EB-56C4F0B0B4A5@pacifier.com> <29BBFA27-1E2D-4E4D-A37D-32249E46CBB5@pacifier.com> Message-ID: Not sure about that since I've never used dgNumberOfRecords with a datagrid that had a checkbox. But yes, unless there's a really good reason to use it, which is usually performance related, I wouldn't bother with it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Apr 2, 2015 at 3:58 PM, JB wrote: > Hi Pete, > > Thank you very much for the reply and > all of the info! > > I relay appreciate the help. It sounds like > that is not the way to go. I assume it will > also disable any checkboxes that were > added to the data grid. > > thanks again, > John Balgenorth > > > On Apr 2, 2015, at 9:22 AM, Peter Haworth wrote: > > > The datagrid calls GetDataForLine every time it needs a line of data to > put > > into the datagrid. You will need to write a GetDataForLine handler in > the > > datagrid's script to handle the logic for doing this. > > > > Get DataFor Line includes a parameter that specifies the line number of > the > > line needed. If you are using a database cursor, use the line number to > > get hold of the database data for that line (actually, it's the line > number > > - 1 since cursor record numbers are zero based), format it according to > the > > datagrid columns, and put into the pdata parameter of the handler. > > > > Be aware that using this method to populate the datagrid means that > things > > like the dgText and dgData properties of the datagrid will return empty. > > If I remember correctly, you will also have to handle your own sorting > when > > the user clicks on a column header. > > > > It's not trivial and I would not recommend doing it unless you truly need > > to display a very large number of records in the datagird and you are > > experiencing performance issues. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Wed, Apr 1, 2015 at 8:16 PM, JB wrote: > > > >> I am using a table form of data grid and trying > >> to display the records using a cursor and then > >> setting the dgNumberOfRecords. > >> > >> I am able to get the cursor and the record count > >> of the cursor and I can get dgNumberOfRecords > >> before I set dgNumberOfRecords. > >> > >> I want to set dgNumberOfRecords so the records > >> are displayed dynamically like is done in the sample > >> stack for displaying a large number of records. > >> > >> Am I supposed to set up the GetDataForLine or the > >> dgNumberOfRecords in my data grid somehow? > >> > >> When I set dgNumberOfRecords nothing else happens > >> and any script after that does not work either. > >> > >> Anyone have a clue why it stops or a different stack that > >> shows how to use it properly? > >> > >> John Balgenorth > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sundown at pacifier.com Thu Apr 2 19:33:46 2015 From: sundown at pacifier.com (JB) Date: Thu, 2 Apr 2015 16:33:46 -0700 Subject: Data Crid - set the dgNumberOfRecords In-Reply-To: References: <83FAD35C-FD31-4DF5-A3EB-56C4F0B0B4A5@pacifier.com> <29BBFA27-1E2D-4E4D-A37D-32249E46CBB5@pacifier.com> Message-ID: <031B6234-0E3C-4260-A844-C21A438471BF@pacifier.com> Thanks again, Pete! If there is a performance issue due to a large number of records it can easily be solved by making another database. I won?t be using it. You save me a lot of time and that really is a big help! John Balgenorth On Apr 2, 2015, at 4:19 PM, Peter Haworth wrote: > Not sure about that since I've never used dgNumberOfRecords with a datagrid > that had a checkbox. But yes, unless there's a really good reason to use > it, which is usually performance related, I wouldn't bother with it. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Thu, Apr 2, 2015 at 3:58 PM, JB wrote: > >> Hi Pete, >> >> Thank you very much for the reply and >> all of the info! >> >> I relay appreciate the help. It sounds like >> that is not the way to go. I assume it will >> also disable any checkboxes that were >> added to the data grid. >> >> thanks again, >> John Balgenorth >> >> >> On Apr 2, 2015, at 9:22 AM, Peter Haworth wrote: >> >>> The datagrid calls GetDataForLine every time it needs a line of data to >> put >>> into the datagrid. You will need to write a GetDataForLine handler in >> the >>> datagrid's script to handle the logic for doing this. >>> >>> Get DataFor Line includes a parameter that specifies the line number of >> the >>> line needed. If you are using a database cursor, use the line number to >>> get hold of the database data for that line (actually, it's the line >> number >>> - 1 since cursor record numbers are zero based), format it according to >> the >>> datagrid columns, and put into the pdata parameter of the handler. >>> >>> Be aware that using this method to populate the datagrid means that >> things >>> like the dgText and dgData properties of the datagrid will return empty. >>> If I remember correctly, you will also have to handle your own sorting >> when >>> the user clicks on a column header. >>> >>> It's not trivial and I would not recommend doing it unless you truly need >>> to display a very large number of records in the datagird and you are >>> experiencing performance issues. >>> >>> Pete >>> lcSQL Software >>> Home of lcStackBrowser and >>> SQLiteAdmin >>> >>> On Wed, Apr 1, 2015 at 8:16 PM, JB wrote: >>> >>>> I am using a table form of data grid and trying >>>> to display the records using a cursor and then >>>> setting the dgNumberOfRecords. >>>> >>>> I am able to get the cursor and the record count >>>> of the cursor and I can get dgNumberOfRecords >>>> before I set dgNumberOfRecords. >>>> >>>> I want to set dgNumberOfRecords so the records >>>> are displayed dynamically like is done in the sample >>>> stack for displaying a large number of records. >>>> >>>> Am I supposed to set up the GetDataForLine or the >>>> dgNumberOfRecords in my data grid somehow? >>>> >>>> When I set dgNumberOfRecords nothing else happens >>>> and any script after that does not work either. >>>> >>>> Anyone have a clue why it stops or a different stack that >>>> shows how to use it properly? >>>> >>>> John Balgenorth >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Fri Apr 3 00:27:29 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 02 Apr 2015 23:27:29 -0500 Subject: Android local notifications Message-ID: <551E16B1.6030008@hyperactivesw.com> Is anyone using local notifications on Android? I need to know more about how they work and I can't find much online about it. I need to send notifications every half hour for a 5-minute period, 30 seconds apart. I have this working in theory; notifications are scheduled correctly and mostly fire on time until the user opens the app, when I cancel any pending ones. First issue: often some alerts do not trigger at all, or trigger sporadically, or are significantly delayed (up to 2 minutes late.) A 5-minute interval will have 10 notifications if the user does not respond. Sometimes fewer icons appear in the status bar than audio alerts were heard. Sometimes more icons appear than audio alerts. Second issue: I would like a way to replace an existing notification icon with the next one (every 30 seconds) so that there is only one at a time, but I don't see how we can do that. If the phone is sleeping or the app is backgrounded we have no control, so to overcome that I need to schedule all 10 alerts in a block while the app is frontmost. When those come due they all stack up in the notification bar until the user opens the app (when I cancel them all.) So briefly, I need: Alerts to trigger on time, every 30 seconds, with no delay A subsequent alert should replace an existing alert The timely delivery is more important than the multiple icons in the status bar. Does anyone know how Android prioritizes these? What are the rules for the "default" priority, which I assume is what we've got. There are no other apps running on the phone, and it has no cell service. It is intended to be a dedicated device for this one app, so there shouldn't be anything else running except for normal OS operations. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mark at sorcery-ltd.co.uk Fri Apr 3 02:41:25 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Fri, 3 Apr 2015 07:41:25 +0100 Subject: Android local notifications In-Reply-To: <551E16B1.6030008@hyperactivesw.com> References: <551E16B1.6030008@hyperactivesw.com> Message-ID: <31F33A9E-7BAC-49EA-8622-4F8CA038A7C0@sorcery-ltd.co.uk> Android can delay notifications for power saving reasons. As I understand it the more there are from one app and the less the user interacts with them, the more likely they are to be delayed. I think to do what you want more reliably you'd need to use background processing (wake up every 30 seconds, clear the current notification and replace with a new one) and I don't think LiveCode enables you to that yet. Mark Sent from my iPhone > On 3 Apr 2015, at 05:27, J. Landman Gay wrote: > > Is anyone using local notifications on Android? I need to know more about how they work and I can't find much online about it. > > I need to send notifications every half hour for a 5-minute period, 30 seconds apart. I have this working in theory; notifications are scheduled correctly and mostly fire on time until the user opens the app, when I cancel any pending ones. > > First issue: often some alerts do not trigger at all, or trigger sporadically, or are significantly delayed (up to 2 minutes late.) A 5-minute interval will have 10 notifications if the user does not respond. Sometimes fewer icons appear in the status bar than audio alerts were heard. Sometimes more icons appear than audio alerts. > > Second issue: I would like a way to replace an existing notification icon with the next one (every 30 seconds) so that there is only one at a time, but I don't see how we can do that. If the phone is sleeping or the app is backgrounded we have no control, so to overcome that I need to schedule all 10 alerts in a block while the app is frontmost. When those come due they all stack up in the notification bar until the user opens the app (when I cancel them all.) > > So briefly, I need: > > Alerts to trigger on time, every 30 seconds, with no delay > A subsequent alert should replace an existing alert > > The timely delivery is more important than the multiple icons in the status bar. Does anyone know how Android prioritizes these? What are the rules for the "default" priority, which I assume is what we've got. > > There are no other apps running on the phone, and it has no cell service. It is intended to be a dedicated device for this one app, so there shouldn't be anything else running except for normal OS operations. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Fri Apr 3 04:21:37 2015 From: livfoss at mac.com (Graham Samuel) Date: Fri, 03 Apr 2015 09:21:37 +0100 Subject: Getting LC 8 Message-ID: <68F1BADC-FF79-4D0A-8D14-E400FECA92C2@mac.com> I keep getting offered a version of LC 8 by the automatic update process when I open LC 7.0.4 (rc 2), but the update always fails. This happens on two different Macs. Is it just me, or should I report it? Graham From bdrunrev at gmail.com Fri Apr 3 05:04:38 2015 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 3 Apr 2015 10:04:38 +0100 Subject: Android local notifications In-Reply-To: <31F33A9E-7BAC-49EA-8622-4F8CA038A7C0@sorcery-ltd.co.uk> References: <551E16B1.6030008@hyperactivesw.com> <31F33A9E-7BAC-49EA-8622-4F8CA038A7C0@sorcery-ltd.co.uk> Message-ID: When I looked at Android notifications a while back, I saw some irregularity with them being delivered, and with the aural alert of a new notification. I haven't looked at this for some time. However, when I look at this page http://developer.android.com/guide/topics/ui/notifiers/notifications.html it appears that the recommendation is to "update" an existing notification, rather than send repeated similar messages (unless I'm misreading that page). According to this page: http://lessons.runrev.com/m/4069/l/59312-how-do-i-use-push-notifications-with-android Livecode does get the ID of the notification. Is there some way you can incorporate that ID with the later messages? I can't remember all the details about the parameters we need to bundle along with the notification in Livecode. According to that Livecode lesson I linked these are the only parameters available to us from within Livecode. It could be that an (optional) ID parameter is also available to us. LiveCode uses the following fields to store and process push notification information. data.body - The message body displayed in the status bar (default: "User interaction requested"). data.title - The title of the message displayed in the status bar (default: the app label). data.badge_value - The badged number to display along with the statusbar message. data.play_sound - A Boolean that indicates whether or not a sound should be played when the notification is received (true / false). data.payload - The message that is delivered to the app in its remoteAlert handler. At a guess, I'd try adding the ID as a parmetet named either "data.ID" , " data.id" or "data.notifyID". Hope that works. Regards, Bernard On Fri, Apr 3, 2015 at 7:41 AM, Mark Wilcox wrote: > Android can delay notifications for power saving reasons. As I understand > it the more there are from one app and the less the user interacts with > them, the more likely they are to be delayed. > > I think to do what you want more reliably you'd need to use background > processing (wake up every 30 seconds, clear the current notification and > replace with a new one) and I don't think LiveCode enables you to that yet. > > Mark > > Sent from my iPhone > > > On 3 Apr 2015, at 05:27, J. Landman Gay > wrote: > > > > Is anyone using local notifications on Android? I need to know more > about how they work and I can't find much online about it. > > > > I need to send notifications every half hour for a 5-minute period, 30 > seconds apart. I have this working in theory; notifications are scheduled > correctly and mostly fire on time until the user opens the app, when I > cancel any pending ones. > > > > First issue: often some alerts do not trigger at all, or trigger > sporadically, or are significantly delayed (up to 2 minutes late.) A > 5-minute interval will have 10 notifications if the user does not respond. > Sometimes fewer icons appear in the status bar than audio alerts were > heard. Sometimes more icons appear than audio alerts. > > > > Second issue: I would like a way to replace an existing notification > icon with the next one (every 30 seconds) so that there is only one at a > time, but I don't see how we can do that. If the phone is sleeping or the > app is backgrounded we have no control, so to overcome that I need to > schedule all 10 alerts in a block while the app is frontmost. When those > come due they all stack up in the notification bar until the user opens the > app (when I cancel them all.) > > > > So briefly, I need: > > > > Alerts to trigger on time, every 30 seconds, with no delay > > A subsequent alert should replace an existing alert > > > > The timely delivery is more important than the multiple icons in the > status bar. Does anyone know how Android prioritizes these? What are the > rules for the "default" priority, which I assume is what we've got. > > > > There are no other apps running on the phone, and it has no cell > service. It is intended to be a dedicated device for this one app, so there > shouldn't be anything else running except for normal OS operations. > > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From robert at livecode.org Fri Apr 3 08:13:11 2015 From: robert at livecode.org (Robert L.) Date: Fri, 03 Apr 2015 07:13:11 -0500 Subject: Getting LC 8 In-Reply-To: <68F1BADC-FF79-4D0A-8D14-E400FECA92C2@mac.com> References: <68F1BADC-FF79-4D0A-8D14-E400FECA92C2@mac.com> Message-ID: <635722FD-5861-4CF2-8D8C-3BB8A66C30F1@livecode.org> Graham: Is this with the ?commercial? version of LC? If so, I?ve experienced this too. There is no commercial version 8 DP yet, only the community edition. I think it has to do with the way they autoupdater checks to see if something newer is available. It sees a newer version, but the check isn?t edition specific (from whatI can tell). When you try to update, it fails because there really isn?t a file to download. R/ Robert On 4/3/15, 3:21 AM, "Graham Samuel" wrote: >I keep getting offered a version of LC 8 by the automatic update process >when I open LC 7.0.4 (rc 2), but the update always fails. This happens on >two different Macs. > >Is it just me, or should I report it? > >Graham >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Fri Apr 3 08:17:06 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 3 Apr 2015 08:17:06 -0400 Subject: BackgroundColor In-Reply-To: References: <14c7231c57c-4392-16f7b@webprd-m75.mail.aol.com> Message-ID: <4A0E67F1-28C3-463D-BB2C-EE021B99449D@gmail.com> Late to the party here, but what happens if you lock the screen, set the backgroundcolor of the line to x, then set the backgroundcolor of all the other words to empty? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Mar 31, 2015, at 8:02 PM, Peter Haworth wrote: > Thanks Craig, I figured I'd have to invent something. I haven't used > measureText before but looking at the dictionary, it seems to indicate the > measurements all relate to the text itself. > > However, I do know the textheight and the width of the item so I should be > able to do as you suggest. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Tue, Mar 31, 2015 at 4:36 PM, wrote: > >> Peter. >> >> >> I think this may have to be a kluge. Would the "measureText" function give >> enough information to allow you to place a transparent colored rectangle >> graphic? >> >> >> Craig >> >> >> >> -----Original Message----- >> From: Peter Haworth >> To: How to use LiveCode >> Sent: Tue, Mar 31, 2015 5:53 pm >> Subject: Re: BackgroundColor >> >> >> Thanks Ralph. Unfortunately I need to set the background of certain >> columns >> (by which I mean between tabs) of a line. >> >> Interesting that it works for the >> whole line though. I think I might >> report it at QCC, not really a bug just an >> inconsistency. >> >> Pete >> lcSQL Software >> Home of >> lcStackBrowser and >> SQLiteAdmin >> >> >> On Tue, Mar 31, 2015 at 1:46 PM, >> Ralph DiMola >> wrote: >> >>> Pete, >>> >>> I found that >> this happens on setting just char(s). If you set >>> backgroundcolor of the line >> it fills in the entire height. >>> >>> Ralph DiMola >>> IT Director >>> Evergreen >> Information Services >>> rdimola at evergreeninfo.net >>> >>> >>> -----Original >> Message----- >>> From: use-livecode >> [mailto:use-livecode-bounces at lists.runrev.com] On >>> Behalf >>> Of Peter >> Haworth >>> Sent: Tuesday, March 31, 2015 4:18 PM >>> To: How to use LiveCode >>> >> Subject: BackgroundColor >>> >>> I am setting the backgroundcolor by script of a >> chunk of text in a field >>> whose textSize is 16 and textHeight is 30. >>> >>> The >> backgroundcolor only hilites the text up to the textSize, the area >>> between >> the textSize and the textHeight stays unhilited. >>> >>> Is there a property which >> will hilite the selected text for the full text >>> height? Or any other >> technique for achieveing this? >>> >>> Thanks, >>> >>> Pete >>> lcSQL Software >> >>> Home of lcStackBrowser >> and >>> SQLiteAdmin >> >>> >> _______________________________________________ >>> use-livecode mailing list >>> >> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Fri Apr 3 08:36:22 2015 From: livfoss at mac.com (Graham Samuel) Date: Fri, 03 Apr 2015 13:36:22 +0100 Subject: BackgroundColor In-Reply-To: <4A0E67F1-28C3-463D-BB2C-EE021B99449D@gmail.com> References: <14c7231c57c-4392-16f7b@webprd-m75.mail.aol.com> <4A0E67F1-28C3-463D-BB2C-EE021B99449D@gmail.com> Message-ID: <82F0CC74-08C5-4419-836F-8C03411514B3@mac.com> Ah, good explanation - I'll have a look at the Community version. Thanks Graham Sent from my iPhone > On 3 Apr 2015, at 13:17, Peter M. Brigham wrote: > > Late to the party here, but what happens if you lock the screen, set the backgroundcolor of the line to x, then set the backgroundcolor of all the other words to empty? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > >> On Mar 31, 2015, at 8:02 PM, Peter Haworth wrote: >> >> Thanks Craig, I figured I'd have to invent something. I haven't used >> measureText before but looking at the dictionary, it seems to indicate the >> measurements all relate to the text itself. >> >> However, I do know the textheight and the width of the item so I should be >> able to do as you suggest. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >>> On Tue, Mar 31, 2015 at 4:36 PM, wrote: >>> >>> Peter. >>> >>> >>> I think this may have to be a kluge. Would the "measureText" function give >>> enough information to allow you to place a transparent colored rectangle >>> graphic? >>> >>> >>> Craig >>> >>> >>> >>> -----Original Message----- >>> From: Peter Haworth >>> To: How to use LiveCode >>> Sent: Tue, Mar 31, 2015 5:53 pm >>> Subject: Re: BackgroundColor >>> >>> >>> Thanks Ralph. Unfortunately I need to set the background of certain >>> columns >>> (by which I mean between tabs) of a line. >>> >>> Interesting that it works for the >>> whole line though. I think I might >>> report it at QCC, not really a bug just an >>> inconsistency. >>> >>> Pete >>> lcSQL Software >>> Home of >>> lcStackBrowser and >>> SQLiteAdmin >>> >>> >>> On Tue, Mar 31, 2015 at 1:46 PM, >>> Ralph DiMola >>> wrote: >>> >>>> Pete, >>>> >>>> I found that >>> this happens on setting just char(s). If you set >>>> backgroundcolor of the line >>> it fills in the entire height. >>>> >>>> Ralph DiMola >>>> IT Director >>>> Evergreen >>> Information Services >>>> rdimola at evergreeninfo.net >>>> >>>> >>>> -----Original >>> Message----- >>>> From: use-livecode >>> [mailto:use-livecode-bounces at lists.runrev.com] On >>>> Behalf >>>> Of Peter >>> Haworth >>>> Sent: Tuesday, March 31, 2015 4:18 PM >>>> To: How to use LiveCode >>> Subject: BackgroundColor >>>> >>>> I am setting the backgroundcolor by script of a >>> chunk of text in a field >>>> whose textSize is 16 and textHeight is 30. >>>> >>>> The >>> backgroundcolor only hilites the text up to the textSize, the area >>>> between >>> the textSize and the textHeight stays unhilited. >>>> >>>> Is there a property which >>> will hilite the selected text for the full text >>>> height? Or any other >>> technique for achieveing this? >>>> >>>> Thanks, >>>> >>>> Pete >>>> lcSQL Software >>> >>>> Home of lcStackBrowser >>> and >>>> SQLiteAdmin >>> >>> _______________________________________________ >>>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Fri Apr 3 10:42:41 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 3 Apr 2015 22:42:41 +0800 Subject: Getting LC 8 In-Reply-To: <68F1BADC-FF79-4D0A-8D14-E400FECA92C2@mac.com> References: <68F1BADC-FF79-4D0A-8D14-E400FECA92C2@mac.com> Message-ID: If you really want to try LC 8 (Community) out just go here: http://downloads.livecode.com/livecode/ On Fri, Apr 3, 2015 at 4:21 PM, Graham Samuel wrote: > I keep getting offered a version of LC 8 by the automatic update process > when I open LC 7.0.4 (rc 2), but the update always fails. This happens on > two different Macs. > > Is it just me, or should I report it? > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Fri Apr 3 10:47:47 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 3 Apr 2015 22:47:47 +0800 Subject: Getting in a mix-up with COMn In-Reply-To: <551DA879.2030907@gmail.com> References: <551DA879.2030907@gmail.com> Message-ID: On Fri, Apr 3, 2015 at 4:37 AM, Richmond wrote: > read from file COM3: until end > Did you really have that or was that mistyped? read from file "COM3:" until end is the Dictionary example. From richmondmathewson at gmail.com Fri Apr 3 11:05:09 2015 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 03 Apr 2015 18:05:09 +0300 Subject: Getting in a mix-up with COMn In-Reply-To: References: <551DA879.2030907@gmail.com> Message-ID: <551EAC25.5050004@gmail.com> On 03/04/15 17:47, Kay C Lan wrote: > On Fri, Apr 3, 2015 at 4:37 AM, Richmond > wrote: > >> read from file COM3: until end >> > Did you really have that or was that mistyped? > > read from file "COM3:" until end > > is the Dictionary example. > Indeed; although the problem seems to be with 'end'. Richmond. From livfoss at mac.com Fri Apr 3 12:37:44 2015 From: livfoss at mac.com (Graham Samuel) Date: Fri, 03 Apr 2015 17:37:44 +0100 Subject: BackgroundColor In-Reply-To: <82F0CC74-08C5-4419-836F-8C03411514B3@mac.com> References: <14c7231c57c-4392-16f7b@webprd-m75.mail.aol.com> <4A0E67F1-28C3-463D-BB2C-EE021B99449D@gmail.com> <82F0CC74-08C5-4419-836F-8C03411514B3@mac.com> Message-ID: Oops sorry I replied to the wrong email. I was talking about LC8? Grahan > On 3 Apr 2015, at 13:36, Graham Samuel wrote: > > Ah, good explanation - I'll have a look at the Community version. > > Thanks > > Graham > > Sent from my iPhone > >> On 3 Apr 2015, at 13:17, Peter M. Brigham wrote: >> >> Late to the party here, but what happens if you lock the screen, set the backgroundcolor of the line to x, then set the backgroundcolor of all the other words to empty? >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig >> >>> On Mar 31, 2015, at 8:02 PM, Peter Haworth wrote: >>> >>> Thanks Craig, I figured I'd have to invent something. I haven't used >>> measureText before but looking at the dictionary, it seems to indicate the >>> measurements all relate to the text itself. >>> >>> However, I do know the textheight and the width of the item so I should be >>> able to do as you suggest. >>> >>> Pete >>> lcSQL Software >>> Home of lcStackBrowser and >>> SQLiteAdmin >>> >>>> On Tue, Mar 31, 2015 at 4:36 PM, wrote: >>>> >>>> Peter. >>>> >>>> >>>> I think this may have to be a kluge. Would the "measureText" function give >>>> enough information to allow you to place a transparent colored rectangle >>>> graphic? >>>> >>>> >>>> Craig >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: Peter Haworth >>>> To: How to use LiveCode >>>> Sent: Tue, Mar 31, 2015 5:53 pm >>>> Subject: Re: BackgroundColor >>>> >>>> >>>> Thanks Ralph. Unfortunately I need to set the background of certain >>>> columns >>>> (by which I mean between tabs) of a line. >>>> >>>> Interesting that it works for the >>>> whole line though. I think I might >>>> report it at QCC, not really a bug just an >>>> inconsistency. >>>> >>>> Pete >>>> lcSQL Software >>>> Home of >>>> lcStackBrowser and >>>> SQLiteAdmin >>>> >>>> >>>> On Tue, Mar 31, 2015 at 1:46 PM, >>>> Ralph DiMola >>>> wrote: >>>> >>>>> Pete, >>>>> >>>>> I found that >>>> this happens on setting just char(s). If you set >>>>> backgroundcolor of the line >>>> it fills in the entire height. >>>>> >>>>> Ralph DiMola >>>>> IT Director >>>>> Evergreen >>>> Information Services >>>>> rdimola at evergreeninfo.net >>>>> >>>>> >>>>> -----Original >>>> Message----- >>>>> From: use-livecode >>>> [mailto:use-livecode-bounces at lists.runrev.com] On >>>>> Behalf >>>>> Of Peter >>>> Haworth >>>>> Sent: Tuesday, March 31, 2015 4:18 PM >>>>> To: How to use LiveCode >>>> Subject: BackgroundColor >>>>> >>>>> I am setting the backgroundcolor by script of a >>>> chunk of text in a field >>>>> whose textSize is 16 and textHeight is 30. >>>>> >>>>> The >>>> backgroundcolor only hilites the text up to the textSize, the area >>>>> between >>>> the textSize and the textHeight stays unhilited. >>>>> >>>>> Is there a property which >>>> will hilite the selected text for the full text >>>>> height? Or any other >>>> technique for achieveing this? >>>>> >>>>> Thanks, >>>>> >>>>> Pete >>>>> lcSQL Software >>>> >>>>> Home of lcStackBrowser >>>> and >>>>> SQLiteAdmin >>>> >>>> _______________________________________________ >>>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Fri Apr 3 12:58:10 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 3 Apr 2015 09:58:10 -0700 Subject: BackgroundColor In-Reply-To: <4A0E67F1-28C3-463D-BB2C-EE021B99449D@gmail.com> References: <14c7231c57c-4392-16f7b@webprd-m75.mail.aol.com> <4A0E67F1-28C3-463D-BB2C-EE021B99449D@gmail.com> Message-ID: That sounded promising but alas, no joy. Setting the backgroundcolor to empty had no effect so I tried setting it to white. That went back to the original issue where white was the backgroundcolor up to the font size and the space between that and the text height was the original backgroundcolor. I feel like this is a bug or at least an inconsistency so will enter a QCC report. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Apr 3, 2015 at 5:17 AM, Peter M. Brigham wrote: > Late to the party here, but what happens if you lock the screen, set the > backgroundcolor of the line to x, then set the backgroundcolor of all the > other words to empty? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > On Mar 31, 2015, at 8:02 PM, Peter Haworth wrote: > > > Thanks Craig, I figured I'd have to invent something. I haven't used > > measureText before but looking at the dictionary, it seems to indicate > the > > measurements all relate to the text itself. > > > > However, I do know the textheight and the width of the item so I should > be > > able to do as you suggest. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Tue, Mar 31, 2015 at 4:36 PM, wrote: > > > >> Peter. > >> > >> > >> I think this may have to be a kluge. Would the "measureText" function > give > >> enough information to allow you to place a transparent colored rectangle > >> graphic? > >> > >> > >> Craig > >> > >> > >> > >> -----Original Message----- > >> From: Peter Haworth > >> To: How to use LiveCode > >> Sent: Tue, Mar 31, 2015 5:53 pm > >> Subject: Re: BackgroundColor > >> > >> > >> Thanks Ralph. Unfortunately I need to set the background of certain > >> columns > >> (by which I mean between tabs) of a line. > >> > >> Interesting that it works for the > >> whole line though. I think I might > >> report it at QCC, not really a bug just an > >> inconsistency. > >> > >> Pete > >> lcSQL Software > >> Home of > >> lcStackBrowser and > >> SQLiteAdmin > >> > >> > >> On Tue, Mar 31, 2015 at 1:46 PM, > >> Ralph DiMola > >> wrote: > >> > >>> Pete, > >>> > >>> I found that > >> this happens on setting just char(s). If you set > >>> backgroundcolor of the line > >> it fills in the entire height. > >>> > >>> Ralph DiMola > >>> IT Director > >>> Evergreen > >> Information Services > >>> rdimola at evergreeninfo.net > >>> > >>> > >>> -----Original > >> Message----- > >>> From: use-livecode > >> [mailto:use-livecode-bounces at lists.runrev.com] On > >>> Behalf > >>> Of Peter > >> Haworth > >>> Sent: Tuesday, March 31, 2015 4:18 PM > >>> To: How to use LiveCode > >>> > >> Subject: BackgroundColor > >>> > >>> I am setting the backgroundcolor by script of a > >> chunk of text in a field > >>> whose textSize is 16 and textHeight is 30. > >>> > >>> The > >> backgroundcolor only hilites the text up to the textSize, the area > >>> between > >> the textSize and the textHeight stays unhilited. > >>> > >>> Is there a property which > >> will hilite the selected text for the full text > >>> height? Or any other > >> technique for achieveing this? > >>> > >>> Thanks, > >>> > >>> Pete > >>> lcSQL Software > >> > >>> Home of lcStackBrowser > >> and > >>> SQLiteAdmin > >> > >>> > >> _______________________________________________ > >>> use-livecode mailing list > >>> > >> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Fri Apr 3 13:11:20 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 03 Apr 2015 12:11:20 -0500 Subject: Android local notifications In-Reply-To: <31F33A9E-7BAC-49EA-8622-4F8CA038A7C0@sorcery-ltd.co.uk> References: <551E16B1.6030008@hyperactivesw.com> <31F33A9E-7BAC-49EA-8622-4F8CA038A7C0@sorcery-ltd.co.uk> Message-ID: <551EC9B8.8050204@hyperactivesw.com> On 4/3/2015 1:41 AM, Mark Wilcox wrote: > Android can delay notifications for power saving reasons. As I > understand it the more there are from one app and the less the user > interacts with them, the more likely they are to be delayed. > > I think to do what you want more reliably you'd need to use > background processing (wake up every 30 seconds, clear the current > notification and replace with a new one) and I don't think LiveCode > enables you to that yet. Thank you, that explains some things. I suspect what I really need are alarms, but we don't have those. Or maybe the ability to assign a priority to a notification would help. I've sort of given up on background processing, at least for now. It doesn't look like we'll be able to do that with the current engine. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sebastien.nouat at livecode.com Fri Apr 3 13:11:56 2015 From: sebastien.nouat at livecode.com (sebastien) Date: Fri, 03 Apr 2015 18:11:56 +0100 Subject: Release 6.7.4 RC 3 / Release 7.0.4 RC 3 Message-ID: <551EC9DC.8060707@livecode.com> Dear List Members, We are pleased to announce the release of LiveCode 6.7.4 RC 3 and 7.0.4 RC 3. This release is a maintenance release that contains bug fixes for both versions. The list of bugs fixed can be found in the Release Notes. *iOS Simulators testing For the reason that building iOS engines has a cost of time, we have never built the engines for all the minor versions of iOS. We dropped 5.0 when 5.1 was released, 6.0 when 6.1 came out, and so on. That is simply following Apple's strict rules of constant updating. Since iOS 8.2 was released, and from LiveCode 6.7.4 RC 2 onwards, we dropped iOS Simulator 8.1 support. As a fix for the bug 15037 (http://quality.runrev.com/show_bug.cgi?id=15037), and for a matter of consistency, we now clearly advise the users that the iOS SDK 8.1 is invalid, and that only the iOS SDK 8.2 will be accepted amongst the 8.x iOS SDKs. Please, don't be surprised that Xcode 6.2 is now required, and that you cannot target the iOS Simulator 8.1 anymore. *Getting the Release* To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com *6.7.4 STABLE / 7.0.4 STABLE * The next stable builds of these releases will be made public in the middle of next week, unless the RC 3 encounters critical issues. The Stable releases will be promotion of these RC builds. Warm regards, The LiveCode Team From jacque at hyperactivesw.com Fri Apr 3 13:13:50 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 03 Apr 2015 12:13:50 -0500 Subject: Android local notifications In-Reply-To: References: <551E16B1.6030008@hyperactivesw.com> <31F33A9E-7BAC-49EA-8622-4F8CA038A7C0@sorcery-ltd.co.uk> Message-ID: <551ECA4E.2000106@hyperactivesw.com> On 4/3/2015 4:04 AM, Bernard Devlin wrote: > Livecode does get the ID of the notification. Is there some way you can > incorporate that ID with the later messages? I thought of that, but there's no way to specify an ID when you create a new notification. The ID is read-only and assigned by the engine. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pmbrig at gmail.com Fri Apr 3 13:15:51 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 3 Apr 2015 13:15:51 -0400 Subject: BackgroundColor In-Reply-To: References: <14c7231c57c-4392-16f7b@webprd-m75.mail.aol.com> <4A0E67F1-28C3-463D-BB2C-EE021B99449D@gmail.com> Message-ID: On Apr 3, 2015, at 12:58 PM, Peter Haworth wrote: > That sounded promising but alas, no joy. > > Setting the backgroundcolor to empty had no effect so I tried setting it to > white. That went back to the original issue where white was the > backgroundcolor up to the font size and the space between that and the text > height was the original backgroundcolor. Ah. I was afraid of that. Too bad. > I feel like this is a bug or at least an inconsistency so will enter a QCC > report. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Fri, Apr 3, 2015 at 5:17 AM, Peter M. Brigham wrote: > >> Late to the party here, but what happens if you lock the screen, set the >> backgroundcolor of the line to x, then set the backgroundcolor of all the >> other words to empty? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From stephenREVOLUTION2 at barncard.com Fri Apr 3 14:13:18 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 3 Apr 2015 11:13:18 -0700 Subject: Getting in a mix-up with COMn In-Reply-To: <551EAC25.5050004@gmail.com> References: <551DA879.2030907@gmail.com> <551EAC25.5050004@gmail.com> Message-ID: On Fri, Apr 3, 2015 at 8:05 AM, Richmond wrote: > Indeed; although the problem seems to be with 'end'. > until EOF ?? -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From stephenREVOLUTION2 at barncard.com Fri Apr 3 14:14:14 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Fri, 3 Apr 2015 11:14:14 -0700 Subject: Getting in a mix-up with COMn In-Reply-To: <551EAC25.5050004@gmail.com> References: <551DA879.2030907@gmail.com> <551EAC25.5050004@gmail.com> Message-ID: On Fri, Apr 3, 2015 at 8:05 AM, Richmond wrote: > read from file "COM3:" until end 'end' is another unrelated keyword. try read from file "COM3:" until eof -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From jhj at jhj.com Fri Apr 3 15:01:47 2015 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 3 Apr 2015 12:01:47 -0700 Subject: Getting in a mix-up with COMn In-Reply-To: <551EAC25.5050004@gmail.com> References: <551DA879.2030907@gmail.com> <551EAC25.5050004@gmail.com> Message-ID: <315D98FC-241D-4301-8DD4-339551F9EFAD@jhj.com> On Apr 3, 2015, at 8:05 AM, Richmond wrote: > >> read from file "COM3:" until end >> >> is the Dictionary example. >> > > Indeed; although the problem seems to be with 'end'. I have used the following with a driver for a Keyspan USB-to-serial adapter on a mac: read from driver tWxPort until empty in 100 milliseconds The in time part at the end is a timeout - without that it can just hang. If it times out, the result is set to "time out" or something like that, so you can (should) check for it. I think the word empty is what you want, rather than end or EOF. Those both expect something explicit marking the end to be sent, I think, whereas most things just stop sending (as in empty). Wishing you good luck, this can be frustrating until it starts working when you get all your ducks (turtles?) in a row. .Jerry From bdrunrev at gmail.com Sat Apr 4 01:08:15 2015 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sat, 4 Apr 2015 06:08:15 +0100 Subject: Android local notifications In-Reply-To: <551ECA4E.2000106@hyperactivesw.com> References: <551E16B1.6030008@hyperactivesw.com> <31F33A9E-7BAC-49EA-8622-4F8CA038A7C0@sorcery-ltd.co.uk> <551ECA4E.2000106@hyperactivesw.com> Message-ID: I assume you are trying to send a push notification from one Livecode app to another. When I was testing push notifications, I did my tests via curl curl -v -H "Authorization:key=???" -X POST --data "@push.txt" https://android.googleapis.com/gcm/send where the file "push.txt" contained the parameters which determined the values of the notification. Your android key would go in the above command line where it says "???" By using http to send the notifications to the Android URL listed above, you may be able to se the id and thus check whether the problem of updating notifications is resolved this way. If so, then you do at least have a non-Livecode solution which may be acceptable until the Livecode engine is changed to accept the ID as a parameter. push.txt contained this kind of text data.play_sound=true&data.badge_value=3&data.body=myurl://&data.payload=hello+android®istration_id=APA9 The final parameter (registration_id) may be what you want. My notes from these tests don't mention why I was including that (maybe I was actually trying to work out how to re-use IDs). The "myurl://" is to do with associating an android app with a URL schema. I think you can ignore it. Let me know if it works. It's a couple of years since I looked at this, so I'm a bit foggy on it all. Regards Bernard On Fri, Apr 3, 2015 at 6:13 PM, J. Landman Gay wrote: > On 4/3/2015 4:04 AM, Bernard Devlin wrote: > >> Livecode does get the ID of the notification. Is there some way you can >> incorporate that ID with the later messages? >> > > I thought of that, but there's no way to specify an ID when you create a > new notification. The ID is read-only and assigned by the engine. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From simon at smknight.co.uk Sat Apr 4 04:48:29 2015 From: simon at smknight.co.uk (Simon Knight) Date: Sat, 04 Apr 2015 09:48:29 +0100 Subject: Please recommend a text editor Message-ID: <551FA55D.9010607@smknight.co.uk> Hi, I have to produce some documentation and am looking for an editor (Apple Mac) that will support language syntax colouring. I am experimenting with TextWrangler. The complication is I want to use both Livecode and MS Access VBA code. Do you have any suggestions ? best wishes Simon From richmondmathewson at gmail.com Sat Apr 4 05:03:07 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Apr 2015 12:03:07 +0300 Subject: Please release me, let me go. In-Reply-To: <551EC9DC.8060707@livecode.com> References: <551EC9DC.8060707@livecode.com> Message-ID: <551FA8CB.3050203@gmail.com> Just to be awkward (for a change . . . no irony intended), if 6.7.4 is built so that it will run on Windows XP [ a system released in 2001 ] why is it not built so that it can run on Mac OS 10.4 PPC [ a system released in 2005 ], or, for that matter, Mac OS 10.4 Intel? It is, also, interesting to note that the first alpha build of LC 8 is also capable of running on Windows XP. The reply will, inevitably, consist of stuff about market share . . . which is probably due to a bad case of not thinking one's way through a load of statistics. The rationale behind dropping support for an out-dated operating system, surely, should not be based on the global installed base of that operating system, but the globally installed base of that operating system who use LiveCode for software development, and the clients to whom they sell/give their standalones for deployment. ------------------ I have no particular beef with Windows XP [in fact, if truth be known, I have a dual boot machine that runs Win XP and Win 7 - on two 40 Gig Hard drives] for software testing. I do have big beefs with Windows 95, 98, Millennium and Vista . . . but I think quite a lot of other people do as well. ------------------ This posting is NOT to try to pursuade RunRev to dig out all their PPC code and spend donkey's ages compiling PPC builds while softly chanting "bloody, bloody Richmond" sotto voce. It IS, again, again, again, a request to make available these: 1. The last version of RR/LC to run and/or build Mac OS 9 standalones. 2. The last version of RR/LC to run and/or build Mac OS X PPC standalones on Mac OS 10.4. either for free or for a modest fee, with some legal disclaimer that paraphrases as "you're on your own, mate". ------------------- Richmond. From richmondmathewson at gmail.com Sat Apr 4 05:12:50 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Apr 2015 12:12:50 +0300 Subject: Please recommend a text editor In-Reply-To: <551FA55D.9010607@smknight.co.uk> References: <551FA55D.9010607@smknight.co.uk> Message-ID: <551FAB12.5060607@gmail.com> On 04/04/15 11:48, Simon Knight wrote: > Hi, > > I have to produce some documentation and am looking for an editor > (Apple Mac) that will support language syntax colouring. I am > experimenting with TextWrangler. The complication is I want to use > both Livecode and MS Access VBA code. > > Do you have any suggestions ? > > best wishes > > Simon > These may be daft: http://www.bluemangolearning.com/livecode/software/plugins/bbedit-language-module/ remember that TextWrangler is the free version of BBedit. http://www.sonsothunder.com/devres/livecode/downloads/stsMLXEditor.htm Where the website refers to "Revolution" read 'LiveCode', where the website refers to "Transcript" read whatever-the-heck the programming language in LiveCode is currently called, if anything at all. At the bottom of that page you will see 4 fairly outdated modules to assist you with 4 text editors: your mileage may vary :) Best of luck, Richmond. From richmondmathewson at gmail.com Sat Apr 4 05:19:32 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Apr 2015 12:19:32 +0300 Subject: Please recommend a text editor In-Reply-To: <551FA55D.9010607@smknight.co.uk> References: <551FA55D.9010607@smknight.co.uk> Message-ID: <551FACA4.2060004@gmail.com> On 04/04/15 11:48, Simon Knight wrote: > Hi, > > I have to produce some documentation and am looking for an editor > (Apple Mac) that will support language syntax colouring. I am > experimenting with TextWrangler. The complication is I want to use > both Livecode and MS Access VBA code. > > Do you have any suggestions ? > > best wishes > > Simon > > _______________________________________________ Komodo: http://sunny-tdz.com/lab-1007 Richmond. From simon at smknight.co.uk Sat Apr 4 06:18:11 2015 From: simon at smknight.co.uk (Simon Knight) Date: Sat, 04 Apr 2015 11:18:11 +0100 Subject: Please recommend a text editor In-Reply-To: <551FACA4.2060004@gmail.com> References: <551FA55D.9010607@smknight.co.uk> <551FACA4.2060004@gmail.com> Message-ID: <551FBA63.4040007@smknight.co.uk> Richmond, Many thanks - I will give textwrangler a try, I have used it as a plain text editor but never really dug deep: I have down loaded the "Revolution" add-in that you pointed me to and may have a try at creating my own. The one thing I have not been able to do is to directly export coloured text to a word processor. The Textwrangler export option remains grayed out but I can get the text by printing to preview and copy and paste from there. best wishes Simon On 04/04/2015 10:19, Richmond wrote: > On 04/04/15 11:48, Simon Knight wrote: >> Hi, >> >> I have to produce some documentation and am looking for an editor >> (Apple Mac) that will support language syntax colouring. I am >> experimenting with TextWrangler. The complication is I want to use >> both Livecode and MS Access VBA code. >> >> Do you have any suggestions ? >> >> best wishes >> >> Simon >> >> _______________________________________________ > > Komodo: http://sunny-tdz.com/lab-1007 > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sat Apr 4 07:03:31 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Apr 2015 14:03:31 +0300 Subject: Please recommend a text editor In-Reply-To: <551FBA63.4040007@smknight.co.uk> References: <551FA55D.9010607@smknight.co.uk> <551FACA4.2060004@gmail.com> <551FBA63.4040007@smknight.co.uk> Message-ID: <551FC503.8000202@gmail.com> On 04/04/15 13:18, Simon Knight wrote: > Richmond, > > Many thanks - I will give textwrangler a try, I have used it as a > plain text editor but never really dug deep: I have down loaded the > "Revolution" add-in that you pointed me to and may have a try at > creating my own. The one thing I have not been able to do is to > directly export coloured text to a word processor. The Textwrangler > export option remains grayed out but I can get the text by printing to > preview and copy and paste from there. > > best wishes > > Simon > I'm not entirely sure what your objection to the built-in script editor is; as a syntax coloured external editor is much the same sort of thing. However, having said that, I tend to use Appleworks 6 on my G5 iMac running Mac OS 10.5 for editing large scripts where I need to perform bulk search-and-replace operations. Appleworks does not offer syntax colouring, but I use it mainly by doing a copy-paste of an already finished script to modify it via search-and-replace rather than programming per se. If you want to do script-editing like Visual Basic (i.e. one long list rather than lots of little lists in each object) then I suppose your question begins to make sense; the only real problem is at that point you lose the WYSIWYG aspect that is so powerful in LiveCode. Richmond. From bonnmike at gmail.com Sat Apr 4 07:05:04 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 4 Apr 2015 05:05:04 -0600 Subject: Please release me, let me go. In-Reply-To: <551FA8CB.3050203@gmail.com> References: <551EC9DC.8060707@livecode.com> <551FA8CB.3050203@gmail.com> Message-ID: Its not the operating system, its the hardware. Well, ok its a combination. xp runs on intel hardware, so does win8. Software that runs on xp and intel hardware, has a decent (though not perfect) chance of running on win8, on intel hardware. However, the same piece of software won't run on windows rt. different hardware, which forces adjusted os, which would force a whole separate build requirement for a piece of software. You'd have to maintain, develop, and debug 2 separate code bases. Same goes back to the windows on alpha days. Yep, you could get a version of windows to run on an alpha box, but you'd also have to find software for windows compiled for windows alpha. Even the 64 bit change can be problematic. On linux, one must install the ia32 support libraries to be able to get 32 bit compiled software to run on a 64 bit os. And you can't run 64 bit compiled software on 32 bit only os. Windows has built in support (in 64 bit windows) so that you can run 32 bit applications, and even separates out the binaries into different "program files" folders. So, comparing the cost of supporting ppc on mac, and building for windows 8, which just happens to still work on xp isn't a valid comparison. MS has put a lot of effort into keeping things backwards compatible, on similar hardware. Despite my distaste for windows and its random "features", its kinda remarkable that it runs as well as it does. Layered patches, compatibility layers, security fixes, hardware from a ton of different manufacturers for vid, storage, etc created by companies with in house programmers who may or may not write good driver software... above, I said it's remarkable that things work as well as they do, I'd like to upgrade that to a flippin miracle. (you mentioned xp, but I suspect many many things that are will run on win8 will also go back all the way to win95. At least things that are not too complex.) On Sat, Apr 4, 2015 at 3:03 AM, Richmond wrote: > Just to be awkward (for a change . . . no irony intended), if 6.7.4 is > built so that it will run > on Windows XP [ a system released in 2001 ] why is it not built so that it > can run on > Mac OS 10.4 PPC [ a system released in 2005 ], or, for that matter, Mac OS > 10.4 Intel? > > It is, also, interesting to note that the first alpha build of LC 8 is > also capable of running on Windows XP. > > The reply will, inevitably, consist of stuff about market share . . . > which is probably due to a bad > case of not thinking one's way through a load of statistics. > > The rationale behind dropping support for an out-dated operating system, > surely, should not > be based on the global installed base of that operating system, but the > globally installed base > of that operating system who use LiveCode for software development, and > the clients to whom > they sell/give their standalones for deployment. > > ------------------ > > I have no particular beef with Windows XP [in fact, if truth be known, I > have a dual boot > machine that runs Win XP and Win 7 - on two 40 Gig Hard drives] for > software testing. > > I do have big beefs with Windows 95, 98, Millennium and Vista . . . but I > think quite a lot of other > people do as well. > > ------------------ > > This posting is NOT to try to pursuade RunRev to dig out all their PPC > code and spend donkey's ages > compiling PPC builds while softly chanting "bloody, bloody Richmond" sotto > voce. > > It IS, again, again, again, a request to make available these: > > 1. The last version of RR/LC to run and/or build Mac OS 9 standalones. > > 2. The last version of RR/LC to run and/or build Mac OS X PPC standalones > on Mac OS 10.4. > > either for free or for a modest fee, with some legal disclaimer that > paraphrases as > "you're on your own, mate". > > ------------------- > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Sat Apr 4 07:58:40 2015 From: paul at researchware.com (Paul Dupuis) Date: Sat, 04 Apr 2015 07:58:40 -0400 Subject: Please release me, let me go. In-Reply-To: References: <551EC9DC.8060707@livecode.com> <551FA8CB.3050203@gmail.com> Message-ID: <551FD1F0.6050001@researchware.com> The other big difference - and this is no dig on either Microsoft or Apple - just a difference between the two: Apple drops backwards compatibility more frequently as they update their operating systems. They are able to do this because their buying audience both allows them to do so and in many cases rewards them for doing so. Apple is able to force this because they are the sole source for both hardware and software and can release a new OS that will only run on new hardware or new hardware that will only run the latest OS Microsoft tends to preserve backwards compatibility more frequently as they update their operating systems. Their buying audience frequently insists on it and will not buy the "new" version if backwards compatibility is broken. Microsoft, only being an OS vendor, can't really force a new version on its customers. They can buy hardware from virtually anyone - including people who will assemble PCs to their specifications for cheap dollars - and so can buy "new" computers compatible with older operating system versions if they want. You can argue endlessly about which approach is "better", but this is once of the core reasons why more applications support very old versions of Windows and you do not see the same thing for OSX On 4/4/2015 7:05 AM, Mike Bonner wrote: > Its not the operating system, its the hardware. Well, ok its a > combination. xp runs on intel hardware, so does win8. Software that runs > on xp and intel hardware, has a decent (though not perfect) chance of > running on win8, on intel hardware. However, the same piece of software > won't run on windows rt. different hardware, which forces adjusted os, > which would force a whole separate build requirement for a piece of > software. You'd have to maintain, develop, and debug 2 separate code bases. > > Same goes back to the windows on alpha days. Yep, you could get a version > of windows to run on an alpha box, but you'd also have to find software for > windows compiled for windows alpha. > > Even the 64 bit change can be problematic. On linux, one must install the > ia32 support libraries to be able to get 32 bit compiled software to run on > a 64 bit os. And you can't run 64 bit compiled software on 32 bit only os. > Windows has built in support (in 64 bit windows) so that you can run 32 bit > applications, and even separates out the binaries into different "program > files" folders. > > So, comparing the cost of supporting ppc on mac, and building for windows > 8, which just happens to still work on xp isn't a valid comparison. MS has > put a lot of effort into keeping things backwards compatible, on similar > hardware. Despite my distaste for windows and its random "features", its > kinda remarkable that it runs as well as it does. Layered patches, > compatibility layers, security fixes, hardware from a ton of different > manufacturers for vid, storage, etc created by companies with in house > programmers who may or may not write good driver software... above, I said > it's remarkable that things work as well as they do, I'd like to upgrade > that to a flippin miracle. (you mentioned xp, but I suspect many many > things that are will run on win8 will also go back all the way to win95. At > least things that are not too complex.) > > > > On Sat, Apr 4, 2015 at 3:03 AM, Richmond > wrote: > >> Just to be awkward (for a change . . . no irony intended), if 6.7.4 is >> built so that it will run >> on Windows XP [ a system released in 2001 ] why is it not built so that it >> can run on >> Mac OS 10.4 PPC [ a system released in 2005 ], or, for that matter, Mac OS >> 10.4 Intel? >> >> It is, also, interesting to note that the first alpha build of LC 8 is >> also capable of running on Windows XP. >> >> The reply will, inevitably, consist of stuff about market share . . . >> which is probably due to a bad >> case of not thinking one's way through a load of statistics. >> >> The rationale behind dropping support for an out-dated operating system, >> surely, should not >> be based on the global installed base of that operating system, but the >> globally installed base >> of that operating system who use LiveCode for software development, and >> the clients to whom >> they sell/give their standalones for deployment. >> >> ------------------ >> >> I have no particular beef with Windows XP [in fact, if truth be known, I >> have a dual boot >> machine that runs Win XP and Win 7 - on two 40 Gig Hard drives] for >> software testing. >> >> I do have big beefs with Windows 95, 98, Millennium and Vista . . . but I >> think quite a lot of other >> people do as well. >> >> ------------------ >> >> This posting is NOT to try to pursuade RunRev to dig out all their PPC >> code and spend donkey's ages >> compiling PPC builds while softly chanting "bloody, bloody Richmond" sotto >> voce. >> >> It IS, again, again, again, a request to make available these: >> >> 1. The last version of RR/LC to run and/or build Mac OS 9 standalones. >> >> 2. The last version of RR/LC to run and/or build Mac OS X PPC standalones >> on Mac OS 10.4. >> >> either for free or for a modest fee, with some legal disclaimer that >> paraphrases as >> "you're on your own, mate". >> >> ------------------- >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From simon at smknight.co.uk Sat Apr 4 08:10:12 2015 From: simon at smknight.co.uk (Simon Knight) Date: Sat, 04 Apr 2015 13:10:12 +0100 Subject: Please recommend a text editor In-Reply-To: <551FC503.8000202@gmail.com> References: <551FA55D.9010607@smknight.co.uk> <551FACA4.2060004@gmail.com> <551FBA63.4040007@smknight.co.uk> <551FC503.8000202@gmail.com> Message-ID: <551FD4A4.7000400@smknight.co.uk> I've no objection to the built in script editor (except when it bangs out during debug) especially as I have just re-discovered that if I cut and paste from it I get coloured text. However, I want to create a document that compares Livecode script with VBA code and if I do a cut and paste from the VBA editor I get plain text. I now realise that I can put the VBA through textwrangler and into a Wp such as Bean with any Livecode being inserted with a straight cut and paste. Ah! Appleworks 6. Now it comes from a time when Apple were hungry and software had to work whereas today it just has to look good - but please don't get me started. As to 'if I want to do script editing in VBA"- well I don't really its just that have to ;-) best wishes Simon On 04/04/2015 12:03, Richmond wrote: > On 04/04/15 13:18, Simon Knight wrote: >> Richmond, >> >> Many thanks - I will give textwrangler a try, I have used it as a >> plain text editor but never really dug deep: I have down loaded the >> "Revolution" add-in that you pointed me to and may have a try at >> creating my own. The one thing I have not been able to do is to >> directly export coloured text to a word processor. The Textwrangler >> export option remains grayed out but I can get the text by printing >> to preview and copy and paste from there. >> >> best wishes >> >> Simon >> > > I'm not entirely sure what your objection to the built-in script > editor is; as a syntax coloured external editor is much the same sort > of thing. > > However, having said that, I tend to use Appleworks 6 on my G5 iMac > running Mac OS 10.5 for editing large scripts where I need to > perform bulk search-and-replace operations. > > Appleworks does not offer syntax colouring, but I use it mainly by > doing a copy-paste of an already finished script to modify it via > search-and-replace rather than programming per se. > > If you want to do script-editing like Visual Basic (i.e. one long list > rather than lots of little lists in each object) then I suppose your > question begins > to make sense; the only real problem is at that point you lose the > WYSIWYG aspect that is so powerful in LiveCode. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sat Apr 4 08:47:20 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 04 Apr 2015 15:47:20 +0300 Subject: Please recommend a text editor In-Reply-To: <551FD4A4.7000400@smknight.co.uk> References: <551FA55D.9010607@smknight.co.uk> <551FACA4.2060004@gmail.com> <551FBA63.4040007@smknight.co.uk> <551FC503.8000202@gmail.com> <551FD4A4.7000400@smknight.co.uk> Message-ID: <551FDD58.7030105@gmail.com> On 04/04/15 15:10, Simon Knight wrote: > I've no objection to the built in script editor (except when it bangs > out during debug) especially as I have just re-discovered that if I > cut and paste from it I get coloured text. However, I want to create > a document that compares Livecode script with VBA code and if I do a > cut and paste from the VBA editor I get plain text. I now realise > that I can put the VBA through textwrangler and into a Wp such as Bean > with any Livecode being inserted with a straight cut and paste. > > Ah! Appleworks 6. Now it comes from a time when Apple were hungry and > software had to work whereas today it just has to look good - but > please don't get me started. Why do you think about 8 months ago I bought a second-hand G5 iMac when I had the money for a new Intel iMac running Mac OS Y ("Black Hills of Dakota")? 1. Running 10.4.11 the G5 can run Mac OS 9 - and as, a while ago, I invested a lot of money in 3D graphics progs. for Mac OS 9 I'd far rather run them than pay for their successors. 2. Running 10.5.8 with 2 GB RAM it does almost all I need for programming. 3. AppleWorks will be my favourite office suite forever unless somebody produces an exact clone than runs on Linux. It may not have a million bells and whistles, but it does offer all I need, and when compared with LibreOffice, Open Office, Star Office, Think Free Office, MS Office, KOffice, KingSoft Office (yes, I have tried ALL of them), it still looks better than all of them to me - probabaly because it doesn't suffer from feature bloat. See answers to my other posting entitled "Please release me, let me go." and ask yourself why, although I really DID like Macintosh computers and the Mac OS, I didn't like Steve Jobs and his heirs, and their non-backwards-compatibility way of thinking. Richmond. > > As to 'if I want to do script editing in VBA"- well I don't really > its just that have to ;-) > > best wishes > > Simon > > On 04/04/2015 12:03, Richmond wrote: >> On 04/04/15 13:18, Simon Knight wrote: >>> Richmond, >>> >>> Many thanks - I will give textwrangler a try, I have used it as a >>> plain text editor but never really dug deep: I have down loaded the >>> "Revolution" add-in that you pointed me to and may have a try at >>> creating my own. The one thing I have not been able to do is to >>> directly export coloured text to a word processor. The Textwrangler >>> export option remains grayed out but I can get the text by printing >>> to preview and copy and paste from there. >>> >>> best wishes >>> >>> Simon >>> >> >> I'm not entirely sure what your objection to the built-in script >> editor is; as a syntax coloured external editor is much the same sort >> of thing. >> >> However, having said that, I tend to use Appleworks 6 on my G5 iMac >> running Mac OS 10.5 for editing large scripts where I need to >> perform bulk search-and-replace operations. >> >> Appleworks does not offer syntax colouring, but I use it mainly by >> doing a copy-paste of an already finished script to modify it via >> search-and-replace rather than programming per se. >> >> If you want to do script-editing like Visual Basic (i.e. one long >> list rather than lots of little lists in each object) then I suppose >> your question begins >> to make sense; the only real problem is at that point you lose the >> WYSIWYG aspect that is so powerful in LiveCode. >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david at viral.academy Sat Apr 4 09:03:35 2015 From: david at viral.academy (David Bovill) Date: Sat, 4 Apr 2015 14:03:35 +0100 Subject: Moving to the Cloud. LiveCodeServer on Linux CentoOS vs Ubuntu 11 In-Reply-To: <54EEC37A.7020809@hindu.org> References: <54EE59D6.5060206@fourthworld.com> <54EEC37A.7020809@hindu.org> Message-ID: I'm looking to run a LiveCode server daemon on Digital Ocean alongside a NodeJS Server to do some experiments. Could anyone fill em in with regard to your experience on this platform - it's a test server - so if anyone want to join in experimenting I'll happily share ? On 26 February 2015 at 06:55, Brahmanathaswami wrote: > Thanks, Richard/Simon: > > Thanks for the encouragement... knowing that it should go well helps with > the job (these migrations are tedious) > > 1) It's Digital Ocean we're moving to... two other sites run by the > business team (minimela.com and hhe-online.org) are already over on > Digital Ocean and they are extremely happy with it. Lighting fast (but the > sites are very light weight) > > 2) Ubuntu "11" I don't know what I'm talking about (hehe)... If Simon > says they are up to 14.* then that's what it will be. I've got all tweaks > to httpd conf very well documented so setting up the new web service I hope > will go smoothly. It's easy with VirtualMin/WebMin -- the "dream machine" > of web server control panels IMHO (having used Plesk, Ensim, Cpanel... all > of which drove me nuts) > > 3) Just installed keys on the current server yesterday.. really "cool" ! > > 4) I'll test with the latest LC server 7... What does it offer on the > server that is significant over 6.* ? Unicode is becoming increasing > important... but I think all that is in 6.7... > > 4) Papaya fresh yogurt, breakfast with Expresso with fresh Jersey cream > and free fabulous vegetarian lunch awaits you here on Kauai if you want to > come over and help me with the migration. I might even be able to get you > free lodging within 5 minutes of our place. (Do you need a break?) > > This will be my 8th server migration in 20 years since we first moved onto > a machine in Honolulu in 1995 and it looks like it will be the easiest. > (VirtualMin makes it easy) > > Our target to complete migration by May 19... so we are giving our selves > plenty of time. I'll be spinning up 16GB ram 8 Core 320GB (or more) SSD > instance at Digital Ocean any day now, happy to get off this dedicated > server at GoGrid. Last year it had a file system error and I was sweating > for 15 hours (longest outage in 20 years) as tech kept running fsck until > finally in the middle of the night it finished and we got a prompt! I never > want to go thru that again. > > Cheers from perfect weather Kauai > > Actually we are going thru an very uncharacteristic drought by we don't > miss all the mold and mud of the usual Kauai winter. > > BR > > > > Richard Gaskin wrote: > >> >> The first thing Brahmanathaswami will want to do is set up his shared >> keys, and Digital Ocean has a good tutorial on that: >> > set-up-ssh-keys--2> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From shawnblc at me.com Sat Apr 4 09:52:52 2015 From: shawnblc at me.com (Shawn Beagle) Date: Sat, 04 Apr 2015 08:52:52 -0500 Subject: Please recommend a text editor In-Reply-To: <551FAB12.5060607@gmail.com> References: <551FA55D.9010607@smknight.co.uk> <551FAB12.5060607@gmail.com> Message-ID: I?ve used TextWrangler, TextEdit, WebStorm, Coda2, Sublime Text2 & 3, Brackets, and now use Atom. I prefer Atom, mainly because of the packets manager, and that it?s open source. > On Apr 4, 2015, at 04:12, Richmond wrote: > > On 04/04/15 11:48, Simon Knight wrote: >> Hi, >> >> I have to produce some documentation and am looking for an editor (Apple Mac) that will support language syntax colouring. I am experimenting with TextWrangler. The complication is I want to use both Livecode and MS Access VBA code. >> >> Do you have any suggestions ? >> >> best wishes >> >> Simon >> > > These may be daft: > > http://www.bluemangolearning.com/livecode/software/plugins/bbedit-language-module/ remember that TextWrangler is the free version of BBedit. > > http://www.sonsothunder.com/devres/livecode/downloads/stsMLXEditor.htm > > Where the website refers to "Revolution" read 'LiveCode', where the website refers to "Transcript" read whatever-the-heck the programming > language in LiveCode is currently called, if anything at all. > > At the bottom of that page you will see 4 fairly outdated modules to assist you with 4 text editors: your mileage may vary :) > > Best of luck, Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lfredricks at proactive-intl.com Sat Apr 4 11:49:09 2015 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Sat, 4 Apr 2015 08:49:09 -0700 Subject: Please release me, let me go. In-Reply-To: <551FA8CB.3050203@gmail.com> References: <551EC9DC.8060707@livecode.com> <551FA8CB.3050203@gmail.com> Message-ID: > The rationale behind dropping support for an out-dated > operating system, surely, should not be based on the global > installed base of that operating system, but the globally > installed base of that operating system who use LiveCode for > software development, and the clients to whom they sell/give > their standalones for deployment. LiveCode presents some special conditions. XP is still the second largest installed base of Windows. A lot of companies have to continue to support XP (and other older versions of Windows), even though Microsoft has (almost entirely) dropped it. Sometimes a company is in a position to force their users to do something they don't want to do, and I have to say Microsoft is rather kindly in that regard (unlike companies like Intuit or Adobe...). Apple really doesn't have to care any more about backwards compatibility. While they do own both the software and hardware end of the market, they are no longer really going head to head against "infrastructure" minded Wintel. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From dochawk at gmail.com Sat Apr 4 13:16:53 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 4 Apr 2015 10:16:53 -0700 Subject: muddling around in the source for revOpenDatabase()for postgresq Message-ID: After letting ideas percolate in my head for a few months, I realized that it would probably only take a couple or few lines of code to let revOpenDatabase() open a postgres database with the ssl option. So I started poking around github. It seems like the first piece of code is for *revdb.cpp* at e https://github.com/runrev/livecode/blob/830646697a332aadefd5e9af4d439374fe9d031e/revdb/src/revdb.cpp It looks to me like the connection is opened at line 840, after loading a module for the particular db type at 837. (but then, my C/C++ is beyond stale at this point; 15 years since I used it) And that's where the trail went dead. I can't tell if LoadDatabaseDriver is part of livecode, C++, or something else (github colors it as a codeword, but it seems to be defined in this code at line 236, and doesn't appear elsewhere in livecode) however, it appears to me (did I mention my C is past rusty?) that the optional sixth argument to revOpenDatabase() simply gets passed on to the loaded driver; it didn't look to me like there's a trap anywhere to only do this for mySql and Valentina). But I can't figure out what it's doing to load the module, or read C++ well enough to figure out how the arguments are passing. A postgres server may be set in its configuration file to accept ssl, nossl, or both. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From stephenREVOLUTION2 at barncard.com Sat Apr 4 22:11:44 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 4 Apr 2015 19:11:44 -0700 Subject: Please recommend a text editor In-Reply-To: References: <551FA55D.9010607@smknight.co.uk> <551FAB12.5060607@gmail.com> Message-ID: On Sat, Apr 4, 2015 at 6:52 AM, Shawn Beagle wrote: > I?ve used TextWrangler, TextEdit, WebStorm, Coda2, Sublime Text2 & 3, > Brackets, and now use Atom. I prefer Atom, mainly because of the packets > manager, and that it?s open source. I've ended up with Textmate, mainly because there's a code coloring and formatting bundle available from the person that wrote RevIngiter... but I saw this on the ATOM feature list: "Import TextMate grammars and themes" YES! An 'external' text editor is important to me because my main use of Livecode is for the SERVER, not the desktop. RevIgniter Livecode bundle http://revigniter.com/accessory Atom https://atom.io -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From ambassador at fourthworld.com Sun Apr 5 00:01:37 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 04 Apr 2015 21:01:37 -0700 Subject: LiveNode Server In-Reply-To: References: Message-ID: <5520B3A1.5050203@fourthworld.com> David Bovill wrote: > I am not quite sure what not being forkable is here - can you > explain. Not as well as Andre: -- Richard Gaskin Fourth World Systems From simon at smknight.co.uk Sun Apr 5 04:14:17 2015 From: simon at smknight.co.uk (Simon Knight) Date: Sun, 05 Apr 2015 09:14:17 +0100 Subject: Please recommend a text editor In-Reply-To: <551FDD58.7030105@gmail.com> References: <551FA55D.9010607@smknight.co.uk> <551FACA4.2060004@gmail.com> <551FBA63.4040007@smknight.co.uk> <551FC503.8000202@gmail.com> <551FD4A4.7000400@smknight.co.uk> <551FDD58.7030105@gmail.com> Message-ID: <5520EED9.7060706@smknight.co.uk> Richmond, You raise some interesting and in some ways disturbing questions. Why are we seemingly locked into an endless cycle of replacing working equipment with new more expensive versions? In early days the improvements were real with greater storage and improved graphics. I bought my first Apple because Acorn Ltd stopped making computers and I could not figure out what I "needed" in a Windows PC. Initially I was happy to upgrade both hardware and software as OSX improved but then Lion was issued and Apple entered a phase of stagnation coupled with the removal of features such as Rosetta. Unlike you I have purchased a machine running MAC OS Y ("Black Hills of Dakota") and its quite like Mountain Lion only with blue buttons. Where possible I have switched off many of the "new exciting" but pointless features such as transparency. The down sides have been many, most notable being my new computer will not run the older version of Apple Pages and the new version will not open older files, not that surprising perhaps but it has made me review how I store information for the long term. Also, many of my home movies no longer run as the new Quicktime does not recognise the file formats (Its QUICKTIME you dumb piece of S**T!) (yes I know quicktime is a container format but why have they dropped old formats - have they run out of resources?). The upshot is that I am unlikely to purchase a new Mac, especially as I am certain it will have been dumbed down to the level of IOS and have a finger painting interface included. I suspect that I will either give Windows a try or take a leap into the unknown world of Linux. I apologise for raving on and I think I did warn against getting me started but the bottom line is I agree with you. best wishes Simon On 04/04/2015 13:47, Richmond wrote: > On 04/04/15 15:10, Simon Knight wrote: >> I've no objection to the built in script editor (except when it bangs >> out during debug) especially as I have just re-discovered that if I >> cut and paste from it I get coloured text. However, I want to create >> a document that compares Livecode script with VBA code and if I do a >> cut and paste from the VBA editor I get plain text. I now realise >> that I can put the VBA through textwrangler and into a Wp such as >> Bean with any Livecode being inserted with a straight cut and paste. >> >> Ah! Appleworks 6. Now it comes from a time when Apple were hungry >> and software had to work whereas today it just has to look good - but >> please don't get me started. > > Why do you think about 8 months ago I bought a second-hand G5 iMac > when I had the money for a new Intel iMac running Mac OS Y ("Black > Hills of Dakota")? > > 1. Running 10.4.11 the G5 can run Mac OS 9 - and as, a while ago, I > invested a lot of money in 3D graphics progs. for Mac OS 9 I'd far > rather run them than pay for their successors. > > 2. Running 10.5.8 with 2 GB RAM it does almost all I need for > programming. > > 3. AppleWorks will be my favourite office suite forever unless > somebody produces an exact clone than runs on Linux. It may not > have a million bells and whistles, but it does offer all I need, and > when compared with LibreOffice, Open Office, Star Office, Think Free > Office, > MS Office, KOffice, KingSoft Office (yes, I have tried ALL of them), > it still looks better than all of them to me - probabaly because it > doesn't suffer > from feature bloat. > > See answers to my other posting entitled "Please release me, let me > go." and ask yourself why, although I really DID like Macintosh computers > and the Mac OS, I didn't like Steve Jobs and his heirs, and their > non-backwards-compatibility way of thinking. > > Richmond. >> >> As to 'if I want to do script editing in VBA"- well I don't really >> its just that have to ;-) >> >> best wishes >> >> Simon >> >> On 04/04/2015 12:03, Richmond wrote: >>> On 04/04/15 13:18, Simon Knight wrote: >>>> Richmond, >>>> >>>> Many thanks - I will give textwrangler a try, I have used it as a >>>> plain text editor but never really dug deep: I have down loaded the >>>> "Revolution" add-in that you pointed me to and may have a try at >>>> creating my own. The one thing I have not been able to do is to >>>> directly export coloured text to a word processor. The >>>> Textwrangler export option remains grayed out but I can get the >>>> text by printing to preview and copy and paste from there. >>>> >>>> best wishes >>>> >>>> Simon >>>> >>> >>> I'm not entirely sure what your objection to the built-in script >>> editor is; as a syntax coloured external editor is much the same >>> sort of thing. >>> >>> However, having said that, I tend to use Appleworks 6 on my G5 iMac >>> running Mac OS 10.5 for editing large scripts where I need to >>> perform bulk search-and-replace operations. >>> >>> Appleworks does not offer syntax colouring, but I use it mainly by >>> doing a copy-paste of an already finished script to modify it via >>> search-and-replace rather than programming per se. >>> >>> If you want to do script-editing like Visual Basic (i.e. one long >>> list rather than lots of little lists in each object) then I suppose >>> your question begins >>> to make sense; the only real problem is at that point you lose the >>> WYSIWYG aspect that is so powerful in LiveCode. >>> >>> Richmond. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Apr 5 05:10:11 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 05 Apr 2015 12:10:11 +0300 Subject: Please recommend a text editor In-Reply-To: <5520EED9.7060706@smknight.co.uk> References: <551FA55D.9010607@smknight.co.uk> <551FACA4.2060004@gmail.com> <551FBA63.4040007@smknight.co.uk> <551FC503.8000202@gmail.com> <551FD4A4.7000400@smknight.co.uk> <551FDD58.7030105@gmail.com> <5520EED9.7060706@smknight.co.uk> Message-ID: <5520FBF3.6050502@gmail.com> On 05/04/15 11:14, Simon Knight wrote: > Richmond, > > You raise some interesting and in some ways disturbing questions. That's because I am both interesting and disturbing . . . LOL I remember watching the very good film of "Far from the Madding Crowd" with Alan Bates and Julie Christie when I was about 14 or 15, and saw the shepherd ruined when one of his dogs pushed all the sheep over the cliff. That image, of all the dead sheep on the shore and Alan Bates doing his "oh shit, I'm totally f**ked" look, has stuck with me for the past 40 years. I, once, let a sheep dog push me, and the result was disastrous. Never again. However, I have read most of Thomas Hardy's novels and short stories since then :) Richmond. From peter.brett at livecode.com Sun Apr 5 07:14:12 2015 From: peter.brett at livecode.com (Peter TB Brett) Date: Sun, 05 Apr 2015 13:14:12 +0200 Subject: Please recommend a text editor In-Reply-To: <551FAB12.5060607@gmail.com> References: <551FA55D.9010607@smknight.co.uk> <551FAB12.5060607@gmail.com> Message-ID: <08be3cbf81e9d91c43a74289403ebce5@livecode.com> On 2015-04-04 11:12, Richmond wrote: > Where the website refers to "Revolution" read 'LiveCode', where the > website refers to "Transcript" read whatever-the-heck the programming > language in LiveCode is currently called, if anything at all. If it helps, in the office we currently refer to the "traditional" LiveCode scripting language as "LiveCode Script" (a.k.a. LCS) and the new LC 8 compile language as "LiveCode Builder" (a.k.a. LCB). Peter P.S. A very happy Easter to you all, too. -- Dr Peter Brett LiveCode Engine Development Team From peter.brett at livecode.com Sun Apr 5 07:20:33 2015 From: peter.brett at livecode.com (Peter TB Brett) Date: Sun, 05 Apr 2015 13:20:33 +0200 Subject: Please recommend a text editor In-Reply-To: References: <551FA55D.9010607@smknight.co.uk> <551FAB12.5060607@gmail.com> Message-ID: On 2015-04-04 15:52, Shawn Beagle wrote: > I?ve used TextWrangler, TextEdit, WebStorm, Coda2, Sublime Text2 & 3, > Brackets, and now use Atom. I prefer Atom, mainly because of the > packets manager, and that it?s open source. I'm currently using Atom on OS X. On all other platforms I use GNU Emacs, the one editor to rule them all, the ultimate editor, the true choice of Real Programmers, etc. etc. I've even got a syntax highlighting mode for LiveCode Builder at https://github.com/runrev/livecode/blob/develop/contrib/emacs/livecode-mode.el, but it's a little out of date with the most recent changes to the LCB language. If you're interested in playing with it, please nag me to update it on Wednesday when I get back into the office. Peter -- Dr Peter Brett LiveCode Engine Development Team From dmilne at ihug.co.nz Sun Apr 5 07:35:16 2015 From: dmilne at ihug.co.nz (David Milne) Date: Sun, 5 Apr 2015 23:35:16 +1200 Subject: Please release me, let me go. (Richmond) Message-ID: Hi, In response to Richmond's post -Just to be awkward (for a change . . . no irony intended), if 6.7.4 is --built so that it will run on Windows XP [ a system released in 2001 ] why is it not built so that -it can run on -Mac OS 10.4 PPC [ a system released in 2005 ], or, for that matter, Mac -OS 10.4 Intel? -It is, also, interesting to note that the first alpha build of LC 8 is -also capable of running on Windows XP. -The reply will, inevitably, consist of stuff about market share . . . -which is probably due to a bad -case of not thinking one's way through a load of statistics. -The rationale behind dropping support for an out-dated operating system, -surely, should not -be based on the global installed base of that operating system, but the -globally installed base -of that operating system who use LiveCode for software development, and -the clients to whom -they sell/give their standalones for deployment. I think that you are being unfair to the LiveCode team. Windoze has many failings but one advantage it has over Apple, and it is an advantage of great merit. Windoze seeks to be backward compatible. Windows 95 applications will usually run just fine. Even windows 3 applications will run. Sometimes you will be prompted to download a discontinued windows library module, which is not difficult. If you had a favourite program on the windows platform from twenty years ago, you can usually continue to use the original files. I got into similar discussion about this recently when I answered someone's comment that "Zillions of Game" ( which plays about 2000 subscriber donated board game scripts) was dead because it had not been updated for over ten years. I explained that it runs just fine on windows 8. On their website you can still see new game scripts uploaded each week. I explained that Windoze was backward compatible. One of its few merits. I am not an Apple fanboy. I hate the rotating rainbow beachball of death on my mac mini with an intensity equal to my hate for the rotating annulus horribilis on my windoze pcs. I have a mac mini, iPad 2 and iPad 2 Air, and two windoze pcs and a Raspberry Pi as well as a cheap nondescript android tablet. I expect that you will find that an old version 2 of Revolution will run on windows 8. So please do not blame Runvrev. Windoze made a commitment to backward compatibility and Apple did not. Apple thought that it was too much of a bother. Give Windoze credit for one of the few things that it got right! Regards and raspberries :-) From david at viral.academy Sun Apr 5 07:39:17 2015 From: david at viral.academy (David Bovill) Date: Sun, 5 Apr 2015 12:39:17 +0100 Subject: LiveNode Server In-Reply-To: <5520B3A1.5050203@fourthworld.com> References: <5520B3A1.5050203@fourthworld.com> Message-ID: Ok - so the key sentance there is - "We can't fork in revolution". So what does that mean? What is so special about Livecode that it can't do this? It's not multi-threading - it's something.... ? My thinking is that what we need is to be able to have some existing monitoring service keep a pool of LiveNode servers up and running - in a way in which you can configure the number of servers you need. Then you need a Node load balancing server / broker thing passing off messages asynchronously to a LiveNode server and immediately returning control to the user. only when all the LiveNode servers were used up - would a cue kick into action? This is all standard server / inter-application messaging stuff no? What prevents us doing that in Livecode? On 5 April 2015 at 05:01, Richard Gaskin wrote: > David Bovill wrote: > > > I am not quite sure what not being forkable is here - can you > > explain. > > Not as well as Andre: > > > -- > Richard Gaskin > Fourth World Systems > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david.bovill at gmail.com Sun Apr 5 07:42:34 2015 From: david.bovill at gmail.com (David Bovill) Date: Sun, 5 Apr 2015 12:42:34 +0100 Subject: HTML5 Export and Javascript Message-ID: Anyone have any thoughts on how an HTML5+Javascript exported Livecode application would / could interface with the rest of the Javascript world? The exported Javascript would be obfuscated in machine optimised exported whatsits. So how would a Javascript programmer interface with this app? how would a Livecode developer make this easy for them? From lan.kc.macmail at gmail.com Sun Apr 5 08:12:05 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sun, 5 Apr 2015 20:12:05 +0800 Subject: Getting in a mix-up with COMn In-Reply-To: References: <551DA879.2030907@gmail.com> <551EAC25.5050004@gmail.com> Message-ID: On Sat, Apr 4, 2015 at 2:14 AM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > > 'end' is another unrelated keyword. > > try > > read from file "COM3:" until eof > I appreciate that Richmond may have is answer but if you are aware of something that is in contradiction to the official documentation it would good if you could post a Bug report. The Dictionary entry is quite clear about the syntax: read from {file pathName | stdin} [at start] {until {string | end | EOF | empty} | for amount [chunkType]} [in time] so: ... until string ... until end ... until EOF ... until empty are all listed as valid syntax. From richmondmathewson at gmail.com Sun Apr 5 09:14:01 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 05 Apr 2015 16:14:01 +0300 Subject: Please release me, let me go. (Richmond) In-Reply-To: References: Message-ID: <55213519.9050901@gmail.com> On 05/04/15 14:35, David Milne wrote: > Hi, > > In response to Richmond's post > > -Just to be awkward (for a change . . . no irony intended), if 6.7.4 is > --built so that it will run > on Windows XP [ a system released in 2001 ] why is it not built so that > -it can run on > -Mac OS 10.4 PPC [ a system released in 2005 ], or, for that matter, Mac > -OS 10.4 Intel? > > -It is, also, interesting to note that the first alpha build of LC 8 is > -also capable of running on Windows XP. > > -The reply will, inevitably, consist of stuff about market share . . . > -which is probably due to a bad > -case of not thinking one's way through a load of statistics. > > -The rationale behind dropping support for an out-dated operating system, > -surely, should not > -be based on the global installed base of that operating system, but the > -globally installed base > -of that operating system who use LiveCode for software development, and > -the clients to whom > -they sell/give their standalones for deployment. > > I think that you are being unfair to the LiveCode team. > Windoze has many failings but one advantage it has over Apple, and it is an > advantage of great merit. Windoze seeks to be backward compatible. > > Windows 95 applications will usually run just fine. Even windows 3 > applications will run. Sometimes you will be prompted to download a > discontinued windows library module, which is not difficult. > > If you had a favourite program on the windows platform from twenty years > ago, you can usually continue to use the original files. > > I got into similar discussion about this recently when I answered someone's > comment that "Zillions of Game" ( which plays about 2000 subscriber donated > board game scripts) was dead because it had not been updated for over ten > years. I explained that it runs just fine on windows 8. On their website > you can still see new game scripts uploaded each week. I explained that > Windoze was backward compatible. One of its few merits. > > I am not an Apple fanboy. I hate the rotating rainbow beachball of death on > my mac mini with an intensity equal to my hate for the rotating annulus > horribilis on my windoze pcs. I have a mac mini, iPad 2 and iPad 2 Air, and > two windoze pcs and a Raspberry Pi as well as a cheap nondescript android > tablet. > > I expect that you will find that an old version 2 of Revolution will run on > windows 8. > > So please do not blame Runvrev. Windoze made a commitment to backward > compatibility and Apple did not. Apple thought that it was too much of a > bother. > > Give Windoze credit for one of the few things that it got right! > > Regards and raspberries :-) > _______________________________________________ > I think the point about Windows's backward compatibility has already been made. Richmond. From roger.e.eller at sealedair.com Sun Apr 5 09:42:14 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 5 Apr 2015 09:42:14 -0400 Subject: HTML5 Export and Javascript In-Reply-To: References: Message-ID: I'm not sure if it will even be possible; it was certainly never their intent. The obfuscation is like a tamper-resistant seal on a medicine bottle. Nothing is hack-proof, but it won't be easy, unless LiveCode provides some special preference to leave certain sections of code "programmer readable" within the jibber-jabber. ~Roger On Apr 5, 2015 7:42 AM, "David Bovill" wrote: > Anyone have any thoughts on how an HTML5+Javascript exported Livecode > application would / could interface with the rest of the Javascript world? > > The exported Javascript would be obfuscated in machine optimised exported > whatsits. So how would a Javascript programmer interface with this app? how > would a Livecode developer make this easy for them? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sun Apr 5 11:12:18 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 05 Apr 2015 08:12:18 -0700 Subject: Please recommend a text editor In-Reply-To: <5520EED9.7060706@smknight.co.uk> References: <5520EED9.7060706@smknight.co.uk> Message-ID: <552150D2.5090102@fourthworld.com> Simon Knight wrote: > You raise some interesting and in some ways disturbing questions. Why > are we seemingly locked into an endless cycle of replacing working > equipment with new more expensive versions? Read Victor Papanek's "Design for the Real World". -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sun Apr 5 11:21:15 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 05 Apr 2015 08:21:15 -0700 Subject: LiveNode Server In-Reply-To: References: Message-ID: <552152EB.6070205@fourthworld.com> David Bovill wrote: > On 5 April 2015 at 05:01, Richard Gaskin wrote: > >> David Bovill wrote: >> > I am not quite sure what not being forkable is here - can you >> > explain. >> >> Not as well as Andre: >> > Ok - so the key sentance there is - "We can't fork in revolution". > So what does that mean? What is so special about Livecode that > it can't do this? > It's not multi-threading - it's something.... ? > > My thinking is that what we need is to be able to have some existing > monitoring service keep a pool of LiveNode servers up and running - > in a way in which you can configure the number of servers you need. > Then you need a Node load balancing server / broker thing passing off > messages asynchronously to a LiveNode server and immediately > returning control to the user. only when all the LiveNode servers > were used up - would a cue kick into action? > > This is all standard server / inter-application messaging stuff no? > What prevents us doing that in Livecode? As you read in Andre's post I linked to, that's more or less what he proposes as an alternative to FastCGI. If one is willing to put the time into assembling such a multi-processing pool, the downsides relative to having forking appear to be somewhat minor, not likely the sort of thing we'd run into south of the C10k problem. What have you run into in trying this that isn't working? -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sun Apr 5 11:29:51 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 05 Apr 2015 08:29:51 -0700 Subject: HTML5 Export and Javascript In-Reply-To: References: Message-ID: <552154EF.8090809@fourthworld.com> Roger Eller wrote: > vOn Apr 5, 2015 7:42 AM, "David Bovill" wrote: > >> Anyone have any thoughts on how an HTML5+Javascript exported Livecode >> application would / could interface with the rest of the Javascript >> world? > > I'm not sure if it will even be possible; it was certainly never their > intent. Why not? RevBrowser lets us integrate with JS; why not provide ways of letting JS integrate with LC inside the browser? It would seem horribly limited if everything LC/HTML delivered were effectively self-jailed, but I'd wager that's not the plan. On the desktop we have support for file I/O, AppleScript, Win Registry, shell, and many other means of communicating with the host system. I can't imagine we'd have anything less when the host system is a browser, and that would mean bi-directional JS. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Sun Apr 5 12:54:21 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 5 Apr 2015 09:54:21 -0700 Subject: Repeat syntax addition Message-ID: Wouldn't it be nice if you could: repeat for each line rLine in tLines where rLine begins with "xyz" . end repeat I know it's trivial to test the condition within the repeat loop but having "where" " seems more elegant somehow. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From richmondmathewson at gmail.com Sun Apr 5 13:06:55 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 05 Apr 2015 20:06:55 +0300 Subject: Repeat syntax addition In-Reply-To: References: Message-ID: <55216BAF.2060806@gmail.com> On 05/04/15 19:54, Peter Haworth wrote: > Wouldn't it be nice if you could: > > repeat for each line rLine in tLines where rLine begins with "xyz" > . > end repeat > > I know it's trivial to test the condition within the repeat loop but having > "where" " seems more elegant somehow. > > Pete > Certainly seems a good idea to me. Richmond. From paul at researchware.com Sun Apr 5 13:18:49 2015 From: paul at researchware.com (Paul Dupuis) Date: Sun, 05 Apr 2015 13:18:49 -0400 Subject: Repeat syntax addition In-Reply-To: References: Message-ID: <55216E79.6050508@researchware.com> On 4/5/2015 12:54 PM, Peter Haworth wrote: > Wouldn't it be nice if you could: > > repeat for each line rLine in tLines where rLine begins with "xyz" > . > end repeat > > I know it's trivial to test the condition within the repeat loop but having > "where" " seems more elegant somehow. Why not: filter lines of tLines with "xyz*" repeat for each line rLine in tLines . end repeat The suggested - where rLine begins with "xyz" - clause is 5 words. The - filter lines of tLines with "xyz*" - is also just 5 words Extending LiveCode's to do something you can already do in the language easier makes most sense if it save the developer significant keystrokes. From pete at lcsql.com Sun Apr 5 13:50:55 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 5 Apr 2015 10:50:55 -0700 Subject: Repeat syntax addition In-Reply-To: <55216E79.6050508@researchware.com> References: <55216E79.6050508@researchware.com> Message-ID: Because I might not want to eliminate the lines beginning with "xyz" from the list, just not process them within the repeat loop, there's a difference. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Apr 5, 2015 at 10:18 AM, Paul Dupuis wrote: > On 4/5/2015 12:54 PM, Peter Haworth wrote: > > Wouldn't it be nice if you could: > > > > repeat for each line rLine in tLines where rLine begins with "xyz" > > . > > end repeat > > > > I know it's trivial to test the condition within the repeat loop but > having > > "where" " seems more elegant somehow. > > Why not: > > filter lines of tLines with "xyz*" > repeat for each line rLine in tLines > . > end repeat > > The suggested - where rLine begins with "xyz" - clause is 5 words. The > - filter lines of tLines with "xyz*" - is also just 5 words > > Extending LiveCode's to do something you can already do in the language > easier makes most sense if it save the developer significant keystrokes. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Apr 5 14:17:51 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 5 Apr 2015 11:17:51 -0700 Subject: Stack style Message-ID: I'm trying to get a list of toplevel stacks from the openStacks list by checking the style of each stack. Some stacks which from their visual appearance are clearly palettes are reported with a style of toplevel. Anyone know why that is and how I can get a list of stacks which are genuinely toplevel? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From jacque at hyperactivesw.com Sun Apr 5 14:21:02 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 05 Apr 2015 13:21:02 -0500 Subject: Android local notifications In-Reply-To: References: <551E16B1.6030008@hyperactivesw.com> <31F33A9E-7BAC-49EA-8622-4F8CA038A7C0@sorcery-ltd.co.uk> <551ECA4E.2000106@hyperactivesw.com> Message-ID: <55217D0E.7050405@hyperactivesw.com> On 4/4/2015 12:08 AM, Bernard Devlin wrote: > I assume you are trying to send a push notification from one Livecode > app to another. Thanks for the info, Bernard. I'm not actually trying to send a notification to another app, the stack is more a reminder system. Notifications are generated by the same app the user must open when the alerts go off. That's why local notications are okay and we don't need to push from a server. But the info you sent is good and I'll keep it for future reference. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rdimola at evergreeninfo.net Sun Apr 5 15:03:50 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 5 Apr 2015 15:03:50 -0400 Subject: Repeat syntax addition In-Reply-To: References: Message-ID: <001001d06fd3$40dfb650$c29f22f0$@net> Wouldn't it be nice if you could: Repeat for each line tLine in tLines index tIndex End repeat Where tIndex goes from 1 to (in this case) the number of lines in tLines. With such an elegant repeat loop in LC it kills me to do a: Local tIndex put 1 into tIndex Repeat for each line tLine in tLines Add 1 to tIndex End repeat Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From bonnmike at gmail.com Sun Apr 5 15:31:04 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 5 Apr 2015 13:31:04 -0600 Subject: Repeat syntax addition In-Reply-To: <001001d06fd3$40dfb650$c29f22f0$@net> References: <001001d06fd3$40dfb650$c29f22f0$@net> Message-ID: While not exactly whats been requested, this works pretty well: repeat for each line tLine in (myFilter(sData,"abc*","with")) I like the way a where clause reads as in the OP, but being able to use an inline function for data generation is rather powerful, and if all you need is a filter, setting up a function to do so is pretty straight forward. On Sun, Apr 5, 2015 at 1:03 PM, Ralph DiMola wrote: > Wouldn't it be nice if you could: > > Repeat for each line tLine in tLines index tIndex > End repeat > > Where tIndex goes from 1 to (in this case) the number of lines in tLines. > With such an elegant repeat loop in LC it kills me to do a: > > > Local tIndex > put 1 into tIndex > Repeat for each line tLine in tLines > Add 1 to tIndex > End repeat > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Sun Apr 5 15:35:32 2015 From: klaus at major-k.de (Klaus major-k) Date: Sun, 5 Apr 2015 21:35:32 +0200 Subject: Stack style In-Reply-To: References: Message-ID: <53192E37-44BD-4685-A10B-BC506040B3BA@major-k.de> Hi Pete, > Am 05.04.2015 um 20:17 schrieb Peter Haworth : > > I'm trying to get a list of toplevel stacks from the openStacks list by > checking the style of each stack. Some stacks which from their visual > appearance are clearly palettes are reported with a style of toplevel. > > Anyone know why that is and how I can get a list of stacks which are > genuinely toplevel? you better check the MODE of these stacks, see the dictionary :-) A STYLE can be overridden when opening a stack as e.g. PALETTE although its style may actually be TOPLEVEL or something... > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From pete at lcsql.com Sun Apr 5 16:09:31 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 5 Apr 2015 13:09:31 -0700 Subject: Stack style In-Reply-To: <53192E37-44BD-4685-A10B-BC506040B3BA@major-k.de> References: <53192E37-44BD-4685-A10B-BC506040B3BA@major-k.de> Message-ID: Thanks Klaus, hadn't come across that before. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Apr 5, 2015 at 12:35 PM, Klaus major-k wrote: > Hi Pete, > > > Am 05.04.2015 um 20:17 schrieb Peter Haworth : > > > > I'm trying to get a list of toplevel stacks from the openStacks list by > > checking the style of each stack. Some stacks which from their visual > > appearance are clearly palettes are reported with a style of toplevel. > > > > Anyone know why that is and how I can get a list of stacks which are > > genuinely toplevel? > > you better check the MODE of these stacks, see the dictionary :-) > > A STYLE can be overridden when opening a stack as e.g. PALETTE > although its style may actually be TOPLEVEL or something... > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Apr 5 16:11:22 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 5 Apr 2015 13:11:22 -0700 Subject: Repeat syntax addition In-Reply-To: <001001d06fd3$40dfb650$c29f22f0$@net> References: <001001d06fd3$40dfb650$c29f22f0$@net> Message-ID: Nic Ralph. Useful where you don;t want to incur the overhead of repeat with but still need a counter. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Apr 5, 2015 at 12:03 PM, Ralph DiMola wrote: > Wouldn't it be nice if you could: > > Repeat for each line tLine in tLines index tIndex > End repeat > > Where tIndex goes from 1 to (in this case) the number of lines in tLines. > With such an elegant repeat loop in LC it kills me to do a: > > > Local tIndex > put 1 into tIndex > Repeat for each line tLine in tLines > Add 1 to tIndex > End repeat > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Apr 5 16:18:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 5 Apr 2015 13:18:41 -0700 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> Message-ID: Hi Mike, I like that. Are you saying you can do that now? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Apr 5, 2015 at 12:31 PM, Mike Bonner wrote: > While not exactly whats been requested, this works pretty well: > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > I like the way a where clause reads as in the OP, but being able to use an > inline function for data generation is rather powerful, and if all you need > is a filter, setting up a function to do so is pretty straight forward. > > On Sun, Apr 5, 2015 at 1:03 PM, Ralph DiMola > wrote: > > > Wouldn't it be nice if you could: > > > > Repeat for each line tLine in tLines index tIndex > > End repeat > > > > Where tIndex goes from 1 to (in this case) the number of lines in tLines. > > With such an elegant repeat loop in LC it kills me to do a: > > > > > > Local tIndex > > put 1 into tIndex > > Repeat for each line tLine in tLines > > Add 1 to tIndex > > End repeat > > > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Apr 5 16:24:35 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 5 Apr 2015 14:24:35 -0600 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> Message-ID: As long as you wrap your function in parens so that it forces evaluation first, then yeah. Have the function do your filter, and then return the filtered data. (not positive you even need the extra parens, but its a habit for me in cases like this.) repeat for each doesn't really care where the list comes from, so an inline function call is just fine. On Sun, Apr 5, 2015 at 2:18 PM, Peter Haworth wrote: > Hi Mike, > I like that. Are you saying you can do that now? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sun, Apr 5, 2015 at 12:31 PM, Mike Bonner wrote: > > > While not exactly whats been requested, this works pretty well: > > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > > > I like the way a where clause reads as in the OP, but being able to use > an > > inline function for data generation is rather powerful, and if all you > need > > is a filter, setting up a function to do so is pretty straight forward. > > > > On Sun, Apr 5, 2015 at 1:03 PM, Ralph DiMola > > wrote: > > > > > Wouldn't it be nice if you could: > > > > > > Repeat for each line tLine in tLines index tIndex > > > End repeat > > > > > > Where tIndex goes from 1 to (in this case) the number of lines in > tLines. > > > With such an elegant repeat loop in LC it kills me to do a: > > > > > > > > > Local tIndex > > > put 1 into tIndex > > > Repeat for each line tLine in tLines > > > Add 1 to tIndex > > > End repeat > > > > > > > > > Ralph DiMola > > > IT Director > > > Evergreen Information Services > > > rdimola at evergreeninfo.net > > > > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Sun Apr 5 16:32:56 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 05 Apr 2015 23:32:56 +0300 Subject: Stack style In-Reply-To: <53192E37-44BD-4685-A10B-BC506040B3BA@major-k.de> References: <53192E37-44BD-4685-A10B-BC506040B3BA@major-k.de> Message-ID: <55219BF8.30803@gmail.com> I just knocked together a stack "Non Sense" with 2 substacks; "Sub Stak" & "Rub Bish" ["Rub Bish" is palettised]. I then put a button on the main stack and a list field "OOT". The button has this script: on mouseUp put the mode of stack "Sub Stak" into line 1 of fld "OOT" put the mode of stack "Rub Bish" into line 2 of fld "OOT" end mouseUp clicking the button gives me: 1 4 Hot Patootie! Richmond. From pete at lcsql.com Sun Apr 5 16:40:16 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 5 Apr 2015 13:40:16 -0700 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> Message-ID: Wow, didn't know that, thanks. The dictionary doesn't give any clue that's possible, just uses "container" as what follows "in". Does that mean that anywhere the dictionary uses the word container, it can be a function call? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Apr 5, 2015 at 1:24 PM, Mike Bonner wrote: > As long as you wrap your function in parens so that it forces evaluation > first, then yeah. Have the function do your filter, and then return the > filtered data. (not positive you even need the extra parens, but its a > habit for me in cases like this.) > > repeat for each doesn't really care where the list comes from, so an inline > function call is just fine. > > On Sun, Apr 5, 2015 at 2:18 PM, Peter Haworth wrote: > > > Hi Mike, > > I like that. Are you saying you can do that now? > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Sun, Apr 5, 2015 at 12:31 PM, Mike Bonner wrote: > > > > > While not exactly whats been requested, this works pretty well: > > > > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > > > > > I like the way a where clause reads as in the OP, but being able to use > > an > > > inline function for data generation is rather powerful, and if all you > > need > > > is a filter, setting up a function to do so is pretty straight forward. > > > > > > On Sun, Apr 5, 2015 at 1:03 PM, Ralph DiMola < > rdimola at evergreeninfo.net> > > > wrote: > > > > > > > Wouldn't it be nice if you could: > > > > > > > > Repeat for each line tLine in tLines index tIndex > > > > End repeat > > > > > > > > Where tIndex goes from 1 to (in this case) the number of lines in > > tLines. > > > > With such an elegant repeat loop in LC it kills me to do a: > > > > > > > > > > > > Local tIndex > > > > put 1 into tIndex > > > > Repeat for each line tLine in tLines > > > > Add 1 to tIndex > > > > End repeat > > > > > > > > > > > > Ralph DiMola > > > > IT Director > > > > Evergreen Information Services > > > > rdimola at evergreeninfo.net > > > > > > > > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sun Apr 5 16:41:55 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 5 Apr 2015 14:41:55 -0600 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> Message-ID: Most likely yeah. I wouldn't swear 100% (I like to TRY first lol) but it SHOULD work. On Sun, Apr 5, 2015 at 2:40 PM, Peter Haworth wrote: > Wow, didn't know that, thanks. > > The dictionary doesn't give any clue that's possible, just uses "container" > as what follows "in". Does that mean that anywhere the dictionary uses the > word container, it can be a function call? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sun, Apr 5, 2015 at 1:24 PM, Mike Bonner wrote: > > > As long as you wrap your function in parens so that it forces evaluation > > first, then yeah. Have the function do your filter, and then return the > > filtered data. (not positive you even need the extra parens, but its a > > habit for me in cases like this.) > > > > repeat for each doesn't really care where the list comes from, so an > inline > > function call is just fine. > > > > On Sun, Apr 5, 2015 at 2:18 PM, Peter Haworth wrote: > > > > > Hi Mike, > > > I like that. Are you saying you can do that now? > > > > > > Pete > > > lcSQL Software > > > Home of lcStackBrowser and > > > SQLiteAdmin > > > > > > On Sun, Apr 5, 2015 at 12:31 PM, Mike Bonner > wrote: > > > > > > > While not exactly whats been requested, this works pretty well: > > > > > > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > > > > > > > I like the way a where clause reads as in the OP, but being able to > use > > > an > > > > inline function for data generation is rather powerful, and if all > you > > > need > > > > is a filter, setting up a function to do so is pretty straight > forward. > > > > > > > > On Sun, Apr 5, 2015 at 1:03 PM, Ralph DiMola < > > rdimola at evergreeninfo.net> > > > > wrote: > > > > > > > > > Wouldn't it be nice if you could: > > > > > > > > > > Repeat for each line tLine in tLines index tIndex > > > > > End repeat > > > > > > > > > > Where tIndex goes from 1 to (in this case) the number of lines in > > > tLines. > > > > > With such an elegant repeat loop in LC it kills me to do a: > > > > > > > > > > > > > > > Local tIndex > > > > > put 1 into tIndex > > > > > Repeat for each line tLine in tLines > > > > > Add 1 to tIndex > > > > > End repeat > > > > > > > > > > > > > > > Ralph DiMola > > > > > IT Director > > > > > Evergreen Information Services > > > > > rdimola at evergreeninfo.net > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jhj at jhj.com Sun Apr 5 17:21:14 2015 From: jhj at jhj.com (Jerry Jensen) Date: Sun, 5 Apr 2015 14:21:14 -0700 Subject: Please recommend a text editor In-Reply-To: References: <551FA55D.9010607@smknight.co.uk> <551FAB12.5060607@gmail.com> Message-ID: > On Apr 5, 2015, at 4:20 AM, Peter TB Brett wrote: > On all other platforms I use GNU Emacs, the one editor to rule them all, the ultimate editor, the true choice of Real Programmers, etc. etc. "I refuse to get involved in a theological argument." - Charlie Brown From bonnmike at gmail.com Sun Apr 5 17:52:39 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 5 Apr 2015 15:52:39 -0600 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> Message-ID: Actually, if the container is on the receiving end rather than the source end, it wouldn't work. But other than that, yeah. (obviously you can't "put" something into a function) There may be other exceptions I haven't though of. On Sun, Apr 5, 2015 at 2:41 PM, Mike Bonner wrote: > Most likely yeah. I wouldn't swear 100% (I like to TRY first lol) but it > SHOULD work. > > On Sun, Apr 5, 2015 at 2:40 PM, Peter Haworth wrote: > >> Wow, didn't know that, thanks. >> >> The dictionary doesn't give any clue that's possible, just uses >> "container" >> as what follows "in". Does that mean that anywhere the dictionary uses >> the >> word container, it can be a function call? >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Sun, Apr 5, 2015 at 1:24 PM, Mike Bonner wrote: >> >> > As long as you wrap your function in parens so that it forces evaluation >> > first, then yeah. Have the function do your filter, and then return the >> > filtered data. (not positive you even need the extra parens, but its a >> > habit for me in cases like this.) >> > >> > repeat for each doesn't really care where the list comes from, so an >> inline >> > function call is just fine. >> > >> > On Sun, Apr 5, 2015 at 2:18 PM, Peter Haworth wrote: >> > >> > > Hi Mike, >> > > I like that. Are you saying you can do that now? >> > > >> > > Pete >> > > lcSQL Software >> > > Home of lcStackBrowser and >> > > SQLiteAdmin >> > > >> > > On Sun, Apr 5, 2015 at 12:31 PM, Mike Bonner >> wrote: >> > > >> > > > While not exactly whats been requested, this works pretty well: >> > > > >> > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) >> > > > >> > > > I like the way a where clause reads as in the OP, but being able to >> use >> > > an >> > > > inline function for data generation is rather powerful, and if all >> you >> > > need >> > > > is a filter, setting up a function to do so is pretty straight >> forward. >> > > > >> > > > On Sun, Apr 5, 2015 at 1:03 PM, Ralph DiMola < >> > rdimola at evergreeninfo.net> >> > > > wrote: >> > > > >> > > > > Wouldn't it be nice if you could: >> > > > > >> > > > > Repeat for each line tLine in tLines index tIndex >> > > > > End repeat >> > > > > >> > > > > Where tIndex goes from 1 to (in this case) the number of lines in >> > > tLines. >> > > > > With such an elegant repeat loop in LC it kills me to do a: >> > > > > >> > > > > >> > > > > Local tIndex >> > > > > put 1 into tIndex >> > > > > Repeat for each line tLine in tLines >> > > > > Add 1 to tIndex >> > > > > End repeat >> > > > > >> > > > > >> > > > > Ralph DiMola >> > > > > IT Director >> > > > > Evergreen Information Services >> > > > > rdimola at evergreeninfo.net >> > > > > >> > > > > >> > > > > >> > > > > _______________________________________________ >> > > > > use-livecode mailing list >> > > > > use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From jhj at jhj.com Sun Apr 5 18:19:55 2015 From: jhj at jhj.com (Jerry Jensen) Date: Sun, 5 Apr 2015 15:19:55 -0700 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> Message-ID: <903EBC0E-EB3D-4199-8012-E52B01F59CF4@jhj.com> Hi Mike, > On Apr 5, 2015, at 12:31 PM, Mike Bonner wrote: > > While not exactly whats been requested, this works pretty well: > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > I like the way a where clause reads as in the OP, but being able to use an > inline function for data generation is rather powerful, and if all you need > is a filter, setting up a function to do so is pretty straight forward. Good trick! I didn't know you could do that either. I wondered if the function was called just once, or on every repeat. Your exapmle wouldn't tell, because the function would return the same stuff every time. So I tested it. The answer is that the function is called only once. Good! global gCount on mouseUp global gCount put 0 into gCount repeat for each line L in mylines() put L & cr after msg end repeat put gCount after msg -- how many times mulines() was called end mouseUp" function mylines global gCount add 1 to gCount return "1" & cr & "2" & cr & "3" & cr end mylines From bonnmike at gmail.com Sun Apr 5 18:40:51 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 5 Apr 2015 16:40:51 -0600 Subject: Repeat syntax addition In-Reply-To: <903EBC0E-EB3D-4199-8012-E52B01F59CF4@jhj.com> References: <001001d06fd3$40dfb650$c29f22f0$@net> <903EBC0E-EB3D-4199-8012-E52B01F59CF4@jhj.com> Message-ID: Yeah, kinda makes sense that it would work that way. Grab the data from the container once, do magic things behind the scenes to get it ready to go, then loop through the lines. I guess it could work either way though, where it uses byte offsets to get the next chunk, which would have made the function method really suck for large data sets. Now I'm curious.. what exactly does repeat for each do? Split on cr, sort the keys and increment each loop to pop out the right line from the array? Store all the data in a temp variable and read each line (item, char) by start/end position? On Sun, Apr 5, 2015 at 4:19 PM, Jerry Jensen wrote: > Hi Mike, > > > On Apr 5, 2015, at 12:31 PM, Mike Bonner wrote: > > > > While not exactly whats been requested, this works pretty well: > > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > > > I like the way a where clause reads as in the OP, but being able to use > an > > inline function for data generation is rather powerful, and if all you > need > > is a filter, setting up a function to do so is pretty straight forward. > > Good trick! I didn't know you could do that either. > > I wondered if the function was called just once, or on every repeat. Your > exapmle wouldn't tell, because the function would return the same stuff > every time. > > So I tested it. The answer is that the function is called only once. Good! > > global gCount > > on mouseUp > global gCount > put 0 into gCount > repeat for each line L in mylines() > put L & cr after msg > end repeat > put gCount after msg -- how many times mulines() was called > end mouseUp" > > function mylines > global gCount > add 1 to gCount > return "1" & cr & "2" & cr & "3" & cr > end mylines > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Apr 5 19:11:25 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 5 Apr 2015 16:11:25 -0700 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> <903EBC0E-EB3D-4199-8012-E52B01F59CF4@jhj.com> Message-ID: I'd guess the last of the options. The more I think about this, the more I think there should be mention of this in the dictionary entry for repeat. It's a little like the ability to use a function to create a sortkey in the sort command. Nothing in the dictionary about that except for a user note. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Apr 5, 2015 at 3:40 PM, Mike Bonner wrote: > Yeah, kinda makes sense that it would work that way. Grab the data from the > container once, do magic things behind the scenes to get it ready to go, > then loop through the lines. I guess it could work either way though, > where it uses byte offsets to get the next chunk, which would have made the > function method really suck for large data sets. > > Now I'm curious.. what exactly does repeat for each do? Split on cr, sort > the keys and increment each loop to pop out the right line from the array? > Store all the data in a temp variable and read each line (item, char) by > start/end position? > > On Sun, Apr 5, 2015 at 4:19 PM, Jerry Jensen wrote: > > > Hi Mike, > > > > > On Apr 5, 2015, at 12:31 PM, Mike Bonner wrote: > > > > > > While not exactly whats been requested, this works pretty well: > > > > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > > > > > I like the way a where clause reads as in the OP, but being able to use > > an > > > inline function for data generation is rather powerful, and if all you > > need > > > is a filter, setting up a function to do so is pretty straight forward. > > > > Good trick! I didn't know you could do that either. > > > > I wondered if the function was called just once, or on every repeat. Your > > exapmle wouldn't tell, because the function would return the same stuff > > every time. > > > > So I tested it. The answer is that the function is called only once. > Good! > > > > global gCount > > > > on mouseUp > > global gCount > > put 0 into gCount > > repeat for each line L in mylines() > > put L & cr after msg > > end repeat > > put gCount after msg -- how many times mulines() was called > > end mouseUp" > > > > function mylines > > global gCount > > add 1 to gCount > > return "1" & cr & "2" & cr & "3" & cr > > end mylines > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From roger.e.eller at sealedair.com Sun Apr 5 21:14:45 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 5 Apr 2015 21:14:45 -0400 Subject: HTML5 Export and Javascript In-Reply-To: <552154EF.8090809@fourthworld.com> References: <552154EF.8090809@fourthworld.com> Message-ID: I don't know why not, Richard. I was only replying to the OP with the last thing I heard about LC>html5, and that was way back when the crowd-funding campaign ended. It sounded like it was going to be limited, but that was very early in the planning phase. If there is now a way, then that is terrific! ~Roger On Apr 5, 2015 11:30 AM, "Richard Gaskin" wrote: > Roger Eller wrote: > > > vOn Apr 5, 2015 7:42 AM, "David Bovill" wrote: > > > >> Anyone have any thoughts on how an HTML5+Javascript exported Livecode > >> application would / could interface with the rest of the Javascript > >> world? > > > > I'm not sure if it will even be possible; it was certainly never their > > intent. > > Why not? > > RevBrowser lets us integrate with JS; why not provide ways of letting JS > integrate with LC inside the browser? > > It would seem horribly limited if everything LC/HTML delivered were > effectively self-jailed, but I'd wager that's not the plan. On the desktop > we have support for file I/O, AppleScript, Win Registry, shell, and many > other means of communicating with the host system. I can't imagine we'd > have anything less when the host system is a browser, and that would mean > bi-directional JS. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Sun Apr 5 21:17:59 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 5 Apr 2015 21:17:59 -0400 Subject: HTML5 Export and Javascript In-Reply-To: References: <552154EF.8090809@fourthworld.com> Message-ID: <650503B1-4F49-4EDD-9974-4524E5CF7F31@gmail.com> Not LC, but I?ve done some higher level tools exporting to HTML5 stuff already. What you end up with is going to be Javascript, and HTML DOM. The higher level tool needs to give access to the DOM, at which point you should be able to talk to any other Javascript on the page. From prothero at earthednet.org Sun Apr 5 21:30:51 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 5 Apr 2015 18:30:51 -0700 Subject: Getting update for mobGUI?? Message-ID: <127E3981-5872-4334-82D0-F3367430BCA6@earthednet.org> I?m looking around fro where I get an update for MobGUI. I have an older version and am starting to do some work with mobile, so need the latest version. Is it still alive and well? The mobGUI site takes me to the livecode site, then I get no listing for mobGUI. Best, Bill William A. Prothero http://es.earthednet.org/ From shawnblc at me.com Sun Apr 5 22:10:45 2015 From: shawnblc at me.com (Shawn Beagle) Date: Sun, 05 Apr 2015 21:10:45 -0500 Subject: HTML5 Export and Javascript In-Reply-To: <650503B1-4F49-4EDD-9974-4524E5CF7F31@gmail.com> References: <552154EF.8090809@fourthworld.com> <650503B1-4F49-4EDD-9974-4524E5CF7F31@gmail.com> Message-ID: <9ED0DAAB-1782-4B74-B33E-4094156F8B42@me.com> Bi-directional JS is already being done, even in production. I don?t know what the plans are or how it?ll work with LC, but if it?s anything like some of the solutions out there now that connect to a mongoldb painlessly and is reactive in both the client and the server ? it?ll be an awesome LC experience for all of us! At that point, I think LC will dominate the world ;) Think LC + HTML5 & JS = reactive in both the client and the server with no refreshing. > On Apr 5, 2015, at 20:17, Colin Holgate wrote: > > Not LC, but I?ve done some higher level tools exporting to HTML5 stuff already. What you end up with is going to be Javascript, and HTML DOM. The higher level tool needs to give access to the DOM, at which point you should be able to talk to any other Javascript on the page. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at sweattechnologies.com Sun Apr 5 22:11:34 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Mon, 6 Apr 2015 12:11:34 +1000 Subject: Getting update for mobGUI?? In-Reply-To: <127E3981-5872-4334-82D0-F3367430BCA6@earthednet.org> References: <127E3981-5872-4334-82D0-F3367430BCA6@earthednet.org> Message-ID: The third party marketplace is in a bit of a transition at the moment so it might be worth contacting John directly. Cheers Monte -- M E R Goulding Software development services mergExt - There's an external for that! > On 6 Apr 2015, at 11:30 am, William Prothero wrote: > > I?m looking around fro where I get an update for MobGUI. I have an older version and am starting to do some work with mobile, so need the latest version. > > Is it still alive and well? The mobGUI site takes me to the livecode site, then I get no listing for mobGUI. > > Best, > Bill > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Sun Apr 5 22:26:38 2015 From: gerry.orkin at gmail.com (Gerry) Date: Mon, 6 Apr 2015 12:26:38 +1000 Subject: Getting update for mobGUI?? In-Reply-To: <127E3981-5872-4334-82D0-F3367430BCA6@earthednet.org> References: <127E3981-5872-4334-82D0-F3367430BCA6@earthednet.org> Message-ID: <857413C1-42D2-4AD1-918E-19AA7E1108DB@gmail.com> > Is it still alive and well? The mobGUI site takes me to the livecode site, then I get no listing for mobGUI. I have 1.27 and 1.28 is the latest. mobgui.com still takes me to the site for the plugin. Gerry From prothero at earthednet.org Sun Apr 5 23:02:57 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 5 Apr 2015 20:02:57 -0700 Subject: Getting update for mobGUI?? In-Reply-To: <857413C1-42D2-4AD1-918E-19AA7E1108DB@gmail.com> References: <127E3981-5872-4334-82D0-F3367430BCA6@earthednet.org> <857413C1-42D2-4AD1-918E-19AA7E1108DB@gmail.com> Message-ID: <60FD29C5-F121-49E9-9CB4-E1ACD7456B1C@earthednet.org> Gerry: The Buy button takes me to the livecode store, but it doesn?t show up. I?ll see if I can get hold of John. Bill > On Apr 5, 2015, at 7:26 PM, Gerry wrote: > >> Is it still alive and well? The mobGUI site takes me to the livecode site, then I get no listing for mobGUI. > > I have 1.27 and 1.28 is the latest. mobgui.com still takes me to the site for the plugin. > > Gerry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Apr 5 23:21:16 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 5 Apr 2015 21:21:16 -0600 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> <903EBC0E-EB3D-4199-8012-E52B01F59CF4@jhj.com> Message-ID: Use of the word "Container" is a bit deceptive. Perhaps "datasource" would be better. Is it still possible to add notes to the dictionary? On Sun, Apr 5, 2015 at 5:11 PM, Peter Haworth wrote: > I'd guess the last of the options. > > The more I think about this, the more I think there should be mention of > this in the dictionary entry for repeat. > > It's a little like the ability to use a function to create a sortkey in the > sort command. Nothing in the dictionary about that except for a user note. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Sun, Apr 5, 2015 at 3:40 PM, Mike Bonner wrote: > > > Yeah, kinda makes sense that it would work that way. Grab the data from > the > > container once, do magic things behind the scenes to get it ready to go, > > then loop through the lines. I guess it could work either way though, > > where it uses byte offsets to get the next chunk, which would have made > the > > function method really suck for large data sets. > > > > Now I'm curious.. what exactly does repeat for each do? Split on cr, > sort > > the keys and increment each loop to pop out the right line from the > array? > > Store all the data in a temp variable and read each line (item, char) by > > start/end position? > > > > On Sun, Apr 5, 2015 at 4:19 PM, Jerry Jensen wrote: > > > > > Hi Mike, > > > > > > > On Apr 5, 2015, at 12:31 PM, Mike Bonner wrote: > > > > > > > > While not exactly whats been requested, this works pretty well: > > > > > > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > > > > > > > I like the way a where clause reads as in the OP, but being able to > use > > > an > > > > inline function for data generation is rather powerful, and if all > you > > > need > > > > is a filter, setting up a function to do so is pretty straight > forward. > > > > > > Good trick! I didn't know you could do that either. > > > > > > I wondered if the function was called just once, or on every repeat. > Your > > > exapmle wouldn't tell, because the function would return the same stuff > > > every time. > > > > > > So I tested it. The answer is that the function is called only once. > > Good! > > > > > > global gCount > > > > > > on mouseUp > > > global gCount > > > put 0 into gCount > > > repeat for each line L in mylines() > > > put L & cr after msg > > > end repeat > > > put gCount after msg -- how many times mulines() was called > > > end mouseUp" > > > > > > function mylines > > > global gCount > > > add 1 to gCount > > > return "1" & cr & "2" & cr & "3" & cr > > > end mylines > > > > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at viral.academy Mon Apr 6 06:21:58 2015 From: david at viral.academy (David Bovill) Date: Mon, 6 Apr 2015 11:21:58 +0100 Subject: HTML5 Export and Javascript In-Reply-To: <9ED0DAAB-1782-4B74-B33E-4094156F8B42@me.com> References: <552154EF.8090809@fourthworld.com> <650503B1-4F49-4EDD-9974-4524E5CF7F31@gmail.com> <9ED0DAAB-1782-4B74-B33E-4094156F8B42@me.com> Message-ID: Hi @Shawn - have you got any info / links with regard to "mongoldb painlessly and is reactive in both the client and the server"? That's the sort of thing I want to read up on... @Colin - do you know of examples the other way around - that is not the exported Javascript code accessing the DOM - but the exported Javascript code being called by simple Javascript commands that any Javascript coder can create? I'm thinking of how we might be able to create library like functionality. I know Scala can now also export to Javascript - so I'm guessing this is going down the same path. So examples in other languages could point us in the right direction of what is possible / what is being aimed at with the HTML5/Javascript export? On 6 April 2015 at 03:10, Shawn Beagle wrote: > Bi-directional JS is already being done, even in production. I don?t know > what the plans are or how it?ll work with LC, but if it?s anything like > some of the solutions out there now that connect to a mongoldb painlessly > and is reactive in both the client and the server ? it?ll be an awesome LC > experience for all of us! At that point, I think LC will dominate the > world ;) > > Think LC + HTML5 & JS = reactive in both the client and the server with no > refreshing. > > > > > > > On Apr 5, 2015, at 20:17, Colin Holgate wrote: > > > > Not LC, but I?ve done some higher level tools exporting to HTML5 stuff > already. What you end up with is going to be Javascript, and HTML DOM. The > higher level tool needs to give access to the DOM, at which point you > should be able to talk to any other Javascript on the page. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sritcp at gmail.com Mon Apr 6 09:52:43 2015 From: sritcp at gmail.com (Sri) Date: Mon, 6 Apr 2015 06:52:43 -0700 (PDT) Subject: Repeat syntax addition In-Reply-To: References: Message-ID: <1428328363976-4690880.post@n4.nabble.com> Peter Haworth wrote > Wouldn't it be nice if you could: > > repeat for each line rLine in tLines where rLine begins with "xyz" > . > end repeat It would be even nicer if we could have the more general form repeat for each line rLine in tLines [/condition/] [/transformation/] ... end repeat where [condition] is an optional condition that returns a boolean, and [transformation] operates on the line to transform it. Thus, it could be useful as a filter, universal transformer, or conditional transformer. Regards, Sri. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Repeat-syntax-addition-tp4690850p4690880.html Sent from the Revolution - User mailing list archive at Nabble.com. From simon at smknight.co.uk Mon Apr 6 10:38:35 2015 From: simon at smknight.co.uk (Simon Knight) Date: Mon, 06 Apr 2015 15:38:35 +0100 Subject: Please recommend a text editor In-Reply-To: <552150D2.5090102@fourthworld.com> References: <5520EED9.7060706@smknight.co.uk> <552150D2.5090102@fourthworld.com> Message-ID: <55229A6B.1000204@smknight.co.uk> WILCO! ordered from ABE books for 67p On 05/04/2015 16:12, Richard Gaskin wrote: > Simon Knight wrote: > >> You raise some interesting and in some ways disturbing questions. Why >> are we seemingly locked into an endless cycle of replacing working >> equipment with new more expensive versions? > > Read Victor Papanek's "Design for the Real World". > From shawnblc at me.com Mon Apr 6 11:34:03 2015 From: shawnblc at me.com (Shawn Beagle) Date: Mon, 06 Apr 2015 10:34:03 -0500 Subject: HTML5 Export and Javascript In-Reply-To: References: <552154EF.8090809@fourthworld.com> <650503B1-4F49-4EDD-9974-4524E5CF7F31@gmail.com> <9ED0DAAB-1782-4B74-B33E-4094156F8B42@me.com> Message-ID: <32CDE9DB-2F60-4F30-B786-CD3053550606@me.com> @David - check out the following youtube videos. Video: https://www.youtube.com/watch?v=b4U2MaZSuXg , https://www.youtube.com/watch?v=9i3CCy3NpYM and https://www.youtube.com/watch?v=OXwnvkE5t_Y Next, check out www.meteor.com (it?s open source). According to the LC campaign: JavaScript Bridge ? We?ll create a fully featured bridge between LC and JavaScript, to allow seamless bi-directional communication between LiveCode in the browser and any other JavaScript features you?re using on your site. This will greatly help integrate the LiveCode experience with your existing content, allowing your LiveCode app to affect the rest of your content and vice-versa. That being said, I don?t see why we wouldn?t be able to incorporate LC into other javascript technologies. My javascript skills are rather poor, so if LC can > On Apr 6, 2015, at 05:21, David Bovill wrote: > > Hi @Shawn - have you got any info / links with regard to "mongoldb > painlessly and is reactive in both the client and the server"? That's the > sort of thing I want to read up on... > > @Colin - do you know of examples the other way around - that is not the > exported Javascript code accessing the DOM - but the exported Javascript > code being called by simple Javascript commands that any Javascript coder > can create? I'm thinking of how we might be able to create library like > functionality. > > I know Scala can now also export to Javascript - so I'm guessing this is > going down the same path. So examples in other languages could point us in > the right direction of what is possible / what is being aimed at with the > HTML5/Javascript export? > > > On 6 April 2015 at 03:10, Shawn Beagle wrote: > >> Bi-directional JS is already being done, even in production. I don?t know >> what the plans are or how it?ll work with LC, but if it?s anything like >> some of the solutions out there now that connect to a mongoldb painlessly >> and is reactive in both the client and the server ? it?ll be an awesome LC >> experience for all of us! At that point, I think LC will dominate the >> world ;) >> >> Think LC + HTML5 & JS = reactive in both the client and the server with no >> refreshing. >> >> >> >> >> >>> On Apr 5, 2015, at 20:17, Colin Holgate wrote: >>> >>> Not LC, but I?ve done some higher level tools exporting to HTML5 stuff >> already. What you end up with is going to be Javascript, and HTML DOM. The >> higher level tool needs to give access to the DOM, at which point you >> should be able to talk to any other Javascript on the page. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Mon Apr 6 11:56:39 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 6 Apr 2015 08:56:39 -0700 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> <903EBC0E-EB3D-4199-8012-E52B01F59CF4@jhj.com> Message-ID: I gave up trying to add dictionary notes a while ago since it never worked, not sure what the current status is. I guess there's a completely new dictionary in LC8 but for now, I have my own plugin that gives me the ability to add my own notes to any dictionary entry. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Apr 5, 2015 at 8:21 PM, Mike Bonner wrote: > Use of the word "Container" is a bit deceptive. Perhaps "datasource" would > be better. Is it still possible to add notes to the dictionary? > > On Sun, Apr 5, 2015 at 5:11 PM, Peter Haworth wrote: > > > I'd guess the last of the options. > > > > The more I think about this, the more I think there should be mention of > > this in the dictionary entry for repeat. > > > > It's a little like the ability to use a function to create a sortkey in > the > > sort command. Nothing in the dictionary about that except for a user > note. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Sun, Apr 5, 2015 at 3:40 PM, Mike Bonner wrote: > > > > > Yeah, kinda makes sense that it would work that way. Grab the data from > > the > > > container once, do magic things behind the scenes to get it ready to > go, > > > then loop through the lines. I guess it could work either way though, > > > where it uses byte offsets to get the next chunk, which would have made > > the > > > function method really suck for large data sets. > > > > > > Now I'm curious.. what exactly does repeat for each do? Split on cr, > > sort > > > the keys and increment each loop to pop out the right line from the > > array? > > > Store all the data in a temp variable and read each line (item, char) > by > > > start/end position? > > > > > > On Sun, Apr 5, 2015 at 4:19 PM, Jerry Jensen wrote: > > > > > > > Hi Mike, > > > > > > > > > On Apr 5, 2015, at 12:31 PM, Mike Bonner > wrote: > > > > > > > > > > While not exactly whats been requested, this works pretty well: > > > > > > > > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > > > > > > > > > I like the way a where clause reads as in the OP, but being able to > > use > > > > an > > > > > inline function for data generation is rather powerful, and if all > > you > > > > need > > > > > is a filter, setting up a function to do so is pretty straight > > forward. > > > > > > > > Good trick! I didn't know you could do that either. > > > > > > > > I wondered if the function was called just once, or on every repeat. > > Your > > > > exapmle wouldn't tell, because the function would return the same > stuff > > > > every time. > > > > > > > > So I tested it. The answer is that the function is called only once. > > > Good! > > > > > > > > global gCount > > > > > > > > on mouseUp > > > > global gCount > > > > put 0 into gCount > > > > repeat for each line L in mylines() > > > > put L & cr after msg > > > > end repeat > > > > put gCount after msg -- how many times mulines() was called > > > > end mouseUp" > > > > > > > > function mylines > > > > global gCount > > > > add 1 to gCount > > > > return "1" & cr & "2" & cr & "3" & cr > > > > end mylines > > > > > > > > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at viral.academy Mon Apr 6 14:59:06 2015 From: david at viral.academy (David Bovill) Date: Mon, 6 Apr 2015 19:59:06 +0100 Subject: HTML5 Export and Javascript In-Reply-To: <32CDE9DB-2F60-4F30-B786-CD3053550606@me.com> References: <552154EF.8090809@fourthworld.com> <650503B1-4F49-4EDD-9974-4524E5CF7F31@gmail.com> <9ED0DAAB-1782-4B74-B33E-4094156F8B42@me.com> <32CDE9DB-2F60-4F30-B786-CD3053550606@me.com> Message-ID: Thanks for that. Now while we are waiting how about getting Licecode to work with Node on Digital Ocean? Anyone want to play? On Monday, April 6, 2015, Shawn Beagle wrote: > @David - check out the following youtube videos. Video: What is Meteor > < > https://www.youtube.com/watch?v=b4U2MaZSuXg> , #1 Building a Database > application with Meteor JS < > https://www.youtube.com/watch?v=9i3CCy3NpYM> and Meteor.js: Killing > Dinosaurs with JavaScript < > https://www.youtube.com/watch?v=OXwnvkE5t_Y> > > Next, check out www.meteor.com (it?s open > source). > > According to the LC campaign: > > JavaScript Bridge ? We?ll create a fully featured bridge between LC and > JavaScript, to allow seamless bi-directional communication between LiveCode > in the browser and any other JavaScript features you?re using on your site. > This will greatly help integrate the LiveCode experience with your existing > content, allowing your LiveCode app to affect the rest of your content and > vice-versa. > > That being said, I don?t see why we wouldn?t be able to incorporate LC > into other javascript technologies. > > > > My javascript skills are rather poor, so if LC can > > On Apr 6, 2015, at 05:21, David Bovill wrote: > > > > Hi @Shawn - have you got any info / links with regard to "mongoldb > > painlessly and is reactive in both the client and the server"? That's the > > sort of thing I want to read up on... > > > > @Colin - do you know of examples the other way around - that is not the > > exported Javascript code accessing the DOM - but the exported Javascript > > code being called by simple Javascript commands that any Javascript coder > > can create? I'm thinking of how we might be able to create library like > > functionality. > > > > I know Scala can now also export to Javascript - so I'm guessing this is > > going down the same path. So examples in other languages could point us > in > > the right direction of what is possible / what is being aimed at with the > > HTML5/Javascript export? > > > > > > On 6 April 2015 at 03:10, Shawn Beagle > > wrote: > > > >> Bi-directional JS is already being done, even in production. I don?t > know > >> what the plans are or how it?ll work with LC, but if it?s anything like > >> some of the solutions out there now that connect to a mongoldb > painlessly > >> and is reactive in both the client and the server ? it?ll be an awesome > LC > >> experience for all of us! At that point, I think LC will dominate the > >> world ;) > >> > >> Think LC + HTML5 & JS = reactive in both the client and the server with > no > >> refreshing. > >> > >> > >> > >> > >> > >>> On Apr 5, 2015, at 20:17, Colin Holgate > wrote: > >>> > >>> Not LC, but I?ve done some higher level tools exporting to HTML5 stuff > >> already. What you end up with is going to be Javascript, and HTML DOM. > The > >> higher level tool needs to give access to the DOM, at which point you > >> should be able to talk to any other Javascript on the page. > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stgoldberg at aol.com Mon Apr 6 17:32:47 2015 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Mon, 6 Apr 2015 17:32:47 -0400 Subject: Only half a field prints with LC 7 on Windows Vista Message-ID: <14c90a66877-6e16-372fc@webprd-m67.mail.aol.com> I'm working with LC 7 on Windows Vista. I notice that when trying to print a field, whether through the menubar or by script, only the left half of the field prints. I'm not sure if this is a bug, or if I'm just doing something wrong. I could not find reference to this in quality.runrev.com. Any suggestions? Thanks, Stephen Goldberg www.medmaster.net From andrew at ctech.me Mon Apr 6 18:32:13 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Mon, 06 Apr 2015 22:32:13 +0000 Subject: LiveNode Server In-Reply-To: <552152EB.6070205@fourthworld.com> References: <552152EB.6070205@fourthworld.com> Message-ID: I think the real missing piece in making LC work like node's event loop would be anonymous callback functions that can be treated like other variables. We can do semi- async stuff using messages in LC but you'd have to either name separate callback functions or dynamically pass the names of separately defined callback functions. We've got no way to pass an anonymous function as a param to something like you can with js. On Sun, Apr 5, 2015, 10:21 AM Richard Gaskin wrote: > David Bovill wrote: > > > On 5 April 2015 at 05:01, Richard Gaskin wrote: > > > >> David Bovill wrote: > >> > I am not quite sure what not being forkable is here - can you > >> > explain. > >> > >> Not as well as Andre: > >> > > > > > Ok - so the key sentance there is - "We can't fork in revolution". > > So what does that mean? What is so special about Livecode that > > it can't do this? > > It's not multi-threading - it's something.... ? > > > > My thinking is that what we need is to be able to have some existing > > monitoring service keep a pool of LiveNode servers up and running - > > in a way in which you can configure the number of servers you need. > > Then you need a Node load balancing server / broker thing passing off > > messages asynchronously to a LiveNode server and immediately > > returning control to the user. only when all the LiveNode servers > > were used up - would a cue kick into action? > > > > This is all standard server / inter-application messaging stuff no? > > What prevents us doing that in Livecode? > > As you read in Andre's post I linked to, that's more or less what he > proposes as an alternative to FastCGI. > > If one is willing to put the time into assembling such a > multi-processing pool, the downsides relative to having forking appear > to be somewhat minor, not likely the sort of thing we'd run into south > of the C10k problem. > > What have you run into in trying this that isn't working? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for Desktop, Mobile, and Web > ____________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bogdanoff at me.com Mon Apr 6 19:42:40 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 06 Apr 2015 16:42:40 -0700 Subject: Current Player Bugs in LC 7 Message-ID: <6BAEC3DD-E39B-4E6E-8771-587A9321930A@me.com> There?s a number of player bugs in LC 7 in the QC center that are unresolved. I?m working on a large project that needs 7 because of its Unicode Chinese text and also makes heavy use of what were QuickTime?s superb player abilities. The transition to the AV Foundation-based player has been painful and inexplicably incomplete. The lack of fixes of some of these bugs is really throwing my project off schedule to be released in time for the coming academic year. One that I submitted, 14921?Player becomes unresponsive with changing cards in a background, has a status of ?Awaiting Build.? I see that others are listed as ?Confirmed.? The latest build, 7.0.4, per its notes doesn?t seem to address these bugs. Is there some sort of timeline for resolution of these bugs???? Peter Bogdanoff UCLA From david at viral.academy Tue Apr 7 02:58:06 2015 From: david at viral.academy (David Bovill) Date: Tue, 7 Apr 2015 07:58:06 +0100 Subject: LiveNode Server In-Reply-To: References: <552152EB.6070205@fourthworld.com> Message-ID: OK. A few questions... I'll post them as assertions to aid clarity. There may well be mistakes - so please let me an others know if there is anything wrong below: 1. Livecode messaging is fully asynchronous. Not semi-async. 2. There are a bunch of functions that are currently synchronous in LiveCode that make it difficult to create asynchronous code - such as certain network call like POST. 3. Livecode does not have closures = passing anonymous callbacks as params to functions so they can be executed later 4. But we can easily call / dispatch calls to functions by passing names around and we can limit scope by using private handlers or libraries. Here is an article about why you should not use anonymous callbacks that seems interesting in the context of readabiity and literate programming languages: * Avoiding anonymous JavaScript functions http://toddmotto.com/avoiding-anonymous-javascript-functions/ @Andrew thanks for your feedback, but as I,ve not used closures in real work I can't see how the lack f them stops us creating an async event driven callback model for a server? On Monday, April 6, 2015, Andrew Kluthe wrote: > I think the real missing piece in making LC work like node's event loop > would be anonymous callback functions that can be treated like other > variables. We can do semi- async stuff using messages in LC but you'd have > to either name separate callback functions or dynamically pass the names of > separately defined callback functions. We've got no way to pass an > anonymous function as a param to something like you can with js. > > On Sun, Apr 5, 2015, 10:21 AM Richard Gaskin > > wrote: > > > David Bovill wrote: > > > > > On 5 April 2015 at 05:01, Richard Gaskin wrote: > > > > > >> David Bovill wrote: > > >> > I am not quite sure what not being forkable is here - can you > > >> > explain. > > >> > > >> Not as well as Andre: > > >> > > > > > > > > > > Ok - so the key sentance there is - "We can't fork in revolution". > > > So what does that mean? What is so special about Livecode that > > > it can't do this? > > > It's not multi-threading - it's something.... ? > > > > > > My thinking is that what we need is to be able to have some existing > > > monitoring service keep a pool of LiveNode servers up and running - > > > in a way in which you can configure the number of servers you need. > > > Then you need a Node load balancing server / broker thing passing off > > > messages asynchronously to a LiveNode server and immediately > > > returning control to the user. only when all the LiveNode servers > > > were used up - would a cue kick into action? > > > > > > This is all standard server / inter-application messaging stuff no? > > > What prevents us doing that in Livecode? > > > > As you read in Andre's post I linked to, that's more or less what he > > proposes as an alternative to FastCGI. > > > > If one is willing to put the time into assembling such a > > multi-processing pool, the downsides relative to having forking appear > > to be somewhat minor, not likely the sort of thing we'd run into south > > of the C10k problem. > > > > What have you run into in trying this that isn't working? > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for Desktop, Mobile, and Web > > ____________________________________________________________ > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Tue Apr 7 05:48:59 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 7 Apr 2015 17:48:59 +0800 Subject: [BUG] revDeleteFolder Message-ID: The Dictionary says: On Mac OS and OS X Systems, the revDeleteFolder command places the folder in the Trash. I'm not seeing that. PPC 10.5.8 LC 6.6.5 - it's gone, the Trash is empty. Intel 10.9.5 LC 7.0.4 rc3 - as above The Dictionary says that revDeleteFolder hasn't changed since version 1.1.1, so I can't imagine this has been noticed before but before I go and enter a Bug report I just wanted to check other people are seeing the same and that I'm not doing something silly. On a slight tangent, I thought there was a specialFolderPath("Trash"), but not so. How do I move a folder to the Trash of an external HD on OS X? From lan.kc.macmail at gmail.com Tue Apr 7 06:15:50 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 7 Apr 2015 18:15:50 +0800 Subject: [BUG] revDeleteFolder In-Reply-To: References: Message-ID: On Tue, Apr 7, 2015 at 5:48 PM, Kay C Lan wrote: > > On a slight tangent, I thought there was a specialFolderPath("Trash"), but > not so. How do I move a folder to the Trash of an external HD on OS X? > The late great Eric Chatonet was able to help here (from of List Post a long time ago): rename folder to specialFolderPath("empt") & "/" & "" empt ? empty, maybe... Trash would have been logical,... but empt... Maybe I should suggest specialFolderPath("Trash"). From lan.kc.macmail at gmail.com Tue Apr 7 06:54:46 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 7 Apr 2015 18:54:46 +0800 Subject: [BUG] revDeleteFolder In-Reply-To: References: Message-ID: On Tue, Apr 7, 2015 at 6:15 PM, Kay C Lan wrote: > > rename folder to specialFolderPath("empt") & "/" & > "" > > Only works for Trashing folders/files on the start up disk. Still need to figure out how to Trash files/folders on an external HD. Any help appreciated. From paul at researchware.com Tue Apr 7 07:11:31 2015 From: paul at researchware.com (Paul Dupuis) Date: Tue, 07 Apr 2015 07:11:31 -0400 Subject: [BUG] revDeleteFolder In-Reply-To: References: Message-ID: <5523BB63.3070001@researchware.com> On 4/7/2015 6:54 AM, Kay C Lan wrote: > On Tue, Apr 7, 2015 at 6:15 PM, Kay C Lan wrote: > >> rename folder to specialFolderPath("empt") & "/" & >> "" >> >> Only works for Trashing folders/files on the start up disk. Still need to > figure out how to Trash files/folders on an external HD. Any help > appreciated. Use revCopyFolder (see dictionary) to copy the folder to be trashed to specialFolderPath("empt") & "/" & tFolderName and then use revDeleteFolder to remove the original folder from the external HD. From lan.kc.macmail at gmail.com Tue Apr 7 07:15:51 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 7 Apr 2015 19:15:51 +0800 Subject: [BUG] revDeleteFolder In-Reply-To: References: Message-ID: On Tue, Apr 7, 2015 at 6:54 PM, Kay C Lan wrote: > Still need to figure out how to Trash files/folders on an external HD. > OK, so External Trash folders are located here: /Volumes//.Trashes/504 So if you have the full pathname to a folder that you want to move to the Trash put into tPath set the itemDelimiter to "/" rename folder tPath to item 1 to 3 of tPath & "/.Trashes/504/" & item -1 of tPath Hope it helps someone else. From lan.kc.macmail at gmail.com Tue Apr 7 07:33:47 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 7 Apr 2015 19:33:47 +0800 Subject: [BUG] revDeleteFolder In-Reply-To: <5523BB63.3070001@researchware.com> References: <5523BB63.3070001@researchware.com> Message-ID: Thanks Paul, I like your thinking. Unfortunately that isn't going to work in this case. My Internal HD is overflowing and the last thing I need to do is copy a couple of dozen large (>6 GB) folders across. I'm scripting (for self use) a little utility to search a couple of my backup HDs to see if I've got quadruplicates of anything and if so, to Trash one copy. I want to Trash so I can do one last double check before I empty it. Then I should be able to Trash some of my old large project folders off my internal HD knowing that I've got multiple copies elsewhere. Yes I know HDs are cheap, but not so SSDs, but still I need to buy a bigger one, but I need the free space NOW! Thankfully I've figured it out. Can you comment on revDeleteFolder, is that instantly nuking for you? On Tue, Apr 7, 2015 at 7:11 PM, Paul Dupuis wrote: > On 4/7/2015 6:54 AM, Kay C Lan wrote: > > On Tue, Apr 7, 2015 at 6:15 PM, Kay C Lan > wrote: > > > >> rename folder to specialFolderPath("empt") & "/" & > >> "" > >> > >> Only works for Trashing folders/files on the start up disk. Still need > to > > figure out how to Trash files/folders on an external HD. Any help > > appreciated. > > Use revCopyFolder (see dictionary) to copy the folder to be trashed to > specialFolderPath("empt") & "/" & tFolderName and then use > revDeleteFolder to remove the original folder from the external HD. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From benr_mc at cogapp.com Tue Apr 7 10:24:53 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 07 Apr 2015 15:24:53 +0100 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> <903EBC0E-EB3D-4199-8012-E52B01F59CF4@jhj.com> Message-ID: <5523E8B5.5060002@cogapp.com> (Going back to HyperCard?) the concepts used to be containers and "sources of value" - where the latter can be a literal, a function call, an expression... I always thought that containers were a subset of sources of value, defined as the items where you could set the value as well as get it; but looking at the current LiveCode user guide I see that these are used as exclusive sets, where the key distinction is not whether the item can be both evaluated and changed, but whether it can be changed using "put". So a field is a container, just as a variable is; but a property is a "source of value" because you need to use the "set" syntax to change it, so it's grouped with a constant literal or an expression, which is read-only. This seems wrong to me, and I don't know whether it marks a subtle change. At any rate, the desirable change in the dictionary would be to replace "container" with "container or source of value" - better not to introduce a new term altogether! Ben On 06/04/2015 04:21, Mike Bonner wrote: > Use of the word "Container" is a bit deceptive. Perhaps "datasource" would > be better. Is it still possible to add notes to the dictionary? > > On Sun, Apr 5, 2015 at 5:11 PM, Peter Haworth wrote: > >> I'd guess the last of the options. >> >> The more I think about this, the more I think there should be mention of >> this in the dictionary entry for repeat. >> >> It's a little like the ability to use a function to create a sortkey in the >> sort command. Nothing in the dictionary about that except for a user note. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Sun, Apr 5, 2015 at 3:40 PM, Mike Bonner wrote: >> >>> Yeah, kinda makes sense that it would work that way. Grab the data from >> the >>> container once, do magic things behind the scenes to get it ready to go, >>> then loop through the lines. I guess it could work either way though, >>> where it uses byte offsets to get the next chunk, which would have made >> the >>> function method really suck for large data sets. >>> >>> Now I'm curious.. what exactly does repeat for each do? Split on cr, >> sort >>> the keys and increment each loop to pop out the right line from the >> array? >>> Store all the data in a temp variable and read each line (item, char) by >>> start/end position? >>> >>> On Sun, Apr 5, 2015 at 4:19 PM, Jerry Jensen wrote: >>> >>>> Hi Mike, >>>> >>>>> On Apr 5, 2015, at 12:31 PM, Mike Bonner wrote: >>>>> >>>>> While not exactly whats been requested, this works pretty well: >>>>> >>>>> repeat for each line tLine in (myFilter(sData,"abc*","with")) >>>>> >>>>> I like the way a where clause reads as in the OP, but being able to >> use >>>> an >>>>> inline function for data generation is rather powerful, and if all >> you >>>> need >>>>> is a filter, setting up a function to do so is pretty straight >> forward. >>>> >>>> Good trick! I didn't know you could do that either. >>>> >>>> I wondered if the function was called just once, or on every repeat. >> Your >>>> exapmle wouldn't tell, because the function would return the same stuff >>>> every time. >>>> >>>> So I tested it. The answer is that the function is called only once. >>> Good! >>>> >>>> global gCount >>>> >>>> on mouseUp >>>> global gCount >>>> put 0 into gCount >>>> repeat for each line L in mylines() >>>> put L & cr after msg >>>> end repeat >>>> put gCount after msg -- how many times mulines() was called >>>> end mouseUp" >>>> >>>> function mylines >>>> global gCount >>>> add 1 to gCount >>>> return "1" & cr & "2" & cr & "3" & cr >>>> end mylines >>>> >>>> From bodine at bodinetraininggames.com Tue Apr 7 12:12:56 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 7 Apr 2015 09:12:56 -0700 (PDT) Subject: Refining a Font Menu Message-ID: <1428423176538-4690896.post@n4.nabble.com> Hi All. I have a font menu built with a pull-down type button that works fine, but the number of system fonts makes finding one a chore for the user. I have three refinements in mind, but I'm not sure if they are possible. 1) Is it possible to get a fonts list from the system (or parse one) that results in a fonts list of font family names with branching submenus for each family's variations? 2) Can a pull-down menu jump to the first item on the list that starts with a letter the user has typed? 3) When the pull down menu is triggered, I'd like it to automatically scroll to the position of the currently selected font. But my method for that failed: get the line # of the the current font name, multiply that by the formattedHeight of line 1 of button "Fonts" [that's what triggers error "Object does not have this property"], then set the vscroll of button "Fonts" to the pixel count.) Thanks in advance for any suggestions. (BTW, this is for Mac and Windows, not mobile.) Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refining-a-Font-Menu-tp4690896.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Tue Apr 7 12:52:12 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 07 Apr 2015 11:52:12 -0500 Subject: Only half a field prints with LC 7 on Windows Vista In-Reply-To: <14c90a66877-6e16-372fc@webprd-m67.mail.aol.com> References: <14c90a66877-6e16-372fc@webprd-m67.mail.aol.com> Message-ID: <55240B3C.60605@hyperactivesw.com> On 4/6/2015 4:32 PM, stgoldberg at aol.com wrote: > I'm working with LC 7 on Windows Vista. I notice that when trying to > print a field, whether through the menubar or by script, only the > left half of the field prints. > > I'm not sure if this is a bug, or if I'm just doing something > wrong. It was a bug, fixed in a recent version. The reason you couldn't find it in the bug database is probably because it's been closed. To find all bugs of any status, you need to go into the custom search page and select all entries in the status list. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Tue Apr 7 13:18:37 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 7 Apr 2015 10:18:37 -0700 Subject: Refining a Font Menu In-Reply-To: <1428423176538-4690896.post@n4.nabble.com> References: <1428423176538-4690896.post@n4.nabble.com> Message-ID: <746578C5-C583-4887-9B0B-E3630792FBA6@tactilemedia.com> AFAIK, you can only grab a list of available fonts. Regarding jumping to the first typed letter and automatic scrolling, I believe you want to set the menuHistory property. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design > On Apr 7, 2015, at 9:12 AM, tbodine wrote: > > Hi All. > > I have a font menu built with a pull-down type button that works fine, but > the number of system fonts makes finding one a chore for the user. I have > three refinements in mind, but I'm not sure if they are possible. > > 1) Is it possible to get a fonts list from the system (or parse one) that > results in a fonts list of font family names with branching submenus for > each family's variations? > > 2) Can a pull-down menu jump to the first item on the list that starts with > a letter the user has typed? > > 3) When the pull down menu is triggered, I'd like it to automatically scroll > to the position of the currently selected font. But my method for that > failed: get the line # of the the current font name, multiply that by the > formattedHeight of line 1 of button "Fonts" [that's what triggers error > "Object does not have this property"], then set the vscroll of button > "Fonts" to the pixel count.) > > Thanks in advance for any suggestions. (BTW, this is for Mac and Windows, > not mobile.) > > Tom Bodine > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refining-a-Font-Menu-tp4690896.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Apr 7 13:24:28 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 07 Apr 2015 10:24:28 -0700 Subject: LiveNode Server In-Reply-To: References: Message-ID: <552412CC.4080707@fourthworld.com> David Bovill wrote: > OK. A few questions... I'll post them as assertions to aid clarity. Personally I find it clearer to read questions as questions, but with that explanation I can work with this: > 1. Livecode messaging is fully asynchronous. Not semi-async. What is "semi-asynchronous" in the context of LC? There is a distinction between "asynchronous" and "non-blocking" that I'm not entirely clear on, so I'll use "non-blocking" for now: Socket I/O messaging can be non-blocking when the "with " option is used, e.g.: accept connections on port 8888 with message "GotConnection" But this is of limited value within a single LC instance, since doing anything with that message is likely going to involve blocking code (e.g., reading a file or accessing a database, doing something with that data, and then returning it). So messages will keep coming in, but they'll queue up. This may be fine for light loads, but when expecting multiple simultaneous connections it would be ideal to handle the tasks more independently. Many programs do this with threading, but we don't have threading in LC. Instead of multithreading we can use multiprocessing, having multiple instances of LC apps each working on a separate task. The challenge is that to hand off a socket request to a child process entirely would require us to have some way of handing over the socket connection itself. I believe fork allows this, but I know of no way to launch new instances of an LC app in a way that will hand over the socket connection to them. In lieu of being able to fork, two options I know of are the ones I noted earlier; others may be possible as well, but these seem common enough to be reasonable starting points: > 2. There are a bunch of functions that are currently synchronous in > LiveCode that make it difficult to create asynchronous code - such as > certain network call like POST. Yes, as above. > 3. Livecode does not have closures = passing anonymous callbacks as > params to functions so they can be executed later Not per se, but as you note: > 4. But we can easily call / dispatch calls to functions by passing > names around and we can limit scope by using private handlers or > libraries. > > Here is an article about why you should not use anonymous callbacks > that seems interesting in the context of readabiity and literate > programming languages: > > * Avoiding anonymous JavaScript functions > http://toddmotto.com/avoiding-anonymous-javascript-functions/ Good find. While most of that is very JS-specific, the readability/complexity argument applies in LC well. As a general rule, I feel that "do" is a last resort when all more direct means of accomplishing something have been exhausted, and even "dispatch", "send", and "value" can have similar impact in terms of debugging/maintenance. I almost never use "do" anywhere, and on servers I limit use of the others for another reason not mentioned in the article, security: since they execute arbitrary code by design, "do", "dispatch", "send" and "value" can potentially be sources of injection when used on any part of incoming data. I use "dispatch" in one place in my server framework, but only after checking an incoming command argument against a list of known one-word commands; any request missing a command parameter, or having one not found on that list, returns an "invalid command" error message. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Tue Apr 7 13:28:31 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 7 Apr 2015 10:28:31 -0700 Subject: Refining a Font Menu In-Reply-To: <746578C5-C583-4887-9B0B-E3630792FBA6@tactilemedia.com> References: <1428423176538-4690896.post@n4.nabble.com> <746578C5-C583-4887-9B0B-E3630792FBA6@tactilemedia.com> Message-ID: I think I've run into this problem before with pulldown menus - the menuHistory doesn't seem to have any effect. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 7, 2015 at 10:18 AM, Scott Rossi wrote: > AFAIK, you can only grab a list of available fonts. > > Regarding jumping to the first typed letter and automatic scrolling, I > believe you want to set the menuHistory property. > > Regards, > > Scott Rossi > Creative Director > Tactile Media UX/UI Design > > > On Apr 7, 2015, at 9:12 AM, tbodine > wrote: > > > > Hi All. > > > > I have a font menu built with a pull-down type button that works fine, > but > > the number of system fonts makes finding one a chore for the user. I have > > three refinements in mind, but I'm not sure if they are possible. > > > > 1) Is it possible to get a fonts list from the system (or parse one) that > > results in a fonts list of font family names with branching submenus for > > each family's variations? > > > > 2) Can a pull-down menu jump to the first item on the list that starts > with > > a letter the user has typed? > > > > 3) When the pull down menu is triggered, I'd like it to automatically > scroll > > to the position of the currently selected font. But my method for that > > failed: get the line # of the the current font name, multiply that by the > > formattedHeight of line 1 of button "Fonts" [that's what triggers error > > "Object does not have this property"], then set the vscroll of button > > "Fonts" to the pixel count.) > > > > Thanks in advance for any suggestions. (BTW, this is for Mac and Windows, > > not mobile.) > > > > Tom Bodine > > > > > > > > -- > > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Refining-a-Font-Menu-tp4690896.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Tue Apr 7 13:33:32 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 7 Apr 2015 10:33:32 -0700 Subject: Repeat syntax addition In-Reply-To: References: <001001d06fd3$40dfb650$c29f22f0$@net> <903EBC0E-EB3D-4199-8012-E52B01F59CF4@jhj.com> Message-ID: I'm really liking this feature. I just used it in a series of nested repeat statements that traverse their way through an array with 5 levels of keys by writing a function for each level of key. Makes the code so much more readable. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Apr 5, 2015 at 8:21 PM, Mike Bonner wrote: > Use of the word "Container" is a bit deceptive. Perhaps "datasource" would > be better. Is it still possible to add notes to the dictionary? > > On Sun, Apr 5, 2015 at 5:11 PM, Peter Haworth wrote: > > > I'd guess the last of the options. > > > > The more I think about this, the more I think there should be mention of > > this in the dictionary entry for repeat. > > > > It's a little like the ability to use a function to create a sortkey in > the > > sort command. Nothing in the dictionary about that except for a user > note. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Sun, Apr 5, 2015 at 3:40 PM, Mike Bonner wrote: > > > > > Yeah, kinda makes sense that it would work that way. Grab the data from > > the > > > container once, do magic things behind the scenes to get it ready to > go, > > > then loop through the lines. I guess it could work either way though, > > > where it uses byte offsets to get the next chunk, which would have made > > the > > > function method really suck for large data sets. > > > > > > Now I'm curious.. what exactly does repeat for each do? Split on cr, > > sort > > > the keys and increment each loop to pop out the right line from the > > array? > > > Store all the data in a temp variable and read each line (item, char) > by > > > start/end position? > > > > > > On Sun, Apr 5, 2015 at 4:19 PM, Jerry Jensen wrote: > > > > > > > Hi Mike, > > > > > > > > > On Apr 5, 2015, at 12:31 PM, Mike Bonner > wrote: > > > > > > > > > > While not exactly whats been requested, this works pretty well: > > > > > > > > > > repeat for each line tLine in (myFilter(sData,"abc*","with")) > > > > > > > > > > I like the way a where clause reads as in the OP, but being able to > > use > > > > an > > > > > inline function for data generation is rather powerful, and if all > > you > > > > need > > > > > is a filter, setting up a function to do so is pretty straight > > forward. > > > > > > > > Good trick! I didn't know you could do that either. > > > > > > > > I wondered if the function was called just once, or on every repeat. > > Your > > > > exapmle wouldn't tell, because the function would return the same > stuff > > > > every time. > > > > > > > > So I tested it. The answer is that the function is called only once. > > > Good! > > > > > > > > global gCount > > > > > > > > on mouseUp > > > > global gCount > > > > put 0 into gCount > > > > repeat for each line L in mylines() > > > > put L & cr after msg > > > > end repeat > > > > put gCount after msg -- how many times mulines() was called > > > > end mouseUp" > > > > > > > > function mylines > > > > global gCount > > > > add 1 to gCount > > > > return "1" & cr & "2" & cr & "3" & cr > > > > end mylines > > > > > > > > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Tue Apr 7 14:44:16 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 7 Apr 2015 11:44:16 -0700 Subject: Palette Decorations Message-ID: I am under the impression that a palette stack on OSX should only have a close button as a decoration and should not be resizable. For example, if I bring up the Finder View Options window for a folder, that's the way it displays. However, if I set the style of an LC stack to palette, or open it with either the palette command or go... as palette, the decorations include a close button, a greyed out minimize button and a maximize button, and the stack is resizable. I can easily set the appropriate decorations and resizable properties of course, but what are the "correct" decorations for a palette? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From ambassador at fourthworld.com Tue Apr 7 14:58:38 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 07 Apr 2015 11:58:38 -0700 Subject: Palette Decorations In-Reply-To: References: Message-ID: <552428DE.3080109@fourthworld.com> Peter Haworth wrote: > I am under the impression that a palette stack on OSX should only > have a close button as a decoration and should not be resizable. > For example, if I bring up the Finder View Options window for a > folder, that's the way it displays. > > However, if I set the style of an LC stack to palette, or open it with > either the palette command or go... as palette, the decorations > include a close button, a greyed out minimize button and a maximize > button, and the stack is resizable. This was explored a while back and closed as "Not Fixable" given Mark Waddingham's understanding of the Cocoa APIs: Either his understanding is incorrect, or Apple is using an unpublished API for their Finder. If you can dig up the API call to get rid of those unused icons please post it to the report and they'll reopen it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Tue Apr 7 15:03:48 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 7 Apr 2015 12:03:48 -0700 Subject: Palette Decorations In-Reply-To: <552428DE.3080109@fourthworld.com> References: <552428DE.3080109@fourthworld.com> Message-ID: Thanks Richard. I should have mentioned that I'm seeing this in LC 6.6.5 - wasn't the change to Cocoa in 6.7? The Finder example I gave was in OSX 10.10 Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 7, 2015 at 11:58 AM, Richard Gaskin wrote: > Peter Haworth wrote: > > > I am under the impression that a palette stack on OSX should only > > have a close button as a decoration and should not be resizable. > > For example, if I bring up the Finder View Options window for a > > folder, that's the way it displays. > > > > However, if I set the style of an LC stack to palette, or open it with > > either the palette command or go... as palette, the decorations > > include a close button, a greyed out minimize button and a maximize > > button, and the stack is resizable. > > This was explored a while back and closed as "Not Fixable" given Mark > Waddingham's understanding of the Cocoa APIs: > > > Either his understanding is incorrect, or Apple is using an unpublished > API for their Finder. > > If you can dig up the API call to get rid of those unused icons please > post it to the report and they'll reopen it. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Apr 7 15:28:43 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 07 Apr 2015 12:28:43 -0700 Subject: Palette Decorations In-Reply-To: References: Message-ID: <55242FEB.2000502@fourthworld.com> Peter Haworth wrote: > I should have mentioned that I'm seeing this in LC 6.6.5 - wasn't the > change to Cocoa in 6.7? The Finder example I gave was in OSX 10.10 IIRC the Cocoa migration began early in the 6.x series. If you can figure out the API Apple's using there that would be cool. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Tue Apr 7 15:50:02 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 7 Apr 2015 12:50:02 -0700 Subject: Palette Decorations In-Reply-To: <55242FEB.2000502@fourthworld.com> References: <55242FEB.2000502@fourthworld.com> Message-ID: OK, didn't know that. Not being familiar with Apple's API, I don't think I would be able to find the appropriate call. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 7, 2015 at 12:28 PM, Richard Gaskin wrote: > Peter Haworth wrote: > > I should have mentioned that I'm seeing this in LC 6.6.5 - wasn't the > > change to Cocoa in 6.7? The Finder example I gave was in OSX 10.10 > > IIRC the Cocoa migration began early in the 6.x series. > > If you can figure out the API Apple's using there that would be cool. > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andrew at ctech.me Tue Apr 7 16:21:23 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Tue, 07 Apr 2015 20:21:23 +0000 Subject: LiveNode Server In-Reply-To: <552412CC.4080707@fourthworld.com> References: <552412CC.4080707@fourthworld.com> Message-ID: >>1. Livecode messaging is fully asynchronous. Not semi-async. Right, when I said semi-async I was referring to the single threadedness of livecode (which node shares) along with all the baked into livecode stuff that blocks up messages currently: accessing a large file on disk, posting some information to a web service with a large json payload being returned. It's async, with some pretty hard to work around exceptions (url library specifically has been the primary source of past frustration in this way). >>3. Livecode does not have closures = passing anonymous callbacks as params to functions so they can be executed later As for anonymous callbacks, I totally agree. Most early Node development had to overcome the callback hell that these patterns introduce. However, almost all of the nodejs projects and libraries I've worked with leveraged them heavily or exclusively. Promsies seem to have become the standard way of dealing with the callback hell that node was so famous for for a long time. Why does node use anonymous functions over the method you linked to in the article? Anonymous functions are marked for garbage collection immediately after being returned. All other functions at the global scope run the risk of needlessly using memory after they run. I've gotten into some hairy situations with memory management with these kinds of named callbacks (specifically for database access and return of lots of results when not scoped correctly). Passing a function (not just a name of a function to be used with a send or a dispatch later on) as a parameter even in your article still demonstrates something LC just can't do currently. In the article he's still using closures, it's just got a name instead of being anonymous. It's still a closure. LC has ways to accomplish similar things by passing names of functions and using dispatch, but I think it's not exactly the same. Closures are part of the reason node.js works the way it does and closures are one of the pirmary reasons javascript was chosen for node. It's certainly possible to do async without them, but closures are what makes it easy and kind of a fundamental principle to working in node.js. >>4. But we can easily call / dispatch calls to functions by passing names around and we can limit scope by using private handlers or libraries. Sure, there is nothing STOPPING us from implementing named callbacks in the current fashion or passing the named callback references dynamically as you and I mentioned, but from experience trying it this way I feel like it makes maintaining large projects built this way a lot more difficult. To the point where I ended up completely redoing most of the livecode stuff I've written in this way early on because it was getting to be a nightmare to maintain a completely separate callback functions rather than the sort of nested structure you get in node with callbacks. It takes a lot of discipline in placement and grouping of the code that is related in this way to come back later and make sense of it. In summary: it can be done, but that doesn't mean that it SHOULD be done. Kind of a weird long post there. Sorry for the length and probable repetition of my points. Also, this was something really neat I've used recently to make node work in-process with some .NET applications we have. Something that does this with node and LC would indeed be the bees knees. http://www.hanselman.com/blog/ItsJustASoftwareIssueEdgejsBringsNodeAndNETTogetherOnThreePlatforms.aspx Specifically the part about it allowing us to write node extensions in C# in addition to the standard C and C++ way of doing it. I'd love to be able to hook node into extensions written in livecode. On Tue, Apr 7, 2015 at 12:24 PM Richard Gaskin wrote: > David Bovill wrote: > > > OK. A few questions... I'll post them as assertions to aid clarity. > > Personally I find it clearer to read questions as questions, but with > that explanation I can work with this: > > > 1. Livecode messaging is fully asynchronous. Not semi-async. > > What is "semi-asynchronous" in the context of LC? > > There is a distinction between "asynchronous" and "non-blocking" that > I'm not entirely clear on, so I'll use "non-blocking" for now: > > Socket I/O messaging can be non-blocking when the "with " > option is used, e.g.: > > accept connections on port 8888 with message "GotConnection" > > But this is of limited value within a single LC instance, since doing > anything with that message is likely going to involve blocking code > (e.g., reading a file or accessing a database, doing something with that > data, and then returning it). > > So messages will keep coming in, but they'll queue up. This may be fine > for light loads, but when expecting multiple simultaneous connections it > would be ideal to handle the tasks more independently. > > Many programs do this with threading, but we don't have threading in LC. > > Instead of multithreading we can use multiprocessing, having multiple > instances of LC apps each working on a separate task. > > The challenge is that to hand off a socket request to a child process > entirely would require us to have some way of handing over the socket > connection itself. I believe fork allows this, but I know of no way to > launch new instances of an LC app in a way that will hand over the > socket connection to them. > > In lieu of being able to fork, two options I know of are the ones I > noted earlier; others may be possible as well, but these seem common > enough to be reasonable starting points: > > > > > > 2. There are a bunch of functions that are currently synchronous in > > LiveCode that make it difficult to create asynchronous code - such as > > certain network call like POST. > > Yes, as above. > > > > 3. Livecode does not have closures = passing anonymous callbacks as > > params to functions so they can be executed later > > Not per se, but as you note: > > > 4. But we can easily call / dispatch calls to functions by passing > > names around and we can limit scope by using private handlers or > > libraries. > > > > Here is an article about why you should not use anonymous callbacks > > that seems interesting in the context of readabiity and literate > > programming languages: > > > > * Avoiding anonymous JavaScript functions > > http://toddmotto.com/avoiding-anonymous-javascript-functions/ > > Good find. While most of that is very JS-specific, the > readability/complexity argument applies in LC well. As a general rule, > I feel that "do" is a last resort when all more direct means of > accomplishing something have been exhausted, and even "dispatch", > "send", and "value" can have similar impact in terms of > debugging/maintenance. > > I almost never use "do" anywhere, and on servers I limit use of the > others for another reason not mentioned in the article, security: since > they execute arbitrary code by design, "do", "dispatch", "send" and > "value" can potentially be sources of injection when used on any part of > incoming data. > > I use "dispatch" in one place in my server framework, but only after > checking an incoming command argument against a list of known one-word > commands; any request missing a command parameter, or having one not > found on that list, returns an "invalid command" error message. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Apr 7 17:19:22 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 07 Apr 2015 14:19:22 -0700 Subject: LiveNode Server In-Reply-To: References: Message-ID: <552449DA.8070206@fourthworld.com> Andrew Kluthe wrote: >>>1. Livecode messaging is fully asynchronous. Not semi-async. > > Right, when I said semi-async I was referring to the single threadedness of > livecode (which node shares) along with all the baked into livecode stuff > that blocks up messages currently: accessing a large file on disk, posting > some information to a web service with a large json payload being returned. > It's async, with some pretty hard to work around exceptions (url library > specifically has been the primary source of past frustration in this way). > >>>3. Livecode does not have closures = passing anonymous callbacks as > params to functions so they can be executed later > > As for anonymous callbacks, I totally agree. Most early Node development > had to overcome the callback hell that these patterns introduce. However, > almost all of the nodejs projects and libraries I've worked with leveraged > them heavily or exclusively. Promsies seem to have become the standard way > of dealing with the callback hell that node was so famous for for a long > time. Why does node use anonymous functions over the method you linked to > in the article? Anonymous functions are marked for garbage collection > immediately after being returned. All other functions at the global scope > run the risk of needlessly using memory after they run. I've gotten into > some hairy situations with memory management with these kinds of named > callbacks (specifically for database access and return of lots of results > when not scoped correctly). > > Passing a function (not just a name of a function to be used with a send or > a dispatch later on) as a parameter even in your article still demonstrates > something LC just can't do currently. In the article he's still using > closures, it's just got a name instead of being anonymous. It's still a > closure. LC has ways to accomplish similar things by passing names of > functions and using dispatch, but I think it's not exactly the same. > Closures are part of the reason node.js works the way it does and closures > are one of the pirmary reasons javascript was chosen for node. It's > certainly possible to do async without them, but closures are what makes it > easy and kind of a fundamental principle to working in node.js. > >>>4. But we can easily call / dispatch calls to functions by passing names > around and we can limit scope by using private handlers or libraries. > > Sure, there is nothing STOPPING us from implementing named callbacks in the > current fashion or passing the named callback references dynamically as you > and I mentioned, but from experience trying it this way I feel like it > makes maintaining large projects built this way a lot more difficult. To > the point where I ended up completely redoing most of the livecode stuff > I've written in this way early on because it was getting to be a nightmare > to maintain a completely separate callback functions rather than the sort > of nested structure you get in node with callbacks. It takes a lot of > discipline in placement and grouping of the code that is related in this > way to come back later and make sense of it. In summary: it can be done, > but that doesn't mean that it SHOULD be done. > > Kind of a weird long post there. Sorry for the length and probable > repetition of my points. Not at all - good stuff. What would you say would be the minimum we'd need to add to the LC engine to make it suitable for the sort of work you do? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bodine at bodinetraininggames.com Tue Apr 7 17:23:43 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 7 Apr 2015 14:23:43 -0700 (PDT) Subject: Current Player Bugs in LC 7 In-Reply-To: <6BAEC3DD-E39B-4E6E-8771-587A9321930A@me.com> References: <6BAEC3DD-E39B-4E6E-8771-587A9321930A@me.com> Message-ID: <1428441823279-4690909.post@n4.nabble.com> Hi Peter. I know quite a few of us are anxious to see a break in the log jam regarding the multimedia player. My takeaway from the webinar last month was that many issues would clear up when the LC8 multimedia player widget rolls out. It will replace obsolete code -- no doubt the source of many bugs -- by wrapping AV foundation on Mac, Windows 8 multimedia on Win, etc. to modernize multimedia in LC. My notes say "the team expects to write this very quickly once the underlying support is there." So, there's hope. Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Current-Player-Bugs-in-LC-7-tp4690887p4690909.html Sent from the Revolution - User mailing list archive at Nabble.com. From livfoss at mac.com Tue Apr 7 18:00:35 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 08 Apr 2015 00:00:35 +0200 Subject: OT: On-Rev and Joomla! Message-ID: <151C95F9-EEB4-4EAD-BA7C-B58905B9BF08@mac.com> Sorry to be OT as far as this list is concerned, but for some reason my On-Rev forum membership not yet been activated, and On-Rev support, while being very kind and patient with me in the replies I?ve had, doesn?t seem to have much time to answer my queries. I suppose the wonderful interactivity of this list has given me unrealistic expectations. So, does anyone here know anything at all about installing Joomla on an On-Rev server (it?s Diesel, if anyone is interested)? If you don?t know what Joomla is, I?m not going to explain it here. If you do, the problem is with the required SQL database installation. Graham From matthias_livecode_150811 at m-r-d.de Tue Apr 7 18:10:34 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Wed, 8 Apr 2015 00:10:34 +0200 Subject: OT: On-Rev and Joomla! In-Reply-To: <151C95F9-EEB4-4EAD-BA7C-B58905B9BF08@mac.com> References: <151C95F9-EEB4-4EAD-BA7C-B58905B9BF08@mac.com> Message-ID: <07DBF258-DE5D-4AC9-B26C-82FB8E9EA4BE@m-r-d.de> Graham, what problem do you encounter? Matthias > Am 08.04.2015 um 00:00 schrieb Graham Samuel : > > Sorry to be OT as far as this list is concerned, but for some reason my On-Rev forum membership not yet been activated, and On-Rev support, while being very kind and patient with me in the replies I?ve had, doesn?t seem to have much time to answer my queries. I suppose the wonderful interactivity of this list has given me unrealistic expectations. > > So, does anyone here know anything at all about installing Joomla on an On-Rev server (it?s Diesel, if anyone is interested)? If you don?t know what Joomla is, I?m not going to explain it here. If you do, the problem is with the required SQL database installation. > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andrew at ctech.me Tue Apr 7 18:44:46 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Tue, 07 Apr 2015 22:44:46 +0000 Subject: LiveNode Server In-Reply-To: <552449DA.8070206@fourthworld.com> References: <552449DA.8070206@fourthworld.com> Message-ID: I'm not using LC server side much so I can't say for sure there in reference to this thread and the things we've been discussing. I think the direction livecode is going and the state that it is/was (I still use 5.5 for a lot of things) in to be great. If we can get as many of the blocking bits down to a minimum as possible (specifically the url libraries), I think it would be perfect. The thing that peeved me most is that most of my DB work is not done by directly connecting to the database but some sort of api layer. Usually my LC apps are just clients for these apis (often built in Node or python if they were made in-house). I like the flexibility this gives me. They post some JSON and get a JSON payload back. If the payload is large, I've had to do things like use curl and some other things to make up for the built-in super convenient internet library just sitting locking the application while it waits to return. I've converted entire applications out of LC into other technology stacks just because of the kludge needed for this one thing. I'd love to be able to stream this stuff in a little bit at a time as well. I can get some desired results with regular GET request using load url with a callback but it doesn't help when I have to post a more complex query. This happens in my .NET apps as well, but I use the parallel task libraries .NET has to get around the UI lockups. I've been spoiled on some of visual studio's tooling features in the meantime too :P (intellisense, jump to definitions, some other things that i think will come to LC in time). I also have a node-webkit (now nw.js) application that I think would be perfectly suited to be done in livecode once things stabilize a bit (this has already started to happen) with the newer builds using Chrome Embedded Framework. I needed something with all the fine tuned styling I could get from web app we already have but running as a standalone against SQLite DB. We did this to reuse the same visual cues and javascript libraries that we use on the web version. We wanted a copy of the web application that could run completely without the internet. I think with just a bit of time, I could have used LC to do this comfortably. The short answer? An url library that can read a file off disk asynchronously (I think this can be done now using some of the other ways of doing disk access in LC, but it would be nice if the url("binfile:") bit did the same thing) and an url library that can return the response of a POST asynchronously (preferably returning chunks as they come in). The widgets architecture sets itself up to solve all of my other potential wants/needs, maybe even this one. On Tue, Apr 7, 2015 at 4:19 PM Richard Gaskin wrote: > Andrew Kluthe wrote: > > >>>1. Livecode messaging is fully asynchronous. Not semi-async. > > > > Right, when I said semi-async I was referring to the single threadedness > of > > livecode (which node shares) along with all the baked into livecode stuff > > that blocks up messages currently: accessing a large file on disk, > posting > > some information to a web service with a large json payload being > returned. > > It's async, with some pretty hard to work around exceptions (url library > > specifically has been the primary source of past frustration in this > way). > > > >>>3. Livecode does not have closures = passing anonymous callbacks as > > params to functions so they can be executed later > > > > As for anonymous callbacks, I totally agree. Most early Node development > > had to overcome the callback hell that these patterns introduce. However, > > almost all of the nodejs projects and libraries I've worked with > leveraged > > them heavily or exclusively. Promsies seem to have become the standard > way > > of dealing with the callback hell that node was so famous for for a long > > time. Why does node use anonymous functions over the method you linked to > > in the article? Anonymous functions are marked for garbage collection > > immediately after being returned. All other functions at the global scope > > run the risk of needlessly using memory after they run. I've gotten into > > some hairy situations with memory management with these kinds of named > > callbacks (specifically for database access and return of lots of results > > when not scoped correctly). > > > > Passing a function (not just a name of a function to be used with a send > or > > a dispatch later on) as a parameter even in your article still > demonstrates > > something LC just can't do currently. In the article he's still using > > closures, it's just got a name instead of being anonymous. It's still a > > closure. LC has ways to accomplish similar things by passing names of > > functions and using dispatch, but I think it's not exactly the same. > > Closures are part of the reason node.js works the way it does and > closures > > are one of the pirmary reasons javascript was chosen for node. It's > > certainly possible to do async without them, but closures are what makes > it > > easy and kind of a fundamental principle to working in node.js. > > > >>>4. But we can easily call / dispatch calls to functions by passing names > > around and we can limit scope by using private handlers or libraries. > > > > Sure, there is nothing STOPPING us from implementing named callbacks in > the > > current fashion or passing the named callback references dynamically as > you > > and I mentioned, but from experience trying it this way I feel like it > > makes maintaining large projects built this way a lot more difficult. To > > the point where I ended up completely redoing most of the livecode stuff > > I've written in this way early on because it was getting to be a > nightmare > > to maintain a completely separate callback functions rather than the sort > > of nested structure you get in node with callbacks. It takes a lot of > > discipline in placement and grouping of the code that is related in this > > way to come back later and make sense of it. In summary: it can be done, > > but that doesn't mean that it SHOULD be done. > > > > Kind of a weird long post there. Sorry for the length and probable > > repetition of my points. > > Not at all - good stuff. > > What would you say would be the minimum we'd need to add to the LC > engine to make it suitable for the sort of work you do? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Wed Apr 8 01:31:41 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 8 Apr 2015 13:31:41 +0800 Subject: [BUG] revCopyFile Message-ID: When using revCopyFile on OS X I keep getting the result: execution error The good news is that there is NO error, the file is copying just nicely and arrives intact. The bad news is obviously I can't programmatically check that the Copy was successful. The cause seems to be the length of the copy; I'm copying files that normally indicate they'll take 6 - 30+ min. In my script I check the result and pop up a Warning if there is an error, about 2 min into the Copy process my Warning pops up. But the Finder Copy window still shows the copy progressing nicely. I've tested this on using both External HDs and Network HDs on: PPC OS X 10.5.8 LC 6.6.3 Intel OS X 10.9.5 LC 7.0.4 rc3 Again, I can't believe I'm the first person to copy a large file with LC, but before I go ahead and report this (along with the revDeleteFolder bug) I was just wondering if anyone was aware of some feature to extend the time before LC reported the Copy as failing. Might have to look at a shell command as a workaround. From david at viral.academy Wed Apr 8 04:58:15 2015 From: david at viral.academy (David Bovill) Date: Wed, 8 Apr 2015 09:58:15 +0100 Subject: LiveNode Server In-Reply-To: References: <552449DA.8070206@fourthworld.com> Message-ID: Yes I second that - async file and network I/O. And full REST support - PATCH I think is not supported - or is that documented? On 7 April 2015 at 23:44, Andrew Kluthe wrote: > I'm not using LC server side much so I can't say for sure there in > reference to this thread and the things we've been discussing. I think the > direction livecode is going and the state that it is/was (I still use 5.5 > for a lot of things) in to be great. > > If we can get as many of the blocking bits down to a minimum as possible > (specifically the url libraries), I think it would be perfect. The thing > that peeved me most is that most of my DB work is not done by directly > connecting to the database but some sort of api layer. Usually my LC apps > are just clients for these apis (often built in Node or python if they were > made in-house). I like the flexibility this gives me. They post some JSON > and get a JSON payload back. If the payload is large, I've had to do things > like use curl and some other things to make up for the built-in super > convenient internet library just sitting locking the application while it > waits to return. I've converted entire applications out of LC into other > technology stacks just because of the kludge needed for this one thing. I'd > love to be able to stream this stuff in a little bit at a time as well. I > can get some desired results with regular GET request using load url with a > callback but it doesn't help when I have to post a more complex query. This > happens in my .NET apps as well, but I use the parallel task libraries .NET > has to get around the UI lockups. I've been spoiled on some of visual > studio's tooling features in the meantime too :P (intellisense, jump to > definitions, some other things that i think will come to LC in time). > > I also have a node-webkit (now nw.js) application that I think would be > perfectly suited to be done in livecode once things stabilize a bit (this > has already started to happen) with the newer builds using Chrome Embedded > Framework. I needed something with all the fine tuned styling I could get > from web app we already have but running as a standalone against SQLite DB. > We did this to reuse the same visual cues and javascript libraries that we > use on the web version. We wanted a copy of the web application that could > run completely without the internet. I think with just a bit of time, I > could have used LC to do this comfortably. > > The short answer? An url library that can read a file off disk > asynchronously (I think this can be done now using some of the other ways > of doing disk access in LC, but it would be nice if the url("binfile:") bit > did the same thing) and an url library that can return the response of a > POST asynchronously (preferably returning chunks as they come in). > > The widgets architecture sets itself up to solve all of my other potential > wants/needs, maybe even this one. > > On Tue, Apr 7, 2015 at 4:19 PM Richard Gaskin > wrote: > > > Andrew Kluthe wrote: > > > > >>>1. Livecode messaging is fully asynchronous. Not semi-async. > > > > > > Right, when I said semi-async I was referring to the single > threadedness > > of > > > livecode (which node shares) along with all the baked into livecode > stuff > > > that blocks up messages currently: accessing a large file on disk, > > posting > > > some information to a web service with a large json payload being > > returned. > > > It's async, with some pretty hard to work around exceptions (url > library > > > specifically has been the primary source of past frustration in this > > way). > > > > > >>>3. Livecode does not have closures = passing anonymous callbacks as > > > params to functions so they can be executed later > > > > > > As for anonymous callbacks, I totally agree. Most early Node > development > > > had to overcome the callback hell that these patterns introduce. > However, > > > almost all of the nodejs projects and libraries I've worked with > > leveraged > > > them heavily or exclusively. Promsies seem to have become the standard > > way > > > of dealing with the callback hell that node was so famous for for a > long > > > time. Why does node use anonymous functions over the method you linked > to > > > in the article? Anonymous functions are marked for garbage collection > > > immediately after being returned. All other functions at the global > scope > > > run the risk of needlessly using memory after they run. I've gotten > into > > > some hairy situations with memory management with these kinds of named > > > callbacks (specifically for database access and return of lots of > results > > > when not scoped correctly). > > > > > > Passing a function (not just a name of a function to be used with a > send > > or > > > a dispatch later on) as a parameter even in your article still > > demonstrates > > > something LC just can't do currently. In the article he's still using > > > closures, it's just got a name instead of being anonymous. It's still a > > > closure. LC has ways to accomplish similar things by passing names of > > > functions and using dispatch, but I think it's not exactly the same. > > > Closures are part of the reason node.js works the way it does and > > closures > > > are one of the pirmary reasons javascript was chosen for node. It's > > > certainly possible to do async without them, but closures are what > makes > > it > > > easy and kind of a fundamental principle to working in node.js. > > > > > >>>4. But we can easily call / dispatch calls to functions by passing > names > > > around and we can limit scope by using private handlers or libraries. > > > > > > Sure, there is nothing STOPPING us from implementing named callbacks in > > the > > > current fashion or passing the named callback references dynamically as > > you > > > and I mentioned, but from experience trying it this way I feel like it > > > makes maintaining large projects built this way a lot more difficult. > To > > > the point where I ended up completely redoing most of the livecode > stuff > > > I've written in this way early on because it was getting to be a > > nightmare > > > to maintain a completely separate callback functions rather than the > sort > > > of nested structure you get in node with callbacks. It takes a lot of > > > discipline in placement and grouping of the code that is related in > this > > > way to come back later and make sense of it. In summary: it can be > done, > > > but that doesn't mean that it SHOULD be done. > > > > > > Kind of a weird long post there. Sorry for the length and probable > > > repetition of my points. > > > > Not at all - good stuff. > > > > What would you say would be the minimum we'd need to add to the LC > > engine to make it suitable for the sort of work you do? > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for the Desktop, Mobile, and the Web > > ____________________________________________________________________ > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at viral.academy Wed Apr 8 05:54:44 2015 From: david at viral.academy (David Bovill) Date: Wed, 8 Apr 2015 10:54:44 +0100 Subject: LiveNode Server In-Reply-To: References: <552412CC.4080707@fourthworld.com> Message-ID: Thanks for this Andrew - I learned a lot. I spend a lot of time passing messages around Livecode objects with a view to making them standalone code chunks. Debugging works pretty well - but there was a need for a library and a graphing mechanism - design pattern style. This all adds overhead I guess when it comes to just reading code, and the design patterns for callbacks that closures seem to encourage makes this easier by itself? One thing that would be good to know more about with regard to Livecode is the memory handling - so when does a peice of code get released from memory? My understanding is that it does not - except possibly when the stack it resides in is "deleted" from memory? Otherwise my understanding is that like with Hypercard the script is compiled to bytecode the first time it is executed (which is a relatively slow step), but thereafter resides in memory to be executed when needed. Is that about right? It makes me think of an architecture in Livecode using [[dispatch]] where a stack is loaded that contains the needed code should the dispatch call not be handled by the message hierarchy - by default this stack could be deleted after it is called - so releasing it from memory. Commonly called handlers could be loaded before hand by a different command and therfore stay in memory. On 7 April 2015 at 21:21, Andrew Kluthe wrote: > >>1. Livecode messaging is fully asynchronous. Not semi-async. > > Right, when I said semi-async I was referring to the single threadedness of > livecode (which node shares) along with all the baked into livecode stuff > that blocks up messages currently: accessing a large file on disk, posting > some information to a web service with a large json payload being returned. > It's async, with some pretty hard to work around exceptions (url library > specifically has been the primary source of past frustration in this way). > > >>3. Livecode does not have closures = passing anonymous callbacks as > params to functions so they can be executed later > > As for anonymous callbacks, I totally agree. Most early Node development > had to overcome the callback hell that these patterns introduce. However, > almost all of the nodejs projects and libraries I've worked with leveraged > them heavily or exclusively. Promsies seem to have become the standard way > of dealing with the callback hell that node was so famous for for a long > time. Why does node use anonymous functions over the method you linked to > in the article? Anonymous functions are marked for garbage collection > immediately after being returned. All other functions at the global scope > run the risk of needlessly using memory after they run. I've gotten into > some hairy situations with memory management with these kinds of named > callbacks (specifically for database access and return of lots of results > when not scoped correctly). > > Passing a function (not just a name of a function to be used with a send or > a dispatch later on) as a parameter even in your article still demonstrates > something LC just can't do currently. In the article he's still using > closures, it's just got a name instead of being anonymous. It's still a > closure. LC has ways to accomplish similar things by passing names of > functions and using dispatch, but I think it's not exactly the same. > Closures are part of the reason node.js works the way it does and closures > are one of the pirmary reasons javascript was chosen for node. It's > certainly possible to do async without them, but closures are what makes it > easy and kind of a fundamental principle to working in node.js. > > >>4. But we can easily call / dispatch calls to functions by passing names > around and we can limit scope by using private handlers or libraries. > > Sure, there is nothing STOPPING us from implementing named callbacks in the > current fashion or passing the named callback references dynamically as you > and I mentioned, but from experience trying it this way I feel like it > makes maintaining large projects built this way a lot more difficult. To > the point where I ended up completely redoing most of the livecode stuff > I've written in this way early on because it was getting to be a nightmare > to maintain a completely separate callback functions rather than the sort > of nested structure you get in node with callbacks. It takes a lot of > discipline in placement and grouping of the code that is related in this > way to come back later and make sense of it. In summary: it can be done, > but that doesn't mean that it SHOULD be done. > > Kind of a weird long post there. Sorry for the length and probable > repetition of my points. > > > Also, this was something really neat I've used recently to make node work > in-process with some .NET applications we have. Something that does this > with node and LC would indeed be the bees knees. > > > http://www.hanselman.com/blog/ItsJustASoftwareIssueEdgejsBringsNodeAndNETTogetherOnThreePlatforms.aspx > > Specifically the part about it allowing us to write node extensions in C# > in addition to the standard C and C++ way of doing it. I'd love to be able > to hook node into extensions written in livecode. > > > On Tue, Apr 7, 2015 at 12:24 PM Richard Gaskin > > wrote: > > > David Bovill wrote: > > > > > OK. A few questions... I'll post them as assertions to aid clarity. > > > > Personally I find it clearer to read questions as questions, but with > > that explanation I can work with this: > > > > > 1. Livecode messaging is fully asynchronous. Not semi-async. > > > > What is "semi-asynchronous" in the context of LC? > > > > There is a distinction between "asynchronous" and "non-blocking" that > > I'm not entirely clear on, so I'll use "non-blocking" for now: > > > > Socket I/O messaging can be non-blocking when the "with " > > option is used, e.g.: > > > > accept connections on port 8888 with message "GotConnection" > > > > But this is of limited value within a single LC instance, since doing > > anything with that message is likely going to involve blocking code > > (e.g., reading a file or accessing a database, doing something with that > > data, and then returning it). > > > > So messages will keep coming in, but they'll queue up. This may be fine > > for light loads, but when expecting multiple simultaneous connections it > > would be ideal to handle the tasks more independently. > > > > Many programs do this with threading, but we don't have threading in LC. > > > > Instead of multithreading we can use multiprocessing, having multiple > > instances of LC apps each working on a separate task. > > > > The challenge is that to hand off a socket request to a child process > > entirely would require us to have some way of handing over the socket > > connection itself. I believe fork allows this, but I know of no way to > > launch new instances of an LC app in a way that will hand over the > > socket connection to them. > > > > In lieu of being able to fork, two options I know of are the ones I > > noted earlier; others may be possible as well, but these seem common > > enough to be reasonable starting points: > > > > > > > > > > > 2. There are a bunch of functions that are currently synchronous in > > > LiveCode that make it difficult to create asynchronous code - such as > > > certain network call like POST. > > > > Yes, as above. > > > > > > > 3. Livecode does not have closures = passing anonymous callbacks as > > > params to functions so they can be executed later > > > > Not per se, but as you note: > > > > > 4. But we can easily call / dispatch calls to functions by passing > > > names around and we can limit scope by using private handlers or > > > libraries. > > > > > > Here is an article about why you should not use anonymous callbacks > > > that seems interesting in the context of readabiity and literate > > > programming languages: > > > > > > * Avoiding anonymous JavaScript functions > > > http://toddmotto.com/avoiding-anonymous-javascript-functions/ > > > > Good find. While most of that is very JS-specific, the > > readability/complexity argument applies in LC well. As a general rule, > > I feel that "do" is a last resort when all more direct means of > > accomplishing something have been exhausted, and even "dispatch", > > "send", and "value" can have similar impact in terms of > > debugging/maintenance. > > > > I almost never use "do" anywhere, and on servers I limit use of the > > others for another reason not mentioned in the article, security: since > > they execute arbitrary code by design, "do", "dispatch", "send" and > > "value" can potentially be sources of injection when used on any part of > > incoming data. > > > > I use "dispatch" in one place in my server framework, but only after > > checking an incoming command argument against a list of known one-word > > commands; any request missing a command parameter, or having one not > > found on that list, returns an "invalid command" error message. > > > > -- > > Richard Gaskin > > Fourth World Systems > > Software Design and Development for the Desktop, Mobile, and the Web > > ____________________________________________________________________ > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From admin at FlexibleLearning.com Wed Apr 8 06:28:37 2015 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Wed, 8 Apr 2015 11:28:37 +0100 Subject: [ANN] Free update: ChartMaker 3.0 Build 65 Message-ID: <009601d071e6$c7082180$55186480$@FlexibleLearning.com> I am pleased to announce a free update for ChartMaker that is LC6.7 and LC7 compatible. Full release notes and the new release download are available here, including a free 30-day trial (or use your existing key to update): http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm Note that as a professional product, ChartMaker requires LiveCode Commercial. However, specific circumstances will be considered for developers who require unlocked maintenance access for their clients. Version: 3.0 Build: 65 Release type: Update Issued: 8 April 2015 ChartMaker now requires LiveCode 5.5 or later. Earlier versions are not supported. What's New in this build? This is a free maintenance release that addresses the following issues... NEW . General LC7 compatibility FIXED . Line charts did not reset "formatForPrinting" to false. Fixed. . Incorrect multiple series labelling. Fixed . XFormat now correctly displays on CMupdateChart . Utility: Category Display: Wizard: Popup Tip... Now closes as expected Hugh Senior FLCo From andrew at ctech.me Wed Apr 8 09:41:38 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Wed, 08 Apr 2015 13:41:38 +0000 Subject: LiveNode Server In-Reply-To: References: <552412CC.4080707@fourthworld.com> Message-ID: I haven't had many problems with livecode chewing up memory and not letting it go (unless I've done something obvious like stash it someplace where I would expect it to persist). I think JS in general is prone to memory leaks just because of how much of it was designed around the use of global variables. All the scoping improvements we've had over the years were kind of grafted on top of this design to try and address this. In Livecode, memory leaks happen if you are really reckless. In most of the JS environments (node, browsers), they happen when you aren't careful. On Wed, Apr 8, 2015 at 4:54 AM David Bovill wrote: > Thanks for this Andrew - I learned a lot. I spend a lot of time passing > messages around Livecode objects with a view to making them standalone code > chunks. Debugging works pretty well - but there was a need for a library > and a graphing mechanism - design pattern style. This all adds overhead I > guess when it comes to just reading code, and the design patterns for > callbacks that closures seem to encourage makes this easier by itself? > > One thing that would be good to know more about with regard to Livecode is > the memory handling - so when does a peice of code get released from > memory? My understanding is that it does not - except possibly when the > stack it resides in is "deleted" from memory? > > Otherwise my understanding is that like with Hypercard the script is > compiled to bytecode the first time it is executed (which is a relatively > slow step), but thereafter resides in memory to be executed when needed. Is > that about right? > > It makes me think of an architecture in Livecode using [[dispatch]] where a > stack is loaded that contains the needed code should the dispatch call not > be handled by the message hierarchy - by default this stack could be > deleted after it is called - so releasing it from memory. Commonly called > handlers could be loaded before hand by a different command and therfore > stay in memory. > > > On 7 April 2015 at 21:21, Andrew Kluthe wrote: > > > >>1. Livecode messaging is fully asynchronous. Not semi-async. > > > > Right, when I said semi-async I was referring to the single threadedness > of > > livecode (which node shares) along with all the baked into livecode stuff > > that blocks up messages currently: accessing a large file on disk, > posting > > some information to a web service with a large json payload being > returned. > > It's async, with some pretty hard to work around exceptions (url library > > specifically has been the primary source of past frustration in this > way). > > > > >>3. Livecode does not have closures = passing anonymous callbacks as > > params to functions so they can be executed later > > > > As for anonymous callbacks, I totally agree. Most early Node development > > had to overcome the callback hell that these patterns introduce. However, > > almost all of the nodejs projects and libraries I've worked with > leveraged > > them heavily or exclusively. Promsies seem to have become the standard > way > > of dealing with the callback hell that node was so famous for for a long > > time. Why does node use anonymous functions over the method you linked to > > in the article? Anonymous functions are marked for garbage collection > > immediately after being returned. All other functions at the global scope > > run the risk of needlessly using memory after they run. I've gotten into > > some hairy situations with memory management with these kinds of named > > callbacks (specifically for database access and return of lots of results > > when not scoped correctly). > > > > Passing a function (not just a name of a function to be used with a send > or > > a dispatch later on) as a parameter even in your article still > demonstrates > > something LC just can't do currently. In the article he's still using > > closures, it's just got a name instead of being anonymous. It's still a > > closure. LC has ways to accomplish similar things by passing names of > > functions and using dispatch, but I think it's not exactly the same. > > Closures are part of the reason node.js works the way it does and > closures > > are one of the pirmary reasons javascript was chosen for node. It's > > certainly possible to do async without them, but closures are what makes > it > > easy and kind of a fundamental principle to working in node.js. > > > > >>4. But we can easily call / dispatch calls to functions by passing > names > > around and we can limit scope by using private handlers or libraries. > > > > Sure, there is nothing STOPPING us from implementing named callbacks in > the > > current fashion or passing the named callback references dynamically as > you > > and I mentioned, but from experience trying it this way I feel like it > > makes maintaining large projects built this way a lot more difficult. To > > the point where I ended up completely redoing most of the livecode stuff > > I've written in this way early on because it was getting to be a > nightmare > > to maintain a completely separate callback functions rather than the sort > > of nested structure you get in node with callbacks. It takes a lot of > > discipline in placement and grouping of the code that is related in this > > way to come back later and make sense of it. In summary: it can be done, > > but that doesn't mean that it SHOULD be done. > > > > Kind of a weird long post there. Sorry for the length and probable > > repetition of my points. > > > > > > Also, this was something really neat I've used recently to make node work > > in-process with some .NET applications we have. Something that does this > > with node and LC would indeed be the bees knees. > > > > > > http://www.hanselman.com/blog/ItsJustASoftwareIssueEdgejsBri > ngsNodeAndNETTogetherOnThreePlatforms.aspx > > > > Specifically the part about it allowing us to write node extensions in C# > > in addition to the standard C and C++ way of doing it. I'd love to be > able > > to hook node into extensions written in livecode. > > > > > > On Tue, Apr 7, 2015 at 12:24 PM Richard Gaskin < > ambassador at fourthworld.com > > > > > wrote: > > > > > David Bovill wrote: > > > > > > > OK. A few questions... I'll post them as assertions to aid clarity. > > > > > > Personally I find it clearer to read questions as questions, but with > > > that explanation I can work with this: > > > > > > > 1. Livecode messaging is fully asynchronous. Not semi-async. > > > > > > What is "semi-asynchronous" in the context of LC? > > > > > > There is a distinction between "asynchronous" and "non-blocking" that > > > I'm not entirely clear on, so I'll use "non-blocking" for now: > > > > > > Socket I/O messaging can be non-blocking when the "with " > > > option is used, e.g.: > > > > > > accept connections on port 8888 with message "GotConnection" > > > > > > But this is of limited value within a single LC instance, since doing > > > anything with that message is likely going to involve blocking code > > > (e.g., reading a file or accessing a database, doing something with > that > > > data, and then returning it). > > > > > > So messages will keep coming in, but they'll queue up. This may be > fine > > > for light loads, but when expecting multiple simultaneous connections > it > > > would be ideal to handle the tasks more independently. > > > > > > Many programs do this with threading, but we don't have threading in > LC. > > > > > > Instead of multithreading we can use multiprocessing, having multiple > > > instances of LC apps each working on a separate task. > > > > > > The challenge is that to hand off a socket request to a child process > > > entirely would require us to have some way of handing over the socket > > > connection itself. I believe fork allows this, but I know of no way to > > > launch new instances of an LC app in a way that will hand over the > > > socket connection to them. > > > > > > In lieu of being able to fork, two options I know of are the ones I > > > noted earlier; others may be possible as well, but these seem common > > > enough to be reasonable starting points: > > > > > > > > > > > > > > > > > 2. There are a bunch of functions that are currently synchronous > in > > > > LiveCode that make it difficult to create asynchronous code - such > as > > > > certain network call like POST. > > > > > > Yes, as above. > > > > > > > > > > 3. Livecode does not have closures = passing anonymous callbacks > as > > > > params to functions so they can be executed later > > > > > > Not per se, but as you note: > > > > > > > 4. But we can easily call / dispatch calls to functions by passing > > > > names around and we can limit scope by using private handlers or > > > > libraries. > > > > > > > > Here is an article about why you should not use anonymous callbacks > > > > that seems interesting in the context of readabiity and literate > > > > programming languages: > > > > > > > > * Avoiding anonymous JavaScript functions > > > > http://toddmotto.com/avoiding-anonymous-javascript-functions/ > > > > > > Good find. While most of that is very JS-specific, the > > > readability/complexity argument applies in LC well. As a general rule, > > > I feel that "do" is a last resort when all more direct means of > > > accomplishing something have been exhausted, and even "dispatch", > > > "send", and "value" can have similar impact in terms of > > > debugging/maintenance. > > > > > > I almost never use "do" anywhere, and on servers I limit use of the > > > others for another reason not mentioned in the article, security: since > > > they execute arbitrary code by design, "do", "dispatch", "send" and > > > "value" can potentially be sources of injection when used on any part > of > > > incoming data. > > > > > > I use "dispatch" in one place in my server framework, but only after > > > checking an incoming command argument against a list of known one-word > > > commands; any request missing a command parameter, or having one not > > > found on that list, returns an "invalid command" error message. > > > > > > -- > > > Richard Gaskin > > > Fourth World Systems > > > Software Design and Development for the Desktop, Mobile, and the Web > > > ____________________________________________________________________ > > > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Wed Apr 8 09:47:01 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 08 Apr 2015 15:47:01 +0200 Subject: https in browser on iOS broken? Message-ID: <55253155.1020709@economy-x-talk.com> Hi, Has anyone had problems with https connections on iOS? I try to load web sites using the https protocol. They seem to load, but they don't render. The console gives me the following error: 08-04-15 15:03:12 com.apple.Dock.agent[316] Wed Apr 8 15:03:12 MacBook.local Dock[316] : kCGErrorInvalidConnection: CGSGetWindowTags: Invalid connection Does this look familiar to anyone? -- 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/ From andrew at ctech.me Wed Apr 8 09:47:40 2015 From: andrew at ctech.me (Andrew Kluthe) Date: Wed, 08 Apr 2015 13:47:40 +0000 Subject: LiveNode Server In-Reply-To: References: <552412CC.4080707@fourthworld.com> Message-ID: To clarify just a little bit further. The code and objects weren't holding onto memory, the variables used in that code were due to weird scoping. Big chunks of db results, etc that persist after I've already done my business with them and tried to move on. If I can recommend a book on Javascript, I can't speak highly enough of the insights given by "JavsScript: the Good Parts" from O'Reilly. He provides some history behind some of the design choices in javascript and some of the problems still being worked around today in regards to the bad parts. On Wed, Apr 8, 2015 at 8:41 AM Andrew Kluthe wrote: > I haven't had many problems with livecode chewing up memory and not > letting it go (unless I've done something obvious like stash it someplace > where I would expect it to persist). I think JS in general is prone to > memory leaks just because of how much of it was designed around the use of > global variables. All the scoping improvements we've had over the years > were kind of grafted on top of this design to try and address this. > > In Livecode, memory leaks happen if you are really reckless. > > In most of the JS environments (node, browsers), they happen when you > aren't careful. > > On Wed, Apr 8, 2015 at 4:54 AM David Bovill wrote: > >> Thanks for this Andrew - I learned a lot. I spend a lot of time passing >> messages around Livecode objects with a view to making them standalone >> code >> chunks. Debugging works pretty well - but there was a need for a library >> and a graphing mechanism - design pattern style. This all adds overhead I >> guess when it comes to just reading code, and the design patterns for >> callbacks that closures seem to encourage makes this easier by itself? >> >> One thing that would be good to know more about with regard to Livecode is >> the memory handling - so when does a peice of code get released from >> memory? My understanding is that it does not - except possibly when the >> stack it resides in is "deleted" from memory? >> >> Otherwise my understanding is that like with Hypercard the script is >> compiled to bytecode the first time it is executed (which is a relatively >> slow step), but thereafter resides in memory to be executed when needed. >> Is >> that about right? >> >> It makes me think of an architecture in Livecode using [[dispatch]] where >> a >> stack is loaded that contains the needed code should the dispatch call not >> be handled by the message hierarchy - by default this stack could be >> deleted after it is called - so releasing it from memory. Commonly called >> handlers could be loaded before hand by a different command and therfore >> stay in memory. >> >> >> On 7 April 2015 at 21:21, Andrew Kluthe wrote: >> >> > >>1. Livecode messaging is fully asynchronous. Not semi-async. >> > >> > Right, when I said semi-async I was referring to the single >> threadedness of >> > livecode (which node shares) along with all the baked into livecode >> stuff >> > that blocks up messages currently: accessing a large file on disk, >> posting >> > some information to a web service with a large json payload being >> returned. >> > It's async, with some pretty hard to work around exceptions (url library >> > specifically has been the primary source of past frustration in this >> way). >> > >> > >>3. Livecode does not have closures = passing anonymous callbacks as >> > params to functions so they can be executed later >> > >> > As for anonymous callbacks, I totally agree. Most early Node development >> > had to overcome the callback hell that these patterns introduce. >> However, >> > almost all of the nodejs projects and libraries I've worked with >> leveraged >> > them heavily or exclusively. Promsies seem to have become the standard >> way >> > of dealing with the callback hell that node was so famous for for a long >> > time. Why does node use anonymous functions over the method you linked >> to >> > in the article? Anonymous functions are marked for garbage collection >> > immediately after being returned. All other functions at the global >> scope >> > run the risk of needlessly using memory after they run. I've gotten into >> > some hairy situations with memory management with these kinds of named >> > callbacks (specifically for database access and return of lots of >> results >> > when not scoped correctly). >> > >> > Passing a function (not just a name of a function to be used with a >> send or >> > a dispatch later on) as a parameter even in your article still >> demonstrates >> > something LC just can't do currently. In the article he's still using >> > closures, it's just got a name instead of being anonymous. It's still a >> > closure. LC has ways to accomplish similar things by passing names of >> > functions and using dispatch, but I think it's not exactly the same. >> > Closures are part of the reason node.js works the way it does and >> closures >> > are one of the pirmary reasons javascript was chosen for node. It's >> > certainly possible to do async without them, but closures are what >> makes it >> > easy and kind of a fundamental principle to working in node.js. >> > >> > >>4. But we can easily call / dispatch calls to functions by passing >> names >> > around and we can limit scope by using private handlers or libraries. >> > >> > Sure, there is nothing STOPPING us from implementing named callbacks in >> the >> > current fashion or passing the named callback references dynamically as >> you >> > and I mentioned, but from experience trying it this way I feel like it >> > makes maintaining large projects built this way a lot more difficult. To >> > the point where I ended up completely redoing most of the livecode stuff >> > I've written in this way early on because it was getting to be a >> nightmare >> > to maintain a completely separate callback functions rather than the >> sort >> > of nested structure you get in node with callbacks. It takes a lot of >> > discipline in placement and grouping of the code that is related in this >> > way to come back later and make sense of it. In summary: it can be done, >> > but that doesn't mean that it SHOULD be done. >> > >> > Kind of a weird long post there. Sorry for the length and probable >> > repetition of my points. >> > >> > >> > Also, this was something really neat I've used recently to make node >> work >> > in-process with some .NET applications we have. Something that does this >> > with node and LC would indeed be the bees knees. >> > >> > >> > http://www.hanselman.com/blog/ItsJustASoftwareIssueEdgejsBri >> ngsNodeAndNETTogetherOnThreePlatforms.aspx >> > >> > Specifically the part about it allowing us to write node extensions in >> C# >> > in addition to the standard C and C++ way of doing it. I'd love to be >> able >> > to hook node into extensions written in livecode. >> > >> > >> > On Tue, Apr 7, 2015 at 12:24 PM Richard Gaskin < >> ambassador at fourthworld.com >> > > >> > wrote: >> > >> > > David Bovill wrote: >> > > >> > > > OK. A few questions... I'll post them as assertions to aid clarity. >> > > >> > > Personally I find it clearer to read questions as questions, but with >> > > that explanation I can work with this: >> > > >> > > > 1. Livecode messaging is fully asynchronous. Not semi-async. >> > > >> > > What is "semi-asynchronous" in the context of LC? >> > > >> > > There is a distinction between "asynchronous" and "non-blocking" that >> > > I'm not entirely clear on, so I'll use "non-blocking" for now: >> > > >> > > Socket I/O messaging can be non-blocking when the "with " >> > > option is used, e.g.: >> > > >> > > accept connections on port 8888 with message "GotConnection" >> > > >> > > But this is of limited value within a single LC instance, since doing >> > > anything with that message is likely going to involve blocking code >> > > (e.g., reading a file or accessing a database, doing something with >> that >> > > data, and then returning it). >> > > >> > > So messages will keep coming in, but they'll queue up. This may be >> fine >> > > for light loads, but when expecting multiple simultaneous connections >> it >> > > would be ideal to handle the tasks more independently. >> > > >> > > Many programs do this with threading, but we don't have threading in >> LC. >> > > >> > > Instead of multithreading we can use multiprocessing, having multiple >> > > instances of LC apps each working on a separate task. >> > > >> > > The challenge is that to hand off a socket request to a child process >> > > entirely would require us to have some way of handing over the socket >> > > connection itself. I believe fork allows this, but I know of no way >> to >> > > launch new instances of an LC app in a way that will hand over the >> > > socket connection to them. >> > > >> > > In lieu of being able to fork, two options I know of are the ones I >> > > noted earlier; others may be possible as well, but these seem common >> > > enough to be reasonable starting points: >> > > > 213208.html> >> > > >> > > >> > > >> > > > 2. There are a bunch of functions that are currently synchronous >> in >> > > > LiveCode that make it difficult to create asynchronous code - such >> as >> > > > certain network call like POST. >> > > >> > > Yes, as above. >> > > >> > > >> > > > 3. Livecode does not have closures = passing anonymous callbacks >> as >> > > > params to functions so they can be executed later >> > > >> > > Not per se, but as you note: >> > > >> > > > 4. But we can easily call / dispatch calls to functions by >> passing >> > > > names around and we can limit scope by using private handlers or >> > > > libraries. >> > > > >> > > > Here is an article about why you should not use anonymous callbacks >> > > > that seems interesting in the context of readabiity and literate >> > > > programming languages: >> > > > >> > > > * Avoiding anonymous JavaScript functions >> > > > http://toddmotto.com/avoiding-anonymous-javascript-functions/ >> > > >> > > Good find. While most of that is very JS-specific, the >> > > readability/complexity argument applies in LC well. As a general >> rule, >> > > I feel that "do" is a last resort when all more direct means of >> > > accomplishing something have been exhausted, and even "dispatch", >> > > "send", and "value" can have similar impact in terms of >> > > debugging/maintenance. >> > > >> > > I almost never use "do" anywhere, and on servers I limit use of the >> > > others for another reason not mentioned in the article, security: >> since >> > > they execute arbitrary code by design, "do", "dispatch", "send" and >> > > "value" can potentially be sources of injection when used on any part >> of >> > > incoming data. >> > > >> > > I use "dispatch" in one place in my server framework, but only after >> > > checking an incoming command argument against a list of known one-word >> > > commands; any request missing a command parameter, or having one not >> > > found on that list, returns an "invalid command" error message. >> > > >> > > -- >> > > Richard Gaskin >> > > Fourth World Systems >> > > Software Design and Development for the Desktop, Mobile, and the Web >> > > ____________________________________________________________ >> ________ >> > > Ambassador at FourthWorld.com >> http://www.FourthWorld.com >> > > >> > > _______________________________________________ >> > > use-livecode mailing list >> > > use-livecode at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From alanstenhouse at hotmail.com Wed Apr 8 10:42:29 2015 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Wed, 8 Apr 2015 16:42:29 +0200 Subject: hide / show oddities ? Message-ID: There were some posts on this list about 4 months ago re: hide/show objects strangeness (http://runtime-revolution.278305.n4.nabble.com/hide-show-oddities-td4686263.html). Having struck this today on a project I?ve come to the conclusion that it?s something to do with the graphics caching that is being used when we have acceleratedRendering set to true. In our case, we had some scrolling groups with subgroups in which each contained buttons that may be shown or hidden at times. It appeared as though these weren?t being updated, however, if the overall containing group wasn?t visible. Once it was made visible however, scrolling the group would update all the child objects ok. However, that?s not good enough? So the solution for now, on entry to this card, is to turn acceleratedRendering off, which presumably disables the graphics caching, and all objects are now updated correctly. Yet to be seen is the effect this may have on other bits that perhaps need the better graphics performance? So if you?re also seeing strange behaviour with hide/show or setting the visible property, try turning off acceleratedRendering to see if that helps. (I?d already tried setting the layerMode and it didn?t seem to help). HTH someone. cheers Alan -- Alan Stenhouse alanstenhouse at hotmail.com Check out our apps on the App Store: BeatSpeak - the multilingual talking metronome EV-Point - Find your nearest Electric Vehicle Recharge Station. Re-Collections - Make your family history come to life. Every picture tells your story. From bogdanoff at me.com Wed Apr 8 11:18:46 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 08 Apr 2015 08:18:46 -0700 Subject: Current Player Bugs in LC 7 In-Reply-To: <1428441823279-4690909.post@n4.nabble.com> References: <6BAEC3DD-E39B-4E6E-8771-587A9321930A@me.com> <1428441823279-4690909.post@n4.nabble.com> Message-ID: <9ABBC7CA-7546-4B5F-AF33-434153035DF1@me.com> Thanks, Tom. This explanation makes sense?the fixes are being rolled into LC 8, rather than 7. However this leaves 7 with a broken player. Peter On Apr 7, 2015, at 2:23 PM, tbodine wrote: > Hi Peter. > > I know quite a few of us are anxious to see a break in the log jam regarding > the multimedia player. My takeaway from the webinar last month was that many > issues would clear up when the LC8 multimedia player widget rolls out. It > will replace obsolete code -- no doubt the source of many bugs -- by > wrapping AV foundation on Mac, Windows 8 multimedia on Win, etc. to > modernize multimedia in LC. My notes say "the team expects to write this > very quickly once the underlying support is there." > > So, there's hope. > Tom Bodine > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Current-Player-Bugs-in-LC-7-tp4690887p4690909.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Apr 8 11:23:01 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 08 Apr 2015 18:23:01 +0300 Subject: Current Player Bugs in LC 7 In-Reply-To: <9ABBC7CA-7546-4B5F-AF33-434153035DF1@me.com> References: <6BAEC3DD-E39B-4E6E-8771-587A9321930A@me.com> <1428441823279-4690909.post@n4.nabble.com> <9ABBC7CA-7546-4B5F-AF33-434153035DF1@me.com> Message-ID: <552547D5.3060701@gmail.com> On 08/04/15 18:18, Peter Bogdanoff wrote: > Thanks, Tom. > > This explanation makes sense?the fixes are being rolled into LC 8, rather than 7. However this leaves 7 with a broken player. The problem with this is that we seem to have a series of Beta versions; the 6.7 line, the 7.0 line and now the 8.0 line; all introducing jazzy new things. However, however jazzy those new things might be, it might not be a bad thing to have a rock-solid version to be going on with while all those Beta versions get sorted out. Richmond. > > Peter > > On Apr 7, 2015, at 2:23 PM, tbodine wrote: > >> Hi Peter. >> >> I know quite a few of us are anxious to see a break in the log jam regarding >> the multimedia player. My takeaway from the webinar last month was that many >> issues would clear up when the LC8 multimedia player widget rolls out. It >> will replace obsolete code -- no doubt the source of many bugs -- by >> wrapping AV foundation on Mac, Windows 8 multimedia on Win, etc. to >> modernize multimedia in LC. My notes say "the team expects to write this >> very quickly once the underlying support is there." >> >> So, there's hope. >> Tom Bodine >> >> >> >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Current-Player-Bugs-in-LC-7-tp4690887p4690909.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Wed Apr 8 11:28:56 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 8 Apr 2015 23:28:56 +0800 Subject: [OT] Market Share Message-ID: It's normally Richard who comes out with the OS Market Share figures and I must admit I normally sort of switch off at that point because I've sorta heard it all before - OS X is an ever so small number. I mean, some of us like chocolate and others strawberry and no amount of statistics is going to make that change. I use what I like, you use what suits you. For reasons I can't explain I always thought that amongst 'real programmers' the statistics would be even worse, Windows the majority, Linux steamrollering ahead, and OS X a very distant and poor cousin. So I found these figures... well unbelievable: http://stackoverflow.com/research/developer-survey-2015#tech-os Then again you can use statistics to argue anything. Maybe these numbers suggest that there's just a lot of confused programmers seeking answers on OS X ;-) From ambassador at fourthworld.com Wed Apr 8 12:12:08 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 08 Apr 2015 09:12:08 -0700 Subject: [OT] Market Share In-Reply-To: References: Message-ID: <55255358.9070602@fourthworld.com> Kay C Lan wrote: > It's normally Richard who comes out with the OS Market Share figures > and I must admit I normally sort of switch off at that point because > I've sorta heard it all before - OS X is an ever so small number. I > mean, some of us like chocolate and others strawberry and no amount > of statistics is going to make that change. I use what I like, you > use what suits you. Agreed. To clarify, I usually bring up OS stats only in response to the perennial "Why doesn't LiveCode support Amiga/BeOS/someOtherDefunctSystem?" stuff that comes up from time to time. Like most Linux users I know, though I may prefer it myself I'm not nearly as evangelical about such things as I used to be when I used Macs exclusively. After all, one of the great things about LiveCode is that it liberates us from the whims of any single OS vendor, so everyone can develop on whatever they prefer and still deploy to all. So while market share stats should rightfully have zero impact on anyone's personal choices, they're useful for developers in assessing potential ROI. But even then their value is limited. No matter how you slice it, the desktop is always a Windows story, with both OS X and Linux relative niches. And there's more to the story than a single data point of market share: OS X tends to attract an audience of higher-than-average disposable income, and Linux tends to attract an audience of code contributors, so each offers something uniquely valuable beyond market share alone. > For reasons I can't explain I always thought that amongst 'real > programmers' the statistics would be even worse, Windows the majority, > Linux steamrollering ahead, and OS X a very distant and poor cousin. > So I found these figures... well unbelievable: > > http://stackoverflow.com/research/developer-survey-2015#tech-os Developer-centric stats like those may be especially interesting to those who make developer tools. That's a good find - I haven't come across it before, usually looking to w3schools for dev stats: The w3schools stats are very different in specifics, but not all that different in terms of the overall story of Windows dominance with Mac and Linux playing minor roles: 2015 Win8 Win7 Vista NT* WinXP Linux Mac Mobile February 21.3% 52.5% 0.8% 0.4% 4.5% 5.4% 10.0% 5.0% There the Mac share is roughly proportionate to total market share, while the Linux share is much higher than the frequently-cited "1%", a healthy reminder that reliable Linux stats are unusually hard to come by given the mix of usage patterns coupled with the way log aggregation sites that come up with the mythic "1%" figure admittedly alter their data. But either way, Linux isn't taking over the desktop any time soon, and neither is Mac. But thankfully none of that affects our own personal preferences, and all three are good viable choices for working with LiveCode. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Wed Apr 8 12:33:22 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 8 Apr 2015 09:33:22 -0700 Subject: When is a stack "dirty"? Message-ID: After several years of using Livecode, I still don't understand how the IDE decides when a stack needs to be saved when I quit from it. As an example, if I delete a substack by script then quit, the stack isn't saved. If I change the vale of a custom property by script then quit, the stack isn't saved. Same thing happens if I add a new substack by script. And if I change the value of a custom property by script. Surely the IDE should be aware that a save is needed in those circumstances? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dochawk at gmail.com Wed Apr 8 12:46:40 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 8 Apr 2015 09:46:40 -0700 Subject: unable to install 7.0.4-rc3 on vista Message-ID: I don't use this machine a lot, but it's my backup, and my retina is in pieces. the 7.0.4-rc3 installer removed rc2, and failed to install 3--it hangs until windows stops it. I've tried multiple times. Has anyone solved this? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Wed Apr 8 12:50:47 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 8 Apr 2015 09:50:47 -0700 Subject: [OT] Market Share In-Reply-To: <55255358.9070602@fourthworld.com> References: <55255358.9070602@fourthworld.com> Message-ID: On Wed, Apr 8, 2015 at 9:12 AM, Richard Gaskin wrote: > But either way, Linux isn't taking over the desktop any time soon, and > neither is Mac I dropped the original version of my program in '91 or '92, as it was HyperCard/SuperCard dependent, and mac only made about a 1% intrusion into law offices. (Had I known that supercard would ship a dos/windows version a year later, I would probably be the big player in the field today, instead of BestCase). Today, at least around here, iPhone is the strong majority for lawyers, and iPad is far more common that other tablets. Macs have followed them in. Today, over half of the laptops I see with lawyrs at court are mac . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Wed Apr 8 13:04:13 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 8 Apr 2015 10:04:13 -0700 Subject: https in browser on iOS broken? In-Reply-To: <55253155.1020709@economy-x-talk.com> References: <55253155.1020709@economy-x-talk.com> Message-ID: Possibly related. I haven't tested recently but accessing DropBox directories which use https has stopped working since older versions of LC. I think Pete may have logged a bug report on this. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design > On Apr 8, 2015, at 6:47 AM, Mark Schonewille wrote: > > Hi, > > Has anyone had problems with https connections on iOS? I try to load web sites using the https protocol. They seem to load, but they don't render. > > The console gives me the following error: > > 08-04-15 15:03:12 com.apple.Dock.agent[316] Wed Apr 8 15:03:12 MacBook.local Dock[316] : kCGErrorInvalidConnection: CGSGetWindowTags: Invalid connection > > Does this look familiar to anyone? > > -- > 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/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Wed Apr 8 13:27:54 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 8 Apr 2015 13:27:54 -0400 Subject: When is a stack "dirty"? In-Reply-To: References: Message-ID: <14c9a12eeb6-6d1f-862d@webprd-m75.mail.aol.com> I agree. Even if you put data into a field externally, say from the msg box, you are not asked to save the stack upon closing. Craig -----Original Message----- From: Peter Haworth To: How to use LiveCode Sent: Wed, Apr 8, 2015 12:35 pm Subject: When is a stack "dirty"? After several years of using Livecode, I still don't understand how the IDE decides when a stack needs to be saved when I quit from it. As an example, if I delete a substack by script then quit, the stack isn't saved. If I change the vale of a custom property by script then quit, the stack isn't saved. Same thing happens if I add a new substack by script. And if I change the value of a custom property by script. Surely the IDE should be aware that a save is needed in those circumstances? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Wed Apr 8 13:31:32 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 08 Apr 2015 19:31:32 +0200 Subject: https in browser on iOS broken? In-Reply-To: References: <55253155.1020709@economy-x-talk.com> Message-ID: <552565F4.1050801@economy-x-talk.com> Thanks Scott. Good to know that I'm not the only one. I couldn't find any reports about this problem and I have reported it as bug 15182. -- 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 4/8/2015 19:04, Scott Rossi wrote: > Possibly related. I haven't tested recently but accessing DropBox directories which use https has stopped working since older versions of LC. I think Pete may have logged a bug report on this. > > Regards, > > Scott Rossi > Creative Director > Tactile Media UX/UI Design > >> On Apr 8, 2015, at 6:47 AM, Mark Schonewille wrote: >> >> Hi, >> >> Has anyone had problems with https connections on iOS? I try to load web sites using the https protocol. They seem to load, but they don't render. >> >> The console gives me the following error: >> >> 08-04-15 15:03:12 com.apple.Dock.agent[316] Wed Apr 8 15:03:12 MacBook.local Dock[316] : kCGErrorInvalidConnection: CGSGetWindowTags: Invalid connection >> >> Does this look familiar to anyone? >> >> -- >> 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/ From jacque at hyperactivesw.com Wed Apr 8 13:40:24 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 08 Apr 2015 12:40:24 -0500 Subject: When is a stack "dirty"? In-Reply-To: References: Message-ID: <55256808.1020601@hyperactivesw.com> On 4/8/2015 11:33 AM, Peter Haworth wrote: > After several years of using Livecode, I still don't understand how the IDE > decides when a stack needs to be saved when I quit from it. > > As an example, if I delete a substack by script then quit, the stack isn't > saved. If I change the vale of a custom property by script then quit, the > stack isn't saved. Same thing happens if I add a new substack by script. > And if I change the value of a custom property by script. > > Surely the IDE should be aware that a save is needed in those > circumstances? Basically it knows you made a change when you do something manually. Changing anything by script is sent directly to the engine and the IDE doesn't know about it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rdimola at evergreeninfo.net Wed Apr 8 13:52:30 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 8 Apr 2015 13:52:30 -0400 Subject: Import as image as control. Where is it? In-Reply-To: <55256808.1020601@hyperactivesw.com> References: <55256808.1020601@hyperactivesw.com> Message-ID: <007e01d07224$c8e2a4b0$5aa7ee10$@net> I have an image control that was created by "Import image as control". In some cases I want to change the image to one located on disk and then back to the original. In the property inspector the filename is empty. Where is the imported image and how do I reference it? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From klaus at major-k.de Wed Apr 8 13:59:04 2015 From: klaus at major-k.de (Klaus major-k) Date: Wed, 8 Apr 2015 19:59:04 +0200 Subject: Import as image as control. Where is it? In-Reply-To: <007e01d07224$c8e2a4b0$5aa7ee10$@net> References: <55256808.1020601@hyperactivesw.com> <007e01d07224$c8e2a4b0$5aa7ee10$@net> Message-ID: <883AAE82-D3CE-4CCF-A119-8FEEC5D097CD@major-k.de> Hi Ralph, > Am 08.04.2015 um 19:52 schrieb Ralph DiMola : > > I have an image control that was created by "Import image as control". In > some cases I want to change the image to one located on disk and then back > to the original. In the property inspector the filename is empty. Where is > the imported image and how do I reference it? "Import image as control? will put a copy of the image file into your stack, so there is no reference to the file on disk anymore. Do like this: 1. Set the filename of your image to the modified file on disk 2. Then later use the message box: put url("binfile:" & the filename of img "Your image here?) into img "Your image here? > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From pete at lcsql.com Wed Apr 8 14:15:02 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 8 Apr 2015 11:15:02 -0700 Subject: When is a stack "dirty"? In-Reply-To: <55256808.1020601@hyperactivesw.com> References: <55256808.1020601@hyperactivesw.com> Message-ID: Couldn't the engine let the IDE know that a stack needs to be saved? I can't think of any other program I use where it's my responsibility to ensure I save any changes I make. It really makes LC look outdated. I think there's a global property in the IDE that indicates whether a stack needs saving or not. I guess I'll have to change my scripts to set it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 8, 2015 at 10:40 AM, J. Landman Gay wrote: > On 4/8/2015 11:33 AM, Peter Haworth wrote: > >> After several years of using Livecode, I still don't understand how the >> IDE >> decides when a stack needs to be saved when I quit from it. >> >> As an example, if I delete a substack by script then quit, the stack >> isn't >> saved. If I change the vale of a custom property by script then quit, the >> stack isn't saved. Same thing happens if I add a new substack by script. >> And if I change the value of a custom property by script. >> >> Surely the IDE should be aware that a save is needed in those >> circumstances? >> > > Basically it knows you made a change when you do something manually. > Changing anything by script is sent directly to the engine and the IDE > doesn't know about it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Wed Apr 8 14:27:52 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 8 Apr 2015 14:27:52 -0400 Subject: When is a stack "dirty"? In-Reply-To: References: <55256808.1020601@hyperactivesw.com> Message-ID: <009f01d07229$b9fc2700$2df47500$@net> >Peter Haworth Wrote: >I can't think of any other program I use where it's my responsibility to ensure I save any changes I make. I agree. The other day I changed a custom property and exited out of LC and it did not ask to save as I expected. So I restarted LC made the change again then saved manually and closed LC. Took me by surprise. Any change at all to the stack or any sub stacks should set the IDE dirty flag. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From livfoss at mac.com Wed Apr 8 14:28:38 2015 From: livfoss at mac.com (Graham Samuel) Date: Wed, 08 Apr 2015 20:28:38 +0200 Subject: Database error? Message-ID: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> I?m profoundly ignorant of databases in general and the way LC talks to MySQL databases in particular. Gregg Flora gave me a script for a handler which communicates with a mySQL database I thought I?d created using the On-Rev cPanel: but when I query it by running the script I get this error: > Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) I am 99 percent certain that I have the name of the host, the database itself and the user all correct, plus the correct password for that user. Perhaps the creation process didn?t really created the database (although the cPanel display says it did). Can anyone suggest what I should do next? TIA Graham From rdimola at evergreeninfo.net Wed Apr 8 14:37:54 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 8 Apr 2015 14:37:54 -0400 Subject: Import as image as control. Where is it? In-Reply-To: <883AAE82-D3CE-4CCF-A119-8FEEC5D097CD@major-k.de> References: <55256808.1020601@hyperactivesw.com> <007e01d07224$c8e2a4b0$5aa7ee10$@net> <883AAE82-D3CE-4CCF-A119-8FEEC5D097CD@major-k.de> Message-ID: <00a001d0722b$20af1650$620d42f0$@net> Klaus, I don't think I get it. 2 questions: How is...... Set the filename of your image to the modified file on disk Different from....... put url("binfile:" & the filename of img "Your image here?) into img "Your image here? This is for a mobile app. So even though the stack is carrying the weight of the imported image I still need to put the original imported image into the copy file pane of the standalone setting if I want change it and then return to the original image? Thanks!! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Klaus major-k Sent: Wednesday, April 08, 2015 1:59 PM To: How to use LiveCode Subject: Re: Import as image as control. Where is it? Hi Ralph, > Am 08.04.2015 um 19:52 schrieb Ralph DiMola : > > I have an image control that was created by "Import image as control". > In some cases I want to change the image to one located on disk and > then back to the original. In the property inspector the filename is > empty. Where is the imported image and how do I reference it? "Import image as control? will put a copy of the image file into your stack, so there is no reference to the file on disk anymore. Do like this: 1. Set the filename of your image to the modified file on disk 2. Then later use the message box: put url("binfile:" & the filename of img "Your image here?) into img "Your image here? > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Apr 8 14:38:50 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 08 Apr 2015 13:38:50 -0500 Subject: When is a stack "dirty"? In-Reply-To: References: <55256808.1020601@hyperactivesw.com> Message-ID: <552575BA.1010308@hyperactivesw.com> On 4/8/2015 1:15 PM, Peter Haworth wrote: > Couldn't the engine let the IDE know that a stack needs to be saved? I'd think so. It would be a good feature request. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Wed Apr 8 15:08:00 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 8 Apr 2015 12:08:00 -0700 Subject: When is a stack "dirty"? In-Reply-To: <552575BA.1010308@hyperactivesw.com> References: <55256808.1020601@hyperactivesw.com> <552575BA.1010308@hyperactivesw.com> Message-ID: QCC # 15184 Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 8, 2015 at 11:38 AM, J. Landman Gay wrote: > On 4/8/2015 1:15 PM, Peter Haworth wrote: > >> Couldn't the engine let the IDE know that a stack needs to be saved? >> > > I'd think so. It would be a good feature request. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From stephenREVOLUTION2 at barncard.com Wed Apr 8 15:25:41 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 8 Apr 2015 12:25:41 -0700 Subject: [OT] Market Share In-Reply-To: References: Message-ID: On Wed, Apr 8, 2015 at 8:28 AM, Kay C Lan wrote: > Then again you can use statistics to argue anything. Maybe these numbers > suggest that there's just a lot of confused programmers seeking answers on > OS X ;-) > Nah. The main reason, I assume, is because it's the only hardware platform that can run every other platform, all in one box. Also the quality of the hardware is quality and consistent. And sometimes it's not worth it to switch around, just develop in the native OS to the hardware, and use the other OSs in virtual for testing. -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From shawnblc at me.com Wed Apr 8 15:14:16 2015 From: shawnblc at me.com (shawnlc) Date: Wed, 8 Apr 2015 12:14:16 -0700 (PDT) Subject: Database error? In-Reply-To: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> Message-ID: <1428520456595-4690941.post@n4.nabble.com> If I remember right MySQL (at least on Cpanel servers) require the database name to be: username_databaseName. You may already realize that, but I'm gonna throw it out there in an attempt to assist :) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Database-error-tp4690936p4690941.html Sent from the Revolution - User mailing list archive at Nabble.com. From stephenREVOLUTION2 at barncard.com Wed Apr 8 15:29:31 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 8 Apr 2015 12:29:31 -0700 Subject: When is a stack "dirty"? In-Reply-To: References: Message-ID: On Wed, Apr 8, 2015 at 9:33 AM, Peter Haworth wrote: > Surely the IDE should be aware that a save is needed in those > circumstances? > I never thought about it. I save save save save all the time anyway and never trusted the IDE to remind me. -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From klaus at major-k.de Wed Apr 8 15:47:03 2015 From: klaus at major-k.de (Klaus major-k) Date: Wed, 8 Apr 2015 21:47:03 +0200 Subject: Import as image as control. Where is it? In-Reply-To: <00a001d0722b$20af1650$620d42f0$@net> References: <55256808.1020601@hyperactivesw.com> <007e01d07224$c8e2a4b0$5aa7ee10$@net> <883AAE82-D3CE-4CCF-A119-8FEEC5D097CD@major-k.de> <00a001d0722b$20af1650$620d42f0$@net> Message-ID: <88EE670B-1529-403A-A69D-205B1DD7C364@major-k.de> Hi Ralph, > Am 08.04.2015 um 20:37 schrieb Ralph DiMola : > > Klaus, > I don't think I get it. 2 questions: > > How is...... > Set the filename of your image to the modified file on disk this will only reference the external image file. > Different from....... > put url("binfile:" & the filename of img "Your image here?) into img "Your image here? this will put a copy of that file on disk into the existing image object (again). Just like ?Import as control? does. > This is for a mobile app. So even though the stack is carrying the weight of the imported image I still need to put the original imported image into the copy file pane of the standalone setting if I want change it and then return to the original image? No! Once the image has been ?imported?, what: put url(?bifile: ? into image XYZ does) you do not need the image file, since it is not referenced anymore. Hope that helps! :-) > Thanks!! > > Ralph DiMola > Subject: Re: Import as image as control. Where is it? > > Hi Ralph, > >> Am 08.04.2015 um 19:52 schrieb Ralph DiMola : >> >> I have an image control that was created by "Import image as control". >> In some cases I want to change the image to one located on disk and >> then back to the original. In the property inspector the filename is >> empty. Where is the imported image and how do I reference it? > > "Import image as control? will put a copy of the image file into your stack, so there is no reference to the file on disk anymore. > > Do like this: > 1. Set the filename of your image to the modified file on disk 2. Then later use the message box: > put url("binfile:" & the filename of img "Your image here?) into img "Your image here? > >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From rdimola at evergreeninfo.net Wed Apr 8 15:58:09 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 8 Apr 2015 15:58:09 -0400 Subject: Database error? In-Reply-To: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> Message-ID: <00ad01d07236$563cccd0$02b66670$@net> Graham, I use these parameters when opening the MySQL DB. This works for IDE PC, IDE Mac and mobile. revOpenDatabase("mysql", "yourdomain.on-rev.com" ,"cpanelusername_DatabaseName" ,"cpanelusername_MyPHPadminDBusername" ,"Password for yPHPadminDBusername" ,,,,true) Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From pete at lcsql.com Wed Apr 8 16:05:14 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 8 Apr 2015 13:05:14 -0700 Subject: When is a stack "dirty"? In-Reply-To: References: Message-ID: Well I think that's my problem - I should be able to trust the IDE :-) Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 8, 2015 at 12:29 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > On Wed, Apr 8, 2015 at 9:33 AM, Peter Haworth wrote: > > > Surely the IDE should be aware that a save is needed in those > > circumstances? > > > > I never thought about it. > I save save save save all the time anyway and never trusted the IDE to > remind me. > > -- > Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Wed Apr 8 16:09:07 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 08 Apr 2015 22:09:07 +0200 Subject: When is a stack "dirty"? In-Reply-To: References: Message-ID: <55258AE3.4050701@economy-x-talk.com> Hi Pete, The variable gRevStackStatus["Short name of a stack"] is set to true whenever a control moves or changes as the result of user input. Messages triggering an update or gRevStackStatus are openField and focusIn for example. I think that moveControl and resizeControl are monitored too. I haven't checked which messages are monitored, for a long time. Whenever you bring a stack with a field to the front, the IDE finds the first field that has the lockText set to false and the traversalOn set to true. This field gets focus and gRevStackStatus is set to edited. Whenever you try to close a stack, or quit the IDE, LiveCode briefly sets the focus to each of the stacks that is currently visible. The first field gets the focus and thus the gRevStackStatus is set to true --if it has a field. In other words, the IDE sets gRevStackStatus to true for any stack with a field, before you close it, and you will always see a Save dialog for these stacks. If you want to prevent this from happening, you will need to write your own frontscript that handles the closeStackRequest, shutDownRequest and appleEvent messages. -- 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 4/8/2015 18:33, Peter Haworth wrote: > After several years of using Livecode, I still don't understand how the IDE > decides when a stack needs to be saved when I quit from it. > > As an example, if I delete a substack by script then quit, the stack isn't > saved. If I change the vale of a custom property by script then quit, the > stack isn't saved. Same thing happens if I add a new substack by script. > And if I change the value of a custom property by script. > > Surely the IDE should be aware that a save is needed in those > circumstances? > > > Pete From richmondmathewson at gmail.com Wed Apr 8 16:16:36 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 08 Apr 2015 23:16:36 +0300 Subject: [OT] Market Share In-Reply-To: References: Message-ID: <55258CA4.5080009@gmail.com> On 08/04/15 22:25, stephen barncard wrote: > On Wed, Apr 8, 2015 at 8:28 AM, Kay C Lan wrote: > >> Then again you can use statistics to argue anything. Maybe these numbers >> suggest that there's just a lot of confused programmers seeking answers on >> OS X ;-) >> > Nah. The main reason, I assume, is because it's the only hardware platform > that can run every other platform, all in one box. Boo to that one. I run Linux, Windows and Macintosh, due to the good offices of VMware, in an Optiplex. Richmond. > Also the quality of the hardware is quality and consistent. And sometimes > it's not worth it to switch around, just develop in the native OS to the > hardware, and use the other OSs in virtual for testing. > > -- > Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From shawnblc at me.com Wed Apr 8 16:29:31 2015 From: shawnblc at me.com (shawnlc) Date: Wed, 8 Apr 2015 13:29:31 -0700 (PDT) Subject: Database error? In-Reply-To: <1428520456595-4690941.post@n4.nabble.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> Message-ID: <1428524971274-4690948.post@n4.nabble.com> Let me add this too. In Cpanel when you create a database, you're asked to 1) create a database, 2) create a username and password for that database, and 3) assign a username to that database. This isn't necessarily the same as your Cpanel login, but can be if that's how you create your database. And as I mentioned previously, when connecting to MySQL it's username_database then your password. Of course you need your domain info. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Database-error-tp4690936p4690948.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Wed Apr 8 17:23:34 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 8 Apr 2015 14:23:34 -0700 Subject: When is a stack "dirty"? In-Reply-To: <55258AE3.4050701@economy-x-talk.com> References: <55258AE3.4050701@economy-x-talk.com> Message-ID: Thanks for the info Mark. That probably explains what is happening in my case because the substack I delete is not open at the time I delete it. What I'm thinking of doing is setting the gRevStackStatus element for the main stack of the deleted substack in my script which sounds like it should result in the IDE issuing a save prompt when I quit. I will probably have to do the same thing when, for example, I change the value of a custom property in an unopened stack. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 8, 2015 at 1:09 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Pete, > > The variable gRevStackStatus["Short name of a stack"] is set to true > whenever a control moves or changes as the result of user input. Messages > triggering an update or gRevStackStatus are openField and focusIn for > example. I think that moveControl and resizeControl are monitored too. I > haven't checked which messages are monitored, for a long time. > > Whenever you bring a stack with a field to the front, the IDE finds the > first field that has the lockText set to false and the traversalOn set to > true. This field gets focus and gRevStackStatus is set to edited. > > Whenever you try to close a stack, or quit the IDE, LiveCode briefly sets > the focus to each of the stacks that is currently visible. The first field > gets the focus and thus the gRevStackStatus is set to true --if it has a > field. > > In other words, the IDE sets gRevStackStatus to true for any stack with a > field, before you close it, and you will always see a Save dialog for these > stacks. > > If you want to prevent this from happening, you will need to write your > own frontscript that handles the closeStackRequest, shutDownRequest and > appleEvent messages. > > -- > 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 4/8/2015 18:33, Peter Haworth wrote: > >> After several years of using Livecode, I still don't understand how the >> IDE >> decides when a stack needs to be saved when I quit from it. >> >> As an example, if I delete a substack by script then quit, the stack >> isn't >> saved. If I change the vale of a custom property by script then quit, the >> stack isn't saved. Same thing happens if I add a new substack by script. >> And if I change the value of a custom property by script. >> >> Surely the IDE should be aware that a save is needed in those >> circumstances? >> >> >> Pete >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From stephenREVOLUTION2 at barncard.com Wed Apr 8 20:08:24 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 8 Apr 2015 17:08:24 -0700 Subject: [OT] Market Share In-Reply-To: <55258CA4.5080009@gmail.com> References: <55258CA4.5080009@gmail.com> Message-ID: On Wed, Apr 8, 2015 at 1:16 PM, Richmond wrote: > I run Linux, Windows and Macintosh, due to the good offices of VMware, in > an Optiplex. > Really? A virtual "hackentosh" ? you can use a stock install of Yosemite on one of those? Without some kind of 'jailbreaking' ? -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From bonnmike at gmail.com Wed Apr 8 20:16:17 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 8 Apr 2015 18:16:17 -0600 Subject: Import as image as control. Where is it? In-Reply-To: <88EE670B-1529-403A-A69D-205B1DD7C364@major-k.de> References: <55256808.1020601@hyperactivesw.com> <007e01d07224$c8e2a4b0$5aa7ee10$@net> <883AAE82-D3CE-4CCF-A119-8FEEC5D097CD@major-k.de> <00a001d0722b$20af1650$620d42f0$@net> <88EE670B-1529-403A-A69D-205B1DD7C364@major-k.de> Message-ID: if the filename property is empty, store the text of the image to a property or variable, pop in your new image, then to revert, set the text of image whatever to the text you stored in the property. If there IS a filename set, and you want to do the flippy floppy, store the filename instead, and set it back when you're done. On Wed, Apr 8, 2015 at 1:47 PM, Klaus major-k wrote: > Hi Ralph, > > > Am 08.04.2015 um 20:37 schrieb Ralph DiMola : > > > > Klaus, > > I don't think I get it. 2 questions: > > > > How is...... > > Set the filename of your image to the modified file on disk > > this will only reference the external image file. > > > Different from....... > > put url("binfile:" & the filename of img "Your image here?) into img > "Your image here? > > this will put a copy of that file on disk into the existing image object > (again). > Just like ?Import as control? does. > > > This is for a mobile app. So even though the stack is carrying the > weight of the imported image I still need to put the original imported > image into the copy file pane of the standalone setting if I want change it > and then return to the original image? > > No! > > Once the image has been ?imported?, what: put url(?bifile: ? into image > XYZ does) you do not need the image file, > since it is not referenced anymore. > > Hope that helps! :-) > > > Thanks!! > > > > Ralph DiMola > > > Subject: Re: Import as image as control. Where is it? > > > > Hi Ralph, > > > >> Am 08.04.2015 um 19:52 schrieb Ralph DiMola >: > >> > >> I have an image control that was created by "Import image as control". > >> In some cases I want to change the image to one located on disk and > >> then back to the original. In the property inspector the filename is > >> empty. Where is the imported image and how do I reference it? > > > > "Import image as control? will put a copy of the image file into your > stack, so there is no reference to the file on disk anymore. > > > > Do like this: > > 1. Set the filename of your image to the modified file on disk 2. Then > later use the message box: > > put url("binfile:" & the filename of img "Your image here?) into img > "Your image here? > > > >> Ralph DiMola > >> IT Director > >> Evergreen Information Services > >> rdimola at evergreeninfo.net > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jhj at jhj.com Wed Apr 8 21:06:28 2015 From: jhj at jhj.com (Jerry Jensen) Date: Wed, 8 Apr 2015 18:06:28 -0700 Subject: When is a stack "dirty"? In-Reply-To: References: Message-ID: > On Apr 8, 2015, at 12:29 PM, stephen barncard wrote: > > On Wed, Apr 8, 2015 at 9:33 AM, Peter Haworth wrote: > >> Surely the IDE should be aware that a save is needed in those >> circumstances? >> > > I never thought about it. > I save save save save all the time anyway and never trusted the IDE to > remind me. Me too. Save, save, save. I seem to work a lot on things that are crash-y. Not LC crashes necessarily, but hangs from drivers and other finicky external beasties. Just hitting the Apply button is enough to make me nervous. .Jerry From richmondmathewson at gmail.com Thu Apr 9 04:00:02 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 09 Apr 2015 11:00:02 +0300 Subject: [OT] Market Share In-Reply-To: References: <55258CA4.5080009@gmail.com> Message-ID: <55263182.6020708@gmail.com> On 09/04/15 03:08, stephen barncard wrote: > On Wed, Apr 8, 2015 at 1:16 PM, Richmond > wrote: > >> I run Linux, Windows and Macintosh, due to the good offices of VMware, in >> an Optiplex. >> > Really? A virtual "hackentosh" ? you can use a stock install of Yosemite on > one of those? Without some kind of 'jailbreaking' ? It took some doing. However, there are instructions on how to do it "out there" on the internet. I haven't managed with Yosemite, so have contented myself with 10.8. Richmond. > > -- > Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Apr 9 09:12:29 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 9 Apr 2015 15:12:29 +0200 Subject: Database error? In-Reply-To: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> Message-ID: <940B3CBC-3700-41C8-9211-8D31E40DD68C@m-r-d.de> Graham, i just did a quick test on Diesel, which is the server where your account is hosted, and DB connections are working. Maybe a dumb question, but are you in any case trying to connect to the MySQL DB from your Livecode App/IDE ? If so you need to 1. configure ?Remote MySQL ? in cPanel to allow the "remote access" to your DB. 2. use the following servername for connection YOURACCOUNTNAME.on-rev.com if using localhost for the server the LC app/IDE tries to connect to a MySQL DB on your computer instead of connecting to your On-Rev MySQL DB. Warning: Please be aware that configuring remoteAccess for MySQL for your on-rev account is a security risk and should be avoided. If you tried to connect from a LC server script then either your script is wrong or the On-Rev server is having some problems, maybe only with your account. Try the following script. Create a file e.g. dbtest.lc, put the sample script into it and upload it to your public_html folder and open it in your browser: http://YOURACCOUNTNAME.on-rev.com/dbtest.lc If the output is a number then connection works, otherwise you will see an error message in your browser Regards, Matthias > Am 08.04.2015 um 20:28 schrieb Graham Samuel : > >> Can't connect to local MySQL server through socket '/tmp/mysql.sock' From sebastien.nouat at livecode.com Thu Apr 9 12:05:16 2015 From: sebastien.nouat at livecode.com (sebastien) Date: Thu, 09 Apr 2015 17:05:16 +0100 Subject: Release 6.7.4 Stable / 7.0.4 Stable Message-ID: <5526A33C.4070309@livecode.com> Dear List Members, We are pleased to announce the release of LiveCode 6.7.4 and 7.0.4. This release is a stable release that is primarily a promotion of respectively LiveCode 6.7.4 RC 3 and 7.0.4 RC 3, and also contains few bug fixes for both versions. The list of bugs fixed can be found in the Release Notes. *Getting the Release* To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com *6.7.5 RC 1 / 7.0.5 RC 1* The next cycle of 6.7 and 7.0 releases should start by the end of next week. The major bug fix will be adding the possibility to use Xcode 6.3 to build iOS standalone applications. Warm regards, The LiveCode Team From userev at canelasoftware.com Thu Apr 9 12:23:35 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Thu, 9 Apr 2015 09:23:35 -0700 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526A33C.4070309@livecode.com> References: <5526A33C.4070309@livecode.com> Message-ID: <2E317FC3-DD84-45C5-AC49-0B13B189AD9E@canelasoftware.com> On Apr 9, 2015, at 9:05 AM, sebastien wrote: > Dear List Members, > > We are pleased to announce the release of LiveCode 6.7.4 and 7.0.4. This release is a stable release that is primarily a promotion of respectively LiveCode 6.7.4 RC 3 and 7.0.4 RC 3, and also contains few bug fixes for both versions. The list of bugs fixed can be found in the Release Notes. Congratulations LiveCode. Both of these updates are highly appreciated. Best regards, Mark Talluto livecloud.io canelasoftware.com From dixonja at hotmail.co.uk Thu Apr 9 12:58:31 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 9 Apr 2015 17:58:31 +0100 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526A33C.4070309@livecode.com> References: <5526A33C.4070309@livecode.com> Message-ID: How can you say this is a stable release ? Not being able to use a 'native scroller' to scroll (see bug 15118) reduces the making of mobile apps using liveCode like nothing more that a collection of 'flash' cards... Is the scrolling problem going to be fixed, I have tried to ask a number of times, or just going to be quietly forgotten about ?... from support... I can see the bug report has been confirmed. I'm afraid I cannot give you any indication of when it might be fixed or what priority it might receive. We do not fix bugs in date order, they are assessed on a variety of factors. We will keep you updated on the progress of the bug through our system.' Will this question ever get answered... ? John Dixon > Date: Thu, 9 Apr 2015 17:05:16 +0100 > From: sebastien.nouat at livecode.com > To: use-livecode at lists.runrev.com; livecode-dev at lists.runrev.com > Subject: Release 6.7.4 Stable / 7.0.4 Stable > > Dear List Members, > > We are pleased to announce the release of LiveCode 6.7.4 and 7.0.4. This > release is a stable release that is primarily a promotion of > respectively LiveCode 6.7.4 RC 3 and 7.0.4 RC 3, and also contains few > bug fixes for both versions. The list of bugs fixed can be found in the > Release Notes. > > *Getting the Release* > To get the release please select "check for updates" from the "help" > menu in the product or download the installer directly at: > http://downloads.livecode.com > > *6.7.5 RC 1 / 7.0.5 RC 1* > The next cycle of 6.7 and 7.0 releases should start by the end of next > week. The major bug fix will be adding the possibility to use Xcode 6.3 > to build iOS standalone applications. > > Warm regards, > > The LiveCode Team > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Apr 9 13:05:10 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 09 Apr 2015 10:05:10 -0700 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: References: Message-ID: <5526B146.6070702@fourthworld.com> John Dixon wrote: > How can you say this is a stable release ? It would be helpful if the core dev team would help us understand the release process with regard to critical outstanding issues. For example, these three issues prevent deployment of professional apps on Linux: Option control labels can't be seen when they have focus Can't paste into other programs: Can't paste from other programs: As John noted, other platforms also have critical outstanding issues. As much as we appreciate the steady stream of new builds, the feedback I see throughout the community is that we'd very much prefer longer RC periods in favor of fewer "Stable" releases that address a larger number of critical issues. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From richmondmathewson at gmail.com Thu Apr 9 13:11:58 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 09 Apr 2015 20:11:58 +0300 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: References: <5526A33C.4070309@livecode.com> Message-ID: <5526B2DE.5070902@gmail.com> On 09/04/15 19:58, John Dixon wrote: > How can you say this is a stable release ? > > Not being able to use a 'native scroller' to scroll (see bug 15118) reduces the making of mobile apps using liveCode like nothing more that a collection of 'flash' cards... > > Is the scrolling problem going to be fixed, I have tried to ask a number of times, or just going to be quietly forgotten about ?... > > from support... I can see the bug report has been confirmed. I'm afraid I cannot give you any indication of when it might be fixed or what priority it might receive. We do not fix bugs in date order, they are assessed on a variety of factors. We will keep you updated on the progress of the bug through our system.' > > Will this question ever get answered... ? > > > > > John Dixon > > At this point I am going to do 2 things: 1. Repost a remark I made earlier today: "The problem with this is that we seem to have a series of Beta versions; the 6.7 line, the 7.0 line and now the 8.0 line; all introducing jazzy new things. However, however jazzy those new things might be, it might not be a bad thing to have a rock-solid version to be going on with while all those Beta versions get sorted out" 2. Point out that RunRev STILL suffer from an attitude problem towards their users: Almost everything that has been released since LiveCode went Open Source has been shot full of holes: Why? Because RunRev are running hell-for-leather for some bright new future without acknowledging the fact that it would be better to retrench and sort out all those bugs that have been there as long as 9 years. I didn't know whether to laugh like a mad baboon or crap in my pants when somebody suggested recently, when I pointed out really ancient unfixed bugs, that those bug reports should be dropped! Funny . . . really funny . . . if we hide the skeletons in the cupboard because they are out of sight they will be out of mind. ------------------------------------- Just to point something out: I have had my "Devawriter Pro" in development for the last 5 years: bugs are continually turning up; so I have got seriously bogged down, and cannot even consider working on the features my system development life-cycle suggested should have been finished 2-3 years ago. I could, of course, have bolted those features on to the extremely shakey thing my DWPro was then, and people who used the thing would have felt the unspoken 'finger' that was implied by my not having addressed those nasty glitches. Sorry, I'm not made that way; so I have still to get to the stage of implementing the transliteration tools. ----------------------------------- Getting really up-close-and-personal, I notice there is a series of threads about connexion and communication with USB devices that goes back years. RunRev are not addressing that . . . so all that puff about "listening to their customers" is obviously a load of old . . . . ---------------------------------- Unlike John Dixon, and many other serious end-users of LiveCode, I am not a politically correct Englishman; I am a Scot, and a bloody Scot at that: so I'm just going to go on "telling it like it is" Richmond. From richmondmathewson at gmail.com Thu Apr 9 13:15:34 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 09 Apr 2015 20:15:34 +0300 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526B146.6070702@fourthworld.com> References: <5526B146.6070702@fourthworld.com> Message-ID: <5526B3B6.1080208@gmail.com> On 09/04/15 20:05, Richard Gaskin wrote: > John Dixon wrote: > >> How can you say this is a stable release ? > > It would be helpful if the core dev team would help us understand the > release process with regard to critical outstanding issues. > > For example, these three issues prevent deployment of professional > apps on Linux: > > Option control labels can't be seen when they have focus > > Can't paste into other programs: > > Can't paste from other programs: > > > As John noted, other platforms also have critical outstanding issues. > > As much as we appreciate the steady stream of new builds, the feedback > I see throughout the community is that we'd very much prefer longer RC > periods in favor of fewer "Stable" releases that address a larger > number of critical issues. > That, Richard Gaskin, is exactly what has to be said! Thank you very much indeed. Richmond. From rdimola at evergreeninfo.net Thu Apr 9 13:18:43 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 9 Apr 2015 13:18:43 -0400 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: References: <5526A33C.4070309@livecode.com> Message-ID: <004501d072e9$3b644d80$b22ce880$@net> John, What problems are you having with native scrolling? It's not clear from the bug report what the issue is. I use it on both mobile platforms. I have not tested it on 7 series but it works on 6.5.5, 6.7.3 and 6.7.4v rc3. Is this a performance or not working at all problem? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of John Dixon Sent: Thursday, April 09, 2015 12:59 PM To: How to use LiveCode Subject: RE: Release 6.7.4 Stable / 7.0.4 Stable How can you say this is a stable release ? Not being able to use a 'native scroller' to scroll (see bug 15118) reduces the making of mobile apps using liveCode like nothing more that a collection of 'flash' cards... Is the scrolling problem going to be fixed, I have tried to ask a number of times, or just going to be quietly forgotten about ?... from support... I can see the bug report has been confirmed. I'm afraid I cannot give you any indication of when it might be fixed or what priority it might receive. We do not fix bugs in date order, they are assessed on a variety of factors. We will keep you updated on the progress of the bug through our system.' Will this question ever get answered... ? John Dixon > Date: Thu, 9 Apr 2015 17:05:16 +0100 > From: sebastien.nouat at livecode.com > To: use-livecode at lists.runrev.com; livecode-dev at lists.runrev.com > Subject: Release 6.7.4 Stable / 7.0.4 Stable > > Dear List Members, > > We are pleased to announce the release of LiveCode 6.7.4 and 7.0.4. > This release is a stable release that is primarily a promotion of > respectively LiveCode 6.7.4 RC 3 and 7.0.4 RC 3, and also contains few > bug fixes for both versions. The list of bugs fixed can be found in > the Release Notes. > > *Getting the Release* > To get the release please select "check for updates" from the "help" > menu in the product or download the installer directly at: > http://downloads.livecode.com > > *6.7.5 RC 1 / 7.0.5 RC 1* > The next cycle of 6.7 and 7.0 releases should start by the end of next > week. The major bug fix will be adding the possibility to use Xcode > 6.3 to build iOS standalone applications. > > Warm regards, > > The LiveCode Team > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Apr 9 13:18:40 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 09 Apr 2015 20:18:40 +0300 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526B146.6070702@fourthworld.com> References: <5526B146.6070702@fourthworld.com> Message-ID: <5526B470.7090201@gmail.com> On 09/04/15 20:05, Richard Gaskin wrote: > John Dixon wrote: > >> How can you say this is a stable release ? > > It would be helpful if the core dev team would help us understand the > release process with regard to critical outstanding issues. > > For example, these three issues prevent deployment of professional > apps on Linux: > > Option control labels can't be seen when they have focus > > Can't paste into other programs: > Not entirely true: On my Linux box, running XFCE as my desktop, I find I can copy-paste from the LC scriptEditor into LeafPad (the XFCE basic text editor) and then, from LeafPad into whatever else. However, I seem unable to paste directly into anything that features formatted text, such as LibreOffice. So, like so many things in LiveCode: Good in parts, and terribly inconsistent. > Can't paste from other programs: > > > As John noted, other platforms also have critical outstanding issues. > > As much as we appreciate the steady stream of new builds, the feedback > I see throughout the community is that we'd very much prefer longer RC > periods in favor of fewer "Stable" releases that address a larger > number of critical issues. > Richmond. From dixonja at hotmail.co.uk Thu Apr 9 13:28:50 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 9 Apr 2015 18:28:50 +0100 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <004501d072e9$3b644d80$b22ce880$@net> References: <5526A33C.4070309@livecode.com>, , <004501d072e9$3b644d80$b22ce880$@net> Message-ID: Ralph... I pointed out to liveCode that there was a problem with scrolling in both 6.7.4(RC2) and 7.0.4(RC2)... It is possible to scroll a text field built with either 6.7.4(RC2) or 7.0.4(RC2)... It is not possible to scroll groups when using these two versions to build the stack.... but, it is possible for these two versions to scroll groups in a stack that were built with 'previous' versions of liveCode... http://quality.runrev.com/show_bug.cgi?id=15118 Have a look at the bug report..:-) John Dixon > From: rdimola at evergreeninfo.net > To: use-livecode at lists.runrev.com > Subject: RE: Release 6.7.4 Stable / 7.0.4 Stable > Date: Thu, 9 Apr 2015 13:18:43 -0400 > > John, > > What problems are you having with native scrolling? It's not clear from the > bug report what the issue is. I use it on both mobile platforms. I have not > tested it on 7 series but it works on 6.5.5, 6.7.3 and 6.7.4v rc3. Is this a > performance or not working at all problem? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of John Dixon > Sent: Thursday, April 09, 2015 12:59 PM > To: How to use LiveCode > Subject: RE: Release 6.7.4 Stable / 7.0.4 Stable > > How can you say this is a stable release ? > > Not being able to use a 'native scroller' to scroll (see bug 15118) reduces > the making of mobile apps using liveCode like nothing more that a collection > of 'flash' cards... > > Is the scrolling problem going to be fixed, I have tried to ask a number of > times, or just going to be quietly forgotten about ?... > > from support... I can see the bug report has been confirmed. I'm afraid I > cannot give you any indication of when it might be fixed or what priority it > might receive. We do not fix bugs in date order, they are assessed on a > variety of factors. We will keep you updated on the progress of the bug > through our system.' > > Will this question ever get answered... ? > > > > > John Dixon > > > > Date: Thu, 9 Apr 2015 17:05:16 +0100 > > From: sebastien.nouat at livecode.com > > To: use-livecode at lists.runrev.com; livecode-dev at lists.runrev.com > > Subject: Release 6.7.4 Stable / 7.0.4 Stable > > > > Dear List Members, > > > > We are pleased to announce the release of LiveCode 6.7.4 and 7.0.4. > > This release is a stable release that is primarily a promotion of > > respectively LiveCode 6.7.4 RC 3 and 7.0.4 RC 3, and also contains few > > bug fixes for both versions. The list of bugs fixed can be found in > > the Release Notes. > > > > *Getting the Release* > > To get the release please select "check for updates" from the "help" > > menu in the product or download the installer directly at: > > http://downloads.livecode.com > > > > *6.7.5 RC 1 / 7.0.5 RC 1* > > The next cycle of 6.7 and 7.0 releases should start by the end of next > > week. The major bug fix will be adding the possibility to use Xcode > > 6.3 to build iOS standalone applications. > > > > Warm regards, > > > > The LiveCode Team > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sebastien.nouat at livecode.com Thu Apr 9 13:36:29 2015 From: sebastien.nouat at livecode.com (sebastien) Date: Thu, 09 Apr 2015 18:36:29 +0100 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526B146.6070702@fourthworld.com> References: <5526B146.6070702@fourthworld.com> Message-ID: <5526B89D.80804@livecode.com> On 09/04/2015 18:05, Richard Gaskin wrote: > John Dixon wrote: > >> How can you say this is a stable release ? > > It would be helpful if the core dev team would help us understand the > release process with regard to critical outstanding issues. Our view on the promotion of 6.7.4 and 7.0.4 as Stable versions is to let users who only use the stable releases, to get over the impossibility to use Xcode 6.2 to build iOS, standalone applications. We are aware of the critical issues reported through BugZilla, and several members of the core team are fully devoted to fixing them. As some of you may know, as developers, fixing bugs is usually a long task. Be sure that we are doing our best to reduce the impact of the deep changes we operated on the 8 LiveCode engines (2 mobile, 3 desktop and 3 server platforms) over the last 2 years. > As much as we appreciate the steady stream of new builds, the feedback > I see throughout the community is that we'd very much prefer longer RC > periods in favor of fewer "Stable" releases that address a larger > number of critical issues. > We also listen to the community; thank you Richard for your feedback over the RC length. 6.7.5 and 7.0.5 will most likely stay longer at an RC state, to build up a LiveCode version more wildly considered as stable by the community (unless Apple's update to Xcode 6.3 eventually requires another release for the widest public). Warm regards, The LiveCode Team From dixonja at hotmail.co.uk Thu Apr 9 14:15:17 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 9 Apr 2015 19:15:17 +0100 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526B89D.80804@livecode.com> References: , <5526B146.6070702@fourthworld.com>, <5526B89D.80804@livecode.com> Message-ID: Sebastien... > > John Dixon wrote: > > > >> How can you say this is a stable release ? You have not answered the question that I posed in the first post of this thread... Let's look at it another way... scrollers were working to scroll groups... now they don't, so I think that it is fair to assume that something is broken... I also think that it is fair to assume that something like this should be fixed as quickly as possible... you broke it, I think you should fix it... as people plan to use the tools that are in the toolkit... > Our view on the promotion of 6.7.4 and 7.0.4 as Stable versions is to > let users who only use the stable releases, to get over the > impossibility to use Xcode 6.2 to build iOS, standalone applications. > > We are aware of the critical issues reported through BugZilla, and > several members of the core team are fully devoted to fixing them. As > some of you may know, as developers, fixing bugs is usually a long task. > Be sure that we are doing our best to reduce the impact of the deep > changes we operated on the 8 LiveCode engines (2 mobile, 3 desktop and 3 > server platforms) over the last 2 years. Let me ask my question another way... Do you consider the inability to scroll groups under 6.7.4 & 7.0.4 to be critical ?... Do you intend to fix this quickly, to get back to how things were... or am I to be left in the dark, not knowing when scrollers might be able to be used again ? I need to know when this will be fixed... Surely, you don't expect that I just sit and wait in a 'repeat forever' loop... ? http://quality.runrev.com/show_bug.cgi?id=15118 > We also listen to the community; thank you Richard for your feedback > over the RC length. > 6.7.5 and 7.0.5 will most likely stay longer at an RC state, to build up > a LiveCode version more wildly considered as stable by the community > (unless Apple's update to Xcode 6.3 eventually requires another release > for the widest public). > > Warm regards, > > The LiveCode Team From livfoss at mac.com Thu Apr 9 14:58:54 2015 From: livfoss at mac.com (Graham Samuel) Date: Thu, 09 Apr 2015 20:58:54 +0200 Subject: Database error? In-Reply-To: <1428524971274-4690948.post@n4.nabble.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> Message-ID: Shawn, when I create a database from my cPanel, I am NOT asked to set a password for it. I am asked for a password for each user, and I am beginning to understand that users can be attached to one or more databases, and presumably this is how databases are controlled. But I emphatically have not seen a dialog or a field asking me for a password for the database itself. As I can?t put attachments on this list, i have simply made the test again (log in to cPanel, go to ?mySQL databases?, click on ?create database? - the name had to begin with my On-Rev name and an underscore), and I confirm that the database is created with no password anywhere. I know that the Joomla database connection process thinks that my database has a password, but the only passwords I have are for the users and the cPanel itself. Puzzled Graham PS I have asked lots of questions about this and have now received lots of answers, which I?m working through. I promise to report all my results to this list and to the people who helped me off-list as well. I really do appreciate all the help I?m getting. > On 8 Apr 2015, at 22:29, shawnlc wrote: > > Let me add this too. In Cpanel when you create a database, you're asked to > 1) create a database, 2) create a username and password for that database, > and 3) assign a username to that database. This isn't necessarily the same > as your Cpanel login, but can be if that's how you create your database. And > as I mentioned previously, when connecting to MySQL it's username_database > then your password. Of course you need your domain info. > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Database-error-tp4690936p4690948.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Apr 9 15:09:57 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 9 Apr 2015 21:09:57 +0200 Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> Message-ID: Graham, the Joomla installation asks for the user password of the user you?ve added to the database. Matthias > Am 09.04.2015 um 20:58 schrieb Graham Samuel : > > Shawn, when I create a database from my cPanel, I am NOT asked to set a password for it. I am asked for a password for each user, and I am beginning to understand that users can be attached to one or more databases, and presumably this is how databases are controlled. But I emphatically have not seen a dialog or a field asking me for a password for the database itself. As I can?t put attachments on this list, i have simply made the test again (log in to cPanel, go to ?mySQL databases?, click on ?create database? - the name had to begin with my On-Rev name and an underscore), and I confirm that the database is created with no password anywhere. I know that the Joomla database connection process thinks that my database has a password, but the only passwords I have are for the users and the cPanel itself. > > Puzzled > > Graham > > PS I have asked lots of questions about this and have now received lots of answers, which I?m working through. I promise to report all my results to this list and to the people who helped me off-list as well. I really do appreciate all the help I?m getting. > > >> On 8 Apr 2015, at 22:29, shawnlc wrote: >> >> Let me add this too. In Cpanel when you create a database, you're asked to >> 1) create a database, 2) create a username and password for that database, >> and 3) assign a username to that database. This isn't necessarily the same >> as your Cpanel login, but can be if that's how you create your database. And >> as I mentioned previously, when connecting to MySQL it's username_database >> then your password. Of course you need your domain info. >> >> >> >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Database-error-tp4690936p4690948.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Apr 9 15:28:00 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 09 Apr 2015 14:28:00 -0500 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: References: , <5526B146.6070702@fourthworld.com>, <5526B89D.80804@livecode.com> Message-ID: <5526D2C0.1090708@hyperactivesw.com> On 4/9/2015 1:15 PM, John Dixon wrote: > Let's look at it another way... scrollers were working to scroll groups... now they don't Is this only on iOS? I'm scrolling groups in Android okay using native scrollers. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dixonja at hotmail.co.uk Thu Apr 9 15:33:38 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 9 Apr 2015 20:33:38 +0100 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526D2C0.1090708@hyperactivesw.com> References: , , <5526B146.6070702@fourthworld.com>, <5526B89D.80804@livecode.com>, , <5526D2C0.1090708@hyperactivesw.com> Message-ID: Jacque... This is my experience on iOS... John Dixon > On 4/9/2015 1:15 PM, John Dixon wrote: > > Let's look at it another way... scrollers were working to scroll groups... now they don't > > Is this only on iOS? I'm scrolling groups in Android okay using native > scrollers. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Thu Apr 9 18:33:41 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 9 Apr 2015 17:33:41 -0500 Subject: An interesting programming challenge Message-ID: https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 Happy to say that the code I wrote gave the correct answer the first time, so yay. I'll post my solution in a reply to make it easier to avoid spoilers in case anyone wants to try it themselves. gc From shawnblc at me.com Thu Apr 9 19:04:46 2015 From: shawnblc at me.com (shawnlc) Date: Thu, 9 Apr 2015 16:04:46 -0700 (PDT) Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> Message-ID: <1428620686212-4690971.post@n4.nabble.com> In Cpanel, you create your database, like you have, then down below you will create a user/password combo for that database, then below you'll assign that user to the database. Here's a video: https://www.cpanel.com/media/tutorials/addmysql.htm Here's a list of Cpanel videos: https://www.cpanel.com/products/cpanelwhm/cpanel11/tutorials.html -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Database-error-tp4690936p4690971.html Sent from the Revolution - User mailing list archive at Nabble.com. From colinholgate at gmail.com Thu Apr 9 20:31:54 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 9 Apr 2015 20:31:54 -0400 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: I have a script running, but it looks like it will take some time! > On Apr 9, 2015, at 6:33 PM, Geoff Canyon wrote: > > https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 > > Happy to say that the code I wrote gave the correct answer the first time, > so yay. > > I'll post my solution in a reply to make it easier to avoid spoilers in > case anyone wants to try it themselves. > > gc From colinholgate at gmail.com Thu Apr 9 20:42:29 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 9 Apr 2015 20:42:29 -0400 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: I got a ?nice try? because I mistyped the answer I (I typed 71393 instead of 71939). Here was my script (after many returns): on mouseUp put 0 into howmany put ?the numbers they provided inside quotes" into numbers repeat with a = 1 to the number of items in numbers repeat with b = a to the number of items in numbers put item a to b of numbers into somenumbers if sum(somenumbers) > 31 then add 1 to howmany end repeat put the number of items in numbers && a end repeat answer howmany end mouseUp From jhj at jhj.com Thu Apr 9 21:33:01 2015 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 9 Apr 2015 18:33:01 -0700 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: <518710DB-D7DB-4815-AE48-98E9E8CC60B9@jhj.com> > On Apr 9, 2015, at 3:33 PM, Geoff Canyon wrote: > > https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 > > Happy to say that the code I wrote gave the correct answer the first time, > so yay. > > I'll post my solution in a reply to make it easier to avoid spoilers in > case anyone wants to try it themselves. > gc Here?s my script that gave the right answer the first time too. It runs in about 100 msec on a MacBookPro 2.6GHz i7 with Yosemite 10.10.3 and LC 6.7.4 . Its in the button script of the GO button. -------------- next part -------------- .Jerry From jhj at jhj.com Thu Apr 9 21:36:47 2015 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 9 Apr 2015 18:36:47 -0700 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: This time with the stack attached . . . > On Apr 9, 2015, at 3:33 PM, Geoff Canyon wrote: > > https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 > > Happy to say that the code I wrote gave the correct answer the first time, > so yay. > > I'll post my solution in a reply to make it easier to avoid spoilers in > case anyone wants to try it themselves. > gc Here?s my script that gave the right answer the first time too. It runs in about 100 msec on a MacBookPro 2.6GHz i7 with Yosemite 10.10.3 and LC 6.7.4 . Its in the button script of the GO button. .Jerry -------------- next part -------------- _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Thu Apr 9 21:37:54 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 9 Apr 2015 21:37:54 -0400 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: So you thought? Is it that huge a script that you can?t paste it? > On Apr 9, 2015, at 9:36 PM, Jerry Jensen wrote: > > This time with the stack attached . . . From jhj at jhj.com Thu Apr 9 21:43:02 2015 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 9 Apr 2015 18:43:02 -0700 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: > On Apr 9, 2015, at 6:37 PM, Colin Holgate wrote: > > So you thought? > > Is it that huge a script that you can?t paste it? > > >> On Apr 9, 2015, at 9:36 PM, Jerry Jensen wrote: >> >> This time with the stack attached . . . Aw, crap, no attachments allowed. Here?s the script, after a bunch of returns for the anti-spoiler: on mouseUp local tRay, tSlices, tRunningSum, tLoopCount, tItem, tMsec put the milliseconds into tMsec put -22,-26,16,8,7,-18,23,1,27,30,-14,-27,-22,-28,5,-16,7,17,-24,-29,-31,13,31,24,27,-26,6,\ -29,10,-13,-22,-29,-18,15,-23,32,15,17,14,-1,-9,-10,-11,19,-13,-9,-19,-29,0,10,10,-17,12,-4,\ -24,-12,12,9,-31,-4,22,24,-9,-12,-31,6,23,-29,-17,-32,30,-29,16,18,13,10,3,-3,-16,-2,16,-6,22,\ 26,19,4,-30,16,16,-2,25,18,1,29,-20,7,-27,30,-25,-11,-9,-2,32,1,32,-32,-13,-2,-27,0,11,-7,14,\ 32,-12,30,-23,30,-9,-31,22,8,26,15,3,22,-8,26,9,-18,31,18,-12,4,-28,20,19,-8,-32,15,0,-14,-1,\ 13,16,-1,-2,6,1,-19,3,29,-14,19,7,10,2,19,-28,-22,-1,-18,-28,0,-10,-28,-1,-22,16,-21,-14,3,-19,\ 13,-17,-1,10,-25,10,7,1,-7,-11,8,-28,-12,-20,-11,-4,-3,1,13,2,-26,29,-3,22,-11,18,-17,1,-22,32,\ -10,7,15,-6,-7,-18,-29,27,28,20,-4,-13,-21,15,21,10,-15,22,-25,-5,5,-32,26,-14,26,-14,-3,-4,12,\ 1,15,-24,12,-9,-4,-7,-25,-26,32,32,21,-14,-25,20,-2,-3,1,1,10,-12,-31,27,2,-6,12,18,16,16,18,\ -32,-11,-12,1,7,-13,27,-6,-1,-2,12,-18,-13,-9,13,-28,-23,27,-7,22,-10,-20,-32,32,-14,3,-29,-26,\ -7,11,-25,-26,-32,18,21,-12,6,-1,3,-31,1,-3,30,28,-12,23,27,-15,2,27,5,29,-16,-9,13,-14,-32,24,\ -7,17,-25,18,-16,-26,6,-6,12,19,10,14,-13,-27,-19,-24,-24,28,-31,27,10,-26,30,1,-30,27,0,-17,\ -27,-15,-7,21,5,9,-17,-28,-23,11,-10,-32,-3,-31,-2,11,-21,29,17,12,30,-10,-17,-29,-6,-9,-4,3,6,\ 26,9,-12,-4,12,4,-13,-26,-1,19,-10,28,-24,21,-32,-20,9,31,-24,15,4,23,-4,1,30,30,-10,14,13,2,\ -15,-8,2,-7,26,23,-8,-23,-14,-4,1,-26,5,10,-7,-16,23,28,-8,8,26,-2,31,20,28,-14,18,-14,-12,31,\ -22,-31,-12,-27,18,22,-26,-24,-12,-12,-3,-24,6,-17,-1,1,11,13,-1,-4,-21,-6,26,17,-10,24,-21,9,\ 28,-16,-5,-20,-21,-19,-24,20,-11,12,-13,27,28,17,26,4,10,28,-10,-3,-28,-26,18,28,15,-2,3,-7,\ -17,-8,31,27,-4,7,-28,-30,-16,-10,6,4,-6,15,2,-10,-13,30,11,-6,20,9,-17,20,16,-20,31,-23,6,\ -31,26,-16,-1,-28,-8,29,14,31,-5,15,18,-10,-2,-25,-13,4,29,-9,19,6,-20,9,1,12,27,-16,22,-22,\ 9,2,-8,-16,-7,-29,-12,24,8,6,-16,11,0,-4,-10,-20,5,14,-16,-5,-2,-9,-10,32,-1,-12,31,-12,30,4,\ 4,13,-9,2,-25,31,-26,32,18,31,-7,-23,-28,-30,23,0,21,2,-19,-2,-24,-13,-7,-25,1,-8,4,13,15,20,\ -17,8,27,-29,-12,-3,27,20,9,0,-9,-15,-31,-15,-13,-17,13,-13,-15,7,30,8,-22,-17,28,11,15,27,\ -11,3,-5,-30,19,-32,-21,-31,-7,-22,-30,-20,19,-27,-20,6,29,-5,-18,-4,-8,-28,-21,14,-22,-10,\ 17,32,-9,26,21,25,5,-1,7,-25,-27,30,23,18,15,-15,-12,6,20,-2,-9,14,7,-27,-10,27,28,18,21,26,\ -16,21,18,-9,-26,31,8,-11,-32,-23,-17,20,6,11,19,-10,15,18,-23,-28,-28,-5,1,21,-5,-6,20,-26,\ -30,4,23,20,-15,9,6,27,30,-25,-1,-13,-15,-18,15,4,-27,-29,-3,-22,-25,-17,-17,-10,18,29,0,\ -16,10,10,-26,11,-12,21,-1,8,0,31,-1,-17,-8,9,-18,-25,-10,-15,-13,-1,-7,0,-23,17,1,26,2,-28,\ 24,-27,10,-29,20,4,-1,-26,-11,29,-5,9,10,21,-1,30,-19,32,3,-27,26,11,6,21,20,4,-28,29,1,-27,\ 6,21,-25,-16,-26,-8,32,31,-31,-6,-28,-27,-1,-17,0,29,1,13,20,-3,3,1,-27,0,27,-25,21,28,-26,24,\ -32,-21,23,4,-17,8,-19,-19,-24,14,-13,13,28,8,-11,-5,24,11,11,-15,-14,17,-31,-21,3,28,-31,29,\ -13,-3,-5,-27,-21,21,-26,-14,16,-10,-1,-12,5,15,-8,8,-21,-15,2,11,-5,11,4,5,17,-29,27,-5,21,10,\ -11,-13,13,9,14,-14,-14,-28,-4,20,27,5,11,11,0,-30,3,7,21,32,18,21,-30,1,-16,20,-27,-3,-19,9,\ 13,14,28,-12,31,-25,19,-32,-9,-4,19,13,25,19,-31,9,23,13,-4,-26,-14,7,6,0,-12,13,-19,-7,-28,\ -3,31,-9,-16,-4,-11,-25,-23,18,20,0,21,30,-6,-21,-10,-2,-20,-13,-6,8,-19,-1,-13,-31,27,18,26,\ -16,-27,21,-32,-1,-30,-26,16,28,23,-27,29,16,-16,-9,-26,-23,30,24,3,4,4,6,-29,13,-5,13,-15,-26,\ -11,20,-7,-15,32,-23,5,20,21,18,32 into tRay put 0 into tSlices put 0 into tRunningSum put the number of items in tRay into tLoopCount repeat tLoopCount times put 0 into tRunningSum repeat for each item tItem in tRay add tItem to tRunningSum if tRunningSum >= 32 then add 1 to tSlices end repeat delete item 1 of tRay end repeat --put the milliseconds - tMsec into fld "elapsed" --put tSlices into fld "answer" put tSlices end mouseUp From colinholgate at gmail.com Thu Apr 9 21:47:58 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 9 Apr 2015 21:47:58 -0400 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: Why does this work? what if further numbers are negative, and tRunningSum becomes less than 32, would you want to subtract from tSlices? > On Apr 9, 2015, at 9:43 PM, Jerry Jensen wrote: > > > put 0 into tRunningSum > repeat for each item tItem in tRay > add tItem to tRunningSum > if tRunningSum >= 32 then add 1 to tSlices > end repeat From colinholgate at gmail.com Thu Apr 9 21:48:32 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 9 Apr 2015 21:48:32 -0400 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: <088E403D-12A6-46CA-AE23-1314809DF503@gmail.com> Never mind, I see why it?s valid. > On Apr 9, 2015, at 9:43 PM, Jerry Jensen wrote: > > > put 0 into tRunningSum > repeat for each item tItem in tRay > add tItem to tRunningSum > if tRunningSum >= 32 then add 1 to tSlices > end repeat From jhj at jhj.com Thu Apr 9 22:04:30 2015 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 9 Apr 2015 19:04:30 -0700 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: > On Apr 9, 2015, at 3:33 PM, Geoff Canyon wrote: > > https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 > > Happy to say that the code I wrote gave the correct answer the first time, > so yay. > > I'll post my solution in a reply to make it easier to avoid spoilers in > case anyone wants to try it themselves. > > gc Just for fun, I tried my solution on LC 5.4.5 with all else being equal: LC 6.7.4 around 100 msec LC 5.5.4 around 115 msec Both those numbers varied around +/- 5 msec on multiple runs. .Jerry From mwieder at ahsoftware.net Thu Apr 9 22:17:56 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 9 Apr 2015 19:17:56 -0700 Subject: Database error? In-Reply-To: <940B3CBC-3700-41C8-9211-8D31E40DD68C@m-r-d.de> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <940B3CBC-3700-41C8-9211-8D31E40DD68C@m-r-d.de> Message-ID: <271128478659.20150409191756@ahsoftware.net> Thursday, April 9, 2015, 6:12:29 AM, Matthias wrote: > Warning: Please be aware that configuring remoteAccess for MySQL > for your on-rev account is a security risk and should be avoided. Yeah. What he said. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From dunbarx at aol.com Thu Apr 9 22:35:59 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 9 Apr 2015 22:35:59 -0400 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> Here is another. it was posted on this list a few weeks ago by fareastern23. but was never taken up by anyone: The 2010 Census puts populations of 26 largest US metro areas at 18897109, 12828837, 9461105, 6371773, 5965343, 5946800, 5582170, 5564635, 5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, 3095313, 2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, 2142508, and 2134411. Can you find a subset of these areas where a total of exactly 100,000,000 people live, assuming the census estimates are exactly right? Provide the answer and code or reasoning used. I ran up against a memory limit in my solution, below what are purported to be LC limits. It engendered a bug report, which was in fact valid, I had to write a kluge around that issue. But going back to the problem, it may simply mean I am not terribly clever in my methods. I may be wrong, but I think there is no solution. Craig -----Original Message----- From: Jerry Jensen To: How to use LiveCode Sent: Thu, Apr 9, 2015 10:05 pm Subject: Re: An interesting programming challenge > On Apr 9, 2015, at 3:33 PM, Geoff Canyon wrote: > > https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 > > Happy to say that the code I wrote gave the correct answer the first time, > so yay. > > I'll post my solution in a reply to make it easier to avoid spoilers in > case anyone wants to try it themselves. > > gc Just for fun, I tried my solution on LC 5.4.5 with all else being equal: LC 6.7.4 around 100 msec LC 5.5.4 around 115 msec Both those numbers varied around +/- 5 msec on multiple runs. .Jerry _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Thu Apr 9 23:25:18 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Thu, 9 Apr 2015 20:25:18 -0700 Subject: ICloud access? In-Reply-To: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> References: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> Message-ID: <39116964-B0D5-46DF-9621-333C0D4B253B@earthednet.org> Are we still needing to use Martin Koopman's external to access iCloud? It's been several years. Just asking. I'm working on an app that I want to sync between iOS devices. Bill William Prothero http://es.earthednet.org > On Apr 9, 2015, at 7:35 PM, dunbarx at aol.com wrote: > > > > Here is another. it was posted on this list a few weeks ago by fareastern23. but was never taken up by anyone: > > > The 2010 Census puts populations of 26 largest US metro areas at 18897109, 12828837, 9461105, 6371773, 5965343, 5946800, 5582170, 5564635, 5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, 3095313, 2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, 2142508, and 2134411. > > Can you find a subset of these areas where a total of exactly 100,000,000 people live, assuming the census estimates are exactly right? Provide the answer and code or reasoning used. > > > I ran up against a memory limit in my solution, below what are purported to be LC limits. It engendered a bug report, which was in fact valid, I had to write a kluge around that issue. But going back to the problem, it may simply mean I am not terribly clever in my methods. > > > I may be wrong, but I think there is no solution. > > > Craig > > > -----Original Message----- > From: Jerry Jensen > To: How to use LiveCode > Sent: Thu, Apr 9, 2015 10:05 pm > Subject: Re: An interesting programming challenge > > > >> On Apr 9, 2015, at 3:33 PM, Geoff Canyon wrote: > https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 > >> Happy to say that the code I wrote gave the correct answer the first > time, >> so yay. >> >> I'll post my solution in a reply to make it easier to > avoid spoilers in >> case anyone wants to try it themselves. >> >> gc > > Just > for fun, I tried my solution on LC 5.4.5 with all else being equal: > LC 6.7.4 > around 100 msec > LC 5.5.4 around 115 msec > Both those numbers varied around +/- > 5 msec on multiple > runs. > .Jerry > > > _______________________________________________ > use-livecode > mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at sweattechnologies.com Thu Apr 9 23:44:31 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 10 Apr 2015 13:44:31 +1000 Subject: ICloud access? In-Reply-To: <39116964-B0D5-46DF-9621-333C0D4B253B@earthednet.org> References: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> <39116964-B0D5-46DF-9621-333C0D4B253B@earthednet.org> Message-ID: <1C45A6C7-0FDD-4C1E-BD47-698B8E6610CB@sweattechnologies.com> I'm not aware of any other externals for iCloud but I'm also not sure that Martin has maintained his. On 10 Apr 2015, at 1:25 pm, Earthednet-wp wrote: > Are we still needing to use Martin Koopman's external to access iCloud? It's been several years. > Just asking. I'm working on an app that I want to sync between iOS devices. > Bill > > William Prothero > http://es.earthednet.org > >> On Apr 9, 2015, at 7:35 PM, dunbarx at aol.com wrote: >> >> >> >> Here is another. it was posted on this list a few weeks ago by fareastern23. but was never taken up by anyone: >> >> >> The 2010 Census puts populations of 26 largest US metro areas at 18897109, 12828837, 9461105, 6371773, 5965343, 5946800, 5582170, 5564635, 5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, 3095313, 2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, 2142508, and 2134411. >> >> Can you find a subset of these areas where a total of exactly 100,000,000 people live, assuming the census estimates are exactly right? Provide the answer and code or reasoning used. >> >> >> I ran up against a memory limit in my solution, below what are purported to be LC limits. It engendered a bug report, which was in fact valid, I had to write a kluge around that issue. But going back to the problem, it may simply mean I am not terribly clever in my methods. >> >> >> I may be wrong, but I think there is no solution. >> >> >> Craig >> >> >> -----Original Message----- >> From: Jerry Jensen >> To: How to use LiveCode >> Sent: Thu, Apr 9, 2015 10:05 pm >> Subject: Re: An interesting programming challenge >> >> >> >>> On Apr 9, 2015, at 3:33 PM, Geoff Canyon wrote: >> https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367 >> >>> Happy to say that the code I wrote gave the correct answer the first >> time, >>> so yay. >>> >>> I'll post my solution in a reply to make it easier to >> avoid spoilers in >>> case anyone wants to try it themselves. >>> >>> gc >> >> Just >> for fun, I tried my solution on LC 5.4.5 with all else being equal: >> LC 6.7.4 >> around 100 msec >> LC 5.5.4 around 115 msec >> Both those numbers varied around +/- >> 5 msec on multiple >> runs. >> .Jerry >> >> >> _______________________________________________ >> use-livecode >> mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From jhj at jhj.com Thu Apr 9 23:59:41 2015 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 9 Apr 2015 20:59:41 -0700 Subject: An interesting programming challenge In-Reply-To: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> References: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> Message-ID: > On Apr 9, 2015, at 7:35 PM, DunbarX at aol.com wrote: > > Here is another. it was posted on this list a few weeks ago by fareastern23. but was never taken up by anyone: > > The 2010 Census puts populations of 26 largest US metro areas at 18897109, 12828837, 9461105, 6371773, 5965343, 5946800, 5582170, 5564635, 5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, 3095313, 2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, 2142508, and 2134411. > > Can you find a subset of these areas where a total of exactly 100,000,000 people live, assuming the census estimates are exactly right? Provide the answer and code or reasoning used. > > I ran up against a memory limit in my solution, below what are purported to be LC limits. It engendered a bug report, which was in fact valid, I had to write a kluge around that issue. But going back to the problem, it may simply mean I am not terribly clever in my methods. > > I may be wrong, but I think there is no solution. > > Craig Wow, thats a good one. It screams for recursion, which always makes my brain hurt. I?m thinking on it? .Jerry From gcanyon at gmail.com Fri Apr 10 00:35:47 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 9 Apr 2015 23:35:47 -0500 Subject: An interesting programming challenge In-Reply-To: References: Message-ID: On Thu, Apr 9, 2015 at 8:36 PM, Jerry Jensen wrote: > Here?s my script that gave the right answer the first time too. It runs in > about 100 msec on a MacBookPro 2.6GHz i7 with Yosemite 10.10.3 and LC 6.7.4 > . > Its in the button script of the GO button. > Really nice! Here's mine, which runs about six times slower if it's just counting, or about 25x slower as it is -- I wrote it to record all the lists it finds, which slows it down obviously, but the use of arrays was a poor choice. Anti-spoiler returns: on mouseUp put 0 into P repeat for each item N in fld "input" add 1 to P repeat with i = 1 to P put N,"" after S[i]["slice"] add N to S[i]["sum"] if S[i]["sum"] >= 32 then put S[i]["sum"] & tab & (char 1 to -2 of S[i]["slice"]) & cr after R end repeat end repeat put R into fld "result" put the number of lines of fld "result" into fld "count" end mouseUp From dunbarx at aol.com Fri Apr 10 01:04:57 2015 From: dunbarx at aol.com (dunbarx) Date: Thu, 9 Apr 2015 22:04:57 -0700 (PDT) Subject: An interesting programming challenge In-Reply-To: References: Message-ID: <1428642297072-4690987.post@n4.nabble.com> I found a bug in my code. There is indeed a solution to the 100,000,000 problem. I still needed a kluge to allow LC to process the way I did it in a reasonable amount of time. It took about three minutes on a Macbook Air, 1.86 GHz, OS 10.9. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/An-interesting-programming-challenge-tp4690970p4690987.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Fri Apr 10 01:19:49 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 9 Apr 2015 22:19:49 -0700 Subject: An interesting programming challenge In-Reply-To: References: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> Message-ID: <921139391085.20150409221949@ahsoftware.net> Jerry- Thursday, April 9, 2015, 8:59:41 PM, you wrote: > Wow, thats a good one. It screams for recursion, which always > makes my brain hurt. I?m thinking on it > .Jerry I rather think it calls for LISP and tail recursion. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jhj at jhj.com Fri Apr 10 01:56:11 2015 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 9 Apr 2015 22:56:11 -0700 Subject: An interesting programming challenge In-Reply-To: <921139391085.20150409221949@ahsoftware.net> References: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> <921139391085.20150409221949@ahsoftware.net> Message-ID: On Apr 9, 2015, at 10:19 PM, Mark Wieder wrote: > > Jerry- > > Thursday, April 9, 2015, 8:59:41 PM, you wrote: > >> Wow, thats a good one. It screams for recursion, which always >> makes my brain hurt. I?m thinking on it > >> .Jerry > > I rather think it calls for LISP and tail recursion. Indeed. Lets get to work on a LISP SDK for LC. With a debugger. .Jerry From gcanyon at gmail.com Fri Apr 10 01:59:40 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 10 Apr 2015 00:59:40 -0500 Subject: An interesting programming challenge In-Reply-To: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> References: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> Message-ID: On Thu, Apr 9, 2015 at 9:35 PM, wrote: > The 2010 Census puts populations of 26 largest US metro areas at 18897109, > 12828837, 9461105, 6371773, 5965343, 5946800, 5582170, 5564635, 5268860, > 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, 3095313, > 2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, 2142508, and > 2134411. > This is stream-of-conscious code, but it produces the solution in under a second. Spoiler returns: There are 2^26 possible sets, or about 64 million. On the assumption that's too many to brute force, I do the following: 1. break the list of 26 into two sets of 13, the largest in one set, the smallest in the other. 2. for each set, I calculate all the sums. 2^13 is 8192, which is much more manageable. 3. I calculated the sums of the 13 largest and 13 smallest cities. Subtracting those from 100,000,000 gave me the minimum required contribution for the *other* set. So the big cities must sum to at least 64,133,708 (or else all the small cities won't be enough to hit the goal) which eliminates about 85% of the possibilities from the big set; and the small cities must sum to at least 6,704,474 which eliminates only about 100 of those possibilities. 4. I sort each set descending. 5. Then I parse through the large city sets, and in an inner loop parse through the small city sets, checking for winners. If the sum is ever less than 100,000,000 I exit the inner loop, because none of the small city sets left will do the trick. on mouseUp put line 1 to 13 of fld 1 into P split P using cr repeat with i = 1 to 8191 put baseconvert(i,10,2) into B put char 1 to 13 - length(B) of "000000000000" before B repeat with j = 1 to 13 if char j of B is 0 then next repeat add P[j] to S[i] put P[j],"" after L[i] end repeat end repeat repeat with i = 1 to 8191 if S[i] > 64133708 then next repeat delete variable S[i] delete variable L[i] end repeat repeat for each key K in S put K into X[S[K]] end repeat put the keys of X into kList sort lines of kList numeric descending put 0 into i repeat for each line K in kList add 1 to i put K into FS1[i] put L[X[K]] into FL1[i] end repeat delete variable S delete variable L put line 14 to 26 of fld 1 into P split P using cr repeat with i = 1 to 8191 put baseconvert(i,10,2) into B put char 1 to 13 - length(B) of "000000000000" before B repeat with j = 1 to 13 if char j of B is 0 then next repeat add P[j] to S[i] put P[j],"" after L[i] end repeat end repeat repeat with i = 1 to 8191 if S[i] > 6704474 then next repeat delete variable S[i] delete variable L[i] end repeat delete variable X repeat for each key K in S put K into X[S[K]] end repeat put the keys of X into kList sort lines of kList numeric descending put 0 into i repeat for each line K in kList add 1 to i put K into FS2[i] put L[X[K]] into FL2[i] end repeat put the keys of FL1 into K1list sort lines of K1list numeric put the keys of FL2 into K2list sort lines of K2list numeric repeat for each line K1 in K1list repeat for each line K2 in K2list if FS1[K1] + FS2[K2] = 100000000 then \ put "winner" && FL1[K1] & FL2[K2] & cr after fld 2 if FS1[K1] + FS2[K2] < 100000000 then exit repeat end repeat end repeat end mouseUp From livfoss at mac.com Fri Apr 10 05:58:58 2015 From: livfoss at mac.com (Graham Samuel) Date: Fri, 10 Apr 2015 11:58:58 +0200 Subject: Database error? In-Reply-To: <1428620686212-4690971.post@n4.nabble.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> Message-ID: Shawn, thanks, you?re very kind and patient with me. The fact is, as an ignoramus, I couldn?t see that a password for a **user** was the same as a password for the database itself. I still don?t think it is, really. But apparently since only users can access databases (apart from the folks that control the host server, I guess), then password-protection per user is as good or better than password-protection per database. So, I got muddled by looking at the cPanel display, which you must admit, does **not** ask for a password for the database itself. I learn, Mr Fawlty, but perhaps too slowly. Thanks again Graham > On 10 Apr 2015, at 01:04, shawnlc wrote: > > In Cpanel, you create your database, like you have, then down below you will > create a user/password combo for that database, then below you'll assign > that user to the database. Here's a video: > https://www.cpanel.com/media/tutorials/addmysql.htm > > Here's a list of Cpanel videos: > https://www.cpanel.com/products/cpanelwhm/cpanel11/tutorials.html > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Database-error-tp4690936p4690971.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Fri Apr 10 06:00:35 2015 From: livfoss at mac.com (Graham Samuel) Date: Fri, 10 Apr 2015 12:00:35 +0200 Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> Message-ID: <3B421E82-F0D8-4F30-A0DE-78DA932D641C@mac.com> Yep, got it now - it?s just not very well expressed in the documentation I?ve read. People keep referring to the password for the database, which technically it ain?t. Sincere thanks for all your help. Graham > On 9 Apr 2015, at 21:09, Matthias Rebbe | M-R-D wrote: > > Graham, > > the Joomla installation asks for the user password of the user you?ve added to the database. > > Matthias > >> Am 09.04.2015 um 20:58 schrieb Graham Samuel : >> >> Shawn, when I create a database from my cPanel, I am NOT asked to set a password for it. I am asked for a password for each user, and I am beginning to understand that users can be attached to one or more databases, and presumably this is how databases are controlled. But I emphatically have not seen a dialog or a field asking me for a password for the database itself. As I can?t put attachments on this list, i have simply made the test again (log in to cPanel, go to ?mySQL databases?, click on ?create database? - the name had to begin with my On-Rev name and an underscore), and I confirm that the database is created with no password anywhere. I know that the Joomla database connection process thinks that my database has a password, but the only passwords I have are for the users and the cPanel itself. >> >> Puzzled >> >> Graham >> >> PS I have asked lots of questions about this and have now received lots of answers, which I?m working through. I promise to report all my results to this list and to the people who helped me off-list as well. I really do appreciate all the help I?m getting. >> >> >>> On 8 Apr 2015, at 22:29, shawnlc wrote: >>> >>> Let me add this too. In Cpanel when you create a database, you're asked to >>> 1) create a database, 2) create a username and password for that database, >>> and 3) assign a username to that database. This isn't necessarily the same >>> as your Cpanel login, but can be if that's how you create your database. And >>> as I mentioned previously, when connecting to MySQL it's username_database >>> then your password. Of course you need your domain info. >>> >>> >>> >>> -- >>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Database-error-tp4690936p4690948.html >>> Sent from the Revolution - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre.bisseret at wanadoo.fr Fri Apr 10 06:20:07 2015 From: andre.bisseret at wanadoo.fr (=?utf-8?Q?Andr=C3=A9_Bisseret?=) Date: Fri, 10 Apr 2015 12:20:07 +0200 Subject: How to get the right filename (with a standalone 7.0.3)? Message-ID: I am using LC 7.03 for a few days now. My app was running well with 6.6.3. But, I would like to use 7 now in order to be able to set the tabAlign of fields. In my app a splash opens a main stack. In the script of this one I get the filename of this main stack in order to build the path of a folder which is at the same level. So, I put the name of the folder into last item of the filename of the stack. Ex.: filename of the stack : ?gestion ost?o?: /Users/andrebisseret/Desktop/aaNewOsteo/gestion ost?o.livecode and for the folder ?PATIENTS? : /Users/andrebisseret/Desktop/aaNewOsteo/PATIENTS In the IDE all is running as expected NOT in the new standalone (made with LC 7.0.3);-(( If the expected filename is: /Users/andrebisseret/Desktop/aaNewOsteo/gestion ost?o.livecode in the standalone, it is a strange mess; I get: /Users/andrebisseret/Desktop/aaNewOsteo/Users/andrebisseret/Desktop/aaNewOsteo/oste??oCiel.app/Contents/MacOS/gestion ost?o.livecode so that, of course, I can?t build the right path for the folder:-(( What am I missing or am I doing wrong? Thanks a lot in advance for any help Best regards Andr? From benr_mc at cogapp.com Fri Apr 10 07:07:14 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 10 Apr 2015 12:07:14 +0100 Subject: An interesting programming challenge In-Reply-To: <1428642297072-4690987.post@n4.nabble.com> References: <1428642297072-4690987.post@n4.nabble.com> Message-ID: <5527AEE2.8080408@cogapp.com> On 10/04/2015 06:59, Geoff Canyon wrote: > This is stream-of-conscious code, but it produces the solution in under a > second. Spoiler returns: ... > There are 2^26 possible sets, or about 64 million. On the assumption that's > too many to brute force, I do the following: On 10/04/2015 06:04, dunbarx wrote: > I found a bug in my code. There is indeed a solution to the 100,000,000 > problem. I still needed a kluge to allow LC to process the way I did it in a > reasonable amount of time. > > It took about three minutes on a Macbook Air, 1.86 GHz, OS 10.9. Interesting. Geoff obviously wins! I didn't scroll down to read Geoff's intelligent dissection of the problem before having a go (if I had I wouldn't have attempted it!), and hence did attack it brute force; as it happens it found the answer within a few seconds, but took about 3 minutes (MacBook Pro 2.7Ghz i7, doing other work, and allowing for me clicking OK when it first announced a solution was found) to complete the full exploration and not find any other solutions. But it didn't need any kluges: command exactSum tNumbers, tRequiredSum, tPath local n global gSolutions repeat until tNumbers = empty put first word of tNumbers into n delete first word of tNumbers if n = tRequiredSum then put tPath && n answer "Found one!" put tPath && n & return after gSolutions else if n < tRequiredSum then if tNumbers is not empty then exactSum tNumbers, tRequiredSum - n, tPath && n end if -- else n > required sum, no use to us here end if end repeat end exactSum (called with an empty 'path', i.e. global gSolutions put empty into gSolutions exactSum the uMetroPops of me, 100000000 ) Ben From richmondmathewson at gmail.com Fri Apr 10 07:27:28 2015 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 10 Apr 2015 14:27:28 +0300 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526B470.7090201@gmail.com> References: <5526B146.6070702@fourthworld.com> <5526B470.7090201@gmail.com> Message-ID: <5527B3A0.5000308@gmail.com> Actually, I am beginning to wonder what "stable' might mean at the best of times. For the last few weeks I have been trying to read data on an external "turtle" connected to a Windows 7 box via a USB cable with No joy at all. Yesterday I stumbled across a remark that something to do with communication with serial ports had been broken post LiveCode 4.0. I installed LiveCode 4.0 on my Windows 7 box and things began working; which they did not with LiveCode 7.0. http://forums.livecode.com/viewtopic.php?f=9&t=23621&p=124085#p124085 So, I will assume that EVERY SINGLE RELEASE of LiveCode after 4.0 is "Beta", "Bugged" or whatever, as a broken capability has never been fixed. --------------- I have always thought that the idea of releasing new versions of software was to improve on earlier versions. And by "improving" I don't mean ignoring the fact that while you have improved your thing in one area you have broken something else. Guess I must be wrong. Richmond. From peterwawood at gmail.com Fri Apr 10 08:19:00 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 10 Apr 2015 20:19:00 +0800 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5527B3A0.5000308@gmail.com> References: <5526B146.6070702@fourthworld.com> <5526B470.7090201@gmail.com> <5527B3A0.5000308@gmail.com> Message-ID: <8CEDA781-B050-4F6B-93B7-CE92B2FCA27D@gmail.com> Richmond > On 10 Apr 2015, at 19:27, Richmond wrote: > > I have always thought that the idea of releasing new versions of software was to improve on earlier versions. > > And by "improving" I don't mean ignoring the fact that while you have improved your thing in one area you have > broken something else. > > Guess I must be wrong. As far as I?m concerned you are quite correct. Though I can see LiveCode?s dilemma. It was made clear during the Kickstarter campaign that the engine was in need of a lot of attention to be brought into a state where it could provide a solid base for the future. It is apparent that it wasn?t just the code that needed bringing up to date so did its source management, its automation (especially the very complicated build process) and, the most easily overlooked, its testing. I far as I can tell LiveCode is still using 20th century testing techniques (that you may know by the phrase "suck it and see?) and these do not seem to have changed until recently. LiveCode has developed a test framework for LiveCode Builder and, according to the latest blog, now has just over 500 repeatable tests and, I believe, has started to use static analysis tools to find errors in the C code. I see these as both steps in the right direction but they are small steps at the start of what will be a very long walk. (I help out in the development of the Red programming language. It?s current scope is minute compared with LiveCode, yet it has in excess of 20,000 automated tests.) Until LiveCode have built up a decent sets of automated tests which test most aspects of LiveCode, the chance of breaking things when introducing new features is going to be high. Yet LiveCode cannot stop introducing new features if it is to survive as a company. As a result, I believe you and all LiveCoders are right to be wary of each new release and not to rely on it they have tested it themselves. So how do LiveCoders test their own scripts? I guess using the tried and tested techniques that LiveCode have been using. I admit that?s what I?ve done with the little LiveCode that I have written so far but I?ve worked out how to write an automated tests of a LiveCode Desktop application. Now I just need to find the time and, more importantly, the discipline to start to do so. Regards Peter From dunbarx at aol.com Fri Apr 10 08:47:26 2015 From: dunbarx at aol.com (dunbarx) Date: Fri, 10 Apr 2015 05:47:26 -0700 (PDT) Subject: An interesting programming challenge In-Reply-To: <5527AEE2.8080408@cogapp.com> References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> Message-ID: <1428670046919-4690997.post@n4.nabble.com> My kluge took the same tack, that is to break the list into two parts, and play one against the other. This came about weeks ago because the routine I used to find all combinations of the 26 list items ran into a memory limit within LC that was less than the stated value of about 4GB (about 1GB, bug #15041). Anyway, I got the same list as he did. It is the only solution. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/An-interesting-programming-challenge-tp4690970p4690997.html Sent from the Revolution - User mailing list archive at Nabble.com. From prothero at earthednet.org Fri Apr 10 10:35:18 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Fri, 10 Apr 2015 07:35:18 -0700 Subject: How to get the right filename (with a standalone 7.0.3)? In-Reply-To: References: Message-ID: Andre, I don't know if I'm doing this right, but I test for whether I'm running a Mac standalone using the environment and platform variables, and adjust the path accordingly. The standalone builder puts the files in a bundle and the path is different. I didn't know if it's supposed to work this way, but I started learning to building standalones in livecode 7.... series and that's what I had to do. If LC is supposed to take care of that for me, I'd sure like to know. Good luck, Bill William Prothero http://es.earthednet.org > On Apr 10, 2015, at 3:20 AM, Andr? Bisseret wrote: > > I am using LC 7.03 for a few days now. > My app was running well with 6.6.3. But, I would like to use 7 now in order to be able to set the tabAlign of fields. > > In my app a splash opens a main stack. > In the script of this one I get the filename of this main stack in order to build the path of a folder which is at the same level. > > So, I put the name of the folder into last item of the filename of the stack. > Ex.: > filename of the stack : ?gestion ost?o?: > /Users/andrebisseret/Desktop/aaNewOsteo/gestion ost?o.livecode > and for the folder ?PATIENTS? : > /Users/andrebisseret/Desktop/aaNewOsteo/PATIENTS > > In the IDE all is running as expected > > NOT in the new standalone (made with LC 7.0.3);-(( > > If the expected filename is: /Users/andrebisseret/Desktop/aaNewOsteo/gestion ost?o.livecode > > in the standalone, it is a strange mess; I get: > /Users/andrebisseret/Desktop/aaNewOsteo/Users/andrebisseret/Desktop/aaNewOsteo/oste??oCiel.app/Contents/MacOS/gestion ost?o.livecode > > so that, of course, I can?t build the right path for the folder:-(( > > What am I missing or am I doing wrong? > > Thanks a lot in advance for any help > > Best regards > > Andr? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Fri Apr 10 10:36:36 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 10 Apr 2015 15:36:36 +0100 Subject: An interesting programming challenge In-Reply-To: <1428670046919-4690997.post@n4.nabble.com> References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> Message-ID: <5527DFF4.9070501@cogapp.com> On 10/04/2015 13:47, dunbarx wrote: > My kluge took the same tack, that is to break the list into two parts, and > play one against the other. > > This came about weeks ago because the routine I used to find all > combinations of the 26 list items ran into a memory limit within LC that was > less than the stated value of about 4GB (about 1GB, bug #15041). I think the thing is that you can do recursion either depth-first or breadth-first. Because we don't need to build up all the combinations (or even all the sums), but just test them as we go; and because some combinations never need to be explored (because they go over the desired sum before all the numbers have been added); if you do it depth-first, it doesn't use very much memory at all. Ben From gcanyon at gmail.com Fri Apr 10 10:48:33 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 10 Apr 2015 09:48:33 -0500 Subject: An interesting programming challenge In-Reply-To: <5527DFF4.9070501@cogapp.com> References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: One thing that occurred to me about brute-forcing it: the sum of the entire list is 129,161,818. If there is a set that adds up to 100,000,000, then that means that the rest of the numbers have to add up to 129,161,818 - 100,000,000 = 29,161,818. So to make the brute force consider fewer options/be quicker, you could search for sets that add up to 29,161,818 and bail out whenever your total goes over that number instead of 100,000,000. Once you find such a set, take the numbers *not* in that set, and you're done. gc On Fri, Apr 10, 2015 at 9:36 AM, Ben Rubinstein wrote: > On 10/04/2015 13:47, dunbarx wrote: > >> My kluge took the same tack, that is to break the list into two parts, and >> play one against the other. >> >> This came about weeks ago because the routine I used to find all >> combinations of the 26 list items ran into a memory limit within LC that >> was >> less than the stated value of about 4GB (about 1GB, bug #15041). >> > > I think the thing is that you can do recursion either depth-first or > breadth-first. Because we don't need to build up all the combinations (or > even all the sums), but just test them as we go; and because some > combinations never need to be explored (because they go over the desired > sum before all the numbers have been added); if you do it depth-first, it > doesn't use very much memory at all. > > Ben > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Fri Apr 10 10:50:05 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 10 Apr 2015 07:50:05 -0700 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5526B470.7090201@gmail.com> References: <5526B470.7090201@gmail.com> Message-ID: <5527E31D.2050903@fourthworld.com> Richmond wrote: > On 09/04/15 20:05, Richard Gaskin wrote: ... >> Can't paste into other programs: >> > > Not entirely true: > > On my Linux box, running XFCE as my desktop, I find I can copy-paste > from the LC scriptEditor into LeafPad (the XFCE basic text editor) > and then, from LeafPad into whatever else. > > However, I seem unable to paste directly into anything that features > formatted text, such as LibreOffice. > > So, like so many things in LiveCode: Good in parts, and terribly > inconsistent. True, my brief summary here didn't attempt to capture the full scope of what's in the report. I can copy and paste between LC and gedit well, but not LbreOffice, Firefox, Chrome, or Thunderbird, so unfortunately I've had to develop a habit of copying scripts from LC into gedit, select all, copy, and then paste here or into whatever program I'm using to help someone learn LiveCode. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From roger.e.eller at sealedair.com Fri Apr 10 11:02:13 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 10 Apr 2015 11:02:13 -0400 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5527E31D.2050903@fourthworld.com> References: <5526B470.7090201@gmail.com> <5527E31D.2050903@fourthworld.com> Message-ID: On Fri, Apr 10, 2015 at 10:50 AM, Richard Gaskin wrote: > Richmond wrote: > > > On 09/04/15 20:05, Richard Gaskin wrote: > ... > >> Can't paste into other programs: > >> > > > > Not entirely true: > > > > On my Linux box, running XFCE as my desktop, I find I can copy-paste > > from the LC scriptEditor into LeafPad (the XFCE basic text editor) > > and then, from LeafPad into whatever else. > > > > However, I seem unable to paste directly into anything that features > > formatted text, such as LibreOffice. > > > > So, like so many things in LiveCode: Good in parts, and terribly > > inconsistent. > > True, my brief summary here didn't attempt to capture the full scope of > what's in the report. > > I can copy and paste between LC and gedit well, but not LbreOffice, > Firefox, Chrome, or Thunderbird, so unfortunately I've had to develop a > habit of copying scripts from LC into gedit, select all, copy, and then > paste here or into whatever program I'm using to help someone learn > LiveCode. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > Me too, but I use Notepad to purify the text. ~Roger From colinholgate at gmail.com Fri Apr 10 11:04:45 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Fri, 10 Apr 2015 11:04:45 -0400 Subject: An interesting programming challenge In-Reply-To: <5527DFF4.9070501@cogapp.com> References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: Don?t you have to continue exploring, if the running total goes over 31? There may be a mixture of negative and positive numbers ahead, that will show up a different valid slice of numbers. I tried using Jerry?s approach under ActionScript, slightly modified to use arrays instead of strings, and it took just over 300 mS. Tried as Javascript too, and that seemed to be under 2 milliseconds! > On Apr 10, 2015, at 10:36 AM, Ben Rubinstein wrote: > > I think the thing is that you can do recursion either depth-first or breadth-first. Because we don't need to build up all the combinations (or even all the sums), but just test them as we go; and because some combinations never need to be explored (because they go over the desired sum before all the numbers have been added); if you do it depth-first, it doesn't use very much memory at all. From richmondmathewson at gmail.com Fri Apr 10 11:10:23 2015 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 10 Apr 2015 18:10:23 +0300 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <8CEDA781-B050-4F6B-93B7-CE92B2FCA27D@gmail.com> References: <5526B146.6070702@fourthworld.com> <5526B470.7090201@gmail.com> <5527B3A0.5000308@gmail.com> <8CEDA781-B050-4F6B-93B7-CE92B2FCA27D@gmail.com> Message-ID: <5527E7DF.20108@gmail.com> On 10/04/15 15:19, Peter W A Wood wrote: > Richmond > >> On 10 Apr 2015, at 19:27, Richmond wrote: >> >> I have always thought that the idea of releasing new versions of software was to improve on earlier versions. >> >> And by "improving" I don't mean ignoring the fact that while you have improved your thing in one area you have >> broken something else. >> >> Guess I must be wrong. > As far as I?m concerned you are quite correct. Though I can see LiveCode?s dilemma. It was made clear during the Kickstarter campaign that the engine was in need of a lot of attention to be brought into a state where it could provide a solid base for the future. It is apparent that it wasn?t just the code that needed bringing up to date so did its source management, its automation (especially the very complicated build process) and, the most easily overlooked, its testing. > > I far as I can tell LiveCode is still using 20th century testing techniques (that you may know by the phrase "suck it and see?) and these do not seem to have changed until recently. LiveCode has developed a test framework for LiveCode Builder and, according to the latest blog, now has just over 500 repeatable tests and, I believe, has started to use static analysis tools to find errors in the C code. I see these as both steps in the right direction but they are small steps at the start of what will be a very long walk. (I help out in the development of the Red programming language. It?s current scope is minute compared with LiveCode, yet it has in excess of 20,000 automated tests.) > > Until LiveCode have built up a decent sets of automated tests which test most aspects of LiveCode, the chance of breaking things when introducing new features is going to be high. Yet LiveCode cannot stop introducing new features if it is to survive as a company. > > As a result, I believe you and all LiveCoders are right to be wary of each new release and not to rely on it they have tested it themselves. This is why I suggested that RunRev put out a "Rock Solid" version that has been tested to the max. that people who are not really interested in testing the latest thing and stress-busting their stacks can rely on; possibly for the next 2-3 years while RunRev get on with all the other stuff. What, however, is becoming apparent, is that almost every version since 4.0 (see my earlier post) has got broken bits, buggy bits or in some other way is shakey round the edges. As version 4.0 is no longer available commercially, there is no Open Source version, no Free version, and I am not going to start pirating it round the net, RunRev really does need to produce something that: 1. Is stable, stable, stable. 2. Has had all the stuff that has become broken fixed, fixed, fixed. 3. Will pump out standalones that work cross platform, cross platform, cross platform. Perhaps, at that rate, it ought to be called "LiveCode 6.6.6" . . . LOL. Obviously to test that version a PROPER test regime (i.e. not waiting for end-users to stumble on something by chance) has to be developed. I do think the theory that by releasing an Open Source version of LiveCode thousands of end-users would suddenly put aside loads of their time for Beta testing was extremely disingenuous. And so it has proven! ------------------------------- Now, every time I download some Open Source stuff onto one of my computers it asks me questions as to whether I will allow the program to automatically send feedback and bug-reports back to the mothership . . . which is a really sensible idea and might be a good thing in LiveCode. > > So how do LiveCoders test their own scripts? I guess using the tried and tested techniques that LiveCode have been using. Certainly, teachers (!!!!) who use LiveCode to pop together a "quick-N-dirty" standalone to deliver something, with a spot of testing thrown in, to their charges, do not have the time to do any serious testing - I wonder how many other developers really have that sort of time when there's bills to pay, mouths to feed, deadlines to meet? I donated some money to the Open Source Kickstarter campaign (and would again) for the simple reason that the amount I donated was less than a commercial licence would have cost me. I did not at that time fool myself that if an Open Source version did come to fruition I would spend hours testing things. I wonder if the majority of supporters of the Kickstarter were not rather similar? The only time I file a bug report and/or report it on the Us-List or the Forums is if I stumble upon one, not because I go bug-hunting. > > I admit that?s what I?ve done with the little LiveCode that I have written so far but I?ve worked out how to write an automated tests of a LiveCode Desktop application. Now I just need to find the time and, more importantly, the discipline to start to do so. Time and discipline are what are needed, but we all have already got most of both our time and discipline devoted to a load of other things. If somebody could pay me what I make at the moment to "sit on my bum" for the next 5 years and give me a list of what to test with LiveCode I might possibly do it. But the problem would be with the list, because with LiveCode everything has to be tested, and as the thing is holistic, how everything interacts with everything else. I wouldn't really know where to begin. I do think that RunRev should move pretty fast to get a Rock Solid version in place (who trusts 'stable' right now?), and regain trust. I am sure they could do that. Richmond. From benr_mc at cogapp.com Fri Apr 10 11:11:24 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 10 Apr 2015 16:11:24 +0100 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: <5527E81C.8070703@cogapp.com> On 10/04/2015 15:48, Geoff Canyon wrote: > One thing that occurred to me about brute-forcing it: the sum of the entire > list is 129,161,818. If there is a set that adds up to 100,000,000, then > that means that the rest of the numbers have to add up to 129,161,818 - > 100,000,000 = 29,161,818. So to make the brute force consider fewer > options/be quicker, you could search for sets that add up to 29,161,818 and > bail out whenever your total goes over that number instead of 100,000,000. > Once you find such a set, take the numbers*not* in that set, and you're > done. Ooooh, that _is_ clever! Simply calling my function with a target of 29,161,818 finds all solutions (there's only one, of course) in about 2 seconds after I removed the alert when it's found, versus 160 seconds with a target of 100,000,000. There must be a general version of this pattern - where there's an inverse of the answer you're looking for, which implies the desired answer but is easier to calculate. Very nice. Ben From richmondmathewson at gmail.com Fri Apr 10 11:18:48 2015 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 10 Apr 2015 18:18:48 +0300 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: References: <5526B470.7090201@gmail.com> <5527E31D.2050903@fourthworld.com> Message-ID: <5527E9D8.80801@gmail.com> On 10/04/15 18:02, Roger Eller wrote: > On Fri, Apr 10, 2015 at 10:50 AM, Richard Gaskin > wrote: >> Richmond wrote: >> >>> On 09/04/15 20:05, Richard Gaskin wrote: >> ... >>>> Can't paste into other programs: >>>> >>> Not entirely true: >>> >>> On my Linux box, running XFCE as my desktop, I find I can copy-paste >>> from the LC scriptEditor into LeafPad (the XFCE basic text editor) >>> and then, from LeafPad into whatever else. >>> >>> However, I seem unable to paste directly into anything that features >>> formatted text, such as LibreOffice. >>> >>> So, like so many things in LiveCode: Good in parts, and terribly >>> inconsistent. >> True, my brief summary here didn't attempt to capture the full scope of >> what's in the report. >> >> I can copy and paste between LC and gedit well, but not LbreOffice, >> Firefox, Chrome, or Thunderbird, so unfortunately I've had to develop a >> habit of copying scripts from LC into gedit, select all, copy, and then >> paste here or into whatever program I'm using to help someone learn >> LiveCode. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> > Me too, but I use Notepad to purify the text. > > ~Roger > _______________________________________________ > "purify" . . . LOL Obviously the problem is that one can copy raw text from LiveCode, but cannot paste it into anything that expects styled text. This is easily proven: I copied a script in Livecode and attempted to PASTE it into a LibreOffice Writer document: no joy. I then attempted to "PASTE SPECIAL" - unformatted text - into the same LibreOffice Writer document and it worked! Richmond. From colinholgate at gmail.com Fri Apr 10 11:19:44 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Fri, 10 Apr 2015 11:19:44 -0400 Subject: An interesting programming challenge In-Reply-To: <5527E81C.8070703@cogapp.com> References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> <5527E81C.8070703@cogapp.com> Message-ID: <3DCC3C11-D9C2-4F16-9CE8-53F9A4D38A93@gmail.com> Here?s the Javascript version: http://colin.scienceninja.com/math/slices.html It takes between 5 and 15 milliseconds to run on my iPad. From andre.bisseret at wanadoo.fr Fri Apr 10 11:20:27 2015 From: andre.bisseret at wanadoo.fr (=?utf-8?Q?Andr=C3=A9_Bisseret?=) Date: Fri, 10 Apr 2015 17:20:27 +0200 Subject: How to get the right filename (with a standalone 7.0.3)? In-Reply-To: References: Message-ID: <0146E6AB-B601-4E1F-A986-BC75AED42304@wanadoo.fr> Thank you much Bill for your reply. My problem is on Mac. The same handler worked well with a standalone built before livecode 7. It does not work with the livecode 7? standalone. I am going back to the previous version of my app So, I can?t use tabAlign for the fields ;-(( Best Andr? > Le 10 avr. 2015 ? 16:35, Earthednet-wp a ?crit : > > Andre, > I don't know if I'm doing this right, but I test for whether I'm running a Mac standalone using the environment and platform variables, and adjust the path accordingly. The standalone builder puts the files in a bundle and the path is different. I didn't know if it's supposed to work this way, but I started learning to building standalones in livecode 7.... series and that's what I had to do. > > If LC is supposed to take care of that for me, I'd sure like to know. > > Good luck, > Bill > > William Prothero > http://es.earthednet.org > >> On Apr 10, 2015, at 3:20 AM, Andr? Bisseret wrote: >> >> I am using LC 7.03 for a few days now. >> My app was running well with 6.6.3. But, I would like to use 7 now in order to be able to set the tabAlign of fields. >> >> In my app a splash opens a main stack. >> In the script of this one I get the filename of this main stack in order to build the path of a folder which is at the same level. >> >> So, I put the name of the folder into last item of the filename of the stack. >> Ex.: >> filename of the stack : ?gestion ost?o?: >> /Users/andrebisseret/Desktop/aaNewOsteo/gestion ost?o.livecode >> and for the folder ?PATIENTS? : >> /Users/andrebisseret/Desktop/aaNewOsteo/PATIENTS >> >> In the IDE all is running as expected >> >> NOT in the new standalone (made with LC 7.0.3);-(( >> >> If the expected filename is: /Users/andrebisseret/Desktop/aaNewOsteo/gestion ost?o.livecode >> >> in the standalone, it is a strange mess; I get: >> /Users/andrebisseret/Desktop/aaNewOsteo/Users/andrebisseret/Desktop/aaNewOsteo/oste??oCiel.app/Contents/MacOS/gestion ost?o.livecode >> >> so that, of course, I can?t build the right path for the folder:-(( >> >> What am I missing or am I doing wrong? >> >> Thanks a lot in advance for any help >> >> Best regards >> >> Andr? >> >> _______________________________________________ From mwieder at ahsoftware.net Fri Apr 10 11:21:13 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 10 Apr 2015 08:21:13 -0700 Subject: An interesting programming challenge In-Reply-To: References: <14ca12f1329-7431-13a53@webprd-a83.mail.aol.com> <921139391085.20150409221949@ahsoftware.net> Message-ID: <1791175475708.20150410082113@ahsoftware.net> Jerry- > Indeed. Lets get to work on a LISP SDK for LC. With a debugger. (possibly (you meant (grin))) -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From benr_mc at cogapp.com Fri Apr 10 11:25:13 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 10 Apr 2015 16:25:13 +0100 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: <5527EB59.1080603@cogapp.com> On 10/04/2015 16:04, Colin Holgate wrote: > Don?t you have to continue exploring, if the running total goes over 31? There may be a mixture of negative and positive numbers ahead, that will show up a different valid slice of numbers. > > I tried using Jerry?s approach under ActionScript, slightly modified to use arrays instead of strings, and it took just over 300 mS. Tried as Javascript too, and that seemed to be under 2 milliseconds! Hi Colin, No, that's the other challenge (the CleverCat one) - we're in a sub-thread talking about the metro populations one. Depending on your email client, this may be more or less obvious! But in regards to the CleverCat challenge, I had an interesting finding which I still can't understand - maybe the wisdom of this list will explain? On 10/04/2015 02:36, Jerry Jensen wrote: > Here?s my script that gave the right answer the first time too. It runs in > about 100 msec on a MacBookPro 2.6GHz i7 with Yosemite 10.10.3 and LC 6.7.4 Obviously, my attempt gave the right answer as well (otherwise I'd have kept my mouth shut - but when I then went back and looked at Jerry's code, it was very similar, but I smugly thought mine would probably be faster; because his solution involves a lot of cropping of the string, and mine doesn't change the string at all, instead making use of arrays which I always believe are insanely fast. Then I timed mine, and the opposite is true: my function is about six times slower than Jerry's. Looking at them more closely, this still seems surprising to me. I think we're doing the same number of additions; the same number of loops. I'm accessing the array twice as often as Jerry is accessing tRunningSum, but I would expect that to be more than offset by the effort of cropping the string. Why is Jerry's function so much faster than mine? function cleverCatJerry tRay local tSlices, tRunningSum, tLoopCount, tItem, tMsec put 0 into tSlices put 0 into tRunningSum put the number of items in tRay into tLoopCount repeat tLoopCount times put 0 into tRunningSum repeat for each item tItem in tRay add tItem to tRunningSum if tRunningSum >= 32 then add 1 to tSlices end repeat delete item 1 of tRay end repeat return tSlices end cleverCatJerry function cleverCatBen tNumbers local iNumSlices, aSumFromLoc, index, i put 0 into iNumSlices put empty into aSumFromLoc put 0 into index repeat for each item n in tNumbers add 1 to index repeat with i = 1 to index add n to aSumFromLoc[i] if aSumFromLoc[i] > 31 then add 1 to iNumSlices end repeat end repeat return iNumSlices end cleverCatBen From dochawk at gmail.com Fri Apr 10 11:41:43 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 10 Apr 2015 08:41:43 -0700 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <5527B3A0.5000308@gmail.com> References: <5526B146.6070702@fourthworld.com> <5526B470.7090201@gmail.com> <5527B3A0.5000308@gmail.com> Message-ID: On Fri, Apr 10, 2015 at 4:27 AM, Richmond wrote: > So, I will assume that EVERY SINGLE RELEASE of LiveCode after 4.0 is > "Beta", "Bugged" or whatever, > as a broken capability has never been fixed. > > --------------- > > I have always thought that the idea of releasing new versions of software > was to improve on earlier versions. > > And by "improving" I don't mean ignoring the fact that while you have > improved your thing in one area you have > broken something else. > > Guess I must be wrong. > And *I* didn't write this! :) But it is definitely a recurrent theme of mine. However, I have never had a problem pasting formatted text back and forth between the editor and LibreOffice on mac & windows. I think that the rock-stable versions are called "HyperCard 2.0" and "Supercard 1.5" :) What I *really* don't get is why the stacks are still monolithic, rather than something upon which we can use normal revision control, patching,etc. (says the guy who used diff & patch on his doctoral dissertation when stranded for three days with a broken transmission, a laptop, and a not-quite up to date version) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From rdimola at evergreeninfo.net Fri Apr 10 12:09:01 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 10 Apr 2015 12:09:01 -0400 Subject: Import as image as control. Where is it? In-Reply-To: References: <55256808.1020601@hyperactivesw.com> <007e01d07224$c8e2a4b0$5aa7ee10$@net> <883AAE82-D3CE-4CCF-A119-8FEEC5D097CD@major-k.de> <00a001d0722b$20af1650$620d42f0$@net> <88EE670B-1529-403A-A69D-205B1DD7C364@major-k.de> Message-ID: <000601d073a8$a925ef80$fb71ce80$@net> Thanks All!! I get it now. This works like a charm Mike. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Bonner Sent: Wednesday, April 08, 2015 8:16 PM To: How to use LiveCode Subject: Re: Import as image as control. Where is it? if the filename property is empty, store the text of the image to a property or variable, pop in your new image, then to revert, set the text of image whatever to the text you stored in the property. If there IS a filename set, and you want to do the flippy floppy, store the filename instead, and set it back when you're done. On Wed, Apr 8, 2015 at 1:47 PM, Klaus major-k wrote: > Hi Ralph, > > > Am 08.04.2015 um 20:37 schrieb Ralph DiMola : > > > > Klaus, > > I don't think I get it. 2 questions: > > > > How is...... > > Set the filename of your image to the modified file on disk > > this will only reference the external image file. > > > Different from....... > > put url("binfile:" & the filename of img "Your image here?) into img > "Your image here? > > this will put a copy of that file on disk into the existing image > object (again). > Just like ?Import as control? does. > > > This is for a mobile app. So even though the stack is carrying the > weight of the imported image I still need to put the original imported > image into the copy file pane of the standalone setting if I want > change it and then return to the original image? > > No! > > Once the image has been ?imported?, what: put url(?bifile: ? into > image XYZ does) you do not need the image file, since it is not > referenced anymore. > > Hope that helps! :-) > > > Thanks!! > > > > Ralph DiMola > > > Subject: Re: Import as image as control. Where is it? > > > > Hi Ralph, > > > >> Am 08.04.2015 um 19:52 schrieb Ralph DiMola > >> >: > >> > >> I have an image control that was created by "Import image as control". > >> In some cases I want to change the image to one located on disk and > >> then back to the original. In the property inspector the filename > >> is empty. Where is the imported image and how do I reference it? > > > > "Import image as control? will put a copy of the image file into > > your > stack, so there is no reference to the file on disk anymore. > > > > Do like this: > > 1. Set the filename of your image to the modified file on disk 2. > > Then > later use the message box: > > put url("binfile:" & the filename of img "Your image here?) into img > "Your image here? > > > >> Ralph DiMola > >> IT Director > >> Evergreen Information Services > >> rdimola at evergreeninfo.net > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Apr 10 12:15:37 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 10 Apr 2015 11:15:37 -0500 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: <8CEDA781-B050-4F6B-93B7-CE92B2FCA27D@gmail.com> References: <5526B146.6070702@fourthworld.com> <5526B470.7090201@gmail.com> <5527B3A0.5000308@gmail.com> <8CEDA781-B050-4F6B-93B7-CE92B2FCA27D@gmail.com> Message-ID: They've had a test framework for the main engine for a while now too. I don't know how complete it is yet but it's been in use for maybe a couple of years. On April 10, 2015 7:19:00 AM CDT, Peter W A Wood wrote: > >I far as I can tell LiveCode is still using 20th century testing >techniques (that you may know by the phrase "suck it and see?) and >these do not seem to have changed until recently. LiveCode has >developed a test framework for LiveCode Builder and, according to the >latest blog, now has just over 500 repeatable tests and, I believe, has >started to use static analysis tools to find errors in the C code. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dixonja at hotmail.co.uk Fri Apr 10 12:19:50 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 10 Apr 2015 17:19:50 +0100 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: References: , <5526B146.6070702@fourthworld.com> <5526B470.7090201@gmail.com>, <5527B3A0.5000308@gmail.com>, <8CEDA781-B050-4F6B-93B7-CE92B2FCA27D@gmail.com>, Message-ID: Obviously not complete at all... with the number of bugs that seem to slip through. > Subject: Re: Release 6.7.4 Stable / 7.0.4 Stable > From: jacque at hyperactivesw.com > Date: Fri, 10 Apr 2015 11:15:37 -0500 > To: use-livecode at lists.runrev.com > > They've had a test framework for the main engine for a while now too. I don't know how complete it is yet but it's been in use for maybe a couple of years. From richmondmathewson at gmail.com Fri Apr 10 12:30:29 2015 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 10 Apr 2015 19:30:29 +0300 Subject: Release 6.7.4 Stable / 7.0.4 Stable In-Reply-To: References: , <5526B146.6070702@fourthworld.com> <5526B470.7090201@gmail.com>, <5527B3A0.5000308@gmail.com>, <8CEDA781-B050-4F6B-93B7-CE92B2FCA27D@gmail.com>, Message-ID: <5527FAA5.8050300@gmail.com> On 10/04/15 19:19, John Dixon wrote: > Obviously not complete at all... with the number of bugs that seem to slip through. Better phone up the pest control officer. Richmond. > >> Subject: Re: Release 6.7.4 Stable / 7.0.4 Stable >> From: jacque at hyperactivesw.com >> Date: Fri, 10 Apr 2015 11:15:37 -0500 >> To: use-livecode at lists.runrev.com >> >> They've had a test framework for the main engine for a while now too. I don't know how complete it is yet but it's been in use for maybe a couple of years. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Apr 10 12:29:57 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 10 Apr 2015 11:29:57 -0500 Subject: An interesting programming challenge In-Reply-To: <5527EB59.1080603@cogapp.com> References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> <5527EB59.1080603@cogapp.com> Message-ID: On Fri, Apr 10, 2015 at 10:25 AM, Ben Rubinstein wrote: > making use of arrays which I always believe are insanely fast Arrays are much slower than simple variables. -- takes > 9 seconds: on mouseUp put the long seconds into T repeat with i = 1 to 10000000 get i mod 100 add 23 to X[i] end repeat put the long seconds - T end mouseUp -- takes < 1.8 seconds on mouseUp put the long seconds into T repeat with i = 1 to 10000000 get i mod 100 add 23 to X end repeat put the long seconds - T end mouseUp From pete at lcsql.com Fri Apr 10 13:02:40 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 10 Apr 2015 10:02:40 -0700 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> <5527EB59.1080603@cogapp.com> Message-ID: I don't think this is a fair comparison since the end results are totally different. In the array test, the result is a large number of values whereas in the simple variable test you end up with one value. I changed the simple variable test to "add 23 to line i of X" so it produces multiple values. After letting it run for a couple of minutes, I aborted it. Then I changed the array test to "add 23 to x[3]" so it only produced one value. It took 2.3 seconds compared to 1.8 seconds for the variable test. Still longer for the array but a much smaller difference, especially when you divide it by 10000000. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Apr 10, 2015 at 9:29 AM, Geoff Canyon wrote: > On Fri, Apr 10, 2015 at 10:25 AM, Ben Rubinstein > wrote: > > > making use of arrays which I always believe are insanely fast > > > Arrays are much slower than simple variables. > > -- takes > 9 seconds: > on mouseUp > put the long seconds into T > repeat with i = 1 to 10000000 > get i mod 100 > add 23 to X[i] > end repeat > put the long seconds - T > end mouseUp > > -- takes < 1.8 seconds > on mouseUp > put the long seconds into T > repeat with i = 1 to 10000000 > get i mod 100 > add 23 to X > end repeat > put the long seconds - T > end mouseUp > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dave at applicationinsight.com Fri Apr 10 13:36:47 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 10 Apr 2015 10:36:47 -0700 (PDT) Subject: How to get the right filename (with a standalone 7.0.3)? In-Reply-To: <0146E6AB-B601-4E1F-A986-BC75AED42304@wanadoo.fr> References: <0146E6AB-B601-4E1F-A986-BC75AED42304@wanadoo.fr> Message-ID: <1428687407743-4691018.post@n4.nabble.com> Hi Andre (and William) It's a known bug http://quality.runrev.com/show_bug.cgi?id=14295 The problem is to do with how LiveCode from 6.6.5 onwards deals with "Non-executable file redirection on Mac" - visit the bug report for more on this (and to see Jacque's and my own workarounds) PS: this bug only effects later versions of OS X, all other platforms are fine ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-get-the-right-filename-with-a-standalone-7-0-3-tp4690993p4691018.html Sent from the Revolution - User mailing list archive at Nabble.com. From andre.bisseret at wanadoo.fr Fri Apr 10 14:27:45 2015 From: andre.bisseret at wanadoo.fr (=?utf-8?Q?Andr=C3=A9_Bisseret?=) Date: Fri, 10 Apr 2015 20:27:45 +0200 Subject: How to get the right filename (with a standalone 7.0.3)? In-Reply-To: <1428687407743-4691018.post@n4.nabble.com> References: <0146E6AB-B601-4E1F-A986-BC75AED42304@wanadoo.fr> <1428687407743-4691018.post@n4.nabble.com> Message-ID: Thank you very much Dave for your reply. Very helpful information I am going to read the bug report tomorrow morning ;-)) Andr? > Le 10 avr. 2015 ? 19:36, Dave Kilroy a ?crit : > > Hi Andre (and William) > > It's a known bug http://quality.runrev.com/show_bug.cgi?id=14295 > > The problem is to do with how LiveCode from 6.6.5 onwards deals with > "Non-executable file redirection on Mac" - visit the bug report for more on > this (and to see Jacque's and my own workarounds) > > PS: this bug only effects later versions of OS X, all other platforms are > fine > > > > ----- > "The difference between genius and stupidity is; genius has its limits." - Albert Einstein > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-get-the-right-filename-with-a-standalone-7-0-3-tp4690993p4691018.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tedennis at softwaredetails.com Fri Apr 10 14:52:21 2015 From: tedennis at softwaredetails.com (Terry Dennis) Date: Fri, 10 Apr 2015 11:52:21 -0700 Subject: Release 6.7.4 Stable / 7.0.4 Stable Message-ID: <5527E7DF.20108@gmail.com> Message-ID: Richmond: re: I donated some money to the Open Source Kickstarter campaign (and would again) for the simple reason that the amount I donated was less than a commercial licence would have cost me. Likewise. I haven?t followed any of the Open-Source ?enhancements?, primarily because my LC needs are already (mostly) supported with the existing LC feature set being used in a Windows desktop environment (soon to be expanded to Android and beyond). I don?t have the time nor patience to be among the first to use new features, only to stumble over new bugs. Let somebody else be the pioneer. I don?t know whether the bugs showing up in 7.x and later are related to Open-Source, or if they are a result of RunRev developers? fiddling. As part of my support of Open-Source, I expected there to be some tight control over changes. Whether those controls are in place, I don?t know. But, I *do* know that it would be impossible to create a stable version without those controls. I can understand a new language environment (Rev/LC) to be unstable, with the need for extensive testing by anybody and everybody. However, LC is *not* a new language environment. It has been around for years. Granted, there has been a lot of pressure put on the development crew to bring the product up to date with environments and *stable* features expected to be in those environments. Note, in particular, the word ?stable?. Which brings us back to testing. Somebody, somewhere broke ?file eof? processing in 7.0. That, to me, is unconscionable. There should have been a test suite set up eons ago to test all the possible scenarios where a script could encounter ?eof?. There ain?t that many of them. Any time there is a change in a type of file processing, an entire suite of test scripts should be run to validate that the change both provides the expected result AND also doesn?t break existing code. A comprehensive suite of tests that exercises every verb in combination with every other verb is not likely to happen. The complexity of the relatively simple math problems spoken on this thread recently is just the tip of the iceberg when it comes to LC. More like the TIP of the tip of the iceberg. I think we all agree on the main point here. We need STABLE releases of LC. The question is, what do we do about it? Or, maybe the question should be ... what CAN we do about it? TED From richmondmathewson at gmail.com Fri Apr 10 15:07:32 2015 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 10 Apr 2015 22:07:32 +0300 Subject: Release 6.7.4 Stable / 7.0.4 Stable Message-ID: <5527E7DF.20108@gmail.com> In-Reply-To: References: Message-ID: <55281F74.9050501@gmail.com> On 10/04/15 21:52, Terry Dennis wrote: > Richmond: re: I donated some money to the Open Source Kickstarter campaign (and would again) for the simple reason that the amount I donated was less than a commercial licence would have cost me. > > Likewise. > > I haven?t followed any of the Open-Source ?enhancements?, primarily because my LC needs are already (mostly) supported with the existing LC feature set being used in a Windows desktop environment (soon to be expanded to Android and beyond). I don?t have the time nor patience to be among the first to use new features, only to stumble over new bugs. Let somebody else be the pioneer. I don?t know whether the bugs showing up in 7.x and later are related to Open-Source, or if they are a result of RunRev developers? fiddling. As part of my support of Open-Source, I expected there to be some tight control over changes. Whether those controls are in place, I don?t know. But, I *do* know that it would be impossible to create a stable version without those controls. > > I can understand a new language environment (Rev/LC) to be unstable, with the need for extensive testing by anybody and everybody. > > However, LC is *not* a new language environment. It has been around for years. Granted, there has been a lot of pressure put on the development crew to bring the product up to date with environments and *stable* features expected to be in those environments. The RunRev development crew put the pressure on themselves. Now they need to retrench. > Note, in particular, the word ?stable?. > > Which brings us back to testing. > > Somebody, somewhere broke ?file eof? processing in 7.0. That, to me, is unconscionable. There should have been a test suite set up eons ago to test all the possible scenarios where a script could encounter ?eof?. There ain?t that many of them. Any time there is a change in a type of file processing, an entire suite of test scripts should be run to validate that the change both provides the expected result AND also doesn?t break existing code. > > A comprehensive suite of tests that exercises every verb in combination with every other verb is not likely to happen. The complexity of the relatively simple math problems spoken on this thread recently is just the tip of the iceberg when it comes to LC. More like the TIP of the tip of the iceberg. > > I think we all agree on the main point here. We need STABLE releases of LC. > > The question is, what do we do about it? > > Or, maybe the question should be ... what CAN we do about it? Well, RunRev keep protesting how much they listen to their end-users . . . May be if enough people "shout" loud enough that may actually come true. Richmond. > > TED > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Apr 10 15:47:29 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 10 Apr 2015 14:47:29 -0500 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> <5527EB59.1080603@cogapp.com> Message-ID: On Fri, Apr 10, 2015 at 12:02 PM, Peter Haworth wrote: > I don't think this is a fair comparison since the end results are totally > different. In the array test, the result is a large number of values > whereas in the simple variable test you end up with one value. > I was emulating the original problem, where a single variable was being updated in one handler vs. multiple values in an array in the other handler. That's the key, rather than explicitly variables vs. arrays. So I should have said that in the practical sense, if you can get away with storing one value rather than multiple values, array or otherwise, you should do so. I did totally screw up in that I I used X[i] instead of X[it] forcing the array to store all the values. The corrected version: -- takes about 8 seconds: on mouseUp put the long seconds into T repeat with i = 1 to 10000000 get i mod 100 add 23 to X[it] end repeat put the long seconds - T end mouseUp But back to variables vs. arrays. The following two admittedly awful handlers compare variables vs. arrays fairly I think. Any difference between storing one hundred separate variables and an array of one hundred values gets lost in the noise of the gigantic switch statements: -- ugly, takes about 5 seconds: on mouseUp put the long seconds into T repeat with i = 1 to 2000000 get i mod 100 switch it case 0 add 23 to X[0] break case 1 add 23 to X[1] break case 2 add 23 to X[2] break case 3 add 23 to X[3] break ... case 97 add 23 to X[97] break case 98 add 23 to X[98] break case 99 add 23 to X[99] break end switch end repeat put the long seconds - T end mouseUp -- uglier, also takes about 5 seconds: on mouseUp put the long seconds into T repeat with i = 1 to 2000000 get i mod 100 switch it case 0 add 23 to X0 break case 1 add 23 to X1 break case 2 add 23 to X2 break case 3 add 23 to X3 break ... case 95 add 23 to X95 break case 96 add 23 to X96 break case 97 add 23 to X97 break case 98 add 23 to X98 break case 99 add 23 to X99 break end switch From shawnblc at me.com Fri Apr 10 16:36:23 2015 From: shawnblc at me.com (shawnlc) Date: Fri, 10 Apr 2015 13:36:23 -0700 (PDT) Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> Message-ID: <1428698183140-4691023.post@n4.nabble.com> You're welcome. Yeah, the docs don't make it very clear that once you create a database, you assign a user with a password to the database. This is what you use in the connection string, since A) that it's not a good idea to use your root password & B) use the same username and password on each database. In case A if your account was compromised then they'd have access to everything in your account. In case B if compromised they'd have access to all of your databases. You could also use a small php script on the server and keep the login credentials separate from your app. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Database-error-tp4690936p4691023.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Fri Apr 10 17:36:38 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 10 Apr 2015 16:36:38 -0500 Subject: Database error? In-Reply-To: <1428698183140-4691023.post@n4.nabble.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> Message-ID: <55284266.5090603@hyperactivesw.com> On 4/10/2015 3:36 PM, shawnlc wrote: > In case A if your account was compromised then they'd have access > to everything in your account. In case B if compromised they'd have access > to all of your databases. All this talk got me curious. I have an app that connects to a database. It currently has a strong password and an obscure login that isn't anyone's name or email. It has zero sensitive data; think of something like your personal jogging times, or a holiday calendar. Totally innocuous. You'd be comfortable posting it at a bus stop. What kind of risk would there be if someone were able to figure out the strong credentials it uses? We don't care if anyone sees the data itself, but if access were obtained would there be anything else the intruder could do? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Fri Apr 10 17:46:47 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 10 Apr 2015 14:46:47 -0700 Subject: Database error? In-Reply-To: <55284266.5090603@hyperactivesw.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> Message-ID: I'm kinda curious about this too. I assume the major risk is being subject to SQL injection attacks but I'm under the impression that if you use the variable name option in the rev database functions instead of including data values in an SQL statement, you're protected against injection attacks. I guess if the database username and password you use is the same as an admin login for your site, that's definitely an issue but nobody would do that.... would they? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Apr 10, 2015 at 2:36 PM, J. Landman Gay wrote: > On 4/10/2015 3:36 PM, shawnlc wrote: > >> In case A if your account was compromised then they'd have access >> to everything in your account. In case B if compromised they'd have >> access >> to all of your databases. >> > > All this talk got me curious. I have an app that connects to a database. > It currently has a strong password and an obscure login that isn't anyone's > name or email. It has zero sensitive data; think of something like your > personal jogging times, or a holiday calendar. Totally innocuous. You'd be > comfortable posting it at a bus stop. > > What kind of risk would there be if someone were able to figure out the > strong credentials it uses? We don't care if anyone sees the data itself, > but if access were obtained would there be anything else the intruder could > do? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Fri Apr 10 20:03:19 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 10 Apr 2015 20:03:19 -0400 Subject: Database error? In-Reply-To: <55284266.5090603@hyperactivesw.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> Message-ID: <001a01d073ea$eb8f1a30$c2ad4e90$@net> The MySQL DB option in revOpenDatabase supports SSL encryption. This will work if: 1) SSL is enabled on the MySQL server. 2) The servers firewall opens the appropriate ports. 3) SSL certificate is installed on the server. 4) revOpenDatabase SSL parameter is "true". 5) Encryption externals are checked in the standalone settings. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of J. Landman Gay Sent: Friday, April 10, 2015 5:37 PM To: How to use LiveCode Subject: Re: Database error? On 4/10/2015 3:36 PM, shawnlc wrote: > In case A if your account was compromised then they'd have access to > everything in your account. In case B if compromised they'd have > access to all of your databases. All this talk got me curious. I have an app that connects to a database. It currently has a strong password and an obscure login that isn't anyone's name or email. It has zero sensitive data; think of something like your personal jogging times, or a holiday calendar. Totally innocuous. You'd be comfortable posting it at a bus stop. What kind of risk would there be if someone were able to figure out the strong credentials it uses? We don't care if anyone sees the data itself, but if access were obtained would there be anything else the intruder could do? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Fri Apr 10 20:07:43 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 10 Apr 2015 17:07:43 -0700 Subject: Database error? In-Reply-To: <001a01d073ea$eb8f1a30$c2ad4e90$@net> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> Message-ID: Thanks Ralph, off to add this to my dictionary notes. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Apr 10, 2015 at 5:03 PM, Ralph DiMola wrote: > The MySQL DB option in revOpenDatabase supports SSL encryption. This will > work if: > > 1) SSL is enabled on the MySQL server. > 2) The servers firewall opens the appropriate ports. > 3) SSL certificate is installed on the server. > 4) revOpenDatabase SSL parameter is "true". > 5) Encryption externals are checked in the standalone settings. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf > Of J. Landman Gay > Sent: Friday, April 10, 2015 5:37 PM > To: How to use LiveCode > Subject: Re: Database error? > > On 4/10/2015 3:36 PM, shawnlc wrote: > > In case A if your account was compromised then they'd have access to > > everything in your account. In case B if compromised they'd have > > access to all of your databases. > > All this talk got me curious. I have an app that connects to a database. > It currently has a strong password and an obscure login that isn't anyone's > name or email. It has zero sensitive data; think of something like your > personal jogging times, or a holiday calendar. Totally innocuous. You'd be > comfortable posting it at a bus stop. > > What kind of risk would there be if someone were able to figure out the > strong credentials it uses? We don't care if anyone sees the data itself, > but if access were obtained would there be anything else the intruder could > do? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Fri Apr 10 20:42:13 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 10 Apr 2015 17:42:13 -0700 Subject: no stack revMenuBar in standalones? Message-ID: My standalones are choking on the line set the defaultMenuBar to the long id of grp "revMenuBar" of stack "revMenubar" A check found that exists() denies that there is any such objects. Is this one of those stacks that gets loaded late, or is there some ohter equivalent? Do I need to copy that group to one of my stacks and refer to that? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Fri Apr 10 21:07:52 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 10 Apr 2015 20:07:52 -0500 Subject: no stack revMenuBar in standalones? In-Reply-To: References: Message-ID: <552873E8.1000804@hyperactivesw.com> On 4/10/2015 7:42 PM, Dr. Hawkins wrote: > My standalones are choking on the line > > set the defaultMenuBar to the long id of grp "revMenuBar" of stack > "revMenubar" > > A check found that exists() denies that there is any such objects. > > Is this one of those stacks that gets loaded late, or is there some ohter > equivalent? Do I need to copy that group to one of my stacks and refer to > that? > That menu is part of the IDE and isn't included in a standalone. But you don't really want it, do you? All those development items and IDE menus? It's pretty specific to LiveCode. I wouldn't think most of it applies to a standalone. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Apr 10 21:14:35 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 10 Apr 2015 20:14:35 -0500 Subject: Database error? In-Reply-To: <001a01d073ea$eb8f1a30$c2ad4e90$@net> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> Message-ID: <5528757B.2000006@hyperactivesw.com> On 4/10/2015 7:03 PM, Ralph DiMola wrote: > The MySQL DB option in revOpenDatabase supports SSL encryption. This will > work if: > > 1) SSL is enabled on the MySQL server. > 2) The servers firewall opens the appropriate ports. > 3) SSL certificate is installed on the server. > 4) revOpenDatabase SSL parameter is "true". > 5) Encryption externals are checked in the standalone settings. Thanks. We aren't likely to purchase an SSL certificate for data like this. I was just wondering what harm, if any, could be done if someone did manage to get in. If they want to munge up the data it wouldn't really be much more than annoying. I was more concerned about whether the server itself could be breached somehow. We aren't using the account credetials, they're unique to the database, so that isn't a concern. I'm not quite sure what Pete meant by using the variable name option in the rev database functions though. (I am so not a database person.) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Fri Apr 10 21:36:58 2015 From: pete at lcsql.com (Peter Haworth) Date: Fri, 10 Apr 2015 18:36:58 -0700 Subject: Database error? In-Reply-To: <5528757B.2000006@hyperactivesw.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> <5528757B.2000006@hyperactivesw.com> Message-ID: On Fri, Apr 10, 2015 at 6:14 PM, J. Landman Gay wrote: > I'm not quite sure what Pete meant by using the variable name option in > the rev database functions though. (I am so not a database person.) Well you opened the door by asking :-) As an example, revDataFromQuery's syntax is revDataFromQuery([*columnDelim*],[*rowDelim*],*databaseID*,*SQLQuery*[, *varsList*]) "varslist" is the thing I mentioned. It allows you have a SELECT statement like this: SELECT col1,col2 FROM myTable WHERE col3=:1 AND col4=:2 The values for :1 and :2 are supplied in the varslist which can either be a comma separated list of simple variable names or a single array variable with, in this case, keys 1 and 2, with the variable names enclosed in quotes. So the revDataFromQuery call would be: put revDataFromQuery(,,gDBID,tSelect,"tValue1",tValue2") into tData OR put revDataFromQuery(,,gDBID,tSelect,"tArray") into tData In addition to preventing SQL injection attacks, this also avoids the need to escape troublesome characters like quotes in the data. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From jacque at hyperactivesw.com Fri Apr 10 21:43:04 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 10 Apr 2015 20:43:04 -0500 Subject: Lest anyone else go mad Message-ID: <55287C28.8060500@hyperactivesw.com> I wasted an afternoon going crazy, so to spare anyone else the pain: If you do not include an (unspecified) number of icons when building an iOS app, the app will not install. If you try it with my AirLaunch utility via Dropbox, Dropbox will ask if you want to install, try to install, and then tell you it doesn't work "with this kind of file." If you try to install via XCode, it will tell you that the entitlements in your profile do not match those in the app. I spent half a day trying to figure out why my "entitlements", none of which I have ever signed up for, were incorrect. Which of course they weren't. Ah, Apple. I was just trying to see if my Android app would build for iOS and I only assigned one iPad icon. Apparently that's not good enough. I don't know what is, I ended up putting them all in. Do not follow me. To take this path is madness. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Fri Apr 10 21:49:18 2015 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 10 Apr 2015 18:49:18 -0700 Subject: Lest anyone else go mad In-Reply-To: <55287C28.8060500@hyperactivesw.com> References: <55287C28.8060500@hyperactivesw.com> Message-ID: On Apr 10, 2015, at 6:43 PM, J. Landman Gay wrote: > > I wasted an afternoon going crazy It usually takes me much less time. Practice, practice, practice! From jacque at hyperactivesw.com Fri Apr 10 21:52:11 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 10 Apr 2015 20:52:11 -0500 Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> <5528757B.2000006@hyperactivesw.com> Message-ID: <55287E4B.7040703@hyperactivesw.com> I freeze up with this stuff, just like I do with math. But...but...won't an intruder be likely to send their own queries, regardless of how the app is doing it? If they include raw values, the database will still respond, right? So why would it matter how the app is doing it? On 4/10/2015 8:36 PM, Peter Haworth wrote: > On Fri, Apr 10, 2015 at 6:14 PM, J. Landman Gay > wrote: > >> I'm not quite sure what Pete meant by using the variable name option in >> the rev database functions though. (I am so not a database person.) > > > Well you opened the door by asking :-) > > As an example, revDataFromQuery's syntax is > > revDataFromQuery([*columnDelim*],[*rowDelim*],*databaseID*,*SQLQuery*[, > *varsList*]) > > "varslist" is the thing I mentioned. It allows you have a SELECT statement > like this: > > SELECT col1,col2 FROM myTable WHERE col3=:1 AND col4=:2 > > The values for :1 and :2 are supplied in the varslist which can either be a > comma separated list of simple variable names or a single array variable > with, in this case, keys 1 and 2, with the variable names enclosed in > quotes. > > So the revDataFromQuery call would be: > > put revDataFromQuery(,,gDBID,tSelect,"tValue1",tValue2") into tData > > OR > > put revDataFromQuery(,,gDBID,tSelect,"tArray") into tData > > In addition to preventing SQL injection attacks, this also avoids the need > to escape troublesome characters like quotes in the data. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Apr 10 21:54:23 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 10 Apr 2015 20:54:23 -0500 Subject: Lest anyone else go mad In-Reply-To: References: <55287C28.8060500@hyperactivesw.com> Message-ID: <55287ECF.7020901@hyperactivesw.com> On 4/10/2015 8:49 PM, Jerry Jensen wrote: > On Apr 10, 2015, at 6:43 PM, J. Landman Gay wrote: >> >> I wasted an afternoon going crazy > > It usually takes me much less time. Practice, practice, practice! I was too stupid to know when to give up. I did practice some colorful language though, I got rather good at it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Fri Apr 10 22:11:33 2015 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 10 Apr 2015 19:11:33 -0700 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: On Apr 10, 2015, at 8:04 AM, Colin Holgate wrote: > > I tried using Jerry?s approach under ActionScript, slightly modified to use arrays instead of strings, and it took just over 300 mS. Tried as Javascript too, and that seemed to be under 2 milliseconds! Wow! That Javascript number is impressive. I?ll remember that next time somebody says LiveCode is fast. From m.schonewille at economy-x-talk.com Sat Apr 11 04:26:34 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 11 Apr 2015 10:26:34 +0200 Subject: no stack revMenuBar in standalones? In-Reply-To: References: Message-ID: <5528DABA.8080104@economy-x-talk.com> Hi Richard, I remember giving the advice to include that line of syntax. You could do this: if the environment contains "dev" then set the defaultMenuBar to the long id of grp "revMenuBar" of stack "revMenubar" end if (mind line wraps). If you do this, would you have a situation where you have no or the wrong menu bar set in your app? -- 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 4/11/2015 02:42, Dr. Hawkins wrote: > My standalones are choking on the line > > set the defaultMenuBar to the long id of grp "revMenuBar" of stack > "revMenubar" > > A check found that exists() denies that there is any such objects. > > Is this one of those stacks that gets loaded late, or is there some ohter > equivalent? Do I need to copy that group to one of my stacks and refer to > that? > From pete at lcsql.com Sat Apr 11 11:27:35 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 11 Apr 2015 15:27:35 +0000 Subject: Database error? In-Reply-To: <55287E4B.7040703@hyperactivesw.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> <5528757B.2000006@hyperactivesw.com> <55287E4B.7040703@hyperactivesw.com> Message-ID: Right, but to do that they'd have to know a username/password. SQL injection attacks alter the SQL statements sent by a valid user so the attacker doesn't need to know a username/password. Even more scary is how hackers can get into a system using a "I forgot my password" form with SQL injection, lots of examples on the web. On Fri, Apr 10, 2015, 6:52 PM J. Landman Gay wrote: > I freeze up with this stuff, just like I do with math. But...but...won't > an intruder be likely to send their own queries, regardless of how the > app is doing it? If they include raw values, the database will still > respond, right? So why would it matter how the app is doing it? > > On 4/10/2015 8:36 PM, Peter Haworth wrote: > > On Fri, Apr 10, 2015 at 6:14 PM, J. Landman Gay < > jacque at hyperactivesw.com> > > wrote: > > > >> I'm not quite sure what Pete meant by using the variable name option in > >> the rev database functions though. (I am so not a database person.) > > > > > > Well you opened the door by asking :-) > > > > As an example, revDataFromQuery's syntax is > > > > revDataFromQuery([*columnDelim*],[*rowDelim*],*databaseID*,*SQLQuery*[, > > *varsList*]) > > > > "varslist" is the thing I mentioned. It allows you have a SELECT > statement > > like this: > > > > SELECT col1,col2 FROM myTable WHERE col3=:1 AND col4=:2 > > > > The values for :1 and :2 are supplied in the varslist which can either > be a > > comma separated list of simple variable names or a single array variable > > with, in this case, keys 1 and 2, with the variable names enclosed in > > quotes. > > > > So the revDataFromQuery call would be: > > > > put revDataFromQuery(,,gDBID,tSelect,"tValue1",tValue2") into tData > > > > OR > > > > put revDataFromQuery(,,gDBID,tSelect,"tArray") into tData > > > > In addition to preventing SQL injection attacks, this also avoids the > need > > to escape troublesome characters like quotes in the data. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Sat Apr 11 11:37:07 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 11 Apr 2015 08:37:07 -0700 Subject: no stack revMenuBar in standalones? In-Reply-To: <5528DABA.8080104@economy-x-talk.com> References: <5528DABA.8080104@economy-x-talk.com> Message-ID: On Sat, Apr 11, 2015 at 1:26 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > if the environment contains "dev" then > set the defaultMenuBar to the long id of grp "revMenuBar" of stack > "revMenubar" > end if > > (mind line wraps). If you do this, would you have a situation where you > have no or the wrong menu bar set in your app? > And there is my "get out of jail free" card . . . on further review (and memory gets foggier every few years), the whole purpose of that line is that these were source cards, and are only ever touched in the IDE--they are only ever opened invisibly in the app (and then, only because formattedHeight doesn't work on unopen cards) Thanks to both of you. I think I can have a freestanding app again. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Apr 11 11:41:15 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 11 Apr 2015 08:41:15 -0700 Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> <5528757B.2000006@hyperactivesw.com> <55287E4B.7040703@hyperactivesw.com> Message-ID: On Sat, Apr 11, 2015 at 8:27 AM, Peter Haworth wrote: > SQL injection attacks alter the SQL statements sent by a valid user so the > attacker doesn't need to know a username/password. > But they would need the encryption key, too. mySQL *can* be set to take only secure connections, can't it? Postgres can, but runrev inexplicably hasn't seen fit to add the line of code to allow this connection to be made; only for mySQL > Even more scary is how hackers can get into a system using a "I forgot my > password" form with SQL injection, lots of examples on the web. > But https solves that, doesn't it? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From colinholgate at gmail.com Sat Apr 11 11:50:56 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 11 Apr 2015 11:50:56 -0400 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: <12FF1045-EC7D-45D9-AA32-BA630AEC99D8@gmail.com> If I run the Javascript version on my iPad it?s typically 5 milliseconds http://colin.scienceninja.com/math/slices.html > On Apr 10, 2015, at 10:11 PM, Jerry Jensen wrote: > > On Apr 10, 2015, at 8:04 AM, Colin Holgate wrote: >> >> I tried using Jerry?s approach under ActionScript, slightly modified to use arrays instead of strings, and it took just over 300 mS. Tried as Javascript too, and that seemed to be under 2 milliseconds! > > Wow! That Javascript number is impressive. I?ll remember that next time somebody says LiveCode is fast. From pete at lcsql.com Sat Apr 11 12:19:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 11 Apr 2015 09:19:41 -0700 Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> <5528757B.2000006@hyperactivesw.com> <55287E4B.7040703@hyperactivesw.com> Message-ID: Yes, these things can be solved by various security measures, but the point is that they aren't in a lot of company's IT setups, that's one of the reasons their sites get hacked. I don't think https helps with the "forgot my password" hack. It all starts with a hacker filling in a bogus email address in the password request form and appending a quote to the end of it. As long as that makes it to the server, and if the server isn't programmed correctly to handle invalid email addresses, the hacker is in business. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Apr 11, 2015 at 8:41 AM, Dr. Hawkins wrote: > On Sat, Apr 11, 2015 at 8:27 AM, Peter Haworth wrote: > > > SQL injection attacks alter the SQL statements sent by a valid user so > the > > attacker doesn't need to know a username/password. > > > > But they would need the encryption key, too. > > mySQL *can* be set to take only secure connections, can't it? Postgres > can, but runrev inexplicably hasn't seen fit to add the line of code to > allow this connection to be made; only for mySQL > > > > Even more scary is how hackers can get into a system using a "I forgot my > > password" form with SQL injection, lots of examples on the web. > > > > But https solves that, doesn't it? > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sat Apr 11 12:20:47 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 11 Apr 2015 11:20:47 -0500 Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> <5528757B.2000006@hyperactivesw.com> <55287E4B.7040703@hyperactivesw.com> Message-ID: <4CB31EA5-0D6E-49ED-B381-B5E3209E6E5E@hyperactivesw.com> Okay, so it sounds like there's no danger in my case. There's no public facing access, so no way to retrieve a forgotten password. The single set of credentials is hard coded into the app, which is unreadable after it's compiled, and the user doesn't know it. The only way to alter the SQL would be in a man in the middle attack, and if that happened, all they'd get back would be the set of data we don't care about. The database doesn't connect to or access any other files on the server. So unless there are SQL commands that can tell the database to access parts of the server that aren't the database, it sounds like the worst that would happen would be the deletion of the data, which isn't critical and is replaced daily anyway. Am I on the right track? On April 11, 2015 10:27:35 AM CDT, Peter Haworth wrote: >Right, but to do that they'd have to know a username/password. > >SQL injection attacks alter the SQL statements sent by a valid user so >the >attacker doesn't need to know a username/password. > >Even more scary is how hackers can get into a system using a "I forgot >my >password" form with SQL injection, lots of examples on the web. > >On Fri, Apr 10, 2015, 6:52 PM J. Landman Gay >wrote: > >> I freeze up with this stuff, just like I do with math. >But...but...won't >> an intruder be likely to send their own queries, regardless of how >the >> app is doing it? If they include raw values, the database will still >> respond, right? So why would it matter how the app is doing it? >> >> On 4/10/2015 8:36 PM, Peter Haworth wrote: >> > On Fri, Apr 10, 2015 at 6:14 PM, J. Landman Gay < >> jacque at hyperactivesw.com> >> > wrote: >> > >> >> I'm not quite sure what Pete meant by using the variable name >option in >> >> the rev database functions though. (I am so not a database >person.) >> > >> > >> > Well you opened the door by asking :-) >> > >> > As an example, revDataFromQuery's syntax is >> > >> > >revDataFromQuery([*columnDelim*],[*rowDelim*],*databaseID*,*SQLQuery*[, >> > *varsList*]) >> > >> > "varslist" is the thing I mentioned. It allows you have a SELECT >> statement >> > like this: >> > >> > SELECT col1,col2 FROM myTable WHERE col3=:1 AND col4=:2 >> > >> > The values for :1 and :2 are supplied in the varslist which can >either >> be a >> > comma separated list of simple variable names or a single array >variable >> > with, in this case, keys 1 and 2, with the variable names enclosed >in >> > quotes. >> > >> > So the revDataFromQuery call would be: >> > >> > put revDataFromQuery(,,gDBID,tSelect,"tValue1",tValue2") into tData >> > >> > OR >> > >> > put revDataFromQuery(,,gDBID,tSelect,"tArray") into tData >> > >> > In addition to preventing SQL injection attacks, this also avoids >the >> need >> > to escape troublesome characters like quotes in the data. >> > >> > Pete >> > lcSQL Software >> > Home of lcStackBrowser >and >> > SQLiteAdmin >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Sat Apr 11 12:33:59 2015 From: pete at lcsql.com (Peter Haworth) Date: Sat, 11 Apr 2015 09:33:59 -0700 Subject: Database error? In-Reply-To: <4CB31EA5-0D6E-49ED-B381-B5E3209E6E5E@hyperactivesw.com> References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> <5528757B.2000006@hyperactivesw.com> <55287E4B.7040703@hyperactivesw.com> <4CB31EA5-0D6E-49ED-B381-B5E3209E6E5E@hyperactivesw.com> Message-ID: If there's no sensitive data, and the db credentials aren't used for any other databases and/or user logins, I'd say you're OK. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Apr 11, 2015 at 9:20 AM, J. Landman Gay wrote: > Okay, so it sounds like there's no danger in my case. There's no public > facing access, so no way to retrieve a forgotten password. The single set > of credentials is hard coded into the app, which is unreadable after it's > compiled, and the user doesn't know it. The only way to alter the SQL would > be in a man in the middle attack, and if that happened, all they'd get back > would be the set of data we don't care about. The database doesn't connect > to or access any other files on the server. > > So unless there are SQL commands that can tell the database to access > parts of the server that aren't the database, it sounds like the worst that > would happen would be the deletion of the data, which isn't critical and is > replaced daily anyway. > > Am I on the right track? > > On April 11, 2015 10:27:35 AM CDT, Peter Haworth wrote: > >Right, but to do that they'd have to know a username/password. > > > >SQL injection attacks alter the SQL statements sent by a valid user so > >the > >attacker doesn't need to know a username/password. > > > >Even more scary is how hackers can get into a system using a "I forgot > >my > >password" form with SQL injection, lots of examples on the web. > > > >On Fri, Apr 10, 2015, 6:52 PM J. Landman Gay > >wrote: > > > >> I freeze up with this stuff, just like I do with math. > >But...but...won't > >> an intruder be likely to send their own queries, regardless of how > >the > >> app is doing it? If they include raw values, the database will still > >> respond, right? So why would it matter how the app is doing it? > >> > >> On 4/10/2015 8:36 PM, Peter Haworth wrote: > >> > On Fri, Apr 10, 2015 at 6:14 PM, J. Landman Gay < > >> jacque at hyperactivesw.com> > >> > wrote: > >> > > >> >> I'm not quite sure what Pete meant by using the variable name > >option in > >> >> the rev database functions though. (I am so not a database > >person.) > >> > > >> > > >> > Well you opened the door by asking :-) > >> > > >> > As an example, revDataFromQuery's syntax is > >> > > >> > > >revDataFromQuery([*columnDelim*],[*rowDelim*],*databaseID*,*SQLQuery*[, > >> > *varsList*]) > >> > > >> > "varslist" is the thing I mentioned. It allows you have a SELECT > >> statement > >> > like this: > >> > > >> > SELECT col1,col2 FROM myTable WHERE col3=:1 AND col4=:2 > >> > > >> > The values for :1 and :2 are supplied in the varslist which can > >either > >> be a > >> > comma separated list of simple variable names or a single array > >variable > >> > with, in this case, keys 1 and 2, with the variable names enclosed > >in > >> > quotes. > >> > > >> > So the revDataFromQuery call would be: > >> > > >> > put revDataFromQuery(,,gDBID,tSelect,"tValue1",tValue2") into tData > >> > > >> > OR > >> > > >> > put revDataFromQuery(,,gDBID,tSelect,"tArray") into tData > >> > > >> > In addition to preventing SQL injection attacks, this also avoids > >the > >> need > >> > to escape troublesome characters like quotes in the data. > >> > > >> > Pete > >> > lcSQL Software > >> > Home of lcStackBrowser > >and > >> > SQLiteAdmin > >> > _______________________________________________ > >> > use-livecode mailing list > >> > use-livecode at lists.runrev.com > >> > Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> > http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > >> > >> > >> -- > >> Jacqueline Landman Gay | jacque at hyperactivesw.com > >> HyperActive Software | http://www.hyperactivesw.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at lists.runrev.com > >Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Sat Apr 11 13:56:52 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 11 Apr 2015 13:56:52 -0400 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: May have unearthed a reason for Javascript being so fast. If I run the same routine as ActionScript (the syntax is identical to Javascript for this example), the routine takes around 380 milliseconds. Still doing a good as LiveCode. But, if I change the list of numbers to be a Vector instead of an Array (a Vector is a typed array), the time comes down to 10 milliseconds. This suggests that Javascript is assuming that the entries in the array are integers, whereas LiveCode and ActionScript are having to work out that the entries are numbers. Between treating the array as a set of integers, and Safari perhaps running Javascript faster than Flash Player runs ActionScript, that could account for the speed difference. There?s some relevance to LiveCode too, in that with the new code in LiveCode 8, variables will need to be typed, and that could lead to a speed up for these kinds of tasks. From pmbrig at gmail.com Sat Apr 11 14:40:57 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 11 Apr 2015 14:40:57 -0400 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: Wait, so LC8 will have typed variables? We will have to declare every variable with its type before we use it? Or will this be optional? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 11, 2015, at 1:56 PM, Colin Holgate wrote: > There?s some relevance to LiveCode too, in that with the new code in LiveCode 8, variables will need to be typed, and that could lead to a speed up for these kinds of tasks. From colinholgate at gmail.com Sat Apr 11 14:43:22 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 11 Apr 2015 14:43:22 -0400 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: <81DC5B83-9ECF-4649-8A4F-945A177C48E4@gmail.com> I think it?s specifically to do with widgets you might make. Not normal stack scripts. > On Apr 11, 2015, at 2:40 PM, Peter M. Brigham wrote: > > Wait, so LC8 will have typed variables? We will have to declare every variable with its type before we use it? Or will this be optional? From gcanyon at gmail.com Sat Apr 11 14:45:36 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 11 Apr 2015 13:45:36 -0500 Subject: An interesting programming challenge In-Reply-To: <81DC5B83-9ECF-4649-8A4F-945A177C48E4@gmail.com> References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> <81DC5B83-9ECF-4649-8A4F-945A177C48E4@gmail.com> Message-ID: On Sat, Apr 11, 2015 at 1:43 PM, Colin Holgate wrote: > I think it?s specifically to do with widgets you might make. Not normal > stack scripts. And for now, widget code is actually slower than regular livecode -- it's expected to improve. From dochawk at gmail.com Sat Apr 11 14:59:48 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 11 Apr 2015 11:59:48 -0700 Subject: bottom of card off screen, but bottom < item 4 of screenloc Message-ID: I'm scratching my head here. Am I missing something obvious (again), or is something off kilter here? The bottom of a stack is off the screen. Yet "the bottom of stack out4" yields 1111 (which should be on screen; this is a 27" iMac!), while the "working screenRect" is 0,22,2560,1436 (which appears correct). (this is from code trying to keep new stacks on screen) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From stephenREVOLUTION2 at barncard.com Sat Apr 11 15:16:24 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 11 Apr 2015 12:16:24 -0700 Subject: Database error? In-Reply-To: References: <35CFC334-8B67-46CB-9D24-DEA92946372B@mac.com> <1428520456595-4690941.post@n4.nabble.com> <1428524971274-4690948.post@n4.nabble.com> <1428620686212-4690971.post@n4.nabble.com> <1428698183140-4691023.post@n4.nabble.com> <55284266.5090603@hyperactivesw.com> <001a01d073ea$eb8f1a30$c2ad4e90$@net> <5528757B.2000006@hyperactivesw.com> <55287E4B.7040703@hyperactivesw.com> Message-ID: On Sat, Apr 11, 2015 at 8:41 AM, Dr. Hawkins wrote: > But they would need the encryption key, too. > > mySQL *can* be set to take only secure connections, can't it? Postgres > can, but runrev inexplicably hasn't seen fit to add the line of code to > allow this connection to be made; only for mySQL > > > > Even more scary is how hackers can get into a system using a "I forgot my > > password" form with SQL injection, lots of examples on the web. > > > > But https solves that, doesn't it? > At Dreamhost, mySQL security is determined by the connecting IP number, if that's a help. If it's not coming from your IP, no access. Of course somebody will have to maintain the IPs at the webhost, and that may not be practical for a distribution. -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From lists at mangomultimedia.com Sat Apr 11 16:07:13 2015 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 11 Apr 2015 16:07:13 -0400 Subject: An interesting programming challenge In-Reply-To: References: <1428642297072-4690987.post@n4.nabble.com> <5527AEE2.8080408@cogapp.com> <1428670046919-4690997.post@n4.nabble.com> <5527DFF4.9070501@cogapp.com> Message-ID: On Saturday, April 11, 2015, Peter M. Brigham wrote: > Wait, so LC8 will have typed variables? We will have to declare every > variable with its type before we use it? Or will this be optional? > Typing is optional. -- Trevor DeVore From jacque at hyperactivesw.com Sat Apr 11 16:23:03 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 11 Apr 2015 15:23:03 -0500 Subject: bottom of card off screen, but bottom < item 4 of screenloc In-Reply-To: References: Message-ID: <552982A7.80304@hyperactivesw.com> On 4/11/2015 1:59 PM, Dr. Hawkins wrote: > I'm scratching my head here. Am I missing something obvious (again), or is > something off kilter here? > > The bottom of a stack is off the screen. Yet "the bottom of stack out4" > yields 1111 (which should be on screen; this is a 27" iMac!), while the > "working screenRect" is 0,22,2560,1436 (which appears correct). > > (this is from code trying to keep new stacks on screen) > If you're in the IDE, it could be the windowBoundingRect. LC sets that on startup to a smaller area than your screen to accomodate its palettes and other tools. It won't happen in your standalone. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Sat Apr 11 18:29:26 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 12 Apr 2015 00:29:26 +0200 Subject: Book is available again Message-ID: <5529A046.7090403@economy-x-talk.com> Hi everyone, My book "Programming LiveCode for the Real Beginner" is available again. The past few months, Economy-x-Talk could hardly keep up with the orders and we ran out of stock, but we are catching up now. If you're new on this mailing list, you may not have heard of my book yet. "Programming LiveCode for the Real Beginner" introduces you to the LiveCode programming language. The book starts with commands, functions and features that everyone needs to know about. The second half discusses subjects like Unicode, network communications, databases and XML. After reading this book, you'll know everything you need to make your own applications. You can buy this book at http://tinyurl.com/livecodebook More general information is available at http://tinyurl.com/n9ogfrs A portal for the book is at http://livecodebeginner.economy-x-talk.com We know a number of people have bought the book and are still waiting to receive it. We can assure you now, it will arrive soon. If you have been thinking about ordering the book but haven't done so yet: this is the time to order, since your book will be delivered shortly too. Currently, we're printing more copies. We will have many books in stock soon and for the next few months, we'll be able to ship book really quickly. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From dochawk at gmail.com Sat Apr 11 18:52:32 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 11 Apr 2015 15:52:32 -0700 Subject: copying from password protected substacks Message-ID: I absolutely need my source stacks encrypted. I have found that when I try to copy a group from a stack that I clone (turns out to be much faster to add objects to that group and delete the group than to delete individual items), I get a "can't cut object. Stack is password protected" error in the standalone (but not in the IDE). While the obvious answer in this case is to have another empty group to clone as part of the stack, this won't solve other cases where I function by copying groups from source stacks. This error also seems incorrect; I am not cutting . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Apr 11 18:55:58 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 11 Apr 2015 15:55:58 -0700 Subject: copying from password protected substacks In-Reply-To: References: Message-ID: On Sat, Apr 11, 2015 at 3:52 PM, Dr. Hawkins wrote: > have found that when I try to copy a group from a stack that I clone > (turns out to be much faster to add objects to that group and delete the > group than to delete individual items), I get a "can't cut object. Also, all of the substacks are encrypted with the same password on compile, but otherwise the stacks do not have passwords. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From m.schonewille at economy-x-talk.com Sat Apr 11 18:59:49 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 12 Apr 2015 00:59:49 +0200 Subject: copying from password protected substacks In-Reply-To: References: Message-ID: <5529A765.3070000@economy-x-talk.com> Hi Richard, You can't copy controls from password protected stacks, because that would allow you to paste controls on unprotected stacks and read the scripts. The solution is to create controls in an unprotected stack without scripts and set the parentScript of these controls to a button with a script on a password protected stack. I do this in my software Str?m, which copies the new components for a flow diagram from an unprotected stack, but has all its scripts protected by passwords. -- 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 4/12/2015 00:52, Dr. Hawkins wrote: > I absolutely need my source stacks encrypted. > > I have found that when I try to copy a group from a stack that I clone > (turns out to be much faster to add objects to that group and delete the > group than to delete individual items), I get a "can't cut object. Stack > is password protected" error in the standalone (but not in the IDE). > > While the obvious answer in this case is to have another empty group to > clone as part of the stack, this won't solve other cases where I function > by copying groups from source stacks. > > This error also seems incorrect; I am not cutting . . . > From dochawk at gmail.com Sat Apr 11 20:10:05 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 11 Apr 2015 17:10:05 -0700 Subject: copying from password protected substacks In-Reply-To: <5529A765.3070000@economy-x-talk.com> References: <5529A765.3070000@economy-x-talk.com> Message-ID: On Sat, Apr 11, 2015 at 3:59 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > You can't copy controls from password protected stacks, because that would > allow you to paste controls on unprotected stacks and read the scripts. > Thanks. But this will make life *much* more difficult. Can I copy from the protected stacks *to* another stack from a script within the protected stack (my experiments suggest no). Also, none of the things I want to copy have scripts (although some have a behavior in a button on another stack). > The solution is to create controls in an unprotected stack without scripts > and set the parentScript of these controls to a button with a script on a > password protected stack. > Actually, I would rather keep even the controls protected--there is serious work in their custom properties (and tedious work in creating them to match the federal forms!) There is not an issue of anyone else ever getting the unprotected stacks in an IDE; only the standalone will ever distribute. > > I do this in my software Str?m, which copies the new components for a flow > diagram from an unprotected stack, but has all its scripts protected by > passwords. > Does it make sense to in some way unlock the stacks after loading? But this would need the password for the other scripts -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Sat Apr 11 20:26:38 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 11 Apr 2015 17:26:38 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: If you set the passkey of the protected stack (to the password) before copying, you should be able to copy what you want. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/11/15, 5:10 PM, "Dr. Hawkins" wrote: >Thanks. But this will make life *much* more difficult. Can I copy from >the protected stacks *to* another stack from a script within the protected >stack (my experiments suggest no). > >Also, none of the things I want to copy have scripts (although some have a >behavior in a button on another stack). > From smudge.andy at googlemail.com Sun Apr 12 04:05:23 2015 From: smudge.andy at googlemail.com (AndyP) Date: Sun, 12 Apr 2015 01:05:23 -0700 (PDT) Subject: ANN: Script Editor Themer V2 Released Message-ID: <1428825923400-4691059.post@n4.nabble.com> Script Editor Themer V2 Released 11/04/2015 /your code has never looked this good/ Script Editor Themer (Seth) is a helper plugin to extend the LiveCode IDE, it allows the creation of custom color themes for the LiveCode script editor. This version is NOT compatible with LiveCode Community version as it contains password protected stacks. Find out more here: http://2108.co.uk/script-editor-themer/ ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059.html Sent from the Revolution - User mailing list archive at Nabble.com. From skip at magicgate.com Sun Apr 12 12:36:38 2015 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Sun, 12 Apr 2015 12:36:38 -0400 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <1428825923400-4691059.post@n4.nabble.com> References: <1428825923400-4691059.post@n4.nabble.com> Message-ID: Andy, I just purchased this, downloaded and installed.... LOVE IT! Is there a community around this product to share custom themes people have made? Thanks again for a great product! SKIP KIMPEL On Sun, Apr 12, 2015 at 4:05 AM, AndyP wrote: > Script Editor Themer > V2 Released > > 11/04/2015 > > /your code has never looked this good/ > > Script Editor Themer (Seth) is a helper plugin to extend the LiveCode IDE, > it allows the creation of custom color themes for the LiveCode script > editor. > > This version is NOT compatible with LiveCode Community version as it > contains password protected stacks. > > Find out more here: http://2108.co.uk/script-editor-themer/ > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour picker > / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobwarren at howsoft.com Sun Apr 12 12:51:18 2015 From: bobwarren at howsoft.com (Bob Warren) Date: Sun, 12 Apr 2015 13:51:18 -0300 Subject: (ANN] Webpage Editor for Linux Message-ID: <552AA286.3040500@howsoft.com> Hello again Linux fans! Quite a few years ago I produced a WYSIWYG Webpage Editor for Windows, using LC. Subsequently, I used it to set up my entire web site (howsoft.com). [See the following link if you are interested in the Windows version: http://www.howsoft.com/webed2/ ]. I wanted to produce a similar Editor for Linux, but I was unable to because LC did not provide the essential embedded browser required for the program. I tried a number of workarounds using WINE, but they were never entirely acceptable. Finally, I solved the problem for Linux (and also Windows or Mac) users by programming a similar JQuery online editor ("WebEd 4"). This can be found at: http://www.howsoft.com/browserapps/ . Eventually, I discovered a way of providing an auxiliary browser for LC/Linux using Python. You have probably seen this before, and it can be seen at: http://www.howsoft.com/runrev/extensions/ . Now, recently, after being frustrated for many years in my attempts to produce an offline Webpage Editor for Linux, I decided to have another go using the Python browser I had come up with. It worked! It is functionally identical to the Windows version, and you can find it at: http://www.howsoft.com/linux/webed2/ . [Note also that the web pages it produces are entirely compatible with the Windows version, so you can interchange files freely between Linux and Windows.] The only difficulties I had in employing the Python browser to make WebEd/Linux was the fact that of course it is not "embedded" in LC. This means that it was not always easy to manage the different rendering layers between LC and Python. But manage it I did, and I am happy with the result. I can now die in peace! Of course, when a truly embedded LC WebKit browser for Linux is up and running reliably, there will probably be no such little problems with the management of layers that I had with the Python browser. I look forward to that time, which is hopefully soon. Regards to all. Bob Warren From dave at applicationinsight.com Sun Apr 12 13:09:43 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Sun, 12 Apr 2015 10:09:43 -0700 (PDT) Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <1428825923400-4691059.post@n4.nabble.com> References: <1428825923400-4691059.post@n4.nabble.com> Message-ID: <1428858583088-4691062.post@n4.nabble.com> Andy I also love it - so nice to work against a dark background! ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691062.html Sent from the Revolution - User mailing list archive at Nabble.com. From smudge.andy at googlemail.com Sun Apr 12 13:41:51 2015 From: smudge.andy at googlemail.com (AndyP) Date: Sun, 12 Apr 2015 10:41:51 -0700 (PDT) Subject: ANN: Script Editor Themer V2 Released In-Reply-To: References: <1428825923400-4691059.post@n4.nabble.com> Message-ID: <1428860511228-4691063.post@n4.nabble.com> Thanks for your positive comments. It's great to hear that you are enjoying using Seth :-) I'm looking at a theme exchange where users can share their themes. I would be very much interested in what you would like to see in the exchange. E.g should there be a login so that themes can be grouped against a user name? A rating system? Etc.... ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691063.html Sent from the Revolution - User mailing list archive at Nabble.com. From smudge.andy at googlemail.com Sun Apr 12 16:08:26 2015 From: smudge.andy at googlemail.com (AndyP) Date: Sun, 12 Apr 2015 13:08:26 -0700 (PDT) Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <1428860511228-4691063.post@n4.nabble.com> References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> Message-ID: <1428869306243-4691064.post@n4.nabble.com> I've just noticed that there is an error in the User Guide and video overview in the reordering themes section. Corrected instructions below: To reorder themes, click and hold down the left mouse key on the theme to be moved in the theme list and drag and drop to the new position. I will be correcting and updating the video overview later tonight. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691064.html Sent from the Revolution - User mailing list archive at Nabble.com. From dunbarx at aol.com Sun Apr 12 22:00:10 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 12 Apr 2015 22:00:10 -0400 Subject: Variable Typing (Was: An interesting programming challenge) In-Reply-To: Message-ID: <14cb0815f38-7d87-12712@webprd-a90.mail.aol.com> I had asked Mark Waddingham this very question a short while back. he replied (LCB is liveCode Builder): @dunbarx: LCB does not require explicit typing nor will it ever require it. Indeed, it has always been my long held belief that typing should be treated as 'metadata' - indeed, in general use I refer to type declarations on variables as 'type annotations'. One of the things we are trying to achieve (and, indeed, am absolutely sure that we can!) is a situation where you can write code and have the choice. If you choose to use them then the compiler can identify faults in your code at the point of compilation, if not then you might get errors at runtime just as you do now in LCS. (Also, as a happy side-effect, when we make the compiler/VM 'competent' enough such annotations will also help towards greater performance). -----Original Message----- From: Trevor DeVore To: How to use LiveCode Sent: Sat, Apr 11, 2015 4:08 pm Subject: Re: An interesting programming challenge On Saturday, April 11, 2015, Peter M. Brigham wrote: > Wait, so LC8 will have typed variables? We will have to declare every > variable with its type before we use it? Or will this be optional? > Typing is optional. -- Trevor DeVore _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Sun Apr 12 22:03:45 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 12 Apr 2015 22:03:45 -0400 Subject: bottom of card off screen, but bottom < item 4 of screenloc In-Reply-To: References: Message-ID: <14cb084a534-7d87-12738@webprd-a90.mail.aol.com> I get the same bottom as the fourth item of the rect, regardless of where I place a stack. LC 6.4, OSX 10.9 Craig -----Original Message----- From: Dr. Hawkins To: How to use LiveCode Sent: Sat, Apr 11, 2015 3:00 pm Subject: bottom of card off screen, but bottom < item 4 of screenloc I'm scratching my head here. Am I missing something obvious (again), or is something off kilter here? The bottom of a stack is off the screen. Yet "the bottom of stack out4" yields 1111 (which should be on screen; this is a 27" iMac!), while the "working screenRect" is 0,22,2560,1436 (which appears correct). (this is from code trying to keep new stacks on screen) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From stephenREVOLUTION2 at barncard.com Mon Apr 13 00:54:18 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 12 Apr 2015 21:54:18 -0700 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <1428869306243-4691064.post@n4.nabble.com> References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> Message-ID: Andy, I have my Livecode prefs located in my Dropbox folder and am getting constant errors. I have to disable. "There was an error executing a script in stack revSethEditor. No more information is available because the stack is password protected." any ideas? Non-specific error message. also does the panel always have to be visible? Annoying.... -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words On Sun, Apr 12, 2015 at 1:08 PM, AndyP wrote: > I've just noticed that there is an error in the User Guide and video > overview > in the reordering themes section. > > Corrected instructions below: > > To reorder themes, click and hold down the left mouse key on the theme to > be > moved in the theme list and drag and drop to the new position. > > I will be correcting and updating the video overview later tonight. > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour picker > / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691064.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From stephenREVOLUTION2 at barncard.com Mon Apr 13 00:58:17 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 12 Apr 2015 21:58:17 -0700 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> Message-ID: On Sun, Apr 12, 2015 at 9:54 PM, stephen barncard < stephenREVOLUTION2 at barncard.com> wrote: > Andy, I have my Livecode prefs located in my Dropbox folder and am getting > constant errors. I have to disable. > I must add that I am testing using 7.0.4 and Yosemite on Mac -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From smudge.andy at googlemail.com Mon Apr 13 02:13:57 2015 From: smudge.andy at googlemail.com (AndyP) Date: Sun, 12 Apr 2015 23:13:57 -0700 (PDT) Subject: ANN: Script Editor Themer V2 Released In-Reply-To: References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> Message-ID: <1428905637679-4691069.post@n4.nabble.com> Hi Stephen, This is odd, I have had my plugins in Dropbox right from the start of development. I suspect both the problems you are seeing are related to the file path problem. The user guide has relative links so from my seth folder in dropbox I see this as an example, img src="Image/Image1.jpg" width="573" height="432" I'm wondering if this problem is a function of unpacking? Did you unpack the zip from within the dropbox folder or unpack outside of dropbox and then copy the files across? If you unpacked in the dropbox folder can you try again but this time unpacking outside dropbox and then copy the files to your plugins folder in dropbox. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691069.html Sent from the Revolution - User mailing list archive at Nabble.com. From skiplondon at gmail.com Mon Apr 13 05:44:52 2015 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 13 Apr 2015 05:44:52 -0400 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <1428905637679-4691069.post@n4.nabble.com> References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> Message-ID: <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> I also store my plugins folder in DropBox but I do not experience any issues or errors. All works fine from my side. SKIP > On Apr 13, 2015, at 2:13 AM, AndyP wrote: > > Hi Stephen, > > This is odd, I have had my plugins in Dropbox right from the start of > development. I suspect both the problems you are seeing are related to the > file path problem. > > The user guide has relative links so from my seth folder in dropbox I see > this as an example, > > img src="Image/Image1.jpg" width="573" height="432" > > I'm wondering if this problem is a function of unpacking? > > Did you unpack the zip from within the dropbox folder or unpack outside of > dropbox and then copy the files across? > > If you unpacked in the dropbox folder can you try again but this time > unpacking outside dropbox and then copy the files to your plugins folder in > dropbox. > > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour picker / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691069.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Mon Apr 13 05:44:52 2015 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 13 Apr 2015 05:44:52 -0400 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <1428905637679-4691069.post@n4.nabble.com> References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> Message-ID: <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> I also store my plugins folder in DropBox but I do not experience any issues or errors. All works fine from my side. SKIP > On Apr 13, 2015, at 2:13 AM, AndyP wrote: > > Hi Stephen, > > This is odd, I have had my plugins in Dropbox right from the start of > development. I suspect both the problems you are seeing are related to the > file path problem. > > The user guide has relative links so from my seth folder in dropbox I see > this as an example, > > img src="Image/Image1.jpg" width="573" height="432" > > I'm wondering if this problem is a function of unpacking? > > Did you unpack the zip from within the dropbox folder or unpack outside of > dropbox and then copy the files across? > > If you unpacked in the dropbox folder can you try again but this time > unpacking outside dropbox and then copy the files to your plugins folder in > dropbox. > > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour picker / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691069.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smudge.andy at googlemail.com Mon Apr 13 07:57:09 2015 From: smudge.andy at googlemail.com (AndyP) Date: Mon, 13 Apr 2015 04:57:09 -0700 (PDT) Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> Message-ID: <1428926229325-4691071.post@n4.nabble.com> Thanks for the feedback Skip. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691071.html Sent from the Revolution - User mailing list archive at Nabble.com. From stgoldberg at aol.com Mon Apr 13 11:52:49 2015 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Mon, 13 Apr 2015 11:52:49 -0400 Subject: New LiveCode book Message-ID: <14cb37bae24-2bb6-148d2@webprd-m83.mail.aol.com> I am pleased to announce my new book, LiveCode Lite: Computer Programming Made Ridiculously Simple. It is temporarily available as a free PDF download at www.medmaster/livecode.html, along with a LiveCode scripting tutorial for Mac or Windows. The original HyperCard language had only about 150 words, while LiveCode, which is far more powerful, has close to 2000. This can be intimidating to newcomers. The book, 165 pgs, is designed for individuals with little or no background in LiveCode or computer programming, providing a brief, clear, hopefully enjoyable approach to LiveCode and computer programming in a simple, linear step-by-step fashion. The book follows the format of other Medmaster titles. I hope to receive feedback so that the book can be improved, and I thank all the LiveCode gurus on the forum, which I have followed for years. Stephen Goldberg Prof. Emeritus, Univ Miami Miller School of Medicine President, Medmaster Publishing Co. www.medmaster.net From stgoldberg at aol.com Mon Apr 13 12:00:28 2015 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Mon, 13 Apr 2015 12:00:28 -0400 Subject: New LiveCode book revised web address Message-ID: <14cb382aeb0-2bb6-1496d@webprd-m83.mail.aol.com> Got off to a bad start! The Medmaster web address in my last posting today had a typo, which is corrected below. We try again: I am pleased to announce my new book, LiveCode Lite: Computer Programming Made Ridiculously Simple. It is temporarily available as a free PDF download at www.medmaster.net/livecode.html along with a LiveCode scripting tutorial for Mac or Windows. The original HyperCard language had only about 150 words, while LiveCode, which is far more powerful, has close to 2000. This can be intimidating to newcomers. The book, 165 pgs, is designed for individuals with little or no background in LiveCode or computer programming, providing a brief, clear, hopefully enjoyable approach to LiveCode and computer programming in a simple, linear step-by-step fashion. The book follows the format of other Medmaster titles. I hope to receive feedback so that the book can be improved, and I thank all the LiveCode gurus on the forum, which I have followed for years. Stephen Goldberg Prof. Emeritus, Univ Miami Miller School of Medicine President, Medmaster Publishing Co. www.medmaster.net From ali at runrev.com Mon Apr 13 12:31:04 2015 From: ali at runrev.com (Ali Lloyd) Date: Mon, 13 Apr 2015 17:31:04 +0100 Subject: Release: LiveCode 8.0.0 DP 2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 8.0 DP 2. Warning: this is not a stable release. Please ensure you back up your stacks before testing them. Known issues with 8.0.0 DP 2: - The new property inspector lacks some properties present in the old property inspector - The supplied widgets are examples and lack features and general robustness - The extension builder plugin ?Test? feature fails if the widget being tested is already installed - uninstalling the widget and restarting the IDE should help - All installed widgets are built into any standalones produced - this will be addressed in DP 3 This release contains the following changes: LiveCode Builder LiveCode Builder is a variant of the current LiveCode scripting language (LiveCode Script) which has been designed for 'systems' building. It is statically compiled with optional static typing and direct foreign code interconnect (allowing easy access to APIs written in other languages). The compiled bytecode can then be packaged together with any required resources (icons, documentation, images, etc) into a .lce extension package. IDE The property inspector has been rewritten to allow properties of widgets to be inspected and edited. It has been implemented with flexibility and extensibility in mind, since it must be able to control the values of widget properties in any way required by the widget developer. The dictionary has been replaced, now using the CEF browser object in order to be able to display dynamically generated content, namely the API and/or user guide of installed widgets and libraries. Also we are starting to replace controls in the IDE with widgets. All the palettes now use widgets for their headers and footers, and the variable viewer in the debugger has been replaced by a tree view widget. We are aware that as the IDE undergoes this transition there may be features you rely on which are missing or which don't function as expected. Please report any such issues so that we can fix them as soon as possible. Image metadata A new read only image property has been added to access the metadata in the image file. Feature: Popup Widgets Added the ability to use widgets within popup dialog windows. 50 Bug fixes: Engine [15056] Read from file for (x | x chars | x bytes) returns empty [14996] LCB-Canvas: polyline path [14961] Gradient - Quality set to "good" makes LC crash IDE [15130] IDE: Extension builder should remember selected application for opening lcb files [15048] Extension manager displays incorrect icon for libraries [15014] PI chokes on objects with margins property set to different numbers [15008] Copy lci file to appropriate place when installing library [15007] Extension Plugin: Library interface files not included in package [14998] Extensions Plugin doesn't display resources [14968] IDE: Message box doesn't report errors correctly [14934] Tools palette does not generate fully on first run. [14917] New substack of com.livecode.pi.titler [14911] After Adding Widget, Toolbox Is The Wrong Height [14907] Break into stack "revPaletteBehavior" [14754] Extension Manager: All extensions show in the widgets tab whether they are one or not when first downloaded [14742] PI Editor: Text align [14740] PI Editor: Custom Properties [13475] in the openstack handler dispatching a mouseUp to a btn does not work correctly [13447] Project Browser control layer display [13417] IDE systemVersion comparison no longer works with Yosemite [13398] Sample - Book Library.livecode edit and delete features broken [13362] Script editor opens revmenubar script when no other stack is open [13343] Cannot install Android standalone on some devices [13215] Can't type in output field of message box [13191] FIX: flip graphic horizontally and vertically for complex graphics [13159] Palettes not observing decorations under certain circumstances [12880] File->Exit should be File->Quit [11755] flip graphic gives erroneous results with complex graphics LiveCode Builder Tools [14893] Emit warnings for identifiers that may cause problems. [14939] Compiler truncates integer literals if too big. [14950] Integer literal pattern is too general. [14956] Do not warn for metadata before use. [15029] Ensure that exit repeat works correctly in nested repeat up to / down to / for each loops. LiveCode Builder Language [14906] Change 'as ' to 'returns nothing' or 'returns ' in handler return type definitions. [14933] Make identifiers case-insensitive. LiveCode Builder Host Library [14541] Widgets should be able to popup system menus [14805] LCB-Canvas: close path on mPath example is incorrect [14898] Add access to widget's effective font. [14964] Crash when calling a handler with 'any' type parameter form LCS. [14997] image with file accepts url prefix [15005] Logging a list fails if its element types are not strings or booleans [15012] Fix OnClick and provide a way to get the number of successive clicks. [15035] Svg path loses data in roundtrip [15060] Printing a card containing a widget causes a crash. [15128] OnMouseMove doesn't fire if there is more than one widget on a card. [15138] Map elements inside lists to arrays correctly. LiveCode Builder Standard Library [14678] Throw error on domain error in log10() and ln() [14679] Throw error on domain error in pow() [14681] Throw error on domain error in asin() and acos() [14846] Fixed and reinstated "offset before" and "offset after" [14889] Throw error when "converted from base _" fails LiveCode 8 is in an early stage of development so we?d love to hear any feedback you have on it. There are a number of features that we?d like to implement but aren?t ready yet and the existing features are subject to change during development - we can?t guarantee that extensions written in DP1 will continue to work in later versions. Please report any bugs encountered on our Bugzilla at http://quality.livecode.com/ We have a forum available for discussing LiveCode Builder at http://forums.livecode.com/viewforum.php?f=93 From colinholgate at gmail.com Mon Apr 13 12:39:29 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 13 Apr 2015 12:39:29 -0400 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: References: Message-ID: <4A0026CF-235D-4436-BAB4-FBF4C03025EA@gmail.com> Can you say where to get the build? It doesn?t yet show up in the Check For Updates dialog. From sc at sahores-conseil.com Mon Apr 13 12:41:32 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Mon, 13 Apr 2015 18:41:32 +0200 Subject: New LiveCode book In-Reply-To: <14cb37bae24-2bb6-148d2@webprd-m83.mail.aol.com> References: <14cb37bae24-2bb6-148d2@webprd-m83.mail.aol.com> Message-ID: <22DB59DA-F8F0-4532-AE1B-FE9CB7470DE5@sahores-conseil.com> Hi Stephen, There is some few books very, very different from thousands others? In France, lots of Hypercard?s developers discovered this magic app?s design/development functional/object programing language because two of those kind of books : Hypercard, by Jean-Jacques Greif Hypertalk, by Jean-Jacques Greif two little mementos (less than 100 pages each) targeted to drive the newbies directly to the concepts and architecture key points directly at work behind the stage. About Jean-Jacques Grief http://mapage.noos.fr/jjgreif/bio.html It? went never my habit to say more than i sincerely think about any think and, that said, i want to thank you. It took me about some minutes to understand that : LiveCode Lite: Computer Programming Made Ridiculously Simple (2015) by Stephen Goldberg http://www.medmaster.net/livecode.html is this kind of specially very rare book. I expect that it could greatly improve the Livecode audience and i hope that Kevin will act and help you to make it as visible as possible. Warm Regards, Pierre -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com > Le 13 avr. 2015 ? 17:52, stgoldberg at aol.com a ?crit : > > > > I am pleased to announce my new book, LiveCode Lite: Computer Programming Made Ridiculously Simple. > > > It is temporarily available as a free PDF download at www.medmaster/livecode.html, along with a LiveCode scripting tutorial for Mac or Windows. > > > The original HyperCard language had only about 150 words, while LiveCode, which is far more powerful, has close to 2000. This can be intimidating to newcomers. The book, 165 pgs, is designed for individuals with little or no background in LiveCode or computer programming, providing a brief, clear, hopefully enjoyable approach to LiveCode and computer programming in a simple, linear step-by-step fashion. The book follows the format of other Medmaster titles. I hope to receive feedback so that the book can be improved, and I thank all the LiveCode gurus on the forum, which I have followed for years. > > > > Stephen Goldberg > Prof. Emeritus, Univ Miami Miller School of Medicine > President, Medmaster Publishing Co. > www.medmaster.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Mon Apr 13 12:42:22 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Mon, 13 Apr 2015 18:42:22 +0200 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: <4A0026CF-235D-4436-BAB4-FBF4C03025EA@gmail.com> References: <4A0026CF-235D-4436-BAB4-FBF4C03025EA@gmail.com> Message-ID: <5A1287EC-ED7E-493C-AB3E-099C12E31D74@m-r-d.de> http://downloads.livecode.com > Am 13.04.2015 um 18:39 schrieb Colin Holgate : > > Can you say where to get the build? It doesn?t yet show up in the Check For Updates dialog. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mpetrides at earthlink.net Mon Apr 13 13:07:30 2015 From: mpetrides at earthlink.net (Marian Petrides MD) Date: Mon, 13 Apr 2015 13:07:30 -0400 Subject: New LiveCode book revised web address In-Reply-To: <14cb382aeb0-2bb6-1496d@webprd-m83.mail.aol.com> References: <14cb382aeb0-2bb6-1496d@webprd-m83.mail.aol.com> Message-ID: <5BE25727-0609-4301-A8F4-D6C721D0C107@earthlink.net> Thank you, Stephen! This looks like it will be very helpful! > On Apr 13, 2015, at 12:00 PM, stgoldberg at aol.com wrote: > > > > > > > Got off to a bad start! The Medmaster web address in my last posting today had a typo, which is corrected below. We try again: > > > I am pleased to announce my new book, LiveCode Lite: Computer Programming Made Ridiculously Simple. > > > It is temporarily available as a free PDF download at www.medmaster.net/livecode.html along with a LiveCode scripting tutorial for Mac or Windows. > > > > > The original HyperCard language had only about 150 words, while LiveCode, which is far more powerful, has close to 2000. This can be intimidating to newcomers. The book, 165 pgs, is designed for individuals with little or no background in LiveCode or computer programming, providing a brief, clear, hopefully enjoyable approach to LiveCode and computer programming in a simple, linear step-by-step fashion. The book follows the format of other Medmaster titles. I hope to receive feedback so that the book can be improved, and I thank all the LiveCode gurus on the forum, which I have followed for years. > > > > > > Stephen Goldberg > > Prof. Emeritus, Univ Miami Miller School of Medicine > > President, Medmaster Publishing Co. > > www.medmaster.net > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Mon Apr 13 13:38:22 2015 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 13 Apr 2015 20:38:22 +0300 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: References: Message-ID: <552BFF0E.3000005@gmail.com> On 13/04/15 19:31, Ali Lloyd wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 8.0 DP 2. > > Warning: this is not a stable release. Please ensure you back up your > stacks before testing them. > > Known issues with 8.0.0 DP 2: > - The new property inspector lacks some properties present in the old > property inspector > - The supplied widgets are examples and lack features and general robustness > - The extension builder plugin ?Test? feature fails if the widget being > tested is already installed - uninstalling the widget and restarting the > IDE should help > - All installed widgets are built into any standalones produced - this will > be addressed in DP 3 > > This release contains the following changes: > > LiveCode Builder > LiveCode Builder is a variant of the current LiveCode scripting language > (LiveCode Script) which has been designed for 'systems' building. It is > statically compiled with optional static typing and direct foreign code > interconnect (allowing easy access to APIs written in other languages). The > compiled bytecode can then be packaged together with any required resources > (icons, documentation, images, etc) into a .lce extension package. > > IDE > The property inspector has been rewritten to allow properties of widgets to > be inspected and edited. It has been implemented with flexibility and > extensibility in mind, since it must be able to control the values of > widget properties in any way required by the widget developer. > > The dictionary has been replaced, now using the CEF browser object in order > to be able to display dynamically generated content, namely the API and/or > user guide of installed widgets and libraries. > > Also we are starting to replace controls in the IDE with widgets. All the > palettes now use widgets for their headers and footers, and the variable > viewer in the debugger has been replaced by a tree view widget. > > We are aware that as the IDE undergoes this transition there may be > features you rely on which are missing or which don't function as expected. > Please report any such issues so that we can fix them as soon as possible. > > Image metadata > A new read only image property has been added to access the metadata in the > image file. > > Feature: Popup Widgets > Added the ability to use widgets within popup dialog windows. > > 50 Bug fixes: > Engine > [15056] Read from file for (x | x chars | x bytes) returns empty > [14996] LCB-Canvas: polyline path > [14961] Gradient - Quality set to "good" makes LC crash > > IDE > [15130] IDE: Extension builder should remember selected application for > opening lcb files > [15048] Extension manager displays incorrect icon for libraries > [15014] PI chokes on objects with margins property set to different numbers > [15008] Copy lci file to appropriate place when installing library > [15007] Extension Plugin: Library interface files not included in package > [14998] Extensions Plugin doesn't display resources > [14968] IDE: Message box doesn't report errors correctly > [14934] Tools palette does not generate fully on first run. > [14917] New substack of com.livecode.pi.titler > [14911] After Adding Widget, Toolbox Is The Wrong Height > [14907] Break into stack "revPaletteBehavior" > [14754] Extension Manager: All extensions show in the widgets tab whether > they are one or not when first downloaded > [14742] PI Editor: Text align > [14740] PI Editor: Custom Properties > [13475] in the openstack handler dispatching a mouseUp to a btn does not > work correctly > [13447] Project Browser control layer display > [13417] IDE systemVersion comparison no longer works with Yosemite > [13398] Sample - Book Library.livecode edit and delete features broken > [13362] Script editor opens revmenubar script when no other stack is open > [13343] Cannot install Android standalone on some devices > [13215] Can't type in output field of message box > [13191] FIX: flip graphic horizontally and vertically for complex graphics > [13159] Palettes not observing decorations under certain circumstances > [12880] File->Exit should be File->Quit > [11755] flip graphic gives erroneous results with complex graphics > > LiveCode Builder Tools > [14893] Emit warnings for identifiers that may cause problems. > [14939] Compiler truncates integer literals if too big. > [14950] Integer literal pattern is too general. > [14956] Do not warn for metadata before use. > [15029] Ensure that exit repeat works correctly in nested repeat up to / > down to / for each loops. > > LiveCode Builder Language > [14906] Change 'as ' to 'returns nothing' or 'returns ' in > handler return type definitions. > [14933] Make identifiers case-insensitive. > > LiveCode Builder Host Library > [14541] Widgets should be able to popup system menus > [14805] LCB-Canvas: close path on mPath example is incorrect > [14898] Add access to widget's effective font. > [14964] Crash when calling a handler with 'any' type parameter form LCS. > [14997] image with file accepts url prefix > [15005] Logging a list fails if its element types are not strings or > booleans > [15012] Fix OnClick and provide a way to get the number of successive > clicks. > [15035] Svg path loses data in roundtrip > [15060] Printing a card containing a widget causes a crash. > [15128] OnMouseMove doesn't fire if there is more than one widget on a card. > [15138] Map elements inside lists to arrays correctly. > > LiveCode Builder Standard Library > [14678] Throw error on domain error in log10() and ln() > [14679] Throw error on domain error in pow() > [14681] Throw error on domain error in asin() and acos() > [14846] Fixed and reinstated "offset before" and "offset after" > [14889] Throw error when "converted from base _" fails > > LiveCode 8 is in an early stage of development so we?d love to hear any > feedback you have on it. There are a number of features that we?d like to > implement but aren?t ready yet and the existing features are subject to > change during development - we can?t guarantee that extensions written in > DP1 will continue to work in later versions. > > Please report any bugs encountered on our Bugzilla at > http://quality.livecode.com/ > > We have a forum available for discussing LiveCode Builder at > http://forums.livecode.com/viewforum.php?f=93 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode What chance a 32-bit for Linux build? Richmond. From ray at linkit.com Mon Apr 13 19:48:01 2015 From: ray at linkit.com (Ray) Date: Mon, 13 Apr 2015 19:48:01 -0400 Subject: Can't Build for Android - "could not compile application class" In-Reply-To: References: <28A5EB94-DF8B-4F75-9A43-25E64E86F9D3@iotecdigital.com> <2972F869-C936-41B6-9B99-CB76B83FF6CC@iotecdigital.com> Message-ID: <552C55B1.6090903@LinkIt.Com> I can't build for an Android phone with 7.0.2 (rc2). I found the following thread: http://forums.livecode.com/phpBB2/viewtopic.php?t=7357 but it's lengthy and it's four years old. Does anybody know of a simple fix for this? From guglielmo at braguglia.ch Mon Apr 13 14:00:56 2015 From: guglielmo at braguglia.ch (Guglielmo Braguglia) Date: Mon, 13 Apr 2015 20:00:56 +0200 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> Message-ID: <552C0458.5020809@braguglia.ch> Me too, and works fine. ;-) I had trouble with the plugin only if also the Peter Haworth "lcStackBrowser" plugin is running. My solution was closing "lcStackBrowser", setting new script theme with "Script Editor Themer" and after restarting "lcStackBrowser". Guglielmo > Skip Kimpel > 13 Apr 2015 11:44 am > I also store my plugins folder in DropBox but I do not experience any > issues or errors. All works fine from my side. > > SKIP > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > AndyP > 13 Apr 2015 08:13 am > Hi Stephen, > > This is odd, I have had my plugins in Dropbox right from the start of > development. I suspect both the problems you are seeing are related to the > file path problem. > > The user guide has relative links so from my seth folder in dropbox I see > this as an example, > > img src="Image/Image1.jpg" width="573" height="432" > > I'm wondering if this problem is a function of unpacking? > > Did you unpack the zip from within the dropbox folder or unpack outside of > dropbox and then copy the files across? > > If you unpacked in the dropbox folder can you try again but this time > unpacking outside dropbox and then copy the files to your plugins > folder in > dropbox. > > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour > picker / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691069.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > stephen barncard > 13 Apr 2015 06:58 am > On Sun, Apr 12, 2015 at 9:54 PM, stephen barncard < > > I must add that I am testing using 7.0.4 and Yosemite on Mac > > -- > Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > stephen barncard > 13 Apr 2015 06:54 am > Andy, I have my Livecode prefs located in my Dropbox folder and am getting > constant errors. I have to disable. > > "There was an error executing a script in stack revSethEditor. No more > information is available because the stack is password protected." > > any ideas? Non-specific error message. > > also does the panel always have to be visible? Annoying.... > > -- > Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > AndyP > 12 Apr 2015 22:08 pm > I've just noticed that there is an error in the User Guide and video > overview > in the reordering themes section. > > Corrected instructions below: > > To reorder themes, click and hold down the left mouse key on the theme > to be > moved in the theme list and drag and drop to the new position. > > I will be correcting and updating the video overview later tonight. > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour > picker / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691064.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Mon Apr 13 14:32:49 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 13 Apr 2015 11:32:49 -0700 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <552C0458.5020809@braguglia.ch> References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> <552C0458.5020809@braguglia.ch> Message-ID: Sounds like Andy and I should figure out why that happens. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Apr 13, 2015 at 11:00 AM, Guglielmo Braguglia < guglielmo at braguglia.ch> wrote: > Me too, and works fine. ;-) > > I had trouble with the plugin only if also the Peter Haworth > "lcStackBrowser" plugin is running. My solution was closing > "lcStackBrowser", setting new script theme with "Script Editor Themer" and > after restarting "lcStackBrowser". > > Guglielmo > > Skip Kimpel >> 13 Apr 2015 11:44 am >> I also store my plugins folder in DropBox but I do not experience any >> issues or errors. All works fine from my side. >> >> SKIP >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> AndyP >> 13 Apr 2015 08:13 am >> Hi Stephen, >> >> This is odd, I have had my plugins in Dropbox right from the start of >> development. I suspect both the problems you are seeing are related to the >> file path problem. >> >> The user guide has relative links so from my seth folder in dropbox I see >> this as an example, >> >> img src="Image/Image1.jpg" width="573" height="432" >> >> I'm wondering if this problem is a function of unpacking? >> >> Did you unpack the zip from within the dropbox folder or unpack outside of >> dropbox and then copy the files across? >> >> If you unpacked in the dropbox folder can you try again but this time >> unpacking outside dropbox and then copy the files to your plugins folder >> in >> dropbox. >> >> >> >> >> >> ----- >> Andy Piddock >> >> >> My software never has bugs. It just develops random features. >> >> Copy the new cloud space, get your free 15GB space now: >> Get Copy >> >> >> Script editor Themer for LC http://2108.co.uk >> >> PointandSee is a FREE simple but full featured under cursor colour picker >> / finder. >> http://www.pointandsee.co.uk - made with LiveCode >> -- >> View this message in context: http://runtime-revolution. >> 278305.n4.nabble.com/ANN-Script-Editor-Themer-V2- >> Released-tp4691059p4691069.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> stephen barncard >> 13 Apr 2015 06:58 am >> On Sun, Apr 12, 2015 at 9:54 PM, stephen barncard < >> >> I must add that I am testing using 7.0.4 and Yosemite on Mac >> >> -- >> Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> stephen barncard >> 13 Apr 2015 06:54 am >> Andy, I have my Livecode prefs located in my Dropbox folder and am getting >> constant errors. I have to disable. >> >> "There was an error executing a script in stack revSethEditor. No more >> information is available because the stack is password protected." >> >> any ideas? Non-specific error message. >> >> also does the panel always have to be visible? Annoying.... >> >> -- >> Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> AndyP >> 12 Apr 2015 22:08 pm >> I've just noticed that there is an error in the User Guide and video >> overview >> in the reordering themes section. >> >> Corrected instructions below: >> >> To reorder themes, click and hold down the left mouse key on the theme to >> be >> moved in the theme list and drag and drop to the new position. >> >> I will be correcting and updating the video overview later tonight. >> >> >> >> ----- >> Andy Piddock >> >> >> My software never has bugs. It just develops random features. >> >> Copy the new cloud space, get your free 15GB space now: >> Get Copy >> >> >> Script editor Themer for LC http://2108.co.uk >> >> PointandSee is a FREE simple but full featured under cursor colour picker >> / finder. >> http://www.pointandsee.co.uk - made with LiveCode >> -- >> View this message in context: http://runtime-revolution. >> 278305.n4.nabble.com/ANN-Script-Editor-Themer-V2- >> Released-tp4691059p4691064.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skip at magicgate.com Mon Apr 13 14:38:02 2015 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Mon, 13 Apr 2015 14:38:02 -0400 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <552C0458.5020809@braguglia.ch> References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> <552C0458.5020809@braguglia.ch> Message-ID: I also have the lcStackBrowser and I have no issues. There must be some other cause for this conflict. I am using Win and 7.0.3 SKIP On Mon, Apr 13, 2015 at 2:00 PM, Guglielmo Braguglia wrote: > Me too, and works fine. ;-) > > I had trouble with the plugin only if also the Peter Haworth > "lcStackBrowser" plugin is running. My solution was closing > "lcStackBrowser", setting new script theme with "Script Editor Themer" and > after restarting "lcStackBrowser". > > Guglielmo > > Skip Kimpel >> 13 Apr 2015 11:44 am >> I also store my plugins folder in DropBox but I do not experience any >> issues or errors. All works fine from my side. >> >> SKIP >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> AndyP >> 13 Apr 2015 08:13 am >> >> Hi Stephen, >> >> This is odd, I have had my plugins in Dropbox right from the start of >> development. I suspect both the problems you are seeing are related to the >> file path problem. >> >> The user guide has relative links so from my seth folder in dropbox I see >> this as an example, >> >> img src="Image/Image1.jpg" width="573" height="432" >> >> I'm wondering if this problem is a function of unpacking? >> >> Did you unpack the zip from within the dropbox folder or unpack outside of >> dropbox and then copy the files across? >> >> If you unpacked in the dropbox folder can you try again but this time >> unpacking outside dropbox and then copy the files to your plugins folder >> in >> dropbox. >> >> >> >> >> >> ----- >> Andy Piddock >> >> >> My software never has bugs. It just develops random features. >> >> Copy the new cloud space, get your free 15GB space now: >> Get Copy >> >> >> Script editor Themer for LC http://2108.co.uk >> >> PointandSee is a FREE simple but full featured under cursor colour picker >> / finder. >> http://www.pointandsee.co.uk - made with LiveCode >> -- >> View this message in context: http://runtime-revolution. >> 278305.n4.nabble.com/ANN-Script-Editor-Themer-V2- >> Released-tp4691059p4691069.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> stephen barncard >> 13 Apr 2015 06:58 am >> On Sun, Apr 12, 2015 at 9:54 PM, stephen barncard < >> >> I must add that I am testing using 7.0.4 and Yosemite on Mac >> >> -- >> Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> stephen barncard >> 13 Apr 2015 06:54 am >> Andy, I have my Livecode prefs located in my Dropbox folder and am getting >> constant errors. I have to disable. >> >> "There was an error executing a script in stack revSethEditor. No more >> information is available because the stack is password protected." >> >> any ideas? Non-specific error message. >> >> also does the panel always have to be visible? Annoying.... >> >> -- >> Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> AndyP >> 12 Apr 2015 22:08 pm >> I've just noticed that there is an error in the User Guide and video >> overview >> in the reordering themes section. >> >> Corrected instructions below: >> >> To reorder themes, click and hold down the left mouse key on the theme to >> be >> moved in the theme list and drag and drop to the new position. >> >> I will be correcting and updating the video overview later tonight. >> >> >> >> ----- >> Andy Piddock >> >> >> My software never has bugs. It just develops random features. >> >> Copy the new cloud space, get your free 15GB space now: >> Get Copy >> >> >> Script editor Themer for LC http://2108.co.uk >> >> PointandSee is a FREE simple but full featured under cursor colour picker >> / finder. >> http://www.pointandsee.co.uk - made with LiveCode >> -- >> View this message in context: http://runtime-revolution. >> 278305.n4.nabble.com/ANN-Script-Editor-Themer-V2- >> Released-tp4691059p4691064.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Mon Apr 13 14:40:53 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 13 Apr 2015 14:40:53 -0400 Subject: Can't Build for Android - "could not compile application class" In-Reply-To: <552C55B1.6090903@LinkIt.Com> References: <28A5EB94-DF8B-4F75-9A43-25E64E86F9D3@iotecdigital.com> <2972F869-C936-41B6-9B99-CB76B83FF6CC@iotecdigital.com> <552C55B1.6090903@LinkIt.Com> Message-ID: <004401d07619$5f735bc0$1e5a1340$@net> I get that when the Android SDK is not in sync with the version that LC expects. What version of the SDK/Platform/Build tools are you running? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Ray Sent: Monday, April 13, 2015 7:48 PM To: use-livecode at lists.runrev.com Subject: Can't Build for Android - "could not compile application class" I can't build for an Android phone with 7.0.2 (rc2). I found the following thread: http://forums.livecode.com/phpBB2/viewtopic.php?t=7357 but it's lengthy and it's four years old. Does anybody know of a simple fix for this? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Mon Apr 13 20:43:12 2015 From: ray at linkit.com (Ray) Date: Mon, 13 Apr 2015 20:43:12 -0400 Subject: Can't Build for Android - "could not compile application class" In-Reply-To: <004401d07619$5f735bc0$1e5a1340$@net> References: <28A5EB94-DF8B-4F75-9A43-25E64E86F9D3@iotecdigital.com> <2972F869-C936-41B6-9B99-CB76B83FF6CC@iotecdigital.com> <552C55B1.6090903@LinkIt.Com> <004401d07619$5f735bc0$1e5a1340$@net> Message-ID: <552C62A0.8090108@LinkIt.Com> What SDK/Platform/Build tools? I know that's almost comical but evidently I forgot if there are things to download like iTune and Xcode on the Mac. Can you refresh my memory please? On 4/13/2015 2:40 PM, Ralph DiMola wrote: > I get that when the Android SDK is not in sync with the version that LC > expects. What version of the SDK/Platform/Build tools are you running? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Ray > Sent: Monday, April 13, 2015 7:48 PM > To: use-livecode at lists.runrev.com > Subject: Can't Build for Android - "could not compile application class" > > I can't build for an Android phone with 7.0.2 (rc2). > > I found the following thread: > > http://forums.livecode.com/phpBB2/viewtopic.php?t=7357 > > but it's lengthy and it's four years old. > > Does anybody know of a simple fix for this? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Mon Apr 13 14:59:33 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 13 Apr 2015 14:59:33 -0400 Subject: Can't Build for Android - "could not compile application class" In-Reply-To: <552C62A0.8090108@LinkIt.Com> References: <28A5EB94-DF8B-4F75-9A43-25E64E86F9D3@iotecdigital.com> <2972F869-C936-41B6-9B99-CB76B83FF6CC@iotecdigital.com> <552C55B1.6090903@LinkIt.Com> <004401d07619$5f735bc0$1e5a1340$@net> <552C62A0.8090108@LinkIt.Com> Message-ID: <004801d0761b$faca4960$f05edc20$@net> Make sure that Java JDK installed. Download and install the Android SDK. In LC prefs in the mobile pane select the folder for the Android SDK. Run the "SDK Manager" it's in the Android SDK folder. There you can view/update the tools. The tools are listed at the top. If you already have the Android SDK installed(and I think you do or you would never have gotten that far), then run the "SDK Manager" and update the tools. That might be all you need to do. Let me warn you the SDK manager is notoriously slow. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Ray Sent: Monday, April 13, 2015 8:43 PM To: use-livecode at lists.runrev.com Subject: Re: Can't Build for Android - "could not compile application class" What SDK/Platform/Build tools? I know that's almost comical but evidently I forgot if there are things to download like iTune and Xcode on the Mac. Can you refresh my memory please? On 4/13/2015 2:40 PM, Ralph DiMola wrote: > I get that when the Android SDK is not in sync with the version that > LC expects. What version of the SDK/Platform/Build tools are you running? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Ray > Sent: Monday, April 13, 2015 7:48 PM > To: use-livecode at lists.runrev.com > Subject: Can't Build for Android - "could not compile application class" > > I can't build for an Android phone with 7.0.2 (rc2). > > I found the following thread: > > http://forums.livecode.com/phpBB2/viewtopic.php?t=7357 > > but it's lengthy and it's four years old. > > Does anybody know of a simple fix for this? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Mon Apr 13 21:01:49 2015 From: ray at linkit.com (Ray) Date: Mon, 13 Apr 2015 21:01:49 -0400 Subject: Can't Build for Android - "could not compile application class" In-Reply-To: <004801d0761b$faca4960$f05edc20$@net> References: <28A5EB94-DF8B-4F75-9A43-25E64E86F9D3@iotecdigital.com> <2972F869-C936-41B6-9B99-CB76B83FF6CC@iotecdigital.com> <552C55B1.6090903@LinkIt.Com> <004401d07619$5f735bc0$1e5a1340$@net> <552C62A0.8090108@LinkIt.Com> <004801d0761b$faca4960$f05edc20$@net> Message-ID: <552C66FD.1090602@LinkIt.Com> Ralph - many thanks for these steps! I had forgotten about this. On 4/13/2015 2:59 PM, Ralph DiMola wrote: > Make sure that Java JDK installed. > Download and install the Android SDK. > In LC prefs in the mobile pane select the folder for the Android SDK. > Run the "SDK Manager" it's in the Android SDK folder. > There you can view/update the tools. The tools are listed at the top. > If you already have the Android SDK installed(and I think you do or you > would never have gotten that far), then run the "SDK Manager" and update the > tools. That might be all you need to do. Let me warn you the SDK manager is > notoriously slow. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Ray > Sent: Monday, April 13, 2015 8:43 PM > To: use-livecode at lists.runrev.com > Subject: Re: Can't Build for Android - "could not compile application class" > > What SDK/Platform/Build tools? > > I know that's almost comical but evidently I forgot if there are things to > download like iTune and Xcode on the Mac. Can you refresh my memory please? > > On 4/13/2015 2:40 PM, Ralph DiMola wrote: >> I get that when the Android SDK is not in sync with the version that >> LC expects. What version of the SDK/Platform/Build tools are you running? >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >> Behalf Of Ray >> Sent: Monday, April 13, 2015 7:48 PM >> To: use-livecode at lists.runrev.com >> Subject: Can't Build for Android - "could not compile application class" >> >> I can't build for an Android phone with 7.0.2 (rc2). >> >> I found the following thread: >> >> http://forums.livecode.com/phpBB2/viewtopic.php?t=7357 >> >> but it's lengthy and it's four years old. >> >> Does anybody know of a simple fix for this? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sc at sahores-conseil.com Mon Apr 13 15:03:42 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Mon, 13 Apr 2015 21:03:42 +0200 Subject: Can't Build for Android - "could not compile application class" In-Reply-To: <552C62A0.8090108@LinkIt.Com> References: <28A5EB94-DF8B-4F75-9A43-25E64E86F9D3@iotecdigital.com> <2972F869-C936-41B6-9B99-CB76B83FF6CC@iotecdigital.com> <552C55B1.6090903@LinkIt.Com> <004401d07619$5f735bc0$1e5a1340$@net> <552C62A0.8090108@LinkIt.Com> Message-ID: <060AAB38-2111-4D56-80DF-E879F31EBF20@sahores-conseil.com> Ray, Be sure to comment (Android bug, iOS OK) : # set the acceleratedRendering of this stack to true if you use it. Its a known issue the LC team works on to get it removed ASAP : [Bug 14879] android mobile app launch hangs up while processing the opencard handler of cd 1 Best, Pierre > Le 14 avr. 2015 ? 02:43, Ray a ?crit : > > What SDK/Platform/Build tools? > > I know that's almost comical but evidently I forgot if there are things to download like iTune and Xcode on the Mac. Can you refresh my memory please? > > On 4/13/2015 2:40 PM, Ralph DiMola wrote: >> I get that when the Android SDK is not in sync with the version that LC >> expects. What version of the SDK/Platform/Build tools are you running? >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >> Of Ray >> Sent: Monday, April 13, 2015 7:48 PM >> To: use-livecode at lists.runrev.com >> Subject: Can't Build for Android - "could not compile application class" >> >> I can't build for an Android phone with 7.0.2 (rc2). >> >> I found the following thread: >> >> http://forums.livecode.com/phpBB2/viewtopic.php?t=7357 >> >> but it's lengthy and it's four years old. >> >> Does anybody know of a simple fix for this? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From ray at linkit.com Mon Apr 13 21:05:11 2015 From: ray at linkit.com (Ray) Date: Mon, 13 Apr 2015 21:05:11 -0400 Subject: Can't Build for Android - "could not compile application class" In-Reply-To: <060AAB38-2111-4D56-80DF-E879F31EBF20@sahores-conseil.com> References: <28A5EB94-DF8B-4F75-9A43-25E64E86F9D3@iotecdigital.com> <2972F869-C936-41B6-9B99-CB76B83FF6CC@iotecdigital.com> <552C55B1.6090903@LinkIt.Com> <004401d07619$5f735bc0$1e5a1340$@net> <552C62A0.8090108@LinkIt.Com> <060AAB38-2111-4D56-80DF-E879F31EBF20@sahores-conseil.com> Message-ID: <552C67C7.8050904@LinkIt.Com> Thanks for the heads-up Pierre. I'll look out for that. On 4/13/2015 3:03 PM, Pierre Sahores wrote: > Ray, > > Be sure to comment (Android bug, iOS OK) : > > # set the acceleratedRendering of this stack to true > > if you use it. > > Its a known issue the LC team works on to get it removed ASAP : > > [Bug 14879] android mobile app launch hangs up while processing the opencard handler of cd 1 > > Best, > > Pierre > > >> Le 14 avr. 2015 ? 02:43, Ray a ?crit : >> >> What SDK/Platform/Build tools? >> >> I know that's almost comical but evidently I forgot if there are things to download like iTune and Xcode on the Mac. Can you refresh my memory please? >> >> On 4/13/2015 2:40 PM, Ralph DiMola wrote: >>> I get that when the Android SDK is not in sync with the version that LC >>> expects. What version of the SDK/Platform/Build tools are you running? >>> >>> Ralph DiMola >>> IT Director >>> Evergreen Information Services >>> rdimola at evergreeninfo.net >>> >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >>> Of Ray >>> Sent: Monday, April 13, 2015 7:48 PM >>> To: use-livecode at lists.runrev.com >>> Subject: Can't Build for Android - "could not compile application class" >>> >>> I can't build for an Android phone with 7.0.2 (rc2). >>> >>> I found the following thread: >>> >>> http://forums.livecode.com/phpBB2/viewtopic.php?t=7357 >>> >>> but it's lengthy and it's four years old. >>> >>> Does anybody know of a simple fix for this? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > -- > Pierre Sahores > mobile : 06 03 95 77 70 > www.sahores-conseil.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From guglielmo at braguglia.ch Mon Apr 13 15:16:15 2015 From: guglielmo at braguglia.ch (Guglielmo Braguglia) Date: Mon, 13 Apr 2015 21:16:15 +0200 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: References: <1428825923400-4691059.post@n4.nabble.com> <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> <552C0458.5020809@braguglia.ch> Message-ID: <552C15FF.9040203@braguglia.ch> I'm using OSX 10.10.3 and LC 6.7.4 :-) Guglielmo > Magicgate Software - Skip Kimpel > 13 Apr 2015 20:38 pm > I also have the lcStackBrowser and I have no issues. There must be some > other cause for this conflict. I am using Win and 7.0.3 > > SKIP > > On Mon, Apr 13, 2015 at 2:00 PM, Guglielmo Braguglia> wrote: > >> Me too, and works fine. ;-) >> >> I had trouble with the plugin only if also the Peter Haworth >> "lcStackBrowser" plugin is running. My solution was closing >> "lcStackBrowser", setting new script theme with "Script Editor Themer" and >> after restarting "lcStackBrowser". >> >> Guglielmo >> >> Skip Kimpel >>> 13 Apr 2015 11:44 am >>> I also store my plugins folder in DropBox but I do not experience any >>> issues or errors. All works fine from my side. >>> >>> SKIP >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> AndyP >>> 13 Apr 2015 08:13 am >>> >>> Hi Stephen, >>> >>> This is odd, I have had my plugins in Dropbox right from the start of >>> development. I suspect both the problems you are seeing are related to the >>> file path problem. >>> >>> The user guide has relative links so from my seth folder in dropbox I see >>> this as an example, >>> >>> img src="Image/Image1.jpg" width="573" height="432" >>> >>> I'm wondering if this problem is a function of unpacking? >>> >>> Did you unpack the zip from within the dropbox folder or unpack outside of >>> dropbox and then copy the files across? >>> >>> If you unpacked in the dropbox folder can you try again but this time >>> unpacking outside dropbox and then copy the files to your plugins folder >>> in >>> dropbox. >>> >>> >>> >>> >>> >>> ----- >>> Andy Piddock >>> >>> >>> My software never has bugs. It just develops random features. >>> >>> Copy the new cloud space, get your free 15GB space now: >>> Get Copy >>> >>> >>> Script editor Themer for LC http://2108.co.uk >>> >>> PointandSee is a FREE simple but full featured under cursor colour picker >>> / finder. >>> http://www.pointandsee.co.uk - made with LiveCode >>> -- >>> View this message in context: http://runtime-revolution. >>> 278305.n4.nabble.com/ANN-Script-Editor-Themer-V2- >>> Released-tp4691059p4691069.html >>> Sent from the Revolution - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> stephen barncard >>> 13 Apr 2015 06:58 am >>> On Sun, Apr 12, 2015 at 9:54 PM, stephen barncard< >>> >>> I must add that I am testing using 7.0.4 and Yosemite on Mac >>> >>> -- >>> Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> stephen barncard >>> 13 Apr 2015 06:54 am >>> Andy, I have my Livecode prefs located in my Dropbox folder and am getting >>> constant errors. I have to disable. >>> >>> "There was an error executing a script in stack revSethEditor. No more >>> information is available because the stack is password protected." >>> >>> any ideas? Non-specific error message. >>> >>> also does the panel always have to be visible? Annoying.... >>> >>> -- >>> Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> AndyP >>> 12 Apr 2015 22:08 pm >>> I've just noticed that there is an error in the User Guide and video >>> overview >>> in the reordering themes section. >>> >>> Corrected instructions below: >>> >>> To reorder themes, click and hold down the left mouse key on the theme to >>> be >>> moved in the theme list and drag and drop to the new position. >>> >>> I will be correcting and updating the video overview later tonight. >>> >>> >>> >>> ----- >>> Andy Piddock >>> >>> >>> My software never has bugs. It just develops random features. >>> >>> Copy the new cloud space, get your free 15GB space now: >>> Get Copy >>> >>> >>> Script editor Themer for LC http://2108.co.uk >>> >>> PointandSee is a FREE simple but full featured under cursor colour picker >>> / finder. >>> http://www.pointandsee.co.uk - made with LiveCode >>> -- >>> View this message in context: http://runtime-revolution. >>> 278305.n4.nabble.com/ANN-Script-Editor-Themer-V2- >>> Released-tp4691059p4691064.html >>> Sent from the Revolution - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > Guglielmo Braguglia > 13 Apr 2015 20:00 pm > Me too, and works fine. ;-) > > I had trouble with the plugin only if also the Peter Haworth > "lcStackBrowser" plugin is running. My solution was closing > "lcStackBrowser", setting new script theme with "Script Editor Themer" > and after restarting "lcStackBrowser". > > Guglielmo > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > Skip Kimpel > 13 Apr 2015 11:44 am > I also store my plugins folder in DropBox but I do not experience any > issues or errors. All works fine from my side. > > SKIP > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > AndyP > 13 Apr 2015 08:13 am > Hi Stephen, > > This is odd, I have had my plugins in Dropbox right from the start of > development. I suspect both the problems you are seeing are related to the > file path problem. > > The user guide has relative links so from my seth folder in dropbox I see > this as an example, > > img src="Image/Image1.jpg" width="573" height="432" > > I'm wondering if this problem is a function of unpacking? > > Did you unpack the zip from within the dropbox folder or unpack outside of > dropbox and then copy the files across? > > If you unpacked in the dropbox folder can you try again but this time > unpacking outside dropbox and then copy the files to your plugins > folder in > dropbox. > > > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour > picker / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691069.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > stephen barncard > 13 Apr 2015 06:58 am > On Sun, Apr 12, 2015 at 9:54 PM, stephen barncard < > > I must add that I am testing using 7.0.4 and Yosemite on Mac > > -- > Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikedoub at gmail.com Mon Apr 13 15:42:23 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 13 Apr 2015 15:42:23 -0400 Subject: How to enter the Android Sdk Location when it is in "Library" Message-ID: <552C1C1F.5040408@gmail.com> I just installed Android Studio. It installs the sdk in /User/mike/Libraries/Android/sdk. I have not figured out a way to enter this path into the mobile preferences section. Can any one provide me with some guidance? I filled a bug report, but I need a work around. Thanks Mike From pete at lcsql.com Mon Apr 13 15:58:54 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 13 Apr 2015 12:58:54 -0700 Subject: [OT] Yosemite QuickTime Player Message-ID: Having an issue making a screen recording with QT in Yosemite. The recording stops after 40 seconds - no indication it did that until you stop record and try to play it back. Also, clicking the stop recording button in the menu bar hangs QT and have to force quit to get out of it. Anyone come across these issues? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From rdimola at evergreeninfo.net Mon Apr 13 16:05:46 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 13 Apr 2015 16:05:46 -0400 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C1C1F.5040408@gmail.com> References: <552C1C1F.5040408@gmail.com> Message-ID: <004901d07625$3b296320$b17c2960$@net> In the mobile prefs point the Android SDK to the folder where the SDK is installed. This folder should contain something similar to: add-ons AVD Manager.exe build-tools docs extras platform-tools platforms samples SDK Manager.exe SDK Readme.txt sources system-images temp tools uninstall.exe Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Michael Doub Sent: Monday, April 13, 2015 3:42 PM To: How To use LiveCode use LiveCode Subject: How to enter the Android Sdk Location when it is in "Library" I just installed Android Studio. It installs the sdk in /User/mike/Libraries/Android/sdk. I have not figured out a way to enter this path into the mobile preferences section. Can any one provide me with some guidance? I filled a bug report, but I need a work around. Thanks Mike _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Mon Apr 13 16:06:10 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 13 Apr 2015 22:06:10 +0200 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C1C1F.5040408@gmail.com> References: <552C1C1F.5040408@gmail.com> Message-ID: <552C21B2.8020507@economy-x-talk.com> Hi Mike, Can't you install the SDK in the Applications folder? If not, execute this in the terminal: ls -s /User/mike/Libraries/Android/sdk /Applications/Android/Android_SDK You may need to use sudo: sudo ls -s ....... Now you can navigate to the Android_SDK folder in the Applications folder from within LiveCode. -- 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 4/13/2015 21:42, Michael Doub wrote: > I just installed Android Studio. It installs the sdk in > /User/mike/Libraries/Android/sdk. I have not figured out a way to > enter this path into the mobile preferences section. Can any one > provide me with some guidance? I filled a bug report, but I need a > work around. > > Thanks > Mike From mikedoub at gmail.com Mon Apr 13 16:07:27 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 13 Apr 2015 16:07:27 -0400 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C1C1F.5040408@gmail.com> References: <552C1C1F.5040408@gmail.com> Message-ID: <552C21FF.7030909@gmail.com> I think I answered my own question with this process: 1) using the finder locate the sdk directory by holding down the option key and navigate using the GO menu. 2) make an alias for the sdk directory 3) move the alias somewhere out of the Library directory 4) now update the livecode preferences to point at the alias -= Mike On 4/13/15 3:42 PM, Michael Doub wrote: > I just installed Android Studio. It installs the sdk in > /User/mike/Libraries/Android/sdk. I have not figured out a way to > enter this path into the mobile preferences section. Can any one > provide me with some guidance? I filled a bug report, but I need a > work around. > > Thanks > Mike > From m.schonewille at economy-x-talk.com Mon Apr 13 16:18:01 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 13 Apr 2015 22:18:01 +0200 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C21FF.7030909@gmail.com> References: <552C1C1F.5040408@gmail.com> <552C21FF.7030909@gmail.com> Message-ID: <552C2479.8020206@economy-x-talk.com> Mike, I'm not sure that an alias will always work. Hence the trick with a hard link in my other reply. -- 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 4/13/2015 22:07, Michael Doub wrote: > I think I answered my own question with this process: > > 1) using the finder locate the sdk directory by holding down the option > key and navigate using the GO menu. > 2) make an alias for the sdk directory > 3) move the alias somewhere out of the Library directory > 4) now update the livecode preferences to point at the alias > > -= Mike > > > On 4/13/15 3:42 PM, Michael Doub wrote: >> I just installed Android Studio. It installs the sdk in >> /User/mike/Libraries/Android/sdk. I have not figured out a way to >> enter this path into the mobile preferences section. Can any one >> provide me with some guidance? I filled a bug report, but I need a >> work around. >> >> Thanks >> Mike >> From mikedoub at gmail.com Mon Apr 13 16:17:05 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 13 Apr 2015 16:17:05 -0400 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C21B2.8020507@economy-x-talk.com> References: <552C1C1F.5040408@gmail.com> <552C21B2.8020507@economy-x-talk.com> Message-ID: <552C2441.2040408@gmail.com> They have tried to really making installation idiot proof, in doing so they install the sdk in the Library directory by default and there is no option to change it. creating the alias seems to get livecode to build to run cleanly. I am trying to figure out how to set up the emulator now.. One step at a time. I just got a new Android Phone yesterday. Watchout! I am going to be dangerous soon. ;-) -= Mike On 4/13/15 4:06 PM, Mark Schonewille wrote: > Hi Mike, > > Can't you install the SDK in the Applications folder? If not, execute > this in the terminal: > > ls -s /User/mike/Libraries/Android/sdk /Applications/Android/Android_SDK > > You may need to use sudo: > > sudo ls -s ....... > > Now you can navigate to the Android_SDK folder in the Applications > folder from within LiveCode. > > -- > 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 4/13/2015 21:42, Michael Doub wrote: >> I just installed Android Studio. It installs the sdk in >> /User/mike/Libraries/Android/sdk. I have not figured out a way to >> enter this path into the mobile preferences section. Can any one >> provide me with some guidance? I filled a bug report, but I need a >> work around. >> >> Thanks >> Mike > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikedoub at gmail.com Mon Apr 13 16:19:48 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 13 Apr 2015 16:19:48 -0400 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C21FF.7030909@gmail.com> References: <552C1C1F.5040408@gmail.com> <552C21FF.7030909@gmail.com> Message-ID: <552C24E4.3070608@gmail.com> Oh one other thing... make sure that you install the 2.2 API libraries. These are NOT installed by default in the Android Studio installation. LiveCode will not work without them. -= Mike On 4/13/15 4:07 PM, Michael Doub wrote: > I think I answered my own question with this process: > > 1) using the finder locate the sdk directory by holding down the > option key and navigate using the GO menu. > 2) make an alias for the sdk directory > 3) move the alias somewhere out of the Library directory > 4) now update the livecode preferences to point at the alias > > -= Mike > > > On 4/13/15 3:42 PM, Michael Doub wrote: >> I just installed Android Studio. It installs the sdk in >> /User/mike/Libraries/Android/sdk. I have not figured out a way to >> enter this path into the mobile preferences section. Can any one >> provide me with some guidance? I filled a bug report, but I need a >> work around. >> >> Thanks >> Mike >> > From mikedoub at gmail.com Mon Apr 13 16:34:11 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 13 Apr 2015 16:34:11 -0400 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C2479.8020206@economy-x-talk.com> References: <552C1C1F.5040408@gmail.com> <552C21FF.7030909@gmail.com> <552C2479.8020206@economy-x-talk.com> Message-ID: <552C2843.3030903@gmail.com> Mark, Are you sure "ls -s" is correct? I thought ls was a listing command. I have not used true UNIX in years. the -s option in the man page just talks about listing the blocks of the file. -= Mike On 4/13/15 4:18 PM, Mark Schonewille wrote: > Mike, > > I'm not sure that an alias will always work. Hence the trick with a > hard link in my other reply. > > -- > 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 4/13/2015 22:07, Michael Doub wrote: >> I think I answered my own question with this process: >> >> 1) using the finder locate the sdk directory by holding down the option >> key and navigate using the GO menu. >> 2) make an alias for the sdk directory >> 3) move the alias somewhere out of the Library directory >> 4) now update the livecode preferences to point at the alias >> >> -= Mike >> >> >> On 4/13/15 3:42 PM, Michael Doub wrote: >>> I just installed Android Studio. It installs the sdk in >>> /User/mike/Libraries/Android/sdk. I have not figured out a way to >>> enter this path into the mobile preferences section. Can any one >>> provide me with some guidance? I filled a bug report, but I need a >>> work around. >>> >>> Thanks >>> Mike >>> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Mon Apr 13 16:42:41 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 13 Apr 2015 22:42:41 +0200 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C2843.3030903@gmail.com> References: <552C1C1F.5040408@gmail.com> <552C21FF.7030909@gmail.com> <552C2479.8020206@economy-x-talk.com> <552C2843.3030903@gmail.com> Message-ID: <552C2A41.40807@economy-x-talk.com> Sorry... typo. It is ln -s.... -- 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 4/13/2015 22:34, Michael Doub wrote: > Mark, > > Are you sure "ls -s" is correct? I thought ls was a listing command. I > have not used true UNIX in years. the -s option in the man page just > talks about listing the blocks of the file. > > -= Mike From smudge.andy at googlemail.com Mon Apr 13 16:30:45 2015 From: smudge.andy at googlemail.com (AndyP) Date: Mon, 13 Apr 2015 13:30:45 -0700 (PDT) Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <552C15FF.9040203@braguglia.ch> References: <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> <552C0458.5020809@braguglia.ch> <552C15FF.9040203@braguglia.ch> Message-ID: <1428957045509-4691101.post@n4.nabble.com> RE: "lcStackBrowser" plugin problems This looks like a problem that happens on Mac only. I've downloaded the trial version of lcStackBrowser and have no problems on Win, but I am seeing the same problem on 10.10.2 , investigating further. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691101.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Mon Apr 13 16:48:50 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 13 Apr 2015 13:48:50 -0700 Subject: ANN: Script Editor Themer V2 Released In-Reply-To: <1428957045509-4691101.post@n4.nabble.com> References: <1428860511228-4691063.post@n4.nabble.com> <1428869306243-4691064.post@n4.nabble.com> <1428905637679-4691069.post@n4.nabble.com> <561348BA-1E71-49B6-A6D3-F5DCA3B14DFA@gmail.com> <552C0458.5020809@braguglia.ch> <552C15FF.9040203@braguglia.ch> <1428957045509-4691101.post@n4.nabble.com> Message-ID: Thanks Andy, I'll check it out here too. I have a front script with all sorts of message intercepts so I suspect we're treading on each others toes somewhere in there. Not sure why it's only a Mac issue though. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Apr 13, 2015 at 1:30 PM, AndyP wrote: > RE: "lcStackBrowser" plugin problems > > This looks like a problem that happens on Mac only. > > I've downloaded the trial version of lcStackBrowser and have no problems on > Win, but I am seeing the same problem on 10.10.2 , investigating further. > > > > ----- > Andy Piddock > > > My software never has bugs. It just develops random features. > > Copy the new cloud space, get your free 15GB space now: > Get Copy > > > Script editor Themer for LC http://2108.co.uk > > PointandSee is a FREE simple but full featured under cursor colour picker > / finder. > http://www.pointandsee.co.uk - made with LiveCode > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/ANN-Script-Editor-Themer-V2-Released-tp4691059p4691101.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Mon Apr 13 16:50:14 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 13 Apr 2015 22:50:14 +0200 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C2441.2040408@gmail.com> References: <552C1C1F.5040408@gmail.com> <552C21B2.8020507@economy-x-talk.com> <552C2441.2040408@gmail.com> Message-ID: <552C2C06.5090708@economy-x-talk.com> Hi Mike, I start the Android command line app by double-clicking it in sdk/tools. This starts the SDK manager, which allows me to manage AVD's. I have created an AVD with Android 2.3.3 and start this from the AVD manager. Any other version of Android is too slow to be practical for testing in the emulator. There is also a newsletter, which explain how to set up an emulator in VirtualBox. -- 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 4/13/2015 22:17, Michael Doub wrote: > They have tried to really making installation idiot proof, in doing so > they install the sdk in the Library directory by default and there is no > option to change it. > > creating the alias seems to get livecode to build to run cleanly. I am > trying to figure out how to set up the emulator now.. > One step at a time. I just got a new Android Phone yesterday. > Watchout! I am going to be dangerous soon. ;-) > > -= Mike > > > > On 4/13/15 4:06 PM, Mark Schonewille wrote: >> Hi Mike, >> >> Can't you install the SDK in the Applications folder? If not, execute >> this in the terminal: >> >> ls -s /User/mike/Libraries/Android/sdk /Applications/Android/Android_SDK >> >> You may need to use sudo: >> >> sudo ls -s ....... >> >> Now you can navigate to the Android_SDK folder in the Applications >> folder from within LiveCode. >> >> -- >> 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 4/13/2015 21:42, Michael Doub wrote: >>> I just installed Android Studio. It installs the sdk in >>> /User/mike/Libraries/Android/sdk. I have not figured out a way to >>> enter this path into the mobile preferences section. Can any one >>> provide me with some guidance? I filled a bug report, but I need a >>> work around. >>> >>> Thanks >>> Mike >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikedoub at gmail.com Mon Apr 13 17:23:20 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 13 Apr 2015 17:23:20 -0400 Subject: How to enter the Android Sdk Location when it is in "Library" In-Reply-To: <552C2C06.5090708@economy-x-talk.com> References: <552C1C1F.5040408@gmail.com> <552C21B2.8020507@economy-x-talk.com> <552C2441.2040408@gmail.com> <552C2C06.5090708@economy-x-talk.com> Message-ID: <552C33C8.4030607@gmail.com> I was able tp get to the AVD Manager thru Android Studio. And you are correct that it is quite slow. I am currently getting a failure that says that it cant find the package manager... Humm. This is why I generally build a simple launcher application that I manually load on to the device and it fetchs the real app from dropbox. I have never had much luck with the simulator. Any suggestions for me to try? I do have your hard link in place. -= Mike On 4/13/15 4:50 PM, Mark Schonewille wrote: > Hi Mike, > > I start the Android command line app by double-clicking it in > sdk/tools. This starts the SDK manager, which allows me to manage > AVD's. I have created an AVD with Android 2.3.3 and start this from > the AVD manager. Any other version of Android is too slow to be > practical for testing in the emulator. There is also a newsletter, > which explain how to set up an emulator in VirtualBox. > > -- > 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 4/13/2015 22:17, Michael Doub wrote: >> They have tried to really making installation idiot proof, in doing so >> they install the sdk in the Library directory by default and there is no >> option to change it. >> >> creating the alias seems to get livecode to build to run cleanly. I am >> trying to figure out how to set up the emulator now.. >> One step at a time. I just got a new Android Phone yesterday. >> Watchout! I am going to be dangerous soon. ;-) >> >> -= Mike >> >> >> >> On 4/13/15 4:06 PM, Mark Schonewille wrote: >>> Hi Mike, >>> >>> Can't you install the SDK in the Applications folder? If not, execute >>> this in the terminal: >>> >>> ls -s /User/mike/Libraries/Android/sdk >>> /Applications/Android/Android_SDK >>> >>> You may need to use sudo: >>> >>> sudo ls -s ....... >>> >>> Now you can navigate to the Android_SDK folder in the Applications >>> folder from within LiveCode. >>> >>> -- >>> 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 4/13/2015 21:42, Michael Doub wrote: >>>> I just installed Android Studio. It installs the sdk in >>>> /User/mike/Libraries/Android/sdk. I have not figured out a way to >>>> enter this path into the mobile preferences section. Can any one >>>> provide me with some guidance? I filled a bug report, but I need a >>>> work around. >>>> >>>> Thanks >>>> Mike >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvlahos at mac.com Mon Apr 13 17:32:17 2015 From: bvlahos at mac.com (Bill Vlahos) Date: Mon, 13 Apr 2015 14:32:17 -0700 Subject: lcTaskList and LiveCode 8 In-Reply-To: References: <092CE109-68CE-42AE-97DF-6F1064152B2F@mac.com> Message-ID: <571894D3-761B-4F54-A638-5F539AD4AABA@mac.com> Ben, DP-2 resolved the issue. Thank you. Bill > On Mar 16, 2015, at 9:02 AM, Benjamin Beaumont wrote: > > Hi Bill, > > Thanks for the report. We've got a good amount of resource working on the > IDE at the moment so it shouldn't take use too long to get this resolved. > > Warm regards, > > Ben > > On 14 March 2015 at 14:40, Bill Vlahos wrote: > >> I already had LC 8.0.0 DP1 installed and lcTaskList worked fine. >> >> When I opened LiveCode today the auto updater wanted to update to what >> appears to be the same LC 8 DP1. When I open the updated version and then >> open lcTaskList, LiveCode IDE crashes. They must have changed something. >> >> I've submitted it as a bug report Bug 14953 to LiveCode. >> >> Bill Vlahos >> _________________ >> InfoWallet (http://www.infowallet.com) is about keeping your important >> life information with you, accessible, and secure. >> lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) >> RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > _____________________________________________ > > Benjamin Beaumont . LiveCode Ltd > > LiveCode Product Manager > mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW > email : ben at livecode.com > company : +44(0) 845 219 89 23 > fax : +44(0) 845 458 8487 > web : www.livecode.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Mon Apr 13 18:49:47 2015 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 14 Apr 2015 07:49:47 +0900 Subject: New LiveCode book In-Reply-To: <14cb37bae24-2bb6-148d2@webprd-m83.mail.aol.com> References: <14cb37bae24-2bb6-148d2@webprd-m83.mail.aol.com> Message-ID: <552C480B.4090508@tkf.att.ne.jp> Stephen, I have just downloaded the book and tutorial -- have not looked at them yet, but even so you deserve great thanks from the community for creating them and making them available freely to us all! Truly the spirit of HyperCard! Blessings. Tim Selander Tokyo, Japan On 15/04/14 0:52, stgoldberg at aol.com wrote: > > I am pleased to announce my new book, LiveCode Lite: Computer Programming Made Ridiculously Simple. > > > It is temporarily available as a free PDF download at www.medmaster/livecode.html, along with a LiveCode scripting tutorial for Mac or Windows. > > > The original HyperCard language had only about 150 words, while LiveCode, which is far more powerful, has close to 2000. This can be intimidating to newcomers. The book, 165 pgs, is designed for individuals with little or no background in LiveCode or computer programming, providing a brief, clear, hopefully enjoyable approach to LiveCode and computer programming in a simple, linear step-by-step fashion. The book follows the format of other Medmaster titles. I hope to receive feedback so that the book can be improved, and I thank all the LiveCode gurus on the forum, which I have followed for years. > > > > Stephen Goldberg > Prof. Emeritus, Univ Miami Miller School of Medicine > President, Medmaster Publishing Co. > www.medmaster.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at livecode.org Mon Apr 13 18:59:00 2015 From: paul at livecode.org (Paul Hibbert) Date: Mon, 13 Apr 2015 15:59:00 -0700 Subject: [OT] Yosemite QuickTime Player In-Reply-To: References: Message-ID: <0C829F7A-BD11-489A-90CA-AEA3D580C630@livecode.org> Just tested and not seeing any problem here. Recorded a minute at full screen, saved and played fine. Yosemite: 10.10.2 QuickTime Player: 10.4 iMac: Late 2009, 21.5", 3.06 GHz Intel Core 2 Duo, 8GB Ram > On Apr 13, 2015, at 12:58, Peter Haworth wrote: > > Having an issue making a screen recording with QT in Yosemite. > > The recording stops after 40 seconds - no indication it did that until you > stop record and try to play it back. > > Also, clicking the stop recording button in the menu bar hangs QT and have > to force quit to get out of it. > > Anyone come across these issues? > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Mon Apr 13 19:37:46 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 13 Apr 2015 16:37:46 -0700 Subject: [OT] Yosemite QuickTime Player In-Reply-To: <0C829F7A-BD11-489A-90CA-AEA3D580C630@livecode.org> References: <0C829F7A-BD11-489A-90CA-AEA3D580C630@livecode.org> Message-ID: Yeah, it seems to be related to the length of the video. Couldn't find any mention online so I've switched over to using Screenium since I need to get this video out the door. Thanks for checking. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Apr 13, 2015 at 3:59 PM, Paul Hibbert wrote: > Just tested and not seeing any problem here. Recorded a minute at full > screen, saved and played fine. > > Yosemite: 10.10.2 > QuickTime Player: 10.4 > iMac: Late 2009, 21.5", 3.06 GHz Intel Core 2 Duo, 8GB Ram > > > > On Apr 13, 2015, at 12:58, Peter Haworth wrote: > > > > Having an issue making a screen recording with QT in Yosemite. > > > > The recording stops after 40 seconds - no indication it did that until > you > > stop record and try to play it back. > > > > Also, clicking the stop recording button in the menu bar hangs QT and > have > > to force quit to get out of it. > > > > Anyone come across these issues? > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dave at applicationinsight.com Mon Apr 13 20:32:45 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Mon, 13 Apr 2015 17:32:45 -0700 (PDT) Subject: New LiveCode book In-Reply-To: <14cb37bae24-2bb6-148d2@webprd-m83.mail.aol.com> References: <14cb37bae24-2bb6-148d2@webprd-m83.mail.aol.com> Message-ID: <1428971565136-4691109.post@n4.nabble.com> Hi Stephen I too have downloaded your book and I look forward to reading it later - a 'hat tip' and a thank you to you for offering it free to the LiveCode community. Kind regards Dave PS: roughly how many hours did it take? ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/New-LiveCode-book-tp4691072p4691109.html Sent from the Revolution - User mailing list archive at Nabble.com. From david.bovill at gmail.com Tue Apr 14 02:17:59 2015 From: david.bovill at gmail.com (David Bovill) Date: Tue, 14 Apr 2015 07:17:59 +0100 Subject: Quartz Compositions Message-ID: Previously I had some success playing Quart Composer compositions in LiveCode's player object - not able to get it working now. Is this something that we could easily build in Livecode Builder? From scott at tactilemedia.com Tue Apr 14 03:27:14 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 14 Apr 2015 00:27:14 -0700 Subject: New Way To Deal With Custom Fonts on iOS? Message-ID: Hi All: I just spent two hours with a colleague trying to track down why a custom font wasn't rendering correctly on iOS, and apparently it seems that something changed with either the way LiveCode 7 or iOS 8 handles font names. It used to be that grabbing the installed name of a font on iOS was all that was needed to get a custom font to work, but now it seems one has to manually combine the font name and any desired style/s into a string separated by a dash: Installed name = American Typewriter Condensed Bold becomes -------> AmericanTypewriter-CondensedBold I know about the fontStyles function, but that only appears to return available styles for font, it doesn't return a properly formatted fontName. Looking up font related terms/issues in the docs, forums, and mail list I haven't seen any reference to this anywhere. Is this documented, and even more importantly, is there a function or script to automate this so we don't have to maintain a stored list of styles and compare/replace words in the font name? I'm also worried about what caused this change: is this a LiveCode change or an iOS change? An iOS change would seem to mean that we need to code around the system version to handle older versions of iOS. Thanks for any info/advice here. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From mark at sorcery-ltd.co.uk Tue Apr 14 05:21:15 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Tue, 14 Apr 2015 10:21:15 +0100 Subject: LiveNode Server In-Reply-To: References: <552412CC.4080707@fourthworld.com> Message-ID: <1429003275.3737192.253449025.75606C29@webmail.messagingengine.com> This is an interesting thread. Let me add a few comments: The CGI / FastCGI thing is a red herring. CGI is slow and so is FastCGI. :) Slighter faster options (e.g. for things like PHP and Python) implement the language runtime via a plugin module to the web server. However, things like Node.js and Go are fast because they don't have Apache or similar in the way. I once saw a presentation by a guy that had built the most carefully optimised (and very popular) HTTP proxy in Python and then discovered that a very simplistic implementation with Node.js was more than an order of magnitude faster. This was because Apache was out of the loop, not because JavaScript is so much faster than Python (it is faster but nowhere near that much). Now Apache and other web servers are really good at serving up files but these days we often want to build APIs. If you've got static files you're better off putting them on Amazon S3 or similar. For getting a chunk of JSON querying a database and spitting some more JSON back the other way you're better off with something architecturally like Node.js. The fact that the whole ecosystem has been forced to do everything asynchronously is a big help. JavaScript and its single threaded nature are not virtues here but not a fatal handicap either. Someone mentioned Meteor.js - that's built on Node.js but they actually use Node Fibers, basically lightweight threads (that have to yield explicitly - no pre-emption) - it makes the code a whole lot more readable. Not having real threads is bad when it comes to processor intensive operations but Node.js got a very long way without them and I think a Node-like LiveCode server could too. It would need to have proper asynchronous I/O everywhere though and that's not trivial from where we are now. It is definitely a project worth pursuing if anyone has the time. The quickest way to get their might be to integrate libevent (as used in Chromium) rather than libuv (as used in Node.js) because it comes with DNS, HTTP and SSL support - you really want all of those in the C/C++ layer, not implemented in LiveCode on top of a raw socket . It might not be the best way overall but alternatives probably involve quite a lot more work. Adding something like blocks in Objective-C (very closure-like), or Node's TAGG, to enable real multi-threaded programming but limited to avoid all the usual thread synchronisation headaches would also be fantastic for LiveCode but another big chunk of work. There didn't seem much point in even looking at any of these things while the engine was undergoing a major architectural overhaul but maybe things are starting to stabilise enough now that it'll make sense to think about them again soon. Mark -- Mark Wilcox mark at sorcery-ltd.co.uk On Wed, Apr 8, 2015, at 02:47 PM, Andrew Kluthe wrote: > To clarify just a little bit further. The code and objects weren't > holding > onto memory, the variables used in that code were due to weird scoping. > Big > chunks of db results, etc that persist after I've already done my > business > with them and tried to move on. > > If I can recommend a book on Javascript, I can't speak highly enough of > the > insights given by "JavsScript: the Good Parts" from O'Reilly. He > provides > some history behind some of the design choices in javascript and some of > the problems still being worked around today in regards to the bad parts. > From ray at linkit.com Tue Apr 14 13:15:34 2015 From: ray at linkit.com (Ray) Date: Tue, 14 Apr 2015 13:15:34 -0400 Subject: New LiveCode book In-Reply-To: <552C480B.4090508@tkf.att.ne.jp> References: <14cb37bae24-2bb6-148d2@webprd-m83.mail.aol.com> <552C480B.4090508@tkf.att.ne.jp> Message-ID: <552D4B36.9000009@LinkIt.Com> Stephen, I'd love to take a look at your book but I'm getting a 403 error, "access is forbidden" as I click the link below. I'm in Granada, Spain if that makes a difference. Any suggestions? www.medmaster/livecode.html Thanks, Ray Horsley LinkIt! Software On 4/13/2015 6:49 PM, Tim Selander wrote: > Stephen, > > I have just downloaded the book and tutorial -- have not looked at > them yet, but even so you deserve great thanks from the community for > creating them and making them available freely to us all! Truly the > spirit of HyperCard! > > Blessings. > > Tim Selander > Tokyo, Japan > > > On 15/04/14 0:52, stgoldberg at aol.com wrote: >> >> I am pleased to announce my new book, LiveCode Lite: Computer >> Programming Made Ridiculously Simple. >> >> >> It is temporarily available as a free PDF download at >> www.medmaster/livecode.html, along with a LiveCode scripting tutorial >> for Mac or Windows. >> >> >> The original HyperCard language had only about 150 words, while >> LiveCode, which is far more powerful, has close to 2000. This can be >> intimidating to newcomers. The book, 165 pgs, is designed for >> individuals with little or no background in LiveCode or computer >> programming, providing a brief, clear, hopefully enjoyable approach >> to LiveCode and computer programming in a simple, linear step-by-step >> fashion. The book follows the format of other Medmaster titles. I >> hope to receive feedback so that the book can be improved, and I >> thank all the LiveCode gurus on the forum, which I have followed for >> years. >> >> >> >> Stephen Goldberg >> Prof. Emeritus, Univ Miami Miller School of Medicine >> President, Medmaster Publishing Co. >> www.medmaster.net >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stgoldberg at aol.com Tue Apr 14 07:17:48 2015 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Tue, 14 Apr 2015 07:17:48 -0400 Subject: New LiveCode book Message-ID: <14cb7a64246-2909-1de83@webprd-m31.mail.aol.com> Just a reminder that the corrected URL for downloading my book, LiveCode Lite: Computer Programming Made Ridiculously Simple, is www.medmaster.net/livecode.html. This is addressed to a number of members of the liveCode team in Edinburgh... To three members of the team in particular... Hanson, Sebastien and Panos... After having read your email, there is nothing I can say except that 'I am an idiot'... I have no excuse whatsoever for missing such a fundamental line as setting the visible of the 'scroller' to true. I was absolutely convinced that I was correct, as I was using the same code that is already in a stack on the Apple app store... I must have deleted the line whilst preparing a facelift for the app...:-( iphoneControlSet scrollID, "visible", true this is the missing line that caused me to think that the scroller in LC 6.7.4 & LC 7.0.4 was not working and prompted me to file a 'bug' report... I apologise to Hanson, Sebastien and Panos for putting up with my 'bug' report, completely wasting their time and for getting me out of the 'massive' hole that I have manged to dig for myself... Gentlemen... I thank you.. John Dixon [Bug 15118] native scroller? To: dixonja at hotmail.co.uk Panos Merakos changed bug 15118 What Removed Added Status CONFIRMED PENDING_AWAITING_FOLLOW_UP CC panos.merakos at livecode.com Comment # 9 on bug 15118 from Panos Merakos Hi John, We had a deeper look in the scripts of the sample stacks you have attached, and found the problem. You have not set the "visible" of the scroller to true, and this is why it does not scroll. This is what we did to resolve the issue: 1. In stack local directory copy.livecode: Go to card id 1011, and add the following line in the buildScroller handler (at the point where you set the scroller properties) iphoneControlSet scrollID, "visible", true 2. In stacks textScroll.livecode and PicsHorz copy.livecode, this line already exists, and thus the scrollers work as expected. 3. In stack scroll704.livecode: Go to card id 1002, and add the following line in the buildScroller handler (at the point where you set the scroller properties): iphoneControlSet scrollID, "visible", true Can you please let us know if this fixes the problem for you? Warmest regards, Panos -- You are receiving this mail because: You are on the CC list for the bug.You reported the bug. From matthias_livecode_150811 at m-r-d.de Tue Apr 14 09:57:31 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 14 Apr 2015 15:57:31 +0200 Subject: Bug [15118] native scroller In-Reply-To: References: Message-ID: <930905F7-4810-4C43-9EB2-57D07E203136@m-r-d.de> > Am 14.04.2015 um 14:17 schrieb John Dixon : > > > > > > > > > This is addressed to a number of members of the liveCode team in Edinburgh... > To three members of the team in particular... > > Hanson, Sebastien and Panos... > > After having read your email, there is nothing I can say except that 'I am an idiot'... > I have no excuse whatsoever for missing such a fundamental line as setting the visible of the 'scroller' to true. > > I was absolutely convinced that I was correct, as I was using the same code that is already in a stack on the Apple app store... I must have deleted the line whilst preparing a facelift for the app...:-( > > iphoneControlSet scrollID, "visible", true > > this is the missing line that caused me to think that the scroller in LC 6.7.4 & LC 7.0.4 was not working and prompted me to file a 'bug' report... > > I apologise to Hanson, Sebastien and Panos for putting up with my 'bug' report, completely wasting their time and for getting me out of the 'massive' hole that I have manged to dig for myself... > > Gentlemen... I thank you.. > > John Dixon > > [Bug 15118] native scroller? To: dixonja at hotmail.co.uk > > > > > Panos Merakos > changed > bug 15118 > > > > > What > Removed > Added > > > > Status > CONFIRMED > > PENDING_AWAITING_FOLLOW_UP > > > > > CC > > > > panos.merakos at livecode.com > > > > > > Comment # 9 > on bug 15118 > from Panos Merakos > > Hi John, > > We had a deeper look in the scripts of the sample stacks you have attached, and > found the problem. You have not set the "visible" of the scroller to true, and > this is why it does not scroll. This is what we did to resolve the issue: > > 1. In stack local directory copy.livecode: > Go to card id 1011, and add the following line in the buildScroller handler (at > the point where you set the scroller properties) > > iphoneControlSet scrollID, "visible", true > > 2. In stacks textScroll.livecode and PicsHorz copy.livecode, this line already > exists, and thus the scrollers work as expected. > > 3. In stack scroll704.livecode: > Go to card id 1002, and add the following line in the buildScroller handler (at > the point where you set the scroller properties): > > iphoneControlSet scrollID, "visible", true > > Can you please let us know if this fixes the problem for you? > > Warmest regards, > Panos > -- > > > > You are receiving this mail because: > > You are on the CC list for the bug.You reported the bug. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cs_livecode at icloud.com Tue Apr 14 10:18:23 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Tue, 14 Apr 2015 08:18:23 -0600 Subject: New Way To Deal With Custom Fonts on iOS? In-Reply-To: References: Message-ID: <9920AC0D-10FD-4655-96E9-856EB4502572@icloud.com> Scott, Could this possibly be related to this issue bug 14116 ? Mark W. stated in a comment there that the screen loading times may have something to do with a change in the way that fonts were handled between LC 6.6 and LC 6.7. I wonder if the issue you described is related somehow. Maybe it?s also caused by this change to using CoreText in iOS. Specifically, see his comment from February 27. Chris > On Apr 14, 2015, at 1:27 AM, Scott Rossi wrote: > > Hi All: > > I just spent two hours with a colleague trying to track down why a custom > font wasn't rendering correctly on iOS, and apparently it seems that > something changed with either the way LiveCode 7 or iOS 8 handles font > names. > > It used to be that grabbing the installed name of a font on iOS was all > that was needed to get a custom font to work, but now it seems one has to > manually combine the font name and any desired style/s into a string > separated by a dash: > > Installed name = American Typewriter Condensed Bold > becomes -------> AmericanTypewriter-CondensedBold > > I know about the fontStyles function, but that only appears to return > available styles for font, it doesn't return a properly formatted fontName. > > Looking up font related terms/issues in the docs, forums, and mail list I > haven't seen any reference to this anywhere. Is this documented, and even > more importantly, is there a function or script to automate this so we > don't have to maintain a stored list of styles and compare/replace words > in the font name? > > I'm also worried about what caused this change: is this a LiveCode change > or an iOS change? An iOS change would seem to mean that we need to code > around the system version to handle older versions of iOS. > > Thanks for any info/advice here. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david.bovill at gmail.com Tue Apr 14 10:22:08 2015 From: david.bovill at gmail.com (David Bovill) Date: Tue, 14 Apr 2015 15:22:08 +0100 Subject: Quartz Compositions In-Reply-To: References: Message-ID: Another way of asking the same question - but maybe more work - is how easy is it to create a widget that takes live video input from Syphon - http://syphon.v002.info/FrameworkDocumentation/ On 14 April 2015 at 07:17, David Bovill wrote: > Previously I had some success playing Quart Composer compositions in > LiveCode's player object - not able to get it working now. Is this > something that we could easily build in Livecode Builder? > From jacque at hyperactivesw.com Tue Apr 14 10:41:40 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Apr 2015 09:41:40 -0500 Subject: Bug [15118] native scroller In-Reply-To: References: Message-ID: On April 14, 2015 7:17:27 AM CDT, John Dixon wrote: > >After having read your email, there is nothing I can say except that 'I >am an idiot'... A very gracious reply. But don't worry, you get several of those for free. It's only after repeated infractions that they take away your computer and make you go shear sheep in Wales. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Apr 14 10:58:25 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Apr 2015 07:58:25 -0700 Subject: Bug [15118] native scroller In-Reply-To: References: Message-ID: <552D2B11.90700@fourthworld.com> John Dixon wrote: > I was absolutely convinced that I was correct, as I was using the > same code that is already in a stack on the Apple app store... I > must have deleted the line whilst preparing a facelift for the > app...:-( > > iphoneControlSet scrollID, "visible", true > > this is the missing line that caused me to think that the scroller in > LC 6.7.4 & LC 7.0.4 was not working and prompted me to file a 'bug' > report... > > I apologise to Hanson, Sebastien and Panos for putting up with my > 'bug' report, completely wasting their time and for getting me out of > the 'massive' hole that I have manged to dig for myself... That was very gentlemanly of you, but in all fairness I've always wondered why the engine doesn't just instantiate those for us. Now that I'm doing mobile work in earnest I found it tedious to create groups around fields, so I've been experimenting with having those dynamically created at runtime via script, and then calling the appropriate native instantiation calls. But to be honest it feels a little silly having to do that: the engine knows the rect of the object, and it knows the object is visible, and it knows the object is scrolling. If I can write a script to look for those and automatically instantiate scrollers as needed, is it really too hard for the engine to do? After all, scripts are run by the engine. Whingeing aside, there was another bit of good news from this thread - earlier I'd noted that we can't paste text from LiveCode into programs that expect styled text, and I got notice this morning that now the lead engineer, Mark Waddingham, is looking into that. Good to see progress like this. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Tue Apr 14 11:04:36 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 14 Apr 2015 17:04:36 +0200 Subject: Bug [15118] native scroller In-Reply-To: References: Message-ID: Don?t know, why my last post was empty? John, you?re not alone. I also ran into such situation. I reported a bug that sometimes LC5 did not attach the database drivers to the standalones, but LC 4 did. My fault was i forgot to add a ?pass savestackrequest? to the SaveStackRequest handler. I am sure you will never forget to set the visible of a scroller to true, like i ever won?t forget to add that ?pass savestackrequest? thing. ;) Matthias > Am 14.04.2015 um 14:17 schrieb John Dixon : > > > > > > > > > This is addressed to a number of members of the liveCode team in Edinburgh... > To three members of the team in particular... > > Hanson, Sebastien and Panos... > > After having read your email, there is nothing I can say except that 'I am an idiot'... > I have no excuse whatsoever for missing such a fundamental line as setting the visible of the 'scroller' to true. > > I was absolutely convinced that I was correct, as I was using the same code that is already in a stack on the Apple app store... I must have deleted the line whilst preparing a facelift for the app...:-( > > iphoneControlSet scrollID, "visible", true > > this is the missing line that caused me to think that the scroller in LC 6.7.4 & LC 7.0.4 was not working and prompted me to file a 'bug' report... > > I apologise to Hanson, Sebastien and Panos for putting up with my 'bug' report, completely wasting their time and for getting me out of the 'massive' hole that I have manged to dig for myself... > > Gentlemen... I thank you.. > > John Dixon > From jacque at hyperactivesw.com Tue Apr 14 11:16:28 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Apr 2015 10:16:28 -0500 Subject: Bug [15118] native scroller In-Reply-To: <552D2B11.90700@fourthworld.com> References: <552D2B11.90700@fourthworld.com> Message-ID: <5CBDD029-7CC8-4D8B-BA5B-397C7F882B16@hyperactivesw.com> On April 14, 2015 9:58:25 AM CDT, Richard Gaskin wrote: >Now that I'm doing mobile work in earnest I found it tedious to create >groups around fields, I've scrolled fields directly without grouping them in the past. Unless something changed, I don't think you need to group a single field. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Tue Apr 14 11:17:16 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 14 Apr 2015 10:17:16 -0500 Subject: Why can't LC do what PencilCase does? Message-ID: PencilCase has a player app on iOS so you can: 1. Design your app on a Mac 2. Upload it to their system and get a code 3. Give that code to anyone 4. Anyone can install the PencilCase iOS app 5. Anyone can put in your code to run your app immediately. If they can do it, shouldn't LC be able to as well? Or is there something I'm not thinking of? From dochawk at gmail.com Tue Apr 14 11:56:39 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 14 Apr 2015 08:56:39 -0700 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: Message-ID: On Tue, Apr 14, 2015 at 8:17 AM, Geoff Canyon wrote: > > If they can do it, shouldn't LC be able to as well? Or is there something > I'm not thinking of? > How are they getting past Apple's ban on downloading code??? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dixonja at hotmail.co.uk Tue Apr 14 12:04:14 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Tue, 14 Apr 2015 17:04:14 +0100 Subject: Bug [15118] native scroller In-Reply-To: <5CBDD029-7CC8-4D8B-BA5B-397C7F882B16@hyperactivesw.com> References: , <552D2B11.90700@fourthworld.com>, <5CBDD029-7CC8-4D8B-BA5B-397C7F882B16@hyperactivesw.com> Message-ID: Jacque.. You are correct about scrolling fields... I create a group and copy the required number of groups to a master group that I wish to display.. for example... show in the image below, I have a group that consists of 2 images, 2 fields... there are 140 of these that are scrolled.. http://www.ihouse.on-rev.com/showstuff/scrollgroupshot.png One just must remember to make the scroller visible in order to see the whole lot..:-) John Dixon > > On April 14, 2015 9:58:25 AM CDT, Richard Gaskin wrote: > > >Now that I'm doing mobile work in earnest I found it tedious to create > >groups around fields, > I've scrolled fields directly without grouping them in the past. Unless something changed, I don't think you need to group a single field. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Apr 14 12:23:21 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Apr 2015 09:23:21 -0700 Subject: Bug [15118] native scroller In-Reply-To: <5CBDD029-7CC8-4D8B-BA5B-397C7F882B16@hyperactivesw.com> References: <5CBDD029-7CC8-4D8B-BA5B-397C7F882B16@hyperactivesw.com> Message-ID: <552D3EF9.10903@fourthworld.com> J. Landman Gay wrote: > On April 14, 2015 9:58:25 AM CDT, Richard Gaskin wrote: > >> Now that I'm doing mobile work in earnest I found it tedious to >> create groups around fields, > > I've scrolled fields directly without grouping them in the past. > Unless something changed, I don't think you need to group a single > field. Is this obsolete? Does the LC field object take on the appropriate scrolling behavior when rendered on mobile? Are there other cases where we don't really need to write the same lines of code over and over to instantiate every object as a mobile control that the docs suggest we do? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From gcanyon at gmail.com Tue Apr 14 12:24:56 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 14 Apr 2015 11:24:56 -0500 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: Message-ID: No idea. Their basic projects don't have "code" -- just a bunch of properties that include things like "when this happens, do this," but then you can open the project up and write javascript. Maybe the end result is a specialized web page? I'll experiment more. gc On Tue, Apr 14, 2015 at 10:56 AM, Dr. Hawkins wrote: > On Tue, Apr 14, 2015 at 8:17 AM, Geoff Canyon wrote: > > > > > If they can do it, shouldn't LC be able to as well? Or is there something > > I'm not thinking of? > > > > How are they getting past Apple's ban on downloading code??? > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From prothero at earthednet.org Tue Apr 14 12:30:53 2015 From: prothero at earthednet.org (William Prothero) Date: Tue, 14 Apr 2015 09:30:53 -0700 Subject: Bug [15118] native scroller In-Reply-To: <552D3EF9.10903@fourthworld.com> References: <5CBDD029-7CC8-4D8B-BA5B-397C7F882B16@hyperactivesw.com> <552D3EF9.10903@fourthworld.com> Message-ID: <076C46A6-4B01-4333-A61B-77987AA944BD@earthednet.org> Richard: When I looked at the link you posted, the very last comment in the comments section had a question of whether the field really needed to be in a group. Elanor Buchanan answered that it was not necessary. Best, Bill > On Apr 14, 2015, at 9:23 AM, Richard Gaskin wrote: > > J. Landman Gay wrote: > > > On April 14, 2015 9:58:25 AM CDT, Richard Gaskin wrote: > > > >> Now that I'm doing mobile work in earnest I found it tedious to > >> create groups around fields, > > > > I've scrolled fields directly without grouping them in the past. > > Unless something changed, I don't think you need to group a single > > field. > > Is this obsolete? > > > Does the LC field object take on the appropriate scrolling behavior when rendered on mobile? > > Are there other cases where we don't really need to write the same lines of code over and over to instantiate every object as a mobile control that the docs suggest we do? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Apr 14 12:44:28 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Apr 2015 09:44:28 -0700 Subject: Bug [15118] native scroller In-Reply-To: <076C46A6-4B01-4333-A61B-77987AA944BD@earthednet.org> References: <076C46A6-4B01-4333-A61B-77987AA944BD@earthednet.org> Message-ID: <552D43EC.5080908@fourthworld.com> But does the native field object have the appropriate scrolling behaviors when rendered on mobile (bounce-back/glow, etc.)? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com William Prothero wrote: > Richard: > When I looked at the link you posted, the very last comment in the > comments section had a question of whether the field really needed > to be in a group. Elanor Buchanan answered that it was not necessary. > Best, > Bill > >> On Apr 14, 2015, at 9:23 AM, Richard Gaskin wrote: >> >> J. Landman Gay wrote: >> >> > On April 14, 2015 9:58:25 AM CDT, Richard Gaskin wrote: >> > >> >> Now that I'm doing mobile work in earnest I found it tedious to >> >> create groups around fields, >> > >> > I've scrolled fields directly without grouping them in the past. >> > Unless something changed, I don't think you need to group a single >> > field. >> >> Is this obsolete? >> >> >> Does the LC field object take on the appropriate scrolling behavior >> when rendered on mobile? >> >> Are there other cases where we don't really need to write the same >> lines of code over and over to instantiate every object as a mobile >> control that the docs suggest we do? >> From jacque at hyperactivesw.com Tue Apr 14 12:49:29 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Apr 2015 11:49:29 -0500 Subject: Bug [15118] native scroller In-Reply-To: <552D3EF9.10903@fourthworld.com> References: <5CBDD029-7CC8-4D8B-BA5B-397C7F882B16@hyperactivesw.com> <552D3EF9.10903@fourthworld.com> Message-ID: <552D4519.6040807@hyperactivesw.com> On 4/14/2015 11:23 AM, Richard Gaskin wrote: > Is this obsolete? > > > > Does the LC field object take on the appropriate scrolling behavior when > rendered on mobile? > > Are there other cases where we don't really need to write the same lines > of code over and over to instantiate every object as a mobile control > that the docs suggest we do? The concept is that the content rect has to be larger than the visible area. One way to do that is to set the field height/width the same as its formattedHeight/width and then group it to provide a smaller viewing area. The other way is to set the content rect of the native scroller to the formattedrect of the field, and lock the visible field rect at a smaller size. You can still set the scroll of the field regardless of how much is visible at any time. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Tue Apr 14 12:50:45 2015 From: klaus at major-k.de (Klaus major-k) Date: Tue, 14 Apr 2015 18:50:45 +0200 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: References: Message-ID: <27B19799-1EEB-413A-AE59-7EDE2B8EB426@major-k.de> > Am 13.04.2015 um 18:31 schrieb Ali Lloyd : > > Dear list members, > > We are pleased to announce the release of LiveCode 8.0 DP 2. > > ... > > LiveCode 8 is in an early stage of development so we?d love to hear any > feedback you have on it. There are a number of features that we?d like to > implement but aren?t ready yet and the existing features are subject to > change during development - we can?t guarantee that extensions written in > DP1 will continue to work in later versions. > > Please report any bugs encountered on our Bugzilla at > http://quality.livecode.com/ > > We have a forum available for discussing LiveCode Builder at > http://forums.livecode.com/viewforum.php?f=93 can anyone please shed some light on how to use the new ?Icon Picker? widget? The dictionary show an awsome description: "A widget to display icons for picking? :-D But no mention about syntax, params etc... Thanks! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Tue Apr 14 12:55:38 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Apr 2015 11:55:38 -0500 Subject: Bug [15118] native scroller In-Reply-To: <552D43EC.5080908@fourthworld.com> References: <076C46A6-4B01-4333-A61B-77987AA944BD@earthednet.org> <552D43EC.5080908@fourthworld.com> Message-ID: <552D468A.2050701@hyperactivesw.com> On 4/14/2015 11:44 AM, Richard Gaskin wrote: > But does the native field object have the appropriate scrolling > behaviors when rendered on mobile (bounce-back/glow, etc.)? Yes. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Apr 14 13:00:11 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Apr 2015 12:00:11 -0500 Subject: Bug [15118] native scroller In-Reply-To: <552D4519.6040807@hyperactivesw.com> References: <5CBDD029-7CC8-4D8B-BA5B-397C7F882B16@hyperactivesw.com> <552D3EF9.10903@fourthworld.com> <552D4519.6040807@hyperactivesw.com> Message-ID: <552D479B.50702@hyperactivesw.com> On 4/14/2015 11:23 AM, Richard Gaskin wrote: > Are there other cases where we don't really need to write the same lines > of code over and over to instantiate every object as a mobile control > that the docs suggest we do? Since all native controls are created dynamically, you do need to repeat the commands for every control you create. A library script or a shared handler is handy for that. Pass it a field reference and just call that. Do I remember right that LC is going to simplify this for us when Open Language happens? Or maybe it's a widget thing? If so, that may be why it hasn't been streamlined yet. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From roger.e.eller at sealedair.com Tue Apr 14 13:00:18 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 14 Apr 2015 13:00:18 -0400 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: <27B19799-1EEB-413A-AE59-7EDE2B8EB426@major-k.de> References: <27B19799-1EEB-413A-AE59-7EDE2B8EB426@major-k.de> Message-ID: On Tue, Apr 14, 2015 at 12:50 PM, Klaus major-k wrote: > > > Am 13.04.2015 um 18:31 schrieb Ali Lloyd : > > > > Dear list members, > > > > We are pleased to announce the release of LiveCode 8.0 DP 2. > > > > ... > > > > LiveCode 8 is in an early stage of development so we?d love to hear any > > feedback you have on it. There are a number of features that we?d like to > > implement but aren?t ready yet and the existing features are subject to > > change during development - we can?t guarantee that extensions written in > > DP1 will continue to work in later versions. > > > > Please report any bugs encountered on our Bugzilla at > > http://quality.livecode.com/ > > > > We have a forum available for discussing LiveCode Builder at > > http://forums.livecode.com/viewforum.php?f=93 > > can anyone please shed some light on how to use the new ?Icon Picker? > widget? > > The dictionary show an awsome description: "A widget to display icons for > picking? :-D > But no mention about syntax, params etc... > > Thanks! > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > It appears to work in conjunction with the Navigation Bar widget. When both are dragged onto a stack, when you click on an icon of the Navigation Bar, you can pick an icon for that spot on the bar. ~Roger From jiml at netrin.com Tue Apr 14 13:03:44 2015 From: jiml at netrin.com (Jim Lambert) Date: Tue, 14 Apr 2015 10:03:44 -0700 Subject: LiveNode Server In-Reply-To: References: Message-ID: > Mark Wilcox wrote: > > This is an interesting thread. Indeed it is. Thanks for your informative comments. Jim Lambert From roger.e.eller at sealedair.com Tue Apr 14 13:05:30 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 14 Apr 2015 13:05:30 -0400 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: References: Message-ID: I like to use a backdrop in the IDE to eliminate distractions. So I type "set backDrop to gray" in the message box. When I quit and reopen LiveCode, the backdrop defaults to black. It used to retain the last backdrop color that was set. ~Roger On Mon, Apr 13, 2015 at 12:31 PM, Ali Lloyd wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 8.0 DP 2. > > Warning: this is not a stable release. Please ensure you back up your > stacks before testing them. > > Known issues with 8.0.0 DP 2: > - The new property inspector lacks some properties present in the old > property inspector > - The supplied widgets are examples and lack features and general > robustness > - The extension builder plugin ?Test? feature fails if the widget being > tested is already installed - uninstalling the widget and restarting the > IDE should help > - All installed widgets are built into any standalones produced - this will > be addressed in DP 3 > > This release contains the following changes: > > LiveCode Builder > LiveCode Builder is a variant of the current LiveCode scripting language > (LiveCode Script) which has been designed for 'systems' building. It is > statically compiled with optional static typing and direct foreign code > interconnect (allowing easy access to APIs written in other languages). The > compiled bytecode can then be packaged together with any required resources > (icons, documentation, images, etc) into a .lce extension package. > > IDE > The property inspector has been rewritten to allow properties of widgets to > be inspected and edited. It has been implemented with flexibility and > extensibility in mind, since it must be able to control the values of > widget properties in any way required by the widget developer. > > The dictionary has been replaced, now using the CEF browser object in order > to be able to display dynamically generated content, namely the API and/or > user guide of installed widgets and libraries. > > Also we are starting to replace controls in the IDE with widgets. All the > palettes now use widgets for their headers and footers, and the variable > viewer in the debugger has been replaced by a tree view widget. > > We are aware that as the IDE undergoes this transition there may be > features you rely on which are missing or which don't function as expected. > Please report any such issues so that we can fix them as soon as possible. > > Image metadata > A new read only image property has been added to access the metadata in the > image file. > > Feature: Popup Widgets > Added the ability to use widgets within popup dialog windows. > > 50 Bug fixes: > Engine > [15056] Read from file for (x | x chars | x bytes) returns empty > [14996] LCB-Canvas: polyline path > [14961] Gradient - Quality set to "good" makes LC crash > > IDE > [15130] IDE: Extension builder should remember selected application for > opening lcb files > [15048] Extension manager displays incorrect icon for libraries > [15014] PI chokes on objects with margins property set to different numbers > [15008] Copy lci file to appropriate place when installing library > [15007] Extension Plugin: Library interface files not included in package > [14998] Extensions Plugin doesn't display resources > [14968] IDE: Message box doesn't report errors correctly > [14934] Tools palette does not generate fully on first run. > [14917] New substack of com.livecode.pi.titler > [14911] After Adding Widget, Toolbox Is The Wrong Height > [14907] Break into stack "revPaletteBehavior" > [14754] Extension Manager: All extensions show in the widgets tab whether > they are one or not when first downloaded > [14742] PI Editor: Text align > [14740] PI Editor: Custom Properties > [13475] in the openstack handler dispatching a mouseUp to a btn does not > work correctly > [13447] Project Browser control layer display > [13417] IDE systemVersion comparison no longer works with Yosemite > [13398] Sample - Book Library.livecode edit and delete features broken > [13362] Script editor opens revmenubar script when no other stack is open > [13343] Cannot install Android standalone on some devices > [13215] Can't type in output field of message box > [13191] FIX: flip graphic horizontally and vertically for complex graphics > [13159] Palettes not observing decorations under certain circumstances > [12880] File->Exit should be File->Quit > [11755] flip graphic gives erroneous results with complex graphics > > LiveCode Builder Tools > [14893] Emit warnings for identifiers that may cause problems. > [14939] Compiler truncates integer literals if too big. > [14950] Integer literal pattern is too general. > [14956] Do not warn for metadata before use. > [15029] Ensure that exit repeat works correctly in nested repeat up to / > down to / for each loops. > > LiveCode Builder Language > [14906] Change 'as ' to 'returns nothing' or 'returns ' in > handler return type definitions. > [14933] Make identifiers case-insensitive. > > LiveCode Builder Host Library > [14541] Widgets should be able to popup system menus > [14805] LCB-Canvas: close path on mPath example is incorrect > [14898] Add access to widget's effective font. > [14964] Crash when calling a handler with 'any' type parameter form LCS. > [14997] image with file accepts url prefix > [15005] Logging a list fails if its element types are not strings or > booleans > [15012] Fix OnClick and provide a way to get the number of successive > clicks. > [15035] Svg path loses data in roundtrip > [15060] Printing a card containing a widget causes a crash. > [15128] OnMouseMove doesn't fire if there is more than one widget on a > card. > [15138] Map elements inside lists to arrays correctly. > > LiveCode Builder Standard Library > [14678] Throw error on domain error in log10() and ln() > [14679] Throw error on domain error in pow() > [14681] Throw error on domain error in asin() and acos() > [14846] Fixed and reinstated "offset before" and "offset after" > [14889] Throw error when "converted from base _" fails > > LiveCode 8 is in an early stage of development so we?d love to hear any > feedback you have on it. There are a number of features that we?d like to > implement but aren?t ready yet and the existing features are subject to > change during development - we can?t guarantee that extensions written in > DP1 will continue to work in later versions. > > Please report any bugs encountered on our Bugzilla at > http://quality.livecode.com/ > > We have a forum available for discussing LiveCode Builder at > http://forums.livecode.com/viewforum.php?f=93 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Apr 14 13:06:17 2015 From: klaus at major-k.de (Klaus major-k) Date: Tue, 14 Apr 2015 19:06:17 +0200 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: References: <27B19799-1EEB-413A-AE59-7EDE2B8EB426@major-k.de> Message-ID: Hi Roger, > Am 14.04.2015 um 19:00 schrieb Roger Eller : > > On Tue, Apr 14, 2015 at 12:50 PM, Klaus major-k wrote: > >> >>> Am 13.04.2015 um 18:31 schrieb Ali Lloyd : >>> >>> Dear list members, >>> >>> We are pleased to announce the release of LiveCode 8.0 DP 2. >>> ... >> can anyone please shed some light on how to use the new ?Icon Picker? >> widget? >> >> The dictionary show an awsome description: "A widget to display icons for >> picking? :-D >> But no mention about syntax, params etc... >> >> Thanks! > It appears to work in conjunction with the Navigation Bar widget. When > both are dragged onto a stack, when you click on an icon of the Navigation > Bar, you can pick an icon for that spot on the bar. yep, thanks a lot! Looks great! Never would have thought of THAT 8-) > ~Roger Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From david at viral.academy Tue Apr 14 13:17:26 2015 From: david at viral.academy (David Bovill) Date: Tue, 14 Apr 2015 18:17:26 +0100 Subject: LiveNode Server In-Reply-To: References: Message-ID: Yes - thanks for the input Mark. How about having Livecode as a Node extension that we could install with NPM? Is that not a much easier first step? I still would like to get to the bottom of "not being fork able" means? It would be fantastic to get add Live code to a Node server with a couple of lines. Particularly for serving dynamically created images. I guess this route will also be possible when we have JavaScript export? On Tuesday, April 14, 2015, Jim Lambert wrote: > > > Mark Wilcox wrote: > > > > This is an interesting thread. > > > Indeed it is. Thanks for your informative comments. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Tue Apr 14 14:20:32 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 14 Apr 2015 11:20:32 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: On Sat, Apr 11, 2015 at 5:26 PM, Scott Rossi wrote: > If you set the passkey of the protected stack (to the password) before > copying, you should be able to copy what you want > This is getting infuriating . . . what *is* the scope of the passkey? I've tried setting it during stack initialization, even dumbing the password down to "abc", and I'm still getting the "can't cut" error. Do I need to be setting it before every copy? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From ali at runrev.com Tue Apr 14 14:38:46 2015 From: ali at runrev.com (Ali Lloyd) Date: Tue, 14 Apr 2015 19:38:46 +0100 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: References: <27B19799-1EEB-413A-AE59-7EDE2B8EB426@major-k.de> Message-ID: Hi Klaus, As Roger noticed, the icon picker widget is meant to be used with the LCB syntax "popup widget" to return the name of an icon, whose SVG path can then be obtained using the iconSVGPathFromName function in the iconSVG library. It is not particularly useful as a widget in its own right, except for seeing what icons are available (essentially just fontawesome). The Navigation Bar widget is in something of an experimental state, whereby it has an editMode property - when true you can click on the icons and change them, and add a 'nav item', and then with editMode false it changes to a more user-oriented display. From klaus at major-k.de Tue Apr 14 14:42:24 2015 From: klaus at major-k.de (Klaus major-k) Date: Tue, 14 Apr 2015 20:42:24 +0200 Subject: Release: LiveCode 8.0.0 DP 2 In-Reply-To: References: <27B19799-1EEB-413A-AE59-7EDE2B8EB426@major-k.de> Message-ID: <71C7D862-4DD3-4168-AA1B-F3C5895E35A5@major-k.de> Hi Ali, > Am 14.04.2015 um 20:38 schrieb Ali Lloyd : > > Hi Klaus, > As Roger noticed, the icon picker widget is meant to be used with the LCB > syntax "popup widget" to return the name of an icon, whose SVG path can > then be obtained using the iconSVGPathFromName function in the iconSVG > library. It is not particularly useful as a widget in its own right, except > for seeing what icons are available (essentially just fontawesome). > > The Navigation Bar widget is in something of an experimental state, whereby > it has an editMode property - when true you can click on the icons and > change them, and add a 'nav item', and then with editMode false it changes > to a more user-oriented display. thanks for the detailed info! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mark at sorcery-ltd.co.uk Tue Apr 14 14:44:17 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Tue, 14 Apr 2015 19:44:17 +0100 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: Message-ID: Apple added another exception to the code downloading rule, using JavaScriptCore you can download JavaScript and run it. So it probably is just a WebView but it doesn't have to be. Sent from my iPhone > On 14 Apr 2015, at 17:24, Geoff Canyon wrote: > > No idea. Their basic projects don't have "code" -- just a bunch of > properties that include things like "when this happens, do this," but then > you can open the project up and write javascript. Maybe the end result is a > specialized web page? I'll experiment more. > > gc > >> On Tue, Apr 14, 2015 at 10:56 AM, Dr. Hawkins wrote: >> >>> On Tue, Apr 14, 2015 at 8:17 AM, Geoff Canyon wrote: >>> >>> >>> If they can do it, shouldn't LC be able to as well? Or is there something >>> I'm not thinking of? >> >> How are they getting past Apple's ban on downloading code??? >> >> >> -- >> Dr. Richard E. Hawkins, Esq. >> (702) 508-8462 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stgoldberg at aol.com Tue Apr 14 14:51:33 2015 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Tue, 14 Apr 2015 14:51:33 -0400 Subject: New LiveCode book Message-ID: <14cb945ae9e-144c-1c586@webprd-m99.mail.aol.com> Ray Horsley wrote: Date: Tue, 14 Apr 2015 13:15:34 -0400 >Stephen, >I'd love to take a look at your book but I'm >getting a 403 error, >"access is forbidden" as I click the link below. I'm in >Granada, Spain i>f that makes a difference. Any suggestions? The corrected URL for download of LiveCode Lite: Computer Programming Made Ridiculously SImple is www.medmaster.net/livecode.html Stephen Goldberg stgoldberg at aol.com From mark at sorcery-ltd.co.uk Tue Apr 14 15:00:50 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Tue, 14 Apr 2015 20:00:50 +0100 Subject: LiveNode Server In-Reply-To: References: Message-ID: <3F7B60B8-713C-4655-9A0A-1F052D384644@sorcery-ltd.co.uk> > On 14 Apr 2015, at 18:17, David Bovill wrote: > > Yes - thanks for the input Mark. > > How about having Livecode as a Node extension that we could install with > NPM? Is that not a much easier first step? I still would like to get to the > bottom of "not being fork able" means? Unless you want to ban most of the language then you'd still have to replace or integrate the event loop with libuv, which is probably not a small or easy job. If a future LiveCode has a more modular core you might be able to take just the bits you need. > > It would be fantastic to get add Live code to a Node server with a couple > of lines. Particularly for serving dynamically created images. I guess this > route will also be possible when we have JavaScript export? > I think it would be possible with JavaScript export but that's a very heavyweight solution. Dynamically creating images is the sort of processor intensive task where Node performs badly. It would probably make more sense to have a separate LiveCode executable that can run in another process on another CPU core on the same server. You could signal it via sockets from the Node server, or even just communicate via the file system. >> On Tuesday, April 14, 2015, Jim Lambert wrote: >> >> >>> Mark Wilcox wrote: >>> >>> This is an interesting thread. >> >> >> Indeed it is. Thanks for your informative comments. >> >> Jim Lambert >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Tue Apr 14 15:03:34 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 14 Apr 2015 15:03:34 -0400 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: Message-ID: That?s interesting to know about. Another factor may be the $30 you have to pay to remove apps. That?s $9 to Apple for each user who does that. From scott at tactilemedia.com Tue Apr 14 15:03:58 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 14 Apr 2015 12:03:58 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: There shouldn't be anything infuriating about it. You have a password protected stack. You set the passkey of that stack to your password value. You should then be able to access/copy objects from that stack. The passkey stays in effect for the current editing session. When you close stack (or otherwise remove it from memory), your stack contents should not be accessible the next time you open stack. Passkey is temporary, password is persistent. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/14/15, 11:20 AM, "Dr. Hawkins" wrote: >On Sat, Apr 11, 2015 at 5:26 PM, Scott Rossi >wrote: > >> If you set the passkey of the protected stack (to the password) before >> copying, you should be able to copy what you want >> > >This is getting infuriating . . . > > what *is* the scope of the passkey? > >I've tried setting it during stack initialization, even dumbing the >password down to "abc", and I'm still getting the "can't cut" error. > >Do I need to be setting it before every copy? > > >-- >Dr. Richard E. Hawkins, Esq. >(702) 508-8462 >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Apr 14 15:55:34 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 14 Apr 2015 14:55:34 -0500 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: Message-ID: Interesting, I didn't know that. On Tue, Apr 14, 2015 at 1:44 PM, Mark Wilcox wrote: > Apple added another exception to the code downloading rule, using > JavaScriptCore you can download JavaScript and run it. So it probably is > just a WebView but it doesn't have to be. > > Sent from my iPhone > > > On 14 Apr 2015, at 17:24, Geoff Canyon wrote: > > > > No idea. Their basic projects don't have "code" -- just a bunch of > > properties that include things like "when this happens, do this," but > then > > you can open the project up and write javascript. Maybe the end result > is a > > specialized web page? I'll experiment more. > > > > gc > > > >> On Tue, Apr 14, 2015 at 10:56 AM, Dr. Hawkins > wrote: > >> > >>> On Tue, Apr 14, 2015 at 8:17 AM, Geoff Canyon > wrote: > >>> > >>> > >>> If they can do it, shouldn't LC be able to as well? Or is there > something > >>> I'm not thinking of? > >> > >> How are they getting past Apple's ban on downloading code??? > >> > >> > >> -- > >> Dr. Richard E. Hawkins, Esq. > >> (702) 508-8462 > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Tue Apr 14 16:50:00 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 14 Apr 2015 13:50:00 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: On Tue, Apr 14, 2015 at 12:03 PM, Scott Rossi wrote: > There shouldn't be anything infuriating about it. > > You have a password protected stack. You set the passkey of that stack to > your password value. You should then be able to access/copy objects from > that stack. > but that doesn't seem to be the case for me. on mouseUp answer "in the button scrpt" & cr & exists (stack "rawForms") set the passkey of stack "rawForms" to "blahBlahBlah" answer the result send "yeehaw2" to stack "rawForms" answer "yeehaw2 sent" end mouseUp the first answer confirms "true" for the existence. THe next line causes " an error occurred on line 0 558,0,0, 535,3,1 241,3,1, mouseup 353,0,0, > The passkey stays in effect for the current editing session. When you > close stack (or otherwise remove it from memory), your stack contents > should not be accessible the next time you open stack. Passkey is > temporary, password is persistent. > I'm only setting the password itself in the Standalone Application Settings window, if that matters, so the problem ony happens once I make a standaone. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From scott at tactilemedia.com Tue Apr 14 17:09:24 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 14 Apr 2015 14:09:24 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: Does it work for you in the IDE? Also, you're not using the Community Edition are you? You can't password protect with that version of LiveCode even though it shows the option in the Standalone Builder. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/14/15, 1:50 PM, "Dr. Hawkins" wrote: >On Tue, Apr 14, 2015 at 12:03 PM, Scott Rossi >wrote: > >> There shouldn't be anything infuriating about it. >> >> You have a password protected stack. You set the passkey of that stack >>to >> your password value. You should then be able to access/copy objects >>from >> that stack. >> > >but that doesn't seem to be the case for me. > >on mouseUp > answer "in the button scrpt" & cr & exists (stack "rawForms") > set the passkey of stack "rawForms" to "blahBlahBlah" > answer the result > send "yeehaw2" to stack "rawForms" > answer "yeehaw2 sent" >end mouseUp > > the first answer confirms "true" for the existence. > >THe next line causes " >an error occurred on line 0 > >558,0,0, >535,3,1 >241,3,1, mouseup >353,0,0, > > >> The passkey stays in effect for the current editing session. When you >> close stack (or otherwise remove it from memory), your stack contents >> should not be accessible the next time you open stack. Passkey is >> temporary, password is persistent. >> > > >I'm only setting the password itself in the Standalone Application >Settings >window, if that matters, so the problem ony happens once I make a >standaone. > > > >-- >Dr. Richard E. Hawkins, Esq. >(702) 508-8462 >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Tue Apr 14 17:18:55 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 14 Apr 2015 23:18:55 +0200 Subject: [ANN] Installer Maker 1.8.8 Message-ID: Dear Livecode users, Economy-x-Talk released Installer Maker 1.8.8 today. This is a maintenance release, which accepts recently issued license keys. We have also removed a spurious error message from the Uninstaller. This update is free for everyone who bought a license after 1 November 2014. This is an update for OSX and Windows. Let me know if you have an urgent need for a Linux version. You can download the Installer Maker plug-in for LiveCode (commercial version) at http://rrinstallermaker.economy-x-talk.com The standalone version of Installer Maker can be found at http://installermaker.economy-x-talk.com -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. From dochawk at gmail.com Tue Apr 14 17:31:34 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 14 Apr 2015 14:31:34 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: On Tue, Apr 14, 2015 at 2:09 PM, Scott Rossi wrote: > Does it work for you in the IDE? > Yes. However, the password only gets set at compile time. > Also, you're not using the Community Edition are you? > *shudder*, no. Far too much work into this to risk GPL contamination/taiint of my code. > > -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Tue Apr 14 17:50:28 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 14 Apr 2015 14:50:28 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: Error 558 is "stack: invalid key". Not much help but perhaps the passkey you're supplying isn't the correct one? Not likely I guess since it apparently works in the IDE. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 14, 2015 at 1:50 PM, Dr. Hawkins wrote: > On Tue, Apr 14, 2015 at 12:03 PM, Scott Rossi > wrote: > > > There shouldn't be anything infuriating about it. > > > > You have a password protected stack. You set the passkey of that stack > to > > your password value. You should then be able to access/copy objects from > > that stack. > > > > but that doesn't seem to be the case for me. > > on mouseUp > answer "in the button scrpt" & cr & exists (stack "rawForms") > set the passkey of stack "rawForms" to "blahBlahBlah" > answer the result > send "yeehaw2" to stack "rawForms" > answer "yeehaw2 sent" > end mouseUp > > the first answer confirms "true" for the existence. > > THe next line causes " > an error occurred on line 0 > > 558,0,0, > 535,3,1 > 241,3,1, mouseup > 353,0,0, > > > > The passkey stays in effect for the current editing session. When you > > close stack (or otherwise remove it from memory), your stack contents > > should not be accessible the next time you open stack. Passkey is > > temporary, password is persistent. > > > > > I'm only setting the password itself in the Standalone Application Settings > window, if that matters, so the problem ony happens once I make a > standaone. > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Tue Apr 14 18:06:37 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 14 Apr 2015 18:06:37 -0400 Subject: apns windows Message-ID: did anybody ever get apns to work from windows? I have always run into a problem with not being able to send the signal to the server that we're done, and I finally gave up, but now it would be nice to be able to make it work, again, instead of having to do it all from a Mac. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dochawk at gmail.com Tue Apr 14 21:17:21 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 14 Apr 2015 18:17:21 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: On Tue, Apr 14, 2015 at 2:50 PM, Peter Haworth wrote: > Error 558 is "stack: invalid key". Not much help but perhaps the passkey > you're supplying isn't the correct one? Not likely I guess since it > apparently works in the IDE. > There is no password set in the IDE; it's all at compile time. However, where can I find the list of those codes, and what that error box means in general? thanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Tue Apr 14 21:26:37 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 14 Apr 2015 18:26:37 -0700 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: The first item of each line refers to a line number in an error messages table. The table is in the cErrorsList custom property of card 1 of stack revErrorDisplay. Sounds like you set the encrypt with password field in the standalone settings. Make sure you do that for every stack you want to be encrypted. Unless there's a bug somewhere in the decryption routines, it still feels like the passkey you are supplying is not the same one you specified in the standalone settings. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 14, 2015 at 6:17 PM, Dr. Hawkins wrote: > On Tue, Apr 14, 2015 at 2:50 PM, Peter Haworth wrote: > > > Error 558 is "stack: invalid key". Not much help but perhaps the passkey > > you're supplying isn't the correct one? Not likely I guess since it > > apparently works in the IDE. > > > > There is no password set in the IDE; it's all at compile time. > > However, where can I find the list of those codes, and what that error box > means in general? > > thanks > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Apr 14 21:59:08 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Apr 2015 20:59:08 -0500 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: <552DC5EC.7070706@hyperactivesw.com> On 4/14/2015 8:17 PM, Dr. Hawkins wrote: > However, where can I find the list of those codes, and what that error box > means in general? User Sample Stacks (in the toolbar) -> LC Error Lookup or here: Or make your own, the location of the error codes is listed in the ErrorDialog entry in the dictionary. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Apr 14 22:01:25 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 14 Apr 2015 21:01:25 -0500 Subject: copying from password protected substacks In-Reply-To: References: <5529A765.3070000@economy-x-talk.com> Message-ID: <552DC675.7030700@hyperactivesw.com> On 4/14/2015 8:26 PM, Peter Haworth wrote: > Unless there's a bug somewhere in the decryption routines, it still feels > like the passkey you are supplying is not the same one you specified in the > standalone settings. That's what it sounds like to me too. I wonder how the standalone builder handles that. Maybe it uses a different kind of encryption than a plain passworded stack uses. That sounds unlikely, but setting the passkey should work otherwise. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pmbrig at gmail.com Tue Apr 14 22:37:55 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 14 Apr 2015 22:37:55 -0400 Subject: copying from password protected substacks In-Reply-To: <552DC5EC.7070706@hyperactivesw.com> References: <5529A765.3070000@economy-x-talk.com> <552DC5EC.7070706@hyperactivesw.com> Message-ID: <01E773C8-92BC-42A9-A1DF-CA797FC58FE6@gmail.com> You can use this: function expandError pErr -- expands LC runtime error numbers, with explanatory text -- probably based on a handler from someone on the use-LC list, not sure who -- revised by Peter M. Brigham, pmbrig at gmail.com ? freeware -- requires sr() repeat for each line e in pErr put item 1 of e into errNbr put item 2 of e into tLineNbr put item 3 of e into tCharNbr put item 4 to -1 of e into tHint put "? line" && tLineNbr & "," && "char" && tCharNbr & ": " into tErrMsg put "error #" & errNbr & ", " after tErrMsg put sr(line errNbr of the cErrorsList of card 1 of stack "revErrorDisplay") \ after tErrMsg if tHint <> empty then put " ? hint:" && tHint after tErrMsg end if put tErrMsg & cr after errorlist end repeat return sr(errorlist) end expandError function sr str -- sr = "strip returns" -- actually, strips all white space fore and aft -- place this handler in a library stack, -- where it will be available everywhere return word 1 to -1 of str end sr -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 14, 2015, at 9:59 PM, J. Landman Gay wrote: > On 4/14/2015 8:17 PM, Dr. Hawkins wrote: >> However, where can I find the list of those codes, and what that error box >> means in general? > > User Sample Stacks (in the toolbar) -> LC Error Lookup > > or here: > > > > Or make your own, the location of the error codes is listed in the ErrorDialog entry in the dictionary. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Tue Apr 14 22:54:19 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 14 Apr 2015 19:54:19 -0700 Subject: copying from password protected substacks In-Reply-To: <552DC675.7030700@hyperactivesw.com> References: <5529A765.3070000@economy-x-talk.com> <552DC675.7030700@hyperactivesw.com> Message-ID: Right. I'm still not sure in my mind whether "encryption" is the same thing as password protecting a stack. I've only ever used the latter. Anybody know? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 14, 2015 at 7:01 PM, J. Landman Gay wrote: > On 4/14/2015 8:26 PM, Peter Haworth wrote: > >> Unless there's a bug somewhere in the decryption routines, it still feels >> like the passkey you are supplying is not the same one you specified in >> the >> standalone settings. >> > > That's what it sounds like to me too. I wonder how the standalone builder > handles that. Maybe it uses a different kind of encryption than a plain > passworded stack uses. That sounds unlikely, but setting the passkey should > work otherwise. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Apr 14 23:18:26 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 14 Apr 2015 20:18:26 -0700 Subject: copying from password protected substacks In-Reply-To: References: Message-ID: <552DD882.9080104@fourthworld.com> Peter Haworth wrote: > I'm still not sure in my mind whether "encryption" is the same thing > as password protecting a stack. I've only ever used the latter. > Anybody know? AFAIK there is only one form of script encryption, set with the password property and unlocked during the session with the passkey property. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Wed Apr 15 04:39:13 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Apr 2015 11:39:13 +0300 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: Message-ID: <552E23B1.5050404@gmail.com> On 14/04/15 18:17, Geoff Canyon wrote: > PencilCase has a player app on iOS > so you can: > > 1. Design your app on a Mac > 2. Upload it to their system and get a code > 3. Give that code to anyone > 4. Anyone can install the PencilCase iOS app > 5. Anyone can put in your code to run your app immediately. > > If they can do it, shouldn't LC be able to as well? Or is there something > I'm not thinking of? > _______________________________________________ > A few questions: 1. "upload it to their system": well, who are 'they'? 2. "Anyone can install the PencilCase iOS app": really? I'll try on my G3 iMac running Mac OS 9. 2.1. "Anyone can install the PencilCase iOS app": really? I'll try on my iPad 1. Your "anyone" is about as good as Marie Antoinette's "Let them eat cake". WHY should LC be able to do "that:? The whole thing looks awfully restrictive and end-users (apart from being dependent on a iPad) need to install PencilCase. Now LC can distribute STANDALONES to all sorts of platforms. To my mind LC looks like a better bet. Richmond. From richmondmathewson at gmail.com Wed Apr 15 04:43:21 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Apr 2015 11:43:21 +0300 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: Message-ID: <552E24A9.8070608@gmail.com> On 14/04/15 18:56, Dr. Hawkins wrote: > On Tue, Apr 14, 2015 at 8:17 AM, Geoff Canyon wrote: > >> If they can do it, shouldn't LC be able to as well? Or is there something >> I'm not thinking of? >> > How are they getting past Apple's ban on downloading code??? > > Why are so many people scared of spending 15 minutes jail-breaking their iPad so that they don't have to do what Big Brother Apple [slightly ironic considering their '1984' advert] tells them they can and cannot do with something they own? Next thing will be when some company says I cannot use toilet tissue for cleaning my spectacles, and, maybe, even gets me to sign a EULA to that effect. The whole thing with the iPad stinks to high heaven of restrictive practises. So, the more ways there are of getting past Apple's ban the better. Richmond. From richmondmathewson at gmail.com Wed Apr 15 04:57:21 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Apr 2015 11:57:21 +0300 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: Message-ID: <552E27F1.103@gmail.com> On 14/04/15 22:03, Colin Holgate wrote: > That?s interesting to know about. Another factor may be the $30 you have to pay to remove apps. That?s $9 to Apple for each user who does that. > > > Wow! Apple really get worse and worse: that is mind-blowing. Richmond. From ray at linkit.com Wed Apr 15 17:30:31 2015 From: ray at linkit.com (Ray) Date: Wed, 15 Apr 2015 17:30:31 -0400 Subject: Custom Desktop Folders In-Reply-To: References: Message-ID: <552ED877.7070902@LinkIt.Com> Does anybody know of a way, from within Livecode, to create a folder and give it it's own custom display on the desktop? I'd imagine this would be done with an .ico file. I'd like to do this for both Mac and Windows. I've looked through the RunRev store and haven't found any extensions which do this. Maybe through a command-line somebody has written? From gcanyon at gmail.com Wed Apr 15 11:58:05 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 15 Apr 2015 10:58:05 -0500 Subject: Why can't LC do what PencilCase does? In-Reply-To: <552E23B1.5050404@gmail.com> References: <552E23B1.5050404@gmail.com> Message-ID: On Wed, Apr 15, 2015 at 3:39 AM, Richmond wrote: > On 14/04/15 18:17, Geoff Canyon wrote: > >> PencilCase has a player app on iOS >> so you can: >> >> >> 1. Design your app on a Mac >> 2. Upload it to their system and get a code >> 3. Give that code to anyone >> 4. Anyone can install the PencilCase iOS app >> 5. Anyone can put in your code to run your app immediately. >> >> If they can do it, shouldn't LC be able to as well? Or is there something >> I'm not thinking of? >> _______________________________________________ >> >> > A few questions: > > 1. "upload it to their system": well, who are 'they'? > The PencilCase team. > > 2. "Anyone can install the PencilCase iOS app": really? I'll try on my G3 > iMac running Mac OS 9. > It's an iOS app, as I stated, so I'm not sure what your objection is. > > 2.1. "Anyone can install the PencilCase iOS app": really? I'll try on my > iPad 1. > This is a more reasonable objection, but the installed base of iPad 1s is what percent of the total market at this point? > > Your "anyone" is about as good as Marie Antoinette's "Let them eat cake". > This seems like pointless criticism. Did I offend you somehow? > > WHY should LC be able to do "that:? The whole thing looks awfully > restrictive > and end-users (apart from being dependent on a iPad) need to install > PencilCase. > Because it makes testing your iOS app almost trivial. In comparison to the many hoops to jump through that iOS imposes in general. > Now LC can distribute STANDALONES to all sorts of platforms. > PencilCase can create standalones as well. I was just curious about whether something had changed such that a LiveCode player app, which would make testing stacks on iOS much much easier, was possible. > To my mind LC looks like a better bet. I'm not comparing the two, I'm just curious about this bit of functionality because it seems like something that, technically, LC is well capable of. From frankdmartinez at gmail.com Wed Apr 15 12:17:50 2015 From: frankdmartinez at gmail.com (Frank) Date: Wed, 15 Apr 2015 12:17:50 -0400 Subject: Why can't LC do what PencilCase does? In-Reply-To: <552E27F1.103@gmail.com> References: <552E27F1.103@gmail.com> Message-ID: If PencilCase is doing the charging, how is that Apple's fault? On 15 April 2015 at 04:57, Richmond wrote: > On 14/04/15 22:03, Colin Holgate wrote: > >> That's interesting to know about. Another factor may be the $30 you have >> to pay to remove apps. That's $9 to Apple for each user who does that. >> >> >> >> > Wow! Apple really get worse and worse: that is mind-blowing. > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- P.S.: I prefer to be reached on BitMessage at BM-2D8txNiU7b84d2tgqvJQdgBog6A69oDAx6 From frankdmartinez at gmail.com Wed Apr 15 12:19:45 2015 From: frankdmartinez at gmail.com (Frank) Date: Wed, 15 Apr 2015 12:19:45 -0400 Subject: Why can't LC do what PencilCase does? In-Reply-To: <552E24A9.8070608@gmail.com> References: <552E24A9.8070608@gmail.com> Message-ID: "so that they don't have to do what Big Brother Apple [slightly ironic considering their '1984' advert] tells them they can and cannot do with something they own" -- Uh, not to burst Your bubble but Apple doesn't tell People what "they can and cannot do with something they own"; Apple only says, "If You do 'A', 'B', or 'C', We will not provide support for Your device." On 15 April 2015 at 04:43, Richmond wrote: > On 14/04/15 18:56, Dr. Hawkins wrote: > >> On Tue, Apr 14, 2015 at 8:17 AM, Geoff Canyon wrote: >> >> If they can do it, shouldn't LC be able to as well? Or is there something >>> I'm not thinking of? >>> >>> How are they getting past Apple's ban on downloading code??? >> >> >> > Why are so many people scared of spending 15 minutes jail-breaking their > iPad so that they > don't have to do what Big Brother Apple [slightly ironic considering their > '1984' advert] tells > them they can and cannot do with something they own? > > Next thing will be when some company says I cannot use toilet tissue for > cleaning my spectacles, > and, maybe, even gets me to sign a EULA to that effect. > > The whole thing with the iPad stinks to high heaven of restrictive > practises. > > So, the more ways there are of getting past Apple's ban the better. > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- P.S.: I prefer to be reached on BitMessage at BM-2D8txNiU7b84d2tgqvJQdgBog6A69oDAx6 From scott at tactilemedia.com Wed Apr 15 12:23:15 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 15 Apr 2015 09:23:15 -0700 Subject: New Way To Deal With Custom Fonts on iOS? In-Reply-To: <9920AC0D-10FD-4655-96E9-856EB4502572@icloud.com> References: <9920AC0D-10FD-4655-96E9-856EB4502572@icloud.com> Message-ID: Thanks Chris. The bug report is mostly about time to load, but yes it seems somewhat related. The main issue is there's some disconnect between what the fontNames function reports and what is needed by the system for fonts to render properly. To apply a font name, the basic approach seems to be to put the core name of the font into a string, followed by a single hyphen and any style/s, and remove spaces from string (shown below). There are several exceptions though, such as Arial which is listed as "Arial" in the fontNames but is actually "ArialMT" on the device. There are roughly dozen or so of these exceptions, and to further complicate matters, there's at least one case where "condensed" is part of the font's name, as opposed to being a style. There is no way to make this differentiation programmatically. I wrote a font name formatting routine which works about 90% of the time, but then realized it's probably easier just to go with an established reference, like the one here: http://iosfonts.com/ In any event, the fontNames needs to be fixed, because trying to figure out the naming for any custom installed font still requires trial and error. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/14/15, 7:18 AM, "Chris Sheffield" wrote: >Scott, > >Could this possibly be related to this issue bug 14116 >? > >Mark W. stated in a comment there that the screen loading times may have >something to do with a change in the way that fonts were handled between >LC 6.6 and LC 6.7. I wonder if the issue you described is related >somehow. Maybe it?s also caused by this change to using CoreText in iOS. >Specifically, see his comment from February 27. > >Chris > > > >> On Apr 14, 2015, at 1:27 AM, Scott Rossi wrote: >> >> Hi All: >> >> I just spent two hours with a colleague trying to track down why a >>custom >> font wasn't rendering correctly on iOS, and apparently it seems that >> something changed with either the way LiveCode 7 or iOS 8 handles font >> names. >> >> It used to be that grabbing the installed name of a font on iOS was all >> that was needed to get a custom font to work, but now it seems one has >>to >> manually combine the font name and any desired style/s into a string >> separated by a dash: >> >> Installed name = American Typewriter Condensed Bold >> becomes -------> AmericanTypewriter-CondensedBold >> >> I know about the fontStyles function, but that only appears to return >> available styles for font, it doesn't return a properly formatted >>fontName. >> >> Looking up font related terms/issues in the docs, forums, and mail list >>I >> haven't seen any reference to this anywhere. Is this documented, and >>even >> more importantly, is there a function or script to automate this so we >> don't have to maintain a stored list of styles and compare/replace words >> in the font name? >> >> I'm also worried about what caused this change: is this a LiveCode >>change >> or an iOS change? An iOS change would seem to mean that we need to code >> around the system version to handle older versions of iOS. >> >> Thanks for any info/advice here. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Wed Apr 15 12:34:14 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 15 Apr 2015 12:34:14 -0400 Subject: Custom Desktop Folders In-Reply-To: <552ED877.7070902@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> Message-ID: Thus far, there is no way to create OS specific icon files within LiveCode, but I have always thought there should be. You have to use Photoshop, Gimp, or other custom icon software to create icons that contain all the various resolutions required by each OS. How about a widget for that, RunRev? ~Roger On Wed, Apr 15, 2015 at 5:30 PM, Ray wrote: > Does anybody know of a way, from within Livecode, to create a folder and > give it it's own custom display on the desktop? I'd imagine this would be > done with an .ico file. I'd like to do this for both Mac and Windows. > > I've looked through the RunRev store and haven't found any extensions > which do this. Maybe through a command-line somebody has written? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Wed Apr 15 12:37:22 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Apr 2015 19:37:22 +0300 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: <552E27F1.103@gmail.com> Message-ID: <552E93C2.3020106@gmail.com> On 15/04/15 19:17, Frank wrote: > If PencilCase is doing the charging, how is that Apple's fault? That wasn't clear from the previous post. And if PencilCase are doing the charging (for uninstalling) that's at least one good reason not to do anything with it. Richmond. > > On 15 April 2015 at 04:57, Richmond wrote: > >> On 14/04/15 22:03, Colin Holgate wrote: >> >>> That's interesting to know about. Another factor may be the $30 you have >>> to pay to remove apps. That's $9 to Apple for each user who does that. >>> >>> >>> >>> >> Wow! Apple really get worse and worse: that is mind-blowing. >> >> Richmond. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From richmondmathewson at gmail.com Wed Apr 15 12:38:17 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Apr 2015 19:38:17 +0300 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: <552E24A9.8070608@gmail.com> Message-ID: <552E93F9.3000202@gmail.com> On 15/04/15 19:19, Frank wrote: > "so that they don't have to do what Big Brother Apple [slightly ironic > considering their '1984' advert] tells them they can and cannot do with > something they own" -- Uh, not to burst Your bubble but Apple doesn't tell > People what "they can and cannot do with something they own"; Apple only > says, "If You do 'A', 'B', or 'C', We will not provide support for Your > device." UM . . . what's a EULA ? Richmond. > > On 15 April 2015 at 04:43, Richmond wrote: > >> On 14/04/15 18:56, Dr. Hawkins wrote: >> >>> On Tue, Apr 14, 2015 at 8:17 AM, Geoff Canyon wrote: >>> >>> If they can do it, shouldn't LC be able to as well? Or is there something >>>> I'm not thinking of? >>>> >>>> How are they getting past Apple's ban on downloading code??? >>> >>> >> Why are so many people scared of spending 15 minutes jail-breaking their >> iPad so that they >> don't have to do what Big Brother Apple [slightly ironic considering their >> '1984' advert] tells >> them they can and cannot do with something they own? >> >> Next thing will be when some company says I cannot use toilet tissue for >> cleaning my spectacles, >> and, maybe, even gets me to sign a EULA to that effect. >> >> The whole thing with the iPad stinks to high heaven of restrictive >> practises. >> >> So, the more ways there are of getting past Apple's ban the better. >> >> Richmond. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From colinholgate at gmail.com Wed Apr 15 12:44:21 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 15 Apr 2015 12:44:21 -0400 Subject: Why can't LC do what PencilCase does? In-Reply-To: <552E93C2.3020106@gmail.com> References: <552E27F1.103@gmail.com> <552E93C2.3020106@gmail.com> Message-ID: <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> Just looking at what I wrote, and an autocorrection in my message will have caused much confusion! The $30 is to remove ?ads?, not ?apps?. > On Apr 15, 2015, at 12:37 PM, Richmond wrote: > > On 15/04/15 19:17, Frank wrote: >> If PencilCase is doing the charging, how is that Apple's fault? > > That wasn't clear from the previous post. > > And if PencilCase are doing the charging (for uninstalling) that's at least one good reason > not to do anything with it. > > Richmond. >> >> On 15 April 2015 at 04:57, Richmond wrote: >> >>> On 14/04/15 22:03, Colin Holgate wrote: >>> >>>> That's interesting to know about. Another factor may be the $30 you have >>>> to pay to remove apps. That's $9 to Apple for each user who does that. >>>> >>>> >>>> >>>> >>> Wow! Apple really get worse and worse: that is mind-blowing. >>> >>> Richmond. >>> From m.schonewille at economy-x-talk.com Wed Apr 15 12:56:31 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 15 Apr 2015 18:56:31 +0200 Subject: Custom Desktop Folders In-Reply-To: <552ED877.7070902@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> Message-ID: <552E983F.6000002@economy-x-talk.com> Hi Ray, Make a text file with Notepad. Save it in the folder as Desktop.ini. Use the following settings: [.ShellClassInfo] IconFile=Folder.ico IconIndex=0 InfoTip=Some sensible information. -- 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 4/15/2015 23:30, Ray wrote: > Does anybody know of a way, from within Livecode, to create a folder > and give it it's own custom display on the desktop? I'd imagine this > would be done with an .ico file. I'd like to do this for both Mac and > Windows. > > I've looked through the RunRev store and haven't found any extensions > which do this. Maybe through a command-line somebody has written? From richmondmathewson at gmail.com Wed Apr 15 13:02:26 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 15 Apr 2015 20:02:26 +0300 Subject: Why can't LC do what PencilCase does? In-Reply-To: <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> References: <552E27F1.103@gmail.com> <552E93C2.3020106@gmail.com> <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> Message-ID: <552E99A2.4030807@gmail.com> On 15/04/15 19:44, Colin Holgate wrote: > Just looking at what I wrote, and an autocorrection in my message will have caused much confusion! The $30 is to remove ?ads?, not ?apps?. Thanks: Thee and Me look like bananas both :) Richmond. > > > >> On Apr 15, 2015, at 12:37 PM, Richmond wrote: >> >> On 15/04/15 19:17, Frank wrote: >>> If PencilCase is doing the charging, how is that Apple's fault? >> That wasn't clear from the previous post. >> >> And if PencilCase are doing the charging (for uninstalling) that's at least one good reason >> not to do anything with it. >> >> Richmond. >>> On 15 April 2015 at 04:57, Richmond wrote: >>> >>>> On 14/04/15 22:03, Colin Holgate wrote: >>>> >>>>> That's interesting to know about. Another factor may be the $30 you have >>>>> to pay to remove apps. That's $9 to Apple for each user who does that. >>>>> >>>>> >>>>> >>>>> >>>> Wow! Apple really get worse and worse: that is mind-blowing. >>>> >>>> Richmond. >>>> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Apr 15 13:15:14 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 15 Apr 2015 12:15:14 -0500 Subject: Why can't LC do what PencilCase does? In-Reply-To: <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> References: <552E27F1.103@gmail.com> <552E93C2.3020106@gmail.com> <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> Message-ID: On Wed, Apr 15, 2015 at 11:44 AM, Colin Holgate wrote: > Just looking at what I wrote, and an autocorrection in my message will > have caused much confusion! The $30 is to remove ?ads?, not ?apps?. My brain auto-corrected that back to "ads." :-) From pete at lcsql.com Wed Apr 15 13:25:07 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 15 Apr 2015 10:25:07 -0700 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: <552E27F1.103@gmail.com> <552E93C2.3020106@gmail.com> <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> Message-ID: Surely autocorrect is one of THE worst things to come out of the computer ape!!!! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 15, 2015 at 10:15 AM, Geoff Canyon wrote: > On Wed, Apr 15, 2015 at 11:44 AM, Colin Holgate > wrote: > > > Just looking at what I wrote, and an autocorrection in my message will > > have caused much confusion! The $30 is to remove ?ads?, not ?apps?. > > > My brain auto-corrected that back to "ads." :-) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Wed Apr 15 13:25:47 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 15 Apr 2015 10:25:47 -0700 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: <552E27F1.103@gmail.com> <552E93C2.3020106@gmail.com> <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> Message-ID: Perfect!!! that should have been "age" not "ape". Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 15, 2015 at 10:25 AM, Peter Haworth wrote: > Surely autocorrect is one of THE worst things to come out of the computer > ape!!!! > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Apr 15, 2015 at 10:15 AM, Geoff Canyon wrote: > >> On Wed, Apr 15, 2015 at 11:44 AM, Colin Holgate >> wrote: >> >> > Just looking at what I wrote, and an autocorrection in my message will >> > have caused much confusion! The $30 is to remove ?ads?, not ?apps?. >> >> >> My brain auto-corrected that back to "ads." :-) >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > From ray at linkit.com Wed Apr 15 19:34:29 2015 From: ray at linkit.com (Ray) Date: Wed, 15 Apr 2015 19:34:29 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> Message-ID: <552EF585.6080006@LinkIt.Com> Thanks Roger. I can supply the .ico file I intend to use so the question isn't really how to /create /the .ico file from within Livecode, it's how to assign the .ico file to the folder so the folder displays it on the desktop. I can do this /manually /on Windows. Right-click, choose Properties, click the Custom tab and the click Choose File in the Folder Pictures section. This is what I want to do from within Livecode. On 4/15/2015 12:34 PM, Roger Eller wrote: > Thus far, there is no way to create OS specific icon files within LiveCode, > but I have always thought there should be. You have to use Photoshop, > Gimp, or other custom icon software to create icons that contain all the > various resolutions required by each OS. > > How about a widget for that, RunRev? > > ~Roger > > > > > On Wed, Apr 15, 2015 at 5:30 PM, Ray wrote: > >> Does anybody know of a way, from within Livecode, to create a folder and >> give it it's own custom display on the desktop? I'd imagine this would be >> done with an .ico file. I'd like to do this for both Mac and Windows. >> >> I've looked through the RunRev store and haven't found any extensions >> which do this. Maybe through a command-line somebody has written? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Wed Apr 15 19:37:03 2015 From: ray at linkit.com (Ray) Date: Wed, 15 Apr 2015 19:37:03 -0400 Subject: Custom Desktop Folders In-Reply-To: <552E983F.6000002@economy-x-talk.com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> Message-ID: <552EF61F.2060001@LinkIt.Com> Mark - thanks for these tips but I'm afraid I'm not quite following you. Should the text file have any text in it? Which folder should I save it in? And finally, how do I set the settings you've outlined from within Livecode? I guess these things are delving into an area of Livecode I've never used. Thanks, Ray On 4/15/2015 12:56 PM, Mark Schonewille wrote: > Hi Ray, > > Make a text file with Notepad. Save it in the folder as Desktop.ini. > Use the following settings: > > [.ShellClassInfo] > IconFile=Folder.ico > IconIndex=0 > InfoTip=Some sensible information. > > > -- > 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 4/15/2015 23:30, Ray wrote: >> Does anybody know of a way, from within Livecode, to create a folder >> and give it it's own custom display on the desktop? I'd imagine this >> would be done with an .ico file. I'd like to do this for both Mac >> and Windows. >> >> I've looked through the RunRev store and haven't found any extensions >> which do this. Maybe through a command-line somebody has written? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Wed Apr 15 13:43:23 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 15 Apr 2015 19:43:23 +0200 Subject: Custom Desktop Folders In-Reply-To: <552EF61F.2060001@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> Message-ID: <552EA33B.90708@economy-x-talk.com> Ray, It is a text file. I gave you an example of the text. LiveCode can create such text files. The file should be saved inside the folder of which you want to change the icon. -- 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 4/16/2015 01:37, Ray wrote: > Mark - thanks for these tips but I'm afraid I'm not quite following you. > > Should the text file have any text in it? Which folder should I save it > in? And finally, how do I set the settings you've outlined from within > Livecode? I guess these things are delving into an area of Livecode > I've never used. > > Thanks, > > Ray > > On 4/15/2015 12:56 PM, Mark Schonewille wrote: >> Hi Ray, >> >> Make a text file with Notepad. Save it in the folder as Desktop.ini. >> Use the following settings: >> >> [.ShellClassInfo] >> IconFile=Folder.ico >> IconIndex=0 >> InfoTip=Some sensible information. >> >> >> -- >> 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 4/15/2015 23:30, Ray wrote: >>> Does anybody know of a way, from within Livecode, to create a folder >>> and give it it's own custom display on the desktop? I'd imagine this >>> would be done with an .ico file. I'd like to do this for both Mac >>> and Windows. >>> >>> I've looked through the RunRev store and haven't found any extensions >>> which do this. Maybe through a command-line somebody has written? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Wed Apr 15 19:45:34 2015 From: ray at linkit.com (Ray) Date: Wed, 15 Apr 2015 19:45:34 -0400 Subject: Custom Desktop Folders In-Reply-To: <552EA33B.90708@economy-x-talk.com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> Message-ID: <552EF81E.4080809@LinkIt.Com> Really! Just that simple. I'll give it a try. Thanks... On 4/15/2015 1:43 PM, Mark Schonewille wrote: > Ray, > > It is a text file. I gave you an example of the text. LiveCode can > create such text files. The file should be saved inside the folder of > which you want to change the icon. > > -- > 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 4/16/2015 01:37, Ray wrote: >> Mark - thanks for these tips but I'm afraid I'm not quite following >> you. >> >> Should the text file have any text in it? Which folder should I save it >> in? And finally, how do I set the settings you've outlined from within >> Livecode? I guess these things are delving into an area of Livecode >> I've never used. >> >> Thanks, >> >> Ray >> >> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>> Hi Ray, >>> >>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>> Use the following settings: >>> >>> [.ShellClassInfo] >>> IconFile=Folder.ico >>> IconIndex=0 >>> InfoTip=Some sensible information. >>> >>> >>> -- >>> 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 4/15/2015 23:30, Ray wrote: >>>> Does anybody know of a way, from within Livecode, to create a folder >>>> and give it it's own custom display on the desktop? I'd imagine this >>>> would be done with an .ico file. I'd like to do this for both Mac >>>> and Windows. >>>> >>>> I've looked through the RunRev store and haven't found any extensions >>>> which do this. Maybe through a command-line somebody has written? >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Wed Apr 15 20:01:30 2015 From: ray at linkit.com (Ray) Date: Wed, 15 Apr 2015 20:01:30 -0400 Subject: Custom Desktop Folders In-Reply-To: <552EA33B.90708@economy-x-talk.com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> Message-ID: <552EFBDA.2020102@LinkIt.Com> OK Mark - I've experimented a little doing this: Made a text file named Desktop.ini Saved the following content in it: [.ShellClassInfo] IconFile=MyIcon.ico IconIndex=0 InfoTip=Some sensible information. Created a folder on the Windows desktop named Test Moved both the file and a .ico file named MyIcon into the folder This doesn't change the appearance of the folder, although it does change the appearance of the text file. It puts a little gear on it. Am I missing something? On 4/15/2015 1:43 PM, Mark Schonewille wrote: > Ray, > > It is a text file. I gave you an example of the text. LiveCode can > create such text files. The file should be saved inside the folder of > which you want to change the icon. > > -- > 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 4/16/2015 01:37, Ray wrote: >> Mark - thanks for these tips but I'm afraid I'm not quite following >> you. >> >> Should the text file have any text in it? Which folder should I save it >> in? And finally, how do I set the settings you've outlined from within >> Livecode? I guess these things are delving into an area of Livecode >> I've never used. >> >> Thanks, >> >> Ray >> >> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>> Hi Ray, >>> >>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>> Use the following settings: >>> >>> [.ShellClassInfo] >>> IconFile=Folder.ico >>> IconIndex=0 >>> InfoTip=Some sensible information. >>> >>> >>> -- >>> 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 4/15/2015 23:30, Ray wrote: >>>> Does anybody know of a way, from within Livecode, to create a folder >>>> and give it it's own custom display on the desktop? I'd imagine this >>>> would be done with an .ico file. I'd like to do this for both Mac >>>> and Windows. >>>> >>>> I've looked through the RunRev store and haven't found any extensions >>>> which do this. Maybe through a command-line somebody has written? >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roger.e.eller at sealedair.com Wed Apr 15 14:09:47 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 15 Apr 2015 14:09:47 -0400 Subject: Custom Desktop Folders In-Reply-To: <552EFBDA.2020102@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> Message-ID: I tried it too, and the folder icon has not changed. I am in Windows 7. On Wed, Apr 15, 2015 at 8:01 PM, Ray wrote: > OK Mark - I've experimented a little doing this: > > Made a text file named Desktop.ini > > Saved the following content in it: > [.ShellClassInfo] > IconFile=MyIcon.ico > IconIndex=0 > InfoTip=Some sensible information. > > Created a folder on the Windows desktop named Test > > Moved both the file and a .ico file named MyIcon into the folder > > This doesn't change the appearance of the folder, although it does change > the appearance of the text file. It puts a little gear on it. > > Am I missing something? > > On 4/15/2015 1:43 PM, Mark Schonewille wrote: > >> Ray, >> >> It is a text file. I gave you an example of the text. LiveCode can create >> such text files. The file should be saved inside the folder of which you >> want to change the icon. >> >> -- >> 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 4/16/2015 01:37, Ray wrote: >> >>> Mark - thanks for these tips but I'm afraid I'm not quite following >>> you. >>> >>> Should the text file have any text in it? Which folder should I save it >>> in? And finally, how do I set the settings you've outlined from within >>> Livecode? I guess these things are delving into an area of Livecode >>> I've never used. >>> >>> Thanks, >>> >>> Ray >>> >>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>> >>>> Hi Ray, >>>> >>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>> Use the following settings: >>>> >>>> [.ShellClassInfo] >>>> IconFile=Folder.ico >>>> IconIndex=0 >>>> InfoTip=Some sensible information. >>>> >>>> >>>> -- >>>> 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 4/15/2015 23:30, Ray wrote: >>>> >>>>> Does anybody know of a way, from within Livecode, to create a folder >>>>> and give it it's own custom display on the desktop? I'd imagine this >>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>> and Windows. >>>>> >>>>> I've looked through the RunRev store and haven't found any extensions >>>>> which do this. Maybe through a command-line somebody has written? >>>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Wed Apr 15 14:20:07 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 15 Apr 2015 20:20:07 +0200 Subject: Custom Desktop Folders In-Reply-To: <552EFBDA.2020102@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> Message-ID: <552EABD7.4050801@economy-x-talk.com> Hi Ray, I used to do this for CD's. Those projects are on an external hard disk somewhere. As soon as I find those projects, I'll post a real ini file. Meanwhile, you could just check out the syntax for ini files. -- 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 4/16/2015 02:01, Ray wrote: > OK Mark - I've experimented a little doing this: > > Made a text file named Desktop.ini > > Saved the following content in it: > [.ShellClassInfo] > IconFile=MyIcon.ico > IconIndex=0 > InfoTip=Some sensible information. > > Created a folder on the Windows desktop named Test > > Moved both the file and a .ico file named MyIcon into the folder > > This doesn't change the appearance of the folder, although it does > change the appearance of the text file. It puts a little gear on it. > > Am I missing something? > > On 4/15/2015 1:43 PM, Mark Schonewille wrote: >> Ray, >> >> It is a text file. I gave you an example of the text. LiveCode can >> create such text files. The file should be saved inside the folder of >> which you want to change the icon. >> >> -- >> 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 4/16/2015 01:37, Ray wrote: >>> Mark - thanks for these tips but I'm afraid I'm not quite following >>> you. >>> >>> Should the text file have any text in it? Which folder should I save it >>> in? And finally, how do I set the settings you've outlined from within >>> Livecode? I guess these things are delving into an area of Livecode >>> I've never used. >>> >>> Thanks, >>> >>> Ray >>> >>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>> Hi Ray, >>>> >>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>> Use the following settings: >>>> >>>> [.ShellClassInfo] >>>> IconFile=Folder.ico >>>> IconIndex=0 >>>> InfoTip=Some sensible information. >>>> >>>> >>>> -- >>>> 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 4/15/2015 23:30, Ray wrote: >>>>> Does anybody know of a way, from within Livecode, to create a folder >>>>> and give it it's own custom display on the desktop? I'd imagine this >>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>> and Windows. >>>>> >>>>> I've looked through the RunRev store and haven't found any extensions >>>>> which do this. Maybe through a command-line somebody has written? >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikedoub at gmail.com Wed Apr 15 14:31:20 2015 From: mikedoub at gmail.com (Michael Doub) Date: Wed, 15 Apr 2015 14:31:20 -0400 Subject: Custom Desktop Folders In-Reply-To: <552EABD7.4050801@economy-x-talk.com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EABD7.4050801@economy-x-talk.com> Message-ID: <552EAE78.8070700@gmail.com> this might help... http://helpdeskgeek.com/how-to/customize-folder-icons-desktop-ini/ On 4/15/15 2:20 PM, Mark Schonewille wrote: > Hi Ray, > > I used to do this for CD's. Those projects are on an external hard > disk somewhere. As soon as I find those projects, I'll post a real ini > file. Meanwhile, you could just check out the syntax for ini files. > > -- > 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 4/16/2015 02:01, Ray wrote: >> OK Mark - I've experimented a little doing this: >> >> Made a text file named Desktop.ini >> >> Saved the following content in it: >> [.ShellClassInfo] >> IconFile=MyIcon.ico >> IconIndex=0 >> InfoTip=Some sensible information. >> >> Created a folder on the Windows desktop named Test >> >> Moved both the file and a .ico file named MyIcon into the folder >> >> This doesn't change the appearance of the folder, although it does >> change the appearance of the text file. It puts a little gear on it. >> >> Am I missing something? >> >> On 4/15/2015 1:43 PM, Mark Schonewille wrote: >>> Ray, >>> >>> It is a text file. I gave you an example of the text. LiveCode can >>> create such text files. The file should be saved inside the folder of >>> which you want to change the icon. >>> >>> -- >>> 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 4/16/2015 01:37, Ray wrote: >>>> Mark - thanks for these tips but I'm afraid I'm not quite following >>>> you. >>>> >>>> Should the text file have any text in it? Which folder should I >>>> save it >>>> in? And finally, how do I set the settings you've outlined from >>>> within >>>> Livecode? I guess these things are delving into an area of Livecode >>>> I've never used. >>>> >>>> Thanks, >>>> >>>> Ray >>>> >>>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>>> Hi Ray, >>>>> >>>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>>> Use the following settings: >>>>> >>>>> [.ShellClassInfo] >>>>> IconFile=Folder.ico >>>>> IconIndex=0 >>>>> InfoTip=Some sensible information. >>>>> >>>>> >>>>> -- >>>>> 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 4/15/2015 23:30, Ray wrote: >>>>>> Does anybody know of a way, from within Livecode, to create a folder >>>>>> and give it it's own custom display on the desktop? I'd imagine >>>>>> this >>>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>>> and Windows. >>>>>> >>>>>> I've looked through the RunRev store and haven't found any >>>>>> extensions >>>>>> which do this. Maybe through a command-line somebody has written? >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Apr 15 14:46:57 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 15 Apr 2015 13:46:57 -0500 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: <552E27F1.103@gmail.com> <552E93C2.3020106@gmail.com> <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> Message-ID: <552EB221.4050900@hyperactivesw.com> LOL. I thought you did it on purpose. On 4/15/2015 12:25 PM, Peter Haworth wrote: > Perfect!!! that should have been "age" not "ape". > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Apr 15, 2015 at 10:25 AM, Peter Haworth wrote: > >> Surely autocorrect is one of THE worst things to come out of the computer >> ape!!!! >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> On Wed, Apr 15, 2015 at 10:15 AM, Geoff Canyon wrote: >> >>> On Wed, Apr 15, 2015 at 11:44 AM, Colin Holgate >>> wrote: >>> >>>> Just looking at what I wrote, and an autocorrection in my message will >>>> have caused much confusion! The $30 is to remove ?ads?, not ?apps?. >>> >>> >>> My brain auto-corrected that back to "ads." :-) >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Wed Apr 15 14:50:55 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 15 Apr 2015 20:50:55 +0200 Subject: Custom Desktop Folders In-Reply-To: <552EFBDA.2020102@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> Message-ID: <552EB30F.2080400@economy-x-talk.com> Hi Ray, I've found the link I got the example from (IIRC): https://msdn.microsoft.com/en-us/library/windows/desktop/cc144102%28v=vs.85%29.aspx -- 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 4/16/2015 02:01, Ray wrote: > OK Mark - I've experimented a little doing this: > > Made a text file named Desktop.ini > > Saved the following content in it: > [.ShellClassInfo] > IconFile=MyIcon.ico > IconIndex=0 > InfoTip=Some sensible information. > > Created a folder on the Windows desktop named Test > > Moved both the file and a .ico file named MyIcon into the folder > > This doesn't change the appearance of the folder, although it does > change the appearance of the text file. It puts a little gear on it. > > Am I missing something? > > On 4/15/2015 1:43 PM, Mark Schonewille wrote: >> Ray, >> >> It is a text file. I gave you an example of the text. LiveCode can >> create such text files. The file should be saved inside the folder of >> which you want to change the icon. >> >> -- >> 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 4/16/2015 01:37, Ray wrote: >>> Mark - thanks for these tips but I'm afraid I'm not quite following >>> you. >>> >>> Should the text file have any text in it? Which folder should I save it >>> in? And finally, how do I set the settings you've outlined from within >>> Livecode? I guess these things are delving into an area of Livecode >>> I've never used. >>> >>> Thanks, >>> >>> Ray >>> >>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>> Hi Ray, >>>> >>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>> Use the following settings: >>>> >>>> [.ShellClassInfo] >>>> IconFile=Folder.ico >>>> IconIndex=0 >>>> InfoTip=Some sensible information. >>>> >>>> >>>> -- >>>> 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 4/15/2015 23:30, Ray wrote: >>>>> Does anybody know of a way, from within Livecode, to create a folder >>>>> and give it it's own custom display on the desktop? I'd imagine this >>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>> and Windows. >>>>> >>>>> I've looked through the RunRev store and haven't found any extensions >>>>> which do this. Maybe through a command-line somebody has written? >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From kray at sonsothunder.com Wed Apr 15 15:13:04 2015 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 15 Apr 2015 14:13:04 -0500 Subject: New Way To Deal With Custom Fonts on iOS? In-Reply-To: References: <9920AC0D-10FD-4655-96E9-856EB4502572@icloud.com> Message-ID: Scott, Sorry I?m late to the party, but I ran into this quite a while ago and wrote this post to LiveCodeJournal: http://livecodejournal.com/forum/viewtopic.php?f=23&t=48 I had to create a series of routines that would work off of a font map in a custom property, where the "map" was a tab/CR-delimited chunk of data in three columns: the "FontNames" name, the font weight, and the "FontStyles" name, like: Academy Engraved LET Plain AcademyEngravedLetPlain American Typewriter Light AmericanTypewriter-Light American Typewriter Plain AmericanTypewriter American Typewriter Bold AmericanTypewriter-Bold American Typewriter Light Condensed AmericanTypewriter-CondensedLight American Typewriter Condensed AmericanTypewriter-Condensed American Typewriter Bold Condensed AmericanTypewriter-CondensedBold (etc.) I needed this to be able to let someone pick a "font" in iOS and then be able to assign the proper font (from the fontStyles) to the field. If you are interested in getting a copy of these, let me know in case you don?t want to roll your own. Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ > On Apr 15, 2015, at 11:23 AM, Scott Rossi wrote: > > Thanks Chris. The bug report is mostly about time to load, but yes it > seems somewhat related. The main issue is there's some disconnect between > what the fontNames function reports and what is needed by the system for > fonts to render properly. To apply a font name, the basic approach seems > to be to put the core name of the font into a string, followed by a single > hyphen and any style/s, and remove spaces from string (shown below). > > There are several exceptions though, such as Arial which is listed as > "Arial" in the fontNames but is actually "ArialMT" on the device. There > are roughly dozen or so of these exceptions, and to further complicate > matters, there's at least one case where "condensed" is part of the font's > name, as opposed to being a style. There is no way to make this > differentiation programmatically. > > I wrote a font name formatting routine which works about 90% of the time, > but then realized it's probably easier just to go with an established > reference, like the one here: > http://iosfonts.com/ > > > In any event, the fontNames needs to be fixed, because trying to figure > out the naming for any custom installed font still requires trial and > error. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 4/14/15, 7:18 AM, "Chris Sheffield" wrote: > >> Scott, >> >> Could this possibly be related to this issue bug 14116 >> ? >> >> Mark W. stated in a comment there that the screen loading times may have >> something to do with a change in the way that fonts were handled between >> LC 6.6 and LC 6.7. I wonder if the issue you described is related >> somehow. Maybe it?s also caused by this change to using CoreText in iOS. >> Specifically, see his comment from February 27. >> >> Chris >> >> >> >>> On Apr 14, 2015, at 1:27 AM, Scott Rossi wrote: >>> >>> Hi All: >>> >>> I just spent two hours with a colleague trying to track down why a >>> custom >>> font wasn't rendering correctly on iOS, and apparently it seems that >>> something changed with either the way LiveCode 7 or iOS 8 handles font >>> names. >>> >>> It used to be that grabbing the installed name of a font on iOS was all >>> that was needed to get a custom font to work, but now it seems one has >>> to >>> manually combine the font name and any desired style/s into a string >>> separated by a dash: >>> >>> Installed name = American Typewriter Condensed Bold >>> becomes -------> AmericanTypewriter-CondensedBold >>> >>> I know about the fontStyles function, but that only appears to return >>> available styles for font, it doesn't return a properly formatted >>> fontName. >>> >>> Looking up font related terms/issues in the docs, forums, and mail list >>> I >>> haven't seen any reference to this anywhere. Is this documented, and >>> even >>> more importantly, is there a function or script to automate this so we >>> don't have to maintain a stored list of styles and compare/replace words >>> in the font name? >>> >>> I'm also worried about what caused this change: is this a LiveCode >>> change >>> or an iOS change? An iOS change would seem to mean that we need to code >>> around the system version to handle older versions of iOS. >>> >>> Thanks for any info/advice here. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Apr 15 15:17:57 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 15 Apr 2015 15:17:57 -0400 Subject: datagrid multiple lines mobile Message-ID: If I'm reading the behavior script correctly for dataGrids, there isn't (currently) any way to select multiple lines automatically on mobile, right (where each tap just selects or deselects another line) - yes? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Wed Apr 15 16:24:37 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 15 Apr 2015 16:24:37 -0400 Subject: datagrid multiple lines mobile In-Reply-To: References: Message-ID: Never mind, I just rewrote the behavior script to make it do what I want it to do. On Wed, Apr 15, 2015 at 3:17 PM, Mike Kerner wrote: > If I'm reading the behavior script correctly for dataGrids, there isn't > (currently) any way to select multiple lines automatically on mobile, right > (where each tap just selects or deselects another line) - yes? > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From mikedoub at gmail.com Wed Apr 15 16:26:21 2015 From: mikedoub at gmail.com (Michael Doub) Date: Wed, 15 Apr 2015 16:26:21 -0400 Subject: sftp ... again Message-ID: <552EC96D.1030405@gmail.com> I am looking for a way to push a file on to my ftp site. It supports FTP with TLS/SSL (AUTH TLS - Explicit), SFTP and WebDAV with HTTPS (SSL). Based on my searching it seems the FTP path is a dead end, and I dont know anything about WebDAV. I thought I would double check with the list and see if there are any late breaking solutions. .... fingers crossed. My goal in all of this is to create a webpage with the current documentation of the MasterLibrary in it so the web search engines can find it. I would like to also create an attractive home page of sorts for the library, but my artistic skills are equivalent to a pet rock and my web skills are about the same. If anyone with some artistic web talent is willing to help, please let me know. Thanks Mike From ambassador at fourthworld.com Wed Apr 15 16:42:52 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 15 Apr 2015 13:42:52 -0700 Subject: sftp ... again In-Reply-To: <552EC96D.1030405@gmail.com> References: <552EC96D.1030405@gmail.com> Message-ID: <552ECD4C.8050103@fourthworld.com> Michael Doub wrote: > I am looking for a way to push a file on to my ftp site. rsync via shell, with shared SSH keys. Much more efficient, and once you have your public key added to the server there's a whole world of great things you can do to automate tasks with LiveCode. How-to on setting up shared SSH keys: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Wed Apr 15 19:13:51 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 15 Apr 2015 17:13:51 -0600 Subject: Custom Desktop Folders In-Reply-To: <552EB30F.2080400@economy-x-talk.com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> Message-ID: Give it the full path. On Wed, Apr 15, 2015 at 12:50 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Ray, > > I've found the link I got the example from (IIRC): > > https://msdn.microsoft.com/en-us/library/windows/desktop/ > cc144102%28v=vs.85%29.aspx > > -- > 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 4/16/2015 02:01, Ray wrote: > >> OK Mark - I've experimented a little doing this: >> >> Made a text file named Desktop.ini >> >> Saved the following content in it: >> [.ShellClassInfo] >> IconFile=MyIcon.ico >> IconIndex=0 >> InfoTip=Some sensible information. >> >> Created a folder on the Windows desktop named Test >> >> Moved both the file and a .ico file named MyIcon into the folder >> >> This doesn't change the appearance of the folder, although it does >> change the appearance of the text file. It puts a little gear on it. >> >> Am I missing something? >> >> On 4/15/2015 1:43 PM, Mark Schonewille wrote: >> >>> Ray, >>> >>> It is a text file. I gave you an example of the text. LiveCode can >>> create such text files. The file should be saved inside the folder of >>> which you want to change the icon. >>> >>> -- >>> 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 4/16/2015 01:37, Ray wrote: >>> >>>> Mark - thanks for these tips but I'm afraid I'm not quite following >>>> you. >>>> >>>> Should the text file have any text in it? Which folder should I save it >>>> in? And finally, how do I set the settings you've outlined from within >>>> Livecode? I guess these things are delving into an area of Livecode >>>> I've never used. >>>> >>>> Thanks, >>>> >>>> Ray >>>> >>>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>> >>>>> Hi Ray, >>>>> >>>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>>> Use the following settings: >>>>> >>>>> [.ShellClassInfo] >>>>> IconFile=Folder.ico >>>>> IconIndex=0 >>>>> InfoTip=Some sensible information. >>>>> >>>>> >>>>> -- >>>>> 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 4/15/2015 23:30, Ray wrote: >>>>> >>>>>> Does anybody know of a way, from within Livecode, to create a folder >>>>>> and give it it's own custom display on the desktop? I'd imagine this >>>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>>> and Windows. >>>>>> >>>>>> I've looked through the RunRev store and haven't found any extensions >>>>>> which do this. Maybe through a command-line somebody has written? >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From prothero at earthednet.org Wed Apr 15 19:57:54 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 15 Apr 2015 16:57:54 -0700 Subject: Datagrid question Message-ID: I?m trying to set up the dataGrid to put the cell contents in another field, for editing, when I click on it. Some of the cells may contain a fair amount of text, and I won?t be able to edit it in the cell itself. The tutorials refer to the revDataGridLibrary. ???? Can?t find it. Or could the tutorials be out of date? Or, more likely, I?m missing something? That withstanding, the tutorials say there is a message named ?EditValue?. Is this still correct? I can?t get the message to trigger. Best, Bill William A. Prothero http://es.earthednet.org/ From dunbarx at aol.com Wed Apr 15 20:33:32 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 15 Apr 2015 20:33:32 -0400 Subject: Datagrid question In-Reply-To: References: Message-ID: <14cbfa51fc2-40e9-2b7e0@webprd-m46.mail.aol.com> Hi. Nobody understands dataGrids, though they are wonderful tools. Try this in the group script: on mouseDown put getDataOfIndex(the dgHilitedIndexes of me,the dgColumn of the target) into vld "yourField" end mouseDown Craig Newman -----Original Message----- From: William Prothero To: Use-livecode Use-livecode Sent: Wed, Apr 15, 2015 7:58 pm Subject: Datagrid question I?m trying to set up the dataGrid to put the cell contents in another field, for editing, when I click on it. Some of the cells may contain a fair amount of text, and I won?t be able to edit it in the cell itself. The tutorials refer to the revDataGridLibrary. ???? Can?t find it. Or could the tutorials be out of date? Or, more likely, I?m missing something? That withstanding, the tutorials say there is a message named ?EditValue?. Is this still correct? I can?t get the message to trigger. Best, Bill William A. Prothero http://es.earthednet.org/ _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Thu Apr 16 00:58:51 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 15 Apr 2015 21:58:51 -0700 Subject: Datagrid question In-Reply-To: <14cbfa51fc2-40e9-2b7e0@webprd-m46.mail.aol.com> References: <14cbfa51fc2-40e9-2b7e0@webprd-m46.mail.aol.com> Message-ID: <966A30EF-5559-42B9-A9CD-3395B1976BB0@earthednet.org> Thanks! Worked like a charm. Now I suppose, to get it back in the data grid cell, it?s: local savedColumnINdex,savedRowIndex ?saved from command that loaded the data from the cell into the field. on mouseUp put fld ?editedCellContents? into myEditedData setDataOfIndex(savedRowIndex, savedColumnINdex, myEditedData) end mouseUp Whoops! Not quite. The button doesn?t find the handler. I?ll have to fiddle with it more tomorrow. It?s late here. Thanks, Bill > On Apr 15, 2015, at 5:33 PM, dunbarx at aol.com wrote: > > on mouseDown > put getDataOfIndex(the dgHilitedIndexes of me,the dgColumn of the target) into vld "yourField" > end mouseDown From scott at elementarysoftware.com Thu Apr 16 02:20:45 2015 From: scott at elementarysoftware.com (Scott Morrow) Date: Wed, 15 Apr 2015 23:20:45 -0700 Subject: Custom Desktop Folders In-Reply-To: <552ED877.7070902@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> Message-ID: Hello Ray, I believe I had success setting custom folder icons from LiveCode using the Xcode tool SetFile. I can?t remember who pointed me at it? probably Ken Ray. In order for this to work I needed to store the SetFile tool in a customProp of my app and temporarily write it to the user?s drive. (There may be a legal issue here. In this particular case, I covered my ears while singing ?La, la, la?) It has been several years since I last used this but seem to recall that it worked. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com office 1-800-615-0867 ?| ------------------------------------------------------------- ?| set the custom icon bit in the Finder info flags ?| this will tell the Finder to use the custom "icon\r" file to display a custom folder icon ?| install the Developer Tools and look inside the /Developer/Tools/ directory for a CLI program called SetFile. ?| This sets file bits. Specifically, you want to take note of the -a option to set attributes. ?| Run the program without arguments and it will show you a table of things to set. ?| We're looking for the C attribute in upper case because we want to set it on. ?| To turn it off, you use lower case. ?| then run this: tPathToSetFile -a C tFolderPath ?| in order to run the Command Line Tool "SetFile" from the shell() we will need to install it temporarily ?| suck it up and store it in the customProp ?> the uSetFileDevTool of stack "MyCoolStack" --> -- /Developer/usr/bin/SetFile -a C /Applications/My\ App\ Name ?| ------------------------------------------------------------- on FolderIconFlag tFolderPath -- determine if the SetFile command line tool has already been installed to a temp folder put specialfolderpath(temporary) &"/SetFile" into tSetFilePath -- build the path of a temp location to install into if not (the uSetFileIsInstalled of stack ?MyCoolStack") then -- install SetFile app put (decompress(the uSetFileDevTool of stack "MyCoolStack")) into URL ("binfile:" & tSetFilePath) put the result into tResult if tResult is not empty then get log("ERROR:" &CR& "Attempt to write out the Command Line Tool SetFile resulted in: "&& tResult) exit FolderIconFlag -- we failed end if put "755" into tPermission Chmod tSetFilePath, tPermission -- announce that the SetFile is installed set the uSetFileIsInstalled of stack "MyCoolStack" to "true" end if -- escape some special characters put fixPath(tSetFilePath) into tSetFilePath put fixPath(tFolderPath) into tFolderPath -- set the custom folder icon flag get shell(tSetFilePath && "-a C"&& tFolderPath) end FolderIconFlag function fixPath pPath put "\" & space & quote & "'`<>!;()[]?#$^&*=" into tSpecialChars repeat for each char tChar in tSpecialChars replace tChar with ("\" & tChar) in pPath end repeat return pPath end fixPath > On Apr 15, 2015, at 2:30 PM, Ray wrote: > > Does anybody know of a way, from within Livecode, to create a folder and give it it's own custom display on the desktop? I'd imagine this would be done with an .ico file. I'd like to do this for both Mac and Windows. > > I've looked through the RunRev store and haven't found any extensions which do this. Maybe through a command-line somebody has written? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Thu Apr 16 12:01:43 2015 From: ray at linkit.com (Ray) Date: Thu, 16 Apr 2015 12:01:43 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> Message-ID: <552FDCE7.3050103@LinkIt.Com> Mike - I believe you're right, but it's kind of odd. If I give it the full path to an image file (ico, png, etc) it works as long as I leave the image where it is. Move it and it breaks. The work around seems to be to leave the image file at the root level of the folder which is displaying it. I can then rename the folder and move it without losing the icon. On 4/15/2015 7:13 PM, Mike Bonner wrote: > Give it the full path. > > On Wed, Apr 15, 2015 at 12:50 PM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> Hi Ray, >> >> I've found the link I got the example from (IIRC): >> >> https://msdn.microsoft.com/en-us/library/windows/desktop/ >> cc144102%28v=vs.85%29.aspx >> >> -- >> 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 4/16/2015 02:01, Ray wrote: >> >>> OK Mark - I've experimented a little doing this: >>> >>> Made a text file named Desktop.ini >>> >>> Saved the following content in it: >>> [.ShellClassInfo] >>> IconFile=MyIcon.ico >>> IconIndex=0 >>> InfoTip=Some sensible information. >>> >>> Created a folder on the Windows desktop named Test >>> >>> Moved both the file and a .ico file named MyIcon into the folder >>> >>> This doesn't change the appearance of the folder, although it does >>> change the appearance of the text file. It puts a little gear on it. >>> >>> Am I missing something? >>> >>> On 4/15/2015 1:43 PM, Mark Schonewille wrote: >>> >>>> Ray, >>>> >>>> It is a text file. I gave you an example of the text. LiveCode can >>>> create such text files. The file should be saved inside the folder of >>>> which you want to change the icon. >>>> >>>> -- >>>> 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 4/16/2015 01:37, Ray wrote: >>>> >>>>> Mark - thanks for these tips but I'm afraid I'm not quite following >>>>> you. >>>>> >>>>> Should the text file have any text in it? Which folder should I save it >>>>> in? And finally, how do I set the settings you've outlined from within >>>>> Livecode? I guess these things are delving into an area of Livecode >>>>> I've never used. >>>>> >>>>> Thanks, >>>>> >>>>> Ray >>>>> >>>>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>>> >>>>>> Hi Ray, >>>>>> >>>>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>>>> Use the following settings: >>>>>> >>>>>> [.ShellClassInfo] >>>>>> IconFile=Folder.ico >>>>>> IconIndex=0 >>>>>> InfoTip=Some sensible information. >>>>>> >>>>>> >>>>>> -- >>>>>> 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 4/15/2015 23:30, Ray wrote: >>>>>> >>>>>>> Does anybody know of a way, from within Livecode, to create a folder >>>>>>> and give it it's own custom display on the desktop? I'd imagine this >>>>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>>>> and Windows. >>>>>>> >>>>>>> I've looked through the RunRev store and haven't found any extensions >>>>>>> which do this. Maybe through a command-line somebody has written? >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Thu Apr 16 12:09:29 2015 From: ray at linkit.com (Ray) Date: Thu, 16 Apr 2015 12:09:29 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> Message-ID: <552FDEB9.4080509@LinkIt.Com> Scott thanks for your idea on this but I think I'll try something else in light of the possible licensing ramifications which, incidentally, I appreciate you pointing out. At this point I'm unable to get any icons, ico png or otherwise, to display by creating the .ini file myself. I have noticed that when I set it up through the properties tabs the automatically generated .ini file looks a little different: [ViewState] Mode= Vid= FolderType=Pictures Logo=C:\Users\RayAc\Desktop\Test\MyIcon.png Nonetheless, when I create this manually it doesn't work. And I haven't even begun to look at the Mac side yet. But there's hope! I've seem to have success setting up the folder manually, leaving the image file in the folder, treating the whole folder as a template of sorts and using revCopyFolder to duplicate it every time I need a new one. I'm going to try that as a work-around and see how it goes. Many thanks! On 4/15/2015 7:13 PM, Mike Bonner wrote: > Give it the full path. > > On Wed, Apr 15, 2015 at 12:50 PM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> Hi Ray, >> >> I've found the link I got the example from (IIRC): >> >> https://msdn.microsoft.com/en-us/library/windows/desktop/ >> cc144102%28v=vs.85%29.aspx >> >> -- >> 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 4/16/2015 02:01, Ray wrote: >> >>> OK Mark - I've experimented a little doing this: >>> >>> Made a text file named Desktop.ini >>> >>> Saved the following content in it: >>> [.ShellClassInfo] >>> IconFile=MyIcon.ico >>> IconIndex=0 >>> InfoTip=Some sensible information. >>> >>> Created a folder on the Windows desktop named Test >>> >>> Moved both the file and a .ico file named MyIcon into the folder >>> >>> This doesn't change the appearance of the folder, although it does >>> change the appearance of the text file. It puts a little gear on it. >>> >>> Am I missing something? >>> >>> On 4/15/2015 1:43 PM, Mark Schonewille wrote: >>> >>>> Ray, >>>> >>>> It is a text file. I gave you an example of the text. LiveCode can >>>> create such text files. The file should be saved inside the folder of >>>> which you want to change the icon. >>>> >>>> -- >>>> 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 4/16/2015 01:37, Ray wrote: >>>> >>>>> Mark - thanks for these tips but I'm afraid I'm not quite following >>>>> you. >>>>> >>>>> Should the text file have any text in it? Which folder should I save it >>>>> in? And finally, how do I set the settings you've outlined from within >>>>> Livecode? I guess these things are delving into an area of Livecode >>>>> I've never used. >>>>> >>>>> Thanks, >>>>> >>>>> Ray >>>>> >>>>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>>> >>>>>> Hi Ray, >>>>>> >>>>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>>>> Use the following settings: >>>>>> >>>>>> [.ShellClassInfo] >>>>>> IconFile=Folder.ico >>>>>> IconIndex=0 >>>>>> InfoTip=Some sensible information. >>>>>> >>>>>> >>>>>> -- >>>>>> 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 4/15/2015 23:30, Ray wrote: >>>>>> >>>>>>> Does anybody know of a way, from within Livecode, to create a folder >>>>>>> and give it it's own custom display on the desktop? I'd imagine this >>>>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>>>> and Windows. >>>>>>> >>>>>>> I've looked through the RunRev store and haven't found any extensions >>>>>>> which do this. Maybe through a command-line somebody has written? >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Thu Apr 16 09:38:16 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 16 Apr 2015 07:38:16 -0600 Subject: Custom Desktop Folders In-Reply-To: <552FDEB9.4080509@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> Message-ID: It shouldn't matter where you store the icon. In fact, it'd be better if you created a folder for your icons somewhere like the app support directory or some such. Then you can point to the icon file, and if you move the folder around, it shouldn't matter. Heres a link to a forum post that uses env variables to point to an icon location. It points to a folder stored in a folder on the desktop, but it shouldn't matter where the folder is as long as you can point to it explicitly. (or in the case of the forum post, point to it at a location relative to the user) If you were wanting to set things up where all users see thte icon, then inside the folder, or some place not relative to the specific user is the way to go. Network shares would be complicated. I wonder... if you have the .ico file in the folder, and your desktop.ini references it this way: .\myicon.ico does it work? It would be nice if you could start relative to the folder ( . ) and go from there. Also, you can set the attributes of your icon file to system/hidden so it doesn't show in the top level. Of course people like me have settings so that it will show anyway but.. /shrug On Thu, Apr 16, 2015 at 10:09 AM, Ray wrote: > Scott thanks for your idea on this but I think I'll try something else in > light of the possible licensing ramifications which, incidentally, I > appreciate you pointing out. > > At this point I'm unable to get any icons, ico png or otherwise, to > display by creating the .ini file myself. I have noticed that when I set > it up through the properties tabs the automatically generated .ini file > looks a little different: > [ViewState] > Mode= > Vid= > FolderType=Pictures > Logo=C:\Users\RayAc\Desktop\Test\MyIcon.png > > Nonetheless, when I create this manually it doesn't work. And I haven't > even begun to look at the Mac side yet. > > But there's hope! I've seem to have success setting up the folder > manually, leaving the image file in the folder, treating the whole folder > as a template of sorts and using revCopyFolder to duplicate it every time I > need a new one. > > I'm going to try that as a work-around and see how it goes. > > Many thanks! > > > On 4/15/2015 7:13 PM, Mike Bonner wrote: > >> Give it the full path. >> >> On Wed, Apr 15, 2015 at 12:50 PM, Mark Schonewille < >> m.schonewille at economy-x-talk.com> wrote: >> >> Hi Ray, >>> >>> I've found the link I got the example from (IIRC): >>> >>> https://msdn.microsoft.com/en-us/library/windows/desktop/ >>> cc144102%28v=vs.85%29.aspx >>> >>> -- >>> 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 4/16/2015 02:01, Ray wrote: >>> >>> OK Mark - I've experimented a little doing this: >>>> >>>> Made a text file named Desktop.ini >>>> >>>> Saved the following content in it: >>>> [.ShellClassInfo] >>>> IconFile=MyIcon.ico >>>> IconIndex=0 >>>> InfoTip=Some sensible information. >>>> >>>> Created a folder on the Windows desktop named Test >>>> >>>> Moved both the file and a .ico file named MyIcon into the folder >>>> >>>> This doesn't change the appearance of the folder, although it does >>>> change the appearance of the text file. It puts a little gear on it. >>>> >>>> Am I missing something? >>>> >>>> On 4/15/2015 1:43 PM, Mark Schonewille wrote: >>>> >>>> Ray, >>>>> >>>>> It is a text file. I gave you an example of the text. LiveCode can >>>>> create such text files. The file should be saved inside the folder of >>>>> which you want to change the icon. >>>>> >>>>> -- >>>>> 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 4/16/2015 01:37, Ray wrote: >>>>> >>>>> Mark - thanks for these tips but I'm afraid I'm not quite following >>>>>> you. >>>>>> >>>>>> Should the text file have any text in it? Which folder should I save >>>>>> it >>>>>> in? And finally, how do I set the settings you've outlined from >>>>>> within >>>>>> Livecode? I guess these things are delving into an area of Livecode >>>>>> I've never used. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Ray >>>>>> >>>>>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>>>> >>>>>> Hi Ray, >>>>>>> >>>>>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>>>>> Use the following settings: >>>>>>> >>>>>>> [.ShellClassInfo] >>>>>>> IconFile=Folder.ico >>>>>>> IconIndex=0 >>>>>>> InfoTip=Some sensible information. >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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 4/15/2015 23:30, Ray wrote: >>>>>>> >>>>>>> Does anybody know of a way, from within Livecode, to create a folder >>>>>>>> and give it it's own custom display on the desktop? I'd imagine >>>>>>>> this >>>>>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>>>>> and Windows. >>>>>>>> >>>>>>>> I've looked through the RunRev store and haven't found any >>>>>>>> extensions >>>>>>>> which do this. Maybe through a command-line somebody has written? >>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Thu Apr 16 09:41:17 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 16 Apr 2015 07:41:17 -0600 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> Message-ID: heres that link. http://forums.livecode.com/phpBB2/viewtopic.php?t=1745 On Thu, Apr 16, 2015 at 7:38 AM, Mike Bonner wrote: > It shouldn't matter where you store the icon. In fact, it'd be better if > you created a folder for your icons somewhere like the app support > directory or some such. Then you can point to the icon file, and if you > move the folder around, it shouldn't matter. > Heres a link to a forum post that uses env variables to point to an icon > location. It points to a folder stored in a folder on the desktop, but it > shouldn't matter where the folder is as long as you can point to it > explicitly. (or in the case of the forum post, point to it at a location > relative to the user) > If you were wanting to set things up where all users see thte icon, then > inside the folder, or some place not relative to the specific user is the > way to go. Network shares would be complicated. I wonder... if you have > the .ico file in the folder, and your desktop.ini references it this way: > .\myicon.ico > does it work? It would be nice if you could start relative to the folder > ( . ) and go from there. > > Also, you can set the attributes of your icon file to system/hidden so it > doesn't show in the top level. Of course people like me have settings so > that it will show anyway but.. /shrug > > On Thu, Apr 16, 2015 at 10:09 AM, Ray wrote: > >> Scott thanks for your idea on this but I think I'll try something else in >> light of the possible licensing ramifications which, incidentally, I >> appreciate you pointing out. >> >> At this point I'm unable to get any icons, ico png or otherwise, to >> display by creating the .ini file myself. I have noticed that when I set >> it up through the properties tabs the automatically generated .ini file >> looks a little different: >> [ViewState] >> Mode= >> Vid= >> FolderType=Pictures >> Logo=C:\Users\RayAc\Desktop\Test\MyIcon.png >> >> Nonetheless, when I create this manually it doesn't work. And I haven't >> even begun to look at the Mac side yet. >> >> But there's hope! I've seem to have success setting up the folder >> manually, leaving the image file in the folder, treating the whole folder >> as a template of sorts and using revCopyFolder to duplicate it every time I >> need a new one. >> >> I'm going to try that as a work-around and see how it goes. >> >> Many thanks! >> >> >> On 4/15/2015 7:13 PM, Mike Bonner wrote: >> >>> Give it the full path. >>> >>> On Wed, Apr 15, 2015 at 12:50 PM, Mark Schonewille < >>> m.schonewille at economy-x-talk.com> wrote: >>> >>> Hi Ray, >>>> >>>> I've found the link I got the example from (IIRC): >>>> >>>> https://msdn.microsoft.com/en-us/library/windows/desktop/ >>>> cc144102%28v=vs.85%29.aspx >>>> >>>> -- >>>> 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 4/16/2015 02:01, Ray wrote: >>>> >>>> OK Mark - I've experimented a little doing this: >>>>> >>>>> Made a text file named Desktop.ini >>>>> >>>>> Saved the following content in it: >>>>> [.ShellClassInfo] >>>>> IconFile=MyIcon.ico >>>>> IconIndex=0 >>>>> InfoTip=Some sensible information. >>>>> >>>>> Created a folder on the Windows desktop named Test >>>>> >>>>> Moved both the file and a .ico file named MyIcon into the folder >>>>> >>>>> This doesn't change the appearance of the folder, although it does >>>>> change the appearance of the text file. It puts a little gear on it. >>>>> >>>>> Am I missing something? >>>>> >>>>> On 4/15/2015 1:43 PM, Mark Schonewille wrote: >>>>> >>>>> Ray, >>>>>> >>>>>> It is a text file. I gave you an example of the text. LiveCode can >>>>>> create such text files. The file should be saved inside the folder of >>>>>> which you want to change the icon. >>>>>> >>>>>> -- >>>>>> 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 4/16/2015 01:37, Ray wrote: >>>>>> >>>>>> Mark - thanks for these tips but I'm afraid I'm not quite following >>>>>>> you. >>>>>>> >>>>>>> Should the text file have any text in it? Which folder should I >>>>>>> save it >>>>>>> in? And finally, how do I set the settings you've outlined from >>>>>>> within >>>>>>> Livecode? I guess these things are delving into an area of Livecode >>>>>>> I've never used. >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Ray >>>>>>> >>>>>>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>>>>> >>>>>>> Hi Ray, >>>>>>>> >>>>>>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>>>>>> Use the following settings: >>>>>>>> >>>>>>>> [.ShellClassInfo] >>>>>>>> IconFile=Folder.ico >>>>>>>> IconIndex=0 >>>>>>>> InfoTip=Some sensible information. >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> 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 4/15/2015 23:30, Ray wrote: >>>>>>>> >>>>>>>> Does anybody know of a way, from within Livecode, to create a >>>>>>>>> folder >>>>>>>>> and give it it's own custom display on the desktop? I'd imagine >>>>>>>>> this >>>>>>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>>>>>> and Windows. >>>>>>>>> >>>>>>>>> I've looked through the RunRev store and haven't found any >>>>>>>>> extensions >>>>>>>>> which do this. Maybe through a command-line somebody has written? >>>>>>>>> >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From ray at linkit.com Thu Apr 16 15:57:34 2015 From: ray at linkit.com (Ray) Date: Thu, 16 Apr 2015 15:57:34 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> Message-ID: <5530142E.2090301@LinkIt.Com> Mike, I've been wrestling with this again this morning and I'm unable to get the icon to display at all, let alone concern myself with paths. I'm using revCopyFolder to create the folder I want by duplicating an existing folder with the .ico file in it. RevCopyFolder duplicates the folder to another location and it includes the .ico file in the folder but it excludes the dektop.ini file. I can create one from within Livecode but it doesn't work. I can see why, too. If I right-click it, choose Properties and go to the Details tab I can see that the Desktop.ini file I made in Livecode has Attributes of "A" while the one Windows 8.1 make (when I manually set a folder icon in the folder's properties window) has Attributes of "HSA". Sounds like some sort of housing authority:) I've tried using RevCopyFile to duplicate the Desktop.ini file with the proper attributes to my new folder but it also fails. Evidently Windows 8.1 blocks this, even though there's no other Desktop.ini file present yet. So at this point I'm stuck unless I can find some way within Livecode to set the Attributes of the Desktop.ini file I create to "HSA". Any ideas? On 4/16/2015 9:41 AM, Mike Bonner wrote: > heres that link. http://forums.livecode.com/phpBB2/viewtopic.php?t=1745 > > On Thu, Apr 16, 2015 at 7:38 AM, Mike Bonner wrote: > >> It shouldn't matter where you store the icon. In fact, it'd be better if >> you created a folder for your icons somewhere like the app support >> directory or some such. Then you can point to the icon file, and if you >> move the folder around, it shouldn't matter. >> Heres a link to a forum post that uses env variables to point to an icon >> location. It points to a folder stored in a folder on the desktop, but it >> shouldn't matter where the folder is as long as you can point to it >> explicitly. (or in the case of the forum post, point to it at a location >> relative to the user) >> If you were wanting to set things up where all users see thte icon, then >> inside the folder, or some place not relative to the specific user is the >> way to go. Network shares would be complicated. I wonder... if you have >> the .ico file in the folder, and your desktop.ini references it this way: >> .\myicon.ico >> does it work? It would be nice if you could start relative to the folder >> ( . ) and go from there. >> >> Also, you can set the attributes of your icon file to system/hidden so it >> doesn't show in the top level. Of course people like me have settings so >> that it will show anyway but.. /shrug >> >> On Thu, Apr 16, 2015 at 10:09 AM, Ray wrote: >> >>> Scott thanks for your idea on this but I think I'll try something else in >>> light of the possible licensing ramifications which, incidentally, I >>> appreciate you pointing out. >>> >>> At this point I'm unable to get any icons, ico png or otherwise, to >>> display by creating the .ini file myself. I have noticed that when I set >>> it up through the properties tabs the automatically generated .ini file >>> looks a little different: >>> [ViewState] >>> Mode= >>> Vid= >>> FolderType=Pictures >>> Logo=C:\Users\RayAc\Desktop\Test\MyIcon.png >>> >>> Nonetheless, when I create this manually it doesn't work. And I haven't >>> even begun to look at the Mac side yet. >>> >>> But there's hope! I've seem to have success setting up the folder >>> manually, leaving the image file in the folder, treating the whole folder >>> as a template of sorts and using revCopyFolder to duplicate it every time I >>> need a new one. >>> >>> I'm going to try that as a work-around and see how it goes. >>> >>> Many thanks! >>> >>> >>> On 4/15/2015 7:13 PM, Mike Bonner wrote: >>> >>>> Give it the full path. >>>> >>>> On Wed, Apr 15, 2015 at 12:50 PM, Mark Schonewille < >>>> m.schonewille at economy-x-talk.com> wrote: >>>> >>>> Hi Ray, >>>>> I've found the link I got the example from (IIRC): >>>>> >>>>> https://msdn.microsoft.com/en-us/library/windows/desktop/ >>>>> cc144102%28v=vs.85%29.aspx >>>>> >>>>> -- >>>>> 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 4/16/2015 02:01, Ray wrote: >>>>> >>>>> OK Mark - I've experimented a little doing this: >>>>>> Made a text file named Desktop.ini >>>>>> >>>>>> Saved the following content in it: >>>>>> [.ShellClassInfo] >>>>>> IconFile=MyIcon.ico >>>>>> IconIndex=0 >>>>>> InfoTip=Some sensible information. >>>>>> >>>>>> Created a folder on the Windows desktop named Test >>>>>> >>>>>> Moved both the file and a .ico file named MyIcon into the folder >>>>>> >>>>>> This doesn't change the appearance of the folder, although it does >>>>>> change the appearance of the text file. It puts a little gear on it. >>>>>> >>>>>> Am I missing something? >>>>>> >>>>>> On 4/15/2015 1:43 PM, Mark Schonewille wrote: >>>>>> >>>>>> Ray, >>>>>>> It is a text file. I gave you an example of the text. LiveCode can >>>>>>> create such text files. The file should be saved inside the folder of >>>>>>> which you want to change the icon. >>>>>>> >>>>>>> -- >>>>>>> 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 4/16/2015 01:37, Ray wrote: >>>>>>> >>>>>>> Mark - thanks for these tips but I'm afraid I'm not quite following >>>>>>>> you. >>>>>>>> >>>>>>>> Should the text file have any text in it? Which folder should I >>>>>>>> save it >>>>>>>> in? And finally, how do I set the settings you've outlined from >>>>>>>> within >>>>>>>> Livecode? I guess these things are delving into an area of Livecode >>>>>>>> I've never used. >>>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> Ray >>>>>>>> >>>>>>>> On 4/15/2015 12:56 PM, Mark Schonewille wrote: >>>>>>>> >>>>>>>> Hi Ray, >>>>>>>>> Make a text file with Notepad. Save it in the folder as Desktop.ini. >>>>>>>>> Use the following settings: >>>>>>>>> >>>>>>>>> [.ShellClassInfo] >>>>>>>>> IconFile=Folder.ico >>>>>>>>> IconIndex=0 >>>>>>>>> InfoTip=Some sensible information. >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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 4/15/2015 23:30, Ray wrote: >>>>>>>>> >>>>>>>>> Does anybody know of a way, from within Livecode, to create a >>>>>>>>>> folder >>>>>>>>>> and give it it's own custom display on the desktop? I'd imagine >>>>>>>>>> this >>>>>>>>>> would be done with an .ico file. I'd like to do this for both Mac >>>>>>>>>> and Windows. >>>>>>>>>> >>>>>>>>>> I've looked through the RunRev store and haven't found any >>>>>>>>>> extensions >>>>>>>>>> which do this. Maybe through a command-line somebody has written? >>>>>>>>>> >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list >>>>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Thu Apr 16 10:34:52 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Thu, 16 Apr 2015 07:34:52 -0700 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> Message-ID: <4DB6B0BE-5C0D-41EE-A35E-1416AB4EF263@earthednet.org> Scott, I looked at your wed site and wondered if you are thinking about apps that use that new way of thinking about math operations using that new grid system. Don't remember what it's called, but my grandson uses it. Some app for that could be very useful for home schoolers, too. Btw, there is now a special forum on the livecode site for folks who want to discuss education apps and pedagogy. Best, Bill William Prothero http://es.earthednet.org > On Apr 15, 2015, at 11:20 PM, Scott Morrow wrote: > > Hello Ray, > I believe I had success setting custom folder icons from LiveCode using the Xcode tool SetFile. I can?t remember who pointed me at it? probably Ken Ray. In order for this to work I needed to store the SetFile tool in a customProp of my app and temporarily write it to the user?s drive. (There may be a legal issue here. In this particular case, I covered my ears while singing ?La, la, la?) It has been several years since I last used this but seem to recall that it worked. > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web http://elementarysoftware.com/ > email scott at elementarysoftware.com > office 1-800-615-0867 > > > ?| ------------------------------------------------------------- > ?| set the custom icon bit in the Finder info flags > ?| this will tell the Finder to use the custom "icon\r" file to display a custom folder icon > ?| install the Developer Tools and look inside the /Developer/Tools/ directory for a CLI program called SetFile. > ?| This sets file bits. Specifically, you want to take note of the -a option to set attributes. > ?| Run the program without arguments and it will show you a table of things to set. > ?| We're looking for the C attribute in upper case because we want to set it on. > ?| To turn it off, you use lower case. > ?| then run this: tPathToSetFile -a C tFolderPath > ?| in order to run the Command Line Tool "SetFile" from the shell() we will need to install it temporarily > ?| suck it up and store it in the customProp ?> the uSetFileDevTool of stack "MyCoolStack" > --> -- /Developer/usr/bin/SetFile -a C /Applications/My\ App\ Name > ?| ------------------------------------------------------------- > on FolderIconFlag tFolderPath > -- determine if the SetFile command line tool has already been installed to a temp folder > put specialfolderpath(temporary) &"/SetFile" into tSetFilePath -- build the path of a temp location to install into > if not (the uSetFileIsInstalled of stack ?MyCoolStack") then > -- install SetFile app > put (decompress(the uSetFileDevTool of stack "MyCoolStack")) into URL ("binfile:" & tSetFilePath) > put the result into tResult > if tResult is not empty then > get log("ERROR:" &CR& "Attempt to write out the Command Line Tool SetFile resulted in: "&& tResult) > exit FolderIconFlag -- we failed > end if > put "755" into tPermission > Chmod tSetFilePath, tPermission > -- announce that the SetFile is installed > set the uSetFileIsInstalled of stack "MyCoolStack" to "true" > end if > > -- escape some special characters > put fixPath(tSetFilePath) into tSetFilePath > put fixPath(tFolderPath) into tFolderPath > > -- set the custom folder icon flag > get shell(tSetFilePath && "-a C"&& tFolderPath) > end FolderIconFlag > > > function fixPath pPath > put "\" & space & quote & "'`<>!;()[]?#$^&*=" into tSpecialChars > repeat for each char tChar in tSpecialChars > replace tChar with ("\" & tChar) in pPath > end repeat > return pPath > end fixPath > > >> On Apr 15, 2015, at 2:30 PM, Ray wrote: >> >> Does anybody know of a way, from within Livecode, to create a folder and give it it's own custom display on the desktop? I'd imagine this would be done with an .ico file. I'd like to do this for both Mac and Windows. >> >> I've looked through the RunRev store and haven't found any extensions which do this. Maybe through a command-line somebody has written? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Apr 16 10:37:41 2015 From: klaus at major-k.de (Klaus major-k) Date: Thu, 16 Apr 2015 16:37:41 +0200 Subject: Custom Desktop Folders In-Reply-To: <5530142E.2090301@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> Message-ID: <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> Hi Ray, > Am 16.04.2015 um 21:57 schrieb Ray : > > Mike, > > I've been wrestling with this again this morning and I'm unable to get the icon to display at all, let alone concern myself with paths. > > I'm using revCopyFolder to create the folder I want by duplicating an existing folder with the .ico file in it. RevCopyFolder duplicates the folder to another location and it includes the .ico file in the folder but it excludes the dektop.ini file. I can create one from within Livecode but it doesn't work. I can see why, too. If I right-click it, choose Properties and go to the Details tab I can see that the Desktop.ini file I made in Livecode has Attributes of "A" while the one Windows 8.1 make (when I manually set a folder icon in the folder's properties window) has Attributes of "HSA". Sounds like some sort of housing authority:) > > I've tried using RevCopyFile to duplicate the Desktop.ini file with the proper attributes to my new folder but it also fails. Evidently Windows 8.1 blocks this, even though there's no other Desktop.ini file present yet. > > So at this point I'm stuck unless I can find some way within Livecode to set the Attributes of the Desktop.ini file I create to "HSA". > > Any ideas? can?t you use something like (out of my head!): ... get shell("attrib -HSA path/to/inifile.ini?) ? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From mwieder at ahsoftware.net Thu Apr 16 10:45:36 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 16 Apr 2015 07:45:36 -0700 Subject: Why can't LC do what PencilCase does? In-Reply-To: References: <552E27F1.103@gmail.com> <552E93C2.3020106@gmail.com> <7C7E0830-65AF-4DFE-8088-F131DC87CC81@gmail.com> Message-ID: <1691691744075.20150416074536@ahsoftware.net> Pete- Wednesday, April 15, 2015, 10:25:07 AM, you wrote: > Surely autocorrect is one of THE worst things to come out of the computer > ape!!!! Best. Typo. Ever. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From klaus at major-k.de Thu Apr 16 10:57:06 2015 From: klaus at major-k.de (Klaus major-k) Date: Thu, 16 Apr 2015 16:57:06 +0200 Subject: Custom Desktop Folders In-Reply-To: <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> Message-ID: <15F20536-A8C7-4342-B441-6B2A94855471@major-k.de> Am 16.04.2015 um 16:37 schrieb Klaus major-k : > Hi Ray, > >> Am 16.04.2015 um 21:57 schrieb Ray : >> Mike, >> I've been wrestling with this again this morning and I'm unable to get the icon to display at all, let alone concern myself with paths. >> I'm using revCopyFolder to create the folder I want by duplicating an existing folder with the .ico file in it. RevCopyFolder duplicates the folder to another location and it includes the .ico file in the folder but it excludes the dektop.ini file. I can create one from within Livecode but it doesn't work. I can see why, too. If I right-click it, choose Properties and go to the Details tab I can see that the Desktop.ini file I made in Livecode has Attributes of "A" while the one Windows 8.1 make (when I manually set a folder icon in the folder's properties window) has Attributes of "HSA". Sounds like some sort of housing authority:) >> I've tried using RevCopyFile to duplicate the Desktop.ini file with the proper attributes to my new folder but it also fails. Evidently Windows 8.1 blocks this, even though there's no other Desktop.ini file present yet. >> >> So at this point I'm stuck unless I can find some way within Livecode to set the Attributes of the Desktop.ini file I create to "HSA". >> >> Any ideas? > > can?t you use something like (out of my head!): > ? > ##get shell("attrib -HSA path/to/inifile.ini?) ## I meant of course: get shell("attrib -HSA path/to/iconfile.ico?) > ? Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ray at linkit.com Thu Apr 16 17:00:29 2015 From: ray at linkit.com (Ray) Date: Thu, 16 Apr 2015 17:00:29 -0400 Subject: Custom Desktop Folders In-Reply-To: <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> Message-ID: <553022ED.6070206@LinkIt.Com> Klaus - thanks for the idea. Just to check my method of concatenation, the exact command I'm using is: get shell("attrib -HSA "&desktopIniPath&"") -- where desktopIniPath is the path to the file It doesn't work and I see no change in the file's Attributes, Type or Size. Livecode returns nothing in the result. Several other oddities I've neglected to mention; if I manually set a folder's icon (in the Properties window) I can then get Livecode to work as expected as long as I delete the folder I manually set and re-create it in Livecode (same name, same path). Seems like something's going on with the registry. Also, after creating the desktop.ini file from within Livecode I can /see /the file on the desktop even though I've got "Don't show hidden files, folder or drives" checked in Folder Options. If the system creates the desktop.ini file it's hidden. On 4/16/2015 10:37 AM, Klaus major-k wrote: > Hi Ray, > >> Am 16.04.2015 um 21:57 schrieb Ray : >> >> Mike, >> >> I've been wrestling with this again this morning and I'm unable to get the icon to display at all, let alone concern myself with paths. >> >> I'm using revCopyFolder to create the folder I want by duplicating an existing folder with the .ico file in it. RevCopyFolder duplicates the folder to another location and it includes the .ico file in the folder but it excludes the dektop.ini file. I can create one from within Livecode but it doesn't work. I can see why, too. If I right-click it, choose Properties and go to the Details tab I can see that the Desktop.ini file I made in Livecode has Attributes of "A" while the one Windows 8.1 make (when I manually set a folder icon in the folder's properties window) has Attributes of "HSA". Sounds like some sort of housing authority:) >> >> I've tried using RevCopyFile to duplicate the Desktop.ini file with the proper attributes to my new folder but it also fails. Evidently Windows 8.1 blocks this, even though there's no other Desktop.ini file present yet. >> >> So at this point I'm stuck unless I can find some way within Livecode to set the Attributes of the Desktop.ini file I create to "HSA". >> >> Any ideas? > can?t you use something like (out of my head!): > ... > get shell("attrib -HSA path/to/inifile.ini?) > ? > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Thu Apr 16 11:03:50 2015 From: klaus at major-k.de (Klaus major-k) Date: Thu, 16 Apr 2015 17:03:50 +0200 Subject: Custom Desktop Folders In-Reply-To: <553022ED.6070206@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> Message-ID: <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> Hi Ray, did you try with QUOTES? > Am 16.04.2015 um 23:00 schrieb Ray : > > Klaus - thanks for the idea. Just to check my method of concatenation, the exact command I'm using is: > get shell("attrib -HSA "&desktopIniPath&"") -- where desktopIniPath is the path to the file get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) > It doesn't work and I see no change in the file's Attributes, Type or Size. Livecode returns nothing in the result. > ... Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bonnmike at gmail.com Thu Apr 16 11:04:40 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 16 Apr 2015 09:04:40 -0600 Subject: Custom Desktop Folders In-Reply-To: <553022ED.6070206@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> Message-ID: If you set things with livecode, then hit f5 to refresh, (after creating the file,setting the attrib..) does it update, and then show the icon? Also, I did a quick search, you might be able to do this using vbscript. Also also.. *grin* It looks like XP needs the system attribute set, and others need the hidden attribute set. Finally, to SET an attribute, use + To remove it use - so it would be attrib +hs path/to/file On Thu, Apr 16, 2015 at 3:00 PM, Ray wrote: > Klaus - thanks for the idea. Just to check my method of concatenation, > the exact command I'm using is: > get shell("attrib -HSA "&desktopIniPath&"") -- where > desktopIniPath is the path to the file > > It doesn't work and I see no change in the file's Attributes, Type or > Size. Livecode returns nothing in the result. > > Several other oddities I've neglected to mention; if I manually set a > folder's icon (in the Properties window) I can then get Livecode to work as > expected as long as I delete the folder I manually set and re-create it in > Livecode (same name, same path). Seems like something's going on with the > registry. Also, after creating the desktop.ini file from within Livecode I > can /see /the file on the desktop even though I've got "Don't show hidden > files, folder or drives" checked in Folder Options. If the system creates > the desktop.ini file it's hidden. > > > On 4/16/2015 10:37 AM, Klaus major-k wrote: > >> Hi Ray, >> >> Am 16.04.2015 um 21:57 schrieb Ray : >>> >>> Mike, >>> >>> I've been wrestling with this again this morning and I'm unable to get >>> the icon to display at all, let alone concern myself with paths. >>> >>> I'm using revCopyFolder to create the folder I want by duplicating an >>> existing folder with the .ico file in it. RevCopyFolder duplicates the >>> folder to another location and it includes the .ico file in the folder but >>> it excludes the dektop.ini file. I can create one from within Livecode but >>> it doesn't work. I can see why, too. If I right-click it, choose >>> Properties and go to the Details tab I can see that the Desktop.ini file I >>> made in Livecode has Attributes of "A" while the one Windows 8.1 make (when >>> I manually set a folder icon in the folder's properties window) has >>> Attributes of "HSA". Sounds like some sort of housing authority:) >>> >>> I've tried using RevCopyFile to duplicate the Desktop.ini file with the >>> proper attributes to my new folder but it also fails. Evidently Windows >>> 8.1 blocks this, even though there's no other Desktop.ini file present yet. >>> >>> So at this point I'm stuck unless I can find some way within Livecode to >>> set the Attributes of the Desktop.ini file I create to "HSA". >>> >>> Any ideas? >>> >> can?t you use something like (out of my head!): >> ... >> get shell("attrib -HSA path/to/inifile.ini?) >> ? >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> http://www.major-k.de >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Thu Apr 16 11:05:40 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 16 Apr 2015 09:05:40 -0600 Subject: Custom Desktop Folders In-Reply-To: <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> Message-ID: oh yep, and as klaus says, if theres a space somewhere in the path, you'll need to force quotes around it, or use shortfilepath() to obviate the need. On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k wrote: > Hi Ray, > > did you try with QUOTES? > > > Am 16.04.2015 um 23:00 schrieb Ray : > > > > Klaus - thanks for the idea. Just to check my method of concatenation, > the exact command I'm using is: > > get shell("attrib -HSA "&desktopIniPath&"") -- where > desktopIniPath is the path to the file > > get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) > > > It doesn't work and I see no change in the file's Attributes, Type or > Size. Livecode returns nothing in the result. > > ... > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Thu Apr 16 17:12:33 2015 From: ray at linkit.com (Ray) Date: Thu, 16 Apr 2015 17:12:33 -0400 Subject: Custom Desktop Folders In-Reply-To: <15F20536-A8C7-4342-B441-6B2A94855471@major-k.de> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <15F20536-A8C7-4342-B441-6B2A94855471@major-k.de> Message-ID: <553025C1.1090203@LinkIt.Com> Klaus - it seems to me the issue here is the Dekstop.ini file's Attributes, not the .ico file. Even after I manually set it the .ico file's Attributes are still "A" while manually setting the folder's icon does change the Dsktop.ini's Attributes to "HSA" On 4/16/2015 10:57 AM, Klaus major-k wrote: > Am 16.04.2015 um 16:37 schrieb Klaus major-k : >> Hi Ray, >> >>> Am 16.04.2015 um 21:57 schrieb Ray : >>> Mike, >>> I've been wrestling with this again this morning and I'm unable to get the icon to display at all, let alone concern myself with paths. >>> I'm using revCopyFolder to create the folder I want by duplicating an existing folder with the .ico file in it. RevCopyFolder duplicates the folder to another location and it includes the .ico file in the folder but it excludes the dektop.ini file. I can create one from within Livecode but it doesn't work. I can see why, too. If I right-click it, choose Properties and go to the Details tab I can see that the Desktop.ini file I made in Livecode has Attributes of "A" while the one Windows 8.1 make (when I manually set a folder icon in the folder's properties window) has Attributes of "HSA". Sounds like some sort of housing authority:) >>> I've tried using RevCopyFile to duplicate the Desktop.ini file with the proper attributes to my new folder but it also fails. Evidently Windows 8.1 blocks this, even though there's no other Desktop.ini file present yet. >>> >>> So at this point I'm stuck unless I can find some way within Livecode to set the Attributes of the Desktop.ini file I create to "HSA". >>> >>> Any ideas? >> can?t you use something like (out of my head!): >> ? >> ##get shell("attrib -HSA path/to/inifile.ini?) > ## I meant of course: > get shell("attrib -HSA path/to/iconfile.ico?) > >> ? > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Thu Apr 16 17:20:08 2015 From: ray at linkit.com (Ray) Date: Thu, 16 Apr 2015 17:20:08 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> Message-ID: <55302788.4080207@LinkIt.Com> Mike - I've eliminated all spaces in the path but thanks, that's always a good thing to check. At this point nothing I do flips the Attributes from "A" to "HSA". I've changed the minus to a plus sign and tried Klaus' concatenation syntax but still no change in the Attributes. Maybe I should also be changing the visibility of the file first. When I set the folder icon manually the system does that. Do you know of a way to change visibility via the shell function? On 4/16/2015 11:05 AM, Mike Bonner wrote: > oh yep, and as klaus says, if theres a space somewhere in the path, you'll > need to force quotes around it, or use shortfilepath() to obviate the need. > > > On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k wrote: > >> Hi Ray, >> >> did you try with QUOTES? >> >>> Am 16.04.2015 um 23:00 schrieb Ray : >>> >>> Klaus - thanks for the idea. Just to check my method of concatenation, >> the exact command I'm using is: >>> get shell("attrib -HSA "&desktopIniPath&"") -- where >> desktopIniPath is the path to the file >> >> get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) >> >>> It doesn't work and I see no change in the file's Attributes, Type or >> Size. Livecode returns nothing in the result. >>> ... >> Best >> >> Klaus >> >> -- >> Klaus Major >> http://www.major-k.de >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Thu Apr 16 11:41:14 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 16 Apr 2015 09:41:14 -0600 Subject: Custom Desktop Folders In-Reply-To: <55302788.4080207@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> Message-ID: h is the hidden attribute. so +h should hide it. Weird. Going to try it real quick (win 7).. Ok. I got the attribs to set by doing them one at a time. Not sure why 2 at once doesn't work. I also read that the folder must be set to read only. SO I did attrib +r to the folder and poof. Icon. On Thu, Apr 16, 2015 at 3:20 PM, Ray wrote: > Mike - I've eliminated all spaces in the path but thanks, that's always a > good thing to check. > > At this point nothing I do flips the Attributes from "A" to "HSA". I've > changed the minus to a plus sign and tried Klaus' concatenation syntax but > still no change in the Attributes. > > Maybe I should also be changing the visibility of the file first. When I > set the folder icon manually the system does that. Do you know of a way to > change visibility via the shell function? > > On 4/16/2015 11:05 AM, Mike Bonner wrote: > >> oh yep, and as klaus says, if theres a space somewhere in the path, you'll >> need to force quotes around it, or use shortfilepath() to obviate the >> need. >> >> >> On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k wrote: >> >> Hi Ray, >>> >>> did you try with QUOTES? >>> >>> Am 16.04.2015 um 23:00 schrieb Ray : >>>> >>>> Klaus - thanks for the idea. Just to check my method of concatenation, >>>> >>> the exact command I'm using is: >>> >>>> get shell("attrib -HSA "&desktopIniPath&"") -- where >>>> >>> desktopIniPath is the path to the file >>> >>> get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) >>> >>> It doesn't work and I see no change in the file's Attributes, Type or >>>> >>> Size. Livecode returns nothing in the result. >>> >>>> ... >>>> >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> http://www.major-k.de >>> klaus at major-k.de >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Thu Apr 16 11:43:03 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 16 Apr 2015 09:43:03 -0600 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> Message-ID: Looks like setting the folder to read only does NOT make it impossible to write into the folder. If you use the properties dialog, that is not the case, so using attrib is the way. On Thu, Apr 16, 2015 at 9:41 AM, Mike Bonner wrote: > h is the hidden attribute. so +h should hide it. Weird. Going to try it > real quick (win 7).. > > Ok. I got the attribs to set by doing them one at a time. Not sure why 2 > at once doesn't work. > > I also read that the folder must be set to read only. > > SO I did attrib +r to the folder and poof. Icon. > > On Thu, Apr 16, 2015 at 3:20 PM, Ray wrote: > >> Mike - I've eliminated all spaces in the path but thanks, that's always a >> good thing to check. >> >> At this point nothing I do flips the Attributes from "A" to "HSA". I've >> changed the minus to a plus sign and tried Klaus' concatenation syntax but >> still no change in the Attributes. >> >> Maybe I should also be changing the visibility of the file first. When I >> set the folder icon manually the system does that. Do you know of a way to >> change visibility via the shell function? >> >> On 4/16/2015 11:05 AM, Mike Bonner wrote: >> >>> oh yep, and as klaus says, if theres a space somewhere in the path, >>> you'll >>> need to force quotes around it, or use shortfilepath() to obviate the >>> need. >>> >>> >>> On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k wrote: >>> >>> Hi Ray, >>>> >>>> did you try with QUOTES? >>>> >>>> Am 16.04.2015 um 23:00 schrieb Ray : >>>>> >>>>> Klaus - thanks for the idea. Just to check my method of concatenation, >>>>> >>>> the exact command I'm using is: >>>> >>>>> get shell("attrib -HSA "&desktopIniPath&"") -- where >>>>> >>>> desktopIniPath is the path to the file >>>> >>>> get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) >>>> >>>> It doesn't work and I see no change in the file's Attributes, Type or >>>>> >>>> Size. Livecode returns nothing in the result. >>>> >>>>> ... >>>>> >>>> Best >>>> >>>> Klaus >>>> >>>> -- >>>> Klaus Major >>>> http://www.major-k.de >>>> klaus at major-k.de >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From bonnmike at gmail.com Thu Apr 16 11:47:45 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 16 Apr 2015 09:47:45 -0600 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> Message-ID: Looks like you don't need the full path after all, as long as the icon is in the same directory. Can't try on xp, but setting +s and +h on the desktop.ini should cover both bases. Sorry for the spam flurry. On Thu, Apr 16, 2015 at 9:43 AM, Mike Bonner wrote: > Looks like setting the folder to read only does NOT make it impossible to > write into the folder. If you use the properties dialog, that is not the > case, so using attrib is the way. > > On Thu, Apr 16, 2015 at 9:41 AM, Mike Bonner wrote: > >> h is the hidden attribute. so +h should hide it. Weird. Going to try it >> real quick (win 7).. >> >> Ok. I got the attribs to set by doing them one at a time. Not sure why 2 >> at once doesn't work. >> >> I also read that the folder must be set to read only. >> >> SO I did attrib +r to the folder and poof. Icon. >> >> On Thu, Apr 16, 2015 at 3:20 PM, Ray wrote: >> >>> Mike - I've eliminated all spaces in the path but thanks, that's always >>> a good thing to check. >>> >>> At this point nothing I do flips the Attributes from "A" to "HSA". I've >>> changed the minus to a plus sign and tried Klaus' concatenation syntax but >>> still no change in the Attributes. >>> >>> Maybe I should also be changing the visibility of the file first. When I >>> set the folder icon manually the system does that. Do you know of a way to >>> change visibility via the shell function? >>> >>> On 4/16/2015 11:05 AM, Mike Bonner wrote: >>> >>>> oh yep, and as klaus says, if theres a space somewhere in the path, >>>> you'll >>>> need to force quotes around it, or use shortfilepath() to obviate the >>>> need. >>>> >>>> >>>> On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k >>>> wrote: >>>> >>>> Hi Ray, >>>>> >>>>> did you try with QUOTES? >>>>> >>>>> Am 16.04.2015 um 23:00 schrieb Ray : >>>>>> >>>>>> Klaus - thanks for the idea. Just to check my method of >>>>>> concatenation, >>>>>> >>>>> the exact command I'm using is: >>>>> >>>>>> get shell("attrib -HSA "&desktopIniPath&"") -- where >>>>>> >>>>> desktopIniPath is the path to the file >>>>> >>>>> get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) >>>>> >>>>> It doesn't work and I see no change in the file's Attributes, Type or >>>>>> >>>>> Size. Livecode returns nothing in the result. >>>>> >>>>>> ... >>>>>> >>>>> Best >>>>> >>>>> Klaus >>>>> >>>>> -- >>>>> Klaus Major >>>>> http://www.major-k.de >>>>> klaus at major-k.de >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > From pete at lcsql.com Thu Apr 16 11:48:01 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 16 Apr 2015 08:48:01 -0700 Subject: Datagrid question In-Reply-To: <966A30EF-5559-42B9-A9CD-3395B1976BB0@earthednet.org> References: <14cbfa51fc2-40e9-2b7e0@webprd-m46.mail.aol.com> <966A30EF-5559-42B9-A9CD-3395B1976BB0@earthednet.org> Message-ID: You need to dispatch or send the setDataOfIndex to the datagrid. Pete lcSQL Software On Apr 15, 2015 9:59 PM, "William Prothero" wrote: > Thanks! Worked like a charm. Now I suppose, to get it back in the data > grid cell, it?s: > > local savedColumnINdex,savedRowIndex ?saved from command that loaded the > data from the cell into the field. > > on mouseUp > put fld ?editedCellContents? into myEditedData > setDataOfIndex(savedRowIndex, savedColumnINdex, myEditedData) > end mouseUp > > Whoops! Not quite. The button doesn?t find the handler. I?ll have to > fiddle with it more tomorrow. It?s late here. > Thanks, > Bill > > > On Apr 15, 2015, at 5:33 PM, dunbarx at aol.com wrote: > > > > on mouseDown > > put getDataOfIndex(the dgHilitedIndexes of me,the dgColumn of the > target) into vld "yourField" > > end mouseDown > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Thu Apr 16 17:50:15 2015 From: ray at linkit.com (Ray) Date: Thu, 16 Apr 2015 17:50:15 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> Message-ID: <55302E97.4030101@LinkIt.Com> This is really interesting. I'm now using the following: get shell("attrib +HSA "&desktopIniPath&"") get shell("attrib +h "&desktopIniPath&"") get shell("attrib +r "&desktopIniPath&"") and having some success. When I check the Dsktop.ini file's attributes I now see them set to "HA". This is progress but I'm still missing the "S" in the HSA and not seeing the icon as a result. Any ideas on what that S means and how to set it? I'm using Window 8.1. On 4/16/2015 11:43 AM, Mike Bonner wrote: > Looks like setting the folder to read only does NOT make it impossible to > write into the folder. If you use the properties dialog, that is not the > case, so using attrib is the way. > > On Thu, Apr 16, 2015 at 9:41 AM, Mike Bonner wrote: > >> h is the hidden attribute. so +h should hide it. Weird. Going to try it >> real quick (win 7).. >> >> Ok. I got the attribs to set by doing them one at a time. Not sure why 2 >> at once doesn't work. >> >> I also read that the folder must be set to read only. >> >> SO I did attrib +r to the folder and poof. Icon. >> >> On Thu, Apr 16, 2015 at 3:20 PM, Ray wrote: >> >>> Mike - I've eliminated all spaces in the path but thanks, that's always a >>> good thing to check. >>> >>> At this point nothing I do flips the Attributes from "A" to "HSA". I've >>> changed the minus to a plus sign and tried Klaus' concatenation syntax but >>> still no change in the Attributes. >>> >>> Maybe I should also be changing the visibility of the file first. When I >>> set the folder icon manually the system does that. Do you know of a way to >>> change visibility via the shell function? >>> >>> On 4/16/2015 11:05 AM, Mike Bonner wrote: >>> >>>> oh yep, and as klaus says, if theres a space somewhere in the path, >>>> you'll >>>> need to force quotes around it, or use shortfilepath() to obviate the >>>> need. >>>> >>>> >>>> On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k wrote: >>>> >>>> Hi Ray, >>>>> did you try with QUOTES? >>>>> >>>>> Am 16.04.2015 um 23:00 schrieb Ray : >>>>>> Klaus - thanks for the idea. Just to check my method of concatenation, >>>>>> >>>>> the exact command I'm using is: >>>>> >>>>>> get shell("attrib -HSA "&desktopIniPath&"") -- where >>>>>> >>>>> desktopIniPath is the path to the file >>>>> >>>>> get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) >>>>> >>>>> It doesn't work and I see no change in the file's Attributes, Type or >>>>> Size. Livecode returns nothing in the result. >>>>> >>>>>> ... >>>>>> >>>>> Best >>>>> >>>>> Klaus >>>>> >>>>> -- >>>>> Klaus Major >>>>> http://www.major-k.de >>>>> klaus at major-k.de >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Thu Apr 16 13:23:30 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 16 Apr 2015 10:23:30 -0700 Subject: Datagrid question In-Reply-To: References: <14cbfa51fc2-40e9-2b7e0@webprd-m46.mail.aol.com> <966A30EF-5559-42B9-A9CD-3395B1976BB0@earthednet.org> Message-ID: I?m missing something. I have the script, in the datagrid group script: local savedRowIndex, savedColumnIndex ?this works as expected on mouseDown put the dgHilitedIndexes of me into savedRowIndex put the dgColumn of the target into savedColumnIndex put getDataOfIndex(the dgHilitedIndexes of me,the dgColumn of the target) into fld "editValue" end mouseDown ?This handler doesn?t seem to update the data grid, because when I click the cell again, the changes aren?t there. on saveLastEditedCell if savedRowIndex="" or savedColumnIndex="" then exit saveLastEditedCell end if put fld "editValue" into myData setDataOfIndex(savedColumnIndex, savedRowIndex, myData) end saveLastEditedCell This gets the data and puts it into the field. I then make changes and in a button, dispatch ?saveLastEditedCell? to the dg group script. But, it doesn?t update the cell data. There are no errors thrown, but obviously, I am missing something. Bill > On Apr 16, 2015, at 8:48 AM, Peter Haworth wrote: > > You need to dispatch or send the setDataOfIndex to the datagrid. > > Pete > lcSQL Software > On Apr 15, 2015 9:59 PM, "William Prothero" wrote: > >> Thanks! Worked like a charm. Now I suppose, to get it back in the data >> grid cell, it?s: >> >> local savedColumnINdex,savedRowIndex ?saved from command that loaded the >> data from the cell into the field. >> >> on mouseUp >> put fld ?editedCellContents? into myEditedData >> setDataOfIndex(savedRowIndex, savedColumnINdex, myEditedData) >> end mouseUp >> >> Whoops! Not quite. The button doesn?t find the handler. I?ll have to >> fiddle with it more tomorrow. It?s late here. >> Thanks, >> Bill >> >>> On Apr 15, 2015, at 5:33 PM, dunbarx at aol.com wrote: >>> >>> on mouseDown >>> put getDataOfIndex(the dgHilitedIndexes of me,the dgColumn of the >> target) into vld "yourField" >>> end mouseDown >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Thu Apr 16 13:53:52 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 16 Apr 2015 10:53:52 -0700 Subject: Datagrid question In-Reply-To: References: <14cbfa51fc2-40e9-2b7e0@webprd-m46.mail.aol.com> <966A30EF-5559-42B9-A9CD-3395B1976BB0@earthednet.org> Message-ID: setDataOfIndex doesn't redraw the datagrid. Add a call to RefreshIndex after your setDataOfIndex. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Apr 16, 2015 at 10:23 AM, William Prothero wrote: > I?m missing something. I have the script, in the datagrid group script: > > local savedRowIndex, savedColumnIndex > > ?this works as expected > on mouseDown > put the dgHilitedIndexes of me into savedRowIndex > put the dgColumn of the target into savedColumnIndex > put getDataOfIndex(the dgHilitedIndexes of me,the dgColumn of the > target) into fld "editValue" > end mouseDown > > ?This handler doesn?t seem to update the data grid, because when I click > the cell again, the changes aren?t there. > on saveLastEditedCell > if savedRowIndex="" or savedColumnIndex="" then > exit saveLastEditedCell > end if > put fld "editValue" into myData > setDataOfIndex(savedColumnIndex, savedRowIndex, myData) > end saveLastEditedCell > > This gets the data and puts it into the field. I then make changes and in > a button, dispatch ?saveLastEditedCell? to the dg group script. But, it > doesn?t update the cell data. There are no errors thrown, but obviously, I > am missing something. > > Bill > > > > On Apr 16, 2015, at 8:48 AM, Peter Haworth wrote: > > > > You need to dispatch or send the setDataOfIndex to the datagrid. > > > > Pete > > lcSQL Software > > On Apr 15, 2015 9:59 PM, "William Prothero" > wrote: > > > >> Thanks! Worked like a charm. Now I suppose, to get it back in the data > >> grid cell, it?s: > >> > >> local savedColumnINdex,savedRowIndex ?saved from command that loaded > the > >> data from the cell into the field. > >> > >> on mouseUp > >> put fld ?editedCellContents? into myEditedData > >> setDataOfIndex(savedRowIndex, savedColumnINdex, myEditedData) > >> end mouseUp > >> > >> Whoops! Not quite. The button doesn?t find the handler. I?ll have to > >> fiddle with it more tomorrow. It?s late here. > >> Thanks, > >> Bill > >> > >>> On Apr 15, 2015, at 5:33 PM, dunbarx at aol.com wrote: > >>> > >>> on mouseDown > >>> put getDataOfIndex(the dgHilitedIndexes of me,the dgColumn of the > >> target) into vld "yourField" > >>> end mouseDown > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Thu Apr 16 16:42:15 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 16 Apr 2015 13:42:15 -0700 Subject: Datagrid question In-Reply-To: References: <14cbfa51fc2-40e9-2b7e0@webprd-m46.mail.aol.com> <966A30EF-5559-42B9-A9CD-3395B1976BB0@earthednet.org> Message-ID: <960466B4-00CE-4012-BD40-16F7FCA22684@earthednet.org> Got it! Thanks! Bill > On Apr 16, 2015, at 10:53 AM, Peter Haworth wrote: > > RefreshIndex From bonnmike at gmail.com Thu Apr 16 18:29:40 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 16 Apr 2015 16:29:40 -0600 Subject: Custom Desktop Folders In-Reply-To: <55302E97.4030101@LinkIt.Com> References: <552ED877.7070902@LinkIt.Com> <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> Message-ID: S attribute marks a system file. Most likely, the A was already set. It sounds like its not taking multiple attribs at once. You might try attrib +h +s for the ini file, and then (if 8 is the same) +r for the folder after all is said and done. If you can't get +s and +h to both set in one command, you could do 2 shell calls. I think I read (probably in this thread) that xp requires one of them to be set (H or S) and everything else takes the other. But it shouldn't hurt to set both on all operating systems. If you set the defaultfolder to the inside of the folder you're working with, you can then just do: get shell("attrib +h +s desktop.ini" without messing with the path. Then, to set the folder to read only you can do get shell("attrib +r ." <-- notice the dot to designate the current folder. >From my tests you MUST set the folder to read only to get it to work. I have a working stack here, let me clean it up a little and I'll link to it. Ok, here it is. I have an icon saved to a property, all it does is create the folder, pop the icon in, create the desktop.ini, and set attributes. I had to put a 50 millisec delay in front of the shell call to attrib to get it to work. I suspect that is part of the problem you've been having getting them to set. The filesystem/os stuff isn't quite done yet when you true. Also, I did the setting with 1 shell call, +h +s works. +sh is an invalid option, so you have to break out each one. I think I knew that at one time, now I know it again! Herea a link to the file: https://dl.dropboxusercontent.com/u/11957935/seticon.livecode On Thu, Apr 16, 2015 at 3:50 PM, Ray wrote: > This is really interesting. I'm now using the following: > get shell("attrib +HSA "&desktopIniPath&"") > get shell("attrib +h "&desktopIniPath&"") > get shell("attrib +r "&desktopIniPath&"") > > and having some success. When I check the Dsktop.ini file's attributes I > now see them set to "HA". This is progress but I'm still missing the "S" > in the HSA and not seeing the icon as a result. > > Any ideas on what that S means and how to set it? I'm using Window 8.1. > > > On 4/16/2015 11:43 AM, Mike Bonner wrote: > >> Looks like setting the folder to read only does NOT make it impossible to >> write into the folder. If you use the properties dialog, that is not the >> case, so using attrib is the way. >> >> On Thu, Apr 16, 2015 at 9:41 AM, Mike Bonner wrote: >> >> h is the hidden attribute. so +h should hide it. Weird. Going to try it >>> real quick (win 7).. >>> >>> Ok. I got the attribs to set by doing them one at a time. Not sure why 2 >>> at once doesn't work. >>> >>> I also read that the folder must be set to read only. >>> >>> SO I did attrib +r to the folder and poof. Icon. >>> >>> On Thu, Apr 16, 2015 at 3:20 PM, Ray wrote: >>> >>> Mike - I've eliminated all spaces in the path but thanks, that's always >>>> a >>>> good thing to check. >>>> >>>> At this point nothing I do flips the Attributes from "A" to "HSA". I've >>>> changed the minus to a plus sign and tried Klaus' concatenation syntax >>>> but >>>> still no change in the Attributes. >>>> >>>> Maybe I should also be changing the visibility of the file first. When I >>>> set the folder icon manually the system does that. Do you know of a >>>> way to >>>> change visibility via the shell function? >>>> >>>> On 4/16/2015 11:05 AM, Mike Bonner wrote: >>>> >>>> oh yep, and as klaus says, if theres a space somewhere in the path, >>>>> you'll >>>>> need to force quotes around it, or use shortfilepath() to obviate the >>>>> need. >>>>> >>>>> >>>>> On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k >>>>> wrote: >>>>> >>>>> Hi Ray, >>>>> >>>>>> did you try with QUOTES? >>>>>> >>>>>> Am 16.04.2015 um 23:00 schrieb Ray : >>>>>> >>>>>>> Klaus - thanks for the idea. Just to check my method of >>>>>>> concatenation, >>>>>>> >>>>>>> the exact command I'm using is: >>>>>> >>>>>> get shell("attrib -HSA "&desktopIniPath&"") -- where >>>>>>> >>>>>>> desktopIniPath is the path to the file >>>>>> >>>>>> get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) >>>>>> >>>>>> It doesn't work and I see no change in the file's Attributes, Type >>>>>> or >>>>>> Size. Livecode returns nothing in the result. >>>>>> >>>>>> ... >>>>>>> >>>>>>> Best >>>>>> >>>>>> Klaus >>>>>> >>>>>> -- >>>>>> Klaus Major >>>>>> http://www.major-k.de >>>>>> klaus at major-k.de >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Thu Apr 16 18:46:08 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 16 Apr 2015 15:46:08 -0700 Subject: answer dialog duplication on building standalone? Message-ID: I'm now getting a warning when building stacks to the effect that there is already a stack named answer dialog,and that livecode won't be able to tell them apart. There is no such stack in my own stacks. Is anyone else seeing this? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Thu Apr 16 20:02:48 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 16 Apr 2015 17:02:48 -0700 Subject: answer dialog duplication on building standalone? In-Reply-To: References: Message-ID: On Thu, Apr 16, 2015 at 3:46 PM, Dr. Hawkins wrote: > I'm now getting a warning when building stacks to the effect that there is > already a stack named answer dialog, > In fact, it occurs twice. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Thu Apr 16 20:04:03 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 16 Apr 2015 17:04:03 -0700 Subject: wild variance in compile times Message-ID: On the same stack, I'm getting complile times ranging from about a minute to several minutes. 7.0.4, about a dozen substacks in a 9.1mb file. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dunbarx at aol.com Thu Apr 16 22:06:38 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 16 Apr 2015 22:06:38 -0400 Subject: wild variance in compile times In-Reply-To: References: Message-ID: <14cc520b8c9-40e9-30135@webprd-m46.mail.aol.com> Richard. Do you mean you are waiting minutes for a script change to compile??? Craig -----Original Message----- From: Dr. Hawkins To: How to use LiveCode Sent: Thu, Apr 16, 2015 8:04 pm Subject: wild variance in compile times On the same stack, I'm getting complile times ranging from about a minute to several minutes. 7.0.4, about a dozen substacks in a 9.1mb file. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Apr 17 07:57:06 2015 From: ray at linkit.com (Ray) Date: Fri, 17 Apr 2015 07:57:06 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> Message-ID: <5530F512.6070502@LinkIt.Com> That's it! Mike, thank you so much for your help on this. It's been a tricky thing. For the life of me I still can't figure out a few aspects of this, for example, why folders return to Read-only after I manually un-check that box in the folder's Properties window. But the Livecode work and setting the icon from the Shell function is working and that's what I needed. So once again, thanks! On 4/16/2015 6:29 PM, Mike Bonner wrote: > S attribute marks a system file. Most likely, the A was already set. It > sounds like its not taking multiple attribs at once. You might try attrib > +h +s for the ini file, and then (if 8 is the same) +r for the folder after > all is said and done. > > If you can't get +s and +h to both set in one command, you could do 2 shell > calls. I think I read (probably in this thread) that xp requires one of > them to be set (H or S) and everything else takes the other. But it > shouldn't hurt to set both on all operating systems. > > If you set the defaultfolder to the inside of the folder you're working > with, you can then just do: get shell("attrib +h +s desktop.ini" without > messing with the path. Then, to set the folder to read only you can do get > shell("attrib +r ." <-- notice the dot to designate the current folder. > From my tests you MUST set the folder to read only to get it to work. > > I have a working stack here, let me clean it up a little and I'll link to > it. > > Ok, here it is. I have an icon saved to a property, all it does is create > the folder, pop the icon in, create the desktop.ini, and set attributes. I > had to put a 50 millisec delay in front of the shell call to attrib to get > it to work. I suspect that is part of the problem you've been having > getting them to set. The filesystem/os stuff isn't quite done yet when you > true. Also, I did the setting with 1 shell call, +h +s works. +sh is an > invalid option, so you have to break out each one. I think I knew that at > one time, now I know it again! > > Herea a link to the file: > https://dl.dropboxusercontent.com/u/11957935/seticon.livecode > > On Thu, Apr 16, 2015 at 3:50 PM, Ray wrote: > >> This is really interesting. I'm now using the following: >> get shell("attrib +HSA "&desktopIniPath&"") >> get shell("attrib +h "&desktopIniPath&"") >> get shell("attrib +r "&desktopIniPath&"") >> >> and having some success. When I check the Dsktop.ini file's attributes I >> now see them set to "HA". This is progress but I'm still missing the "S" >> in the HSA and not seeing the icon as a result. >> >> Any ideas on what that S means and how to set it? I'm using Window 8.1. >> >> >> On 4/16/2015 11:43 AM, Mike Bonner wrote: >> >>> Looks like setting the folder to read only does NOT make it impossible to >>> write into the folder. If you use the properties dialog, that is not the >>> case, so using attrib is the way. >>> >>> On Thu, Apr 16, 2015 at 9:41 AM, Mike Bonner wrote: >>> >>> h is the hidden attribute. so +h should hide it. Weird. Going to try it >>>> real quick (win 7).. >>>> >>>> Ok. I got the attribs to set by doing them one at a time. Not sure why 2 >>>> at once doesn't work. >>>> >>>> I also read that the folder must be set to read only. >>>> >>>> SO I did attrib +r to the folder and poof. Icon. >>>> >>>> On Thu, Apr 16, 2015 at 3:20 PM, Ray wrote: >>>> >>>> Mike - I've eliminated all spaces in the path but thanks, that's always >>>>> a >>>>> good thing to check. >>>>> >>>>> At this point nothing I do flips the Attributes from "A" to "HSA". I've >>>>> changed the minus to a plus sign and tried Klaus' concatenation syntax >>>>> but >>>>> still no change in the Attributes. >>>>> >>>>> Maybe I should also be changing the visibility of the file first. When I >>>>> set the folder icon manually the system does that. Do you know of a >>>>> way to >>>>> change visibility via the shell function? >>>>> >>>>> On 4/16/2015 11:05 AM, Mike Bonner wrote: >>>>> >>>>> oh yep, and as klaus says, if theres a space somewhere in the path, >>>>>> you'll >>>>>> need to force quotes around it, or use shortfilepath() to obviate the >>>>>> need. >>>>>> >>>>>> >>>>>> On Thu, Apr 16, 2015 at 9:03 AM, Klaus major-k >>>>>> wrote: >>>>>> >>>>>> Hi Ray, >>>>>> >>>>>>> did you try with QUOTES? >>>>>>> >>>>>>> Am 16.04.2015 um 23:00 schrieb Ray : >>>>>>> >>>>>>>> Klaus - thanks for the idea. Just to check my method of >>>>>>>> concatenation, >>>>>>>> >>>>>>>> the exact command I'm using is: >>>>>>> get shell("attrib -HSA "&desktopIniPath&"") -- where >>>>>>>> desktopIniPath is the path to the file >>>>>>> get shell("attrib -HSA "& QUOTE & desktopIniPath & QUOTE) >>>>>>> >>>>>>> It doesn't work and I see no change in the file's Attributes, Type >>>>>>> or >>>>>>> Size. Livecode returns nothing in the result. >>>>>>> >>>>>>> ... >>>>>>>> Best >>>>>>> Klaus >>>>>>> >>>>>>> -- >>>>>>> Klaus Major >>>>>>> http://www.major-k.de >>>>>>> klaus at major-k.de >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Fri Apr 17 02:07:47 2015 From: gerry.orkin at gmail.com (Gerry) Date: Fri, 17 Apr 2015 16:07:47 +1000 Subject: answer dialog duplication on building standalone? In-Reply-To: References: Message-ID: <9B576B13-FB30-4E11-B4E4-0097B351B652@gmail.com> Once in each dialog window? :) g > On 17 Apr 2015, at 10:02 am, Dr. Hawkins wrote: > > In fact, it occurs twice. From bonnmike at gmail.com Fri Apr 17 08:52:26 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 17 Apr 2015 06:52:26 -0600 Subject: Custom Desktop Folders In-Reply-To: <5530F512.6070502@LinkIt.Com> References: <552E983F.6000002@economy-x-talk.com> <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> Message-ID: If you notice, when you set the read only aspect of the folder using the shell, then look at the properties of the folder, the box isn't checked. Its greyed out. This is because you set the folder itself. When you use the checkbox in the proprieties inspector for the folder, you're actually setting the rules for the contents of the folder, not the folder itself. I suspect, if you create a folder, then check that box, then check its attributes from the shell (attrib foldername) that the folder itself won't show R as one of its attribs. The checkbox isn't doing the same thing as the shell call. Freaks me out a bit actually! From ray at linkit.com Fri Apr 17 15:02:25 2015 From: ray at linkit.com (Ray) Date: Fri, 17 Apr 2015 15:02:25 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> Message-ID: <553158C1.1070504@LinkIt.Com> I see. So there are three different states of this check box: empty, checked and "squared". That's a new thing for me. I always thought there were just two states of both check boxes and radio buttons, but I think I can handle that. Thanks for laying it out. On another note, I've discovered that while the desktop icon I assign to a folder is there when I first create the folder and set it all up, it shrinks the instant I write or copy a file into the folder, either through Livecode or manually on the desktop. Do you know why this might be happening? I only see the icon I assign when viewing by medium and large icons. Could this have something to do with it? On 4/17/2015 8:52 AM, Mike Bonner wrote: > If you notice, when you set the read only aspect of the folder using the > shell, then look at the properties of the folder, the box isn't checked. > Its greyed out. This is because you set the folder itself. When you use > the checkbox in the proprieties inspector for the folder, you're actually > setting the rules for the contents of the folder, not the folder itself. > > I suspect, if you create a folder, then check that box, then check its > attributes from the shell (attrib foldername) that the folder itself won't > show R as one of its attribs. The checkbox isn't doing the same thing as > the shell call. > > Freaks me out a bit actually! > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Apr 17 09:17:09 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 17 Apr 2015 07:17:09 -0600 Subject: Custom Desktop Folders In-Reply-To: <553158C1.1070504@LinkIt.Com> References: <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> Message-ID: I'm not positive, but I THINK when you put files into the folder, it makes adjustments so that a) it still kinda shows your icon, while b) its trying to show previews of whats in the folder. I'm not sure this is what you're seeing, but it sounds right. I think there was a way around this behavior, (assuming my guess is right), but I'll have to try to remember what I saw. (probably another setting in the desktop.ini) Unfortunately, its not behaving the same for me. Maybe its a random feature! On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: > I see. So there are three different states of this check box: empty, > checked and "squared". That's a new thing for me. I always thought there > were just two states of both check boxes and radio buttons, but I think I > can handle that. Thanks for laying it out. > > On another note, I've discovered that while the desktop icon I assign to a > folder is there when I first create the folder and set it all up, it > shrinks the instant I write or copy a file into the folder, either through > Livecode or manually on the desktop. Do you know why this might be > happening? > > I only see the icon I assign when viewing by medium and large icons. > Could this have something to do with it? > > > On 4/17/2015 8:52 AM, Mike Bonner wrote: > >> If you notice, when you set the read only aspect of the folder using the >> shell, then look at the properties of the folder, the box isn't checked. >> Its greyed out. This is because you set the folder itself. When you use >> the checkbox in the proprieties inspector for the folder, you're actually >> setting the rules for the contents of the folder, not the folder itself. >> >> I suspect, if you create a folder, then check that box, then check its >> attributes from the shell (attrib foldername) that the folder itself won't >> show R as one of its attribs. The checkbox isn't doing the same thing as >> the shell call. >> >> Freaks me out a bit actually! >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Fri Apr 17 15:23:21 2015 From: ray at linkit.com (Ray) Date: Fri, 17 Apr 2015 15:23:21 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> Message-ID: <55315DA9.5080301@LinkIt.Com> Weird isn't it? I may have mentioned this,too, but after I manually change the Folder Picture via the properties window at the desktop everything works great from within Livecode if I create folders of the same name at the same path. I'm naming my folders a single capital letter as I test and I'm all the way up to 'M' since I've /used up/ all the previous letters as names. I think there's something going on in the registry. On 4/17/2015 9:17 AM, Mike Bonner wrote: > I'm not positive, but I THINK when you put files into the folder, it makes > adjustments so that a) it still kinda shows your icon, while b) its trying > to show previews of whats in the folder. I'm not sure this is what you're > seeing, but it sounds right. I think there was a way around this behavior, > (assuming my guess is right), but I'll have to try to remember what I saw. > (probably another setting in the desktop.ini) > > Unfortunately, its not behaving the same for me. Maybe its a random > feature! > > On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: > >> I see. So there are three different states of this check box: empty, >> checked and "squared". That's a new thing for me. I always thought there >> were just two states of both check boxes and radio buttons, but I think I >> can handle that. Thanks for laying it out. >> >> On another note, I've discovered that while the desktop icon I assign to a >> folder is there when I first create the folder and set it all up, it >> shrinks the instant I write or copy a file into the folder, either through >> Livecode or manually on the desktop. Do you know why this might be >> happening? >> >> I only see the icon I assign when viewing by medium and large icons. >> Could this have something to do with it? >> >> >> On 4/17/2015 8:52 AM, Mike Bonner wrote: >> >>> If you notice, when you set the read only aspect of the folder using the >>> shell, then look at the properties of the folder, the box isn't checked. >>> Its greyed out. This is because you set the folder itself. When you use >>> the checkbox in the proprieties inspector for the folder, you're actually >>> setting the rules for the contents of the folder, not the folder itself. >>> >>> I suspect, if you create a folder, then check that box, then check its >>> attributes from the shell (attrib foldername) that the folder itself won't >>> show R as one of its attribs. The checkbox isn't doing the same thing as >>> the shell call. >>> >>> Freaks me out a bit actually! >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Fri Apr 17 15:30:49 2015 From: ray at linkit.com (Ray) Date: Fri, 17 Apr 2015 15:30:49 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> Message-ID: <55315F69.3040500@LinkIt.Com> Another interesting point: after I create the Desktop.ini file from within Livecode it's text is this: [ViewState] Mode= Vid= FolderType=Pictures Logo=C:\Users\RayAc\Desktop\M\PubblyIcon.ico and the file's size is 91 bytes. After I manually set the desktop folder picture from the Properties tab, to make sure it sticks, neither the text nor the attributes change at all, but the size somehow grows to 93 bytes. Something else is happening to the Desktop.ini file when changing the folder's picture manually but I don't know what it is. On 4/17/2015 9:17 AM, Mike Bonner wrote: > I'm not positive, but I THINK when you put files into the folder, it makes > adjustments so that a) it still kinda shows your icon, while b) its trying > to show previews of whats in the folder. I'm not sure this is what you're > seeing, but it sounds right. I think there was a way around this behavior, > (assuming my guess is right), but I'll have to try to remember what I saw. > (probably another setting in the desktop.ini) > > Unfortunately, its not behaving the same for me. Maybe its a random > feature! > > On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: > >> I see. So there are three different states of this check box: empty, >> checked and "squared". That's a new thing for me. I always thought there >> were just two states of both check boxes and radio buttons, but I think I >> can handle that. Thanks for laying it out. >> >> On another note, I've discovered that while the desktop icon I assign to a >> folder is there when I first create the folder and set it all up, it >> shrinks the instant I write or copy a file into the folder, either through >> Livecode or manually on the desktop. Do you know why this might be >> happening? >> >> I only see the icon I assign when viewing by medium and large icons. >> Could this have something to do with it? >> >> >> On 4/17/2015 8:52 AM, Mike Bonner wrote: >> >>> If you notice, when you set the read only aspect of the folder using the >>> shell, then look at the properties of the folder, the box isn't checked. >>> Its greyed out. This is because you set the folder itself. When you use >>> the checkbox in the proprieties inspector for the folder, you're actually >>> setting the rules for the contents of the folder, not the folder itself. >>> >>> I suspect, if you create a folder, then check that box, then check its >>> attributes from the shell (attrib foldername) that the folder itself won't >>> show R as one of its attribs. The checkbox isn't doing the same thing as >>> the shell call. >>> >>> Freaks me out a bit actually! >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Apr 17 09:30:05 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 17 Apr 2015 07:30:05 -0600 Subject: Custom Desktop Folders In-Reply-To: <55315DA9.5080301@LinkIt.Com> References: <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315DA9.5080301@LinkIt.Com> Message-ID: Hey, quick question.. in the desktop.ini are you using IconFile=.. or IconResource=... When I use IconFile it behaves the way you describe, when I use IconResource, it keeps the icon. On Fri, Apr 17, 2015 at 1:23 PM, Ray wrote: > Weird isn't it? I may have mentioned this,too, but after I manually > change the Folder Picture via the properties window at the desktop > everything works great from within Livecode if I create folders of the same > name at the same path. I'm naming my folders a single capital letter as I > test and I'm all the way up to 'M' since I've /used up/ all the previous > letters as names. > > I think there's something going on in the registry. > > > On 4/17/2015 9:17 AM, Mike Bonner wrote: > >> I'm not positive, but I THINK when you put files into the folder, it makes >> adjustments so that a) it still kinda shows your icon, while b) its trying >> to show previews of whats in the folder. I'm not sure this is what you're >> seeing, but it sounds right. I think there was a way around this >> behavior, >> (assuming my guess is right), but I'll have to try to remember what I saw. >> (probably another setting in the desktop.ini) >> >> Unfortunately, its not behaving the same for me. Maybe its a random >> feature! >> >> On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: >> >> I see. So there are three different states of this check box: empty, >>> checked and "squared". That's a new thing for me. I always thought >>> there >>> were just two states of both check boxes and radio buttons, but I think I >>> can handle that. Thanks for laying it out. >>> >>> On another note, I've discovered that while the desktop icon I assign to >>> a >>> folder is there when I first create the folder and set it all up, it >>> shrinks the instant I write or copy a file into the folder, either >>> through >>> Livecode or manually on the desktop. Do you know why this might be >>> happening? >>> >>> I only see the icon I assign when viewing by medium and large icons. >>> Could this have something to do with it? >>> >>> >>> On 4/17/2015 8:52 AM, Mike Bonner wrote: >>> >>> If you notice, when you set the read only aspect of the folder using the >>>> shell, then look at the properties of the folder, the box isn't checked. >>>> Its greyed out. This is because you set the folder itself. When you use >>>> the checkbox in the proprieties inspector for the folder, you're >>>> actually >>>> setting the rules for the contents of the folder, not the folder itself. >>>> >>>> I suspect, if you create a folder, then check that box, then check its >>>> attributes from the shell (attrib foldername) that the folder itself >>>> won't >>>> show R as one of its attribs. The checkbox isn't doing the same thing as >>>> the shell call. >>>> >>>> Freaks me out a bit actually! >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Fri Apr 17 15:33:05 2015 From: ray at linkit.com (Ray) Date: Fri, 17 Apr 2015 15:33:05 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315DA9.5080301@LinkIt.Com> Message-ID: <55315FF1.2060708@LinkIt.Com> I've actually been using Logo= since that's what the system puts in the file when manually creating the file. I'll try IconResource... On 4/17/2015 9:30 AM, Mike Bonner wrote: > Hey, quick question.. in the desktop.ini are you using IconFile=.. or > IconResource=... When I use IconFile it behaves the way you describe, > when I use IconResource, it keeps the icon. > > On Fri, Apr 17, 2015 at 1:23 PM, Ray wrote: > >> Weird isn't it? I may have mentioned this,too, but after I manually >> change the Folder Picture via the properties window at the desktop >> everything works great from within Livecode if I create folders of the same >> name at the same path. I'm naming my folders a single capital letter as I >> test and I'm all the way up to 'M' since I've /used up/ all the previous >> letters as names. >> >> I think there's something going on in the registry. >> >> >> On 4/17/2015 9:17 AM, Mike Bonner wrote: >> >>> I'm not positive, but I THINK when you put files into the folder, it makes >>> adjustments so that a) it still kinda shows your icon, while b) its trying >>> to show previews of whats in the folder. I'm not sure this is what you're >>> seeing, but it sounds right. I think there was a way around this >>> behavior, >>> (assuming my guess is right), but I'll have to try to remember what I saw. >>> (probably another setting in the desktop.ini) >>> >>> Unfortunately, its not behaving the same for me. Maybe its a random >>> feature! >>> >>> On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: >>> >>> I see. So there are three different states of this check box: empty, >>>> checked and "squared". That's a new thing for me. I always thought >>>> there >>>> were just two states of both check boxes and radio buttons, but I think I >>>> can handle that. Thanks for laying it out. >>>> >>>> On another note, I've discovered that while the desktop icon I assign to >>>> a >>>> folder is there when I first create the folder and set it all up, it >>>> shrinks the instant I write or copy a file into the folder, either >>>> through >>>> Livecode or manually on the desktop. Do you know why this might be >>>> happening? >>>> >>>> I only see the icon I assign when viewing by medium and large icons. >>>> Could this have something to do with it? >>>> >>>> >>>> On 4/17/2015 8:52 AM, Mike Bonner wrote: >>>> >>>> If you notice, when you set the read only aspect of the folder using the >>>>> shell, then look at the properties of the folder, the box isn't checked. >>>>> Its greyed out. This is because you set the folder itself. When you use >>>>> the checkbox in the proprieties inspector for the folder, you're >>>>> actually >>>>> setting the rules for the contents of the folder, not the folder itself. >>>>> >>>>> I suspect, if you create a folder, then check that box, then check its >>>>> attributes from the shell (attrib foldername) that the folder itself >>>>> won't >>>>> show R as one of its attribs. The checkbox isn't doing the same thing as >>>>> the shell call. >>>>> >>>>> Freaks me out a bit actually! >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Fri Apr 17 09:34:45 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 17 Apr 2015 07:34:45 -0600 Subject: Custom Desktop Folders In-Reply-To: <55315F69.3040500@LinkIt.Com> References: <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> Message-ID: Strange. Wish I had win8 to try. If I set things using the property inspector, it does adjust that file, but if I only do it with my script (and set the IconResource) it stays the same. Most of the stuff you list in the file is for inside except the logo. foldertype just adjust settings for efficient indexing. All I have in my desktop.ini (again windows 7) is this: [.ShellClassInfo] IconResource=genericapp.ico with the ico file inside the folder, so no path needed after all. (if its elsewhere, of course path it!) On Fri, Apr 17, 2015 at 1:30 PM, Ray wrote: > Another interesting point: after I create the Desktop.ini file from > within Livecode it's text is this: > [ViewState] > Mode= > Vid= > FolderType=Pictures > Logo=C:\Users\RayAc\Desktop\M\PubblyIcon.ico > > and the file's size is 91 bytes. > > After I manually set the desktop folder picture from the Properties tab, > to make sure it sticks, neither the text nor the attributes change at all, > but the size somehow grows to 93 bytes. Something else is happening to the > Desktop.ini file when changing the folder's picture manually but I don't > know what it is. > > On 4/17/2015 9:17 AM, Mike Bonner wrote: > >> I'm not positive, but I THINK when you put files into the folder, it makes >> adjustments so that a) it still kinda shows your icon, while b) its trying >> to show previews of whats in the folder. I'm not sure this is what you're >> seeing, but it sounds right. I think there was a way around this >> behavior, >> (assuming my guess is right), but I'll have to try to remember what I saw. >> (probably another setting in the desktop.ini) >> >> Unfortunately, its not behaving the same for me. Maybe its a random >> feature! >> >> On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: >> >> I see. So there are three different states of this check box: empty, >>> checked and "squared". That's a new thing for me. I always thought >>> there >>> were just two states of both check boxes and radio buttons, but I think I >>> can handle that. Thanks for laying it out. >>> >>> On another note, I've discovered that while the desktop icon I assign to >>> a >>> folder is there when I first create the folder and set it all up, it >>> shrinks the instant I write or copy a file into the folder, either >>> through >>> Livecode or manually on the desktop. Do you know why this might be >>> happening? >>> >>> I only see the icon I assign when viewing by medium and large icons. >>> Could this have something to do with it? >>> >>> >>> On 4/17/2015 8:52 AM, Mike Bonner wrote: >>> >>> If you notice, when you set the read only aspect of the folder using the >>>> shell, then look at the properties of the folder, the box isn't checked. >>>> Its greyed out. This is because you set the folder itself. When you use >>>> the checkbox in the proprieties inspector for the folder, you're >>>> actually >>>> setting the rules for the contents of the folder, not the folder itself. >>>> >>>> I suspect, if you create a folder, then check that box, then check its >>>> attributes from the shell (attrib foldername) that the folder itself >>>> won't >>>> show R as one of its attribs. The checkbox isn't doing the same thing as >>>> the shell call. >>>> >>>> Freaks me out a bit actually! >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Fri Apr 17 09:35:19 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 17 Apr 2015 07:35:19 -0600 Subject: Custom Desktop Folders In-Reply-To: References: <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> Message-ID: Time for me to run away, but if things stay quirky, I'll see if I can borrow a win8 system and poke around this eve when I get back. On Fri, Apr 17, 2015 at 7:34 AM, Mike Bonner wrote: > Strange. Wish I had win8 to try. If I set things using the property > inspector, it does adjust that file, but if I only do it with my script > (and set the IconResource) it stays the same. Most of the stuff you list > in the file is for inside except the logo. > foldertype just adjust settings for efficient indexing. > > All I have in my desktop.ini (again windows 7) is this: > > [.ShellClassInfo] > IconResource=genericapp.ico > > with the ico file inside the folder, so no path needed after all. (if its > elsewhere, of course path it!) > > On Fri, Apr 17, 2015 at 1:30 PM, Ray wrote: > >> Another interesting point: after I create the Desktop.ini file from >> within Livecode it's text is this: >> [ViewState] >> Mode= >> Vid= >> FolderType=Pictures >> Logo=C:\Users\RayAc\Desktop\M\PubblyIcon.ico >> >> and the file's size is 91 bytes. >> >> After I manually set the desktop folder picture from the Properties tab, >> to make sure it sticks, neither the text nor the attributes change at all, >> but the size somehow grows to 93 bytes. Something else is happening to the >> Desktop.ini file when changing the folder's picture manually but I don't >> know what it is. >> >> On 4/17/2015 9:17 AM, Mike Bonner wrote: >> >>> I'm not positive, but I THINK when you put files into the folder, it >>> makes >>> adjustments so that a) it still kinda shows your icon, while b) its >>> trying >>> to show previews of whats in the folder. I'm not sure this is what >>> you're >>> seeing, but it sounds right. I think there was a way around this >>> behavior, >>> (assuming my guess is right), but I'll have to try to remember what I >>> saw. >>> (probably another setting in the desktop.ini) >>> >>> Unfortunately, its not behaving the same for me. Maybe its a random >>> feature! >>> >>> On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: >>> >>> I see. So there are three different states of this check box: empty, >>>> checked and "squared". That's a new thing for me. I always thought >>>> there >>>> were just two states of both check boxes and radio buttons, but I think >>>> I >>>> can handle that. Thanks for laying it out. >>>> >>>> On another note, I've discovered that while the desktop icon I assign >>>> to a >>>> folder is there when I first create the folder and set it all up, it >>>> shrinks the instant I write or copy a file into the folder, either >>>> through >>>> Livecode or manually on the desktop. Do you know why this might be >>>> happening? >>>> >>>> I only see the icon I assign when viewing by medium and large icons. >>>> Could this have something to do with it? >>>> >>>> >>>> On 4/17/2015 8:52 AM, Mike Bonner wrote: >>>> >>>> If you notice, when you set the read only aspect of the folder using >>>>> the >>>>> shell, then look at the properties of the folder, the box isn't >>>>> checked. >>>>> Its greyed out. This is because you set the folder itself. When you >>>>> use >>>>> the checkbox in the proprieties inspector for the folder, you're >>>>> actually >>>>> setting the rules for the contents of the folder, not the folder >>>>> itself. >>>>> >>>>> I suspect, if you create a folder, then check that box, then check its >>>>> attributes from the shell (attrib foldername) that the folder itself >>>>> won't >>>>> show R as one of its attribs. The checkbox isn't doing the same thing >>>>> as >>>>> the shell call. >>>>> >>>>> Freaks me out a bit actually! >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From matthias_livecode_150811 at m-r-d.de Fri Apr 17 11:35:17 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Fri, 17 Apr 2015 17:35:17 +0200 Subject: Android socket external available Message-ID: <7D0E832C-E43D-489E-8A31-1CE171B2BF74@m-r-d.de> Hi, there seems to be an Android external available which allows TCP and UDP communication on Android devices. http://hedgehao.blogspot.de/2015/04/haosocket-android-socket-for-livecode.html Regards, Matthias From bodine at bodinetraininggames.com Fri Apr 17 12:17:16 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 17 Apr 2015 09:17:16 -0700 (PDT) Subject: Filtering text styles on the Clipboard Message-ID: <1429287436381-4691239.post@n4.nabble.com> LC friends, I have an app with basic word processing and I'm looking for the best way to detect the source of what's on the clipboard. I'm trying to apply two rules: 1) Text formatted within LC can be copy/pasted with styled text using clipboardData["styledText"] 2) Text formatted from outside of LC is pasted as plain text using clipboardData["text"] (so LC field formatting is automatically applied to it.) The reason for rule 2 is to filter out formatting by Word or other sources that tends to cause issues. My kludgy method is to identify any text copied within LC by doing a comparison. When there's a copy/cut cmd in LC, it stores a copy of that Styledtext in a global variable. When a paste cmd is given, the clipboardData["StyledText"] is compared to that variable. If it matches, rule 1 applies, otherwise, rule 2. I have this nagging feeling that there's a more direct way that I've overlooked. Anybody know of one? Thanks, Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Filtering-text-styles-on-the-Clipboard-tp4691239.html Sent from the Revolution - User mailing list archive at Nabble.com. From ray at linkit.com Fri Apr 17 18:39:00 2015 From: ray at linkit.com (Ray) Date: Fri, 17 Apr 2015 18:39:00 -0400 Subject: Custom Desktop Folders In-Reply-To: References: <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> Message-ID: <55318B84.1060908@LinkIt.Com> Mike - I'm happy to report that this is totally resolved. I was using something else as the text of the Desktop.ini file. When I switched to simply: [.ShellClassInfo] IconResource=genericapp.ico with no path whatsoever, everything began to work flawlessly. Thanks for going the extra mile with me on this one. Tricky thing, wasn't it? Many thanks!!!! On 4/17/2015 9:35 AM, Mike Bonner wrote: > Time for me to run away, but if things stay quirky, I'll see if I can > borrow a win8 system and poke around this eve when I get back. > > On Fri, Apr 17, 2015 at 7:34 AM, Mike Bonner wrote: > >> Strange. Wish I had win8 to try. If I set things using the property >> inspector, it does adjust that file, but if I only do it with my script >> (and set the IconResource) it stays the same. Most of the stuff you list >> in the file is for inside except the logo. >> foldertype just adjust settings for efficient indexing. >> >> All I have in my desktop.ini (again windows 7) is this: >> >> [.ShellClassInfo] >> IconResource=genericapp.ico >> >> with the ico file inside the folder, so no path needed after all. (if its >> elsewhere, of course path it!) >> >> On Fri, Apr 17, 2015 at 1:30 PM, Ray wrote: >> >>> Another interesting point: after I create the Desktop.ini file from >>> within Livecode it's text is this: >>> [ViewState] >>> Mode= >>> Vid= >>> FolderType=Pictures >>> Logo=C:\Users\RayAc\Desktop\M\PubblyIcon.ico >>> >>> and the file's size is 91 bytes. >>> >>> After I manually set the desktop folder picture from the Properties tab, >>> to make sure it sticks, neither the text nor the attributes change at all, >>> but the size somehow grows to 93 bytes. Something else is happening to the >>> Desktop.ini file when changing the folder's picture manually but I don't >>> know what it is. >>> >>> On 4/17/2015 9:17 AM, Mike Bonner wrote: >>> >>>> I'm not positive, but I THINK when you put files into the folder, it >>>> makes >>>> adjustments so that a) it still kinda shows your icon, while b) its >>>> trying >>>> to show previews of whats in the folder. I'm not sure this is what >>>> you're >>>> seeing, but it sounds right. I think there was a way around this >>>> behavior, >>>> (assuming my guess is right), but I'll have to try to remember what I >>>> saw. >>>> (probably another setting in the desktop.ini) >>>> >>>> Unfortunately, its not behaving the same for me. Maybe its a random >>>> feature! >>>> >>>> On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: >>>> >>>> I see. So there are three different states of this check box: empty, >>>>> checked and "squared". That's a new thing for me. I always thought >>>>> there >>>>> were just two states of both check boxes and radio buttons, but I think >>>>> I >>>>> can handle that. Thanks for laying it out. >>>>> >>>>> On another note, I've discovered that while the desktop icon I assign >>>>> to a >>>>> folder is there when I first create the folder and set it all up, it >>>>> shrinks the instant I write or copy a file into the folder, either >>>>> through >>>>> Livecode or manually on the desktop. Do you know why this might be >>>>> happening? >>>>> >>>>> I only see the icon I assign when viewing by medium and large icons. >>>>> Could this have something to do with it? >>>>> >>>>> >>>>> On 4/17/2015 8:52 AM, Mike Bonner wrote: >>>>> >>>>> If you notice, when you set the read only aspect of the folder using >>>>>> the >>>>>> shell, then look at the properties of the folder, the box isn't >>>>>> checked. >>>>>> Its greyed out. This is because you set the folder itself. When you >>>>>> use >>>>>> the checkbox in the proprieties inspector for the folder, you're >>>>>> actually >>>>>> setting the rules for the contents of the folder, not the folder >>>>>> itself. >>>>>> >>>>>> I suspect, if you create a folder, then check that box, then check its >>>>>> attributes from the shell (attrib foldername) that the folder itself >>>>>> won't >>>>>> show R as one of its attribs. The checkbox isn't doing the same thing >>>>>> as >>>>>> the shell call. >>>>>> >>>>>> Freaks me out a bit actually! >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Fri Apr 17 12:59:30 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 17 Apr 2015 18:59:30 +0200 Subject: answer dialog duplication on building standalone? In-Reply-To: References: Message-ID: <55313BF2.80500@economy-x-talk.com> Hi Richard, I see this very often. Perhaps it has to do with my own scripts that use the answer and ask dialogs immediately before I build a standalone. It could also have something to do with password-protected stacks. I tend to ignore these warnings. -- 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 4/17/2015 00:46, Dr. Hawkins wrote: > I'm now getting a warning when building stacks to the effect that there is > already a stack named answer dialog,and that livecode won't be able to tell > them apart. There is no such stack in my own stacks. > > Is anyone else seeing this? > From m.schonewille at economy-x-talk.com Fri Apr 17 17:27:24 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 17 Apr 2015 23:27:24 +0200 Subject: Answering a few questions about my book Message-ID: <55317ABC.3050607@economy-x-talk.com> Hi everyone, A few people have asked me whether my book is still relevant, now that LiveCode 7 handles text differently and LiveCode 8 will provide a number of significant new features . The book is mainly about the scripting language. More than 99% of the LiveCode language has continued to work from Revolution 3.5 till LiveCode 8. Probably, more than 99.9% of the language as discussed in my book, still works in LiveCode 8 (and probably future versions too). Currently, I have no plans to rewrite the book. If I ever do so, I would probably focus on the new properties inspector and new text features, not so much on widgets and html5. This way, the book will serve its purpose best: an introduction to LiveCode for real beginners. I have also been asked if I'm going to write more books about LiveCode. Probably I will. One book is making good progress and will be available in a few months; hopefully before the end of summer, but only when I'm satisfied about it. The question I get most frequently is about publishing an e-book. It has to be said again: Programming LiveCode for the Real Beginner will not be published as an e-book. I might decide to publish an e-book some time, but it won't be this book. If you have any more questions, please read this blog post http://tinyurl.com/n9ogfrs It answers almost all questions. You can also send an e-mail to support at economy-x-talk.com -- 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/ From bonnmike at gmail.com Fri Apr 17 17:45:14 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 17 Apr 2015 15:45:14 -0600 Subject: Custom Desktop Folders In-Reply-To: <55318B84.1060908@LinkIt.Com> References: <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> Message-ID: Glad its working! Time for a beer. Of the root variety. :) Have a great weekend. On Fri, Apr 17, 2015 at 4:39 PM, Ray wrote: > Mike - I'm happy to report that this is totally resolved. I was using > something else as the text of the Desktop.ini file. When I switched to > simply: > > [.ShellClassInfo] > IconResource=genericapp.ico > > with no path whatsoever, everything began to work flawlessly. > > Thanks for going the extra mile with me on this one. Tricky thing, wasn't > it? > > Many thanks!!!! > > > On 4/17/2015 9:35 AM, Mike Bonner wrote: > >> Time for me to run away, but if things stay quirky, I'll see if I can >> borrow a win8 system and poke around this eve when I get back. >> >> On Fri, Apr 17, 2015 at 7:34 AM, Mike Bonner wrote: >> >> Strange. Wish I had win8 to try. If I set things using the property >>> inspector, it does adjust that file, but if I only do it with my script >>> (and set the IconResource) it stays the same. Most of the stuff you >>> list >>> in the file is for inside except the logo. >>> foldertype just adjust settings for efficient indexing. >>> >>> All I have in my desktop.ini (again windows 7) is this: >>> >>> [.ShellClassInfo] >>> IconResource=genericapp.ico >>> >>> with the ico file inside the folder, so no path needed after all. (if its >>> elsewhere, of course path it!) >>> >>> On Fri, Apr 17, 2015 at 1:30 PM, Ray wrote: >>> >>> Another interesting point: after I create the Desktop.ini file from >>>> within Livecode it's text is this: >>>> [ViewState] >>>> Mode= >>>> Vid= >>>> FolderType=Pictures >>>> Logo=C:\Users\RayAc\Desktop\M\PubblyIcon.ico >>>> >>>> and the file's size is 91 bytes. >>>> >>>> After I manually set the desktop folder picture from the Properties tab, >>>> to make sure it sticks, neither the text nor the attributes change at >>>> all, >>>> but the size somehow grows to 93 bytes. Something else is happening to >>>> the >>>> Desktop.ini file when changing the folder's picture manually but I don't >>>> know what it is. >>>> >>>> On 4/17/2015 9:17 AM, Mike Bonner wrote: >>>> >>>> I'm not positive, but I THINK when you put files into the folder, it >>>>> makes >>>>> adjustments so that a) it still kinda shows your icon, while b) its >>>>> trying >>>>> to show previews of whats in the folder. I'm not sure this is what >>>>> you're >>>>> seeing, but it sounds right. I think there was a way around this >>>>> behavior, >>>>> (assuming my guess is right), but I'll have to try to remember what I >>>>> saw. >>>>> (probably another setting in the desktop.ini) >>>>> >>>>> Unfortunately, its not behaving the same for me. Maybe its a random >>>>> feature! >>>>> >>>>> On Fri, Apr 17, 2015 at 1:02 PM, Ray wrote: >>>>> >>>>> I see. So there are three different states of this check box: empty, >>>>> >>>>>> checked and "squared". That's a new thing for me. I always thought >>>>>> there >>>>>> were just two states of both check boxes and radio buttons, but I >>>>>> think >>>>>> I >>>>>> can handle that. Thanks for laying it out. >>>>>> >>>>>> On another note, I've discovered that while the desktop icon I assign >>>>>> to a >>>>>> folder is there when I first create the folder and set it all up, it >>>>>> shrinks the instant I write or copy a file into the folder, either >>>>>> through >>>>>> Livecode or manually on the desktop. Do you know why this might be >>>>>> happening? >>>>>> >>>>>> I only see the icon I assign when viewing by medium and large icons. >>>>>> Could this have something to do with it? >>>>>> >>>>>> >>>>>> On 4/17/2015 8:52 AM, Mike Bonner wrote: >>>>>> >>>>>> If you notice, when you set the read only aspect of the folder using >>>>>> >>>>>>> the >>>>>>> shell, then look at the properties of the folder, the box isn't >>>>>>> checked. >>>>>>> Its greyed out. This is because you set the folder itself. When you >>>>>>> use >>>>>>> the checkbox in the proprieties inspector for the folder, you're >>>>>>> actually >>>>>>> setting the rules for the contents of the folder, not the folder >>>>>>> itself. >>>>>>> >>>>>>> I suspect, if you create a folder, then check that box, then check >>>>>>> its >>>>>>> attributes from the shell (attrib foldername) that the folder itself >>>>>>> won't >>>>>>> show R as one of its attribs. The checkbox isn't doing the same thing >>>>>>> as >>>>>>> the shell call. >>>>>>> >>>>>>> Freaks me out a bit actually! >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sat Apr 18 15:16:38 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 18 Apr 2015 12:16:38 -0700 Subject: Does LC actually build for Android 2.2? Message-ID: <5532AD96.4050205@fourthworld.com> How? Given how few folks use 2.2 it's not a deal-breaker if I can't build for it, but I have an old tablet I'd like to use for stress testing and it runs 2.2. The app builds for 2.2 and installs fine on both the 2.2 emulator and the tablet, but when it launches I see a black screen briefly and then it dies, with no further info. Any clues? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Sat Apr 18 15:45:40 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 18 Apr 2015 13:45:40 -0600 Subject: Does LC actually build for Android 2.2? In-Reply-To: <5532AD96.4050205@fourthworld.com> References: <5532AD96.4050205@fourthworld.com> Message-ID: I saw a work around for this at one point, let me see if I can locate it again. (assuming its the same issue that i'm trying to remember) Ah k. Found it I think. (not the thing I remember, but theres a reference to the problem..) http://forums.livecode.com/viewtopic.php?f=7&t=23366&p=120947&hilit=black+screen+android#p120947 Specifically this response: by *jacque * ? Wed Feb 25, 2015 10:09 pm Hm, I'm not sure. What you're describing is a crash, and it used to happen in 2.2 if any sensors were turned on. Turning off all the sensors fixed it, but it was just easier to build for 2.3 which did work. I can't remember now whether the sensors were the ones listed in standalone settings, or whether it had to be done through a terminal app. One of the team members did it while I watched and he was moving so fast in Terminal that I couldn't follow it. One thing to check is that all the Requirements and Restrictions in standalone settings are set to N/A. On Sat, Apr 18, 2015 at 1:16 PM, Richard Gaskin wrote: > How? > > Given how few folks use 2.2 it's not a deal-breaker if I can't build for > it, but I have an old tablet I'd like to use for stress testing and it runs > 2.2. > > The app builds for 2.2 and installs fine on both the 2.2 emulator and the > tablet, but when it launches I see a black screen briefly and then it dies, > with no further info. > > Any clues? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Sat Apr 18 16:04:02 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 18 Apr 2015 13:04:02 -0700 Subject: Does LC actually build for Android 2.2? In-Reply-To: References: Message-ID: <5532B8B2.2040703@fourthworld.com> Thanks Mike, but unfortunately that doesn't do it for me. And for those for whom it worked, was a bug report filed? Many of those sensors exist on devices running Android 2.2, so having to turn off support for them would be a bug. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Mike Bonner wrote: > I saw a work around for this at one point, let me see if I can locate it > again. (assuming its the same issue that i'm trying to remember) > > Ah k. Found it I think. (not the thing I remember, but theres a reference > to the problem..) > http://forums.livecode.com/viewtopic.php?f=7&t=23366&p=120947&hilit=black+screen+android#p120947 > > Specifically this response: > > by *jacque > * ? Wed > Feb 25, 2015 10:09 pm > Hm, I'm not sure. What you're describing is a crash, and it used to happen > in 2.2 if any sensors were turned on. Turning off all the sensors fixed it, > but it was just easier to build for 2.3 which did work. I can't remember > now whether the sensors were the ones listed in standalone settings, or > whether it had to be done through a terminal app. One of the team members > did it while I watched and he was moving so fast in Terminal that I > couldn't follow it. One thing to check is that all the Requirements and > Restrictions in standalone settings are set to N/A. > > On Sat, Apr 18, 2015 at 1:16 PM, Richard Gaskin > wrote: > >> How? >> >> Given how few folks use 2.2 it's not a deal-breaker if I can't build for >> it, but I have an old tablet I'd like to use for stress testing and it runs >> 2.2. >> >> The app builds for 2.2 and installs fine on both the 2.2 emulator and the >> tablet, but when it launches I see a black screen briefly and then it dies, >> with no further info. >> >> Any clues? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Sat Apr 18 16:47:31 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 18 Apr 2015 14:47:31 -0600 Subject: Does LC actually build for Android 2.2? In-Reply-To: <5532B8B2.2040703@fourthworld.com> References: <5532B8B2.2040703@fourthworld.com> Message-ID: yeah, the thread mentioned a bug report being filed, I don't know the bug number. agreed, turning off the sensors isn't an answer. I gave up on 2.2 a while back, but haven't tested recently. On Sat, Apr 18, 2015 at 2:04 PM, Richard Gaskin wrote: > Thanks Mike, but unfortunately that doesn't do it for me. > > And for those for whom it worked, was a bug report filed? Many of those > sensors exist on devices running Android 2.2, so having to turn off support > for them would be a bug. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > Mike Bonner wrote: > > I saw a work around for this at one point, let me see if I can locate it >> again. (assuming its the same issue that i'm trying to remember) >> >> Ah k. Found it I think. (not the thing I remember, but theres a reference >> to the problem..) >> >> http://forums.livecode.com/viewtopic.php?f=7&t=23366&p=120947&hilit=black+screen+android#p120947 >> >> Specifically this response: >> >> by *jacque >> * ? Wed >> Feb 25, 2015 10:09 pm >> Hm, I'm not sure. What you're describing is a crash, and it used to happen >> in 2.2 if any sensors were turned on. Turning off all the sensors fixed >> it, >> but it was just easier to build for 2.3 which did work. I can't remember >> now whether the sensors were the ones listed in standalone settings, or >> whether it had to be done through a terminal app. One of the team members >> did it while I watched and he was moving so fast in Terminal that I >> couldn't follow it. One thing to check is that all the Requirements and >> Restrictions in standalone settings are set to N/A. >> >> On Sat, Apr 18, 2015 at 1:16 PM, Richard Gaskin > fourthworld.com> >> wrote: >> >> How? >>> >>> Given how few folks use 2.2 it's not a deal-breaker if I can't build for >>> it, but I have an old tablet I'd like to use for stress testing and it >>> runs >>> 2.2. >>> >>> The app builds for 2.2 and installs fine on both the 2.2 emulator and the >>> tablet, but when it launches I see a black screen briefly and then it >>> dies, >>> with no further info. >>> >>> Any clues? >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Sat Apr 18 16:52:01 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 18 Apr 2015 14:52:01 -0600 Subject: Does LC actually build for Android 2.2? In-Reply-To: References: <5532B8B2.2040703@fourthworld.com> Message-ID: http://quality.runrev.com/show_bug.cgi?id=14684 <-- that one On Sat, Apr 18, 2015 at 2:47 PM, Mike Bonner wrote: > yeah, the thread mentioned a bug report being filed, I don't know the bug > number. agreed, turning off the sensors isn't an answer. I gave up on 2.2 a > while back, but haven't tested recently. > > On Sat, Apr 18, 2015 at 2:04 PM, Richard Gaskin < > ambassador at fourthworld.com> wrote: > >> Thanks Mike, but unfortunately that doesn't do it for me. >> >> And for those for whom it worked, was a bug report filed? Many of those >> sensors exist on devices running Android 2.2, so having to turn off support >> for them would be a bug. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> Mike Bonner wrote: >> >> I saw a work around for this at one point, let me see if I can locate it >>> again. (assuming its the same issue that i'm trying to remember) >>> >>> Ah k. Found it I think. (not the thing I remember, but theres a reference >>> to the problem..) >>> >>> http://forums.livecode.com/viewtopic.php?f=7&t=23366&p=120947&hilit=black+screen+android#p120947 >>> >>> Specifically this response: >>> >>> by *jacque >>> * ? Wed >>> Feb 25, 2015 10:09 pm >>> Hm, I'm not sure. What you're describing is a crash, and it used to >>> happen >>> in 2.2 if any sensors were turned on. Turning off all the sensors fixed >>> it, >>> but it was just easier to build for 2.3 which did work. I can't remember >>> now whether the sensors were the ones listed in standalone settings, or >>> whether it had to be done through a terminal app. One of the team members >>> did it while I watched and he was moving so fast in Terminal that I >>> couldn't follow it. One thing to check is that all the Requirements and >>> Restrictions in standalone settings are set to N/A. >>> >>> On Sat, Apr 18, 2015 at 1:16 PM, Richard Gaskin >> fourthworld.com> >>> wrote: >>> >>> How? >>>> >>>> Given how few folks use 2.2 it's not a deal-breaker if I can't build for >>>> it, but I have an old tablet I'd like to use for stress testing and it >>>> runs >>>> 2.2. >>>> >>>> The app builds for 2.2 and installs fine on both the 2.2 emulator and >>>> the >>>> tablet, but when it launches I see a black screen briefly and then it >>>> dies, >>>> with no further info. >>>> >>>> Any clues? >>>> >>>> -- >>>> Richard Gaskin >>>> Fourth World Systems >>>> Software Design and Development for the Desktop, Mobile, and the Web >>>> ____________________________________________________________________ >>>> Ambassador at FourthWorld.com >>>> http://www.FourthWorld.com >>>> >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From ambassador at fourthworld.com Sat Apr 18 17:42:20 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 18 Apr 2015 14:42:20 -0700 Subject: Does LC actually build for Android 2.2? In-Reply-To: References: Message-ID: <5532CFBC.9020005@fourthworld.com> Mike Bonner wrote: > http://quality.runrev.com/show_bug.cgi?id=14684 <-- that one Thanks, Mike. I added this comment there: If it's very easy to support Android 2.2 then let's do it soon. I spent yet another afternoon trying this, to no avail. But if it takes more than a few minutes, it's probably cheaper and easier, and no more detrimental, to just nix all mention of Android 2.2 as LiveCode's baseline. As of March 2, the percentage of Android devices running 2.2 is 0.4%: http://thedroidguy.com/2015/03/android-5-0-marketshare-more-than-doubled-since-february-report-103759 Too many LiveCoders have spent way too much time trying without success to get LC to build on Android 2.2. Let's just say the baseline is 2.3 and move on. 99.6% of the market should be enough for any serious developer. In fact, the few who are still using a many-years-old device that can't upgrade past 2.2 are very unlikely to contribute to a developer's bottom line, so they're hardly worth spending any time pursuing. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Sat Apr 18 18:03:49 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 18 Apr 2015 16:03:49 -0600 Subject: Does LC actually build for Android 2.2? In-Reply-To: <5532CFBC.9020005@fourthworld.com> References: <5532CFBC.9020005@fourthworld.com> Message-ID: Wow. Yep, I agree. Let 2.2 go. On Sat, Apr 18, 2015 at 3:42 PM, Richard Gaskin wrote: > Mike Bonner wrote: > >> http://quality.runrev.com/show_bug.cgi?id=14684 <-- that one >> > > Thanks, Mike. I added this comment there: > > If it's very easy to support Android 2.2 then let's do it soon. > I spent yet another afternoon trying this, to no avail. > > But if it takes more than a few minutes, it's probably cheaper > and easier, and no more detrimental, to just nix all mention > of Android 2.2 as LiveCode's baseline. > > As of March 2, the percentage of Android devices running 2.2 > is 0.4%: > > > http://thedroidguy.com/2015/03/android-5-0-marketshare-more-than-doubled-since-february-report-103759 > > Too many LiveCoders have spent way too much time trying without > success to get LC to build on Android 2.2. > > Let's just say the baseline is 2.3 and move on. 99.6% of the market > should be enough for any serious developer. > > In fact, the few who are still using a many-years-old device that > can't upgrade past 2.2 are very unlikely to contribute to a > developer's bottom line, so they're hardly worth spending any time > pursuing. > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dochawk at gmail.com Sat Apr 18 22:44:03 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 18 Apr 2015 19:44:03 -0700 Subject: another day lost to the ide and crashes Message-ID: I spent a full *five* hours today trying to track a presumably bad line of code--because whichever it was, it was causing the ide to crash, rather than throw an error. This nonsense has *got* to stop. It appears to be related to sending a message that assumes the existence of a file or edit window button too early during startup (during openstack)--but I can't really tell. The reason I think that is that if I used an answer and breakpoint, it didn't happen, as the ide kept loading. I finally had to resort to code that modified a disk file for checkpointing. ANd at this point, the behavior stopped. I'd file a bug report, but I know what happens to this type (closed because I can't produce a stack) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Sat Apr 18 22:48:56 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 18 Apr 2015 19:48:56 -0700 Subject: confirmation dialog opening on second screen can't be answered Message-ID: No idea how to reproduce *this* one; it bit three or four times today. all windows on main screen, except the application browser, which overlapped both. Yosemite, but with that separate workspaces nonsense turned off. At times, it would pop the "are you sure"/save boxes on the second screen. I have no idea why. It is impossible to click either choice when this happens. Finally, it occurred to me to pull the cable, which froced all the windows onto the main sreen. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From stephenREVOLUTION2 at barncard.com Sat Apr 18 23:30:49 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sat, 18 Apr 2015 20:30:49 -0700 Subject: confirmation dialog opening on second screen can't be answered In-Reply-To: References: Message-ID: Dr. Hawkins, There has been a lot of angst here too with multiple monitors. My rig has THREE now. One DVI to apple cinema 23, one displayport with a DVI adapter to another cinema 23, and one NewerTech USB adapter (which has Displayport software) going to a 40" HDMI monitor. The last version of Yosemite 10.10.2 had unbelievable problems - stacking order, mirroring I didn't want, things changing. 10.10.3 seemed to help the monitors get in line, although there was a moment after the upgrade when all three screens went to 4x magnification and tried to 'tile' badly and it was impossible to get the system preferences in view, plus no cursor - flying blind. A forced restart brought order and things in the right places again, even after reboot. Before the prefs would scramble if the HDMI monitor was plugged in on boot. Methinks Apple is finally getting their portion of their multi-screen bugs working. There's a lot going on, with the way the new 'spaces' interacts with multiple displays... makes my head hurt. you have my sympathies. But it appears that the new update to 10.10.3 fixes some things. sqb -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words On Sat, Apr 18, 2015 at 7:48 PM, Dr. Hawkins wrote: > No idea how to reproduce *this* one; it bit three or four times today. > > all windows on main screen, except the application browser, which > overlapped both. Yosemite, but with that separate workspaces nonsense > turned off. > > At times, it would pop the "are you sure"/save boxes on the second screen. > I have no idea why. > > It is impossible to click either choice when this happens. Finally, it > occurred to me to pull the cable, which froced all the windows onto the > main sreen. > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sun Apr 19 02:09:39 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 19 Apr 2015 01:09:39 -0500 Subject: confirmation dialog opening on second screen can't be answered In-Reply-To: References: Message-ID: <1FB32613-5981-47A1-A493-E0F21AF75FA5@hyperactivesw.com> On April 18, 2015 9:48:56 PM CDT, "Dr. Hawkins" wrote: >At times, it would pop the "are you sure"/save boxes on the second >screen. >I have no idea why. > >It is impossible to click either choice when this happens. Finally, it >occurred to me to pull the cable, which froced all the windows onto the >main sreen. If it happens again, try typing the return key if you didn't already. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Apr 19 02:14:54 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 19 Apr 2015 01:14:54 -0500 Subject: another day lost to the ide and crashes In-Reply-To: References: Message-ID: <568398FD-D7A3-4B72-9E54-A06242979C9A@hyperactivesw.com> On April 18, 2015 9:44:03 PM CDT, "Dr. Hawkins" wrote: > >It appears to be related to sending a message that assumes the >existence of >a file or edit window button too early during startup (during >openstack)--but I can't really tell. The reason I think that is that >if I >used an answer and breakpoint, it didn't happen, as the ide kept >loading. Red dot breakpoints don't always trigger early in the startup sequence but often typing the word "breakpoint" into the script will work. It's a useful way to debug in pre-whatever handlers. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From curry at pair.com Sun Apr 19 09:42:01 2015 From: curry at pair.com (Curry Kenworthy) Date: Sun, 19 Apr 2015 08:42:01 -0500 Subject: another day lost to the ide and crashes In-Reply-To: References: Message-ID: <5533B0A9.1070205@pair.com> Richard E. Hawkins: > I spent a full *five* hours today trying to track a presumably bad > line of code--because whichever it was, it was causing the ide to > crash, rather than throw an error. This may not be relevant to your issue, but keeping the LiveCode Debug mode on can cause the IDE to freeze. At least in some LC versions. I always keep Debug mode off by default until I need it, and then I double-check first that things are saved before turning it on! :) Best wishes, Curry Kenworthy Custom Software Development http://curryk.com/consulting/ From dochawk at gmail.com Sun Apr 19 11:38:15 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 19 Apr 2015 08:38:15 -0700 Subject: another day lost to the ide and crashes In-Reply-To: <568398FD-D7A3-4B72-9E54-A06242979C9A@hyperactivesw.com> References: <568398FD-D7A3-4B72-9E54-A06242979C9A@hyperactivesw.com> Message-ID: On Sat, Apr 18, 2015 at 11:14 PM, J. Landman Gay wrote: > Red dot breakpoints don't always trigger early in the startup sequence but > often typing the word "breakpoint" into the script will work. It's a useful > way to debug in pre-whatever handlers. I wasn't even fighting red dots yesterday, nor their adherence to the Pirate Code . . . Even breakpoint isn't enough until there has been some user interaction; I have to use answer, then breakpoint, to get it to stop. This was a matter of not being able to stop the hard crash of the IDE itself, and the sittuation being solved by answer. grr. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From paul at researchware.com Sun Apr 19 11:39:55 2015 From: paul at researchware.com (Paul Dupuis) Date: Sun, 19 Apr 2015 11:39:55 -0400 Subject: Basic Table Field prints as one solid color Message-ID: <5533CC4B.6070100@researchware.com> Help! I am trying to print a card with a single field on it. The field is a basic table field (i.e. hGrid and vGrid set to true, dontWrap to true, etc.). I.e. all the standard field settings you get when you drag a "Basic Table Field" off the tool palette in LC6.6.5, 6.7.4, or 7.0.4. The same issue/error is present in all 3 versions of LC, although I am working in LC6.6.5 under Windows. If either the vGrid or hGrid are set to true, the field prints as a solid block of color of whatever the field borderColor is set to. You test this by creating a new stack. Place a single table field on stack. Populate the field with some data (a few columns and rows) and execute "Print cd" in the message box. NOTE: It is important the field has data. An empty table field prints with the grid drawn correctly as expected, but any data in the table gets printed as a block of the borderColor. Has anyone encountered this issue? Does anyone have a work-around that lets a table field with it's grids on be printed properly? I have tried explicitly setting the stack bgColor, cd bgColor and fld bgColor to white, the text color to black and the borderColor of the field to grey, but that just gets me a grey block instead of a black block. From dochawk at gmail.com Sun Apr 19 11:40:05 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Sun, 19 Apr 2015 08:40:05 -0700 Subject: confirmation dialog opening on second screen can't be answered In-Reply-To: <1FB32613-5981-47A1-A493-E0F21AF75FA5@hyperactivesw.com> References: <1FB32613-5981-47A1-A493-E0F21AF75FA5@hyperactivesw.com> Message-ID: On Sat, Apr 18, 2015 at 11:09 PM, J. Landman Gay wrote: > If it happens again, try typing the return key if you didn't already. > Tried that. Hmm, maybe I should have tried focusing on the primary screen for that. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Sun Apr 19 12:08:13 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 19 Apr 2015 11:08:13 -0500 Subject: another day lost to the ide and crashes In-Reply-To: References: <568398FD-D7A3-4B72-9E54-A06242979C9A@hyperactivesw.com> Message-ID: <4C2303EF-829D-4EEA-A3E2-79039E4DD92D@hyperactivesw.com> On April 19, 2015 10:38:15 AM CDT, "Dr. Hawkins" wrote: > >Even breakpoint isn't enough until there has been some user >interaction; I >have to use answer, then breakpoint, to get it to stop. > >This was a matter of not being able to stop the hard crash of the IDE >itself, and the sittuation being solved by answer. Does it happen if you open the stack from the LC menu instead of double clicking the stack in Finder to launch? Just to verify, this is a crash (quit unexpectedly) and not a hang (beach ball) right? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Sun Apr 19 14:07:54 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 19 Apr 2015 11:07:54 -0700 Subject: Basic Table Field prints as one solid color In-Reply-To: <5533CC4B.6070100@researchware.com> References: <5533CC4B.6070100@researchware.com> Message-ID: <661CF8D5-D385-4145-B655-EB57FF3769C7@tactilemedia.com> Did you try making the field transparent (disable opaque)? Here's a suggestion from the "goofy workarounds" category... You say the field prints correctly with no text. How about empty lines with only return characters? If that works, and assuming the field can be scrolled, maybe you could try: - store the scroll value of the field and it's text - set the text of the field to some number of empty lines that allows restoring the scroll - import a snapshot of the field at the field's rect with grid intact - set the ink effect of the snapshot to multiply - restore the field's text and scroll - disable the field's grid (so the snapshot is used as visible grid) - print - restore the grid and delete the snapshot If scrolling is not needed, you can skip the part about setting the empty lines and setting the scroll. I know this ranks about 11 on the goofiness scale, but maybe worth a try. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design > On Apr 19, 2015, at 8:39 AM, Paul Dupuis wrote: > > Help! > > I am trying to print a card with a single field on it. The field is a > basic table field (i.e. hGrid and vGrid set to true, dontWrap to true, > etc.). I.e. all the standard field settings you get when you drag a > "Basic Table Field" off the tool palette in LC6.6.5, 6.7.4, or 7.0.4. > The same issue/error is present in all 3 versions of LC, although I am > working in LC6.6.5 under Windows. > > If either the vGrid or hGrid are set to true, the field prints as a > solid block of color of whatever the field borderColor is set to. You > test this by creating a new stack. Place a single table field on stack. > Populate the field with some data (a few columns and rows) and execute > "Print cd" in the message box. NOTE: It is important the field has data. > An empty table field prints with the grid drawn correctly as expected, > but any data in the table gets printed as a block of the borderColor. > > Has anyone encountered this issue? Does anyone have a work-around that > lets a table field with it's grids on be printed properly? I have tried > explicitly setting the stack bgColor, cd bgColor and fld bgColor to > white, the text color to black and the borderColor of the field to grey, > but that just gets me a grey block instead of a black block. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Apr 19 14:55:00 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 19 Apr 2015 13:55:00 -0500 Subject: Basic Table Field prints as one solid color In-Reply-To: <5533CC4B.6070100@researchware.com> References: <5533CC4B.6070100@researchware.com> Message-ID: <5533FA04.40508@hyperactivesw.com> On 4/19/2015 10:39 AM, Paul Dupuis wrote: > If either the vGrid or hGrid are set to true, the field prints as a > solid block of color of whatever the field borderColor is set to. It may be a printer driver problem. If you're on Windows, see if you have the latest driver. I had a similar issue years and years ago on a Windows machine and that was the reason, though things may have changed since then. Worth a try though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sun Apr 19 15:52:12 2015 From: paul at researchware.com (Paul Dupuis) Date: Sun, 19 Apr 2015 15:52:12 -0400 Subject: Basic Table Field prints as one solid color In-Reply-To: <661CF8D5-D385-4145-B655-EB57FF3769C7@tactilemedia.com> References: <5533CC4B.6070100@researchware.com> <661CF8D5-D385-4145-B655-EB57FF3769C7@tactilemedia.com> Message-ID: <5534076C.8060706@researchware.com> On 4/19/2015 2:07 PM, Scott Rossi wrote: > Did you try making the field transparent (disable opaque)? Scott, thanks for the suggestion. Unfortunately Opaque has no effect on the issue. > Here's a suggestion from the "goofy workarounds" category... > > You say the field prints correctly with no text. How about empty lines with only return characters? If that works, and assuming the field can be scrolled, maybe you could try: > > - store the scroll value of the field and it's text > - set the text of the field to some number of empty lines that allows restoring the scroll > - import a snapshot of the field at the field's rect with grid intact > - set the ink effect of the snapshot to multiply > - restore the field's text and scroll > - disable the field's grid (so the snapshot is used as visible grid) > - print > - restore the grid and delete the snapshot > > If scrolling is not needed, you can skip the part about setting the empty lines and setting the scroll. > > I know this ranks about 11 on the goofiness scale, but maybe worth a try. Yea, there a bunch of work around where the simplest seems to just do an 'export snapshot' and print the resulting image (hiding the field entirely for printing), but I'd before I switch to levels of workarounds like thsi, I want to be sure thsi really is a bug and report it to RunRev. That's one reason I was asking if any else has either experienced this issue. OR, I guess I should have asked if anyone else can reproduce this issue. From paul at researchware.com Sun Apr 19 15:58:01 2015 From: paul at researchware.com (Paul Dupuis) Date: Sun, 19 Apr 2015 15:58:01 -0400 Subject: Basic Table Field prints as one solid color In-Reply-To: <5533FA04.40508@hyperactivesw.com> References: <5533CC4B.6070100@researchware.com> <5533FA04.40508@hyperactivesw.com> Message-ID: <553408C9.1040200@researchware.com> On 4/19/2015 2:55 PM, J. Landman Gay wrote: > On 4/19/2015 10:39 AM, Paul Dupuis wrote: >> If either the vGrid or hGrid are set to true, the field prints as a >> solid block of color of whatever the field borderColor is set to. > > It may be a printer driver problem. If you're on Windows, see if you > have the latest driver. I had a similar issue years and years ago on a > Windows machine and that was the reason, though things may have > changed since then. Worth a try though. > Jacque, Thank you! I have experienced the same thing in the past and should have though immediately of trying other PDF printer drivers and did not. However, I have now tried this with 3 different drivers with the exact same results, so I guess it is not a driver issue :-( From paul at researchware.com Sun Apr 19 15:59:53 2015 From: paul at researchware.com (Paul Dupuis) Date: Sun, 19 Apr 2015 15:59:53 -0400 Subject: Basic Table Field prints as one solid color In-Reply-To: <5533FA04.40508@hyperactivesw.com> References: <5533CC4B.6070100@researchware.com> <5533FA04.40508@hyperactivesw.com> Message-ID: <55340939.3040109@researchware.com> On 4/19/2015 2:55 PM, J. Landman Gay wrote: > On 4/19/2015 10:39 AM, Paul Dupuis wrote: >> If either the vGrid or hGrid are set to true, the field prints as a >> solid block of color of whatever the field borderColor is set to. > > It may be a printer driver problem. If you're on Windows, see if you > have the latest driver. I had a similar issue years and years ago on a > Windows machine and that was the reason, though things may have > changed since then. Worth a try though. > Jacque, Thank you! I have experienced the same thing in the past and should have though immediately of trying other PDF printer drivers and did not. However, I have now tried this with 3 different drivers with the exact same results, so I guess it is not a driver issue From pmbrig at gmail.com Sun Apr 19 16:20:53 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sun, 19 Apr 2015 16:20:53 -0400 Subject: curiosities in object reference Message-ID: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> So I have a field, let's say field "text", with the contents "one two three four". if I do this: put the long id of fld "text" into fRef put "deux" into word 2 of fRef it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't resolve fRef as a field reference. But if I do: put the text of fRef into tText it *does* resolve fRef as a field reference, as I would expect. It appears that the engine only resolves these references when the context/syntax indicates that it should expect an object reference, and not otherwise. Is there any way I can put "deux" into word 2 of the field without jumping through hoops, like put "deux" into newWord do "put newWord into word two of" && fRef ?? I don't want to do: put the text of fRef into tText put "deux" into word 2 of tText set the text of fRef to tText because the field may contain formatted text that I want to preserve. ideas? or am I stuck with hoops? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From m.schonewille at economy-x-talk.com Sun Apr 19 16:38:13 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 19 Apr 2015 22:38:13 +0200 Subject: curiosities in object reference In-Reply-To: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: <55341235.6090501@economy-x-talk.com> Hi Pete, Can you use the short id? put the short id of fld "text" into x put "deux" into word 2 of fld x -- 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 4/19/2015 22:20, Peter M. Brigham wrote: > So I have a field, let's say field "text", with the contents "one two three four". > > if I do this: > put the long id of fld "text" into fRef > put "deux" into word 2 of fRef > > it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't resolve fRef as a field reference. > > But if I do: > put the text of fRef into tText > > it *does* resolve fRef as a field reference, as I would expect. It appears that the engine only resolves these references when the context/syntax indicates that it should expect an object reference, and not otherwise. > > Is there any way I can put "deux" into word 2 of the field without jumping through hoops, like > put "deux" into newWord > do "put newWord into word two of" && fRef > ?? > > I don't want to do: > put the text of fRef into tText > put "deux" into word 2 of tText > set the text of fRef to tText > because the field may contain formatted text that I want to preserve. > > ideas? or am I stuck with hoops? > > -- Peter > From pete at lcsql.com Sun Apr 19 16:54:43 2015 From: pete at lcsql.com (Peter Haworth) Date: Sun, 19 Apr 2015 13:54:43 -0700 Subject: curiosities in object reference In-Reply-To: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: The problem is "word" is a valid reference to a variable and that may be what you want to do. I can't remember what I've tried to get round this but pretty sure I've always ended up using a do command. Pete lcSQL Software On Apr 19, 2015 1:21 PM, "Peter M. Brigham" wrote: > So I have a field, let's say field "text", with the contents "one two > three four". > > if I do this: > put the long id of fld "text" into fRef > put "deux" into word 2 of fRef > > it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't > resolve fRef as a field reference. > > But if I do: > put the text of fRef into tText > > it *does* resolve fRef as a field reference, as I would expect. It appears > that the engine only resolves these references when the context/syntax > indicates that it should expect an object reference, and not otherwise. > > Is there any way I can put "deux" into word 2 of the field without jumping > through hoops, like > put "deux" into newWord > do "put newWord into word two of" && fRef > ?? > > I don't want to do: > put the text of fRef into tText > put "deux" into word 2 of tText > set the text of fRef to tText > because the field may contain formatted text that I want to preserve. > > ideas? or am I stuck with hoops? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sun Apr 19 17:53:05 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 19 Apr 2015 16:53:05 -0500 Subject: Basic Table Field prints as one solid color In-Reply-To: <553408C9.1040200@researchware.com> References: <5533CC4B.6070100@researchware.com> <5533FA04.40508@hyperactivesw.com> <553408C9.1040200@researchware.com> Message-ID: <553423C1.9060308@hyperactivesw.com> On 4/19/2015 2:58 PM, Paul Dupuis wrote: > I have now tried this with 3 different drivers with the exact > same results, so I guess it is not a driver issue :-( In that case it's probably a bug. I'd report it and give them a copy of an example stack. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at livecode.org Sun Apr 19 21:18:02 2015 From: paul at livecode.org (Paul Hibbert) Date: Sun, 19 Apr 2015 18:18:02 -0700 Subject: curiosities in object reference In-Reply-To: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: If you are absolutely sure your field has a unique name then this works? put "text" into fRef put "deux" into word 2 of control fRef ?but, I think if you are replacing text in this way you will still lose any formatting, so you may need to do something like this? put "text" into fRef put the textStyle of word 2 of control fRef into tStyle put "deux" into word 2 of control fRef set the textStyle of word 2 of control fRef to tStyle or, another alternative? put the layer of field "text" into fRef put the textStyle of word 2 of control fRef into tStyle put "deux" into word 2 of control fRef set the textStyle of word 2 of control fRef to tStyle Paul > On Apr 19, 2015, at 13:20, Peter M. Brigham wrote: > > So I have a field, let's say field "text", with the contents "one two three four". > > if I do this: > put the long id of fld "text" into fRef > put "deux" into word 2 of fRef > > it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't resolve fRef as a field reference. > > But if I do: > put the text of fRef into tText > > it *does* resolve fRef as a field reference, as I would expect. It appears that the engine only resolves these references when the context/syntax indicates that it should expect an object reference, and not otherwise. > > Is there any way I can put "deux" into word 2 of the field without jumping through hoops, like > put "deux" into newWord > do "put newWord into word two of" && fRef > ?? > > I don't want to do: > put the text of fRef into tText > put "deux" into word 2 of tText > set the text of fRef to tText > because the field may contain formatted text that I want to preserve. > > ideas? or am I stuck with hoops? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Sun Apr 19 22:19:52 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Sun, 19 Apr 2015 20:19:52 -0600 Subject: curiosities in object reference In-Reply-To: References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: I wish it was easy to work with "the styledtext" but multiple runs get really convoluted. They contain the actual text though, so if you're better at navigating arrays than I am, it might be possible to "put the styledtext of fRef into tStyledA" then make adjustments, then "set the styledtext of field fRef to tStyledA" On Sun, Apr 19, 2015 at 7:18 PM, Paul Hibbert wrote: > If you are absolutely sure your field has a unique name then this works? > > put "text" into fRef > put "deux" into word 2 of control fRef > > ?but, I think if you are replacing text in this way you will still lose > any formatting, so you may need to do something like this? > > put "text" into fRef > put the textStyle of word 2 of control fRef into tStyle > put "deux" into word 2 of control fRef > set the textStyle of word 2 of control fRef to tStyle > > or, another alternative? > > put the layer of field "text" into fRef > put the textStyle of word 2 of control fRef into tStyle > put "deux" into word 2 of control fRef > set the textStyle of word 2 of control fRef to tStyle > > Paul > > > > > On Apr 19, 2015, at 13:20, Peter M. Brigham wrote: > > > > So I have a field, let's say field "text", with the contents "one two > three four". > > > > if I do this: > > put the long id of fld "text" into fRef > > put "deux" into word 2 of fRef > > > > it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't > resolve fRef as a field reference. > > > > But if I do: > > put the text of fRef into tText > > > > it *does* resolve fRef as a field reference, as I would expect. It > appears that the engine only resolves these references when the > context/syntax indicates that it should expect an object reference, and not > otherwise. > > > > Is there any way I can put "deux" into word 2 of the field without > jumping through hoops, like > > put "deux" into newWord > > do "put newWord into word two of" && fRef > > ?? > > > > I don't want to do: > > put the text of fRef into tText > > put "deux" into word 2 of tText > > set the text of fRef to tText > > because the field may contain formatted text that I want to preserve. > > > > ideas? or am I stuck with hoops? > > > > -- Peter > > > > Peter M. Brigham > > pmbrig at gmail.com > > http://home.comcast.net/~pmbrig > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Mon Apr 20 01:57:50 2015 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Mon, 20 Apr 2015 13:57:50 +0800 Subject: curiosities in object reference In-Reply-To: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: Maybe this will help: put the long id of fld "text" into fRef put word 3 of fRef into fFldID put word 7 of fRef into fCdID put word -1 of fRef into fStackName replace quote with empty in fStackName put "deux" into word 2 of fld id fFldID of card id fCdID of stack fStackName On Mon, Apr 20, 2015 at 4:20 AM, Peter M. Brigham wrote: > So I have a field, let's say field "text", with the contents "one two > three four". > > if I do this: > put the long id of fld "text" into fRef > put "deux" into word 2 of fRef > > it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't > resolve fRef as a field reference. > > But if I do: > put the text of fRef into tText > > it *does* resolve fRef as a field reference, as I would expect. It appears > that the engine only resolves these references when the context/syntax > indicates that it should expect an object reference, and not otherwise. > > Is there any way I can put "deux" into word 2 of the field without jumping > through hoops, like > put "deux" into newWord > do "put newWord into word two of" && fRef > ?? > > I don't want to do: > put the text of fRef into tText > put "deux" into word 2 of tText > set the text of fRef to tText > because the field may contain formatted text that I want to preserve. > > ideas? or am I stuck with hoops? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david at viral.academy Mon Apr 20 04:08:29 2015 From: david at viral.academy (David Bovill) Date: Mon, 20 Apr 2015 08:08:29 +0000 Subject: curiosities in object reference In-Reply-To: References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: You need to force the type of fRef to be a string. LiveCode assumes a string that lukes like a long id is a reference to a control. It's duck-typing. This is useful in many circumstances. To get round it you don't need "do", but you need to assemble the reference as a string - and do mess around a bit. Try deleting the first word if fRef, then manipulating it, then adding the first word back? On Mon, 20 Apr 2015 at 06:58, Kay C Lan wrote: > Maybe this will help: > > put the long id of fld "text" into fRef > put word 3 of fRef into fFldID > put word 7 of fRef into fCdID > put word -1 of fRef into fStackName > replace quote with empty in fStackName > put "deux" into word 2 of fld id fFldID of card id fCdID of stack > fStackName > > > > On Mon, Apr 20, 2015 at 4:20 AM, Peter M. Brigham > wrote: > > > So I have a field, let's say field "text", with the contents "one two > > three four". > > > > if I do this: > > put the long id of fld "text" into fRef > > put "deux" into word 2 of fRef > > > > it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't > > resolve fRef as a field reference. > > > > But if I do: > > put the text of fRef into tText > > > > it *does* resolve fRef as a field reference, as I would expect. It > appears > > that the engine only resolves these references when the context/syntax > > indicates that it should expect an object reference, and not otherwise. > > > > Is there any way I can put "deux" into word 2 of the field without > jumping > > through hoops, like > > put "deux" into newWord > > do "put newWord into word two of" && fRef > > ?? > > > > I don't want to do: > > put the text of fRef into tText > > put "deux" into word 2 of tText > > set the text of fRef to tText > > because the field may contain formatted text that I want to preserve. > > > > ideas? or am I stuck with hoops? > > > > -- Peter > > > > Peter M. Brigham > > pmbrig at gmail.com > > http://home.comcast.net/~pmbrig > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From engleerica at yahoo.com Mon Apr 20 08:53:05 2015 From: engleerica at yahoo.com (Eric A. Engle) Date: Mon, 20 Apr 2015 12:53:05 +0000 (UTC) Subject: Stacks and livecode server? Message-ID: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> There was a revolution plug in which allowed stacks to be served (I believe as "revlets"). I know that has been cancelled, at least for now. Meanwhile, I have installed livecode for cgi, which and it works.? I searched the internet to see if the livecode server can be used to serve stacks somehow, or is basically only useful for cgi. Surprisingly, I didn't find anything, or at least nothing useful.? Is there a way to serve entire stacks, other than asking the user to download a standalone? Or is there a way to convert stacks into web pages, including the livecode scripts as calls to cgi? Thank you. From m.schonewille at economy-x-talk.com Mon Apr 20 09:03:25 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 20 Apr 2015 15:03:25 +0200 Subject: Stacks and livecode server? In-Reply-To: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> References: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> Message-ID: <5534F91D.8090408@economy-x-talk.com> Hi Eric, Revlets are very unlikely to come back. RunRev is working on an HTML5 export feature. That is probably what you want. Apart from that, it is easy to write a script to export data from LiveCode to a website. There are several people on this list who use LiveCode as a CMS, including me. Currently, you can't put a stack on the server and display its GUI in a browser. Actual stacks can run only without GUI. To display the GUI, you'll have to wait for HTML5. -- 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 4/20/2015 14:53, Eric A. Engle wrote: > There was a revolution plug in which allowed stacks to be served (I believe as "revlets"). I know that has been cancelled, at least for now. > Meanwhile, I have installed livecode for cgi, which and it works. > I searched the internet to see if the livecode server can be used to serve stacks somehow, or is basically only useful for cgi. Surprisingly, I didn't find anything, or at least nothing useful. > Is there a way to serve entire stacks, other than asking the user to download a standalone? Or is there a way to convert stacks into web pages, including the livecode scripts as calls to cgi? > Thank you. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Mon Apr 20 10:28:24 2015 From: ray at linkit.com (Ray) Date: Mon, 20 Apr 2015 16:28:24 +0200 Subject: Large Scripts Run too Slowly In-Reply-To: <5530F512.6070502@LinkIt.Com> References: <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> Message-ID: <55350D08.2010904@LinkIt.Com> I've got a stack script of over 15,000 lines. It's recently started running too slow to work with. Everything is painfully slow from plain typing to searches to scrolling. Stepping through lines with the debugger is almost impossible. I start using this stack at launch so all other stacks in the project have access to the handlers. Does anybody have any suggestions regarding splitting it up or something? From ambassador at fourthworld.com Mon Apr 20 10:40:14 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 20 Apr 2015 07:40:14 -0700 Subject: Large Scripts Run too Slowly In-Reply-To: <55350D08.2010904@LinkIt.Com> References: <55350D08.2010904@LinkIt.Com> Message-ID: <55350FCE.30609@fourthworld.com> Ray wrote: > I've got a stack script of over 15,000 lines. It's recently started > running too slow to work with. Everything is painfully slow from plain > typing to searches to scrolling. How long has this been slow? What's changed since it was fast? You can break code up all sorts of ways, libraries, backscripts, behaviors, depending on how your app is structured and how its objects interact. But if the change was recent, given how long it takes to write 15 KLOC it may also be worth looking into what the more recent code is doing. To spot redundant calls and other bottlenecks, this free tool has saved my bacon many times: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Mon Apr 20 10:44:44 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 20 Apr 2015 07:44:44 -0700 Subject: curiosities in object reference In-Reply-To: References: Message-ID: <553510DC.60305@fourthworld.com> Mike Bonner wrote: > I wish it was easy to work with "the styledtext" but multiple runs > get really convoluted. They contain the actual text though, so if > you're better at navigating arrays than I am, it might be possible > to "put the styledtext of fRef into tStyledA" then make adjustments, > then "set the styledtext of field fRef to tStyledA" I've come to enjoy working with styledText arrays since I asked about them here last year. Very helpful for many things, but in this case I'd use the simpler htmlText, designed as it is to provide a plain-text representation of field contents with complete fidelity, and it works on chunks as well as the field object as a whole. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ray at linkit.com Mon Apr 20 10:52:40 2015 From: ray at linkit.com (Ray) Date: Mon, 20 Apr 2015 16:52:40 +0200 Subject: Large Scripts Run too Slowly In-Reply-To: <55350FCE.30609@fourthworld.com> References: <55350D08.2010904@LinkIt.Com> <55350FCE.30609@fourthworld.com> Message-ID: <553512B8.3090404@LinkIt.Com> Yeah I looked through recent installs and didn't find much. I uninstalled a couple of Java updates but it didn't help. The slowness has been creeping in for a while actually. It's time to take the bull by the horns. By the way, how are you compressing the .gz file, below? I'm unable to get to decompress it using Livecode's compress/decompress commands. On 4/20/2015 4:40 PM, Richard Gaskin wrote: > Ray wrote: > >> I've got a stack script of over 15,000 lines. It's recently started >> running too slow to work with. Everything is painfully slow from plain >> typing to searches to scrolling. > > How long has this been slow? > > What's changed since it was fast? > > You can break code up all sorts of ways, libraries, backscripts, > behaviors, depending on how your app is structured and how its objects > interact. > > But if the change was recent, given how long it takes to write 15 KLOC > it may also be worth looking into what the more recent code is doing. > > To spot redundant calls and other bottlenecks, this free tool has > saved my bacon many times: > > From ambassador at fourthworld.com Mon Apr 20 12:07:32 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 20 Apr 2015 09:07:32 -0700 Subject: Large Scripts Run too Slowly In-Reply-To: <553512B8.3090404@LinkIt.Com> References: <553512B8.3090404@LinkIt.Com> Message-ID: <55352444.4070204@fourthworld.com> Ray wrote: > On 4/20/2015 4:40 PM, Richard Gaskin wrote: ... >> But if the change was recent, given how long it takes to write 15 >> KLOC it may also be worth looking into what the more recent code >> is doing. >> >> To spot redundant calls and other bottlenecks, this free tool has >> saved my bacon many times: >> > > Yeah I looked through recent installs and didn't find much. I > uninstalled a couple of Java updates but it didn't help. Java is unrelated to LiveCode except during the building of executables for Android. Is it just the IDE that seems slow, or execution of your code? > By the way, how are you compressing the .gz file, below? I'm unable > to get to decompress it using Livecode's compress/decompress commands. I'm using LC's compress function, which uses gzip. Maybe you read the file as text rather than binary before passing it to the decompress function? Mac and Linux include utilities to decompress them for you, and many are available for free for Windows as well. You can also use decompress inline to run the stack - this works here: go stack ( decompress(url "http://fourthworld.net/revnet/devolution/4W_FlightRecorder.rev.gz") ) I made a drag-and-drop plugin for LC's gzip: But of course its gzipped itself so you'll have to use LC's decompress function or a third-party tool to extract it. If you have any decompressing just let me know and I'll post a decompressed version for you. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mikedoub at gmail.com Mon Apr 20 12:56:47 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 20 Apr 2015 12:56:47 -0400 Subject: Large Scripts Run too Slowly In-Reply-To: <55350D08.2010904@LinkIt.Com> References: <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <55350D08.2010904@LinkIt.Com> Message-ID: <55352FCF.60805@gmail.com> Ray, Take a look at the way the MasterLibrary Works. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 It has an infrastructure in place to add functions and handler to stacks. These can easily be turned into substacks. Feel free to copy with pride if it makes sense for your situation. The MasterLibrary was intended to be used for code that is re-used multiple times in many applications but it might give you some ideas. Unfortunately, the dependance graph is created manually. It would be really nice if I could figure that out dynamically, but it is what it is for now. Because of that it may be easier to build the libraries by hand is the code was not intended to be reusable reusable. Anyway, food for thought... I just checked the size of the library and it is currently running at 12250 lines and I am only noticing a minor lag on loading the script into the editor. I guess I am going to add some new content to see if I run into the slow downs that you describe. -= Mike On 4/20/15 10:28 AM, Ray wrote: > I've got a stack script of over 15,000 lines. It's recently started > running too slow to work with. Everything is painfully slow from > plain typing to searches to scrolling. Stepping through lines with > the debugger is almost impossible. > > I start using this stack at launch so all other stacks in the project > have access to the handlers. > > Does anybody have any suggestions regarding splitting it up or something? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Mon Apr 20 13:12:39 2015 From: ray at linkit.com (Ray) Date: Mon, 20 Apr 2015 19:12:39 +0200 Subject: Large Scripts Run too Slowly In-Reply-To: <55352444.4070204@fourthworld.com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> Message-ID: <55353387.2030108@LinkIt.Com> Richard - I only notice the slow-down in the IDE. The code executing normally seems to run fine. It's when I open the script editor that I run into problems. I don't know why my decompress didn't work but your line opened the FlightRecorder stack fine. Thanks! I'll give it a try. On 4/20/2015 6:07 PM, Richard Gaskin wrote: > Ray wrote: > > > On 4/20/2015 4:40 PM, Richard Gaskin wrote: > ... > >> But if the change was recent, given how long it takes to write 15 > >> KLOC it may also be worth looking into what the more recent code > >> is doing. > >> > >> To spot redundant calls and other bottlenecks, this free tool has > >> saved my bacon many times: > >> > > > > Yeah I looked through recent installs and didn't find much. I > > uninstalled a couple of Java updates but it didn't help. > > Java is unrelated to LiveCode except during the building of > executables for Android. > > Is it just the IDE that seems slow, or execution of your code? > > > > By the way, how are you compressing the .gz file, below? I'm unable > > to get to decompress it using Livecode's compress/decompress commands. > > I'm using LC's compress function, which uses gzip. Maybe you read the > file as text rather than binary before passing it to the decompress > function? > > Mac and Linux include utilities to decompress them for you, and many > are available for free for Windows as well. > > You can also use decompress inline to run the stack - this works here: > > go stack ( decompress(url > "http://fourthworld.net/revnet/devolution/4W_FlightRecorder.rev.gz") ) > > I made a drag-and-drop plugin for LC's gzip: > > > But of course its gzipped itself so you'll have to use LC's decompress > function or a third-party tool to extract it. If you have any > decompressing just let me know and I'll post a decompressed version > for you. > From jacque at hyperactivesw.com Mon Apr 20 13:44:51 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 20 Apr 2015 12:44:51 -0500 Subject: Large Scripts Run too Slowly In-Reply-To: <55352444.4070204@fourthworld.com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> Message-ID: <55353B13.8060003@hyperactivesw.com> On 4/20/2015 11:07 AM, Richard Gaskin wrote: > I made a drag-and-drop plugin for LC's gzip: > I've been using this a lot over the years, just because it's easier than typing the command into the message box. But the copy I have isn't drag and drop so I downloaded this one -- but it isn't either. That'd be a nice touch. The scripts are locked so I couldn't look though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Mon Apr 20 13:59:58 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 20 Apr 2015 10:59:58 -0700 Subject: Stacks and livecode server? In-Reply-To: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> References: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> Message-ID: <55353E9E.5090805@fourthworld.com> Eric A. Engle wrote: > There was a revolution plug in which allowed stacks to be served (I > believe as "revlets"). I know that has been cancelled, at least for > now. Probably forever. Browser plugins were a popular solution in the '90s, but became untenable by the turn of the century. Beyond the incompatible implementations of the various plugin specs browser vendors provide, there's the bigger issue: it still requires the user to download and install a form of the LiveCode engine. If you're going to ask users to do that you can just as easily deliver a standalone that downloads stacks; more easily, actually. It's as easy to do in LiveCode as: go url "http://somedomain/mystack.livecode" A standalone provides the same benefit an any other client software using Web protocols, such as a browser, in having code and content centrally located and always up to date. But a LiveCode standalone offers some advantages difficult or impossible to achieve in a Web browser: Using a standalone can be far more flexible than using the now-defunct browser plugin because it doesn't attempt to cram the user experience into the confines of a browser window, which is designed for a much more general task flow. So you never need to deal with questions like "What happens when the user presses the Back button?" In a standalone, everything in the UI is dedicated for the task you're supporting. A standalone can also be more secure. Mark Waddingham's addition of the securityPermissions global property offers reasonably fine-grained control of what a standalone can and can't do; turning off all options except Internet access can deliver a Web-savvy experience safer than nearly any browser. Using a standalone is of course dependent on users who value your app enough to download it. But the same would be true of a browser plugin, so in terms of that one requirement it's a wash, and in all other respects the standalone offers many favorable advantages. Plus it's dirt-simple to make today using the LiveCode we have in hand right now. A majority of the projects I'm working on at the moment are standalones that download stacks - depending on what your app does and the needs of its audience, it can be an excellent delivery solution. > Meanwhile, I have installed livecode for cgi, which and it works. > I searched the internet to see if the livecode server can be used > to serve stacks somehow, or is basically only useful for cgi. > Surprisingly, I didn't find anything, or at least nothing useful. It may be less surprising when we consider the different roles of client and server, and how each differs from other. In essence, a Web server is just a file server. You request things from it, and in most cases all it does is find a file at the location specified in the request, reads it from the server's disk, and sends that data over the wire to the client. Good Web servers are also extensible, so that in addition to serving static files they can also generate data dynamically on the server and send that back to the requesting client. On the client side, what the client software can do with the data it receives from the server is limited to the engine used. For example, a mail client can handle email data but little else, and a Web browser client can handle Web pages and little else. If you want to deliver LiveCode stack files, you need some form of the LiveCode on the client machine which can read those. Web browsers have no understanding of LiveCode files, so if you want to render the contents of a LiveCode stack within a Web browser you'll need to translate it into the form browsers use, HTML for content and JavaScript for interactivity. RunRev Ltd. is working on a toolkit that will provide that translation for us, but it's likely months away from a preview build and I'd guess much longer before a final build is available. So for now, if we want to deliver LiveCode stacks to a client, that client must be made with LiveCode. Keep in mind that delivering LiveCode stacks from a Web server doesn't require LiveCode Server at all. Useful as it is for other things, whether or not you use LiveCode Server or any other server-side software to help generate data doesn't affect how the client works with that data. So if your goal is to deliver LiveCode stacks, those are just files on a server and Apache can do that for you very easily without you needing to do anything more than just copying the stack to your server. Whenever any client requests any file from the server, as long as that file exists the server can read it and send it back, whether it's an HTML page, a JPEG image, or a LiveCode stack file. This is why you won't find info on using LiveCode Server to deliver stack files, it just isn't needed. Where LiveCode Server can be useful is when the data you want to deliver needs to be unique for the request. For example, if you just want to get a JPEG image and it's always the same image every time it's requested, you don't need to do anything more than just put the image file on the server and you're done. But if you wanted to allow the user to customize the image, as in making a postcard with a customized greeting, then you'd need something more than just a file server, something that can add the desired greeting text to the image and export the result to send back to the client. For things like that a CGI app like LiveCode Server is great, adding custom programming to augment the simple file serving Web servers do by default. When using LiveCode Server, the client can be whatever software can handle the data you're sending to it. If you're generating HTML pages with LiveCode Server, you can use a Web browser for the client. If you're generating XML or JSON content, the client can be any app that can handle those formats. A LiveCode standalone can handle all of those too, along with image files and just about anything else you can throw at it. You can even modify stack files with LiveCode Server and send the modified stack to the client, but in that case as noted earlier your client would need to be made in LiveCode since only LiveCode understands the LiveCode stack file format. And all of this handles only getting data from the server to the client. If you want to modify data within a stack on the client side and save that data back to the server, that's another set of considerations and this post has already gotten far too long. If a LiveCode client is of interest and you could use help in evaluating options for saving data back to the server, many of us here do this daily and would be happy to help. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Mon Apr 20 14:17:01 2015 From: sundown at pacifier.com (JB) Date: Mon, 20 Apr 2015 11:17:01 -0700 Subject: Large Scripts Run too Slowly In-Reply-To: <55353B13.8060003@hyperactivesw.com> References: <553512B8.3090404@LinkIt.Com> <55352444.4070204@fourthworld.com> <55353B13.8060003@hyperactivesw.com> Message-ID: It would be nice to be able to see the scripts. There are others out there that let you view the script and have drag and drop. A really good feature to have would be the ability to zip a folder of files and folders and a volume of a hard drive. John Balgenorth On Apr 20, 2015, at 10:44 AM, J. Landman Gay wrote: > On 4/20/2015 11:07 AM, Richard Gaskin wrote: >> I made a drag-and-drop plugin for LC's gzip: >> > > I've been using this a lot over the years, just because it's easier than typing the command into the message box. But the copy I have isn't drag and drop so I downloaded this one -- but it isn't either. That'd be a nice touch. > > The scripts are locked so I couldn't look though. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From stephenREVOLUTION2 at barncard.com Mon Apr 20 14:44:38 2015 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 20 Apr 2015 11:44:38 -0700 Subject: Stacks and livecode server? In-Reply-To: <5534F91D.8090408@economy-x-talk.com> References: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> <5534F91D.8090408@economy-x-talk.com> Message-ID: On Mon, Apr 20, 2015 at 6:03 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Currently, you can't put a stack on the server and display its GUI in a > browser. That would take a little more work and one would have to do that on one's own. But stacks on the server are amazingly useful, like storing custom properties and libraries. -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From dochawk at gmail.com Mon Apr 20 14:49:08 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 20 Apr 2015 11:49:08 -0700 Subject: another day lost to the ide and crashes In-Reply-To: <4C2303EF-829D-4EEA-A3E2-79039E4DD92D@hyperactivesw.com> References: <568398FD-D7A3-4B72-9E54-A06242979C9A@hyperactivesw.com> <4C2303EF-829D-4EEA-A3E2-79039E4DD92D@hyperactivesw.com> Message-ID: On Sun, Apr 19, 2015 at 9:08 AM, J. Landman Gay wrote: > > Does it happen if you open the stack from the LC menu instead of double > clicking the stack in Finder to launch? > Yes. I had to open LC, turn off messages, and then open file to place my checkpoints. > Just to verify, this is a crash (quit unexpectedly) and not a hang (beach > ball) right? Correct. Hard, sudden crash. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Mon Apr 20 14:51:55 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 20 Apr 2015 11:51:55 -0700 Subject: Large Scripts Run too Slowly In-Reply-To: <55350D08.2010904@LinkIt.Com> References: <552EF61F.2060001@LinkIt.Com> <552EA33B.90708@economy-x-talk.com> <552EFBDA.2020102@LinkIt.Com> <552EB30F.2080400@economy-x-talk.com> <552FDEB9.4080509@LinkIt.Com> <5530142E.2090301@LinkIt.Com> <74C1A3CB-FECE-4A00-9BA5-63BC50CC7A77@major-k.de> <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <55350D08.2010904@LinkIt.Com> Message-ID: On Mon, Apr 20, 2015 at 7:28 AM, Ray wrote: > I've got a stack script of over 15,000 lines. It's recently started > running too slow to work with. Everything is painfully slow from plain > typing to searches to scrolling. Stepping through lines with the debugger > is almost impossible. Executing slowly, or slovenly IDE response? I generally see the IDE taking about two seconds to respond to a clieck--but I have a couple of main scripts that are well past 10k lines. This didn't happen with 5; it's a 7 thing. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jbv at souslelogo.com Mon Apr 20 15:01:18 2015 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 20 Apr 2015 22:01:18 +0300 Subject: Stacks and livecode server? In-Reply-To: <55353E9E.5090805@fourthworld.com> References: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> <55353E9E.5090805@fourthworld.com> Message-ID: > Richard Gaskin wrote: > > A majority of the projects I'm working on at the moment are > standalones that download stacks - depending on what your app does and > the needs of its audience, it can be an excellent delivery solution. > Same here. But there's a question in my mind for quite a while : as I'm about to develop apps for some professionals who will use them on iPads and iPhones, I was wondering how this follows Apple's rules ? After all, what prevents to submit a first version of the app, and once it's available on the Appstore, to switch to different downloaded stacks, with different functions and content ? Am I missing something ? Thanks jbv From bobsneidar at iotecdigital.com Mon Apr 20 16:07:13 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 20:07:13 +0000 Subject: compress & decompress In-Reply-To: <5516E339.70506@fourthworld.com> References: <5516E339.70506@fourthworld.com> Message-ID: <07B00879-B265-40DB-BC3E-851A4ED3D7E6@iotecdigital.com> Pretty sure I remember that HC did convert NULL to empty string. Not sure about low level file operations though. I don?t think they had a binary read but I may be mistaken. Bob S On Mar 28, 2015, at 10:22 , Richard Gaskin > wrote: Trivia question for Jacque or other HyperCard fans who might now: did reading in HyperTalk also strip NULL bytes, or convert NULLs to spaces? LiveCode doesn't, but I had thought I'd heard that HC did. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web From bobsneidar at iotecdigital.com Mon Apr 20 16:10:49 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 20:10:49 +0000 Subject: How to Turn a Word Into a Graphic Object? In-Reply-To: <55163554.1030206@hindu.org> References: <5514F89E.3030302@hindu.org> <55163554.1030206@hindu.org> Message-ID: <581D1A65-8383-4EF3-9FF9-0DE215A5C0F8@iotecdigital.com> Well for one it seems your spacebar is not working? Bob S On Mar 27, 2015, at 22:00 , Brahmanathaswami > wrote: put"10,10"intotPoint subtract5fromitem2oftPoint -- subtracts 5 from the second item Am I doing something wrong?... can anyone confirm? From bobsneidar at iotecdigital.com Mon Apr 20 16:14:45 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 20:14:45 +0000 Subject: ABC of arrays In-Reply-To: <551C1C81.5080300@fourthworld.com> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> Message-ID: <9994BB49-9609-454F-8E54-5B16BAA1669B@iotecdigital.com> If the array is very large, lots of keys, and you are simply putting the keys of the array into the message box (which is literally what this command you have does unless you were short handing it) then you might be running into the limits of a field i.e.. the number of lines. Bob S On Apr 1, 2015, at 09:27 , Richard Gaskin > wrote: Graham Samuel wrote: > And some things are just wrong: for example the very simple statement > > put the keys of myArray From bobsneidar at iotecdigital.com Mon Apr 20 16:38:36 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 20:38:36 +0000 Subject: ABC of arrays In-Reply-To: <013001d06ce0$169c4ac0$43d4e040$@net> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> <551C60CD.7010401@gmail.com> <013001d06ce0$169c4ac0$43d4e040$@net> Message-ID: Not sure what this means, but an array (or element of an array) can contain one key that is a value, and another key that contains an array. In this context I do not see how this statement that a box (element of an array) can contain another array or a value but not both. It?s kind of like saying a parking space can contain either a car or a rider on a bicycle, but not both. It may help to think of an array like a spreadsheet. Each cell has a name, and inside the cell, a value. A workbook is kind lf like a multidimensional array, where you can have multiple ?arrays? in a single object (the file itself). What would make the analogy complete is if a cell itself could contain another spreadsheet. A really good analogy of a Livecode style array is the filing system on your hard drive. Inside the hard drive (array) you can have a file (element) that contains data, or a folder (element containing another array) that can also contain files or other folders and so on. Each of those objects has a name (key) that identifies it. MyHD/MyFiles/LCDocs/Test.lc is a kind of array reference. In an LC array it would look like: MyHD [myFiles] [LCDocs] Test.lc. What confuses people (and what confused me at first) was that people naturally expect one dimension of an array to contain only values or only other arrays. That would be a little like the original Mac file system where technically there were only files, and folders were really just markers on the file. It wasn?t a truly heirarchical file system. One other confusing thing is that if you check a variable containing an array for empty it will return true. You have the check to see if the variable is an array to see if there is an array in it. HTH Bob S On Apr 1, 2015, at 17:58 , Ralph DiMola > wrote: Mike, Well explained... Just when I learned the power of LC array the fact that a box could only contain a data item OR other boxes is what bit me. I actually coded up a mini storm and it wasn't until I start testing that I figured this out. At the time I couldn't think of a reason why LC couldn't be changed so a box could contain a data item AND other boxes. Later on I realized that it would break old code. Other than that it would be an asset to the LC array. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Mon Apr 20 16:42:37 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 20:42:37 +0000 Subject: system weekdayNames In-Reply-To: References: Message-ID: <46F7153A-DF73-4AC4-A6CD-15CB6590E37B@iotecdigital.com> If you check the Language and Region System Panel, you will see that you can change the Region, First day of week, and Calendar. I suspect that LC is going to sue these settings to determine any kind of day/date function. Bob S On Mar 31, 2015, at 18:15 , Peter Haworth > wrote: The system weekdayNames returns a list of day names in the user's local language but is the order of the day names influenced by the calendar conventions of the user's location? In other words, if I'm in the USA, the first name in the list is Sunday. If I was in a country where the convention is to start the week on a Monday, would Sunday still be the first day name in the list or would it be Monday? Pete From bobsneidar at iotecdigital.com Mon Apr 20 16:44:47 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 20:44:47 +0000 Subject: [OT] And You Thought Richmond Kept Old Macs Alive In-Reply-To: References: <519F6AE6-9EBA-400A-826B-305A05722B39@earthlink.net> <551452EE.1060002@hyperactivesw.com> <4B837B3C-4D51-4B9F-8395-1A71B63B7CE8@iotecdigital.com> Message-ID: <46E00942-D66A-4D5F-A4B1-F36BBA332FC2@iotecdigital.com> Exactly what I did except it was The Word For Today radio program. those Farallon hubs could be pissy, and you had to terminate every connection as I recall because it was a star configuration. Bob S On Mar 27, 2015, at 15:27 , stephen barncard > wrote: At A&M in the late 80s and early 90's I set up a very expensive Farallon rack-mounted hub with plug in cards. And the first card was a localtalk hub with each computer home-run'd to the hub rather than daisy chained. Later we added and Ethernet hub and ethernet cards to the machines and a gateway through ISDN to 'the internet'. Before the web existed we had a local networks and outside dial-up so I could screen share with any machine using Timbuktu Pretty cool for a recording studio... but I ended up as a reluctant IT guy for a while. -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words From bobsneidar at iotecdigital.com Mon Apr 20 16:47:48 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 20:47:48 +0000 Subject: [OT] And You Thought Richmond Kept Old Macs Alive In-Reply-To: <2FFD9159-CA87-4E4F-8F56-A7001E79B94D@kagi.com> References: <519F6AE6-9EBA-400A-826B-305A05722B39@earthlink.net> <551452EE.1060002@hyperactivesw.com> <4B837B3C-4D51-4B9F-8395-1A71B63B7CE8@iotecdigital.com> <2FFD9159-CA87-4E4F-8F56-A7001E79B94D@kagi.com> Message-ID: Localtalk adapters would typically convert from RJ11 to LocalTalk. I suppose you *could* daisy chain a bunch of straight up local talk connectors but the length would have been severely limited. What Ethertalk did was allow you to transport LocalTalk over twisted pair phone wire. Bob S > On Apr 1, 2015, at 16:20 , kee nethery wrote: > > Or if they have RJ11 phone jacks, PhoneNet connectors. > Kee > > >> On Mar 27, 2015, at 1:39 PM, Bob Sneidar wrote: >> >> Localtalk connectors. >> >> Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Mon Apr 20 16:49:02 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 20 Apr 2015 16:49:02 -0400 Subject: ABC of arrays In-Reply-To: References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> <551C60CD.7010401@gmail.com> <013001d06ce0$169c4ac0$43d4e040$@net> Message-ID: <9247F115-50C3-4C46-B20A-B65461FC83A2@gmail.com> I think your analogy isn?t right. A parking space in a car park can either hold a single vehicle or another car park, but not both a single vehicle and a car park. Or two vehicles come to that. If it does hold another car park, that would have its own parking spaces, for more vehicles, or car parks to occupy. > On Apr 20, 2015, at 4:38 PM, Bob Sneidar wrote: > > >In this context I do not see how this statement that a box (element of an array) can contain another array or a value but not both. It?s kind of like saying a parking space can contain either a car or a rider on a bicycle, but not both. From bobsneidar at iotecdigital.com Mon Apr 20 16:57:50 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 20:57:50 +0000 Subject: Data Crid - set the dgNumberOfRecords In-Reply-To: <83FAD35C-FD31-4DF5-A3EB-56C4F0B0B4A5@pacifier.com> References: <83FAD35C-FD31-4DF5-A3EB-56C4F0B0B4A5@pacifier.com> Message-ID: The best way to do this is to build an array from the cursor. What I have never understood is why LC does not have a cursor to array function. It?s easy enough to write one in LC, but having the engine do it would be orders of magnitude faster for large cursors. What I do is I use sqlYoga from Blue Mango Group. It can return you data as arrays that work perfectly with Data Grids. Given your table column names are the same as your data grid column names, query your database, set the dgData of your data grid to the resulting array, and there you have it. Presto bingo. An advantage to this approach is that even if you have not defined columns in your Data Grid that correspond to keys in your array, the data is still stored in the Data Grid. The columns will simply be invisible. This means for example, your data grid can display a first name and last name, while the Data Grid array can contain the unique key from the database and other information you may want for other purposes. Then when writing data back to the database table, you have intact each unique ID to reference the original record. Bob S > On Apr 1, 2015, at 20:16 , JB wrote: > > I am using a table form of data grid and trying > to display the records using a cursor and then > setting the dgNumberOfRecords. > > I am able to get the cursor and the record count > of the cursor and I can get dgNumberOfRecords > before I set dgNumberOfRecords. > > I want to set dgNumberOfRecords so the records > are displayed dynamically like is done in the sample > stack for displaying a large number of records. > > Am I supposed to set up the GetDataForLine or the > dgNumberOfRecords in my data grid somehow? > > When I set dgNumberOfRecords nothing else happens > and any script after that does not work either. > > Anyone have a clue why it stops or a different stack that > shows how to use it properly? > > John Balgenorth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mikedoub at gmail.com Mon Apr 20 16:56:23 2015 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 20 Apr 2015 16:56:23 -0400 Subject: curiosities in object reference In-Reply-To: <553510DC.60305@fourthworld.com> References: <553510DC.60305@fourthworld.com> Message-ID: <553567F7.4080303@gmail.com> The findTextInStyledText function within the MasterLibrary might be helpful in this case. Pass it a string to find and the styledText array and it will return to you the LineIndex, RunIndex and Starting char within the run. The MasterLibrary is here... https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 I just updated the Library to version 40. Somehow a very premature version of findTextInStyledText found it way into the library. A useful version is now in place. Richard and others, since you are now playing with styled text, how about sending me a wish list of functions that you think would be useful. I can tinker away at them. Regards, Mike On 4/20/15 10:44 AM, Richard Gaskin wrote: > Mike Bonner wrote: > > > I wish it was easy to work with "the styledtext" but multiple runs > > get really convoluted. They contain the actual text though, so if > > you're better at navigating arrays than I am, it might be possible > > to "put the styledtext of fRef into tStyledA" then make adjustments, > > then "set the styledtext of field fRef to tStyledA" > > I've come to enjoy working with styledText arrays since I asked about > them here last year. Very helpful for many things, but in this case > I'd use the simpler htmlText, designed as it is to provide a > plain-text representation of field contents with complete fidelity, > and it works on chunks as well as the field object as a whole. > From paul at researchware.com Mon Apr 20 17:01:32 2015 From: paul at researchware.com (Paul Dupuis) Date: Mon, 20 Apr 2015 17:01:32 -0400 Subject: RANT: LC6.7.4 and AVFoundation player Message-ID: <5535692C.6020605@researchware.com> I love LiveCode. It is my favorite development language and I have written code in a LOT of different languages over the years. However, it just irked me so damn much that I must VENT. Prior to LC6.7.x and the switch to the AVFoundation API if you: set the filename of player X to "/Users/.../Somemediafile.mov" and later put the filename of player X into tSomeFile tSomeFile contained the exact same local file path, i.e "/Users/.../Somemediafile.mov" In LC6.7.4 however, if you set the filename of player X to "C:/Users/.../Somemediafile.mov" and later put the filename of player X into tSomeFile tSomeFile now contains "file://C:/Users/.../Somemediafile.mov" which if you were trying to compare to another variable which had the same file name really f$%ks things up since the comparison fails. The adding of "file://" URI prefix just cost me an entire day of debugging. This really really should have been something that was in the Release Notes dear folks at RunRev. From bobsneidar at iotecdigital.com Mon Apr 20 17:09:38 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 21:09:38 +0000 Subject: HTML5 Export and Javascript In-Reply-To: <552154EF.8090809@fourthworld.com> References: <552154EF.8090809@fourthworld.com> Message-ID: <28C9666D-97EC-4315-87D7-C00EA1536174@iotecdigital.com> I for one would *love* to see LC be able to send Javascript commands to applications that accept it, like they do with Applescript. It would make my current project orders of magnitude easier. For instance, Adobe offers an API for creating and modifying PDF files via Java. This allows 3rd party developers to create PDF utilities without having to completely expose the PDF file format. Bob S On Apr 5, 2015, at 08:29 , Richard Gaskin > wrote: Roger Eller wrote: > vOn Apr 5, 2015 7:42 AM, "David Bovill" wrote: > >> Anyone have any thoughts on how an HTML5+Javascript exported Livecode >> application would / could interface with the rest of the Javascript >> world? > > I'm not sure if it will even be possible; it was certainly never their > intent. Why not? RevBrowser lets us integrate with JS; why not provide ways of letting JS integrate with LC inside the browser? It would seem horribly limited if everything LC/HTML delivered were effectively self-jailed, but I'd wager that's not the plan. On the desktop we have support for file I/O, AppleScript, Win Registry, shell, and many other means of communicating with the host system. I can't imagine we'd have anything less when the host system is a browser, and that would mean bi-directional JS. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web From dochawk at gmail.com Mon Apr 20 18:04:18 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 20 Apr 2015 15:04:18 -0700 Subject: compress & decompress In-Reply-To: References: <5514B7D9.1080608@hyperactivesw.com> Message-ID: On Sat, Mar 28, 2015 at 10:10 AM, Peter Haworth wrote: > Right, hut does the URL specify "file:" or "binfile:". > And this was, indeed, the problem. It didn't occur to me that the incoming file wouldn't be an exact binary copy, or that there would be a difference on a text file . .. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From matthias_livecode_150811 at m-r-d.de Mon Apr 20 18:04:29 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 21 Apr 2015 00:04:29 +0200 Subject: iOS app crashes under iOS 8.3 sporadically when doing a revopendb Message-ID: Under iOS 8.3 one of my apps sporadically crashes when opening an sqlite database. In the majority of cases a 2nd start of the app (sometimes after 5th or 10th start) resolves this problem and it?s possible to open and close the db as often as one likes. But when restarting the app it could happen that the app again crashes when opening the sqlite database. I am at a loss with that. Has anyone else noticed such behavior? Matthias From bonnmike at gmail.com Mon Apr 20 18:11:11 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 20 Apr 2015 16:11:11 -0600 Subject: ABC of arrays In-Reply-To: <9247F115-50C3-4C46-B20A-B65461FC83A2@gmail.com> References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> <551C60CD.7010401@gmail.com> <013001d06ce0$169c4ac0$43d4e040$@net> <9247F115-50C3-4C46-B20A-B65461FC83A2@gmail.com> Message-ID: Yep. myArray[1] Can either have a value such as "cheese" OR it can hold more boxes/parking spaces/whatever. But there is no way to have myArray[1] contain "cheese" AND more boxes. so if your array has myArray[1][2][3] and you put "Cheddar" into myArray[1] everything in myArray[1][2][3] goes away. So its either a value, or more boxes. You can see this in action with a simple script like this: put 1 into myArray[1][2][3] put the keys of myArray[1] & " First key put" & cr -- puts key 2 put 1 into myArray[1] put the keys of myArray[1] & " Second key put" after msg -- puts no keys because we wipe them out by putting a value in instead. On Mon, Apr 20, 2015 at 2:49 PM, Colin Holgate wrote: > I think your analogy isn?t right. A parking space in a car park can either > hold a single vehicle or another car park, but not both a single vehicle > and a car park. Or two vehicles come to that. If it does hold another car > park, that would have its own parking spaces, for more vehicles, or car > parks to occupy. > > > > On Apr 20, 2015, at 4:38 PM, Bob Sneidar > wrote: > > > > >In this context I do not see how this statement that a box (element of > an array) can contain another array or a value but not both. It?s kind of > like saying a parking space can contain either a car or a rider on a > bicycle, but not both. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Mon Apr 20 18:25:50 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 20 Apr 2015 15:25:50 -0700 Subject: ABC of arrays In-Reply-To: References: Message-ID: <55357CEE.30703@fourthworld.com> An array is a collection of name-value pairs. The name can be any string up to 255 characters. The value can be anything, even another array. Is it any deeper than that? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From rdimola at evergreeninfo.net Mon Apr 20 18:33:32 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 20 Apr 2015 18:33:32 -0400 Subject: iOS app crashes under iOS 8.3 sporadically when doing a revopendb In-Reply-To: References: Message-ID: <00ea01d07bba$08c731b0$1a559510$@net> I have!! (hand waving in the air) This will be fixed in the next release. RR promised the release today or tomorrow(along with Xcode 6.3 support). This is an un-initialized variable bug. That is why it comes and goes. I found the if I side loaded the app via an .ipa from iTunes it did not crash. You can even load an app with a distribution profile into iTunes and snag the resulting .ipa and submit the .ipa with the Application Loader. I got one of these random crash apps approved after running thru iTunes. I guess necessity IS the mother of invention. But I digress... See bug http://quality.runrev.com/show_bug.cgi?id=14972 and also of iOS crash interest http://quality.runrev.com/show_bug.cgi?id=15090 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Matthias Rebbe | M-R-D Sent: Monday, April 20, 2015 6:04 PM To: How to use LiveCode Subject: iOS app crashes under iOS 8.3 sporadically when doing a revopendb Under iOS 8.3 one of my apps sporadically crashes when opening an sqlite database. In the majority of cases a 2nd start of the app (sometimes after 5th or 10th start) resolves this problem and it?s possible to open and close the db as often as one likes. But when restarting the app it could happen that the app again crashes when opening the sqlite database. I am at a loss with that. Has anyone else noticed such behavior? Matthias _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dick.kriesel at mail.com Mon Apr 20 18:44:08 2015 From: dick.kriesel at mail.com (Dick Kriesel) Date: Mon, 20 Apr 2015 15:44:08 -0700 Subject: ABC of arrays In-Reply-To: References: <1CF0FD51-9303-491A-B4E0-F47FE0D07CCC@mac.com> <551C1C81.5080300@fourthworld.com> <738E2C73-8EE2-40B7-A9D5-7C4352A64A81@mac.com> <551C60CD.7010401@gmail.com> <013001d06ce0$169c4ac0$43d4e040$@net> Message-ID: <815B135D-17A3-402B-B41B-9F3568EC9370@mail.com> > On Apr 20, 2015, at 1:38 PM, Bob Sneidar wrote: > > One other confusing thing is that if you check a variable containing an array for empty it will return true. Lay that confusion to rest, Bob. Here?s a snip from release notes I found for 6.0.1: From 6.0 DP 3 onwards, expressions such as 'tArray is empty' will be true if and only if tArray contains the empty string. For example: put empty into tArray answer tArray is empty -- true put 100 into tArray["foo"] answer tArray is empty -- false (prior to 6.0 this would be 'true') From matthias_livecode_150811 at m-r-d.de Mon Apr 20 18:55:17 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 21 Apr 2015 00:55:17 +0200 Subject: iOS app crashes under iOS 8.3 sporadically when doing a revopendb In-Reply-To: <00ea01d07bba$08c731b0$1a559510$@net> References: <00ea01d07bba$08c731b0$1a559510$@net> Message-ID: Ralph, thanks for your reply. But do i see it right, your apps crashed on startup, right? My app starts up w/o problems. Only when connecting to a DB it crashes. But maybe the cause is the same. Thanks again. Regards, Matthias > Am 21.04.2015 um 00:33 schrieb Ralph DiMola : > > I have!! (hand waving in the air) > > This will be fixed in the next release. RR promised the release today or tomorrow(along with Xcode 6.3 support). This is an un-initialized variable bug. That is why it comes and goes. I found the if I side loaded the app via an .ipa from iTunes it did not crash. You can even load an app with a distribution profile into iTunes and snag the resulting .ipa and submit the .ipa with the Application Loader. I got one of these random crash apps approved after running thru iTunes. I guess necessity IS the mother of invention. But I digress... See bug http://quality.runrev.com/show_bug.cgi?id=14972 and also of iOS crash interest http://quality.runrev.com/show_bug.cgi?id=15090 > > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Matthias Rebbe | M-R-D > Sent: Monday, April 20, 2015 6:04 PM > To: How to use LiveCode > Subject: iOS app crashes under iOS 8.3 sporadically when doing a revopendb > > Under iOS 8.3 one of my apps sporadically crashes when opening an sqlite database. > In the majority of cases a 2nd start of the app (sometimes after 5th or 10th start) resolves this problem and it?s possible to open and close the db as often as one likes. But when restarting the app it could happen that the app again crashes when opening the sqlite database. > > I am at a loss with that. Has anyone else noticed such behavior? > > Matthias > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Mon Apr 20 19:20:22 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 20 Apr 2015 19:20:22 -0400 Subject: iOS app crashes under iOS 8.3 sporadically when doing a revopendb In-Reply-To: References: <00ea01d07bba$08c731b0$1a559510$@net> Message-ID: <00ff01d07bc0$937dd920$ba798b60$@net> Matthias, Yes, My app randomly crashes when opening up the database. I open my DB startup. RR confirmed that it crashed when opening the database. The accelerated rendering was another crash. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Matthias Rebbe | M-R-D Sent: Monday, April 20, 2015 6:55 PM To: How to use LiveCode Subject: Re: iOS app crashes under iOS 8.3 sporadically when doing a revopendb Ralph, thanks for your reply. But do i see it right, your apps crashed on startup, right? My app starts up w/o problems. Only when connecting to a DB it crashes. But maybe the cause is the same. Thanks again. Regards, Matthias > Am 21.04.2015 um 00:33 schrieb Ralph DiMola : > > I have!! (hand waving in the air) > > This will be fixed in the next release. RR promised the release today or tomorrow(along with Xcode 6.3 support). This is an un-initialized variable bug. That is why it comes and goes. I found the if I side loaded the app via an .ipa from iTunes it did not crash. You can even load an app with a distribution profile into iTunes and snag the resulting .ipa and submit the .ipa with the Application Loader. I got one of these random crash apps approved after running thru iTunes. I guess necessity IS the mother of invention. But I digress... See bug http://quality.runrev.com/show_bug.cgi?id=14972 and also of iOS crash interest http://quality.runrev.com/show_bug.cgi?id=15090 > > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Matthias Rebbe | M-R-D > Sent: Monday, April 20, 2015 6:04 PM > To: How to use LiveCode > Subject: iOS app crashes under iOS 8.3 sporadically when doing a revopendb > > Under iOS 8.3 one of my apps sporadically crashes when opening an sqlite database. > In the majority of cases a 2nd start of the app (sometimes after 5th or 10th start) resolves this problem and it?s possible to open and close the db as often as one likes. But when restarting the app it could happen that the app again crashes when opening the sqlite database. > > I am at a loss with that. Has anyone else noticed such behavior? > > Matthias > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Apr 20 19:24:46 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 20 Apr 2015 23:24:46 +0000 Subject: dragDrop with data grid objects Message-ID: <0754F609-17C7-41DC-A869-C663F611E974@iotecdigital.com> Any idea if I can use dragDrop with a data grid object? Currently I get the gray cross circle when trying to drag a file to a data grid. I wanted to create an import handler activated by simply drag dropping the file onto the data grid. I can do it with a field, but not with a data grid. Bob S From monte at sweattechnologies.com Mon Apr 20 19:54:16 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 21 Apr 2015 09:54:16 +1000 Subject: RANT: LC6.7.4 and AVFoundation player In-Reply-To: <5535692C.6020605@researchware.com> References: <5535692C.6020605@researchware.com> Message-ID: <095503DD-B8E1-49D8-B154-FCFDD82DC852@sweattechnologies.com> That sounds like a reportable bug rather than something to put in the release notes. On 21 Apr 2015, at 7:01 am, Paul Dupuis wrote: > In LC6.7.4 however, if you > set the filename of player X to "C:/Users/.../Somemediafile.mov" > and later > put the filename of player X into tSomeFile > tSomeFile now contains "file://C:/Users/.../Somemediafile.mov" which if > you were trying to compare to another variable which had the same file > name really f$%ks things up since the comparison fails. > The adding of "file://" URI prefix just cost me an entire day of debugging. > > This really really should have been something that was in the Release > Notes dear folks at RunRev. -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From ambassador at fourthworld.com Mon Apr 20 20:21:54 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 20 Apr 2015 17:21:54 -0700 Subject: Large Scripts Run too Slowly In-Reply-To: <55353B13.8060003@hyperactivesw.com> References: <55353B13.8060003@hyperactivesw.com> Message-ID: <55359822.7040107@fourthworld.com> J. Landman Gay wrote: > On 4/20/2015 11:07 AM, Richard Gaskin wrote: >> I made a drag-and-drop plugin for LC's gzip: >> > > I've been using this a lot over the years, just because it's easier > than typing the command into the message box. But the copy I have > isn't drag and drop so I downloaded this one -- but it isn't either. > That'd be a nice touch. > > The scripts are locked so I couldn't look though. The scripts have been unlocked for many years, ever since I first released it as Public Domain back in 2002. The drag-n-drop worked on Mac last time I used it there a few weeks ago, but now that I'm spending more time on Linux I tested it in Ubuntu and it didn't work. Very old code, using very old syntax. I just made a quick update to it and posted both compressed and uncompressed copies, compatible with LC 5.5 and later: John Balgenorth wrote: > A really good feature to have would > be the ability to zip a folder of files > and folders and a volume of a hard > drive. It's public domain, and there's not that much code there anyway - knock yourself out. :) I made it only because back in those days I was gzipping a lot of files for manually posting to servers. These days I tend to write publishing scripts that do the zipping and then upload with rync, so I don't use this much anymore. But it's nice to see at least Jacque finds it helpful, and if anyone's interested in using any part of that for a full-features compression/decompression tool it'd be good to see it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Mon Apr 20 20:37:46 2015 From: sundown at pacifier.com (JB) Date: Mon, 20 Apr 2015 17:37:46 -0700 Subject: Large Scripts Run too Slowly In-Reply-To: <55359822.7040107@fourthworld.com> References: <55353B13.8060003@hyperactivesw.com> <55359822.7040107@fourthworld.com> Message-ID: <7E5DC865-BBE0-40FA-B0AE-52B914C3C6F8@pacifier.com> Thanks Richard! I am working on a project that will be doing some file zipping. It isn?t a full blown zip program. It will just provide the ability to zip a file in the process. It is impressive and nice to see very old code works on current Macs. I jusst downloaded the code from you links and will be looking at it. thanks again! John Balgenorth On Apr 20, 2015, at 5:21 PM, Richard Gaskin wrote: > J. Landman Gay wrote: > > > On 4/20/2015 11:07 AM, Richard Gaskin wrote: > >> I made a drag-and-drop plugin for LC's gzip: > >> > > > > I've been using this a lot over the years, just because it's easier > > than typing the command into the message box. But the copy I have > > isn't drag and drop so I downloaded this one -- but it isn't either. > > That'd be a nice touch. > > > > The scripts are locked so I couldn't look though. > > The scripts have been unlocked for many years, ever since I first released it as Public Domain back in 2002. > > The drag-n-drop worked on Mac last time I used it there a few weeks ago, but now that I'm spending more time on Linux I tested it in Ubuntu and it didn't work. Very old code, using very old syntax. > > I just made a quick update to it and posted both compressed and uncompressed copies, compatible with LC 5.5 and later: > > > > > > John Balgenorth wrote: > > > A really good feature to have would > > be the ability to zip a folder of files > > and folders and a volume of a hard > > drive. > > It's public domain, and there's not that much code there anyway - knock yourself out. :) > > I made it only because back in those days I was gzipping a lot of files for manually posting to servers. These days I tend to write publishing scripts that do the zipping and then upload with rync, so I don't use this much anymore. > > But it's nice to see at least Jacque finds it helpful, and if anyone's interested in using any part of that for a full-features compression/decompression tool it'd be good to see it. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Mon Apr 20 20:43:38 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 20 Apr 2015 17:43:38 -0700 Subject: Stacks and livecode server? In-Reply-To: References: Message-ID: <55359D3A.90704@fourthworld.com> jbv wrote: >> Richard Gaskin wrote: >> A majority of the projects I'm working on at the moment are >> standalones that download stacks - depending on what your app >> does and the needs of its audience, it can be an excellent >> delivery solution. > > Same here. > But there's a question in my mind for quite a while : as I'm about > to develop apps for some professionals who will use them on iPads > and iPhones, I was wondering how this follows Apple's rules ? > After all, what prevents to submit a first version of the app, and > once it's available on the Appstore, to switch to different > downloaded stacks, with different functions and content ? > Am I missing something ? I wish Apple's rules were clearer on this so we could end the confusion without our community. I haven't read Apple's TOS in a while, and no matter what the rules are today as we learned in 2010 Apple has demonstrated a willingness to change them drastically without warning, so there's no way to know what they'll be tomorrow. So while I can't speak for Apple, that won't stop me from random conjecture: Any script engine can download files containing scripts from a server, thereby enhancing or even altering the behavior of the app. I believe Apple's concern here is merely to make sure the user experience they approve is what end-users get. AFAIK they have no prohibition on downloading binary files, so stack files that contain media but no code, or even behavior-driven stack files that contain no code themselves, would reasonably seem to fit the narrowest definition of their TOS. But they might even allow stack files that contain code, providing the code doesn't substantially alter the features of the app. That is, if you get approval for an app that claims to track football scores, but once it's released it suddenly morphs into a root kit. Apple would probably not want to see that. But if the app merely downloads stack files containing data and UI elements for new teams or other things that don't fundamentally alter the app's purpose or behavior, it would be hard to believe they'd ban it from the app store. Has anyone here had a discussion with Apple on this? Anyone using downloaded stack files as data containers in a way that would seem consistent with Apple's TOS? I'm not sure this issue is as murky as it seems, and may be quite simple. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sundown at pacifier.com Mon Apr 20 21:02:34 2015 From: sundown at pacifier.com (JB) Date: Mon, 20 Apr 2015 18:02:34 -0700 Subject: Large Scripts Run too Slowly In-Reply-To: <7E5DC865-BBE0-40FA-B0AE-52B914C3C6F8@pacifier.com> References: <55353B13.8060003@hyperactivesw.com> <55359822.7040107@fourthworld.com> <7E5DC865-BBE0-40FA-B0AE-52B914C3C6F8@pacifier.com> Message-ID: <6EA17E0C-2D97-4A01-841E-19B9424203A4@pacifier.com> Hi Richard, I just looked at your code and it is really nice. I always learn so much from your code. Thanks again! John Balgenorth On Apr 20, 2015, at 5:37 PM, JB wrote: > Thanks Richard! > > I am working on a project that will be > doing some file zipping. It isn?t a full > blown zip program. It will just provide > the ability to zip a file in the process. > > It is impressive and nice to see very old > code works on current Macs. > > I jusst downloaded the code from you links > and will be looking at it. > > thanks again! > > John Balgenorth > > > On Apr 20, 2015, at 5:21 PM, Richard Gaskin wrote: > >> J. Landman Gay wrote: >> >>> On 4/20/2015 11:07 AM, Richard Gaskin wrote: >>>> I made a drag-and-drop plugin for LC's gzip: >>>> >>> >>> I've been using this a lot over the years, just because it's easier >>> than typing the command into the message box. But the copy I have >>> isn't drag and drop so I downloaded this one -- but it isn't either. >>> That'd be a nice touch. >>> >>> The scripts are locked so I couldn't look though. >> >> The scripts have been unlocked for many years, ever since I first released it as Public Domain back in 2002. >> >> The drag-n-drop worked on Mac last time I used it there a few weeks ago, but now that I'm spending more time on Linux I tested it in Ubuntu and it didn't work. Very old code, using very old syntax. >> >> I just made a quick update to it and posted both compressed and uncompressed copies, compatible with LC 5.5 and later: >> >> >> >> >> >> John Balgenorth wrote: >> >>> A really good feature to have would >>> be the ability to zip a folder of files >>> and folders and a volume of a hard >>> drive. >> >> It's public domain, and there's not that much code there anyway - knock yourself out. :) >> >> I made it only because back in those days I was gzipping a lot of files for manually posting to servers. These days I tend to write publishing scripts that do the zipping and then upload with rync, so I don't use this much anymore. >> >> But it's nice to see at least Jacque finds it helpful, and if anyone's interested in using any part of that for a full-features compression/decompression tool it'd be good to see it. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pmbrig at gmail.com Mon Apr 20 21:44:33 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Mon, 20 Apr 2015 21:44:33 -0400 Subject: curiosities in object reference In-Reply-To: References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: Yes, that's the kind of thing I've done. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 20, 2015, at 1:57 AM, Kay C Lan wrote: > Maybe this will help: > > put the long id of fld "text" into fRef > put word 3 of fRef into fFldID > put word 7 of fRef into fCdID > put word -1 of fRef into fStackName > replace quote with empty in fStackName > put "deux" into word 2 of fld id fFldID of card id fCdID of stack fStackName > > > > On Mon, Apr 20, 2015 at 4:20 AM, Peter M. Brigham wrote: > >> So I have a field, let's say field "text", with the contents "one two >> three four". >> >> if I do this: >> put the long id of fld "text" into fRef >> put "deux" into word 2 of fRef >> >> it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't >> resolve fRef as a field reference. >> >> But if I do: >> put the text of fRef into tText >> >> it *does* resolve fRef as a field reference, as I would expect. It appears >> that the engine only resolves these references when the context/syntax >> indicates that it should expect an object reference, and not otherwise. >> >> Is there any way I can put "deux" into word 2 of the field without jumping >> through hoops, like >> put "deux" into newWord >> do "put newWord into word two of" && fRef >> ?? >> >> I don't want to do: >> put the text of fRef into tText >> put "deux" into word 2 of tText >> set the text of fRef to tText >> because the field may contain formatted text that I want to preserve. >> >> ideas? or am I stuck with hoops? >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Mon Apr 20 21:47:11 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Mon, 20 Apr 2015 21:47:11 -0400 Subject: curiosities in object reference In-Reply-To: References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: <534F885B-2288-494E-92A1-75187338B216@gmail.com> On Apr 20, 2015, at 4:08 AM, David Bovill wrote: > You need to force the type of fRef to be a string. > > LiveCode assumes a string that lukes like a long id is a reference to a > control. It's duck-typing. > > This is useful in many circumstances. > > To get round it you don't need "do", but you need to assemble the reference > as a string - and do mess around a bit. > > Try deleting the first word if fRef, then manipulating it, then adding the > first word back? Yes, I tried that. No go. It seems to depend entirely on the context of the command. If the engine sees something that can only be done to an object reference, it resolves the reference. If it doesn't, it treats it as an ordinary container with a text string content. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig > On Mon, 20 Apr 2015 at 06:58, Kay C Lan wrote: > >> Maybe this will help: >> >> put the long id of fld "text" into fRef >> put word 3 of fRef into fFldID >> put word 7 of fRef into fCdID >> put word -1 of fRef into fStackName >> replace quote with empty in fStackName >> put "deux" into word 2 of fld id fFldID of card id fCdID of stack >> fStackName >> >> >> >> On Mon, Apr 20, 2015 at 4:20 AM, Peter M. Brigham >> wrote: >> >>> So I have a field, let's say field "text", with the contents "one two >>> three four". >>> >>> if I do this: >>> put the long id of fld "text" into fRef >>> put "deux" into word 2 of fRef >>> >>> it puts "deux" into word 2 of "field id 1022 of stack?" and doesn't >>> resolve fRef as a field reference. >>> >>> But if I do: >>> put the text of fRef into tText >>> >>> it *does* resolve fRef as a field reference, as I would expect. It >> appears >>> that the engine only resolves these references when the context/syntax >>> indicates that it should expect an object reference, and not otherwise. >>> >>> Is there any way I can put "deux" into word 2 of the field without >> jumping >>> through hoops, like >>> put "deux" into newWord >>> do "put newWord into word two of" && fRef >>> ?? >>> >>> I don't want to do: >>> put the text of fRef into tText >>> put "deux" into word 2 of tText >>> set the text of fRef to tText >>> because the field may contain formatted text that I want to preserve. >>> >>> ideas? or am I stuck with hoops? >>> >>> -- Peter >>> >>> Peter M. Brigham >>> pmbrig at gmail.com >>> http://home.comcast.net/~pmbrig >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Tue Apr 21 01:08:16 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 20 Apr 2015 22:08:16 -0700 Subject: Stacks and livecode server? In-Reply-To: <55353E9E.5090805@fourthworld.com> References: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> <55353E9E.5090805@fourthworld.com> Message-ID: <198692DF-CA44-43CE-88DE-CC9238A028F6@me.com> Richard, This is a great explanation! You didn't go on long enough! I would LOVE a good reference book/ebook/application on using LC, LC server, and web services in general. I would easily pay $100 for such a thing if it really got me going in this field. I know LC desktop pretty well but have all sorts of needs for this kind of thing, but what available is (for me) a daunting conglomeration of resources. Peter Bogdanoff > On Apr 20, 2015, at 10:59 AM, Richard Gaskin wrote: > > Eric A. Engle wrote: > >> There was a revolution plug in which allowed stacks to be served (I >> believe as "revlets"). I know that has been cancelled, at least for >> now. > > Probably forever. Browser plugins were a popular solution in the '90s, but became untenable by the turn of the century. Beyond the incompatible implementations of the various plugin specs browser vendors provide, there's the bigger issue: it still requires the user to download and install a form of the LiveCode engine. > > If you're going to ask users to do that you can just as easily deliver a standalone that downloads stacks; more easily, actually. > > It's as easy to do in LiveCode as: > > go url "http://somedomain/mystack.livecode" > > A standalone provides the same benefit an any other client software using Web protocols, such as a browser, in having code and content centrally located and always up to date. But a LiveCode standalone offers some advantages difficult or impossible to achieve in a Web browser: > > Using a standalone can be far more flexible than using the now-defunct browser plugin because it doesn't attempt to cram the user experience into the confines of a browser window, which is designed for a much more general task flow. So you never need to deal with questions like "What happens when the user presses the Back button?" In a standalone, everything in the UI is dedicated for the task you're supporting. > > A standalone can also be more secure. Mark Waddingham's addition of the securityPermissions global property offers reasonably fine-grained control of what a standalone can and can't do; turning off all options except Internet access can deliver a Web-savvy experience safer than nearly any browser. > > Using a standalone is of course dependent on users who value your app enough to download it. But the same would be true of a browser plugin, so in terms of that one requirement it's a wash, and in all other respects the standalone offers many favorable advantages. > > Plus it's dirt-simple to make today using the LiveCode we have in hand right now. A majority of the projects I'm working on at the moment are standalones that download stacks - depending on what your app does and the needs of its audience, it can be an excellent delivery solution. > > > >> Meanwhile, I have installed livecode for cgi, which and it works. >> I searched the internet to see if the livecode server can be used >> to serve stacks somehow, or is basically only useful for cgi. >> Surprisingly, I didn't find anything, or at least nothing useful. > > It may be less surprising when we consider the different roles of client and server, and how each differs from other. > > In essence, a Web server is just a file server. You request things from it, and in most cases all it does is find a file at the location specified in the request, reads it from the server's disk, and sends that data over the wire to the client. > > Good Web servers are also extensible, so that in addition to serving static files they can also generate data dynamically on the server and send that back to the requesting client. > > On the client side, what the client software can do with the data it receives from the server is limited to the engine used. For example, a mail client can handle email data but little else, and a Web browser client can handle Web pages and little else. > > If you want to deliver LiveCode stack files, you need some form of the LiveCode on the client machine which can read those. > > Web browsers have no understanding of LiveCode files, so if you want to render the contents of a LiveCode stack within a Web browser you'll need to translate it into the form browsers use, HTML for content and JavaScript for interactivity. > > RunRev Ltd. is working on a toolkit that will provide that translation for us, but it's likely months away from a preview build and I'd guess much longer before a final build is available. > > So for now, if we want to deliver LiveCode stacks to a client, that client must be made with LiveCode. > > Keep in mind that delivering LiveCode stacks from a Web server doesn't require LiveCode Server at all. Useful as it is for other things, whether or not you use LiveCode Server or any other server-side software to help generate data doesn't affect how the client works with that data. > > So if your goal is to deliver LiveCode stacks, those are just files on a server and Apache can do that for you very easily without you needing to do anything more than just copying the stack to your server. Whenever any client requests any file from the server, as long as that file exists the server can read it and send it back, whether it's an HTML page, a JPEG image, or a LiveCode stack file. > > This is why you won't find info on using LiveCode Server to deliver stack files, it just isn't needed. > > Where LiveCode Server can be useful is when the data you want to deliver needs to be unique for the request. > > For example, if you just want to get a JPEG image and it's always the same image every time it's requested, you don't need to do anything more than just put the image file on the server and you're done. But if you wanted to allow the user to customize the image, as in making a postcard with a customized greeting, then you'd need something more than just a file server, something that can add the desired greeting text to the image and export the result to send back to the client. For things like that a CGI app like LiveCode Server is great, adding custom programming to augment the simple file serving Web servers do by default. > > When using LiveCode Server, the client can be whatever software can handle the data you're sending to it. > > If you're generating HTML pages with LiveCode Server, you can use a Web browser for the client. If you're generating XML or JSON content, the client can be any app that can handle those formats. A LiveCode standalone can handle all of those too, along with image files and just about anything else you can throw at it. > > You can even modify stack files with LiveCode Server and send the modified stack to the client, but in that case as noted earlier your client would need to be made in LiveCode since only LiveCode understands the LiveCode stack file format. > > And all of this handles only getting data from the server to the client. If you want to modify data within a stack on the client side and save that data back to the server, that's another set of considerations and this post has already gotten far too long. > > If a LiveCode client is of interest and you could use help in evaluating options for saving data back to the server, many of us here do this daily and would be happy to help. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at sorcery-ltd.co.uk Tue Apr 21 04:34:26 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Tue, 21 Apr 2015 09:34:26 +0100 Subject: Stacks and livecode server? In-Reply-To: <55359D3A.90704@fourthworld.com> References: <55359D3A.90704@fourthworld.com> Message-ID: <1429605266.2183882.256481853.74FBD18D@webmail.messagingengine.com> > I wish Apple's rules were clearer on this so we could end the confusion > without our community. Obviously Apple has nothing to say specifically about stacks (a bit too niche) but I think the rules are quite clear. Previously you could not download executable code of any kind unless it was JavaScript downloaded by a WebView. There's then a separate requirement not to significantly change the functionality of the app, which applies whether you are downloading code or not (e.g. something very different cannot be in the original code but not activated until some later time or after checking a certain value on a server). More recently Apple has added the option to download JavaScript to their JavaScriptCore engine, which they exposed a new interface to in iOS7. The reason that Apple give to only allow code downloading to their JavaScript runtimes is security. I think they're much less concerned about what an individual app might do (they can pull it from the store and even remotely remove it from devices) but rather what might happen if a vulnerability was exploited in a widely deployed third party runtime. > AFAIK they have no prohibition on downloading binary files, so stack > files that contain media but no code, or even behavior-driven stack > files that contain no code themselves, would reasonably seem to fit the > narrowest definition of their TOS. Yes, you can download bundles of content with no code. The file format doesn't matter. Unity has asset bundles that can contain code on other platforms but are content only on iOS. I'm not sure if a stack has significant advantages over some other format here but I don't see why you shouldn't. > But they might even allow stack files that contain code, providing the > code doesn't substantially alter the features of the app. That's certainly against the letter of the rules as they stand. Of course Apple can't really know what every app with every possible 3rd party runtime is doing, so you may well get away with it. Who wants to risk getting booted out of the developer program though? Mark -- Mark Wilcox mark at sorcery-ltd.co.uk On Tue, Apr 21, 2015, at 01:43 AM, Richard Gaskin wrote: > jbv wrote: > > >> Richard Gaskin wrote: > >> A majority of the projects I'm working on at the moment are > >> standalones that download stacks - depending on what your app > >> does and the needs of its audience, it can be an excellent > >> delivery solution. > > > > Same here. > > But there's a question in my mind for quite a while : as I'm about > > to develop apps for some professionals who will use them on iPads > > and iPhones, I was wondering how this follows Apple's rules ? > > After all, what prevents to submit a first version of the app, and > > once it's available on the Appstore, to switch to different > > downloaded stacks, with different functions and content ? > > Am I missing something ? > > I wish Apple's rules were clearer on this so we could end the confusion > without our community. > > I haven't read Apple's TOS in a while, and no matter what the rules are > today as we learned in 2010 Apple has demonstrated a willingness to > change them drastically without warning, so there's no way to know what > they'll be tomorrow. > > So while I can't speak for Apple, that won't stop me from random > conjecture: > > Any script engine can download files containing scripts from a server, > thereby enhancing or even altering the behavior of the app. > > I believe Apple's concern here is merely to make sure the user > experience they approve is what end-users get. > > AFAIK they have no prohibition on downloading binary files, so stack > files that contain media but no code, or even behavior-driven stack > files that contain no code themselves, would reasonably seem to fit the > narrowest definition of their TOS. > > But they might even allow stack files that contain code, providing the > code doesn't substantially alter the features of the app. > > That is, if you get approval for an app that claims to track football > scores, but once it's released it suddenly morphs into a root kit. Apple > would probably not want to see that. > > But if the app merely downloads stack files containing data and UI > elements for new teams or other things that don't fundamentally alter > the app's purpose or behavior, it would be hard to believe they'd ban it > from the app store. > > Has anyone here had a discussion with Apple on this? Anyone using > downloaded stack files as data containers in a way that would seem > consistent with Apple's TOS? > > I'm not sure this issue is as murky as it seems, and may be quite simple. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Tue Apr 21 08:24:49 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 21 Apr 2015 08:24:49 -0400 Subject: Large Scripts Run too Slowly In-Reply-To: <55359822.7040107@fourthworld.com> References: <55353B13.8060003@hyperactivesw.com> <55359822.7040107@fourthworld.com> Message-ID: <2926B87B-9144-46E3-B0B6-29428FFEA254@gmail.com> I've put gZipper into my plugins folder -- thanks, Richard! However, I attempted to edit the stack -- just cosmetic stuff, the controls weren't aligned and things were off-center, etc, I'm a little obsessive that way, it really distracts me when stuff doesn't look good. (I know this is just a quick and dirty utility, and Richard, you are among the best at GUI, so no offense.) I recall a possibly apocryphal story about Steve Jobs calling up an Apple graphic designer at 3am to tell him that one of his icons was off by one pixel and that it had to be fixed by 8am -- I know that Steve was a real bastard to work with but I have a certain amount of admiration for this kind of perfectionism. So, back to the point, I edited the positions of the controls, but every time I tried to save the stack, LC crashed, leaving a "corrupted" stack. When I restarted, the stack was still available in the plugins list and opened fine, but if I tried to change the opening mode, eg from modeless to palette, LC crashed again. The trigger seems to be trying to save the stack. I'm guessing this is probably due to my running LC 5.5.1 still, but advice would be appreciated. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 20, 2015, at 8:21 PM, Richard Gaskin wrote: > J. Landman Gay wrote: > > > On 4/20/2015 11:07 AM, Richard Gaskin wrote: > >> I made a drag-and-drop plugin for LC's gzip: > >> > > > > I've been using this a lot over the years, just because it's easier > > than typing the command into the message box. But the copy I have > > isn't drag and drop so I downloaded this one -- but it isn't either. > > That'd be a nice touch. > > > > The scripts are locked so I couldn't look though. > > The scripts have been unlocked for many years, ever since I first released it as Public Domain back in 2002. > > The drag-n-drop worked on Mac last time I used it there a few weeks ago, but now that I'm spending more time on Linux I tested it in Ubuntu and it didn't work. Very old code, using very old syntax. > > I just made a quick update to it and posted both compressed and uncompressed copies, compatible with LC 5.5 and later: > > > From prothero at earthednet.org Tue Apr 21 09:13:43 2015 From: prothero at earthednet.org (EED-wp Email) Date: Tue, 21 Apr 2015 06:13:43 -0700 Subject: Stacks and livecode server? In-Reply-To: <198692DF-CA44-43CE-88DE-CC9238A028F6@me.com> References: <1933252503.349176.1429534385965.JavaMail.yahoo@mail.yahoo.com> <55353E9E.5090805@fourthworld.com> <198692DF-CA44-43CE-88DE-CC9238A028F6@me.com> Message-ID: <385FCFD8-7790-41FB-B6EE-C69D5CD2EB05@earthednet.org> Peter I think it would be very hard to justify the effort required for a livecode book, given all of the changes in livecode on the horizon. Keeping it up to date would be a huge effort, too. Best Bill William Prothero http://ed.earthednet.org > On Apr 20, 2015, at 10:08 PM, Peter Bogdanoff wrote: > > Richard, > > This is a great explanation! > > You didn't go on long enough! > > I would LOVE a good reference book/ebook/application on using LC, LC server, and web services in general. > > I would easily pay $100 for such a thing if it really got me going in this field. I know LC desktop pretty well but have all sorts of needs for this kind of thing, but what available is (for me) a daunting conglomeration of resources. > > Peter Bogdanoff > >> On Apr 20, 2015, at 10:59 AM, Richard Gaskin wrote: >> >> Eric A. Engle wrote: >> >>> There was a revolution plug in which allowed stacks to be served (I >>> believe as "revlets"). I know that has been cancelled, at least for >>> now. >> >> Probably forever. Browser plugins were a popular solution in the '90s, but became untenable by the turn of the century. Beyond the incompatible implementations of the various plugin specs browser vendors provide, there's the bigger issue: it still requires the user to download and install a form of the LiveCode engine. >> >> If you're going to ask users to do that you can just as easily deliver a standalone that downloads stacks; more easily, actually. >> >> It's as easy to do in LiveCode as: >> >> go url "http://somedomain/mystack.livecode" >> >> A standalone provides the same benefit an any other client software using Web protocols, such as a browser, in having code and content centrally located and always up to date. But a LiveCode standalone offers some advantages difficult or impossible to achieve in a Web browser: >> >> Using a standalone can be far more flexible than using the now-defunct browser plugin because it doesn't attempt to cram the user experience into the confines of a browser window, which is designed for a much more general task flow. So you never need to deal with questions like "What happens when the user presses the Back button?" In a standalone, everything in the UI is dedicated for the task you're supporting. >> >> A standalone can also be more secure. Mark Waddingham's addition of the securityPermissions global property offers reasonably fine-grained control of what a standalone can and can't do; turning off all options except Internet access can deliver a Web-savvy experience safer than nearly any browser. >> >> Using a standalone is of course dependent on users who value your app enough to download it. But the same would be true of a browser plugin, so in terms of that one requirement it's a wash, and in all other respects the standalone offers many favorable advantages. >> >> Plus it's dirt-simple to make today using the LiveCode we have in hand right now. A majority of the projects I'm working on at the moment are standalones that download stacks - depending on what your app does and the needs of its audience, it can be an excellent delivery solution. >> >> >> >>> Meanwhile, I have installed livecode for cgi, which and it works. >>> I searched the internet to see if the livecode server can be used >>> to serve stacks somehow, or is basically only useful for cgi. >>> Surprisingly, I didn't find anything, or at least nothing useful. >> >> It may be less surprising when we consider the different roles of client and server, and how each differs from other. >> >> In essence, a Web server is just a file server. You request things from it, and in most cases all it does is find a file at the location specified in the request, reads it from the server's disk, and sends that data over the wire to the client. >> >> Good Web servers are also extensible, so that in addition to serving static files they can also generate data dynamically on the server and send that back to the requesting client. >> >> On the client side, what the client software can do with the data it receives from the server is limited to the engine used. For example, a mail client can handle email data but little else, and a Web browser client can handle Web pages and little else. >> >> If you want to deliver LiveCode stack files, you need some form of the LiveCode on the client machine which can read those. >> >> Web browsers have no understanding of LiveCode files, so if you want to render the contents of a LiveCode stack within a Web browser you'll need to translate it into the form browsers use, HTML for content and JavaScript for interactivity. >> >> RunRev Ltd. is working on a toolkit that will provide that translation for us, but it's likely months away from a preview build and I'd guess much longer before a final build is available. >> >> So for now, if we want to deliver LiveCode stacks to a client, that client must be made with LiveCode. >> >> Keep in mind that delivering LiveCode stacks from a Web server doesn't require LiveCode Server at all. Useful as it is for other things, whether or not you use LiveCode Server or any other server-side software to help generate data doesn't affect how the client works with that data. >> >> So if your goal is to deliver LiveCode stacks, those are just files on a server and Apache can do that for you very easily without you needing to do anything more than just copying the stack to your server. Whenever any client requests any file from the server, as long as that file exists the server can read it and send it back, whether it's an HTML page, a JPEG image, or a LiveCode stack file. >> >> This is why you won't find info on using LiveCode Server to deliver stack files, it just isn't needed. >> >> Where LiveCode Server can be useful is when the data you want to deliver needs to be unique for the request. >> >> For example, if you just want to get a JPEG image and it's always the same image every time it's requested, you don't need to do anything more than just put the image file on the server and you're done. But if you wanted to allow the user to customize the image, as in making a postcard with a customized greeting, then you'd need something more than just a file server, something that can add the desired greeting text to the image and export the result to send back to the client. For things like that a CGI app like LiveCode Server is great, adding custom programming to augment the simple file serving Web servers do by default. >> >> When using LiveCode Server, the client can be whatever software can handle the data you're sending to it. >> >> If you're generating HTML pages with LiveCode Server, you can use a Web browser for the client. If you're generating XML or JSON content, the client can be any app that can handle those formats. A LiveCode standalone can handle all of those too, along with image files and just about anything else you can throw at it. >> >> You can even modify stack files with LiveCode Server and send the modified stack to the client, but in that case as noted earlier your client would need to be made in LiveCode since only LiveCode understands the LiveCode stack file format. >> >> And all of this handles only getting data from the server to the client. If you want to modify data within a stack on the client side and save that data back to the server, that's another set of considerations and this post has already gotten far too long. >> >> If a LiveCode client is of interest and you could use help in evaluating options for saving data back to the server, many of us here do this daily and would be happy to help. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sritcp at gmail.com Tue Apr 21 09:23:45 2015 From: sritcp at gmail.com (Sri) Date: Tue, 21 Apr 2015 06:23:45 -0700 (PDT) Subject: curiosities in object reference In-Reply-To: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> References: <9E24A93B-0C79-43F0-A642-77BB11F84120@gmail.com> Message-ID: <1429622625039-4691322.post@n4.nabble.com> This works: put "deux" into word 2 of control (the layer of the long id of fld "Field1") Regards, Sri pmbrig wrote > ............ > Is there any way I can put "deux" into word 2 of the field without jumping > through hoops, > .......... > or am I stuck with hoops? > > -- Peter > > Peter M. Brigham > pmbrig@ > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/curiosities-in-object-reference-tp4691266p4691322.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Tue Apr 21 09:58:20 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 21 Apr 2015 06:58:20 -0700 Subject: curiosities in object reference In-Reply-To: <534F885B-2288-494E-92A1-75187338B216@gmail.com> References: <534F885B-2288-494E-92A1-75187338B216@gmail.com> Message-ID: <5536577C.8010606@fourthworld.com> Peter M. Brigham wrote: > It seems to depend entirely on the context of the command. > If the engine sees something that can only be done to an > object reference, it resolves the reference. If it doesn't, > it treats it as an ordinary container with a text string > content. This was a mental challenge for me for many years across all the xTalks I've worked with. Thankfully LiveCode offers a broad range of property-oriented syntax to work with container objects, so as a rule I tend to favor things like this: set the text of tFieldObj to "Hello World" ...over using "put": put "Hello World" into tFieldObj ...which of course will merely do exactly what I'm telling it to do (put a value into a variable), which many not be what I mean (put a value into an object referred to in a variable). :) Since only objects have properties and strings don't, when using property settings for content manipulation the engine will never guess wrong about what it's supposed to do with tFieldObj. One nice thing that's unique to LiveCode among all xTalks is its htmlText property, which allows us to faithfully reproduce all content and styling for field objects, and can be used for a portion of field objects: set the htmlText of word 2 of line 3 of tFieldObj \ to "Hello World" And if styling isn't needed, the text property can be used just as flexibly: set the text of word 2 of line 3 of tFieldObj \ to "Hello World" When "set the text of..." is cumbersome (when you're working with lots of fields), you can use any string in which at least part of the object reference is hard-coded: put "Hello World" into field tMyFieldName I haven't read the User Guide section on working with containers in a long time - anyone here have an opinion on how clearly it treats object references? Might be nice to have the docs team clean that up if it includes any examples which are ambiguous at runtime. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue Apr 21 10:09:22 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 21 Apr 2015 07:09:22 -0700 Subject: Stacks and livecode server? In-Reply-To: <1429605266.2183882.256481853.74FBD18D@webmail.messagingengine.com> References: <1429605266.2183882.256481853.74FBD18D@webmail.messagingengine.com> Message-ID: <55365A12.9090200@fourthworld.com> Mark Wilcox wrote: > Yes, you can download bundles of content with no code. The file format > doesn't matter. Unity has asset bundles that can contain code on other > platforms but are content only on iOS. Thanks for that info. How does Unity provide cross-platform compatibility while using two different delivery models? > I'm not sure if a stack has significant advantages over some other > format here but I don't see why you shouldn't. Stack files can sometimes be a nice way to bundle multiple resources into a single container. For example, in one of my apps I use stack files for things like collections of thumbnails so I can have lots of images come over the wire in a single HTTP transaction. Also, I've found that below a certain size (100 MB? Been a while since I tested that) loading a stack packed with custom property sets is faster than reading an encoded array file and running it through arrayDecode. Of course that's only useful for arrays no deeper than two dimensions, but if that's what you need it can be helpful. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue Apr 21 10:49:41 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 21 Apr 2015 07:49:41 -0700 Subject: Stacks and livecode server? In-Reply-To: <385FCFD8-7790-41FB-B6EE-C69D5CD2EB05@earthednet.org> References: <385FCFD8-7790-41FB-B6EE-C69D5CD2EB05@earthednet.org> Message-ID: <55366385.1060506@fourthworld.com> Peter Bogdanoff wrote: > Richard, > > This is a great explanation! > > You didn't go on long enough! Thanks for the encouraging works, and thanks to John Balgenorth for his kind comment as well. I often wonder whether those long posts are wasting too much time in details people already know, so it's very helpful to know that at least a few find them useful. In so many areas of life I find that I can turn up many tutorials on things I need to learn, but until I find the one that gives me a conceptual framework I can hook into, all those details are just lost on me. So for myself I've found that grokking the gestalt of a problem is critical before any further learning can take place. I can't tell you how helpful it is to hear that others have the same learning mode. This will help guide my future efforts with learning materials for LiveCode. > I would LOVE a good reference book/ebook/application on using LC, > LC server, and web services in general. > > I would easily pay $100 for such a thing if it really got me going > in this field. I know LC desktop pretty well but have all sorts of > needs for this kind of thing, but what available is (for me) a > daunting conglomeration of resources. Be careful what you ask for: I've discussed producing learning materials for LiveCode with a couple publishers. The problem at the moment is that I'm being a jerk about it, but hopefully in a way that you'll agree is worth pursuing: I want the learning materials to be freely available for everyone. Very hard to find a publisher who will pay an advance with no opportunity for a return on that investment. :) I may be persuaded to take a more conventional path on this, but right now I'm of the opinion that LiveCode is too important to the world to limit opportunities for learning to use it well behind a paywall. Maybe I'm just a pie-eyed dreamer, but I honestly believe LiveCode is a liberating force in a world increasingly run by computing machines where an ever-smaller percentage of people using those machines know how they work or can make them work as they want them to. LiveCode can turn that around, providing computing literacy that's very empowering and deeply satisfying. If I can help that along I would be happy to do so, and putting the sorts of things I might otherwise spread out across dozens of TL/DR posts here into one handy volume would if nothing else help them be more findable. Of course, in the meantime I have bills to pay like everyone else, so the process has been slow-going. And maybe the solution is to just publish it myself, accepting donations to help offset the expense. All that will take time - even if I had a healthy advance from a publisher right now my client workload prevents me from making these tutorials a priority right now. So in the meantime, two absolutely wonderful resources are already here. For a wide range of general LC info, Devin Assay's collection of LiveCode wisdom is a solid starting point: For server-related stuff, Simon's LiveCode Server site is great: And when you've built enough with LiveCode Server that you're ready to create very sophisticated server systems, Ralf has done most of the heavy lifting for us with his marvelously well executed RevIgniter server framework: Related, Bill Prothero wrote: > I think it would be very hard to justify the effort required for > a livecode book, given all of the changes in livecode on the horizon. > Keeping it up to date would be a huge effort, too. I've done enough tech editing for authors of computing books to appreciate both concerns, but I also feel those risks can be mitigated. I've met very few tech authors whose books have brought in as much revenue as consulting work. All the good books are labors of love, and for most of them that's all they'll ever be, with any advance a publisher offers barely enough to pay for the food and electricity needed to keep the writing going. But still they get written, because the world is full of love. :) They're useful to read, and as satisfying to write as useful code. Updating can be kept to a minimum by focusing on things not addressed in the docs included in the IDE. After all, the included docs are the one set of learning materials we can expect 100% of the audience to have. They absolutely must be complete, accurate, and clear. There's room for other learning materials to focus on specific aspects of LiveCode; the language is deep enough and broad enough that there are many things outside the scope of the core docs well worth writing. But to get started with productive use of LiveCode, we have to be able to rely on the included docs. The world depends on this. This is why I keep asking for specifics anytime there are complaints about the docs - when we take the time to file bug reports against the docs we can resolve those, and thankfully we have a substantial and growing community documentation team we'll be kicking off soon to help those efforts along. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue Apr 21 11:09:01 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 21 Apr 2015 08:09:01 -0700 Subject: Large Scripts Run too Slowly In-Reply-To: <2926B87B-9144-46E3-B0B6-29428FFEA254@gmail.com> References: <2926B87B-9144-46E3-B0B6-29428FFEA254@gmail.com> Message-ID: <5536680D.9070606@fourthworld.com> Peter M. Brigham wrote: > I've put gZipper into my plugins folder -- thanks, Richard! However, > I attempted to edit the stack -- just cosmetic stuff, the controls > weren't aligned and things were off-center, etc, I'm a little > obsessive that way, it really distracts me when stuff doesn't look > good. (I know this is just a quick and dirty utility, and Richard, > you are among the best at GUI, so no offense.) No offense taken, but I appreciate your sensitivity. While I try to balance layouts for products, the tools I make for myself are among the ugliest things ever conceived, with unlabelled buttons strewn about almost randomly and even sloppier code than what you'll find there. That's one of the nice things about open source: I can scratch and itch and move on, and anyone else who wants to refine it, extend it, or turn it into something entirely different is free to do so. I put in just a little work to get it started, someone else comes along with greater care to flesh it out more, and over time it may become something kinda cool. Happy to contribute to such a process, even if as modestly as that ancient stack. > So, back to the point, I edited the positions of the controls, but > every time I tried to save the stack, LC crashed, leaving a > "corrupted" stack. When I restarted, the stack was still available > in the plugins list and opened fine, but if I tried to change the > opening mode, eg from modeless to palette, LC crashed again. The > trigger seems to be trying to save the stack. Interesting. I've seen a small handful of cases in which very old stacks (2.2 or earlier) have caused problems in later versions when the number of format changes between the two is large (three or more). It's such a rare occurrence for me (not working on something for many years and then needing to update it again), and the problems I've seen so intermittent (these are very rare problems, and most old stuff works great in newer builds), that I've not been able to file a bug report. Your note below is worth considering, but before I get to that it may be helpful to note that the reason the stack is modeless rather than palette is because I had often used it to drop files onto it from the Finder, and as a palette it would disappear when I switch to the Finder. But that's a usability thing; as for the crashing: > I'm guessing this is probably due to my running LC 5.5.1 still, > but advice would be appreciated. IIRC correctly I'd spent very little time with v5.5.1. Back when it came out I had a couple projects done in v4.6.4, and stayed with that build for an inordinately long time, almost until 6.1. So I managed to skip almost the entire v5 series. Given the ~2500 bugs fixed between 5.5.1 and the current version, 7.0.4, I have to wonder if perhaps a legacy import issue may have been among them. It may be worthwhile grabbing a copy of the Community Edition of either 6.7.4 or 7.0.4 and see if you can reproduce that. If you can please file a bug report, but if not it may be that the issue was already identified and resolved. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jbv at souslelogo.com Tue Apr 21 11:13:07 2015 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 21 Apr 2015 18:13:07 +0300 Subject: Stacks and livecode server? In-Reply-To: <55366385.1060506@fourthworld.com> References: <385FCFD8-7790-41FB-B6EE-C69D5CD2EB05@earthednet.org> <55366385.1060506@fourthworld.com> Message-ID: > Richard Gaskin wrote: > > Very hard to find a publisher who will pay an advance with no > opportunity for a return on that investment. :) crowdfunding ? jbv From ambassador at fourthworld.com Tue Apr 21 11:26:00 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 21 Apr 2015 08:26:00 -0700 Subject: Stacks and livecode server? In-Reply-To: References: Message-ID: <55366C08.9060202@fourthworld.com> jbv wrote: > Richard Gaskin wrote: > >> Very hard to find a publisher who will pay an advance with no >> opportunity for a return on that investment. :) > > crowdfunding ? I've considered that, but most crowdfunding sites require putting together so much media (video presentation, product and offer details, etc.) that I could write half the book in as much time as it would take to prep a Kickstarter campaign. So instead I'm inclined at the moment to use crowdfunding in reverse: foot the up-front costs myself, and allow people to donate once they receive it and can evaluate what they feel its value is. I may use one of the crowdfunding sites for larger things down the road, though. And then again, if a man can pull in $55,492 for a crowdfunded potato salad maybe I'm overthinking this and should just dive in. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sc at sahores-conseil.com Tue Apr 21 11:42:37 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Tue, 21 Apr 2015 17:42:37 +0200 Subject: mobileControlDo Message-ID: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> Hi Friends, I can?t find any way to get the returned value (nor as it or the result) after executing the following line of code : "Browser1", "execute", fld "js1" where fld ? js1" acts as a simple javascript statements container. Do i miss something or is the mobileControlDo command 100% unable to let us use its execution result ? A simple js ? alert() ? box display (witch works?) don?t feet my needs... Thanks for any though? Best, -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From sc at sahores-conseil.com Tue Apr 21 11:49:14 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Tue, 21 Apr 2015 17:49:14 +0200 Subject: Fwd: mobileControlDo References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> Message-ID: Hi Friends, I can?t find any way to get the returned value (nor as it or the result) after executing the following line of code : MobileControlDo "Browser1", "execute", fld "js1" where fld "js1" acts as a simple javascript statements container. Do i miss something or is the mobileControlDo command 100% unable to let us use its execution result ? A simple js ? alert() ? box display (witch works?) don?t feet my needs... Thanks for any though? Best, -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From prothero at earthednet.org Tue Apr 21 13:47:22 2015 From: prothero at earthednet.org (EED-wp Email) Date: Tue, 21 Apr 2015 10:47:22 -0700 Subject: Stacks and livecode server? In-Reply-To: <55366C08.9060202@fourthworld.com> References: <55366C08.9060202@fourthworld.com> Message-ID: <18255D95-CFFF-497A-A2CD-8FC3E0F590CE@earthednet.org> With so much being done with electronic books these days, i would thing there could be a system where individual chapters could be kept reasonably up to date. But i also find a printed book to be really nice and i often prefer it. The advantage of a book rather than docs of commands is that you get more on various approaches to problems. Often i simply don't know the command to use, to get a specific job done. At first, project organization was a big challenge, then I found an approach and am still refining it. Making readable code is another challenge. The online tutorials made by the Livecode team are useful but often don't go far enough. There are many gems posted on this list. I wonder if somebody mined some of the best ones, categorized and posted them, and invited their authors to edit them, would be useful. Kind of like an open source book. The livecode Creat-IT course may ultimately be a valuable resource. There's an amazing amount of great info in it. At this point it needs a LOT of exiting to achieve its potential. Whatever is done, it will need to be extensible to accommodate the rapid evolution of livecode Bill William Prothero http://ed.earthednet.org > On Apr 21, 2015, at 8:26 AM, Richard Gaskin wrote: > > jbv wro > > > Richard Gaskin wrote: > > > >> Very hard to find a publisher who will pay an advance with no > >> opportunity for a return on that investment. :) > > > > crowdfunding ? > > I've considered that, but most crowdfunding sites require putting together so much media (video presentation, product and offer details, etc.) that I could write half the book in as much time as it would take to prep a Kickstarter campaign. > > So instead I'm inclined at the moment to use crowdfunding in reverse: foot the up-front costs myself, and allow people to donate once they receive it and can evaluate what they feel its value is. > > I may use one of the crowdfunding sites for larger things down the road, though. > > And then again, if a man can pull in $55,492 for a crowdfunded potato salad maybe I'm overthinking this and should just dive in. :) > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Tue Apr 21 15:22:31 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 21 Apr 2015 15:22:31 -0400 Subject: Large Scripts Run too Slowly In-Reply-To: <5536680D.9070606@fourthworld.com> References: <2926B87B-9144-46E3-B0B6-29428FFEA254@gmail.com> <5536680D.9070606@fourthworld.com> Message-ID: <299D3A22-90AC-4D7A-AE3F-14D3CAB45005@gmail.com> On Apr 21, 2015, at 11:09 AM, Richard Gaskin wrote: > Peter M. Brigham wrote: > > > I've put gZipper into my plugins folder -- thanks, Richard! However, > > I attempted to edit the stack -- just cosmetic stuff, the controls > > weren't aligned and things were off-center, etc, I'm a little > > obsessive that way, it really distracts me when stuff doesn't look > > good. (I know this is just a quick and dirty utility, and Richard, > > you are among the best at GUI, so no offense.) > > No offense taken, but I appreciate your sensitivity. While I try to balance layouts for products, the tools I make for myself are among the ugliest things ever conceived, with unlabelled buttons strewn about almost randomly and even sloppier code than what you'll find there. Me too. But even then if I'm using it a lot myself I start spiffing it up over time, since otherwise the visual sloppiness starts distracting me. For instance, my utility library, pmbLib (https://dl.dropboxusercontent.com/u/3504108/pmbLib.rev), which is really only for my own benefit, but I spent some time on its visual presentation in between more serious work, so it ends up being pleasant to look at. (When I get a moment, I mean to take a stab at cleaning up the GUI for Michael Doub's MasterLibrary, with his permission?.) > That's one of the nice things about open source: I can scratch and itch and move on, and anyone else who wants to refine it, extend it, or turn it into something entirely different is free to do so. I put in just a little work to get it started, someone else comes along with greater care to flesh it out more, and over time it may become something kinda cool. > > Happy to contribute to such a process, even if as modestly as that ancient stack. > > > So, back to the point, I edited the positions of the controls, but > > every time I tried to save the stack, LC crashed, leaving a > > "corrupted" stack. When I restarted, the stack was still available > > in the plugins list and opened fine, but if I tried to change the > > opening mode, eg from modeless to palette, LC crashed again. The > > trigger seems to be trying to save the stack. > > Interesting. I've seen a small handful of cases in which very old stacks (2.2 or earlier) have caused problems in later versions when the number of format changes between the two is large (three or more). > > It's such a rare occurrence for me (not working on something for many years and then needing to update it again), and the problems I've seen so intermittent (these are very rare problems, and most old stuff works great in newer builds), that I've not been able to file a bug report. > > Your note below is worth considering, but before I get to that it may be helpful to note that the reason the stack is modeless rather than palette is because I had often used it to drop files onto it from the Finder, and as a palette it would disappear when I switch to the Finder. I use a paletted stack with systemwindow = true, and that makes it float above everything no matter what. I have a couple of utility standalones that work this way, for instance, one that allows me to drag and drop a file or folder from the Mac finder and get the filepath. (Another is a simple iTunes controller that lives in a corner of my screen, just a small round blue button about 24 pixels in diameter.) I've really never worked with modeless stacks. > But that's a usability thing; as for the crashing: > > > I'm guessing this is probably due to my running LC 5.5.1 still, > > but advice would be appreciated. > > IIRC correctly I'd spent very little time with v5.5.1. Back when it came out I had a couple projects done in v4.6.4, and stayed with that build for an inordinately long time, almost until 6.1. So I managed to skip almost the entire v5 series. > > Given the ~2500 bugs fixed between 5.5.1 and the current version, 7.0.4, I have to wonder if perhaps a legacy import issue may have been among them. > > It may be worthwhile grabbing a copy of the Community Edition of either 6.7.4 or 7.0.4 and see if you can reproduce that. If you can please file a bug report, but if not it may be that the issue was already identified and resolved. I'll experiment this weekend. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From ray at linkit.com Tue Apr 21 15:23:26 2015 From: ray at linkit.com (Ray) Date: Tue, 21 Apr 2015 21:23:26 +0200 Subject: Selecting a Line in the Script Editor Window In-Reply-To: References: <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> Message-ID: <5536A3AE.9050503@LinkIt.Com> Does anybody no of a way to select a line in the script editor window? This doesn't work: edit script of this stack set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" to 542 Ideally this will also scroll to the selected line. Many thanks for any ideas on this! From mark at sorcery-ltd.co.uk Tue Apr 21 15:56:52 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Tue, 21 Apr 2015 20:56:52 +0100 Subject: Stacks and livecode server? In-Reply-To: <55365A12.9090200@fourthworld.com> References: <1429605266.2183882.256481853.74FBD18D@webmail.messagingengine.com> <55365A12.9090200@fourthworld.com> Message-ID: <922805A1-C2D8-448C-A15B-88CFB5B09F04@sorcery-ltd.co.uk> > On 21 Apr 2015, at 15:09, Richard Gaskin wrote: > > Mark Wilcox wrote: > > > Yes, you can download bundles of content with no code. The file format > > doesn't matter. Unity has asset bundles that can contain code on other > > platforms but are content only on iOS. > > Thanks for that info. How does Unity provide cross-platform compatibility while using two different delivery models? Unity is the sort of cross-platform tool where you have plenty of conditionally compiled bits to deal with platform specifics. :) Actually I think you couldn't deliver the code in asset bundles to iOS with Unity anyway because the bundles contain byte code for the Mono VM, IIRC, and the code is all compiled directly to a native binary on iOS, there's no VM to run it. From richmondmathewson at gmail.com Tue Apr 21 16:01:51 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 21 Apr 2015 23:01:51 +0300 Subject: Selecting a Line in the Script Editor Window In-Reply-To: <5536A3AE.9050503@LinkIt.Com> References: <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> Message-ID: <5536ACAF.5080304@gmail.com> On 21/04/15 22:23, Ray wrote: > Does anybody no of a way to select a line in the script editor window? > > This doesn't work: > edit script of this stack > set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" > to 542 > > Ideally this will also scroll to the selected line. > > Many thanks for any ideas on this! > Well, that is a bit self-referential, almost incestuous. What you might like to try is loading the script into a textField, mucking around with it there, and then popping it back into the script. Demo stack here: https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 file "SH.zip" this does NOT select a line, but what it DOES DO is edit a script script-wise: you should not really have any problems working onwards from there. really very straightforward :) Richmond. From ray at linkit.com Tue Apr 21 16:42:43 2015 From: ray at linkit.com (Ray) Date: Tue, 21 Apr 2015 22:42:43 +0200 Subject: Selecting a Line in the Script Editor Window In-Reply-To: <5536ACAF.5080304@gmail.com> References: <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> <5536ACAF.5080304@gmail.com> Message-ID: <5536B643.8080200@LinkIt.Com> Richmond - you've got some interesting stacks in this bundle. I'll explore ways of moving scripts over to a normal field in a stack to work with them there if nobody posts any ways to select a line in Livecode's script editor window. Thanks for the idea! On 4/21/2015 10:01 PM, Richmond wrote: > On 21/04/15 22:23, Ray wrote: >> Does anybody no of a way to select a line in the script editor window? >> >> This doesn't work: >> edit script of this stack >> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" >> to 542 >> >> Ideally this will also scroll to the selected line. >> >> Many thanks for any ideas on this! >> > > Well, that is a bit self-referential, almost incestuous. > > What you might like to try is loading the script into a textField, > mucking around > with it there, and then popping it back into the script. > > Demo stack here: > https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 > > file "SH.zip" > > this does NOT select a line, but what it DOES DO is edit a script > script-wise: you should > not really have any problems working onwards from there. > > really very straightforward :) > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Apr 21 16:44:19 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 21 Apr 2015 13:44:19 -0700 Subject: Selecting a Line in the Script Editor Window In-Reply-To: <5536A3AE.9050503@LinkIt.Com> References: <5536A3AE.9050503@LinkIt.Com> Message-ID: <5536B6A3.4090002@fourthworld.com> Ray wrote: > Does anybody no of a way to select a line in the script editor window? > > This doesn't work: > edit script of this stack > set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" > to 542 > > Ideally this will also scroll to the selected line. The Dictionary notes that a second optional argument to the editScript message may contain the line and character offsets for the script editor to open at, but unfortunately a bug in the IDE prevents that from working: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Tue Apr 21 16:45:14 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 21 Apr 2015 15:45:14 -0500 Subject: Large Scripts Run too Slowly In-Reply-To: <55359822.7040107@fourthworld.com> References: <55353B13.8060003@hyperactivesw.com> <55359822.7040107@fourthworld.com> Message-ID: <5536B6DA.2020202@hyperactivesw.com> On 4/20/2015 7:21 PM, Richard Gaskin wrote: > The scripts have been unlocked for many years, ever since I first > released it as Public Domain back in 2002. > > The drag-n-drop worked on Mac last time I used it there a few weeks ago, > but now that I'm spending more time on Linux I tested it in Ubuntu and > it didn't work. Very old code, using very old syntax. > > I just made a quick update to it and posted both compressed and > uncompressed copies, Thanks, this works fine. I'm not sure why the older copy wouldn't open the scripts, that's sort of odd. I do like the drag/drop, it makes things easy. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ray at linkit.com Tue Apr 21 16:50:12 2015 From: ray at linkit.com (Ray) Date: Tue, 21 Apr 2015 22:50:12 +0200 Subject: Selecting a Line in the Script Editor Window In-Reply-To: <5536B6A3.4090002@fourthworld.com> References: <5536A3AE.9050503@LinkIt.Com> <5536B6A3.4090002@fourthworld.com> Message-ID: <5536B804.6020200@LinkIt.Com> Very nice Richard. I wasn't aware of this. Too bad it's not working. I've asked to be informed when it's fixed. Thanks On 4/21/2015 10:44 PM, Richard Gaskin wrote: > Ray wrote: > > > Does anybody no of a way to select a line in the script editor window? > > > > This doesn't work: > > edit script of this stack > > set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" > > to 542 > > > > Ideally this will also scroll to the selected line. > > The Dictionary notes that a second optional argument to the editScript > message may contain the line and character offsets for the script > editor to open at, but unfortunately a bug in the IDE prevents that > from working: > > > From CFORD at mailbox.sc.edu Tue Apr 21 17:08:51 2015 From: CFORD at mailbox.sc.edu (FORD JR., CURT) Date: Tue, 21 Apr 2015 21:08:51 +0000 Subject: which version to use for using player with mp3 files? Message-ID: <4AC93F8FE7AA27449837C912ED6305212AD4151D@CAE145EMBP04.ds.sc.edu> I'm considering a project that will be pretty straightforward, but it will have lots of external mp3 files that I've always managed with a player before. I've got various versions of 6.x and 7 I could work with, but with quicktime deprecated (?) and a new player object I'm wondering which version people have found most reliable for playing sound files. It'll need to work on Mac and Windows, no plans for mobile. Thanks! Curt From bobsneidar at iotecdigital.com Tue Apr 21 18:09:48 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 21 Apr 2015 22:09:48 +0000 Subject: Selecting a Line in the Script Editor Window In-Reply-To: <5536ACAF.5080304@gmail.com> References: <553022ED.6070206@LinkIt.Com> <2207EE84-F2CC-4FF7-9B64-6FE7025F8AE0@major-k.de> <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> <5536ACAF.5080304@gmail.com> Message-ID: select line 542 of fld "Script" of stack "RevNewScriptEdtor 1" works. Bob S > On Apr 21, 2015, at 13:01 , Richmond wrote: > >> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" to 542 From bobsneidar at iotecdigital.com Tue Apr 21 18:10:56 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 21 Apr 2015 22:10:56 +0000 Subject: dragDrop with data grid objects In-Reply-To: <0754F609-17C7-41DC-A869-C663F611E974@iotecdigital.com> References: <0754F609-17C7-41DC-A869-C663F611E974@iotecdigital.com> Message-ID: No takers eh? Bob S > On Apr 20, 2015, at 16:24 , Bob Sneidar wrote: > > Any idea if I can use dragDrop with a data grid object? Currently I get the gray cross circle when trying to drag a file to a data grid. I wanted to create an import handler activated by simply drag dropping the file onto the data grid. I can do it with a field, but not with a data grid. > > Bob S From pete at lcsql.com Tue Apr 21 18:20:20 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 21 Apr 2015 15:20:20 -0700 Subject: dragDrop with data grid objects In-Reply-To: References: <0754F609-17C7-41DC-A869-C663F611E974@iotecdigital.com> Message-ID: I believe this works, don't remember where I got it. Needs to be in the datagrid group script. on dragStart local tIndex if (the dgHeader of the target is empty) then put the dgIndex of the dgDataControl of the target into tIndex set the dgDragImageIndex of me to tIndex set the dragData["private"] to empty set the dgTrackDragReorder[tIndex] of me to true end if end dragStart on DragReorderDrop pOriginatingIndex, pStartLine, pDroppedOnLine if (pStartLine is not pDroppedOnLine) then SetLineOfIndex pOriginatingIndex, pDroppedOnLine send "RefreshList"to me in 0 secs end if end DragReorderDrop on dragMove set the dragaction to "move" end dragMove Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 21, 2015 at 3:10 PM, Bob Sneidar wrote: > No takers eh? > > Bob S > > > > On Apr 20, 2015, at 16:24 , Bob Sneidar > wrote: > > > > Any idea if I can use dragDrop with a data grid object? Currently I get > the gray cross circle when trying to drag a file to a data grid. I wanted > to create an import handler activated by simply drag dropping the file onto > the data grid. I can do it with a field, but not with a data grid. > > > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ray at linkit.com Tue Apr 21 18:23:15 2015 From: ray at linkit.com (Ray) Date: Wed, 22 Apr 2015 00:23:15 +0200 Subject: Selecting a Line in the Script Editor Window In-Reply-To: References: <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> <5536ACAF.5080304@gmail.com> Message-ID: <5536CDD3.7090906@LinkIt.Com> Bob - thanks! I thought I had tried all forms of this syntax. How'd I miss that? On 4/22/2015 12:09 AM, Bob Sneidar wrote: > select line 542 of fld "Script" of stack "RevNewScriptEdtor 1" works. > > Bob S > > >> On Apr 21, 2015, at 13:01 , Richmond wrote: >> >>> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" to 542 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Tue Apr 21 18:35:20 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 21 Apr 2015 16:35:20 -0600 Subject: mobileControlDo In-Reply-To: References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> Message-ID: You do actually have a 'return' in your js code right? You might test with something simple like function donothing() { return 10; } After the mobilecontroldo it the result should be 10. If you ARE returning a value, you might simplify and make sure you aren't returning nothing. I THINk that if the code is failing you would get an error in the result, but not sure. From bobsneidar at iotecdigital.com Tue Apr 21 18:59:15 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 21 Apr 2015 22:59:15 +0000 Subject: dragDrop with data grid objects In-Reply-To: References: <0754F609-17C7-41DC-A869-C663F611E974@iotecdigital.com> Message-ID: Thanks Pete. I?ll give it a try, but it looks like this is for dragging a data grid row out of the data grid into some other place. I want to drag a file from the Finder or Explorer into the data grid. If worse comes to worse I?ll create a landing pad field. Bob S > On Apr 21, 2015, at 15:20 , Peter Haworth wrote: > > I believe this works, don't remember where I got it. Needs to be in the > datagrid group script. > > on dragStart > local tIndex > if (the dgHeader of the target is empty) then > put the dgIndex of the dgDataControl of the target into tIndex > set the dgDragImageIndex of me to tIndex > set the dragData["private"] to empty > set the dgTrackDragReorder[tIndex] of me to true > end if > end dragStart > > on DragReorderDrop pOriginatingIndex, pStartLine, pDroppedOnLine > if (pStartLine is not pDroppedOnLine) then > SetLineOfIndex pOriginatingIndex, pDroppedOnLine > send "RefreshList"to me in 0 secs > end if > end DragReorderDrop > > on dragMove > set the dragaction to "move" > end dragMove > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Tue, Apr 21, 2015 at 3:10 PM, Bob Sneidar > wrote: > >> No takers eh? >> >> Bob S >> >> >>> On Apr 20, 2015, at 16:24 , Bob Sneidar >> wrote: >>> >>> Any idea if I can use dragDrop with a data grid object? Currently I get >> the gray cross circle when trying to drag a file to a data grid. I wanted >> to create an import handler activated by simply drag dropping the file onto >> the data grid. I can do it with a field, but not with a data grid. >>> >>> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Apr 21 19:08:37 2015 From: ray at linkit.com (Ray) Date: Wed, 22 Apr 2015 01:08:37 +0200 Subject: Selecting a Line in the Script Editor Window In-Reply-To: References: <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> <5536ACAF.5080304@gmail.com> Message-ID: <5536D875.90703@LinkIt.Com> Bob - just in case you're interested, I realize now how I missed this. Your simple solution to select a line in the script editor window works only if the script editor window is already open. I was trying to open the script editor window and immediately select a line in it. This is I ran into problems. Nonetheless, there are a number of work arounds including sending the command to do the selecting /after /the script editor window is open. Thanks again. On 4/22/2015 12:09 AM, Bob Sneidar wrote: > select line 542 of fld "Script" of stack "RevNewScriptEdtor 1" works. > > Bob S > > >> On Apr 21, 2015, at 13:01 , Richmond wrote: >> >>> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" to 542 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Tue Apr 21 19:33:59 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 21 Apr 2015 17:33:59 -0600 Subject: Selecting a Line in the Script Editor Window In-Reply-To: <5536D875.90703@LinkIt.Com> References: <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> <5536ACAF.5080304@gmail.com> <5536D875.90703@LinkIt.Com> Message-ID: Just put a wait with messages after the window open and it should work. I was trying the same thing here as bob was posting his answer. On Tue, Apr 21, 2015 at 5:08 PM, Ray wrote: > Bob - just in case you're interested, I realize now how I missed this. > Your simple solution to select a line in the script editor window works > only if the script editor window is already open. I was trying to open the > script editor window and immediately select a line in it. This is I ran > into problems. > > Nonetheless, there are a number of work arounds including sending the > command to do the selecting /after /the script editor window is open. > > Thanks again. > > On 4/22/2015 12:09 AM, Bob Sneidar wrote: > >> select line 542 of fld "Script" of stack "RevNewScriptEdtor 1" works. >> >> Bob S >> >> >> On Apr 21, 2015, at 13:01 , Richmond >>> wrote: >>> >>> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" >>>> to 542 >>>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Tue Apr 21 19:35:21 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 21 Apr 2015 17:35:21 -0600 Subject: Selecting a Line in the Script Editor Window In-Reply-To: References: <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> <5536ACAF.5080304@gmail.com> <5536D875.90703@LinkIt.Com> Message-ID: meant to say wait 50 millisec with messages On Tue, Apr 21, 2015 at 5:33 PM, Mike Bonner wrote: > Just put a wait with messages after the window open and it should work. I > was trying the same thing here as bob was posting his answer. > > On Tue, Apr 21, 2015 at 5:08 PM, Ray wrote: > >> Bob - just in case you're interested, I realize now how I missed this. >> Your simple solution to select a line in the script editor window works >> only if the script editor window is already open. I was trying to open the >> script editor window and immediately select a line in it. This is I ran >> into problems. >> >> Nonetheless, there are a number of work arounds including sending the >> command to do the selecting /after /the script editor window is open. >> >> Thanks again. >> >> On 4/22/2015 12:09 AM, Bob Sneidar wrote: >> >>> select line 542 of fld "Script" of stack "RevNewScriptEdtor 1" works. >>> >>> Bob S >>> >>> >>> On Apr 21, 2015, at 13:01 , Richmond >>>> wrote: >>>> >>>> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" >>>>> to 542 >>>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From sc at sahores-conseil.com Tue Apr 21 21:09:32 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 22 Apr 2015 03:09:32 +0200 Subject: mobileControlDo In-Reply-To: References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> Message-ID: Don?t work there. The problems seems to rely on the fact that mobilecontroldo acts as a pure command (no return value at all in it or in the result)? Thanks anyway, Pierre > Le 22 avr. 2015 ? 00:35, Mike Bonner a ?crit : > > You do actually have a 'return' in your js code right? > > You might test with something simple like > > function donothing() { > return 10; > } > > After the mobilecontroldo it the result should be 10. > > If you ARE returning a value, you might simplify and make sure you aren't > returning nothing. I THINk that if the code is failing you would get an > error in the result, but not sure. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From bonnmike at gmail.com Tue Apr 21 22:19:55 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 21 Apr 2015 20:19:55 -0600 Subject: mobileControlDo In-Reply-To: References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> Message-ID: Ah k. I had just looked at this thread( http://forums.livecode.com/viewtopic.php?f=53&t=11730&p=55347&hilit=mobilecontroldo#p55347 ), and (if I understand what you're asking) it seemed to be working at some point in the past. Unreliably, but still working. Hopefully someone can help. On Tue, Apr 21, 2015 at 7:09 PM, Pierre Sahores wrote: > Don?t work there. The problems seems to rely on the fact that > mobilecontroldo acts as a pure command (no return value at all in it or in > the result)? > > Thanks anyway, > > Pierre > > > Le 22 avr. 2015 ? 00:35, Mike Bonner a ?crit : > > > > You do actually have a 'return' in your js code right? > > > > You might test with something simple like > > > > function donothing() { > > return 10; > > } > > > > After the mobilecontroldo it the result should be 10. > > > > If you ARE returning a value, you might simplify and make sure you aren't > > returning nothing. I THINk that if the code is failing you would get an > > error in the result, but not sure. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Pierre Sahores > mobile : 06 03 95 77 70 > www.sahores-conseil.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sc at sahores-conseil.com Wed Apr 22 03:55:33 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 22 Apr 2015 09:55:33 +0200 Subject: mobileControlDo In-Reply-To: References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> Message-ID: <8791E19C-EA32-4263-836D-4B60D7AF9FF4@sahores-conseil.com> No shared clipboard between the js instance and the mobile browser instance said, at some point, RunRev... > Le 22 avr. 2015 ? 04:19, Mike Bonner a ?crit : > > Ah k. I had just looked at this thread( > http://forums.livecode.com/viewtopic.php?f=53&t=11730&p=55347&hilit=mobilecontroldo#p55347 > ), and (if I understand what you're asking) it seemed to be working at some > point in the past. Unreliably, but still working. > > Hopefully someone can help. > > On Tue, Apr 21, 2015 at 7:09 PM, Pierre Sahores > wrote: > >> Don?t work there. The problems seems to rely on the fact that >> mobilecontroldo acts as a pure command (no return value at all in it or in >> the result)? >> >> Thanks anyway, >> >> Pierre >> >>> Le 22 avr. 2015 ? 00:35, Mike Bonner a ?crit : >>> >>> You do actually have a 'return' in your js code right? >>> >>> You might test with something simple like >>> >>> function donothing() { >>> return 10; >>> } >>> >>> After the mobilecontroldo it the result should be 10. >>> >>> If you ARE returning a value, you might simplify and make sure you aren't >>> returning nothing. I THINk that if the code is failing you would get an >>> error in the result, but not sure. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> -- >> Pierre Sahores >> mobile : 06 03 95 77 70 >> www.sahores-conseil.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From ray at linkit.com Wed Apr 22 04:18:08 2015 From: ray at linkit.com (Ray) Date: Wed, 22 Apr 2015 10:18:08 +0200 Subject: Selecting a Line in the Script Editor Window In-Reply-To: References: <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> <5536ACAF.5080304@gmail.com> <5536D875.90703@LinkIt.Com> Message-ID: <55375940.3030109@LinkIt.Com> Mike - I had actually done a more complicated work-around. This is better. I forgot about the 'with messages' option with the wait command. Thanks! On 4/22/2015 1:35 AM, Mike Bonner wrote: > meant to say wait 50 millisec with messages > > On Tue, Apr 21, 2015 at 5:33 PM, Mike Bonner wrote: > >> Just put a wait with messages after the window open and it should work. I >> was trying the same thing here as bob was posting his answer. >> >> On Tue, Apr 21, 2015 at 5:08 PM, Ray wrote: >> >>> Bob - just in case you're interested, I realize now how I missed this. >>> Your simple solution to select a line in the script editor window works >>> only if the script editor window is already open. I was trying to open the >>> script editor window and immediately select a line in it. This is I ran >>> into problems. >>> >>> Nonetheless, there are a number of work arounds including sending the >>> command to do the selecting /after /the script editor window is open. >>> >>> Thanks again. >>> >>> On 4/22/2015 12:09 AM, Bob Sneidar wrote: >>> >>>> select line 542 of fld "Script" of stack "RevNewScriptEdtor 1" works. >>>> >>>> Bob S >>>> >>>> >>>> On Apr 21, 2015, at 13:01 , Richmond >>>>> wrote: >>>>> >>>>> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1" >>>>>> to 542 >>>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david at viral.academy Wed Apr 22 04:46:01 2015 From: david at viral.academy (David Bovill) Date: Wed, 22 Apr 2015 08:46:01 +0000 Subject: mobileControlDo In-Reply-To: <8791E19C-EA32-4263-836D-4B60D7AF9FF4@sahores-conseil.com> References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> <8791E19C-EA32-4263-836D-4B60D7AF9FF4@sahores-conseil.com> Message-ID: Hi Pierre. Thanks fir the input Mike. I'd like to get to the bottom of this as well. Pierre if you could post the code you are testing that would be great? I'd like to know how this sots with near-future Javascript plans. Is this something that is being looked at being addressed with the intended summer Javascript export feature? In general it would be good to have a way of regularly asking questions in an organised and time-limited way. A monthly 1 hour Q&A session? On Wed, 22 Apr 2015 at 08:56, Pierre Sahores wrote: > No shared clipboard between the js instance and the mobile browser > instance said, at some point, RunRev... > > > Le 22 avr. 2015 ? 04:19, Mike Bonner a ?crit : > > > > Ah k. I had just looked at this thread( > > > http://forums.livecode.com/viewtopic.php?f=53&t=11730&p=55347&hilit=mobilecontroldo#p55347 > > ), and (if I understand what you're asking) it seemed to be working at > some > > point in the past. Unreliably, but still working. > > > > Hopefully someone can help. > > > > On Tue, Apr 21, 2015 at 7:09 PM, Pierre Sahores > > wrote: > > > >> Don?t work there. The problems seems to rely on the fact that > >> mobilecontroldo acts as a pure command (no return value at all in it or > in > >> the result)? > >> > >> Thanks anyway, > >> > >> Pierre > >> > >>> Le 22 avr. 2015 ? 00:35, Mike Bonner a ?crit : > >>> > >>> You do actually have a 'return' in your js code right? > >>> > >>> You might test with something simple like > >>> > >>> function donothing() { > >>> return 10; > >>> } > >>> > >>> After the mobilecontroldo it the result should be 10. > >>> > >>> If you ARE returning a value, you might simplify and make sure you > aren't > >>> returning nothing. I THINk that if the code is failing you would get an > >>> error in the result, but not sure. > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> -- > >> Pierre Sahores > >> mobile : 06 03 95 77 70 > >> www.sahores-conseil.com > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Pierre Sahores > mobile : 06 03 95 77 70 > www.sahores-conseil.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Wed Apr 22 04:49:35 2015 From: ray at linkit.com (Ray) Date: Wed, 22 Apr 2015 10:49:35 +0200 Subject: Stack is Dirty? In-Reply-To: References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> <8791E19C-EA32-4263-836D-4B60D7AF9FF4@sahores-conseil.com> Message-ID: <5537609F.9080007@LinkIt.Com> I believe there's a key word which is a property you can use to detect whether a stack has changes which have not yet been saved. It's something like stackIsDirty but I can't find it anywhere. Does anybody remember this? From richmondmathewson at gmail.com Wed Apr 22 05:24:58 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 22 Apr 2015 12:24:58 +0300 Subject: Selecting a Line in the Script Editor Window In-Reply-To: <5536CDD3.7090906@LinkIt.Com> References: <55302788.4080207@LinkIt.Com> <55302E97.4030101@LinkIt.Com> <5530F512.6070502@LinkIt.Com> <553158C1.1070504@LinkIt.Com> <55315F69.3040500@LinkIt.Com> <55318B84.1060908@LinkIt.Com> <5536A3AE.9050503@LinkIt.Com> <5536ACAF.5080304@gmail.com> <5536CDD3.7090906@LinkIt.Com> Message-ID: <553768EA.9040008@gmail.com> On 22/04/15 01:23, Ray wrote: > Bob - thanks! I thought I had tried all forms of this syntax. How'd I > miss that? Makes me feel pretty stupid as well :P Mainly because it should be moronically obvious. Richmond. > > On 4/22/2015 12:09 AM, Bob Sneidar wrote: >> select line 542 of fld "Script" of stack "RevNewScriptEdtor 1" works. >> >> Bob S >> >> >>> On Apr 21, 2015, at 13:01 , Richmond >>> wrote: >>> >>>> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor >>>> 1" to 542 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david at viral.academy Wed Apr 22 06:19:41 2015 From: david at viral.academy (David Bovill) Date: Wed, 22 Apr 2015 11:19:41 +0100 Subject: Evernote API Message-ID: I've made a start on creating an Evernote APi for Livecode. Has anyone else tried this and got any code they would be happy to add to a community effort? From sc at sahores-conseil.com Wed Apr 22 07:25:01 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 22 Apr 2015 13:25:01 +0200 Subject: mobileControlDo In-Reply-To: References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> <8791E19C-EA32-4263-836D-4B60D7AF9FF4@sahores-conseil.com> Message-ID: > Le 22 avr. 2015 ? 10:46, David Bovill a ?crit : > > Hi Pierre. Thanks fir the input Mike. I'd like to get to the bottom of this > as well. > > Pierre if you could post the code you are testing that would be great? > > I'd like to know how this sots with near-future Javascript plans. Is this > something that is being looked at being addressed with the intended summer > Javascript export feature? > > In general it would be good to have a way of regularly asking questions in > an organised and time-limited way. A monthly 1 hour Q&A session? +1 About my test (yet abandoned), i came to conclusion that : 1.- mobileControlDo is a command witch works perfectly to launch any kind of javascript snippets ; 2.- mobileControlDo is not intended to provide to LC any return value ; The way to go to get back mobileControlDo javascript snippet?s calculations seems to write them to webkit?s localStorage or SessionStorage containers (supported on both iOS and Android platforms) and, from there, call them back from a device sandboxed local URL running the dedicated javascript code able to read the localStorage/sessionStorage values and let us access them in GET URL mode -> it I did?t test this all as long as i found how to avoid to have to depend from mobileControlDo return value in my current project. Best, Pierre > On Wed, 22 Apr 2015 at 08:56, Pierre Sahores wrote: > >> No shared clipboard between the js instance and the mobile browser >> instance said, at some point, RunRev... >> >>> Le 22 avr. 2015 ? 04:19, Mike Bonner a ?crit : >>> >>> Ah k. I had just looked at this thread( >>> >> http://forums.livecode.com/viewtopic.php?f=53&t=11730&p=55347&hilit=mobilecontroldo#p55347 >>> ), and (if I understand what you're asking) it seemed to be working at >> some >>> point in the past. Unreliably, but still working. >>> >>> Hopefully someone can help. >>> >>> On Tue, Apr 21, 2015 at 7:09 PM, Pierre Sahores >>> wrote: >>> >>>> Don?t work there. The problems seems to rely on the fact that >>>> mobilecontroldo acts as a pure command (no return value at all in it or >> in >>>> the result)? >>>> >>>> Thanks anyway, >>>> >>>> Pierre >>>> >>>>> Le 22 avr. 2015 ? 00:35, Mike Bonner a ?crit : >>>>> >>>>> You do actually have a 'return' in your js code right? >>>>> >>>>> You might test with something simple like >>>>> >>>>> function donothing() { >>>>> return 10; >>>>> } >>>>> >>>>> After the mobilecontroldo it the result should be 10. >>>>> >>>>> If you ARE returning a value, you might simplify and make sure you >> aren't >>>>> returning nothing. I THINk that if the code is failing you would get an >>>>> error in the result, but not sure. >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> -- >>>> Pierre Sahores >>>> mobile : 06 03 95 77 70 >>>> www.sahores-conseil.com >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> -- >> Pierre Sahores >> mobile : 06 03 95 77 70 >> www.sahores-conseil.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From toolbook at kestner.de Wed Apr 22 09:20:25 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 22 Apr 2015 15:20:25 +0200 Subject: fastes way to search an array? Message-ID: <000001d07cff$196c0a40$4c441ec0$@kestner.de> Hello, I have an array with 20000 records, where I want to extract all records, which either "begins with" or "contains" a search string. Up to now I just loop thru the whole array, do the compare and extract the result records. I wonder, if there is a way to speed up this search? E.g., does it makes a difference, if I compare the string in the key or the data of the array while looping thru? I mean, would it make a difference, if I would create an "associative" array, where my search looks up in the keys of the array, either by looping thru the array, or by extracting first the keys of the array into a separate variable, instead in the data of the original array? Would it make a difference looping thru a variable, which just contains the keys of the array, instead of looping thru the complete array, because of the smaller "footprint" in the memory? Or shouldn't I care about these differences and just let LC makes its job? Any experiences welcome, Tiemo From harrison at all-auctions.com Wed Apr 22 09:44:15 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 22 Apr 2015 09:44:15 -0400 Subject: fastes way to search an array? In-Reply-To: <000001d07cff$196c0a40$4c441ec0$@kestner.de> References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> Message-ID: Hi Tiemo, What is the average and worst time that it takes to search your 20,000 record array now? Are there users other than you involved? Is it worth the time it will take you to optimize the code for the faster execution? Now that you?ve hopefully answered these questions for yourself, and decided it?s worth the effort, let?s more things forward a little more. Is your array pre-sorted alphabetically? (Assuming you are aiming for that order.) If so, it might make sense to split your big array into smaller alphabetically sorted arrays. Then you can test for which array to search based on the first letter of the element you are searching for in the array, and search the smaller array. Do a few timed tests with your array search so you can measure how much of an improvement you have achieved. Good luck! Rick > On Apr 22, 2015, at 9:20 AM, Tiemo Hollmann TB wrote: > > Hello, > > I have an array with 20000 records, where I want to extract all records, > which either "begins with" or "contains" a search string. > > Up to now I just loop thru the whole array, do the compare and extract the > result records. I wonder, if there is a way to speed up this search? E.g., > does it makes a difference, if I compare the string in the key or the data > of the array while looping thru? I mean, would it make a difference, if I > would create an "associative" array, where my search looks up in the keys of > the array, either by looping thru the array, or by extracting first the keys > of the array into a separate variable, instead in the data of the original > array? > > Would it make a difference looping thru a variable, which just contains the > keys of the array, instead of looping thru the complete array, because of > the smaller "footprint" in the memory? > > Or shouldn't I care about these differences and just let LC makes its job? > > Any experiences welcome, > > Tiemo > > From revolution at derbrill.de Wed Apr 22 09:49:08 2015 From: revolution at derbrill.de (Malte Brill) Date: Wed, 22 Apr 2015 15:49:08 +0200 Subject: Colorizing XML In-Reply-To: References: Message-ID: Hi, I have the need to display XML and colorize it like for example Notepad++ does. Does anybody happen to have written a script that does this already? All the best, Malte From gcanyon at gmail.com Wed Apr 22 11:09:11 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 22 Apr 2015 10:09:11 -0500 Subject: fastes way to search an array? In-Reply-To: References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> Message-ID: One way to do this would be combine the array (or maintain a duplicate copy) and use the filter command to do the search. On Wed, Apr 22, 2015 at 8:44 AM, Rick Harrison wrote: > Hi Tiemo, > > What is the average and worst time that it takes to search your 20,000 > record array now? > Are there users other than you involved? Is it worth the time it will take > you to optimize > the code for the faster execution? > > Now that you?ve hopefully answered these questions for yourself, and > decided > it?s worth the effort, let?s more things forward a little more. > > Is your array pre-sorted alphabetically? (Assuming you are aiming for that > order.) > If so, it might make sense to split your big array into smaller > alphabetically sorted > arrays. Then you can test for which array to search based on the first > letter of the > element you are searching for in the array, and search the smaller array. > > Do a few timed tests with your array search so you can measure how much of > an improvement you have achieved. > > Good luck! > > Rick > > > > > On Apr 22, 2015, at 9:20 AM, Tiemo Hollmann TB > wrote: > > > > Hello, > > > > I have an array with 20000 records, where I want to extract all records, > > which either "begins with" or "contains" a search string. > > > > Up to now I just loop thru the whole array, do the compare and extract > the > > result records. I wonder, if there is a way to speed up this search? > E.g., > > does it makes a difference, if I compare the string in the key or the > data > > of the array while looping thru? I mean, would it make a difference, if I > > would create an "associative" array, where my search looks up in the > keys of > > the array, either by looping thru the array, or by extracting first the > keys > > of the array into a separate variable, instead in the data of the > original > > array? > > > > Would it make a difference looping thru a variable, which just contains > the > > keys of the array, instead of looping thru the complete array, because of > > the smaller "footprint" in the memory? > > > > Or shouldn't I care about these differences and just let LC makes its > job? > > > > Any experiences welcome, > > > > Tiemo > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From toolbook at kestner.de Wed Apr 22 11:15:40 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 22 Apr 2015 17:15:40 +0200 Subject: AW: fastes way to search an array? In-Reply-To: References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> Message-ID: <000a01d07d0f$322fcfc0$968f6f40$@kestner.de> Hi Rick, On my new and fast development machine the search is pretty fast and optimization wouldn't be necessary. But I am not sure, how it behaves on old and weak computers out there in the wild. Perhaps I have to reactivate one of my old ones for testing. Splitting into alphabetical parts is in my case not possible, because of the "contains" search. Thanks for your ideas Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Rick Harrison Gesendet: Mittwoch, 22. April 2015 15:44 An: How to use LiveCode Betreff: Re: fastes way to search an array? Hi Tiemo, What is the average and worst time that it takes to search your 20,000 record array now? Are there users other than you involved? Is it worth the time it will take you to optimize the code for the faster execution? Now that you?ve hopefully answered these questions for yourself, and decided it?s worth the effort, let?s more things forward a little more. Is your array pre-sorted alphabetically? (Assuming you are aiming for that order.) If so, it might make sense to split your big array into smaller alphabetically sorted arrays. Then you can test for which array to search based on the first letter of the element you are searching for in the array, and search the smaller array. Do a few timed tests with your array search so you can measure how much of an improvement you have achieved. Good luck! Rick > On Apr 22, 2015, at 9:20 AM, Tiemo Hollmann TB wrote: > > Hello, > > I have an array with 20000 records, where I want to extract all > records, which either "begins with" or "contains" a search string. > > Up to now I just loop thru the whole array, do the compare and extract > the result records. I wonder, if there is a way to speed up this > search? E.g., does it makes a difference, if I compare the string in > the key or the data of the array while looping thru? I mean, would it > make a difference, if I would create an "associative" array, where my > search looks up in the keys of the array, either by looping thru the > array, or by extracting first the keys of the array into a separate > variable, instead in the data of the original array? > > Would it make a difference looping thru a variable, which just > contains the keys of the array, instead of looping thru the complete > array, because of the smaller "footprint" in the memory? > > Or shouldn't I care about these differences and just let LC makes its job? > > Any experiences welcome, > > Tiemo > > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Wed Apr 22 11:45:16 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 22 Apr 2015 11:45:16 -0400 Subject: fastes way to search an array? In-Reply-To: <000a01d07d0f$322fcfc0$968f6f40$@kestner.de> References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> <000a01d07d0f$322fcfc0$968f6f40$@kestner.de> Message-ID: <32FA41F8-F6E7-4901-A7DC-308530FCA885@all-auctions.com> Hi Tiemo, The computer industry changes so quickly now that you won?t have to wait very long for the machines to get faster. Cheers, Rick > On Apr 22, 2015, at 11:15 AM, Tiemo Hollmann TB wrote: > > Hi Rick, > On my new and fast development machine the search is pretty fast and optimization wouldn't be necessary. > But I am not sure, how it behaves on old and weak computers out there in the wild. Perhaps I have to reactivate one of my old ones for testing. Splitting into alphabetical parts is in my case not possible, because of the "contains" search. > Thanks for your ideas > Tiemo > From mark at livecode.com Wed Apr 22 11:46:09 2015 From: mark at livecode.com (Mark Waddingham) Date: Wed, 22 Apr 2015 17:46:09 +0200 Subject: mobileControlDo In-Reply-To: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> Message-ID: <057f7f9385e8c2696ec8660e93c4eb27@livecode.com> Hi Pierre, There is definitely code in the engine to feed the (string) result from the JS script back to 'the result' variable. I've just tried (on iOS): mobileControlDo sBrowserId, "execute", "1+1" answer the result For me at least, this results in an answer dialog popping up containing the value '2'. If you can't get this to work, then please do file a bug in the quality center with your example script and more details of your environment. Warmest Regards, Mark. --- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 2015-04-21 17:42, Pierre Sahores wrote: > Hi Friends, > > I can?t find any way to get the returned value (nor as it or the > result) after executing the following line of code : > > "Browser1", "execute", fld "js1" > > where fld ? js1" acts as a simple javascript statements container. > > Do i miss something or is the mobileControlDo command 100% unable to > let us use its execution result ? > > A simple js ? alert() ? box display (witch works?) don?t feet my > needs... > > Thanks for any though? > > Best, > -- > Pierre Sahores > mobile : 06 03 95 77 70 > www.sahores-conseil.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Apr 22 12:04:28 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 22 Apr 2015 09:04:28 -0700 Subject: fastes way to search an array? In-Reply-To: <000001d07cff$196c0a40$4c441ec0$@kestner.de> References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> Message-ID: <5537C68C.1020400@fourthworld.com> Tiemo wrote: > I have an array with 20000 records, where I want to extract all > records, which either "begins with" or "contains" a search string. > > Up to now I just loop thru the whole array, do the compare and > extract the result records. I wonder, if there is a way to speed > up this search? E.g., does it makes a difference, if I compare the > string in the key or the data of the array while looping thru? I > mean, would it make a difference, if I would create an "associative" > array, where my search looks up in the keys of the array, either by > looping thru the array, or by extracting first the keys of the array > into a separate variable, instead in the data of the original array? > > Would it make a difference looping thru a variable, which just > contains the keys of the array, instead of looping thru the complete > array, because of the smaller "footprint" in the memory? > > Or shouldn't I care about these differences and just let LC makes its > job? > > Any experiences welcome, I'm not entirely sure I understand the options you've described, but hopefully this will at least either help or be mildly amusing: go url "http://fourthworld.net/lc/array_access_speeds.livecode" -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Apr 22 12:22:30 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 22 Apr 2015 09:22:30 -0700 Subject: Stack is Dirty? In-Reply-To: <5537609F.9080007@LinkIt.Com> References: <5537609F.9080007@LinkIt.Com> Message-ID: <5537CAC6.1020606@fourthworld.com> Ray wrote: > I believe there's a key word which is a property you can use to detect > whether a stack has changes which have not yet been saved. It's > something like stackIsDirty but I can't find it anywhere. Does anybody > remember this? There is a Mac-only stack property, the modifiedMark, which can be used to indicate to the user that a stack has unsaved changes (it colors the window's close button dark red), but I know of no engine-level way to monitor for changes in the engine. Would be nice, but given the many different ways we use LC it may not be practical. For example, in most apps changing the text of a field would be a change worth noting but changing the rect of a stack would not, but in LC changing any object rect, or any other property, might warrant noting an unsaved change. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Wed Apr 22 12:29:10 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 22 Apr 2015 09:29:10 -0700 Subject: Stack is Dirty? In-Reply-To: <5537CAC6.1020606@fourthworld.com> References: <5537609F.9080007@LinkIt.Com> <5537CAC6.1020606@fourthworld.com> Message-ID: I believe it's the global array property gRevStackStatus which is keyed by short stack name. However, not all changes to the stack result in it being marked dirty in gRevStackStatus as I discovered recently. For example, deleting a stack by script does not not result in it being marked as dirty. I've entered a QCC report on this. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 22, 2015 at 9:22 AM, Richard Gaskin wrote: > Ray wrote: > > I believe there's a key word which is a property you can use to detect >> whether a stack has changes which have not yet been saved. It's >> something like stackIsDirty but I can't find it anywhere. Does anybody >> remember this? >> > > There is a Mac-only stack property, the modifiedMark, which can be used to > indicate to the user that a stack has unsaved changes (it colors the > window's close button dark red), but I know of no engine-level way to > monitor for changes in the engine. > > Would be nice, but given the many different ways we use LC it may not be > practical. > > For example, in most apps changing the text of a field would be a change > worth noting but changing the rect of a stack would not, but in LC changing > any object rect, or any other property, might warrant noting an unsaved > change. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Wed Apr 22 15:04:09 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 22 Apr 2015 15:04:09 -0400 Subject: The "FIX:" is in In-Reply-To: <54DB7CDB.3070904@fourthworld.com> References: <54DB7CDB.3070904@fourthworld.com> Message-ID: WOOHOO! 14475 and 14802 awaiting merge, now we wait... 8 is gonna be great - even more of the IDE will be easier to work on... On Wed, Feb 11, 2015 at 11:01 AM, Richard Gaskin wrote: > Mike Kerner wrote: > >> Next FIX: posted: 14475 - Project Browser doesn't hold resize. Yeah, it's >> another tiny one, but hey, it'll be #2 for me... >> > > Thanks for submitting that, Mike. > > Even small things like that help make the IDE more solid, so I appreciate > your taking the time to post that. > > Ben's making some substantial revisions to the Project Browser for v8, but > I suspect those changes won't affect the v7.x PB, so with any luck we may > see that fix applied in v7.0.3. > > If you're wondering "Why not in 7.0.2"?, right now all non-critical issues > are in freeze for 7.0.2 so the team can focus on delivering the fix for > Apple's latest iOS change, the new requirement for 64-bit compatibility > (which is awesome, since of course all iOS devices have more than 4GB RAM > ). > > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bobsneidar at iotecdigital.com Wed Apr 22 15:55:06 2015 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 22 Apr 2015 19:55:06 +0000 Subject: fastes way to search an array? In-Reply-To: <000a01d07d0f$322fcfc0$968f6f40$@kestner.de> References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> <000a01d07d0f$322fcfc0$968f6f40$@kestner.de> Message-ID: <164C80E5-5A69-416E-AEA2-1230229E4670@iotecdigital.com> I think this all underscores what I have been saying for some time, that there needs to be search/sort functionality for arrays built into the engine. Sure it can be done procedurally but the engine would handle it so much faster. I should submit a feature request or vote for an existing one. Bob S > On Apr 22, 2015, at 08:15 , Tiemo Hollmann TB wrote: > > Hi Rick, > On my new and fast development machine the search is pretty fast and optimization wouldn't be necessary. > But I am not sure, how it behaves on old and weak computers out there in the wild. Perhaps I have to reactivate one of my old ones for testing. Splitting into alphabetical parts is in my case not possible, because of the "contains" search. > Thanks for your ideas > Tiemo > > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Rick Harrison > Gesendet: Mittwoch, 22. April 2015 15:44 > An: How to use LiveCode > Betreff: Re: fastes way to search an array? > > Hi Tiemo, > > What is the average and worst time that it takes to search your 20,000 record array now? > Are there users other than you involved? Is it worth the time it will take you to optimize the code for the faster execution? > > Now that you?ve hopefully answered these questions for yourself, and decided it?s worth the effort, let?s more things forward a little more. > > Is your array pre-sorted alphabetically? (Assuming you are aiming for that order.) If so, it might make sense to split your big array into smaller alphabetically sorted arrays. Then you can test for which array to search based on the first letter of the element you are searching for in the array, and search the smaller array. > > Do a few timed tests with your array search so you can measure how much of an improvement you have achieved. > > Good luck! > > Rick > > > >> On Apr 22, 2015, at 9:20 AM, Tiemo Hollmann TB wrote: >> >> Hello, >> >> I have an array with 20000 records, where I want to extract all >> records, which either "begins with" or "contains" a search string. >> >> Up to now I just loop thru the whole array, do the compare and extract >> the result records. I wonder, if there is a way to speed up this >> search? E.g., does it makes a difference, if I compare the string in >> the key or the data of the array while looping thru? I mean, would it >> make a difference, if I would create an "associative" array, where my >> search looks up in the keys of the array, either by looping thru the >> array, or by extracting first the keys of the array into a separate >> variable, instead in the data of the original array? >> >> Would it make a difference looping thru a variable, which just >> contains the keys of the array, instead of looping thru the complete >> array, because of the smaller "footprint" in the memory? >> >> Or shouldn't I care about these differences and just let LC makes its job? >> >> Any experiences welcome, >> >> Tiemo >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Wed Apr 22 16:26:10 2015 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 22 Apr 2015 13:26:10 -0700 Subject: fastes way to search an array? In-Reply-To: <000001d07cff$196c0a40$4c441ec0$@kestner.de> References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> Message-ID: <553803E2.5030103@pdslabs.net> Hi Tiemo, How many levels deep are the array elements you want to search? How many words might each of the searchable array elements contain? How is the array keyed - by sequential number, a preassigned numeric ID, a content description, ...? Would it be worth your time when loading the primary array to build a second array that indexes the primary keys by word? (i.e. make an alternate index) Then finding which words are in which primary array elements would be easy. But if your array is "flat" enough, I like Geoff's idea of combining and filtering it. But you haven't told us much about its structure. Thanks - Phil Davis On 4/22/15 6:20 AM, Tiemo Hollmann TB wrote: > Hello, > > I have an array with 20000 records, where I want to extract all records, > which either "begins with" or "contains" a search string. > > Up to now I just loop thru the whole array, do the compare and extract the > result records. I wonder, if there is a way to speed up this search? E.g., > does it makes a difference, if I compare the string in the key or the data > of the array while looping thru? I mean, would it make a difference, if I > would create an "associative" array, where my search looks up in the keys of > the array, either by looping thru the array, or by extracting first the keys > of the array into a separate variable, instead in the data of the original > array? > > Would it make a difference looping thru a variable, which just contains the > keys of the array, instead of looping thru the complete array, because of > the smaller "footprint" in the memory? > > Or shouldn't I care about these differences and just let LC makes its job? > > Any experiences welcome, > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 From bonnmike at gmail.com Wed Apr 22 17:44:21 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 22 Apr 2015 15:44:21 -0600 Subject: fastes way to search an array? In-Reply-To: <553803E2.5030103@pdslabs.net> References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> <553803E2.5030103@pdslabs.net> Message-ID: I wonder how easy it would be to add an option to arrayencode. It already flattens an array nicely, but not in a searchable way. It would be cool to add an optional argument that still flattens, but doesn't encode. The code to traverse the array is already there, with an option to leave the data and keys readable, it would then make an interesting batch of searchable text. Just glancing at an encoded array, it looks relatively comprehensible. One issue would be the unordered way arrays are stored. (making arrayencoded arrays come out different despite identical data, as per the dictionary page) On Wed, Apr 22, 2015 at 2:26 PM, Phil Davis wrote: > Hi Tiemo, > > How many levels deep are the array elements you want to search? > > How many words might each of the searchable array elements contain? > > How is the array keyed - by sequential number, a preassigned numeric ID, a > content description, ...? > > Would it be worth your time when loading the primary array to build a > second array that indexes the primary keys by word? (i.e. make an alternate > index) Then finding which words are in which primary array elements would > be easy. > > But if your array is "flat" enough, I like Geoff's idea of combining and > filtering it. But you haven't told us much about its structure. > > Thanks - > Phil Davis > > > On 4/22/15 6:20 AM, Tiemo Hollmann TB wrote: > >> Hello, >> >> I have an array with 20000 records, where I want to extract all records, >> which either "begins with" or "contains" a search string. >> >> Up to now I just loop thru the whole array, do the compare and extract the >> result records. I wonder, if there is a way to speed up this search? E.g., >> does it makes a difference, if I compare the string in the key or the data >> of the array while looping thru? I mean, would it make a difference, if I >> would create an "associative" array, where my search looks up in the keys >> of >> the array, either by looping thru the array, or by extracting first the >> keys >> of the array into a separate variable, instead in the data of the original >> array? >> >> Would it make a difference looping thru a variable, which just contains >> the >> keys of the array, instead of looping thru the complete array, because of >> the smaller "footprint" in the memory? >> >> Or shouldn't I care about these differences and just let LC makes its job? >> >> Any experiences welcome, >> >> Tiemo >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Wed Apr 22 18:51:14 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 22 Apr 2015 15:51:14 -0700 Subject: fastes way to search an array? In-Reply-To: References: Message-ID: <553825E2.4060507@fourthworld.com> Mike Bonner wrote: > I wonder how easy it would be to add an option to arrayencode. It already > flattens an array nicely, but not in a searchable way. It would be cool to > add an optional argument that still flattens, but doesn't encode. The code > to traverse the array is already there, with an option to leave the data > and keys readable, it would then make an interesting batch of searchable > text. Just glancing at an encoded array, it looks relatively > comprehensible. Relatively. Lots of binary stuff there, though - it's relatively slow for the engine to recompose into an array, and no doubt much slower to attempt to do in script. May not be much of a need, though, since traversing arrays with what we have is pretty fast - from my earlier email: go url "http://fourthworld.net/lc/array_access_speeds.livecode" > One issue would be the unordered way arrays are stored. (making > arrayencoded arrays come out different despite identical data, as per the > dictionary page) That's a function of the hashing used for any associative array. Not much can be done about that for strings, though there's been some talk of adding numerically indexed arrays for those who need only sequential integers as keys and need to maintain order. But in the meantime the sort command is pretty handy. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Wed Apr 22 19:22:04 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 22 Apr 2015 16:22:04 -0700 Subject: fastes way to search an array? In-Reply-To: <553825E2.4060507@fourthworld.com> References: <553825E2.4060507@fourthworld.com> Message-ID: Out of interest, I added a test which used combine and filter. It took around 3 times longer than the other two tests. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 22, 2015 at 3:51 PM, Richard Gaskin wrote: > Mike Bonner wrote: > > I wonder how easy it would be to add an option to arrayencode. It already >> flattens an array nicely, but not in a searchable way. It would be cool to >> add an optional argument that still flattens, but doesn't encode. The >> code >> to traverse the array is already there, with an option to leave the data >> and keys readable, it would then make an interesting batch of searchable >> text. Just glancing at an encoded array, it looks relatively >> comprehensible. >> > > Relatively. Lots of binary stuff there, though - it's relatively slow for > the engine to recompose into an array, and no doubt much slower to attempt > to do in script. > > May not be much of a need, though, since traversing arrays with what we > have is pretty fast - from my earlier email: > > go url "http://fourthworld.net/lc/array_access_speeds.livecode" > > > One issue would be the unordered way arrays are stored. (making >> arrayencoded arrays come out different despite identical data, as per the >> dictionary page) >> > > That's a function of the hashing used for any associative array. Not much > can be done about that for strings, though there's been some talk of adding > numerically indexed arrays for those who need only sequential integers as > keys and need to maintain order. > > But in the meantime the sort command is pretty handy. :) > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Wed Apr 22 19:40:56 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 22 Apr 2015 19:40:56 -0400 Subject: fastes way to search an array? In-Reply-To: <553825E2.4060507@fourthworld.com> References: <553825E2.4060507@fourthworld.com> Message-ID: Hi Richard, I tried this url in Safari - it didn?t work. Are you sure this is the correct link? Thanks, Rick > > go url "http://fourthworld.net/lc/array_access_speeds.livecode" > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web From alex at tweedly.net Wed Apr 22 19:57:27 2015 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 23 Apr 2015 00:57:27 +0100 Subject: fastes way to search an array? In-Reply-To: <553825E2.4060507@fourthworld.com> References: <553825E2.4060507@fourthworld.com> Message-ID: <55383567.8030208@tweedly.net> On 22/04/2015 23:51, Richard Gaskin wrote: > > May not be much of a need, though, since traversing arrays with what > we have is pretty fast - from my earlier email: > > go url "http://fourthworld.net/lc/array_access_speeds.livecode" > And the conclusion within that stack says .. > The results here reflect what we might be able to guess from what > we're asking the engine to do: if run a sufficient number of times to > account for variances caused by background processes the OS may be > handling, in general we find SearchArray2 to be slightly faster than > SearchArray1. > > This is anticipatable because SearchArray1 performs the additional > step of asking the engine to retrieve all keys up front and copy them > to a local list variable, while SearchArray2 iterates through the keys > directly. > > This follows the general guidance: > > Know the engine > Trust the engine > Use the engine When I try this with 6.7, I get the same results - SearchArray1 is (fairly) consistently slower, at approx. 61 ms vs 57 ms. However, for 7.0, I get the opposite - SearchArray1 is (fairly) consistently faster, at approx. 155 ms vs 161 ms. So as well as the overall slow down, we see a change from the expected comparative speed. I can't decide if that's interesting enough to report it to RunRev :-) Alex. From alex at tweedly.net Wed Apr 22 19:58:30 2015 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 23 Apr 2015 00:58:30 +0100 Subject: fastes way to search an array? In-Reply-To: References: <553825E2.4060507@fourthworld.com> Message-ID: <553835A6.6030002@tweedly.net> Note the "go url " - it's intended to be typed into the message box to load the stack into Livecode IDE. On 23/04/2015 00:40, Rick Harrison wrote: > Hi Richard, > > I tried this url in Safari - it didn?t work. Are you sure this is the correct link? > > Thanks, > > Rick > >> go url "http://fourthworld.net/lc/array_access_speeds.livecode" >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Wed Apr 22 20:03:52 2015 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 22 Apr 2015 17:03:52 -0700 Subject: fastes way to search an array? In-Reply-To: References: <553825E2.4060507@fourthworld.com> Message-ID: <553836E8.9060307@pdslabs.net> I tried it from the message box - it works. Phil On 4/22/15 4:40 PM, Rick Harrison wrote: > Hi Richard, > > I tried this url in Safari - it didn?t work. Are you sure this is the correct link? > > Thanks, > > Rick > >> go url "http://fourthworld.net/lc/array_access_speeds.livecode" >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 From ambassador at fourthworld.com Wed Apr 22 20:08:30 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 22 Apr 2015 17:08:30 -0700 Subject: fastes way to search an array? In-Reply-To: <553836E8.9060307@pdslabs.net> References: <553836E8.9060307@pdslabs.net> Message-ID: <553837FE.7020805@fourthworld.com> Works in Firefox and Chrome as well. Andre might suggest maybe Safari's broken. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Phil Davis wrote: > I tried it from the message box - it works. > Phil > > > On 4/22/15 4:40 PM, Rick Harrison wrote: >> Hi Richard, >> >> I tried this url in Safari - it didn?t work. Are you sure this is the correct link? >> >> Thanks, >> >> Rick >> >>> go url "http://fourthworld.net/lc/array_access_speeds.livecode" From ambassador at fourthworld.com Wed Apr 22 20:15:47 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 22 Apr 2015 17:15:47 -0700 Subject: fastes way to search an array? In-Reply-To: <55383567.8030208@tweedly.net> References: <55383567.8030208@tweedly.net> Message-ID: <553839B3.7000407@fourthworld.com> Alex Tweedly wrote: > On 22/04/2015 23:51, Richard Gaskin wrote: >> >> May not be much of a need, though, since traversing arrays with what >> we have is pretty fast - from my earlier email: >> >> go url "http://fourthworld.net/lc/array_access_speeds.livecode" ... > When I try this with 6.7, I get the same results - SearchArray1 is > (fairly) consistently slower, at approx. 61 ms vs 57 ms. > > However, for 7.0, I get the opposite - SearchArray1 is (fairly) > consistently faster, at approx. 155 ms vs 161 ms. > > So as well as the overall slow down, we see a change from the > expected comparative speed. > I can't decide if that's interesting enough to report it to RunRev :-) It may already have been reported under different symptoms, since my testing here with the current version (7.0.4) has SearchArray2 about 15-30% faster than SearchArray1, with rare exceptions which may be accountable by background system tasks. In fact, given that SearchArray1 includes the extra overhead of extracting the keys and creating a text list from them, if it were faster I'd call it a bug. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Apr 22 22:45:30 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 22 Apr 2015 19:45:30 -0700 Subject: Android Intents/iOS Extensions? Message-ID: <55385CCA.5000100@fourthworld.com> I'd like to have an app be able to accept data from other programs, like when you click the Share button in an image gallery and a list of programs pops up that can accept images - I'd like mine to be among them. I can see from the iOS and Android docs how to register that support in the manifest, but the APIs for actually receiving the data appear to be lower-level, and I haven't found LiveCode messages for those. Am I dreaming, or have I just overlooked something buried in a Release Note somewhere? TIA - -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From harrison at all-auctions.com Thu Apr 23 00:49:15 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 23 Apr 2015 00:49:15 -0400 Subject: fastest way to search an array? In-Reply-To: <553837FE.7020805@fourthworld.com> References: <553836E8.9060307@pdslabs.net> <553837FE.7020805@fourthworld.com> Message-ID: <43023900-3E7C-43C8-8161-C711A7CAA328@all-auctions.com> Hi Richard, Apparently it worked after all in Safari, I was just expecting to see a webpage and wasn?t expecting an immediate download, without much of a warning. FireFox made things a little more apparent. Thanks, Rick > On Apr 22, 2015, at 8:08 PM, Richard Gaskin wrote: > > Works in Firefox and Chrome as well. Andre might suggest maybe Safari's broken. :) > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > From peterwawood at gmail.com Thu Apr 23 01:37:06 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 23 Apr 2015 13:37:06 +0800 Subject: Fwd: Plain text library stacks References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> Message-ID: <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> I remember reading a message to the effect that one of the recent releases to the LiveCode engine included an enhancement to load ?plain text? library stacks. I searched the forum and clicked relevant threads without being able to find the post that I remember. Is it possible to load a Library stack in plan text format from another stack? Thanks in advance. Peter From th.douez at gmail.com Thu Apr 23 01:45:47 2015 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 23 Apr 2015 07:45:47 +0200 Subject: Plain text library stacks In-Reply-To: <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> Message-ID: Hi Peter, Are you thinking of this: http://forums.livecode.com/viewtopic.php?f=77&t=18748&p=106514&hilit=monte+save+stack#p106514 HTH, Thierry > I remember reading a message to the effect that one of the recent releases to the LiveCode engine included an enhancement to load ?plain text? library stacks. I searched the forum and clicked relevant threads without being able to find the post that I remember. > > Is it possible to load a Library stack in plan text format from another stack? > > Peter From peterwawood at gmail.com Thu Apr 23 01:52:00 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 23 Apr 2015 13:52:00 +0800 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> Message-ID: <924473B1-499C-4974-B602-50A9FA00A2A6@gmail.com> Hi Thierry Thanks for the suggestion. Actually, I wasn?t thinking of Monte?s lcVCS. As I remember, the post that I saw suggested you could create a library stack in a text editor and then load it into LiveCode. Kind regards Peter > On 23 Apr 2015, at 13:45, Thierry Douez wrote: > > Hi Peter, > > Are you thinking of this: > > http://forums.livecode.com/viewtopic.php?f=77&t=18748&p=106514&hilit=monte+save+stack#p106514 > > > HTH, > > Thierry > > > > >> I remember reading a message to the effect that one of the recent releases to the LiveCode engine included an enhancement to load ?plain text? library stacks. I searched the forum and clicked relevant threads without being able to find the post that I remember. >> >> Is it possible to load a Library stack in plan text format from another stack? >> >> Peter > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Thu Apr 23 03:59:32 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 23 Apr 2015 09:59:32 +0200 Subject: Fwd: Plain text library stacks In-Reply-To: <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> Message-ID: <78201b884ec1f285bd1a8be04ae05184@livecode.com> On 2015-04-23 07:37, Peter W A Wood wrote: > Is it possible to load a Library stack in plan text format from another > stack? Yes - although we've not explicitly published details on the feature yet :) However, if you want to play around with it then from the message box try: create script only stack "MyLibraryStack" Then edit script of stack "MyLibraryStack" You can save the stack in the normal way but the only thing it will save will be the stack script - the file on disk is just a UTF-8 text file. We've been using this to great effect in the IDE where a good number of libraries and non-UI stacks are now script-only - the motivation being that they work in version control just like a lower-level language source file. In addition with 6.7.5-rc-1 and 7.0.5-rc-1 we've added the ability for the behavior property to reference stacks - this has a nice synergy with script only stacks. (Before anyone asks - there are no plans to extend behaviors to any other object type at the moment, stack references were addable without a file format change hence why its occurred). I should point out that the script-only-stacks are 'caveat scriptor' in the sense that the engine will only ever save the stack script when you save one, it will not warn you if you've put anything else beyond a stack script on the stack (whether it be custom properties or other objects), nor will it stop you from making it have anything beyond a stack script. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From toolbook at kestner.de Thu Apr 23 04:09:49 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 23 Apr 2015 10:09:49 +0200 Subject: AW: fastes way to search an array? In-Reply-To: <5537C68C.1020400@fourthworld.com> References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> <5537C68C.1020400@fourthworld.com> Message-ID: <007101d07d9c$ded1b580$9c752080$@kestner.de> Thanks Richard and others for you helpful remarks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Richard Gaskin Gesendet: Mittwoch, 22. April 2015 18:04 An: use-livecode at lists.runrev.com Betreff: Re: fastes way to search an array? Tiemo wrote: > I have an array with 20000 records, where I want to extract all > records, which either "begins with" or "contains" a search string. > > Up to now I just loop thru the whole array, do the compare and > extract the result records. I wonder, if there is a way to speed > up this search? E.g., does it makes a difference, if I compare the > string in the key or the data of the array while looping thru? I > mean, would it make a difference, if I would create an "associative" > array, where my search looks up in the keys of the array, either by > looping thru the array, or by extracting first the keys of the array > into a separate variable, instead in the data of the original array? > > Would it make a difference looping thru a variable, which just > contains the keys of the array, instead of looping thru the complete > array, because of the smaller "footprint" in the memory? > > Or shouldn't I care about these differences and just let LC makes its > job? > > Any experiences welcome, I'm not entirely sure I understand the options you've described, but hopefully this will at least either help or be mildly amusing: go url "http://fourthworld.net/lc/array_access_speeds.livecode" -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mark at sorcery-ltd.co.uk Thu Apr 23 04:27:27 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Thu, 23 Apr 2015 09:27:27 +0100 Subject: Android Intents/iOS Extensions? In-Reply-To: <55385CCA.5000100@fourthworld.com> References: <55385CCA.5000100@fourthworld.com> Message-ID: <1429777647.1104417.257520357.66DE4C97@webmail.messagingengine.com> On Thu, Apr 23, 2015, at 03:45 AM, Richard Gaskin wrote: > I'd like to have an app be able to accept data from other programs, like > when you click the Share button in an image gallery and a list of > programs pops up that can accept images - I'd like mine to be among them. > > I can see from the iOS and Android docs how to register that support in > the manifest, but the APIs for actually receiving the data appear to be > lower-level, and I haven't found LiveCode messages for those. > > Am I dreaming, or have I just overlooked something buried in a Release > Note somewhere? Not dreaming. Intents have been around forever on Android but I don't believe LiveCode currently supports receiving them. Extensions are iOS 8+ only, so it's not so surprising that they're not yet supported. Mark From mark at livecode.com Thu Apr 23 04:35:13 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 23 Apr 2015 10:35:13 +0200 Subject: fastes way to search an =?UTF-8?Q?array=3F?= In-Reply-To: <553839B3.7000407@fourthworld.com> References: <55383567.8030208@tweedly.net> <553839B3.7000407@fourthworld.com> Message-ID: On 2015-04-23 02:15, Richard Gaskin wrote: > In fact, given that SearchArray1 includes the extra overhead of > extracting the keys and creating a text list from them, if it were > faster I'd call it a bug. I think you may have your SearchArray* functions round the wrong way. SearchArray1 is 'direct key' (it uses repeat for each key) SearchArray2 is 'key list' (it uses 'the keys' and repeat for each line) The results are what I would expect - 'direct key' is faster than 'key list' for precisely the reason you state above :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Thu Apr 23 05:03:11 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 23 Apr 2015 11:03:11 +0200 Subject: fastes way to search an =?UTF-8?Q?array=3F?= In-Reply-To: <000001d07cff$196c0a40$4c441ec0$@kestner.de> References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> Message-ID: > I have an array with 20000 records, where I want to extract all > records, > which either "begins with" or "contains" a search string. From your description I presume your array is of the form: tArray[] = tArray[] = ... tArray[] = From this you want to do this: repeat for each key tKey in tArray if tArray[tKey] begins with tSearchString or \ tArray[tKey] contains tSearchString then put tKey & return after tResults end if end repeat If this is the case, then the above is pretty much the best you can do. The critical step (the one which dominates any execution time) will be the 'begins with' and 'contains' operation - and there is little you can do to speed these up *unless* there are constraints on the search string. For example, if you are actually just wanting to search for single 'words' in the records then you can pre-index all the words in the array: -- Build Index repeat for each key tKey in tArray repeat for each word tWord in tArray[tKey] put tKey & return after tIndex[tWord] end repeat end repeat -- Search for word tSearchWord put tIndex[tSearchWord] One thing to note is that 20000 records isn't all that many in the modern context - so a linear search is probably not going to cause you too many problems. However, if you are looking at this figure increasing in orders of magnitude then at some point you should probably consider moving to an SQLite database or something similar to store the data. SQLite supports a 'full text search' index system, which enables fast searches for (albeit somewhat restricted) input strings and patterns. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From toolbook at kestner.de Thu Apr 23 05:55:04 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 23 Apr 2015 11:55:04 +0200 Subject: AW: fastes way to search an array? In-Reply-To: References: <000001d07cff$196c0a40$4c441ec0$@kestner.de> Message-ID: <007701d07dab$9352a150$b9f7e3f0$@kestner.de> Mark, thank you for your comments Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mark Waddingham Gesendet: Donnerstag, 23. April 2015 11:03 An: How to use LiveCode Betreff: Re: fastes way to search an array? > I have an array with 20000 records, where I want to extract all > records, which either "begins with" or "contains" a search string. From your description I presume your array is of the form: tArray[] = tArray[] = ... tArray[] = From this you want to do this: repeat for each key tKey in tArray if tArray[tKey] begins with tSearchString or \ tArray[tKey] contains tSearchString then put tKey & return after tResults end if end repeat If this is the case, then the above is pretty much the best you can do. The critical step (the one which dominates any execution time) will be the 'begins with' and 'contains' operation - and there is little you can do to speed these up *unless* there are constraints on the search string. For example, if you are actually just wanting to search for single 'words' in the records then you can pre-index all the words in the array: -- Build Index repeat for each key tKey in tArray repeat for each word tWord in tArray[tKey] put tKey & return after tIndex[tWord] end repeat end repeat -- Search for word tSearchWord put tIndex[tSearchWord] One thing to note is that 20000 records isn't all that many in the modern context - so a linear search is probably not going to cause you too many problems. However, if you are looking at this figure increasing in orders of magnitude then at some point you should probably consider moving to an SQLite database or something similar to store the data. SQLite supports a 'full text search' index system, which enables fast searches for (albeit somewhat restricted) input strings and patterns. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Thu Apr 23 06:44:15 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 23 Apr 2015 18:44:15 +0800 Subject: Plain text library stacks In-Reply-To: <78201b884ec1f285bd1a8be04ae05184@livecode.com> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> Message-ID: <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> Many thanks, Mark. > On 23 Apr 2015, at 15:59, Mark Waddingham wrote: > > On 2015-04-23 07:37, Peter W A Wood wrote: >> Is it possible to load a Library stack in plan text format from another stack? > > Yes - although we've not explicitly published details on the feature yet :) > > However, if you want to play around with it then from the message box try: > > create script only stack "MyLibraryStack" > > Then > > edit script of stack "MyLibraryStack" > > You can save the stack in the normal way but the only thing it will save will be the stack script - the file on disk is just a UTF-8 text file. > > We've been using this to great effect in the IDE where a good number of libraries and non-UI stacks are now script-only - the motivation being that they work in version control just like a lower-level language source file. > > In addition with 6.7.5-rc-1 and 7.0.5-rc-1 we've added the ability for the behavior property to reference stacks - this has a nice synergy with script only stacks. (Before anyone asks - there are no plans to extend behaviors to any other object type at the moment, stack references were addable without a file format change hence why its occurred). > > I should point out that the script-only-stacks are 'caveat scriptor' in the sense that the engine will only ever save the stack script when you save one, it will not warn you if you've put anything else beyond a stack script on the stack (whether it be custom properties or other objects), nor will it stop you from making it have anything beyond a stack script. > > Warmest Regards, > > Mark. > > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david at viral.academy Thu Apr 23 08:47:11 2015 From: david at viral.academy (David Bovill) Date: Thu, 23 Apr 2015 12:47:11 +0000 Subject: Plain text library stacks In-Reply-To: <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> Message-ID: Great. I can now refactor all those libraries. On Thu, 23 Apr 2015 at 11:44, Peter W A Wood wrote: > Many thanks, Mark. > > > On 23 Apr 2015, at 15:59, Mark Waddingham wrote: > > > > On 2015-04-23 07:37, Peter W A Wood wrote: > >> Is it possible to load a Library stack in plan text format from another > stack? > > > > Yes - although we've not explicitly published details on the feature yet > :) > > > > However, if you want to play around with it then from the message box > try: > > > > create script only stack "MyLibraryStack" > > > > Then > > > > edit script of stack "MyLibraryStack" > > > > You can save the stack in the normal way but the only thing it will save > will be the stack script - the file on disk is just a UTF-8 text file. > > > > We've been using this to great effect in the IDE where a good number of > libraries and non-UI stacks are now script-only - the motivation being that > they work in version control just like a lower-level language source file. > > > > In addition with 6.7.5-rc-1 and 7.0.5-rc-1 we've added the ability for > the behavior property to reference stacks - this has a nice synergy with > script only stacks. (Before anyone asks - there are no plans to extend > behaviors to any other object type at the moment, stack references were > addable without a file format change hence why its occurred). > > > > I should point out that the script-only-stacks are 'caveat scriptor' in > the sense that the engine will only ever save the stack script when you > save one, it will not warn you if you've put anything else beyond a stack > script on the stack (whether it be custom properties or other objects), nor > will it stop you from making it have anything beyond a stack script. > > > > Warmest Regards, > > > > Mark. > > > > > > -- > > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > > LiveCode: Everyone can create apps > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Thu Apr 23 09:10:39 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 23 Apr 2015 09:10:39 -0400 Subject: for you Wall Street fans... Message-ID: The opening bell ceremony is streamed online, here: http://livestream.com/nasdaq/live Today?s opening is sponsored by LiveCode. Not certain of the time, I?ve read both 9:20 and 9:30. It?s 9:10 at the moment. From peterwawood at gmail.com Thu Apr 23 09:34:50 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 23 Apr 2015 21:34:50 +0800 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> Message-ID: Here is a very simple server script and a very simple ?text? library script that show just what I was hoping. The Library Script: script "TextLib" function TL.compare pFirst, pSecond return pFirst = pSecond end TL.compare The Server Script: #! #coding:utf-8 set the outputLineEndings to "lf? set the outputTextEncoding to ?utf8" put the Version & return start using stack ?/TextLib.livecode? dispatch function "TL.compare" to stack "TextLib" with "a", "b? put the result & return dispatch function "TL.compare" to stack "TextLib" with "LiveCode", ?LiveCode" put the result & return I created both scripts in a text editor (using UTF-8 encoding) rather than the IDE. I think it?s great that LiveCode has given us this alternative way of working with script only stacks. Peter > On 23 Apr 2015, at 20:47, David Bovill wrote: > > Great. I can now refactor all those libraries. From ambassador at fourthworld.com Thu Apr 23 09:42:25 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 06:42:25 -0700 Subject: for you Wall Street fans... In-Reply-To: References: Message-ID: <5538F6C1.8060409@fourthworld.com> Colin Holgate wrote: > The opening bell ceremony is streamed online, here: > > http://livestream.com/nasdaq/live > > Today?s opening is sponsored by LiveCode. Not certain of the time, > I?ve read both 9:20 and 9:30. It?s 9:10 at the moment. It's on right now. Super cool to see Kevin and Todd there, but unfortunately on my system LiveStream isn't giving me any audio. If anyone finds a recording of this I can try on another system later that would be much appreciated. Thanks for the heads-up, Colin. Hopefully next time they'll give us notice themselves in advance. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From colinholgate at gmail.com Thu Apr 23 09:49:45 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 23 Apr 2015 09:49:45 -0400 Subject: for you Wall Street fans... In-Reply-To: <5538F6C1.8060409@fourthworld.com> References: <5538F6C1.8060409@fourthworld.com> Message-ID: <9E823F9A-3FDA-4CBC-B9CF-0285E5A42011@gmail.com> I didn?t see Kevin there. The openings are archived, though I can?t seem to get the old ones to play. > On Apr 23, 2015, at 9:42 AM, Richard Gaskin wrote: > > Colin Holgate wrote: > > > The opening bell ceremony is streamed online, here: > > > > http://livestream.com/nasdaq/live > > > > Today?s opening is sponsored by LiveCode. Not certain of the time, > > I?ve read both 9:20 and 9:30. It?s 9:10 at the moment. > > It's on right now. Super cool to see Kevin and Todd there, but unfortunately on my system LiveStream isn't giving me any audio. > > If anyone finds a recording of this I can try on another system later that would be much appreciated. > > Thanks for the heads-up, Colin. Hopefully next time they'll give us notice themselves in advance. From rdimola at evergreeninfo.net Thu Apr 23 09:55:43 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 23 Apr 2015 09:55:43 -0400 Subject: for you Wall Street fans... In-Reply-To: <5538F6C1.8060409@fourthworld.com> References: <5538F6C1.8060409@fourthworld.com> Message-ID: <001801d07dcd$30daaeb0$92900c10$@net> I had audio. Super Cool +1!! Any time you can main-stream a large group of people it's Super Cool. Giving back is the most rewarding activity in life. Beatles==> "And, in the end The love you take is equal to the love you make." Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Richard Gaskin Sent: Thursday, April 23, 2015 9:42 AM To: use-livecode at lists.runrev.com Subject: Re: for you Wall Street fans... Colin Holgate wrote: > The opening bell ceremony is streamed online, here: > > http://livestream.com/nasdaq/live > > Today?s opening is sponsored by LiveCode. Not certain of the time, > I?ve read both 9:20 and 9:30. It?s 9:10 at the moment. It's on right now. Super cool to see Kevin and Todd there, but unfortunately on my system LiveStream isn't giving me any audio. If anyone finds a recording of this I can try on another system later that would be much appreciated. Thanks for the heads-up, Colin. Hopefully next time they'll give us notice themselves in advance. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From th.douez at gmail.com Thu Apr 23 10:32:06 2015 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 23 Apr 2015 16:32:06 +0200 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> Message-ID: Hi Peter, Which version of LC are you using ? Doesnt' work here with LC 6.7.4 or LC 7.0.4. Thanks, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-04-23 15:34 GMT+02:00 Peter W A Wood : > Here is a very simple server script and a very simple ?text? library script that show just what I was hoping. > > The Library Script: > script "TextLib" > function TL.compare pFirst, pSecond > return pFirst = pSecond > end TL.compare > > The Server Script: > #! > #coding:utf-8 > set the outputLineEndings to "lf? > set the outputTextEncoding to ?utf8" > put the Version & return > start using stack ?/TextLib.livecode? > dispatch function "TL.compare" to stack "TextLib" with "a", "b? > put the result & return > dispatch function "TL.compare" to stack "TextLib" with "LiveCode", ?LiveCode" > put the result & return > > I created both scripts in a text editor (using UTF-8 encoding) rather than the IDE. > > I think it?s great that LiveCode has given us this alternative way of working with script only stacks. > > Peter > >> On 23 Apr 2015, at 20:47, David Bovill wrote: >> >> Great. I can now refactor all those libraries. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Thu Apr 23 10:50:15 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 23 Apr 2015 16:50:15 +0200 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> Message-ID: <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> > Doesnt' work here with LC 6.7.4 or LC 7.0.4. What exactly isn't working? The feature has actually been in the engine (albeit in nascent form) since around 6.6.4 / 6.6.5 IIRC. I originally hacked it together because of the issues we'd had keeping the core standalone builder stacks for iOS and Android in sync across 6.6 / 6.7 / 7.0 branches. Then Ali and Ben started using it to move IDE critical scripts into text files, and it got refined further (well, various bugs got fixed more than 'refined'). Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dave at applicationinsight.com Thu Apr 23 10:45:44 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 23 Apr 2015 07:45:44 -0700 (PDT) Subject: for you Wall Street fans... In-Reply-To: <001801d07dcd$30daaeb0$92900c10$@net> References: <5538F6C1.8060409@fourthworld.com> <001801d07dcd$30daaeb0$92900c10$@net> Message-ID: <1429800344537-4691401.post@n4.nabble.com> This link (tweeted by @livecode) has audio https://t.co/Isn1mhQnee ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/for-you-Wall-Street-fans-tp4691394p4691401.html Sent from the Revolution - User mailing list archive at Nabble.com. From th.douez at gmail.com Thu Apr 23 11:26:09 2015 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 23 Apr 2015 17:26:09 +0200 Subject: Plain text library stacks In-Reply-To: <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> Message-ID: Hmm, had a blank 1st line and script "stackname" as the second one. So, script "stackname" must be at the 1st line of the textfile. And now it works beautifully :) Regards, Thierry 2015-04-23 16:50 GMT+02:00 Mark Waddingham : >> Doesnt' work here with LC 6.7.4 or LC 7.0.4. > > What exactly isn't working? > ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From mark at livecode.com Thu Apr 23 12:26:17 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 23 Apr 2015 18:26:17 +0200 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> Message-ID: > So, script "stackname" must be at the 1st line of the textfile. Ah yes - that is indeed the case - it is quite picky, for two reasons. The first was that the main use-case I had in mind when implementing it was to replace IDE stacks which were only scripts and thus they would be edited in the IDE. The second is that the *only* part of the file which the engine retains when it is loaded is the 'name' on the first line and everything on the second line onwards. If text before the 'script' line were allowed then it is not clear how you might access that when the stack is loaded into memory - it would essentially be invisible information in the internal stack structure that would only appear when the stack is saved again. Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From johnpatten at me.com Thu Apr 23 12:26:15 2015 From: johnpatten at me.com (JOHN PATTEN) Date: Thu, 23 Apr 2015 09:26:15 -0700 Subject: INSERT and SQLlite command" Message-ID: <25B209B2-7143-43FB-A763-EFC64D63616F@me.com> Hi All, I have a very simple SQL Lite database consisting of three fields, an ID (INTEGER PRIMARY KEY) and two basic fields (technology char(200) and notes char(200). I am trying to INSERT records into the database. This works: repeat with x=1 to the number of items in tTopics put item y of tTopics into $technology put item y of tTopics into $notes put "INSERT into teacher_notes VALUES (null,'" & $technology & "','" & $notes & "');" into tSQL revExecuteSQL tDatabaseID, tSQL This doesn?t work: repeat with x=1 to the number of items in tTopics put item y of tTopics into $technology put item y of tTopics into $notes put "null" into $id put "INSERT INTO teacher_notes(" & return & \ ?id, technology, notes)" & \ "VALUES(" & return & \ "1:, 2:, 3:)" into tSQL --answer tSQL revExecuteSQL tDatabaseID, tSQL, "$id", "$technology", "$notes? Can anybody point out what I?m missing in the second version? Thank you! John Patten SUSD From m.schonewille at economy-x-talk.com Thu Apr 23 12:34:09 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 23 Apr 2015 18:34:09 +0200 Subject: INSERT and SQLlite command" In-Reply-To: <25B209B2-7143-43FB-A763-EFC64D63616F@me.com> References: <25B209B2-7143-43FB-A763-EFC64D63616F@me.com> Message-ID: <55391F01.4040202@economy-x-talk.com> Hi John, What is the error you get? Why do you have return in your syntax? Usually, SQLite syntax doesn't contain returns (even though it can). If you want to include a return as part of data, you need to encode or escape it. Additionally, you're combining curly quotes with straight quotes. Don't mix them. -- 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 4/23/2015 18:26, JOHN PATTEN wrote: > Hi All, > > I have a very simple SQL Lite database consisting of three fields, an ID (INTEGER PRIMARY KEY) and two basic fields (technology char(200) and notes char(200). > > I am trying to INSERT records into the database. > > This works: > > repeat with x=1 to the number of items in tTopics > put item y of tTopics into $technology > put item y of tTopics into $notes > put "INSERT into teacher_notes VALUES (null,'" & $technology & "','" & $notes & "');" into tSQL > revExecuteSQL tDatabaseID, tSQL > > This doesn?t work: > > repeat with x=1 to the number of items in tTopics > put item y of tTopics into $technology > put item y of tTopics into $notes > put "null" into $id > put "INSERT INTO teacher_notes(" & return & \ > ?id, technology, notes)" & \ > "VALUES(" & return & \ > "1:, 2:, 3:)" into tSQL > --answer tSQL > revExecuteSQL tDatabaseID, tSQL, "$id", "$technology", "$notes? > > Can anybody point out what I?m missing in the second version? > > Thank you! > > John Patten > SUSD > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From johnpatten at me.com Thu Apr 23 12:35:37 2015 From: johnpatten at me.com (JOHN PATTEN) Date: Thu, 23 Apr 2015 09:35:37 -0700 Subject: INSERT and SQLlite command" In-Reply-To: <25B209B2-7143-43FB-A763-EFC64D63616F@me.com> References: <25B209B2-7143-43FB-A763-EFC64D63616F@me.com> Message-ID: Gosh darn it! Nevermind? I had the colon in the wrong spots 1: and 2: instead of :1 and :2 etc?. Thanks anyways! > On Apr 23, 2015, at 9:26 AM, JOHN PATTEN wrote: > > Hi All, > > I have a very simple SQL Lite database consisting of three fields, an ID (INTEGER PRIMARY KEY) and two basic fields (technology char(200) and notes char(200). > > I am trying to INSERT records into the database. > > This works: > > repeat with x=1 to the number of items in tTopics > put item y of tTopics into $technology > put item y of tTopics into $notes > put "INSERT into teacher_notes VALUES (null,'" & $technology & "','" & $notes & "');" into tSQL > revExecuteSQL tDatabaseID, tSQL > > This doesn?t work: > > repeat with x=1 to the number of items in tTopics > put item y of tTopics into $technology > put item y of tTopics into $notes > put "null" into $id > put "INSERT INTO teacher_notes(" & return & \ > ?id, technology, notes)" & \ > "VALUES(" & return & \ > "1:, 2:, 3:)" into tSQL > --answer tSQL > revExecuteSQL tDatabaseID, tSQL, "$id", "$technology", "$notes? > > Can anybody point out what I?m missing in the second version? > > Thank you! > > John Patten > SUSD > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Thu Apr 23 12:39:29 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 23 Apr 2015 09:39:29 -0700 Subject: INSERT and SQLlite command" In-Reply-To: References: <25B209B2-7143-43FB-A763-EFC64D63616F@me.com> Message-ID: Also, if id is your primary key, no need to provide a value for it, although that does mean you will have to name the other two fields in the INSERT statement. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Apr 23, 2015 at 9:35 AM, JOHN PATTEN wrote: > Gosh darn it! > > Nevermind? > > I had the colon in the wrong spots 1: and 2: instead of :1 and :2 etc?. > > Thanks anyways! > > > > On Apr 23, 2015, at 9:26 AM, JOHN PATTEN wrote: > > > > Hi All, > > > > I have a very simple SQL Lite database consisting of three fields, an ID > (INTEGER PRIMARY KEY) and two basic fields (technology char(200) and notes > char(200). > > > > I am trying to INSERT records into the database. > > > > This works: > > > > repeat with x=1 to the number of items in tTopics > > put item y of tTopics into $technology > > put item y of tTopics into $notes > > put "INSERT into teacher_notes VALUES (null,'" & $technology & > "','" & $notes & "');" into tSQL > > revExecuteSQL tDatabaseID, tSQL > > > > This doesn?t work: > > > > repeat with x=1 to the number of items in tTopics > > put item y of tTopics into $technology > > put item y of tTopics into $notes > > put "null" into $id > > put "INSERT INTO teacher_notes(" & return & \ > > ?id, technology, notes)" & \ > > "VALUES(" & return & \ > > "1:, 2:, 3:)" into tSQL > > --answer tSQL > > revExecuteSQL tDatabaseID, tSQL, "$id", "$technology", "$notes? > > > > Can anybody point out what I?m missing in the second version? > > > > Thank you! > > > > John Patten > > SUSD > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From th.douez at gmail.com Thu Apr 23 12:44:39 2015 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 23 Apr 2015 18:44:39 +0200 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> Message-ID: 2015-04-23 18:26 GMT+02:00 Mark Waddingham : >> So, script "stackname" must be at the 1st line of the textfile. > > Ah yes - that is indeed the case > Thanks Mark for your explanations. In fact, I started by putting some comments in the first lines then dropped them but leaving one blank line more by accident :) I'm really happy to have discovered this feature; I'm already implementing it in some of my workflows including source versioning... Kind regards, Thierry From m.schonewille at economy-x-talk.com Thu Apr 23 12:46:54 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 23 Apr 2015 18:46:54 +0200 Subject: INSERT and SQLlite command" In-Reply-To: References: <25B209B2-7143-43FB-A763-EFC64D63616F@me.com> Message-ID: <553921FE.3030402@economy-x-talk.com> I missed that too :-) -- 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 4/23/2015 18:35, JOHN PATTEN wrote: > Gosh darn it! > > Nevermind? > > I had the colon in the wrong spots 1: and 2: instead of :1 and :2 etc?. > > Thanks anyways! > > From pete at lcsql.com Thu Apr 23 12:49:07 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 23 Apr 2015 09:49:07 -0700 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> Message-ID: Not sure if this is a problem or not but it appears that any password I set on the stack isn't retained. If I remove the stack from memory and re-open it, the password isn't retained. I guess just something to be aware of rather than a problem. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Apr 23, 2015 at 9:26 AM, Mark Waddingham wrote: > So, script "stackname" must be at the 1st line of the textfile. >> > > Ah yes - that is indeed the case - it is quite picky, for two reasons. > > The first was that the main use-case I had in mind when implementing it > was to replace IDE stacks which were only scripts and thus they would be > edited in the IDE. > > The second is that the *only* part of the file which the engine retains > when it is loaded is the 'name' on the first line and everything on the > second line onwards. If text before the 'script' line were allowed then it > is not clear how you might access that when the stack is loaded into memory > - it would essentially be invisible information in the internal stack > structure that would only appear when the stack is saved again. > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mark at livecode.com Thu Apr 23 13:08:52 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 23 Apr 2015 18:08:52 +0100 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> Message-ID: <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> That is something to be aware of. The purpose of a script only stack is to be text on disk... Password protection requires binary output, so in that case you might as well just use a normal stack. Mark Sent from my iPhone > On 23 Apr 2015, at 17:49, Peter Haworth wrote: > > Not sure if this is a problem or not but it appears that any password I set > on the stack isn't retained. If I remove the stack from memory and re-open > it, the password isn't retained. I guess just something to be aware of > rather than a problem. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > >> On Thu, Apr 23, 2015 at 9:26 AM, Mark Waddingham wrote: >> >> So, script "stackname" must be at the 1st line of the textfile. >> >> Ah yes - that is indeed the case - it is quite picky, for two reasons. >> >> The first was that the main use-case I had in mind when implementing it >> was to replace IDE stacks which were only scripts and thus they would be >> edited in the IDE. >> >> The second is that the *only* part of the file which the engine retains >> when it is loaded is the 'name' on the first line and everything on the >> second line onwards. If text before the 'script' line were allowed then it >> is not clear how you might access that when the stack is loaded into memory >> - it would essentially be invisible information in the internal stack >> structure that would only appear when the stack is saved again. >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Everyone can create apps >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Apr 23 13:43:10 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 10:43:10 -0700 Subject: Android Intents/iOS Extensions? In-Reply-To: <1429777647.1104417.257520357.66DE4C97@webmail.messagingengine.com> References: <1429777647.1104417.257520357.66DE4C97@webmail.messagingengine.com> Message-ID: <55392F2E.7060808@fourthworld.com> Mark Wilcox wrote: > On Thu, Apr 23, 2015, at 03:45 AM, Richard Gaskin wrote: >> I'd like to have an app be able to accept data from other programs, >> like when you click the Share button in an image gallery and a list >> of programs pops up that can accept images - I'd like mine to be >> among them. >> >> I can see from the iOS and Android docs how to register that support >> in the manifest, but the APIs for actually receiving the data appear >> to be lower-level, and I haven't found LiveCode messages for those. >> >> Am I dreaming, or have I just overlooked something buried in a >> Release Note somewhere? > > Not dreaming. Intents have been around forever on Android but I don't > believe LiveCode currently supports receiving them. Extensions are iOS > 8+ only, so it's not so surprising that they're not yet supported. Extensions may be the latest way to do that, but I'm assuming the behavior has been around for a while on iOS, no? (I spend embarrassingly little time with my iPad) Since I wrote that post I found this lesson: It refers to a urlWakeUp message and a mobileGetLaunchUrl function which would seem to handle the receiving end well enough. However, that tutorial only shows how to have two LC apps pass info to each other, and not how to allow an LC app to receive data from any other app. This seems to be the role of the intents in the Android manifest, and while I haven't yet tried it I'm imagining that once I edit the manifest.xml to include my desired intents and add a urlWakeUp handler in my app I should be able to get what I'm looking for. This raises two questions: 1. Before I dive in, does anyone here know why this wouldn't work? 2. If it does work, why doesn't the IDE provide a way for us to include intents in the manifest, rather than manually editing the manifest.xml file for each app we make? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Thu Apr 23 13:55:26 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 23 Apr 2015 12:55:26 -0500 Subject: Android Intents/iOS Extensions? In-Reply-To: <55392F2E.7060808@fourthworld.com> References: <1429777647.1104417.257520357.66DE4C97@webmail.messagingengine.com> <55392F2E.7060808@fourthworld.com> Message-ID: <5539320E.9060004@hyperactivesw.com> On 4/23/2015 12:43 PM, Richard Gaskin wrote: > However, that tutorial only shows how to have two LC apps pass info to > each other, and not how to allow an LC app to receive data from any > other app. > > This seems to be the role of the intents in the Android manifest, and > while I haven't yet tried it I'm imagining that once I edit the > manifest.xml to include my desired intents and add a urlWakeUp handler > in my app I should be able to get what I'm looking for. > > This raises two questions: > > 1. Before I dive in, does anyone here know why this wouldn't work? > > 2. If it does work, why doesn't the IDE provide a way for us to include > intents in the manifest, rather than manually editing the manifest.xml > file for each app we make? Good luck revising the manifest in Android. I am unable to do that, though Monte says it should work and he submitted a fix for it quite a while ago. Forum thread is here: We do need a way to provide our own manifest, or edit the existing one: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu Apr 23 13:59:30 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 10:59:30 -0700 Subject: Android Intents/iOS Extensions? In-Reply-To: <5539320E.9060004@hyperactivesw.com> References: <5539320E.9060004@hyperactivesw.com> Message-ID: <55393302.70906@fourthworld.com> Jacque wrote: > Good luck revising the manifest in Android. I am unable to do that, > though Monte says it should work and he submitted a fix for it quite > a while ago. > > Forum thread is here: > > > We do need a way to provide our own manifest, or edit the existing > one: > > Thanks, Jacque. Looks like Monte's already submitted a pull request (thanks Monte!), so hopefully it won't be much longer. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Thu Apr 23 14:03:14 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 23 Apr 2015 13:03:14 -0500 Subject: Android Intents/iOS Extensions? In-Reply-To: <55393302.70906@fourthworld.com> References: <5539320E.9060004@hyperactivesw.com> <55393302.70906@fourthworld.com> Message-ID: <553933E2.3080303@hyperactivesw.com> On 4/23/2015 12:59 PM, Richard Gaskin wrote: > Jacque wrote: > > > Good luck revising the manifest in Android. I am unable to do that, > > though Monte says it should work and he submitted a fix for it quite > > a while ago. > > > > Forum thread is here: > > > > > > We do need a way to provide our own manifest, or edit the existing > > one: > > > > > > Thanks, Jacque. > > Looks like Monte's already submitted a pull request (thanks Monte!), so > hopefully it won't be much longer. > Except that he submitted the request 5 months ago. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu Apr 23 14:11:07 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 11:11:07 -0700 Subject: Android Intents/iOS Extensions? In-Reply-To: <553933E2.3080303@hyperactivesw.com> References: <553933E2.3080303@hyperactivesw.com> Message-ID: <553935BB.2040701@fourthworld.com> Jacque wrote: > On 4/23/2015 12:59 PM, Richard Gaskin wrote: >> Looks like Monte's already submitted a pull request (thanks Monte!), >> so hopefully it won't be much longer. > > Except that he submitted the request 5 months ago. I'm an optimist. :) Unless there's some technical reason this is murky, it seems like a high-ROI thing to do: they fold in one pull request and a bunch of us get to add nifty new things to our apps to make them much more useful - and make LC look that much better as well. Kinda hard to think of a reason not to do it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dan at clearvisiontech.com Thu Apr 23 14:22:38 2015 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 23 Apr 2015 11:22:38 -0700 Subject: POST not blocking In-Reply-To: References: Message-ID: <6C02F9CF-CB28-47CA-BF4F-902C4CC165C6@clearvisiontech.com> Greetings! If POST is a blocking command (as stated in the docs), how can you get a "Previous Request not completed" error? Is it possible to make a POST command truly blocking to avoid this problem? -Dan From mikedoub at gmail.com Thu Apr 23 14:41:30 2015 From: mikedoub at gmail.com (Michael Doub) Date: Thu, 23 Apr 2015 14:41:30 -0400 Subject: Plain text library stacks In-Reply-To: <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> Message-ID: <55393CDA.8050502@gmail.com> Mark, It appears that when you programmatically create a script only stack and save it. The engine auto inserts the first line: script "stackname". I see that when I look at the file with a text editor. When I edit the script of the stack in livecode the script "stackname" line is missing. Will there be any problems if there are two script "stackname" statements in the text file. This could occur if the user adds it when in the livecode editor. What is the recommended method for determining if a stack is a "script only" stack? Thanks Mike On 4/23/15 1:08 PM, Mark Waddingham wrote: > That is something to be aware of. > > The purpose of a script only stack is to be text on disk... Password protection requires binary output, so in that case you might as well just use a normal stack. > > Mark > > Sent from my iPhone > >> On 23 Apr 2015, at 17:49, Peter Haworth wrote: >> >> Not sure if this is a problem or not but it appears that any password I set >> on the stack isn't retained. If I remove the stack from memory and re-open >> it, the password isn't retained. I guess just something to be aware of >> rather than a problem. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >>> On Thu, Apr 23, 2015 at 9:26 AM, Mark Waddingham wrote: >>> >>> So, script "stackname" must be at the 1st line of the textfile. >>> >>> Ah yes - that is indeed the case - it is quite picky, for two reasons. >>> >>> The first was that the main use-case I had in mind when implementing it >>> was to replace IDE stacks which were only scripts and thus they would be >>> edited in the IDE. >>> >>> The second is that the *only* part of the file which the engine retains >>> when it is loaded is the 'name' on the first line and everything on the >>> second line onwards. If text before the 'script' line were allowed then it >>> is not clear how you might access that when the stack is loaded into memory >>> - it would essentially be invisible information in the internal stack >>> structure that would only appear when the stack is saved again. >>> >>> Mark. >>> >>> -- >>> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >>> LiveCode: Everyone can create apps >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From devin_asay at byu.edu Thu Apr 23 14:56:10 2015 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 23 Apr 2015 18:56:10 +0000 Subject: Plain text library stacks In-Reply-To: <55393CDA.8050502@gmail.com> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> <55393CDA.8050502@gmail.com> Message-ID: <5404FB7D-86FE-4BD8-A58A-BCCD004EAFA0@byu.edu> I?m curious?can these plain text stacks be used by LC Server just like a regular stack as a library? Devin Devin Asay Office of Digital Humanities Brigham Young University From th.douez at gmail.com Thu Apr 23 14:58:48 2015 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 23 Apr 2015 20:58:48 +0200 Subject: Plain text library stacks In-Reply-To: <5404FB7D-86FE-4BD8-A58A-BCCD004EAFA0@byu.edu> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> <55393CDA.8050502@gmail.com> <5404FB7D-86FE-4BD8-A58A-BCCD004EAFA0@byu.edu> Message-ID: Absolutely, that's what Peter was showing in his sample code. Regards, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-04-23 20:56 GMT+02:00 Devin Asay : > I?m curious?can these plain text stacks be used by LC Server just like a regular stack as a library? > > Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Apr 23 15:01:43 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 12:01:43 -0700 Subject: Mixed styles in mobile native field? Message-ID: <55394197.8020500@fourthworld.com> I see that we can set the font, size, color, etc for a mobile field, but can we get/set styled text via htmlText or some other means? If not, anyone know if there's a request for that in the RQCC? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Thu Apr 23 15:36:18 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 23 Apr 2015 14:36:18 -0500 Subject: Mixed styles in mobile native field? In-Reply-To: <55394197.8020500@fourthworld.com> References: <55394197.8020500@fourthworld.com> Message-ID: <553949B2.5000804@hyperactivesw.com> On 4/23/2015 2:01 PM, Richard Gaskin wrote: > I see that we can set the font, size, color, etc for a mobile field, but > can we get/set styled text via htmlText or some other means? > > If not, anyone know if there's a request for that in the RQCC? > I don't think so, but if this is just for display, use a regular LC field and lay a native scroller over it. Do your users need to create styled text? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu Apr 23 15:50:24 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 12:50:24 -0700 Subject: Mixed styles in mobile native field? In-Reply-To: <553949B2.5000804@hyperactivesw.com> References: <553949B2.5000804@hyperactivesw.com> Message-ID: <55394D00.5020600@fourthworld.com> Jacque wrote: > On 4/23/2015 2:01 PM, Richard Gaskin wrote: >> I see that we can set the font, size, color, etc for a mobile field, >> but can we get/set styled text via htmlText or some other means? >> >> If not, anyone know if there's a request for that in the RQCC? >> > > I don't think so, but if this is just for display, use a regular LC > field and lay a native scroller over it. Do your users need to create > styled text? Yes. I've seen very few apps that support editable styled text, but sometimes it's useful. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From sc at sahores-conseil.com Thu Apr 23 16:14:43 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 23 Apr 2015 22:14:43 +0200 Subject: mobileControlDo In-Reply-To: <057f7f9385e8c2696ec8660e93c4eb27@livecode.com> References: <03EC8F5B-47BB-4FFC-828E-92E4030BEA43@sahores-conseil.com> <057f7f9385e8c2696ec8660e93c4eb27@livecode.com> Message-ID: Hi Mark, Many thanks for your helpful guidance ! Understood : mobileControlDo returns the last line of the executed javascript ? as this ? , so all works as expected with : on mouseup -- mobileControlCreate "browser", "Browser1" inited in the preOpenStack handler -- MobileControlDo "Browser1", "execute", fld ? javascript" answer the result ? success -- end mouseup the ? javascript ? fld contents : window.name = Number(window.name) +1; window.name; // correct statement OK ! While my previous mistake was to write this, instead : window.name = Number(window.name) +1; return window.name; // erroneous statement KO ! Conclusion : mobileControlDo acts perfectly well to let us store and exchange persistant data between the mobile browser and LC (iOS and Android successfully tested). Warm Regards, Pierre > Le 22 avr. 2015 ? 17:46, Mark Waddingham a ?crit : > > Hi Pierre, > > There is definitely code in the engine to feed the (string) result from the JS script back to 'the result' variable. I've just tried (on iOS): > > mobileControlDo sBrowserId, "execute", "1+1" > answer the result > > For me at least, this results in an answer dialog popping up containing the value '2'. > > If you can't get this to work, then please do file a bug in the quality center with your example script and more details of your environment. > > Warmest Regards, > > Mark. > > --- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > On 2015-04-21 17:42, Pierre Sahores wrote: >> Hi Friends, >> I can?t find any way to get the returned value (nor as it or the >> result) after executing the following line of code : >> "Browser1", "execute", fld "js1" >> where fld ? js1" acts as a simple javascript statements container. >> Do i miss something or is the mobileControlDo command 100% unable to >> let us use its execution result ? >> A simple js ? alert() ? box display (witch works?) don?t feet my needs... >> Thanks for any though? >> Best, >> -- >> Pierre Sahores >> mobile : 06 03 95 77 70 >> www.sahores-conseil.com >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From gregory.lypny at videotron.ca Thu Apr 23 17:18:12 2015 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Thu, 23 Apr 2015 17:18:12 -0400 Subject: Need Help With FTP Message-ID: Hello everyone, I?m working on a big research project that requires that I download many small files (under 2MB) from the US Security and Exchange Commission?s (SEC) public FTP site. I have the links to all of the files I need, and I?m wondering how I would use a LiveCode ?repeat with? loop to download the files while avoiding a session timed-out error. Any tips would be much appreciated. Regards, Gregory From simon at asato-media.com Thu Apr 23 17:34:47 2015 From: simon at asato-media.com (Simon) Date: Thu, 23 Apr 2015 14:34:47 -0700 (PDT) Subject: for you Wall Street fans... In-Reply-To: References: Message-ID: <1429824887442-4691426.post@n4.nabble.com> Did we do this??? http://www.wsj.com/articles/u-s-stock-futures-fall-1429791213 Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/for-you-Wall-Street-fans-tp4691394p4691426.html Sent from the Revolution - User mailing list archive at Nabble.com. From gcanyon at gmail.com Thu Apr 23 18:01:29 2015 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 23 Apr 2015 17:01:29 -0500 Subject: fastes way to search an array? In-Reply-To: References: <553825E2.4060507@fourthworld.com> Message-ID: On Wed, Apr 22, 2015 at 6:22 PM, Peter Haworth wrote: > Out of interest, I added a test which used combine and filter. It took > around 3 times longer than the other two tests. > Yeah, I didn't expect this to be competitive except under specific circumstances -- if the filter command happens to be suited to the (relatively complex) search performed, for example. I didn't see 3x, more like 1.5x to 2x, but still, iterating is generally the way to go. From mark at sorcery-ltd.co.uk Thu Apr 23 18:08:07 2015 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Thu, 23 Apr 2015 23:08:07 +0100 Subject: Android Intents/iOS Extensions? In-Reply-To: <55392F2E.7060808@fourthworld.com> References: <1429777647.1104417.257520357.66DE4C97@webmail.messagingengine.com> <55392F2E.7060808@fourthworld.com> Message-ID: <37C5908D-7BF3-42EB-B241-0B0DBD7D601D@sorcery-ltd.co.uk> > On 23 Apr 2015, at 18:43, Richard Gaskin wrote: > > 1. Before I dive in, does anyone here know why this wouldn't work? Custom URLs and Intents are two different systems. The former requires the app you receive data from to know about your custom URL scheme. The same exists on both iOS and Android. Intents on the other hand, in common with the new iOS extensions, allow your app to register as a potential recipient of certain common actions. In both cases you need something different than a URL handler to do the receiving. I don't think Intent handling would be particularly difficult to add to the engine. Extensions on iOS would be more complex as the different types have their own APIs. Mark From colinholgate at gmail.com Thu Apr 23 18:12:24 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 23 Apr 2015 18:12:24 -0400 Subject: for you Wall Street fans... In-Reply-To: <1429824887442-4691426.post@n4.nabble.com> References: <1429824887442-4691426.post@n4.nabble.com> Message-ID: <33513BD0-CA6A-4A56-8742-123F73C142EC@gmail.com> Perhaps not. That article does mention Apple in particular, and there was Apple news today about people receiving their Apple Watch orders earlier than expected. That may have helped. > On Apr 23, 2015, at 5:34 PM, Simon wrote: > > Did we do this??? > > http://www.wsj.com/articles/u-s-stock-futures-fall-1429791213 > > Simon > From bonnmike at gmail.com Thu Apr 23 18:38:45 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 23 Apr 2015 16:38:45 -0600 Subject: fastes way to search an array? In-Reply-To: References: <553825E2.4060507@fourthworld.com> Message-ID: Did some testing out of curiosity, and WOW this is fast. repeat for each key tKey in tArray if tArray[tKey] begins with tSearchString or \ tArray[tKey] contains tSearchString then put tKey & return after tResults end if end repeat The only question I have is.. why search for the same thing twice? If it "contains" it also "begins with" so its a redundant check. (making it faster) Am I missing something here? On Thu, Apr 23, 2015 at 4:01 PM, Geoff Canyon wrote: > On Wed, Apr 22, 2015 at 6:22 PM, Peter Haworth wrote: > > > Out of interest, I added a test which used combine and filter. It took > > around 3 times longer than the other two tests. > > > > Yeah, I didn't expect this to be competitive except under specific > circumstances -- if the filter command happens to be suited to the > (relatively complex) search performed, for example. I didn't see 3x, more > like 1.5x to 2x, but still, iterating is generally the way to go. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From revdev at pdslabs.net Thu Apr 23 18:43:11 2015 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 23 Apr 2015 15:43:11 -0700 Subject: Need Help With FTP In-Reply-To: References: Message-ID: <5539757F.8050507@pdslabs.net> Hi Gregory, I would probably use the "load" command because it's a non-blocking way to do it - it doesn't prevent interaction while it's working. Maybe something like this (I didn't test this): -- button -- on mouseUp doDownload end mouseUp -- card or stack -- # required: # fld "status" # fld "my links" # fld "folderpath" local sUrlList, sTotal, sCurrent=0 command doDownload put fld "my links" into sUrlList put (the number of lines in sUrlList) into sTotal _download end doDownload command _download -- let user know what's happening add 1 to sCurrent put ("downloading" && sCurrent && "of" && sTotal) into fld "status" load url (line sCurrent of sUrlList) with message "_saveFile" end _download command _saveFile set the itemDel to slash get (line sCurrent of sUrlList) put url it into url ("binfile:" & fld "folderpath" & "/" & last item of it) unload url it if sCurrent < sTotal then send "_download" to me in 1 tick -- get the next file else put empty into fld "status" answer "all files downloaded!" exit to top end if end _saveFile Best - Phil Davis On 4/23/15 2:18 PM, Gregory Lypny wrote: > Hello everyone, > > I?m working on a big research project that requires that I download many small files (under 2MB) from the US Security and Exchange Commission?s (SEC) public FTP site. I have the links to all of the files I need, and I?m wondering how I would use a LiveCode ?repeat with? loop to download the files while avoiding a session timed-out error. > > Any tips would be much appreciated. > > Regards, > > Gregory > _______________________________________________ > use-livecode mailing list > use-livecode at 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 From bogdanoff at me.com Thu Apr 23 18:46:53 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 23 Apr 2015 15:46:53 -0700 Subject: for you Wall Street fans... In-Reply-To: <33513BD0-CA6A-4A56-8742-123F73C142EC@gmail.com> References: <1429824887442-4691426.post@n4.nabble.com> <33513BD0-CA6A-4A56-8742-123F73C142EC@gmail.com> Message-ID: <598BFC9A-1C3D-4940-8CAD-502AB6541558@me.com> Of course it was because of LiveCode banging the opening bell. That reason is as good as, or better than any other reason. The truth may be more ?mundane": > Despite the Nasdaq record, it was business as usual for many traders across Wall Street. Several attributed the midday turnaround to mundane technical reasons following a sudden rally in the stock futures market. HOWEVER, if you regard tech as mundane, LiveCode is tech, and that?s as good a ?mundane technical reason? as any. Peter On Apr 23, 2015, at 3:12 PM, Colin Holgate wrote: > Perhaps not. That article does mention Apple in particular, and there was Apple news today about people receiving their Apple Watch orders earlier than expected. That may have helped. > > >> On Apr 23, 2015, at 5:34 PM, Simon wrote: >> >> Did we do this??? >> >> http://www.wsj.com/articles/u-s-stock-futures-fall-1429791213 >> >> Simon >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jhj at jhj.com Thu Apr 23 18:48:24 2015 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 23 Apr 2015 15:48:24 -0700 Subject: fastes way to search an array? In-Reply-To: References: <553825E2.4060507@fourthworld.com> Message-ID: <757C355C-0D93-4B9A-AF46-BBBFDB44E8DB@jhj.com> Actually it may be a bit faster with the two tests if a lot of them match at the beginning. Testing at the beginning (begins with) is a lot faster than spinning through the entire thing (contains), and if the first clause of the OR is satisfied, it won?t execute the second clause. So, maybe. I probably wouldn?t write it with the two tests unless I was really in a hurry and proved it to be an advantage with typical test data. Jerry > On Apr 23, 2015, at 3:38 PM, Mike Bonner wrote: > > Did some testing out of curiosity, and WOW this is fast. > > > repeat for each key tKey in tArray > if tArray[tKey] begins with tSearchString or \ > tArray[tKey] contains tSearchString then > put tKey & return after tResults > end if > end repeat > > The only question I have is.. why search for the same thing twice? If it > "contains" it also "begins with" so its a redundant check. (making it > faster) Am I missing something here? > > On Thu, Apr 23, 2015 at 4:01 PM, Geoff Canyon wrote: > >> On Wed, Apr 22, 2015 at 6:22 PM, Peter Haworth wrote: >> >>> Out of interest, I added a test which used combine and filter. It took >>> around 3 times longer than the other two tests. >>> >> >> Yeah, I didn't expect this to be competitive except under specific >> circumstances -- if the filter command happens to be suited to the >> (relatively complex) search performed, for example. I didn't see 3x, more >> like 1.5x to 2x, but still, iterating is generally the way to go. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Thu Apr 23 18:54:29 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 23 Apr 2015 16:54:29 -0600 Subject: fastes way to search an array? In-Reply-To: <757C355C-0D93-4B9A-AF46-BBBFDB44E8DB@jhj.com> References: <553825E2.4060507@fourthworld.com> <757C355C-0D93-4B9A-AF46-BBBFDB44E8DB@jhj.com> Message-ID: Ah k, so it would be situational. After reading back in the thread some, I suspect the tests would be 2 different strings, so testing for both would be necessary. I was just not grokking the double. Probably just easier to set up a single string and check for it twice. Either way, it runs through 100k records amazingly fast. (using 6.6.2 right now) Good to have the reminder that -or- checks only progress till the first hit, or failure to hit. On Thu, Apr 23, 2015 at 4:48 PM, Jerry Jensen wrote: > Actually it may be a bit faster with the two tests if a lot of them match > at the beginning. Testing at the beginning (begins with) is a lot faster > than spinning through the entire thing (contains), and if the first clause > of the OR is satisfied, it won?t execute the second clause. So, maybe. > > I probably wouldn?t write it with the two tests unless I was really in a > hurry and proved it to be an advantage with typical test data. > > Jerry > > > On Apr 23, 2015, at 3:38 PM, Mike Bonner wrote: > > > > Did some testing out of curiosity, and WOW this is fast. > > > > > > repeat for each key tKey in tArray > > if tArray[tKey] begins with tSearchString or \ > > tArray[tKey] contains tSearchString then > > put tKey & return after tResults > > end if > > end repeat > > > > The only question I have is.. why search for the same thing twice? If it > > "contains" it also "begins with" so its a redundant check. (making it > > faster) Am I missing something here? > > > > On Thu, Apr 23, 2015 at 4:01 PM, Geoff Canyon wrote: > > > >> On Wed, Apr 22, 2015 at 6:22 PM, Peter Haworth wrote: > >> > >>> Out of interest, I added a test which used combine and filter. It took > >>> around 3 times longer than the other two tests. > >>> > >> > >> Yeah, I didn't expect this to be competitive except under specific > >> circumstances -- if the filter command happens to be suited to the > >> (relatively complex) search performed, for example. I didn't see 3x, > more > >> like 1.5x to 2x, but still, iterating is generally the way to go. > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From monte at sweattechnologies.com Thu Apr 23 19:37:30 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 24 Apr 2015 09:37:30 +1000 Subject: Android Intents/iOS Extensions? In-Reply-To: <553935BB.2040701@fourthworld.com> References: <553933E2.3080303@hyperactivesw.com> <553935BB.2040701@fourthworld.com> Message-ID: Actually I've just reviewed my changes and it looks like I stuffed them up. I'll submit another pull request in a minute and add custom plists for iOS too. On 24 Apr 2015, at 4:11 am, Richard Gaskin wrote: > I'm an optimist. :) > > Unless there's some technical reason this is murky, it seems like a high-ROI thing to do: they fold in one pull request and a bunch of us get to add nifty new things to our apps to make them much more useful - and make LC look that much better as well. > > Kinda hard to think of a reason not to do it. -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From monte at sweattechnologies.com Thu Apr 23 21:07:34 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 24 Apr 2015 11:07:34 +1000 Subject: Android Intents/iOS Extensions? In-Reply-To: References: <553933E2.3080303@hyperactivesw.com> <553935BB.2040701@fourthworld.com> Message-ID: <30D5D935-701E-4ADA-AB77-84F3163B19FE@sweattechnologies.com> On 24 Apr 2015, at 9:37 am, Monte Goulding wrote: > Actually I've just reviewed my changes and it looks like I stuffed them up. I'll submit another pull request in a minute and add custom plists for iOS too. OK, here it is... sorry Jacque for leading you up a garden path on that forum topic we discussed this on. https://github.com/runrev/livecode/pull/2214 The good news is you should be fine to copy the raw files from the above pull request into the LC app bundle. https://raw.githubusercontent.com/montegoulding/livecode/feature/TemplateAppMetadata/ide-support/revsaveasandroidstandalone.livecodescript However, given your specific case where even if you edit the manifest in the runtime folder it fails I think there's more to the problem. I've certainly been able to do that to add permissions that aren't on the SB dialog etc. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From monte at sweattechnologies.com Thu Apr 23 21:26:22 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 24 Apr 2015 11:26:22 +1000 Subject: Android Intents/iOS Extensions? In-Reply-To: <37C5908D-7BF3-42EB-B241-0B0DBD7D601D@sorcery-ltd.co.uk> References: <1429777647.1104417.257520357.66DE4C97@webmail.messagingengine.com> <55392F2E.7060808@fourthworld.com> <37C5908D-7BF3-42EB-B241-0B0DBD7D601D@sorcery-ltd.co.uk> Message-ID: <8F3FC7FF-C46D-4844-BD60-270E0BA2F71A@sweattechnologies.com> On 24 Apr 2015, at 8:08 am, Mark Wilcox wrote: >> On 23 Apr 2015, at 18:43, Richard Gaskin wrote: >> >> 1. Before I dive in, does anyone here know why this wouldn't work? > > Custom URLs and Intents are two different systems. The former requires the app you receive data from to know about your custom URL scheme. The same exists on both iOS and Android. Intents on the other hand, in common with the new iOS extensions, allow your app to register as a potential recipient of certain common actions. > > In both cases you need something different than a URL handler to do the receiving. > > I don't think Intent handling would be particularly difficult to add to the engine. Extensions on iOS would be more complex as the different types have their own APIs. As far as iOS extensions goes my guess is the simplest thing to do would be to implement these natively. As I mentioned when someone was discussing watches you wouldn't want to load the whole engine for these things. I think you could probably implement them natively and then include in a LC app... may need some standalone builder tweaks. As Mark suggests it probably wouldn't be that hard to be able to handle multiple intents on android and be notified of the intent that brought the app to foreground and then be able to set some results and quit so the user goes back to the other app. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From ambassador at fourthworld.com Thu Apr 23 21:38:11 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 18:38:11 -0700 Subject: Android Intents/iOS Extensions? In-Reply-To: <30D5D935-701E-4ADA-AB77-84F3163B19FE@sweattechnologies.com> References: <30D5D935-701E-4ADA-AB77-84F3163B19FE@sweattechnologies.com> Message-ID: <55399E83.1010504@fourthworld.com> Monte Goulding wrote: > The good news is you should be fine to copy the raw files from the > above pull request into the LC app bundle. > > https://raw.githubusercontent.com/montegoulding/livecode/feature/TemplateAppMetadata/ide-support/revsaveasandroidstandalone.livecodescript > > However, given your specific case where even if you edit the manifest > in the runtime folder it fails I think there's more to the problem. > I've certainly been able to do that to add permissions that aren't on > the SB dialog etc. That's good news indeed - thanks for posting that! Does that mean I should be able to add intents to my Android build so my app can be among those that can receive specified file types? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From rdimolad at evergreeninfo.net Thu Apr 23 22:22:20 2015 From: rdimolad at evergreeninfo.net (Ralph DiMola) Date: Thu, 23 Apr 2015 22:22:20 -0400 Subject: mobileControlDo Message-ID: Pierre,? Nice!!! Also being able send a message from the browser to the app would be sweet. I have a html map. When you tap on a county a pick list of options is displayed. The java reloads the page and puts the x/y location in the url parameters. The app gets the page load message and retrieves the x/y from the url and presents the appropriate pick list. The page retreat is a little tricky though. Instead of that 3 ring circus a way to send a message directly to the app from some sort of java deal would be a nice feature. I don't know if this is even possible.? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net
-------- Original message --------
From: Pierre Sahores
Date:04/23/2015 16:14 (GMT-05:00)
To: How to use LiveCode ,LiveCode Developer List
Subject: Re: mobileControlDo
Hi Mark, Many thanks for your helpful guidance ! Understood : mobileControlDo returns the last line of the executed javascript ? as this ? , so all works as expected with : on mouseup -- mobileControlCreate "browser", "Browser1" inited in the preOpenStack handler -- MobileControlDo "Browser1", "execute", fld ? javascript" answer the result ? success -- end mouseup the ? javascript ? fld contents : window.name = Number(window.name) +1; window.name; // correct statement OK ! While my previous mistake was to write this, instead : window.name = Number(window.name) +1; return window.name; // erroneous statement KO ! Conclusion : mobileControlDo acts perfectly well to let us store and exchange persistant data between the mobile browser and LC (iOS and Android successfully tested). Warm Regards, Pierre > Le 22 avr. 2015 ? 17:46, Mark Waddingham a ?crit : > > Hi Pierre, > > There is definitely code in the engine to feed the (string) result from the JS script back to 'the result' variable. I've just tried (on iOS): > > mobileControlDo sBrowserId, "execute", "1+1" > answer the result > > For me at least, this results in an answer dialog popping up containing the value '2'. > > If you can't get this to work, then please do file a bug in the quality center with your example script and more details of your environment. > > Warmest Regards, > > Mark. > > --- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > On 2015-04-21 17:42, Pierre Sahores wrote: >> Hi Friends, >> I can?t find any way to get the returned value (nor as it or the >> result) after executing the following line of code : >> "Browser1", "execute", fld "js1" >> where fld ? js1" acts as a simple javascript statements container. >> Do i miss something or is the mobileControlDo command 100% unable to >> let us use its execution result ? >> A simple js ? alert() ? box display (witch works?) don?t feet my needs... >> Thanks for any though? >> Best, >> -- >> Pierre Sahores >> mobile : 06 03 95 77 70 >> www.sahores-conseil.com >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com _______________________________________________ livecode-dev mailing list livecode-dev at lists.runrev.com http://lists.runrev.com/mailman/listinfo/livecode-dev From monte at sweattechnologies.com Thu Apr 23 22:30:15 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 24 Apr 2015 12:30:15 +1000 Subject: Android Intents/iOS Extensions? In-Reply-To: <55399E83.1010504@fourthworld.com> References: <30D5D935-701E-4ADA-AB77-84F3163B19FE@sweattechnologies.com> <55399E83.1010504@fourthworld.com> Message-ID: <3B121F17-47A0-4E70-8829-B25B35E3F1C2@sweattechnologies.com> On 24 Apr 2015, at 11:38 am, Richard Gaskin wrote: > Does that mean I should be able to add intents to my Android build so my app can be among those that can receive specified file types? Yes and no, it means you could add the intent filters to your manifest but there's still no way for you to get the data of the file uri from the intent and read the file from the content resolver... However it would theoretically be possible to do that stuff in an external including setting the intent result and finishing the activity so it returns to the calling app. The current state of Android externals is a bit hit and miss though. I'm currently trying to work out if it's possible to use google play services in one because there's so much cool stuff in there but it's not looking very easy. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From ambassador at fourthworld.com Thu Apr 23 23:16:30 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 20:16:30 -0700 Subject: Android Intents/iOS Extensions? In-Reply-To: <3B121F17-47A0-4E70-8829-B25B35E3F1C2@sweattechnologies.com> References: <3B121F17-47A0-4E70-8829-B25B35E3F1C2@sweattechnologies.com> Message-ID: <5539B58E.1070101@fourthworld.com> Monte Goulding wrote: > On 24 Apr 2015, at 11:38 am, Richard Gaskin wrote: > >> Does that mean I should be able to add intents to my Android >> build so my app can be among those that can receive specified >> file types? > > Yes and no, it means you could add the intent filters to your > manifest but there's still no way for you to get the data of > the file uri from the intent and read the file from the content > resolver... In my rabid desire for this it seems I've misunderstood what the urlWakeUp message and mobileGetLaunchUrl function are for. My hope was that urlWakeUp would launch my app and allow me to respond with a card designed for handing such requests, and the path to the image (or browser URL or whatever else is being shared) would be obtainable from mobileGetLaunchUrl. If not for this purpose, what are those for? -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From monte at sweattechnologies.com Thu Apr 23 23:22:40 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 24 Apr 2015 13:22:40 +1000 Subject: Android Intents/iOS Extensions? In-Reply-To: <5539B58E.1070101@fourthworld.com> References: <3B121F17-47A0-4E70-8829-B25B35E3F1C2@sweattechnologies.com> <5539B58E.1070101@fourthworld.com> Message-ID: On 24 Apr 2015, at 1:16 pm, Richard Gaskin wrote: > Monte Goulding wrote: > > > On 24 Apr 2015, at 11:38 am, Richard Gaskin wrote: > > > >> Does that mean I should be able to add intents to my Android > >> build so my app can be among those that can receive specified > >> file types? > > > > Yes and no, it means you could add the intent filters to your > > manifest but there's still no way for you to get the data of > > the file uri from the intent and read the file from the content > > resolver... > > In my rabid desire for this it seems I've misunderstood what the urlWakeUp message and mobileGetLaunchUrl function are for. > > My hope was that urlWakeUp would launch my app and allow me to respond with a card designed for handing such requests, and the path to the image (or browser URL or whatever else is being shared) would be obtainable from mobileGetLaunchUrl. > > If not for this purpose, what are those for? These are for handling custom url protocols. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From ambassador at fourthworld.com Thu Apr 23 23:41:21 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 23 Apr 2015 20:41:21 -0700 Subject: Android Intents/iOS Extensions? In-Reply-To: References: Message-ID: <5539BB61.1050502@fourthworld.com> Monte Goulding wrote: > >> On 24 Apr 2015, at 11:38 am, Richard Gaskin wrote: > >> In my rabid desire for this it seems I've misunderstood what >> the urlWakeUp message and mobileGetLaunchUrl function are for. >> >> My hope was that urlWakeUp would launch my app and allow me to >> respond with a card designed for handing such requests, and the >> path to the image (or browser URL or whatever else is being >> shared) would be obtainable from mobileGetLaunchUrl. >> >> If not for this purpose, what are those for? > > These are for handling custom url protocols. Right. I had mistakenly thought that was the mechanism for intents. If not for inter-app communications, what's the point of urkWakeUp? Who uses that, and what for? -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From peterwawood at gmail.com Thu Apr 23 23:52:00 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 24 Apr 2015 11:52:00 +0800 Subject: Console container for put function? Message-ID: By experimenting, it seems that ?putting? text into or after the message box container results in the test being output to the console (perhaps stdout, perhaps stderr). Running this script under LiveCodeServer: put "Hello" into message box put " World" after message box put return Displays this on the terminal: $ ./test.lc Hello World Is there a more correct ?container? than message box to use in with the put function to send text to the terminal in LiveCodeServer? Regards Peter From monte at sweattechnologies.com Thu Apr 23 23:52:54 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 24 Apr 2015 13:52:54 +1000 Subject: Android Intents/iOS Extensions? In-Reply-To: <5539BB61.1050502@fourthworld.com> References: <5539BB61.1050502@fourthworld.com> Message-ID: <651B3CA9-828C-43FC-8598-8EA6A36D6564@sweattechnologies.com> On 24 Apr 2015, at 1:41 pm, Richard Gaskin wrote: > Right. I had mistakenly thought that was the mechanism for intents. > > If not for inter-app communications, what's the point of urkWakeUp? > > Who uses that, and what for? On iOS the Dropbox app uses it for authentication for third party apps. I'm sure there's lots of ways you could use it like launching an app from a link in a browser. From memory iOS falls back to http if the protocol is unable to be handled so you can imagine how you might use that to suggest someone installs your app etc. I may have been wrong about getting the uri. The uri in urlWakeUp on android pronbably is the uri for the file being shared but I think in most cases you would need to use a content resolver to get the actual data of the file unless the app sharing the file put it in a public directory. But that still doesn't account for setting the activity result and finishing the activity so the user returns to the original app. If it's not waiting for a result you could try just calling quit though... -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From bonnmike at gmail.com Thu Apr 23 23:54:48 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 23 Apr 2015 21:54:48 -0600 Subject: Console container for put function? In-Reply-To: References: Message-ID: Just a straight put is the way to go. Don't think you can "put before" because it doesn't have direct control of the console terminal scroll and cursor position. SO to achieve the same thing you could.. put "Hello " put "World" put return On Thu, Apr 23, 2015 at 9:52 PM, Peter W A Wood wrote: > By experimenting, it seems that ?putting? text into or after the message > box container results in the test being output to the console (perhaps > stdout, perhaps stderr). > > Running this script under LiveCodeServer: > put "Hello" into message box > put " World" after message box > put return > > Displays this on the terminal: > $ ./test.lc > Hello World > > Is there a more correct ?container? than message box to use in with the > put function to send text to the terminal in LiveCodeServer? > > Regards > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Fri Apr 24 02:09:34 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Fri, 24 Apr 2015 14:09:34 +0800 Subject: Console container for put function? In-Reply-To: References: Message-ID: Hi Mike Thanks for your response. I should have explained why I was asking such a question. I?m planning on writing some library functions for testing that can be called from either a GUI stack or a server script. When called from a GUI script it will display its results in a Field, when called from a server script it will displays its result in the console. I?m trying to find a better way than: if the environment is ?server? then put tResult else put tResult after Field tReport end Peter > On 24 Apr 2015, at 11:54, Mike Bonner wrote: > > Just a straight put is the way to go. Don't think you can "put before" > because it doesn't have direct control of the console terminal scroll and > cursor position. > SO to achieve the same thing you could.. > put "Hello " > put "World" > put return > > On Thu, Apr 23, 2015 at 9:52 PM, Peter W A Wood > wrote: > >> By experimenting, it seems that ?putting? text into or after the message >> box container results in the test being output to the console (perhaps >> stdout, perhaps stderr). >> >> Running this script under LiveCodeServer: >> put "Hello" into message box >> put " World" after message box >> put return >> >> Displays this on the terminal: >> $ ./test.lc >> Hello World >> >> Is there a more correct ?container? than message box to use in with the >> put function to send text to the terminal in LiveCodeServer? >> >> Regards >> >> Peter >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Fri Apr 24 02:54:20 2015 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 24 Apr 2015 06:54:20 +0000 Subject: Hanging indents? Message-ID: Has anyone managed to create a hanging indent within a LC field? I?ve played around with tabstops and indents (first, left whatever) but don?t seem to be getting anywhere. Any ideas? Terry? From bonnmike at gmail.com Fri Apr 24 02:59:41 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 24 Apr 2015 00:59:41 -0600 Subject: Console container for put function? In-Reply-To: References: Message-ID: Ah k. Honestly, I suspect checking the environment to decide where to output is the best way. Don't think I see an easy way around the way things work. If it wasn't possible to put things into fields in the server environment, I'd say it would be nice if any puts whatsoever defaulted to stdout, but that isn't the case. On Fri, Apr 24, 2015 at 12:09 AM, Peter W A Wood wrote: > Hi Mike > > Thanks for your response. I should have explained why I was asking such a > question. > > I?m planning on writing some library functions for testing that can be > called from either a GUI stack or a server script. When called from a GUI > script it will display its results in a Field, when called from a server > script it will displays its result in the console. > > I?m trying to find a better way than: > > if the environment is ?server? then > put tResult > else > put tResult after Field tReport > end > > Peter > > > > On 24 Apr 2015, at 11:54, Mike Bonner wrote: > > > > Just a straight put is the way to go. Don't think you can "put before" > > because it doesn't have direct control of the console terminal scroll and > > cursor position. > > SO to achieve the same thing you could.. > > put "Hello " > > put "World" > > put return > > > > On Thu, Apr 23, 2015 at 9:52 PM, Peter W A Wood > > wrote: > > > >> By experimenting, it seems that ?putting? text into or after the message > >> box container results in the test being output to the console (perhaps > >> stdout, perhaps stderr). > >> > >> Running this script under LiveCodeServer: > >> put "Hello" into message box > >> put " World" after message box > >> put return > >> > >> Displays this on the terminal: > >> $ ./test.lc > >> Hello World > >> > >> Is there a more correct ?container? than message box to use in with the > >> put function to send text to the terminal in LiveCodeServer? > >> > >> Regards > >> > >> Peter > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mark at livecode.com Fri Apr 24 04:06:13 2015 From: mark at livecode.com (Mark Waddingham) Date: Fri, 24 Apr 2015 10:06:13 +0200 Subject: Plain text library stacks In-Reply-To: <55393CDA.8050502@gmail.com> References: "\"<8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> " " <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> <55393CDA.8050502@gmail.com> Message-ID: On 2015-04-23 20:41, Michael Doub wrote: > Mark, It appears that when you programmatically create a script only > stack and save it. The engine auto inserts the first line: script > "stackname". I see that when I look at the file with a text editor. > When I edit the script of the stack in livecode the script > "stackname" line is missing. Yes - that is correct. The best way to think about script only stacks is that there are an alternative file format which can be used if you only want to keep the stack script. It just so happens that (being text) the file format works quite well for use in things such as git :) > Will there be any problems if there are two script "stackname" > statements in the text file. This could occur if the user adds it > when in the livecode editor. Yes - you shouldn't do that :) Script only stacks should be used and edited just as you would any other stack - the only difference is that you can use them with VCS very easily (of course, you *can* create and edit them with a text editor if that is your want, but that isn't really what they are designed for). > What is the recommended method for determining if a stack is a "script > only" stack? There is no direct way to detect whether a stack is script-only currently beyond seeing if the first word of the on-disk file is "script". Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From toolbook at kestner.de Fri Apr 24 05:08:18 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 24 Apr 2015 11:08:18 +0200 Subject: AW: fastes way to search an array? In-Reply-To: References: <553825E2.4060507@fourthworld.com> Message-ID: <004401d07e6e$34b05ca0$9e1115e0$@kestner.de> Hi Mike, my first description wasn't very exact. Actually these are two different cases, which occur not together. One time I need a search with "begins" and another time with "contains". And I decided to stay with such a standard repeat loop thru the array, without extracting the keys before or using any extra commands like filter. Thanks for caring Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mike Bonner Gesendet: Freitag, 24. April 2015 00:39 An: How to use LiveCode Betreff: Re: fastes way to search an array? Did some testing out of curiosity, and WOW this is fast. repeat for each key tKey in tArray if tArray[tKey] begins with tSearchString or \ tArray[tKey] contains tSearchString then put tKey & return after tResults end if end repeat The only question I have is.. why search for the same thing twice? If it "contains" it also "begins with" so its a redundant check. (making it faster) Am I missing something here? On Thu, Apr 23, 2015 at 4:01 PM, Geoff Canyon wrote: > On Wed, Apr 22, 2015 at 6:22 PM, Peter Haworth wrote: > > > Out of interest, I added a test which used combine and filter. It > > took around 3 times longer than the other two tests. > > > > Yeah, I didn't expect this to be competitive except under specific > circumstances -- if the filter command happens to be suited to the > (relatively complex) search performed, for example. I didn't see 3x, > more like 1.5x to 2x, but still, iterating is generally the way to go. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From gregory.lypny at videotron.ca Fri Apr 24 08:43:05 2015 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Fri, 24 Apr 2015 08:43:05 -0400 Subject: Need Help With FTP In-Reply-To: References: Message-ID: Hi Phil, Thanks for the detailed handler! I?ll give it a whirl. Blocking is not really the problem for me; it?s the session timeouts or dropped connection when downloading many files in a loop. I think the public server does not like repeated calls with the same connection, but I do not know how to make a new connection for, say, every 100 downloads. Gregory > Message: 12 > Date: Thu, 23 Apr 2015 15:43:11 -0700 > From: Phil Davis > To: How to use LiveCode > Subject: Re: Need Help With FTP > Message-ID: <5539757F.8050507 at pdslabs.net> > Content-Type: text/plain; charset=utf-8; format=flowed > > Hi Gregory, > > I would probably use the "load" command because it's a non-blocking way > to do it - it doesn't prevent interaction while it's working. > From toolbook at kestner.de Fri Apr 24 08:55:14 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 24 Apr 2015 14:55:14 +0200 Subject: where does revsecurity.dll comes from? Message-ID: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> Hello, I am building the first time a standalone for a new stack on windows with LC 6.5.2. The build process lasts unusual long (1-2 min) and after build I got a "revsecurity.dll" in my standalone directoy. I have never seen this dll before and don't find any unknown option in my standalone settings, which could cause this dll. Who can give me a hint, where this dll comes from and how I can get rid of it - and hopefully speed up the build process? Thanks Tiemo From klaus at major-k.de Fri Apr 24 09:03:46 2015 From: klaus at major-k.de (Klaus major-k) Date: Fri, 24 Apr 2015 15:03:46 +0200 Subject: where does revsecurity.dll comes from? In-Reply-To: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> Message-ID: <6F079EA7-5C0C-430C-81DD-74776078FC03@major-k.de> Hi Tiemo > Am 24.04.2015 um 14:55 schrieb Tiemo Hollmann TB : > > Hello, > > I am building the first time a standalone for a new stack on windows with LC > 6.5.2. > > The build process lasts unusual long (1-2 min) and after build I got a > "revsecurity.dll" in my standalone directoy. > I have never seen this dll before and don't find any unknown option in my > standalone settings, which could cause this dll. > Who can give me a hint, where this dll comes from and how I can get rid of > it - and hopefully speed up the build process? I also experience this all the time, looks like a little hiccup in the standalone builder. Delete the file (works for me) and be happy :-) > Thanks > > Tiemo Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From toolbook at kestner.de Fri Apr 24 09:14:14 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 24 Apr 2015 15:14:14 +0200 Subject: AW: where does revsecurity.dll comes from? In-Reply-To: <6F079EA7-5C0C-430C-81DD-74776078FC03@major-k.de> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> <6F079EA7-5C0C-430C-81DD-74776078FC03@major-k.de> Message-ID: <006401d07e90$90101d70$b0305850$@kestner.de> Hi Klaus, hmm, it is the first time in years I experience this and because of the long build time, I am not happy :) Sch?nes WE! Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Klaus major-k Gesendet: Freitag, 24. April 2015 15:04 An: How to use LiveCode Betreff: Re: where does revsecurity.dll comes from? Hi Tiemo > Am 24.04.2015 um 14:55 schrieb Tiemo Hollmann TB : > > Hello, > > I am building the first time a standalone for a new stack on windows > with LC 6.5.2. > > The build process lasts unusual long (1-2 min) and after build I got a > "revsecurity.dll" in my standalone directoy. > I have never seen this dll before and don't find any unknown option in > my standalone settings, which could cause this dll. > Who can give me a hint, where this dll comes from and how I can get > rid of it - and hopefully speed up the build process? I also experience this all the time, looks like a little hiccup in the standalone builder. Delete the file (works for me) and be happy :-) > Thanks > > Tiemo Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dave at applicationinsight.com Fri Apr 24 09:03:10 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 24 Apr 2015 06:03:10 -0700 (PDT) Subject: where does revsecurity.dll comes from? In-Reply-To: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> Message-ID: <1429880590386-4691456.post@n4.nabble.com> Hi Tiemo - your app will need this if it it connects to the internet (at least on a windows machine with anti-virus) ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/where-does-revsecurity-dll-comes-from-tp4691453p4691456.html Sent from the Revolution - User mailing list archive at Nabble.com. From pmbrig at gmail.com Fri Apr 24 09:21:11 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 24 Apr 2015 09:21:11 -0400 Subject: Hanging indents? In-Reply-To: References: Message-ID: <0F14C9D6-6489-468B-BF4A-326847272597@gmail.com> I think you have to set the firstIndent of the field to a positive integer and set the left margin of the field to a negative number. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 2:54 AM, Terry Judd wrote: > Has anyone managed to create a hanging indent within a LC field? I?ve played around with tabstops and indents (first, left whatever) but don?t seem to be getting anywhere. Any ideas? > > Terry? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Fri Apr 24 09:24:20 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 24 Apr 2015 09:24:20 -0400 Subject: Hanging indents? In-Reply-To: References: Message-ID: <046C0B5E-5BDE-4549-A75B-6EA7D3E90798@gmail.com> Sorry, you wanted a hanging indent. Try something like this: set the firstindent of fld "text" to -25 set the margins of fld "text" to "28,3,3,3" -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 2:54 AM, Terry Judd wrote: > Has anyone managed to create a hanging indent within a LC field? I?ve played around with tabstops and indents (first, left whatever) but don?t seem to be getting anywhere. Any ideas? > > Terry? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Fri Apr 24 09:42:48 2015 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 24 Apr 2015 16:42:48 +0300 Subject: where does revsecurity.dll comes from? In-Reply-To: <1429880590386-4691456.post@n4.nabble.com> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> <1429880590386-4691456.post@n4.nabble.com> Message-ID: Hi > Hi Tiemo - your app will need this if it it connects to the internet (at > least on a windows machine with anti-virus) > Could you please elaborate a bit more ? Do you mean the app won't able to connect to the internet on a windows machine with anti-virus, or do you mean the security will be lowered when the app connects to the internet and revsecurity.dll is not there ? Thanks jbv From dave at applicationinsight.com Fri Apr 24 09:47:15 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 24 Apr 2015 06:47:15 -0700 (PDT) Subject: where does revsecurity.dll comes from? In-Reply-To: References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> <1429880590386-4691456.post@n4.nabble.com> Message-ID: <1429883235774-4691460.post@n4.nabble.com> Hi jvb I've been using it so long with on particular windows app that I'm not 100% sure what will happen now without it. But I did run a test about a year ago on a Win7 machine with that app (which connects to the internet on start-up) With revsecurity.dll included: On first launch of the app my UAC (User Account Control) dialog box popped up asking if I wanted to allow my app to connect, I clicked ok and then think my anti-virus joined the party asking if it should trust my app - both of these dialog boxes were small, non-alarming and easily dismissed With revsecurity.dll NOT included: On first launch I got a much more alarming screen from UAC, possibly preceded by a big warning from my anti-virus - if I remember correctly I was able to get my app to connect but I had to click through a lot more warnings (and think I probably wouldn't have been able to authorise it if I wasn't on an administrator account) - and I just bet I would get some or all of these warnings repeated each time I launched the app Dave ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/where-does-revsecurity-dll-comes-from-tp4691453p4691460.html Sent from the Revolution - User mailing list archive at Nabble.com. From jbv at souslelogo.com Fri Apr 24 10:12:13 2015 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 24 Apr 2015 17:12:13 +0300 Subject: where does revsecurity.dll comes from? In-Reply-To: <1429883235774-4691460.post@n4.nabble.com> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> <1429880590386-4691456.post@n4.nabble.com> <1429883235774-4691460.post@n4.nabble.com> Message-ID: <957464fbbd925eaf97588d7ce99620ea.squirrel@continental.on-rev.com> Hi Dave Thanks for this detailed answer. I must say I have a complete different experience : I have been testing several apps of mine on various win versions (xp, vista, 7) without revsecurity.dll and never got any warning of any kind... Besides, my clients have been using the same apps on the same win versions + win 8, and with various anti-virus, but never informed me of any warning... And since they're all almost 100% computer illiterate, the would surely have ringed my phone in panic in case of any warning... Does anyone have a logical explanation for that ? Thanks in advance. jbv > Hi jvb > > I've been using it so long with on particular windows app that I'm not > 100% > sure what will happen now without it. But I did run a test about a year > ago > on a Win7 machine with that app (which connects to the internet on > start-up) > > With revsecurity.dll included: > On first launch of the app my UAC (User Account Control) dialog box popped > up asking if I wanted to allow my app to connect, I clicked ok and then > think my anti-virus joined the party asking if it should trust my app - > both > of these dialog boxes were small, non-alarming and easily dismissed > > With revsecurity.dll NOT included: > On first launch I got a much more alarming screen from UAC, possibly > preceded by a big warning from my anti-virus - if I remember correctly I > was > able to get my app to connect but I had to click through a lot more > warnings > (and think I probably wouldn't have been able to authorise it if I wasn't > on > an administrator account) - and I just bet I would get some or all of > these > warnings repeated each time I launched the app > > Dave > > > > ----- > "The difference between genius and stupidity is; genius has its limits." - > Albert Einstein > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/where-does-revsecurity-dll-comes-from-tp4691453p4691460.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rjb at robelko.com Fri Apr 24 10:22:57 2015 From: rjb at robelko.com (Robert Brenstein) Date: Fri, 24 Apr 2015 16:22:57 +0200 Subject: Need Help With FTP In-Reply-To: References: Message-ID: On 24.04.2015 at 8:43 Uhr -0400 Gregory Lypny apparently wrote: >Hi Phil, > >Thanks for the detailed handler! I'll give it a whirl. Blocking is >not really the problem for me; it's the session timeouts or dropped >connection when downloading many files in a loop. I think the public >server does not like repeated calls with the same connection, but I >do not know how to make a new connection for, say, every 100 >downloads. > >Gregory > May be if you make a pause between successive downloads, the host won't mind so much. They probably don't like robotic pulls of large volumes. RObert From ambassador at fourthworld.com Fri Apr 24 10:46:12 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 24 Apr 2015 07:46:12 -0700 Subject: Need Help With FTP In-Reply-To: References: Message-ID: <553A5734.3040909@fourthworld.com> Gregory Lypny wrote: > Blocking is not really the problem for me; it?s the session timeouts > or dropped connection when downloading many files in a loop. I think > the public server does not like repeated calls with the same > connection, but I do not know how to make a new connection for, say, > every 100 downloads. That may be a bug in the server configuration. Some of my WebMerge customers upload literally hundreds of thousands of files to simple shared host servers without issue. I'm not even working that hard, just using this form in a loop that iterates through the file list: put url ("binfile:"&tDestFile) into url tDestUrl If this app is used only by yourself you may consider setting up a shared SSH key with the server and using a shell call in LC to rsync, which would be much faster and perhaps a bit more robust, and certainly more secure. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Fri Apr 24 11:22:32 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 24 Apr 2015 08:22:32 -0700 Subject: Console container for put function? In-Reply-To: References: Message-ID: <553A5FB8.7040900@fourthworld.com> Peter Wood wrote: > I?m planning on writing some library functions for testing that can > be called from either a GUI stack or a server script. When called > from a GUI script it will display its results in a Field, when called > from a server script it will displays its result in the console. > > I?m trying to find a better way than: > > if the environment is ?server? then > put tResult > else > put tResult after Field tReport > end Two options come to mind, each with their own tradeoffs: 1. Custom "put" handler You could use something like "MyPut" instead of "put", so the branching is in just one place. Easy to write, but difficult to accommodate since it would mean changing every place you currently use "put". 2. revMessageBoxRedirect That's a global property which is empty by default, and when empty "put" output goes to stdOut when faceless and to a stack named "Message Box" when in the IDE as you found. But when set to the long ID of any object, that object will then receive "msgChanged" messages for any puts which could be handled however you like, such as displaying the msg string in a field in your own stack. The downside with the latter is that as long as the revMessageBoxRedirect is not empty, you'll be responsible for handling all Message Box actions; that is, you'll lose the IDE's Message Box as a place for output, for any and all scripts that might otherwise "put" to it. But if that's what you're looking for, revMessageBoxRedirect can be handy. I have a Message Box replacement that uses it and it's been a godsend. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.coms From bodine at bodinetraininggames.com Fri Apr 24 11:10:09 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Fri, 24 Apr 2015 08:10:09 -0700 (PDT) Subject: Hanging indents? In-Reply-To: <046C0B5E-5BDE-4549-A75B-6EA7D3E90798@gmail.com> References: <046C0B5E-5BDE-4549-A75B-6EA7D3E90798@gmail.com> Message-ID: <1429888209648-4691465.post@n4.nabble.com> Terry, If you are open to your hanging indent lines having an outline or list format, try setting the ListStyle of the block of lines where you want the hanging indent. Here's a tutorial: http://lessons.runrev.com/m/4071/l/58770-how-do-i-use-hierarchical-list-support -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Hanging-indents-tp4691448p4691465.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Fri Apr 24 12:09:44 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 24 Apr 2015 10:09:44 -0600 Subject: Console container for put function? In-Reply-To: <553A5FB8.7040900@fourthworld.com> References: <553A5FB8.7040900@fourthworld.com> Message-ID: Nifty! Thanks! Wow there are a lot of hidden jewels in lc. On Fri, Apr 24, 2015 at 9:22 AM, Richard Gaskin wrote: > Peter Wood wrote: > > > I?m planning on writing some library functions for testing that can > > be called from either a GUI stack or a server script. When called > > from a GUI script it will display its results in a Field, when called > > from a server script it will displays its result in the console. > > > > I?m trying to find a better way than: > > > > if the environment is ?server? then > > put tResult > > else > > put tResult after Field tReport > > end > > Two options come to mind, each with their own tradeoffs: > > 1. Custom "put" handler > You could use something like "MyPut" instead of "put", so the branching is > in just one place. Easy to write, but difficult to accommodate since it > would mean changing every place you currently use "put". > > 2. revMessageBoxRedirect > That's a global property which is empty by default, and when empty "put" > output goes to stdOut when faceless and to a stack named "Message Box" when > in the IDE as you found. But when set to the long ID of any object, that > object will then receive "msgChanged" messages for any puts which could be > handled however you like, such as displaying the msg string in a field in > your own stack. > > The downside with the latter is that as long as the revMessageBoxRedirect > is not empty, you'll be responsible for handling all Message Box actions; > that is, you'll lose the IDE's Message Box as a place for output, for any > and all scripts that might otherwise "put" to it. > > But if that's what you're looking for, revMessageBoxRedirect can be > handy. I have a Message Box replacement that uses it and it's been a > godsend. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.coms > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikedoub at gmail.com Fri Apr 24 12:41:44 2015 From: mikedoub at gmail.com (Michael Doub) Date: Fri, 24 Apr 2015 12:41:44 -0400 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> <55393CDA.8050502@gmail.com> <5404FB7D-86FE-4BD8-A58A-BCCD004EAFA0@byu.edu> Message-ID: <553A7248.5040803@gmail.com> I just updated the MasterLibrary to allow you to create a Script Only Stack and insert functions and commands with just a few clicks. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 -= Mike On 4/23/15 2:58 PM, Thierry Douez wrote: > Absolutely, > > that's what Peter was showing in his sample code. > > Regards, > > Thierry > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > Maker of sunnYperl - sunnYmidi - sunnYmage > > > 2015-04-23 20:56 GMT+02:00 Devin Asay : >> I?m curious?can these plain text stacks be used by LC Server just like a regular stack as a library? >> >> Devin >> >> >> Devin Asay >> Office of Digital Humanities >> Brigham Young University >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Fri Apr 24 14:06:01 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 24 Apr 2015 14:06:01 -0400 Subject: Plain text library stacks In-Reply-To: <553A7248.5040803@gmail.com> References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> <55393CDA.8050502@gmail.com> <5404FB7D-86FE-4BD8-A58A-BCCD004EAFA0@byu.edu> <553A7248.5040803@gmail.com> Message-ID: Questions about these script-only stacks: 1. can they be made substacks of another stack? 2. can you do "start using stack?" with them? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 12:41 PM, Michael Doub wrote: > I just updated the MasterLibrary to allow you to create a Script Only Stack and insert functions and commands with just a few clicks. > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > -= Mike > > > > On 4/23/15 2:58 PM, Thierry Douez wrote: >> Absolutely, >> >> that's what Peter was showing in his sample code. >> >> Regards, >> >> Thierry >> >> ------------------------------------------------ >> Thierry Douez - http://sunny-tdz.com >> Maker of sunnYperl - sunnYmidi - sunnYmage >> >> >> 2015-04-23 20:56 GMT+02:00 Devin Asay : >>> I?m curious?can these plain text stacks be used by LC Server just like a regular stack as a library? >>> >>> Devin >>> >>> >>> Devin Asay >>> Office of Digital Humanities >>> Brigham Young University >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Fri Apr 24 14:11:28 2015 From: mark at livecode.com (Mark Waddingham) Date: Fri, 24 Apr 2015 19:11:28 +0100 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> <55393CDA.8050502@gmail.com> <5404FB7D-86FE-4BD8-A58A-BCCD004EAFA0@byu.edu> <553A7248.5040803@gmail.com> Message-ID: 1. No - substacks are part of the parent stackfile when on disk so they only make sense as normally saved (binary) stacks. 2. Yes - script only stacks are stacks. The script only part only pertains to the on disk format which is a text file. Sent from my iPhone > On 24 Apr 2015, at 19:06, Peter M. Brigham wrote: > > Questions about these script-only stacks: > 1. can they be made substacks of another stack? > 2. can you do "start using stack?" with them? > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > >> On Apr 24, 2015, at 12:41 PM, Michael Doub wrote: >> >> I just updated the MasterLibrary to allow you to create a Script Only Stack and insert functions and commands with just a few clicks. >> >> https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 >> >> -= Mike >> >> >> >>> On 4/23/15 2:58 PM, Thierry Douez wrote: >>> Absolutely, >>> >>> that's what Peter was showing in his sample code. >>> >>> Regards, >>> >>> Thierry >>> >>> ------------------------------------------------ >>> Thierry Douez - http://sunny-tdz.com >>> Maker of sunnYperl - sunnYmidi - sunnYmage >>> >>> >>> 2015-04-23 20:56 GMT+02:00 Devin Asay : >>>> I?m curious?can these plain text stacks be used by LC Server just like a regular stack as a library? >>>> >>>> Devin >>>> >>>> >>>> Devin Asay >>>> Office of Digital Humanities >>>> Brigham Young University >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pmbrig at gmail.com Fri Apr 24 14:22:47 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 24 Apr 2015 14:22:47 -0400 Subject: Plain text library stacks In-Reply-To: References: <8A826274-CD3D-4334-9D96-46B2AE2995DB@gmail.com> <3DB8A836-497E-478F-B3AC-C4C34E3B4A0D@gmail.com> <78201b884ec1f285bd1a8be04ae05184@livecode.com> <7CF38B66-74A5-45BD-819A-018098D364DA@gmail.com> <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> <55393CDA.8050502@gmail.com> <5404FB7D-86FE-4BD8-A58A-BCCD004EAFA0@byu.edu> <553A7248.5040803@gmail.com> Message-ID: Ah, I see. Thanks. And may I say, your presence on this list, even if only occasional, is much appreciated. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 24, 2015, at 2:11 PM, Mark Waddingham wrote: > 1. No - substacks are part of the parent stackfile when on disk so they only make sense as normally saved (binary) stacks. > > 2. Yes - script only stacks are stacks. The script only part only pertains to the on disk format which is a text file. > > Sent from my iPhone > >> On 24 Apr 2015, at 19:06, Peter M. Brigham wrote: >> >> Questions about these script-only stacks: >> 1. can they be made substacks of another stack? >> 2. can you do "start using stack?" with them? >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig >> >>> On Apr 24, 2015, at 12:41 PM, Michael Doub wrote: >>> >>> I just updated the MasterLibrary to allow you to create a Script Only Stack and insert functions and commands with just a few clicks. >>> >>> https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 >>> >>> -= Mike >>> >>> >>> >>>> On 4/23/15 2:58 PM, Thierry Douez wrote: >>>> Absolutely, >>>> >>>> that's what Peter was showing in his sample code. >>>> >>>> Regards, >>>> >>>> Thierry >>>> >>>> ------------------------------------------------ >>>> Thierry Douez - http://sunny-tdz.com >>>> Maker of sunnYperl - sunnYmidi - sunnYmage >>>> >>>> >>>> 2015-04-23 20:56 GMT+02:00 Devin Asay : >>>>> I?m curious?can these plain text stacks be used by LC Server just like a regular stack as a library? >>>>> >>>>> Devin >>>>> >>>>> >>>>> Devin Asay >>>>> Office of Digital Humanities >>>>> Brigham Young University >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Apr 24 15:42:00 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 24 Apr 2015 14:42:00 -0500 Subject: Android Intents/iOS Extensions? In-Reply-To: <30D5D935-701E-4ADA-AB77-84F3163B19FE@sweattechnologies.com> References: <553933E2.3080303@hyperactivesw.com> <553935BB.2040701@fourthworld.com> <30D5D935-701E-4ADA-AB77-84F3163B19FE@sweattechnologies.com> Message-ID: <553A9C88.20509@hyperactivesw.com> On 4/23/2015 8:07 PM, Monte Goulding wrote: > OK, here it is... sorry Jacque for leading you up a garden path on > that forum topic we discussed this on. Thanks Monte. The garden path was productive, it led me to a fix. :) > However, given your specific case where even if you edit the > manifest in the runtime folder it fails I think there's more to the > problem. I've certainly been able to do that to add permissions that > aren't on the SB dialog etc. I'm still trying to figure out why my manifest isn't working but yours does. Do you think line endings matter? I've got mine set up with Linux endings. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From userev at canelasoftware.com Fri Apr 24 17:37:55 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Fri, 24 Apr 2015 14:37:55 -0700 Subject: where does revsecurity.dll comes from? In-Reply-To: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> Message-ID: <9DBB262C-A0F9-4790-A4EC-A86329AE93F0@canelasoftware.com> On Apr 24, 2015, at 5:55 AM, Tiemo Hollmann TB wrote: > Who can give me a hint, where this dll comes from and how I can get rid of > it - and hopefully speed up the build process? Hi Teimo, The revsecurity.dll allows you to use encryption in your applications. This would include commands like: encrypt, cipherNames, decrypt, and many others. Best regards, Mark Talluto livecloud.io canelasoftware.com From terry.judd at unimelb.edu.au Fri Apr 24 17:39:55 2015 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 24 Apr 2015 21:39:55 +0000 Subject: Hanging indents? In-Reply-To: <046C0B5E-5BDE-4549-A75B-6EA7D3E90798@gmail.com> References: <046C0B5E-5BDE-4549-A75B-6EA7D3E90798@gmail.com> Message-ID: Thanks Peter, that?s it. firstIndent negative and leftMargin positive! Much appreciated, Terry... On 24/04/2015 11:24 pm, "Peter M. Brigham" wrote: >Sorry, you wanted a hanging indent. Try something like this: > >set the firstindent of fld "text" to -25 >set the margins of fld "text" to "28,3,3,3" > >-- Peter > >Peter M. Brigham >pmbrig at gmail.com >http://home.comcast.net/~pmbrig > > >On Apr 24, 2015, at 2:54 AM, Terry Judd wrote: > >> Has anyone managed to create a hanging indent within a LC field? I?ve >>played around with tabstops and indents (first, left whatever) but don?t >>seem to be getting anywhere. Any ideas? >> >> Terry? >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From terry.judd at unimelb.edu.au Fri Apr 24 17:42:45 2015 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Fri, 24 Apr 2015 21:42:45 +0000 Subject: Hanging indents? In-Reply-To: <1429888209648-4691465.post@n4.nabble.com> References: <046C0B5E-5BDE-4549-A75B-6EA7D3E90798@gmail.com> <1429888209648-4691465.post@n4.nabble.com> Message-ID: Thanks Tom, a list style might have worked but Peter?s firstIndent and leftMargin combination has done it nicely for me. Regards, Terry... On 25/04/2015 1:10 am, "tbodine" wrote: >Terry, > >If you are open to your hanging indent lines having an outline or list >format, try setting the ListStyle of the block of lines where you want the >hanging indent. Here's a tutorial: >http://lessons.runrev.com/m/4071/l/58770-how-do-i-use-hierarchical-list-su >pport > >-- Tom Bodine > > > >-- >View this message in context: >http://runtime-revolution.278305.n4.nabble.com/Hanging-indents-tp4691448p4 >691465.html >Sent from the Revolution - User mailing list archive at Nabble.com. > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Fri Apr 24 18:57:58 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Sat, 25 Apr 2015 06:57:58 +0800 Subject: Console container for put function? In-Reply-To: <553A5FB8.7040900@fourthworld.com> References: <553A5FB8.7040900@fourthworld.com> Message-ID: <335E6E3E-E895-41BE-BD67-050208E10D8C@gmail.com> Thanks for the insight and suggestion, Richard. I?ve gone with the ?MyPut? option for the moment. Regards Peter > On 24 Apr 2015, at 23:22, Richard Gaskin wrote: > > Peter Wood wrote: > > > I?m planning on writing some library functions for testing that can > > be called from either a GUI stack or a server script. When called > > from a GUI script it will display its results in a Field, when called > > from a server script it will displays its result in the console. > > > > I?m trying to find a better way than: > > > > if the environment is ?server? then > > put tResult > > else > > put tResult after Field tReport > > end > > Two options come to mind, each with their own tradeoffs: > > 1. Custom "put" handler > You could use something like "MyPut" instead of "put", so the branching is in just one place. Easy to write, but difficult to accommodate since it would mean changing every place you currently use "put". > > 2. revMessageBoxRedirect > That's a global property which is empty by default, and when empty "put" output goes to stdOut when faceless and to a stack named "Message Box" when in the IDE as you found. But when set to the long ID of any object, that object will then receive "msgChanged" messages for any puts which could be handled however you like, such as displaying the msg string in a field in your own stack. > > The downside with the latter is that as long as the revMessageBoxRedirect is not empty, you'll be responsible for handling all Message Box actions; that is, you'll lose the IDE's Message Box as a place for output, for any and all scripts that might otherwise "put" to it. > > But if that's what you're looking for, revMessageBoxRedirect can be handy. I have a Message Box replacement that uses it and it's been a godsend. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.coms > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Fri Apr 24 19:35:13 2015 From: prothero at earthednet.org (William Prothero) Date: Fri, 24 Apr 2015 16:35:13 -0700 Subject: Does Version 7.0.4 work with Xcode 6.3.1? Message-ID: Anybody tried it? Bill William A. Prothero http://es.earthednet.org/ From mwieder at ahsoftware.net Sat Apr 25 00:53:56 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 24 Apr 2015 21:53:56 -0700 Subject: Console container for put function? In-Reply-To: References: Message-ID: <553B1DE4.1060902@ahsoftware.net> On 04/23/2015 11:09 PM, Peter W A Wood wrote: > I?m trying to find a better way than: > > if the environment is ?server? then > put tResult > else > put tResult after Field tReport > end That's exactly how I deal with it, with the exception that I wrap it in a log function. That way there's only one place in the stack that needs to check the environment, and I can also put other conditions in the log file as needed command log pMessage if there_are_things_to_add_to_the_message ... end if if verboseMode ... if the environment is ... put ... else put ... end if end if end log log "I made it to function" && param(0) log "at this point the value of foo is" && foo -- Mark Wieder ahsoftware at gmail.com From peterwawood at gmail.com Sat Apr 25 04:37:56 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Sat, 25 Apr 2015 16:37:56 +0800 Subject: Sending crash reports to LiveCode? References: <3B22C30D-F137-4E26-A3A2-4AF7F040D84A@gmail.com> Message-ID: I was using LiveCode 8.0 with an unsaved stack on OS X when it crashed. I dutifully saved the crash log, completed a bug report and attached the crash log. What I got back from LiveCode was a "form letter? that they couldn?t reproduce the crash and can I reproduce the crash and send any stack that demonstrates the issue. As a result this hasn?t been accepted as a bug. Why do they need to reproduce the crash before accepting that there is a bug? Isn't the Apple crash report which shows that LiveCode crashed enough evidence of a bug? Peter From dave at applicationinsight.com Sat Apr 25 04:30:24 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Sat, 25 Apr 2015 01:30:24 -0700 (PDT) Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: References: Message-ID: <1429950624805-4691479.post@n4.nabble.com> Nope don't think it does http://forums.livecode.com/viewtopic.php?f=49&t=23986&hilit=xcode+6.3 I did read something last week about a LC 7.0.5 that was due to be released in a few days subject to it getting through some final testing - it never materialised so I guess it failed those tests (but I'm also guessing it won't be too long before they wrestle it over the line...) ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-Version-7-0-4-work-with-Xcode-6-3-1-tp4691476p4691479.html Sent from the Revolution - User mailing list archive at Nabble.com. From dave at applicationinsight.com Sat Apr 25 04:33:06 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Sat, 25 Apr 2015 01:33:06 -0700 (PDT) Subject: where does revsecurity.dll comes from? In-Reply-To: <9DBB262C-A0F9-4790-A4EC-A86329AE93F0@canelasoftware.com> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> <9DBB262C-A0F9-4790-A4EC-A86329AE93F0@canelasoftware.com> Message-ID: <1429950786889-4691480.post@n4.nabble.com> Thanks Mark - I'd forgotten I also use encryption in that app so must have been confused over what the 'security' part of the name referred to... ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/where-does-revsecurity-dll-comes-from-tp4691453p4691480.html Sent from the Revolution - User mailing list archive at Nabble.com. From peterwawood at gmail.com Sat Apr 25 05:21:48 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Sat, 25 Apr 2015 17:21:48 +0800 Subject: Console container for put function? In-Reply-To: <553B1DE4.1060902@ahsoftware.net> References: <553B1DE4.1060902@ahsoftware.net> Message-ID: <4D78C234-687F-4095-8755-A383D19F0393@gmail.com> Mark > On 25 Apr 2015, at 12:53, Mark Wieder wrote: > > On 04/23/2015 11:09 PM, Peter W A Wood wrote: > >> I?m trying to find a better way than: >> >> if the environment is ?server? then >> put tResult >> else >> put tResult after Field tReport >> end > > That's exactly how I deal with it, with the exception that I wrap it in a log function. That way there's only one place in the stack that needs to check the environment, and I can also put other conditions in the log file as needed > > command log pMessage > if there_are_things_to_add_to_the_message ... > end if > if verboseMode ... > if the environment is ... > put ... > else > put ... > end if > end if > end log > > log "I made it to function" && param(0) > log "at this point the value of foo is" && foo > > -- > Mark Wieder > ahsoftware at gmail.com Thanks for that suggestion, I?ve does something like that. I?ve now worked out a way of doing it without having to test the environment each time that I want to call put by using dispatch. There is an additional function call in place of checking the environment though. local tReporter command stackReporter pResult put pResult & return after Field tReport end stackReporter command scriptReporter pResult put pResult & return end scriptReporter command reportResult pResult dispatch tReporter with pResult end reportResult if the environment is "server" then put "scriptReporter" into tReporter else put "stackReporter" into tReporter ### code to set tReport # # # end if reportResult "My Result? Regards Peter From mark at livecode.com Sat Apr 25 07:49:40 2015 From: mark at livecode.com (Mark Waddingham) Date: Sat, 25 Apr 2015 12:49:40 +0100 Subject: Sending crash reports to LiveCode? In-Reply-To: References: <3B22C30D-F137-4E26-A3A2-4AF7F040D84A@gmail.com> Message-ID: Yes - a crash report indicates the presence of a bug, however as such a report only contains a stack trace they generally do not contain enough information to diagnose the cause and thus fix the issue. Context is always important when fixing bugs - particularly crashes as they can occur in a place in the code completely divorced from the actual cause. Reproducibility is the key thing that helps us fix bugs quickly - without reproduceable test cases you are basically left with searching for a needle in a haystack which is rarely a useful use of time. Our general view is that our time is better spent fixing reproduceable faults especially as in many cases non-reproduceable faults are a side-effect of one or more reproduceable ones (this is particular true of intermittant crashes). The report won't be closed as not a bug if you or we can't reproduce it, just closed as cannot reproduce. Note that any information to do with the sequence of steps you performed before you get a crash is useful to help us attempt to reproduce issues such as this - sometimes the smallest details can contain the key piece of information. Mark. Sent from my iPhone > On 25 Apr 2015, at 09:37, Peter W A Wood wrote: > > > I was using LiveCode 8.0 with an unsaved stack on OS X when it crashed. I dutifully saved the crash log, completed a bug report and attached the crash log. > > What I got back from LiveCode was a "form letter? that they couldn?t reproduce the crash and can I reproduce the crash and send any stack that demonstrates the issue. As a result this hasn?t been accepted as a bug. > > Why do they need to reproduce the crash before accepting that there is a bug? Isn't the Apple crash report which shows that LiveCode crashed enough evidence of a bug? > > Peter > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sat Apr 25 07:59:10 2015 From: mark at livecode.com (Mark Waddingham) Date: Sat, 25 Apr 2015 12:59:10 +0100 Subject: Sending crash reports to LiveCode? In-Reply-To: References: <3B22C30D-F137-4E26-A3A2-4AF7F040D84A@gmail.com> Message-ID: By the way - please don't be discouraged from submitting crash reports even if you can't reproduce them. The more reports we get with the same stack trace (or a similar one) the more information we have and thus the more likely we are to be able find the cause. (Particularly if the same trace occurs from an apparantly different set of circumstances). Sent from my iPhone > On 25 Apr 2015, at 12:49, Mark Waddingham wrote: > > Yes - a crash report indicates the presence of a bug, however as such a report only contains a stack trace they generally do not contain enough information to diagnose the cause and thus fix the issue. > > Context is always important when fixing bugs - particularly crashes as they can occur in a place in the code completely divorced from the actual cause. > > Reproducibility is the key thing that helps us fix bugs quickly - without reproduceable test cases you are basically left with searching for a needle in a haystack which is rarely a useful use of time. > > Our general view is that our time is better spent fixing reproduceable faults especially as in many cases non-reproduceable faults are a side-effect of one or more reproduceable ones (this is particular true of intermittant crashes). > > The report won't be closed as not a bug if you or we can't reproduce it, just closed as cannot reproduce. Note that any information to do with the sequence of steps you performed before you get a crash is useful to help us attempt to reproduce issues such as this - sometimes the smallest details can contain the key piece of information. > > Mark. > > Sent from my iPhone > >> On 25 Apr 2015, at 09:37, Peter W A Wood wrote: >> >> >> I was using LiveCode 8.0 with an unsaved stack on OS X when it crashed. I dutifully saved the crash log, completed a bug report and attached the crash log. >> >> What I got back from LiveCode was a "form letter? that they couldn?t reproduce the crash and can I reproduce the crash and send any stack that demonstrates the issue. As a result this hasn?t been accepted as a bug. >> >> Why do they need to reproduce the crash before accepting that there is a bug? Isn't the Apple crash report which shows that LiveCode crashed enough evidence of a bug? >> >> Peter >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sat Apr 25 08:04:11 2015 From: mark at livecode.com (Mark Waddingham) Date: Sat, 25 Apr 2015 13:04:11 +0100 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <1429950624805-4691479.post@n4.nabble.com> References: <1429950624805-4691479.post@n4.nabble.com> Message-ID: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> Not yet no - if you've auto updated to Xcode 6.3 then you can still download Xcode 6.2 from the apple devcenter and continue to use that. The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited issues at the final stage of testing and so aren't quite ready for release - we're trying to get them out of the door as quickly as possible. Mark. Sent from my iPhone > On 25 Apr 2015, at 09:30, Dave Kilroy wrote: > > Nope don't think it does > http://forums.livecode.com/viewtopic.php?f=49&t=23986&hilit=xcode+6.3 > > I did read something last week about a LC 7.0.5 that was due to be released > in a few days subject to it getting through some final testing - it never > materialised so I guess it failed those tests (but I'm also guessing it > won't be too long before they wrestle it over the line...) > > > > ----- > "The difference between genius and stupidity is; genius has its limits." - Albert Einstein > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-Version-7-0-4-work-with-Xcode-6-3-1-tp4691476p4691479.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sat Apr 25 08:06:33 2015 From: mark at livecode.com (Mark Waddingham) Date: Sat, 25 Apr 2015 13:06:33 +0100 Subject: where does revsecurity.dll comes from? In-Reply-To: <9DBB262C-A0F9-4790-A4EC-A86329AE93F0@canelasoftware.com> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> <9DBB262C-A0F9-4790-A4EC-A86329AE93F0@canelasoftware.com> Message-ID: It also provides https support (via secure socket features which libURL uses) - which is the bit many applications will use indirectly if they aren't using the encryption facilities directly. Mark. Sent from my iPhone > On 24 Apr 2015, at 22:37, Mark Talluto wrote: > >> On Apr 24, 2015, at 5:55 AM, Tiemo Hollmann TB wrote: >> Who can give me a hint, where this dll comes from and how I can get rid of >> it - and hopefully speed up the build process? > > Hi Teimo, > > The revsecurity.dll allows you to use encryption in your applications. This would include commands like: > encrypt, cipherNames, decrypt, and many others. > > Best regards, > > Mark Talluto > livecloud.io > canelasoftware.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Sat Apr 25 09:37:39 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Sat, 25 Apr 2015 21:37:39 +0800 Subject: Sending crash reports to LiveCode? In-Reply-To: References: <3B22C30D-F137-4E26-A3A2-4AF7F040D84A@gmail.com> Message-ID: Mark Thanks for taking the time to respond. particularly at the weekend. I fully understand that the team doesn?t have time to spend ?looking for needles in haystack?. My frustration comes from the perception that nobody has even looked at the crash report. (A perception created by the response to the bug report). If somebody had taken a couple of minutes at most to scan the crash report and then said ?We took a quick look at the crash report but it didn?t give any real clue as to the cause of the crash.? followed by the understandable request to see if it can be reproduced. My perception would have been much different. Kind regards Peter PS I will continue to submit crash reports. > On 25 Apr 2015, at 19:59, Mark Waddingham wrote: > > By the way - please don't be discouraged from submitting crash reports even if you can't reproduce them. > > The more reports we get with the same stack trace (or a similar one) the more information we have and thus the more likely we are to be able find the cause. (Particularly if the same trace occurs from an apparantly different set of circumstances). > > Sent from my iPhone > >> On 25 Apr 2015, at 12:49, Mark Waddingham wrote: >> >> Yes - a crash report indicates the presence of a bug, however as such a report only contains a stack trace they generally do not contain enough information to diagnose the cause and thus fix the issue. >> >> Context is always important when fixing bugs - particularly crashes as they can occur in a place in the code completely divorced from the actual cause. >> >> Reproducibility is the key thing that helps us fix bugs quickly - without reproduceable test cases you are basically left with searching for a needle in a haystack which is rarely a useful use of time. >> >> Our general view is that our time is better spent fixing reproduceable faults especially as in many cases non-reproduceable faults are a side-effect of one or more reproduceable ones (this is particular true of intermittant crashes). >> >> The report won't be closed as not a bug if you or we can't reproduce it, just closed as cannot reproduce. Note that any information to do with the sequence of steps you performed before you get a crash is useful to help us attempt to reproduce issues such as this - sometimes the smallest details can contain the key piece of information. >> >> Mark. >> >> Sent from my iPhone >> >>> On 25 Apr 2015, at 09:37, Peter W A Wood wrote: >>> >>> >>> I was using LiveCode 8.0 with an unsaved stack on OS X when it crashed. I dutifully saved the crash log, completed a bug report and attached the crash log. >>> >>> What I got back from LiveCode was a "form letter? that they couldn?t reproduce the crash and can I reproduce the crash and send any stack that demonstrates the issue. As a result this hasn?t been accepted as a bug. >>> >>> Why do they need to reproduce the crash before accepting that there is a bug? Isn't the Apple crash report which shows that LiveCode crashed enough evidence of a bug? >>> >>> Peter >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Sat Apr 25 11:29:19 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Sat, 25 Apr 2015 08:29:19 -0700 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> References: <1429950624805-4691479.post@n4.nabble.com> <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> Message-ID: <70943241-E664-4E68-82A3-5E9D259C0C19@earthednet.org> Thanks for the reply. I accidentally started downloading the update, but stopped it before it was done, so hopefully the prev version is still ok. Bill William Prothero http://es.earthednet.org > On Apr 25, 2015, at 5:04 AM, Mark Waddingham wrote: > > Not yet no - if you've auto updated to Xcode 6.3 then you can still download Xcode 6.2 from the apple devcenter and continue to use that. > > The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited issues at the final stage of testing and so aren't quite ready for release - we're trying to get them out of the door as quickly as possible. > > Mark. > > Sent from my iPhone > >> On 25 Apr 2015, at 09:30, Dave Kilroy wrote: >> >> Nope don't think it does >> http://forums.livecode.com/viewtopic.php?f=49&t=23986&hilit=xcode+6.3 >> >> I did read something last week about a LC 7.0.5 that was due to be released >> in a few days subject to it getting through some final testing - it never >> materialised so I guess it failed those tests (but I'm also guessing it >> won't be too long before they wrestle it over the line...) >> >> >> >> ----- >> "The difference between genius and stupidity is; genius has its limits." - Albert Einstein >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-Version-7-0-4-work-with-Xcode-6-3-1-tp4691476p4691479.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Sat Apr 25 11:41:37 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Sat, 25 Apr 2015 08:41:37 -0700 Subject: Can livecode do this? In-Reply-To: <70943241-E664-4E68-82A3-5E9D259C0C19@earthednet.org> References: <1429950624805-4691479.post@n4.nabble.com> <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <70943241-E664-4E68-82A3-5E9D259C0C19@earthednet.org> Message-ID: <8B024738-01FE-4A03-A8FE-D35EFC00D7EC@earthednet.org> Folks, This seems like a natural for livecode, but I'm wondering. I'm thinking about an app that contains a bunch of different segments of audio, each maybe a minute or more. The user chooses segments and then organizes the sequence of play. I see no problem with this. But, I would also like to be able to play another audio file as background to the sequence of audio segments. So, can livecode play two sound files at the same time? The background would require no particular synchronization, just continuous play. The segments would need to play without pops and other artifacts. This sounds like something Bramaswami would be doing. It also sounds like a very easy app to build, assuming that LC can play two audio files at the same time, with independently adjustable volume. Best, Bill William Prothero http://es.earthednet.org > On Apr 25, 2015, at 8:29 AM, Earthednet-wp wrote: > > Thanks for the reply. I accidentally started downloading the update, but stopped it before it was done, so hopefully the prev version is still ok. > Bill > > William Prothero > http://es.earthednet.org > >> On Apr 25, 2015, at 5:04 AM, Mark Waddingham wrote: >> >> Not yet no - if you've auto updated to Xcode 6.3 then you can still download Xcode 6.2 from the apple devcenter and continue to use that. >> >> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited issues at the final stage of testing and so aren't quite ready for release - we're trying to get them out of the door as quickly as possible. >> >> Mark. >> >> Sent from my iPhone >> >>> On 25 Apr 2015, at 09:30, Dave Kilroy wrote: >>> >>> Nope don't think it does >>> http://forums.livecode.com/viewtopic.php?f=49&t=23986&hilit=xcode+6.3 >>> >>> I did read something last week about a LC 7.0.5 that was due to be released >>> in a few days subject to it getting through some final testing - it never >>> materialised so I guess it failed those tests (but I'm also guessing it >>> won't be too long before they wrestle it over the line...) >>> >>> >>> >>> ----- >>> "The difference between genius and stupidity is; genius has its limits." - Albert Einstein >>> -- >>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-Version-7-0-4-work-with-Xcode-6-3-1-tp4691476p4691479.html >>> Sent from the Revolution - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sat Apr 25 12:09:01 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 25 Apr 2015 09:09:01 -0700 Subject: Sending crash reports to LiveCode? In-Reply-To: References: Message-ID: <553BBC1D.8090409@fourthworld.com> Peter W A Wood wrote: > I fully understand that the team doesn?t have time to spend ?looking > for needles in haystack?. My frustration comes from the perception > that nobody has even looked at the crash report. (A perception > created by the response to the bug report). Part of the problem may be a lack of granularity in the Status options. They've added more over time, but there are some stages of the process that aren't reflected there, giving the impression that less is happening with some reports than may actually be the case. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Sat Apr 25 12:20:00 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 25 Apr 2015 09:20:00 -0700 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> Message-ID: <553BBEB0.3060004@fourthworld.com> Mark Waddingham wrote: > Not yet no - if you've auto updated to Xcode 6.3 then you can still > download Xcode 6.2 from the apple devcenter and continue to use that. > > The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > issues at the final stage of testing and so aren't quite ready for > release - we're trying to get them out of the door as quickly as > possible. It seems that every time Apple updates Xcode it breaks LC, requiring the team to set aside other work and rush another build out for that one OS. Many of the 7.0.x/6.7.x builds seem to fall into that category, and those of us waiting for resolution on issues for other platforms find this as frustrating as I'm sure the team does. Working with Android is smooth as silk by comparison, rarely requiring any updates at all. What is it that makes the relationship between LC and Xcode so brittle that it requires revision with every Xcode update? Is there anything that can be done to anticipate and work around what appears to be a disregard for backward compatibility in Xcode? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From harrison at all-auctions.com Sat Apr 25 12:21:52 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 25 Apr 2015 12:21:52 -0400 Subject: Can livecode do this? In-Reply-To: <8B024738-01FE-4A03-A8FE-D35EFC00D7EC@earthednet.org> References: <1429950624805-4691479.post@n4.nabble.com> <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <70943241-E664-4E68-82A3-5E9D259C0C19@earthednet.org> <8B024738-01FE-4A03-A8FE-D35EFC00D7EC@earthednet.org> Message-ID: Hi William, The short answer is, yes LiveCode can do this. I created a test for game in which I wanted to have several sound files play at almost the same time. I used the Movie Player object. You?ll want to use at least 2 players for your project. One for the background and one for your segments. You?ll want to have the sounds imbedded in your stack so you don?t have any load time problems. If you search the archives I?m sure you will come across the discussions. Good luck, Rick > On Apr 25, 2015, at 11:41 AM, Earthednet-wp wrote: > > Folks, > This seems like a natural for livecode, but I'm wondering. > I'm thinking about an app that contains a bunch of different segments of audio, each maybe a minute or more. The user chooses segments and then organizes the sequence of play. I see no problem with this. But, I would also like to be able to play another audio file as background to the sequence of audio segments. > > So, can livecode play two sound files at the same time? The background would require no particular synchronization, just continuous play. The segments would need to play without pops and other artifacts. > > This sounds like something Bramaswami would be doing. It also sounds like a very easy app to build, assuming that LC can play two audio files at the same time, with independently adjustable volume. > > Best, > Bill > > William Prothero > http://es.earthednet.org > From richmondmathewson at gmail.com Sat Apr 25 12:27:12 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 25 Apr 2015 19:27:12 +0300 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <553BBEB0.3060004@fourthworld.com> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> Message-ID: <553BC060.3060801@gmail.com> On 25/04/15 19:20, Richard Gaskin wrote: > Mark Waddingham wrote: > > > Not yet no - if you've auto updated to Xcode 6.3 then you can still > > download Xcode 6.2 from the apple devcenter and continue to use that. > > > > The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > > issues at the final stage of testing and so aren't quite ready for > > release - we're trying to get them out of the door as quickly as > > possible. > > It seems that every time Apple updates Xcode it breaks LC, requiring > the team to set aside other work and rush another build out for that > one OS. Many of the 7.0.x/6.7.x builds seem to fall into that > category, and those of us waiting for resolution on issues for other > platforms find this as frustrating as I'm sure the team does. > > Working with Android is smooth as silk by comparison, rarely requiring > any updates at all. > > What is it that makes the relationship between LC and Xcode so brittle > that it requires revision with every Xcode update? > > Is there anything that can be done to anticipate and work around what > appears to be a disregard for backward compatibility in Xcode? > It seems that anyone who tries "to party with Apple" ends up with an almighty hangover sooner rather than later. While Apple's "Toys R Us" we-think-we're-cutesy-using-deliberately-incorrect-grammar maybe "Think Different", the truth is not "Think" but "Be" to a bloody-minded extreme for the plain and simple reason that is guarantees they can keep 99% of the profits in their pockets. Microsoft Windows is flaky round the edges; hence viruses. Apple is bound round with steel; hence next to no viruses, and extremely difficult to "talk to" from anywhere else. Of course . . . one could develop LiveCode standalones for iOS to be loaded through Cydia on Jail-broken iPhones and iPads, and one wouldn't have to "share one's spit" with Apple . . . but I guess that that is just too wild for most would-be iOS developers: don't know why. Richmond. From colinholgate at gmail.com Sat Apr 25 12:42:02 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Sat, 25 Apr 2015 12:42:02 -0400 Subject: Can livecode do this? In-Reply-To: References: <1429950624805-4691479.post@n4.nabble.com> <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <70943241-E664-4E68-82A3-5E9D259C0C19@earthednet.org> <8B024738-01FE-4A03-A8FE-D35EFC00D7EC@earthednet.org> Message-ID: <9ECB84C1-7044-4A70-A379-50C261407C18@gmail.com> The playing multiple sounds isn?t the hard part. Playing sound segments seamlessly is. I have done that sort of thing in other tools, like in this app for example: https://itunes.apple.com/us/app/lets-get-ready!/id903134141?mt=8 One part of that app lets you record multiple sounds, and at the end you hear a seamless sequence which is a mixture of preset backing tracks and your recordings. I could achieve that because in Flash you can create bytearrays made from the composition, and then play that as a single sound. Maybe you could combine the elements and write out a WAV file to play? From ambassador at fourthworld.com Sat Apr 25 13:12:27 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 25 Apr 2015 10:12:27 -0700 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <553BC060.3060801@gmail.com> References: <553BC060.3060801@gmail.com> Message-ID: <553BCAFB.7050206@fourthworld.com> Richmond wrote: > Microsoft Windows is flaky round the edges; hence viruses. Apple is > bound round with steel; hence next to no viruses, and extremely > difficult to "talk to" from anywhere else. In all fairness to both sides there, the deep kernel revisions in recent Windows versions have greatly improved security there. The UI is another story, but I find Nadella interesting and so for now it's hard to tell where it'll go but seems likely to be radically improved over the next year or two. And as for Apple, there's a reason Ahrendts is apparently being groomed as Schiller's replacement: Schiller seems to have run out of positive things to say about Apple's platforms in recent years, focusing instead on perceived security risks with competing OSes. But as this brief sampling of news findable in this morning's Google News, no OS is ever without risk and it can be dangerously counterproductive to mislead one's users into believing they don't need to be mindful of security: http://money.cnn.com/2015/04/22/technology/mac-security-flaw/ http://bgr.com/2015/04/22/os-x-yosemite-rootpipe-security-vulnerability/ http://www.zdnet.com/article/apple-os-x-security-features-easily-bypassed-says-researcher/ http://www.theregister.co.uk/2015/04/22/apple_no_ios_zone_bug/ It may be safe to say iOS has fewer *potential* exposures than Android, but that number is far from zero and despite the number of *attempts* that keep getting headlines the actual number of affected Android devices is very small and almost exclusively limited to users who alter the default protections provided by the system to download apps from strange unknown sources - the same sorts of things that tend to affect iOS users, often requiring jailbreaking. With its seven layers of security that extend back to 2.3, Android as ships is not much more dangerous than iOS, and far more secure than any Mac, but if you're trying to pay the bills at a news site you're less likely to garner ad impressions with "Billions of People Used Their Phones Without Incident Today" than "OMG the Sky is Falling!", so the press tends to focus on attempts alone and generally completely overlooks the small number of devices actually affected. We do, after all, sometimes see disproportionate press for iOS security exposures as well, and only when you read down into the details of the article do you find that, like most Android exploits, you need to alter something in the OS to become vulnerable. With a 75/25% market share split between Android and iOS it's accurate to say there are fewer compromised iOS devices, but not zero. Just ask any celebrity trying to keep their pics private. :) > Of course . . . one could develop LiveCode standalones for iOS to be > loaded through Cydia on Jail-broken iPhones and iPads, and > one wouldn't have to "share one's spit" with Apple . . . but I guess > that that is just too wild for most would-be iOS developers: don't > know why. Most developers go where the audience is. Both Android and iOS are much safer to use when not jailbroken, so most folks leave 'em alone and enjoy a reasonably safe experience. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Sat Apr 25 13:45:54 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 25 Apr 2015 20:45:54 +0300 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <553BCAFB.7050206@fourthworld.com> References: <553BC060.3060801@gmail.com> <553BCAFB.7050206@fourthworld.com> Message-ID: <553BD2D2.4070602@gmail.com> On 25/04/15 20:12, Richard Gaskin wrote: > Richmond wrote: > > Microsoft Windows is flaky round the edges; hence viruses. Apple is > > bound round with steel; hence next to no viruses, and extremely > > difficult to "talk to" from anywhere else. > > In all fairness to both sides there, the deep kernel revisions in > recent Windows versions have greatly improved security there. The UI > is another story, but I find Nadella interesting and so for now it's > hard to tell where it'll go but seems likely to be radically improved > over the next year or two. > > And as for Apple, there's a reason Ahrendts is apparently being > groomed as Schiller's replacement: Schiller seems to have run out of > positive things to say about Apple's platforms in recent years, > focusing instead on perceived security risks with competing OSes. But > as this brief sampling of news findable in this morning's Google News, > no OS is ever without risk and it can be dangerously counterproductive > to mislead one's users into believing they don't need to be mindful of > security: > > http://money.cnn.com/2015/04/22/technology/mac-security-flaw/ > http://bgr.com/2015/04/22/os-x-yosemite-rootpipe-security-vulnerability/ > http://www.zdnet.com/article/apple-os-x-security-features-easily-bypassed-says-researcher/ > > http://www.theregister.co.uk/2015/04/22/apple_no_ios_zone_bug/ > > It may be safe to say iOS has fewer *potential* exposures than > Android, but that number is far from zero and despite the number of > *attempts* that keep getting headlines the actual number of affected > Android devices is very small and almost exclusively limited to users > who alter the default protections provided by the system to download > apps from strange unknown sources - the same sorts of things that tend > to affect iOS users, often requiring jailbreaking. > > With its seven layers of security that extend back to 2.3, Android as > ships is not much more dangerous than iOS, and far more secure than > any Mac, but if you're trying to pay the bills at a news site you're > less likely to garner ad impressions with "Billions of People Used > Their Phones Without Incident Today" than "OMG the Sky is Falling!", > so the press tends to focus on attempts alone and generally completely > overlooks the small number of devices actually affected. We do, > after all, sometimes see disproportionate press for iOS security > exposures as well, and only when you read down into the details of the > article do you find that, like most Android exploits, you need to > alter something in the OS to become vulnerable. > > With a 75/25% market share split between Android and iOS it's accurate > to say there are fewer compromised iOS devices, but not zero. Just > ask any celebrity trying to keep their pics private. :) > > > > Of course . . . one could develop LiveCode standalones for iOS to be > > loaded through Cydia on Jail-broken iPhones and iPads, and > > one wouldn't have to "share one's spit" with Apple . . . but I guess > > that that is just too wild for most would-be iOS developers: don't > > know why. > > Most developers go where the audience is. Both Android and iOS are > much safer to use when not jailbroken, so most folks leave 'em alone > and enjoy a reasonably safe experience. > I've always found a "safe experience" tends also to be a boring one, so I always try to stretch whatever equipment I can lay my hands on as far as I can, but then I'm not "most folks", and very glad that I'm not! Richmond. From rdimola at evergreeninfo.net Sat Apr 25 13:59:06 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 25 Apr 2015 13:59:06 -0400 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <553BBEB0.3060004@fourthworld.com> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> Message-ID: <005d01d07f81$865ee8a0$931cb9e0$@net> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops that RR must jump though on Apple's behalf is just sad. But as I always say "If your worth a billion dollars then you make the rules...PERIOD". I have 2 iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR procedures. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Richard Gaskin Sent: Saturday, April 25, 2015 12:20 PM To: use-livecode at lists.runrev.com Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? Mark Waddingham wrote: > Not yet no - if you've auto updated to Xcode 6.3 then you can still > download Xcode 6.2 from the apple devcenter and continue to use that. > > The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > issues at the final stage of testing and so aren't quite ready for > release - we're trying to get them out of the door as quickly as > possible. It seems that every time Apple updates Xcode it breaks LC, requiring the team to set aside other work and rush another build out for that one OS. Many of the 7.0.x/6.7.x builds seem to fall into that category, and those of us waiting for resolution on issues for other platforms find this as frustrating as I'm sure the team does. Working with Android is smooth as silk by comparison, rarely requiring any updates at all. What is it that makes the relationship between LC and Xcode so brittle that it requires revision with every Xcode update? Is there anything that can be done to anticipate and work around what appears to be a disregard for backward compatibility in Xcode? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sat Apr 25 14:16:46 2015 From: mark at livecode.com (Mark Waddingham) Date: Sat, 25 Apr 2015 19:16:46 +0100 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <005d01d07f81$865ee8a0$931cb9e0$@net> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> Message-ID: <8943BEA9-1C03-4A19-AD18-C8B5892D80D9@livecode.com> Hi Ralph, I believe it is the two crashes which are holding up 6.7.5-rc-1 rather than Xcode 6.3 integration (that was, as far as I can see, straightforward this time as it was just a minor SDK update) - we identified an issue with the fixes in the final build so had to rebuild again. Hopefully things should all check out for public release early next week. Mark. Sent from my iPhone > On 25 Apr 2015, at 18:59, Ralph DiMola wrote: > > I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops > that RR must jump though on Apple's behalf is just sad. But as I always say > "If your worth a billion dollars then you make the rules...PERIOD". I have 2 > iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I > could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR > procedures. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Richard Gaskin > Sent: Saturday, April 25, 2015 12:20 PM > To: use-livecode at lists.runrev.com > Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? > > Mark Waddingham wrote: > >> Not yet no - if you've auto updated to Xcode 6.3 then you can still > > download Xcode 6.2 from the apple devcenter and continue to use that. >> >> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > > issues at the final stage of testing and so aren't quite ready for > > release - we're trying to get them out of the door as quickly as > > possible. > > It seems that every time Apple updates Xcode it breaks LC, requiring the > team to set aside other work and rush another build out for that one OS. > Many of the 7.0.x/6.7.x builds seem to fall into that category, and those > of us waiting for resolution on issues for other platforms find this as > frustrating as I'm sure the team does. > > Working with Android is smooth as silk by comparison, rarely requiring any > updates at all. > > What is it that makes the relationship between LC and Xcode so brittle that > it requires revision with every Xcode update? > > Is there anything that can be done to anticipate and work around what > appears to be a disregard for backward compatibility in Xcode? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Sat Apr 25 14:28:58 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 25 Apr 2015 14:28:58 -0400 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <8943BEA9-1C03-4A19-AD18-C8B5892D80D9@livecode.com> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> <8943BEA9-1C03-4A19-AD18-C8B5892D80D9@livecode.com> Message-ID: <006301d07f85$b2f60570$18e21050$@net> Mark, Thanks for the clarification. The messages I got from support indicated that it was a Xcode 6.3 issue and LC 7.0.4 issues. Thank You! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mark Waddingham Sent: Saturday, April 25, 2015 2:17 PM To: How to use LiveCode Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? Hi Ralph, I believe it is the two crashes which are holding up 6.7.5-rc-1 rather than Xcode 6.3 integration (that was, as far as I can see, straightforward this time as it was just a minor SDK update) - we identified an issue with the fixes in the final build so had to rebuild again. Hopefully things should all check out for public release early next week. Mark. Sent from my iPhone > On 25 Apr 2015, at 18:59, Ralph DiMola wrote: > > I now sit in the middle of the Xcode 6.3 compatibility fiasco. The > hoops that RR must jump though on Apple's behalf is just sad. But as I > always say "If your worth a billion dollars then you make the > rules...PERIOD". I have 2 iOS hard crashes that are fixed but held up > by iOS 6.3 integration. I wish I could have got a 6.7.3 GM2 or a 6.7.4 > GM2 but that is not current RR procedures. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Richard Gaskin > Sent: Saturday, April 25, 2015 12:20 PM > To: use-livecode at lists.runrev.com > Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? > > Mark Waddingham wrote: > >> Not yet no - if you've auto updated to Xcode 6.3 then you can still >> > > download Xcode 6.2 from the apple devcenter and continue to use that. >> >> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > > issues at the final stage of testing and so aren't quite ready for > > release - we're trying to get them out of the door as quickly as > > possible. > > It seems that every time Apple updates Xcode it breaks LC, requiring > the team to set aside other work and rush another build out for that one OS. > Many of the 7.0.x/6.7.x builds seem to fall into that category, and > those of us waiting for resolution on issues for other platforms find > this as frustrating as I'm sure the team does. > > Working with Android is smooth as silk by comparison, rarely requiring > any updates at all. > > What is it that makes the relationship between LC and Xcode so brittle > that it requires revision with every Xcode update? > > Is there anything that can be done to anticipate and work around what > appears to be a disregard for backward compatibility in Xcode? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sat Apr 25 15:02:37 2015 From: mark at livecode.com (Mark Waddingham) Date: Sat, 25 Apr 2015 21:02:37 +0200 Subject: Does Version 7.0.4 work with Xcode =?UTF-8?Q?=36=2E=33=2E=31?= =?UTF-8?Q?=3F?= In-Reply-To: <553BBEB0.3060004@fourthworld.com> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> Message-ID: On 2015-04-25 18:20, Richard Gaskin wrote: > It seems that every time Apple updates Xcode it breaks LC, requiring > the team to set aside other work and rush another build out for that > one OS. Many of the 7.0.x/6.7.x builds seem to fall into that > category, and those of us waiting for resolution on issues for other > platforms find this as frustrating as I'm sure the team does. It is somewhat frustrating at times - yes (particularly as Apple have upped the pace of Xcode and iOS updates recently). > Working with Android is smooth as silk by comparison, rarely requiring > any updates at all. Android is a slightly different beast than iOS - partly because Google has done very well to make every Android release a superset of the previous one and thus older APIs and methods continue to work fine as the platform evolves; and partly because there isn't an issue with dynamic linking. > What is it that makes the relationship between LC and Xcode so brittle > that it requires revision with every Xcode update? There are three factors here - technical, legal and resource. The technical issue is that iOS apps must present themselves as a single statically compiled executable - you are not allowed to load non-system dynamic libraries at runtime. As LiveCode supports native code externals, these cannot be done as dynamic libraries as they can be on all the other platforms. Instead, we have to 'mostly-link' the engine, and 'mostly-link' each external. The Standalone Builder performs the final link step - and this step requires the full iOS SDK to be installed (hence the dependence on Xcode). Moreover, because all the mostly-linked pieces have been 'mostly-linked' against a specific iOS SDK, the Standalone Builder needs access to the iOS SDK with which they were 'mostly-linked' in order to be able to build the final fully-linked executable. So, if you have 6.7.4 which contains products built using the iOS 8.2 SDK, you cannot use Xcode 6.3 to build a standalone because Xcode 6.3 does not contain the iOS 8.2 SDK which LiveCode needs to perform the build. The legal issue is that (as far as I'm aware) you are not allowed to distribute 'publicly' any derived works of a beta SDK - the terms of the iOS SDK Agreement for Beta releases is more restrictive than that of the non-Beta releases (basically, only paid-up members of the Apple Development Programme for iOS are allowed to access and use it). This causes a timing issue for us, as it is dubious as to whether we are allowed to distribute builds of LiveCode which contain components which are linked against a Beta iOS SDK (there may be a more optimistic interpretation, but I always tend towards the severely conservative when it comes to long, complex, software licensing agreements!). The upshot of this is that it results in a bit of a race for us as soon as Apple 'decide' to make their latest and greatest work public. The third issue is that of resources. Right now doing a build for a release of LiveCode takes a considerable amount of man power - this means we can't be quite as agile with releases as we would like and have to roll iOS SDK updates into the current maintenance cycle. > Is there anything that can be done to anticipate and work around what > appears to be a disregard for backward compatibility in Xcode? In terms of improving the current state of affairs then... On the technical side of things there are options open to us in terms of avoiding a direct dependence on the iOS SDK at the Standalone Builder step (if we had enough engineering resources to pour into such a project, that is). However, any technical solution along these lines opens us up to legal issues (particularly with the Google vs Oracle debacle still apparently 'not quite resolved', and restrictions imposed with regard 'reverse engineering', 'fair-use' and the DMCA). On the legal side of things, perhaps a more 'optimistic' reading of the various SDK license agreements might help. However, as Ralph points out - if you are worth multi-billions of dollars, you get to set the rules - and I think it is wise for us to be conservative in this regard. On the resource side of things then this is where we can and are doing something :) The biggest bottleneck we have right now to getting releases (whether they be dp's, rc's or gm's) is the final build of the LiveCode distribution. This is something we currently have (and have had for a couple of months) people working on. We are currently in the process of fully automating builds of LiveCode, with the ultimate aim of achieving all-platform continuous integration. When we have fully automated builds, it will free time from actually preparing the final builds and will hopefully mean we can revise our current process on iOS SDK updates and which releases to expect them in (for example, it should mean that is possible for us to add a new iOS SDK to the most recent stable versions of each branch we have as a gm-2, rather than having to roll them into the next maintenance release). Anyway, I hope this helps to explain the current situation, and also what we are doing to improve it moving forward. Warmest Regards, Mark. P.S. IANAL applies to any mention of 'interpretation' of the legal documents mentioned above. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Sat Apr 25 15:18:49 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 25 Apr 2015 12:18:49 -0700 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: References: Message-ID: <553BE899.5090203@fourthworld.com> Excellent info, Mark - thanks! -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Mark Waddingham wrote: > On 2015-04-25 18:20, Richard Gaskin wrote: >> It seems that every time Apple updates Xcode it breaks LC, requiring >> the team to set aside other work and rush another build out for that >> one OS. Many of the 7.0.x/6.7.x builds seem to fall into that >> category, and those of us waiting for resolution on issues for other >> platforms find this as frustrating as I'm sure the team does. > > It is somewhat frustrating at times - yes (particularly as Apple have > upped the pace of Xcode and iOS updates recently). > >> Working with Android is smooth as silk by comparison, rarely >> requiring any updates at all. > > Android is a slightly different beast than iOS - partly because > Google has done very well to make every Android release a superset of > the previous one and thus older APIs and methods continue to work > fine as the platform evolves; and partly because there isn't an issue > with dynamic linking. > >> What is it that makes the relationship between LC and Xcode so >> brittle that it requires revision with every Xcode update? > > There are three factors here - technical, legal and resource. > > The technical issue is that iOS apps must present themselves as a > single statically compiled executable - you are not allowed to load > non-system dynamic libraries at runtime. As LiveCode supports native > code externals, these cannot be done as dynamic libraries as they can > be on all the other platforms. > > Instead, we have to 'mostly-link' the engine, and 'mostly-link' each > external. The Standalone Builder performs the final link step - and > this step requires the full iOS SDK to be installed (hence the > dependence on Xcode). Moreover, because all the mostly-linked pieces > have been 'mostly-linked' against a specific iOS SDK, the Standalone > Builder needs access to the iOS SDK with which they were 'mostly- > linked' in order to be able to build the final fully-linked > executable. > > So, if you have 6.7.4 which contains products built using the iOS 8.2 > SDK, you cannot use Xcode 6.3 to build a standalone because Xcode 6.3 > does not contain the iOS 8.2 SDK which LiveCode needs to perform the > build. > > The legal issue is that (as far as I'm aware) you are not allowed to > distribute 'publicly' any derived works of a beta SDK - the terms of > the iOS SDK Agreement for Beta releases is more restrictive than that > of the non-Beta releases (basically, only paid-up members of the > Apple Development Programme for iOS are allowed to access and use > it). This causes a timing issue for us, as it is dubious as to > whether we are allowed to distribute builds of LiveCode which contain > components which are linked against a Beta iOS SDK (there may be a > more optimistic interpretation, but I always tend towards the > severely conservative when it comes to long, complex, software > licensing agreements!). > > The upshot of this is that it results in a bit of a race for us as > soon as Apple 'decide' to make their latest and greatest work public. > > The third issue is that of resources. Right now doing a build for a > release of LiveCode takes a considerable amount of man power - this > means we can't be quite as agile with releases as we would like and > have to roll iOS SDK updates into the current maintenance cycle. > >> Is there anything that can be done to anticipate and work around what >> appears to be a disregard for backward compatibility in Xcode? > > In terms of improving the current state of affairs then... > > On the technical side of things there are options open to us in terms > of avoiding a direct dependence on the iOS SDK at the Standalone > Builder step (if we had enough engineering resources to pour into > such a project, that is). However, any technical solution along these > lines opens us up to legal issues (particularly with the Google vs > Oracle debacle still apparently 'not quite resolved', and > restrictions imposed with regard 'reverse engineering', 'fair-use' > and the DMCA). > > On the legal side of things, perhaps a more 'optimistic' reading of > the various SDK license agreements might help. However, as Ralph > points out - if you are worth multi-billions of dollars, you get to > set the rules - and I think it is wise for us to be conservative in > this regard. > > On the resource side of things then this is where we can and are > doing something :) > > The biggest bottleneck we have right now to getting releases (whether > they be dp's, rc's or gm's) is the final build of the LiveCode > distribution. This is something we currently have (and have had for a > couple of months) people working on. We are currently in the process > of fully automating builds of LiveCode, with the ultimate aim of > achieving all-platform continuous integration. > > When we have fully automated builds, it will free time from actually > preparing the final builds and will hopefully mean we can revise our > current process on iOS SDK updates and which releases to expect them > in (for example, it should mean that is possible for us to add a new > iOS SDK to the most recent stable versions of each branch we have as > a gm-2, rather than having to roll them into the next maintenance > release). > > Anyway, I hope this helps to explain the current situation, and also > what we are doing to improve it moving forward. > > Warmest Regards, > > Mark. > > P.S. IANAL applies to any mention of 'interpretation' of the legal > documents mentioned above. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps From pmbrig at gmail.com Sat Apr 25 18:42:21 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 25 Apr 2015 18:42:21 -0400 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <005d01d07f81$865ee8a0$931cb9e0$@net> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> Message-ID: <83FB4554-329C-49C2-A00B-F72742002BD3@gmail.com> "Never try to argue with people who buy ink by the gallon." Probably need to update the metaphor?. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 25, 2015, at 1:59 PM, Ralph DiMola wrote: > I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops > that RR must jump though on Apple's behalf is just sad. But as I always say > "If your worth a billion dollars then you make the rules...PERIOD". I have 2 > iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I > could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR > procedures. From pmbrig at gmail.com Sat Apr 25 18:54:13 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 25 Apr 2015 18:54:13 -0400 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> Message-ID: <58F84D50-B048-40A6-A36F-F8108D16EFCE@gmail.com> Again, let me say that your presence on this list is greatly appreciated. This kind of look behind the scenes at what you are doing and the problems you are tackling is enormously helpful to all of us. In the absence of this kind of information it is easy to assume that our error reports and complaints are being ignored. Obviously they are not. Thank you for shepherding the growth our favorite RAD environment. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 25, 2015, at 3:02 PM, Mark Waddingham wrote: > On 2015-04-25 18:20, Richard Gaskin wrote: >> It seems that every time Apple updates Xcode it breaks LC, requiring >> the team to set aside other work and rush another build out for that >> one OS. Many of the 7.0.x/6.7.x builds seem to fall into that >> category, and those of us waiting for resolution on issues for other >> platforms find this as frustrating as I'm sure the team does. > > It is somewhat frustrating at times - yes (particularly as Apple have upped the pace of Xcode and iOS updates recently). > >> Working with Android is smooth as silk by comparison, rarely requiring >> any updates at all. > > Android is a slightly different beast than iOS - partly because Google has done very well to make every Android release a superset of the previous one and thus older APIs and methods continue to work fine as the platform evolves; and partly because there isn't an issue with dynamic linking. > >> What is it that makes the relationship between LC and Xcode so brittle >> that it requires revision with every Xcode update? > > There are three factors here - technical, legal and resource. > > The technical issue is that iOS apps must present themselves as a single statically compiled executable - you are not allowed to load non-system dynamic libraries at runtime. As LiveCode supports native code externals, these cannot be done as dynamic libraries as they can be on all the other platforms. > > Instead, we have to 'mostly-link' the engine, and 'mostly-link' each external. The Standalone Builder performs the final link step - and this step requires the full iOS SDK to be installed (hence the dependence on Xcode). Moreover, because all the mostly-linked pieces have been 'mostly-linked' against a specific iOS SDK, the Standalone Builder needs access to the iOS SDK with which they were 'mostly-linked' in order to be able to build the final fully-linked executable. > > So, if you have 6.7.4 which contains products built using the iOS 8.2 SDK, you cannot use Xcode 6.3 to build a standalone because Xcode 6.3 does not contain the iOS 8.2 SDK which LiveCode needs to perform the build. > > The legal issue is that (as far as I'm aware) you are not allowed to distribute 'publicly' any derived works of a beta SDK - the terms of the iOS SDK Agreement for Beta releases is more restrictive than that of the non-Beta releases (basically, only paid-up members of the Apple Development Programme for iOS are allowed to access and use it). This causes a timing issue for us, as it is dubious as to whether we are allowed to distribute builds of LiveCode which contain components which are linked against a Beta iOS SDK (there may be a more optimistic interpretation, but I always tend towards the severely conservative when it comes to long, complex, software licensing agreements!). > > The upshot of this is that it results in a bit of a race for us as soon as Apple 'decide' to make their latest and greatest work public. > > The third issue is that of resources. Right now doing a build for a release of LiveCode takes a considerable amount of man power - this means we can't be quite as agile with releases as we would like and have to roll iOS SDK updates into the current maintenance cycle. > >> Is there anything that can be done to anticipate and work around what >> appears to be a disregard for backward compatibility in Xcode? > > In terms of improving the current state of affairs then... > > On the technical side of things there are options open to us in terms of avoiding a direct dependence on the iOS SDK at the Standalone Builder step (if we had enough engineering resources to pour into such a project, that is). However, any technical solution along these lines opens us up to legal issues (particularly with the Google vs Oracle debacle still apparently 'not quite resolved', and restrictions imposed with regard 'reverse engineering', 'fair-use' and the DMCA). > > On the legal side of things, perhaps a more 'optimistic' reading of the various SDK license agreements might help. However, as Ralph points out - if you are worth multi-billions of dollars, you get to set the rules - and I think it is wise for us to be conservative in this regard. > > On the resource side of things then this is where we can and are doing something :) > > The biggest bottleneck we have right now to getting releases (whether they be dp's, rc's or gm's) is the final build of the LiveCode distribution. This is something we currently have (and have had for a couple of months) people working on. We are currently in the process of fully automating builds of LiveCode, with the ultimate aim of achieving all-platform continuous integration. > > When we have fully automated builds, it will free time from actually preparing the final builds and will hopefully mean we can revise our current process on iOS SDK updates and which releases to expect them in (for example, it should mean that is possible for us to add a new iOS SDK to the most recent stable versions of each branch we have as a gm-2, rather than having to roll them into the next maintenance release). > > Anyway, I hope this helps to explain the current situation, and also what we are doing to improve it moving forward. > > Warmest Regards, > > Mark. > > P.S. IANAL applies to any mention of 'interpretation' of the legal documents mentioned above. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sat Apr 25 18:59:32 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Sun, 26 Apr 2015 00:59:32 +0200 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <005d01d07f81$865ee8a0$931cb9e0$@net> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> Message-ID: <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> I am in the same boat, but have also the problem that i am using a MergExt external which is available only for iOS8.2 SDK at the moment. So if the fix for the hard crashes is implemented into 6.7.5 then i have also to wait until Monte is releasing his externals for the 8.3 SDK. Matthias > Am 25.04.2015 um 19:59 schrieb Ralph DiMola : > > I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops > that RR must jump though on Apple's behalf is just sad. But as I always say > "If your worth a billion dollars then you make the rules...PERIOD". I have 2 > iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I > could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR > procedures. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Richard Gaskin > Sent: Saturday, April 25, 2015 12:20 PM > To: use-livecode at lists.runrev.com > Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? > > Mark Waddingham wrote: > >> Not yet no - if you've auto updated to Xcode 6.3 then you can still > > download Xcode 6.2 from the apple devcenter and continue to use that. >> >> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > > issues at the final stage of testing and so aren't quite ready for > > release - we're trying to get them out of the door as quickly as > > possible. > > It seems that every time Apple updates Xcode it breaks LC, requiring the > team to set aside other work and rush another build out for that one OS. > Many of the 7.0.x/6.7.x builds seem to fall into that category, and those > of us waiting for resolution on issues for other platforms find this as > frustrating as I'm sure the team does. > > Working with Android is smooth as silk by comparison, rarely requiring any > updates at all. > > What is it that makes the relationship between LC and Xcode so brittle that > it requires revision with every Xcode update? > > Is there anything that can be done to anticipate and work around what > appears to be a disregard for backward compatibility in Xcode? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at sweattechnologies.com Sat Apr 25 23:12:24 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Sun, 26 Apr 2015 13:12:24 +1000 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> Message-ID: <88B05B0B-66E8-40B5-8831-1BEB98B4E98A@sweattechnologies.com> Unfortunately I'm one step further down the food chain so I wait for RunRev to release a version with a new Sdk then get my new builds done ASAP. I usually get them out within a day or so. Cheers -- M E R Goulding Software development services mergExt - There's an external for that! > On 26 Apr 2015, at 8:59 am, Matthias Rebbe | M-R-D wrote: > > then i have also to wait until Monte is releasing his externals for the 8.3 SDK. From monte at sweattechnologies.com Sat Apr 25 23:12:24 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Sun, 26 Apr 2015 13:12:24 +1000 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> Message-ID: <88B05B0B-66E8-40B5-8831-1BEB98B4E98A@sweattechnologies.com> Unfortunately I'm one step further down the food chain so I wait for RunRev to release a version with a new Sdk then get my new builds done ASAP. I usually get them out within a day or so. Cheers -- M E R Goulding Software development services mergExt - There's an external for that! > On 26 Apr 2015, at 8:59 am, Matthias Rebbe | M-R-D wrote: > > then i have also to wait until Monte is releasing his externals for the 8.3 SDK. From richmondmathewson at gmail.com Sun Apr 26 03:17:40 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 26 Apr 2015 10:17:40 +0300 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <83FB4554-329C-49C2-A00B-F72742002BD3@gmail.com> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> <83FB4554-329C-49C2-A00B-F72742002BD3@gmail.com> Message-ID: <553C9114.7020500@gmail.com> On 26/04/15 01:42, Peter M. Brigham wrote: > "Never try to argue with people who buy ink by the gallon." I buy ink by the litre, and people are always picking fights with me. Obviously time to abandon metric units . . . LOL. And there is where the rub is: compatibility between different types of measurement. Jumping through hoops for Apple is like converting Celsius to Fahrenheit, or, rather like a problem I encountered when I lived in the United States: why American gallons are really small compared with Imperial gallons. Fooling around with my iPod (that only runs free and OS software), and the prices of the paid software ($2.50, $5, and so on) I really wonder if the effort of jumping through Apple's hoops justifies the return, especially when the iOS market looks pretty saturated right now. Richmond. > > Probably need to update the metaphor?. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > On Apr 25, 2015, at 1:59 PM, Ralph DiMola wrote: > >> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops >> that RR must jump though on Apple's behalf is just sad. But as I always say >> "If your worth a billion dollars then you make the rules...PERIOD". I have 2 >> iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I >> could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR >> procedures. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From t.heaford at icloud.com Sun Apr 26 03:26:17 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sun, 26 Apr 2015 08:26:17 +0100 Subject: Print Card on Mac Message-ID: <3EE47471-FBC4-4FCD-914E-E4829AD397DA@icloud.com> When using Print Card form the IDE on a Mac should I see the menubar at the top of the window? If the answer is no then is there a setting somewhere? Please see this image: https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png Using 6.7.4 Thanks Terry From dave at applicationinsight.com Sun Apr 26 03:13:01 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Sun, 26 Apr 2015 00:13:01 -0700 (PDT) Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: References: <1429950624805-4691479.post@n4.nabble.com> <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> Message-ID: <1430032381352-4691507.post@n4.nabble.com> Thank you for the background info Mark Mark Waddingham-2 wrote > There are three factors here - technical, legal and resource. ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-Version-7-0-4-work-with-Xcode-6-3-1-tp4691476p4691507.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Sun Apr 26 03:43:27 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 26 Apr 2015 09:43:27 +0200 Subject: Print Card on Mac In-Reply-To: <3EE47471-FBC4-4FCD-914E-E4829AD397DA@icloud.com> References: <3EE47471-FBC4-4FCD-914E-E4829AD397DA@icloud.com> Message-ID: It looks like the print card command prints the part that was hidden by setting the vscroll to 20 (or is it 22). Try printing only an area of the card print card from 0,22 to the bottomRight of this cd -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 26 apr. 2015 om 09:26 heeft Terence Heaford het volgende geschreven: > When using Print Card form the IDE on a Mac should I see the menubar at the top of the window? > > If the answer is no then is there a setting somewhere? > > Please see this image: > > https://dl.dropboxusercontent.com/u/98788898/LiveCode/Screen%20Shot.png > > > Using 6.7.4 > > > > Thanks > > Terry > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sun Apr 26 03:47:07 2015 From: mark at livecode.com (Mark Waddingham) Date: Sun, 26 Apr 2015 08:47:07 +0100 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> Message-ID: <761041D4-3832-4706-987E-38FE6501824E@livecode.com> I should perhaps point out that 6.7.5 and 7.0.5 will both still support Xcode 6.2 and building against the iOS 8.2 SDK. Apple dropped support for Mavericks with Xcode 6.3, but have yet to bar apps built against the iOS 8.2 SDK from the appstore, so we have to support both Xcode 6.2 and Xcode 6.3. Mark. Sent from my iPhone > On 25 Apr 2015, at 23:59, Matthias Rebbe | M-R-D wrote: > > I am in the same boat, but have also the problem that i am using a MergExt external which is available only for iOS8.2 SDK at the moment. > So if the fix for the hard crashes is implemented into 6.7.5 then i have also to wait until Monte is releasing his externals for the 8.3 SDK. > > Matthias > > >> Am 25.04.2015 um 19:59 schrieb Ralph DiMola : >> >> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops >> that RR must jump though on Apple's behalf is just sad. But as I always say >> "If your worth a billion dollars then you make the rules...PERIOD". I have 2 >> iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I >> could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR >> procedures. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >> Of Richard Gaskin >> Sent: Saturday, April 25, 2015 12:20 PM >> To: use-livecode at lists.runrev.com >> Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? >> >> Mark Waddingham wrote: >> >>> Not yet no - if you've auto updated to Xcode 6.3 then you can still > >> download Xcode 6.2 from the apple devcenter and continue to use that. >>> >>> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > >> issues at the final stage of testing and so aren't quite ready for > >> release - we're trying to get them out of the door as quickly as > >> possible. >> >> It seems that every time Apple updates Xcode it breaks LC, requiring the >> team to set aside other work and rush another build out for that one OS. >> Many of the 7.0.x/6.7.x builds seem to fall into that category, and those >> of us waiting for resolution on issues for other platforms find this as >> frustrating as I'm sure the team does. >> >> Working with Android is smooth as silk by comparison, rarely requiring any >> updates at all. >> >> What is it that makes the relationship between LC and Xcode so brittle that >> it requires revision with every Xcode update? >> >> Is there anything that can be done to anticipate and work around what >> appears to be a disregard for backward compatibility in Xcode? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From t.heaford at icloud.com Sun Apr 26 03:48:50 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sun, 26 Apr 2015 08:48:50 +0100 Subject: Print Card on Mac In-Reply-To: References: <3EE47471-FBC4-4FCD-914E-E4829AD397DA@icloud.com> Message-ID: > On 26 Apr 2015, at 08:43, Mark Schonewille wrote: > > print card from 0,22 to the bottomRight of this cd Thanks Mark, I am aware of this solution but?. Is what I am seeing correct/expected or is it a bug? Thanks Terry From richmondmathewson at gmail.com Sun Apr 26 04:14:44 2015 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 26 Apr 2015 11:14:44 +0300 Subject: [OT] Endless OS Message-ID: <553C9E74.4010203@gmail.com> I wonder if this is a plastic bath-toy or something that might get a semi-respectable market share: https://endlessm.com/ The computer is pitched at the 'poor' end of the spectrum, yet it costs $169 when I bought a "proper" second hand DELL for $50. Mind you the design tells me that the makers have drunk deeply from the G3 iMac well of inspiration; so it does look a lot "sexier" than my black box. As I am currently doing some messing around with Windows 7 I paid $25 for a perfectly respectable 5 year old PC (and, Ha, Ha, Ha, about 4 times as much for the flaming operating system). It says that it connects to any TV . . . with an HDMI port . . . That's a load of nonsense to start with: how about a coaxial cable? I see that it does have a VGA output, which is good, as old cathode-ray VDUs are going, round these parts at least, for about $5. Frankly anybody who has got $169 + the price of a TV with an HDMI port to spare is NOT poor, and if I lived in the favelas of Rio de Janiero, or the nastier parts of Cairo I would feel that somebody was being a bit like Marie Antoinette and lobbing cake around. I got a kid whose Dad lost his legs in an industrial hoo-ha, and whose Mum is dead, a half-decent Linux system up and running for $30 (and got some rich bloke to pay for it as well). OK, OK, I gave my time and expertise for free, but the smile on that kid's face was worth a million bucks! It runs a Linux kernel, but will we be able to spin off LiveCode standalones for it? The website is fairly comprehensive, including links to its software repositories and so on, so interested parties can wile a way a wet weekend exploring. Richmond. From m.schonewille at economy-x-talk.com Sun Apr 26 04:27:24 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 26 Apr 2015 10:27:24 +0200 Subject: Print Card on Mac In-Reply-To: References: <3EE47471-FBC4-4FCD-914E-E4829AD397DA@icloud.com> Message-ID: <84CDBEDE-2342-4683-872D-18F2BB3D6449@economy-x-talk.com> I wouldn't know, Terry. If you expect the entire card to be printed, not; if you expect visible parts to be printed only, then not. Suppose it were a bug and you want to print the scrolled part of the card. If the bug were fixed, you'd have to find a workaround for that. I think it doesn't matter much. Either way it could be inconvenient at times. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 26 apr. 2015 om 09:48 heeft Terence Heaford het volgende geschreven: > >> On 26 Apr 2015, at 08:43, Mark Schonewille wrote: >> >> print card from 0,22 to the bottomRight of this cd > > > Thanks Mark, I am aware of this solution but?. > > > Is what I am seeing correct/expected or is it a bug? > > > > Thanks > > Terry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sun Apr 26 04:33:21 2015 From: mark at livecode.com (Mark Waddingham) Date: Sun, 26 Apr 2015 09:33:21 +0100 Subject: Print Card on Mac In-Reply-To: References: <3EE47471-FBC4-4FCD-914E-E4829AD397DA@icloud.com> Message-ID: I'd say not a bug. If print this card took into account the vscroll due to menus on a Mac, then the same code would have a different effect on Windows where the menu objects are not scrolled away. Mark Sent from my iPhone > On 26 Apr 2015, at 08:48, Terence Heaford wrote: > > >> On 26 Apr 2015, at 08:43, Mark Schonewille wrote: >> >> print card from 0,22 to the bottomRight of this cd > > > Thanks Mark, I am aware of this solution but?. > > > Is what I am seeing correct/expected or is it a bug? > > > > Thanks > > Terry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sun Apr 26 05:08:14 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Sun, 26 Apr 2015 11:08:14 +0200 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <761041D4-3832-4706-987E-38FE6501824E@livecode.com> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> <761041D4-3832-4706-987E-38FE6501824E@livecode.com> Message-ID: Mark, maybe a dumb question, but.. How is the 8.2 SDK selected when building an iOS standalone? Do i have to have only Xcode 6.2 added to the ?Mobile Support? section in LC prefs without having Xcode 6.3 added? I still have no clue how the ?Build for? in standalone settings does work or what happens if 2 or more XCode versions are added which support the same iOS SDK. Matthias > Am 26.04.2015 um 09:47 schrieb Mark Waddingham : > > I should perhaps point out that 6.7.5 and 7.0.5 will both still support Xcode 6.2 and building against the iOS 8.2 SDK. > > Apple dropped support for Mavericks with Xcode 6.3, but have yet to bar apps built against the iOS 8.2 SDK from the appstore, so we have to support both Xcode 6.2 and Xcode 6.3. > > Mark. > > Sent from my iPhone > >> On 25 Apr 2015, at 23:59, Matthias Rebbe | M-R-D wrote: >> >> I am in the same boat, but have also the problem that i am using a MergExt external which is available only for iOS8.2 SDK at the moment. >> So if the fix for the hard crashes is implemented into 6.7.5 then i have also to wait until Monte is releasing his externals for the 8.3 SDK. >> >> Matthias >> >> >>> Am 25.04.2015 um 19:59 schrieb Ralph DiMola : >>> >>> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops >>> that RR must jump though on Apple's behalf is just sad. But as I always say >>> "If your worth a billion dollars then you make the rules...PERIOD". I have 2 >>> iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I >>> could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR >>> procedures. >>> >>> Ralph DiMola >>> IT Director >>> Evergreen Information Services >>> rdimola at evergreeninfo.net >>> >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >>> Of Richard Gaskin >>> Sent: Saturday, April 25, 2015 12:20 PM >>> To: use-livecode at lists.runrev.com >>> Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? >>> >>> Mark Waddingham wrote: >>> >>>> Not yet no - if you've auto updated to Xcode 6.3 then you can still > >>> download Xcode 6.2 from the apple devcenter and continue to use that. >>>> >>>> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > >>> issues at the final stage of testing and so aren't quite ready for > >>> release - we're trying to get them out of the door as quickly as > >>> possible. >>> >>> It seems that every time Apple updates Xcode it breaks LC, requiring the >>> team to set aside other work and rush another build out for that one OS. >>> Many of the 7.0.x/6.7.x builds seem to fall into that category, and those >>> of us waiting for resolution on issues for other platforms find this as >>> frustrating as I'm sure the team does. >>> >>> Working with Android is smooth as silk by comparison, rarely requiring any >>> updates at all. >>> >>> What is it that makes the relationship between LC and Xcode so brittle that >>> it requires revision with every Xcode update? >>> >>> Is there anything that can be done to anticipate and work around what >>> appears to be a disregard for backward compatibility in Xcode? >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From t.heaford at icloud.com Sun Apr 26 05:17:26 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sun, 26 Apr 2015 10:17:26 +0100 Subject: Command-F in My menu - Mac Message-ID: <7C8F33B2-F819-4A9A-9E46-0CE36F75AF97@icloud.com> I have my own menu in which I have a Find? menu item. I have applied a shortcut command-F to the menu item. When I select the menu item with the mouse the script works but when I command-F the menu flashes but nothing happens. Here is the script. on menuPick pItemName switch pItemName case "Categories..." open stack "Categories" as sheet break case "Find..." open stack "Find" as sheet break end switch end menuPick Why does the menu not display when I command-F. LC 6.7.4 on Yosemite All the best Terry From matthias_livecode_150811 at m-r-d.de Sun Apr 26 05:21:45 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Sun, 26 Apr 2015 11:21:45 +0200 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <88B05B0B-66E8-40B5-8831-1BEB98B4E98A@sweattechnologies.com> References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> <88B05B0B-66E8-40B5-8831-1BEB98B4E98A@sweattechnologies.com> Message-ID: Monte, i know. My comment was not a complaint. For RunRev and externals devs like you It?s like a chase when a new xCode or SDK comes out. Matthias > Am 26.04.2015 um 05:12 schrieb Monte Goulding : > > Unfortunately I'm one step further down the food chain so I wait for RunRev to release a version with a new Sdk then get my new builds done ASAP. I usually get them out within a day or so. > > Cheers > > -- > M E R Goulding > Software development services > > mergExt - There's an external for that! > >> On 26 Apr 2015, at 8:59 am, Matthias Rebbe | M-R-D wrote: >> >> then i have also to wait until Monte is releasing his externals for the 8.3 SDK. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From t.heaford at icloud.com Sun Apr 26 05:36:31 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sun, 26 Apr 2015 10:36:31 +0100 Subject: Command-F in My menu - Mac In-Reply-To: <7C8F33B2-F819-4A9A-9E46-0CE36F75AF97@icloud.com> References: <7C8F33B2-F819-4A9A-9E46-0CE36F75AF97@icloud.com> Message-ID: I have others set up and this is the situation: New? command-N (works) Open? command-O (works) Close? command-W (does not work) (but does work with a mouse) There appears to be something awry somewhere? All the best Terry > On 26 Apr 2015, at 10:17, Terence Heaford wrote: > > Why does the menu not display when I command-F. From t.heaford at icloud.com Sun Apr 26 05:50:05 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sun, 26 Apr 2015 10:50:05 +0100 Subject: Command-F in My menu - Mac In-Reply-To: References: <7C8F33B2-F819-4A9A-9E46-0CE36F75AF97@icloud.com> Message-ID: > On 26 Apr 2015, at 10:36, Terence Heaford wrote: > > There appears to be something awry somewhere? Here is a screenshot of Menu Builder: https://dl.dropboxusercontent.com/u/98788898/LiveCode/MenuBuilder.png Why do I get brackets added to menu names ((New (Open When I click on the menu name for example New, more brackets are added. It?s not intuitive at all or there?s a bug? If it?s me can someone point me in the right direction? Thanks Terry From mark at livecode.com Sun Apr 26 05:59:20 2015 From: mark at livecode.com (Mark Waddingham) Date: Sun, 26 Apr 2015 10:59:20 +0100 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: References: <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <553BBEB0.3060004@fourthworld.com> <005d01d07f81$865ee8a0$931cb9e0$@net> <43349843-1423-4C6D-9DBA-A63C41189E27@m-r-d.de> <761041D4-3832-4706-987E-38FE6501824E@livecode.com> Message-ID: <31051ED9-0D61-490C-B210-C9BDFDF8B3C9@livecode.com> I believe it checks each listed Xcode for the iOS sdk in order and uses the first which contains the sdk it needs for that sdk. So if you have 6.2 and 6.3 listed, it should pick up the 8.2 SDK from Xcode 6.2, as Xcode 6.3 does not contain the iOS 8.3 SDK. Sent from my iPhone > On 26 Apr 2015, at 10:08, Matthias Rebbe | M-R-D wrote: > > Mark, > > maybe a dumb question, but.. > > How is the 8.2 SDK selected when building an iOS standalone? > Do i have to have only Xcode 6.2 added to the ?Mobile Support? section in LC prefs without having Xcode 6.3 added? > > I still have no clue how the ?Build for? in standalone settings does work or what happens if 2 or more XCode versions are added which support the same iOS SDK. > > Matthias > > > >> Am 26.04.2015 um 09:47 schrieb Mark Waddingham : >> >> I should perhaps point out that 6.7.5 and 7.0.5 will both still support Xcode 6.2 and building against the iOS 8.2 SDK. >> >> Apple dropped support for Mavericks with Xcode 6.3, but have yet to bar apps built against the iOS 8.2 SDK from the appstore, so we have to support both Xcode 6.2 and Xcode 6.3. >> >> Mark. >> >> Sent from my iPhone >> >>> On 25 Apr 2015, at 23:59, Matthias Rebbe | M-R-D wrote: >>> >>> I am in the same boat, but have also the problem that i am using a MergExt external which is available only for iOS8.2 SDK at the moment. >>> So if the fix for the hard crashes is implemented into 6.7.5 then i have also to wait until Monte is releasing his externals for the 8.3 SDK. >>> >>> Matthias >>> >>> >>>> Am 25.04.2015 um 19:59 schrieb Ralph DiMola : >>>> >>>> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops >>>> that RR must jump though on Apple's behalf is just sad. But as I always say >>>> "If your worth a billion dollars then you make the rules...PERIOD". I have 2 >>>> iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I >>>> could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR >>>> procedures. >>>> >>>> Ralph DiMola >>>> IT Director >>>> Evergreen Information Services >>>> rdimola at evergreeninfo.net >>>> >>>> >>>> -----Original Message----- >>>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >>>> Of Richard Gaskin >>>> Sent: Saturday, April 25, 2015 12:20 PM >>>> To: use-livecode at lists.runrev.com >>>> Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? >>>> >>>> Mark Waddingham wrote: >>>> >>>>> Not yet no - if you've auto updated to Xcode 6.3 then you can still > >>>> download Xcode 6.2 from the apple devcenter and continue to use that. >>>>> >>>>> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > >>>> issues at the final stage of testing and so aren't quite ready for > >>>> release - we're trying to get them out of the door as quickly as > >>>> possible. >>>> >>>> It seems that every time Apple updates Xcode it breaks LC, requiring the >>>> team to set aside other work and rush another build out for that one OS. >>>> Many of the 7.0.x/6.7.x builds seem to fall into that category, and those >>>> of us waiting for resolution on issues for other platforms find this as >>>> frustrating as I'm sure the team does. >>>> >>>> Working with Android is smooth as silk by comparison, rarely requiring any >>>> updates at all. >>>> >>>> What is it that makes the relationship between LC and Xcode so brittle that >>>> it requires revision with every Xcode update? >>>> >>>> Is there anything that can be done to anticipate and work around what >>>> appears to be a disregard for backward compatibility in Xcode? >>>> >>>> -- >>>> Richard Gaskin >>>> Fourth World Systems >>>> Software Design and Development for the Desktop, Mobile, and the Web >>>> ____________________________________________________________________ >>>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimolad at evergreeninfo.net Sun Apr 26 10:27:59 2015 From: rdimolad at evergreeninfo.net (Ralph DiMola) Date: Sun, 26 Apr 2015 10:27:59 -0400 Subject: Does Version 7.0.4 work with Xcode 6.3.1? Message-ID: So does this mean that I have to upgrade to Mavericks to use the next release for iOS builds? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net
-------- Original message --------
From: Mark Waddingham
Date:04/26/2015 03:47 (GMT-05:00)
To: How to use LiveCode
Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1?
I should perhaps point out that 6.7.5 and 7.0.5 will both still support Xcode 6.2 and building against the iOS 8.2 SDK. Apple dropped support for Mavericks with Xcode 6.3, but have yet to bar apps built against the iOS 8.2 SDK from the appstore, so we have to support both Xcode 6.2 and Xcode 6.3. Mark. Sent from my iPhone > On 25 Apr 2015, at 23:59, Matthias Rebbe | M-R-D wrote: > > I am in the same boat, but have also the problem that i am using a MergExt external which is available only for iOS8.2 SDK at the moment. > So if the fix for the hard crashes is implemented into 6.7.5 then i have also to wait until Monte is releasing his externals for the 8.3 SDK. > > Matthias > > >> Am 25.04.2015 um 19:59 schrieb Ralph DiMola : >> >> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops >> that RR must jump though on Apple's behalf is just sad. But as I always say >> "If your worth a billion dollars then you make the rules...PERIOD". I have 2 >> iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I >> could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR >> procedures. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >> Of Richard Gaskin >> Sent: Saturday, April 25, 2015 12:20 PM >> To: use-livecode at lists.runrev.com >> Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? >> >> Mark Waddingham wrote: >> >>> Not yet no - if you've auto updated to Xcode 6.3 then you can still > >> download Xcode 6.2 from the apple devcenter and continue to use that. >>> >>> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > >> issues at the final stage of testing and so aren't quite ready for > >> release - we're trying to get them out of the door as quickly as > >> possible. >> >> It seems that every time Apple updates Xcode it breaks LC, requiring the >> team to set aside other work and rush another build out for that one OS. >> Many of the 7.0.x/6.7.x builds seem to fall into that category, and those >> of us waiting for resolution on issues for other platforms find this as >> frustrating as I'm sure the team does. >> >> Working with Android is smooth as silk by comparison, rarely requiring any >> updates at all. >> >> What is it that makes the relationship between LC and Xcode so brittle that >> it requires revision with every Xcode update? >> >> Is there anything that can be done to anticipate and work around what >> appears to be a disregard for backward compatibility in Xcode? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Sun Apr 26 11:43:06 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 26 Apr 2015 08:43:06 -0700 Subject: Can livecode do this? In-Reply-To: <9ECB84C1-7044-4A70-A379-50C261407C18@gmail.com> References: <1429950624805-4691479.post@n4.nabble.com> <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <70943241-E664-4E68-82A3-5E9D259C0C19@earthednet.org> <8B024738-01FE-4A03-A8FE-D35EFC00D7EC@earthednet.org> <9ECB84C1-7044-4A70-A379-50C261407C18@gmail.com> Message-ID: I have 3 players playing sounds with a looping background in two players, to create a continuous background sound. It works very well. Now I?m wondering if the player that is dragged from the IDE palette is the AV Foundation player, or the old one that uses Quicktime. Do I have to do anything to invoke the AV Foundation player? I am using version 7.0.4 of livecode. The user guide has some good info about the player properties, but it also mentions quicktime. Eventually this will be a mobile app, so perhaps it doesn?t matter for developing, but I?d like to know. Is there a link where I can get up to date info about the new player? Thanks, Bill > On Apr 25, 2015, at 9:42 AM, Colin Holgate wrote: > > The playing multiple sounds isn?t the hard part. Playing sound segments seamlessly is. I have done that sort of thing in other tools, like in this app for example: > > https://itunes.apple.com/us/app/lets-get-ready!/id903134141?mt=8 > > One part of that app lets you record multiple sounds, and at the end you hear a seamless sequence which is a mixture of preset backing tracks and your recordings. I could achieve that because in Flash you can create bytearrays made from the composition, and then play that as a single sound. > > Maybe you could combine the elements and write out a WAV file to play? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Sun Apr 26 11:59:43 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 26 Apr 2015 08:59:43 -0700 Subject: Can livecode do this? In-Reply-To: <8B024738-01FE-4A03-A8FE-D35EFC00D7EC@earthednet.org> References: <1429950624805-4691479.post@n4.nabble.com> <9BE4E064-E73D-43D7-BBF0-7E9D1FE9F586@livecode.com> <70943241-E664-4E68-82A3-5E9D259C0C19@earthednet.org> <8B024738-01FE-4A03-A8FE-D35EFC00D7EC@earthednet.org> Message-ID: <1E7F8E04-18F7-4B4C-BAED-7D25F3853F5D@earthednet.org> You can ignore my question about the AVFoundation player. It is in current versions of livecode.. One thing to note is that the livecode LESSONS on their site is for the old player. Confusing for folks who are just now starting to use the player. Regards, Bill William A. Prothero http://es.earthednet.org/ > On Apr 25, 2015, at 8:41 AM, Earthednet-wp wrote: > > Folks, > This seems like a natural for livecode, but I'm wondering. > I'm thinking about an app that contains a bunch of different segments of audio, each maybe a minute or more. The user chooses segments and then organizes the sequence of play. I see no problem with this. But, I would also like to be able to play another audio file as background to the sequence of audio segments. > > So, can livecode play two sound files at the same time? The background would require no particular synchronization, just continuous play. The segments would need to play without pops and other artifacts. > > This sounds like something Bramaswami would be doing. It also sounds like a very easy app to build, assuming that LC can play two audio files at the same time, with independently adjustable volume. > > Best, > Bill > > William Prothero > http://es.earthednet.org > >> On Apr 25, 2015, at 8:29 AM, Earthednet-wp wrote: >> >> Thanks for the reply. I accidentally started downloading the update, but stopped it before it was done, so hopefully the prev version is still ok. >> Bill >> >> William Prothero >> http://es.earthednet.org >> >>> On Apr 25, 2015, at 5:04 AM, Mark Waddingham wrote: >>> >>> Not yet no - if you've auto updated to Xcode 6.3 then you can still download Xcode 6.2 from the apple devcenter and continue to use that. >>> >>> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited issues at the final stage of testing and so aren't quite ready for release - we're trying to get them out of the door as quickly as possible. >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>>> On 25 Apr 2015, at 09:30, Dave Kilroy wrote: >>>> >>>> Nope don't think it does >>>> http://forums.livecode.com/viewtopic.php?f=49&t=23986&hilit=xcode+6.3 >>>> >>>> I did read something last week about a LC 7.0.5 that was due to be released >>>> in a few days subject to it getting through some final testing - it never >>>> materialised so I guess it failed those tests (but I'm also guessing it >>>> won't be too long before they wrestle it over the line...) >>>> >>>> >>>> >>>> ----- >>>> "The difference between genius and stupidity is; genius has its limits." - Albert Einstein >>>> -- >>>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-Version-7-0-4-work-with-Xcode-6-3-1-tp4691476p4691479.html >>>> Sent from the Revolution - User mailing list archive at Nabble.com. >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sun Apr 26 12:24:03 2015 From: mark at livecode.com (Mark Waddingham) Date: Sun, 26 Apr 2015 17:24:03 +0100 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: References: Message-ID: <1C3E915E-3E84-4C17-BFCC-119B0E0A3367@livecode.com> At some point Apple will no doubt stop accepting apps built against the 8.2 SDK which means that you will need, at that point, you will need 10.10 (Yosemite) so you can install Xcode 6.3 and build against the 8.3 (or higher) iOS SDK. Mark Sent from my iPhone > On 26 Apr 2015, at 15:27, Ralph DiMola wrote: > > So does this mean that I have to upgrade to Mavericks to use the next release for iOS builds? > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > >
-------- Original message --------
From: Mark Waddingham
Date:04/26/2015 03:47 (GMT-05:00)
To: How to use LiveCode
Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1?
>
I should perhaps point out that 6.7.5 and 7.0.5 will both still support Xcode 6.2 and building against the iOS 8.2 SDK. > > Apple dropped support for Mavericks with Xcode 6.3, but have yet to bar apps built against the iOS 8.2 SDK from the appstore, so we have to support both Xcode 6.2 and Xcode 6.3. > > Mark. > > Sent from my iPhone > >> On 25 Apr 2015, at 23:59, Matthias Rebbe | M-R-D wrote: >> >> I am in the same boat, but have also the problem that i am using a MergExt external which is available only for iOS8.2 SDK at the moment. >> So if the fix for the hard crashes is implemented into 6.7.5 then i have also to wait until Monte is releasing his externals for the 8.3 SDK. >> >> Matthias >> >> >>> Am 25.04.2015 um 19:59 schrieb Ralph DiMola : >>> >>> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The hoops >>> that RR must jump though on Apple's behalf is just sad. But as I always say >>> "If your worth a billion dollars then you make the rules...PERIOD". I have 2 >>> iOS hard crashes that are fixed but held up by iOS 6.3 integration. I wish I >>> could have got a 6.7.3 GM2 or a 6.7.4 GM2 but that is not current RR >>> procedures. >>> >>> Ralph DiMola >>> IT Director >>> Evergreen Information Services >>> rdimola at evergreeninfo.net >>> >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >>> Of Richard Gaskin >>> Sent: Saturday, April 25, 2015 12:20 PM >>> To: use-livecode at lists.runrev.com >>> Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? >>> >>> Mark Waddingham wrote: >>> >>>> Not yet no - if you've auto updated to Xcode 6.3 then you can still > >>> download Xcode 6.2 from the apple devcenter and continue to use that. >>>> >>>> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > >>> issues at the final stage of testing and so aren't quite ready for > >>> release - we're trying to get them out of the door as quickly as > >>> possible. >>> >>> It seems that every time Apple updates Xcode it breaks LC, requiring the >>> team to set aside other work and rush another build out for that one OS. >>> Many of the 7.0.x/6.7.x builds seem to fall into that category, and those >>> of us waiting for resolution on issues for other platforms find this as >>> frustrating as I'm sure the team does. >>> >>> Working with Android is smooth as silk by comparison, rarely requiring any >>> updates at all. >>> >>> What is it that makes the relationship between LC and Xcode so brittle that >>> it requires revision with every Xcode update? >>> >>> Is there anything that can be done to anticipate and work around what >>> appears to be a disregard for backward compatibility in Xcode? >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sun Apr 26 12:59:43 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 26 Apr 2015 09:59:43 -0700 Subject: [OT] Endless OS In-Reply-To: <553C9E74.4010203@gmail.com> References: <553C9E74.4010203@gmail.com> Message-ID: <553D197F.7020508@fourthworld.com> Richmond wrote: > I wonder if this is a plastic bath-toy or something that might get a > semi-respectable market share: > > https://endlessm.com/ > > The computer is pitched at the 'poor' end of the spectrum, yet it > costs $169 when I bought a "proper" second hand DELL for $50. The cost isn't bad, but if one were to shop around and be willing to have a less colorful case you can get this barebones which is on sale in a bundle with twice as much RAM as the Endless box for just $118 - toss in a 60GB SSD for $40 for twice as much storage and you're still paying less: I've been following low-end hardware for a while now, since I've found it invaluable to have a cheap dev server in the office and am now looking to add one at home. Many options for well under $200, and if you're willing to have leaner specs or refurbished components you can get costs down even further. You can even go ultra-small with the Intel Compute Stick and still have a quad-core CPU (Atom Z3735F @ 1.33 GHz) for just $110, and it fits in your shirt pocket: > It says that it connects to any TV . . . with an HDMI port . . . > > That's a load of nonsense to start with: how about a coaxial cable? > > I see that it does have a VGA output, which is good, as old > cathode-ray VDUs are going, round these parts at least, > for about $5. > > Frankly anybody who has got $169 + the price of a TV with an HDMI > port to spare is NOT poor, and if I lived in the favelas of Rio de > Janiero, or the nastier parts of Cairo I would feel that somebody > was being a bit like Marie Antoinette and lobbing cake around. Maybe that's not their target. TVs sold for nearly a decade have HDMI, and it's a much better choice for computing. Coax is very rarely used for computing; for analog VGA is more commonly used, and provided on that box. If you're going that route you're moving into OLPC territory; a worthy pursuit, but a different market. > It runs a Linux kernel, but will we be able to spin off LiveCode > standalones for it? Oh yes indeed. Intel's low-end CPUs are surprisingly capable. The N2807 will even run some light 3D games like Super Tux Cart, though I wouldn't expect high FPS on more demanding games. It'll certainly run LiveCode just fine - the specs far exceed those of even the newer Raspberry Pi, so LC will do quite well on Celerons and even Atoms like the Z3735F in the Compute Stick. In fact, the dev server I have in my office runs a standard LAMP setup, with OwnCloud syncing all my computers, and several LC standalones performing a wide range of site monitoring and data collection tasks, and has a GUI - LXDE, courtesy of Lubuntu 14.10. And it's sporting the humble Atom 230, which premiered in 2007. :) I enjoy building systems so I've been itching to find excuses to replace that one, but the fact is it keeps doing what I need it to do so well with its hyperthreaded 1.4 GHz CPU, even with that older instruction set, that I just haven't been able to justify retiring it yet. With shared memory for graphics, the 1 GB RAM it shipped with was sometimes close to tight under load, and tempted me more than once to ditch the GUI and make it exclusively a server. But rather than drop the GIU or replace the whole box I just bought a 2 GB RAM chip for it last year and now load is rarely more than half capacity, never dipping into swap. I wouldn't cut video on it, and I rarely play games anyway, but as a way of experimenting with server stuff and stress-testing LiveCode GUIs it's been a champ, year after year. The Celeron N2807 is much newer, and far more capable than that old Atom, with a much more recent generation of Intel graphics. Any system with an N2807 will run LiveCode admirably. Both have a TDP around 4 watts, so you can use them for always-on servers without feeling guilty: If you study Intel's lineup carefully, you'll find that many of the distinctions between the Core i series and their lower-end Pentium, Celeron, and Atom CPUs are somewhat negligible for many workflows, esp. the sorts of things scripters do. LC is single-threaded so going beyond 2 cores is overkill for most tasks; hardware AES is nice but you won't miss it in most day-to-day work; higher-end onboard graphics really only become important for video work or games; etc. If you enjoy Linux and you're looking for cheap options to develop in LiveCode, and you're willing to spend a little time picking components, the options are plentiful and affordable. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From colinholgate at gmail.com Sun Apr 26 13:08:36 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 26 Apr 2015 13:08:36 -0400 Subject: [OT] Endless OS In-Reply-To: <553D197F.7020508@fourthworld.com> References: <553C9E74.4010203@gmail.com> <553D197F.7020508@fourthworld.com> Message-ID: I have emailed them to ask if they intend to have an app store, and if so what tools developers would need to use. As for the price, don?t forget that it comes with dozens of applications, and can be used without Internet. I did put my name down for the 500 GB version. It will no doubt ship later than the June they state, but there?s no particular hurry! From t.heaford at icloud.com Sun Apr 26 13:56:26 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sun, 26 Apr 2015 18:56:26 +0100 Subject: Command-F in My menu - Mac In-Reply-To: References: <7C8F33B2-F819-4A9A-9E46-0CE36F75AF97@icloud.com> Message-ID: I believe there is a bug in LiveCode. Can someone please confirm this? Just tried this code snippet put the text of menu "Actions" into tText put "Find.../cmd F" into line 2 of tText set the text of menu "Actions" to tText The menu works by mouse but command-F highlights the menubar but does not call the associated script. Mac Yosemite LC 6.7.4. I think this is related to bug: Bug?14017 Reported in November 2014 and not yet resolved. A programme without ?shortcuts? is ??????????..? All the best Terry > On 26 Apr 2015, at 10:36, Terence Heaford wrote: > > There appears to be something awry somewhere? From t.heaford at icloud.com Sun Apr 26 14:23:08 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Sun, 26 Apr 2015 19:23:08 +0100 Subject: Enabling/Disabling MenuItems in LC Message-ID: <76CBC8AF-65EA-4C9D-B57F-CCB93CB604D2@icloud.com> I have implemented the following script in the menubar to enable/disable menuItems. Is this the normal way of doing this or is there another way as I am getting strange behaviour. The shortcut keys I have set do not work for these items. menuItem 3 of menu "File" ? close menuItem 1 of menu "Actions" ? Categories menuItem 2 of menu "Actions" ? Find -------------------------- on mouseDown tMenu if tMenu = 1 and the uDBOpen of stack ?TH" is true then setMenusOpen else setMenusClosed end if end mouseDown on setMenusOpen set the lockmenus to true disable menuItem 1 of menu "File" -- new disable menuItem 2 of menu "File" -- open enable menuItem 3 of menu "File" -- close enable menuItem 5 of menu "File" -- import enable menuItem 6 of menu "File" -- export enable menuItem 7 of menu "File" -- print enable menuItem 1 of menu "Actions" -- Categories enable menuItem 2 of menu "Actions" -- Find set the lockmenus to false end setMenusOpen on setMenusClosed set the lockmenus to true enable menuItem 1 of menu "File" enable menuItem 2 of menu "File" disable menuItem 3 of menu "File" disable menuItem 5 of menu "File" disable menuItem 6 of menu "File" disable menuItem 7 of menu "File" disable menuItem 1 of menu "Actions" disable menuItem 2 of menu "Actions" set the lockmenus to false end setMenusClosed From jacque at hyperactivesw.com Sun Apr 26 14:26:38 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 26 Apr 2015 13:26:38 -0500 Subject: Command-F in My menu - Mac In-Reply-To: References: <7C8F33B2-F819-4A9A-9E46-0CE36F75AF97@icloud.com> Message-ID: <553D2DDE.2040105@hyperactivesw.com> On 4/26/2015 12:56 PM, Terence Heaford wrote: > Just tried this code snippet > > put the text of menu "Actions" into tText > put "Find.../cmd F" into line 2 of tText > set the text of menu "Actions" to tText > > The menu works by mouse but command-F highlights the menubar but does not call the associated script. The menu item is misconfigured. It should be: put "Find.../F" into line 2 of tText The engine will automatically use the command key unless you specify a different one. The easiest way to see what's required for menu items is to build a menu using Menu Builder and look at the text it produces. From your other post: > Why do I get brackets added to menu names ((New (Open > > When I click on the menu name for example New, more brackets are added. The open parenthesis symbol indicates a disabled menu item. There is probably a script that disables those items and does not re-enable them. If the script adds the parenthesis specifically (rather than using the "enable" and "disable" commands,) they can pile up. A full list of menu and menuitem modifiers are listed in the dictionary under the "menu" keyword. It's a little confusing but they're all there. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rdimola at evergreeninfo.net Sun Apr 26 15:23:10 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 26 Apr 2015 15:23:10 -0400 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <1C3E915E-3E84-4C17-BFCC-119B0E0A3367@livecode.com> References: <1C3E915E-3E84-4C17-BFCC-119B0E0A3367@livecode.com> Message-ID: <001c01d08056$6f3b89a0$4db29ce0$@net> Mark, Thanks for the help! What I was saying is that I will need to use the next version of LC because of the iOS hard crashes. This new release will be linked against Xcode 6.3. This will require me to use Xcode 6.3.1. That will require me to upgrade to OS X 10.10. Correct? If so I will start the upgrade today. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mark Waddingham Sent: Sunday, April 26, 2015 12:24 PM To: How to use LiveCode Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? At some point Apple will no doubt stop accepting apps built against the 8.2 SDK which means that you will need, at that point, you will need 10.10 (Yosemite) so you can install Xcode 6.3 and build against the 8.3 (or higher) iOS SDK. Mark Sent from my iPhone > On 26 Apr 2015, at 15:27, Ralph DiMola wrote: > > So does this mean that I have to upgrade to Mavericks to use the next release for iOS builds? > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > >
-------- Original message --------
From: Mark > Waddingham
Date:04/26/2015 03:47 (GMT-05:00)
To: How to use LiveCode
Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1?
I should perhaps point out that 6.7.5 and 7.0.5 will both still support Xcode 6.2 and building against the iOS 8.2 SDK. > > Apple dropped support for Mavericks with Xcode 6.3, but have yet to bar apps built against the iOS 8.2 SDK from the appstore, so we have to support both Xcode 6.2 and Xcode 6.3. > > Mark. > > Sent from my iPhone > >> On 25 Apr 2015, at 23:59, Matthias Rebbe | M-R-D wrote: >> >> I am in the same boat, but have also the problem that i am using a MergExt external which is available only for iOS8.2 SDK at the moment. >> So if the fix for the hard crashes is implemented into 6.7.5 then i have also to wait until Monte is releasing his externals for the 8.3 SDK. >> >> Matthias >> >> >>> Am 25.04.2015 um 19:59 schrieb Ralph DiMola : >>> >>> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The >>> hoops that RR must jump though on Apple's behalf is just sad. But as >>> I always say "If your worth a billion dollars then you make the >>> rules...PERIOD". I have 2 iOS hard crashes that are fixed but held >>> up by iOS 6.3 integration. I wish I could have got a 6.7.3 GM2 or a >>> 6.7.4 GM2 but that is not current RR procedures. >>> >>> Ralph DiMola >>> IT Director >>> Evergreen Information Services >>> rdimola at evergreeninfo.net >>> >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >>> Behalf Of Richard Gaskin >>> Sent: Saturday, April 25, 2015 12:20 PM >>> To: use-livecode at lists.runrev.com >>> Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? >>> >>> Mark Waddingham wrote: >>> >>>> Not yet no - if you've auto updated to Xcode 6.3 then you can still >>>> > >>> download Xcode 6.2 from the apple devcenter and continue to use that. >>>> >>>> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > >>> issues at the final stage of testing and so aren't quite ready for >>> > release - we're trying to get them out of the door as quickly as >>> > possible. >>> >>> It seems that every time Apple updates Xcode it breaks LC, requiring >>> the team to set aside other work and rush another build out for that one OS. >>> Many of the 7.0.x/6.7.x builds seem to fall into that category, and >>> those of us waiting for resolution on issues for other platforms >>> find this as frustrating as I'm sure the team does. >>> >>> Working with Android is smooth as silk by comparison, rarely >>> requiring any updates at all. >>> >>> What is it that makes the relationship between LC and Xcode so >>> brittle that it requires revision with every Xcode update? >>> >>> Is there anything that can be done to anticipate and work around >>> what appears to be a disregard for backward compatibility in Xcode? >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Sun Apr 26 15:42:40 2015 From: mark at livecode.com (Mark Waddingham) Date: Sun, 26 Apr 2015 20:42:40 +0100 Subject: Does Version 7.0.4 work with Xcode 6.3.1? In-Reply-To: <001c01d08056$6f3b89a0$4db29ce0$@net> References: <1C3E915E-3E84-4C17-BFCC-119B0E0A3367@livecode.com> <001c01d08056$6f3b89a0$4db29ce0$@net> Message-ID: Oops - perhaps not as clear as I should have been. The next .5 releases will support both 8.2 and 8.3. We'll continue to build for 8.2 until Apple stops accepting apps linked against it in the App Store. Mark. Sent from my iPhone > On 26 Apr 2015, at 20:23, Ralph DiMola wrote: > > Mark, > > Thanks for the help! > > What I was saying is that I will need to use the next version of LC because > of the iOS hard crashes. This new release will be linked against Xcode 6.3. > This will require me to use Xcode 6.3.1. That will require me to upgrade to > OS X 10.10. Correct? If so I will start the upgrade today. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > Phone: 518-636-3998 Ex:11 > Cell: 518-796-9332 > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Mark Waddingham > Sent: Sunday, April 26, 2015 12:24 PM > To: How to use LiveCode > Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? > > At some point Apple will no doubt stop accepting apps built against the 8.2 > SDK which means that you will need, at that point, you will need 10.10 > (Yosemite) so you can install Xcode 6.3 and build against the 8.3 (or > higher) iOS SDK. > > Mark > > Sent from my iPhone > >> On 26 Apr 2015, at 15:27, Ralph DiMola wrote: >> >> So does this mean that I have to upgrade to Mavericks to use the next > release for iOS builds? >> >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> >>
-------- Original message --------
From: Mark >> Waddingham
Date:04/26/2015 03:47 > (GMT-05:00)
To: How to use LiveCode >
Subject: Re: Does Version 7.0.4 > work with Xcode 6.3.1?
I should perhaps point out that > 6.7.5 and 7.0.5 will both still support Xcode 6.2 and building against the > iOS 8.2 SDK. >> >> Apple dropped support for Mavericks with Xcode 6.3, but have yet to bar > apps built against the iOS 8.2 SDK from the appstore, so we have to support > both Xcode 6.2 and Xcode 6.3. >> >> Mark. >> >> Sent from my iPhone >> >>> On 25 Apr 2015, at 23:59, Matthias Rebbe | M-R-D > wrote: >>> >>> I am in the same boat, but have also the problem that i am using a > MergExt external which is available only for iOS8.2 SDK at the moment. >>> So if the fix for the hard crashes is implemented into 6.7.5 then i have > also to wait until Monte is releasing his externals for the 8.3 SDK. >>> >>> Matthias >>> >>> >>>> Am 25.04.2015 um 19:59 schrieb Ralph DiMola : >>>> >>>> I now sit in the middle of the Xcode 6.3 compatibility fiasco. The >>>> hoops that RR must jump though on Apple's behalf is just sad. But as >>>> I always say "If your worth a billion dollars then you make the >>>> rules...PERIOD". I have 2 iOS hard crashes that are fixed but held >>>> up by iOS 6.3 integration. I wish I could have got a 6.7.3 GM2 or a >>>> 6.7.4 GM2 but that is not current RR procedures. >>>> >>>> Ralph DiMola >>>> IT Director >>>> Evergreen Information Services >>>> rdimola at evergreeninfo.net >>>> >>>> >>>> -----Original Message----- >>>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >>>> Behalf Of Richard Gaskin >>>> Sent: Saturday, April 25, 2015 12:20 PM >>>> To: use-livecode at lists.runrev.com >>>> Subject: Re: Does Version 7.0.4 work with Xcode 6.3.1? >>>> >>>> Mark Waddingham wrote: >>>> >>>>> Not yet no - if you've auto updated to Xcode 6.3 then you can still >>>> download Xcode 6.2 from the apple devcenter and continue to use that. >>>>> >>>>> The 6.7.5-rc-1 and 7.0.5-rc-1 builds we have done have exhibited > >>>> issues at the final stage of testing and so aren't quite ready for >>>>> release - we're trying to get them out of the door as quickly as >>>>> possible. >>>> >>>> It seems that every time Apple updates Xcode it breaks LC, requiring >>>> the team to set aside other work and rush another build out for that one > OS. >>>> Many of the 7.0.x/6.7.x builds seem to fall into that category, and >>>> those of us waiting for resolution on issues for other platforms >>>> find this as frustrating as I'm sure the team does. >>>> >>>> Working with Android is smooth as silk by comparison, rarely >>>> requiring any updates at all. >>>> >>>> What is it that makes the relationship between LC and Xcode so >>>> brittle that it requires revision with every Xcode update? >>>> >>>> Is there anything that can be done to anticipate and work around >>>> what appears to be a disregard for backward compatibility in Xcode? >>>> >>>> -- >>>> Richard Gaskin >>>> Fourth World Systems >>>> Software Design and Development for the Desktop, Mobile, and the Web >>>> ____________________________________________________________________ >>>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Sun Apr 26 17:38:17 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 26 Apr 2015 14:38:17 -0700 Subject: struggling with player Message-ID: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> Folks: I?m trying to make an audio player that has a background sound, then various sounds playing at specific times, with the background sound continuing. Playing both sounds at the same time works well. However, I can?t get the loudness to change and can?t get the loudness to change seamlessly when the controller from mobGUI is activated. Details: Livecode 7.0.4 1. The "set the loudness of player ?xyaz? to someIntegerValue" doesn?t seem to work. I'm running the player in loop mode. I would like the loudness to change without stopping the sound, when the user adjusts a scroller that I have. The controller changes the loudness, but not setting the property. I tried with and without a controller, and when the movie is stopped. 2. I?m using a revMOBGui scroller to adjust the volume of audio in the player object, I?d like the have the player keep running when the volume is changed. However, when I change the volume, play stops. However, if I set the volume from the message box, nothing happens. AND, when I try to set or get the loudness value (from the message box) when I use the controller, nothing changes. 3, I would like the audio to continue when the app is not in focus. How do I do this? What am I missing? Any suggestions would be appreciated. Bill William A. Prothero http://es.earthednet.org/ From klaus at major-k.de Sun Apr 26 17:50:51 2015 From: klaus at major-k.de (Klaus major-k) Date: Sun, 26 Apr 2015 23:50:51 +0200 Subject: struggling with player In-Reply-To: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> References: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> Message-ID: <83E75BF5-20C6-410A-B517-81300E638E4E@major-k.de> Hi Bill, > Am 26.04.2015 um 23:38 schrieb William Prothero : > > Folks: > I?m trying to make an audio player that has a background sound, then various sounds playing at specific times, with the background sound continuing. Playing both sounds at the same time works well. However, I can?t get the loudness to change and can?t get the loudness to change seamlessly when the controller from mobGUI is activated. > > Details: Livecode 7.0.4 > 1. The "set the loudness of player ?xyaz? to someIntegerValue" doesn?t seem to work. I'm running the player in loop mode. I would like the loudness to change without stopping the sound, when the user adjusts a scroller that I have. The controller changes the loudness, but not setting the property. I tried with and without a controller, and when the movie is stopped. > > 2. I?m using a revMOBGui scroller to adjust the volume of audio in the player object, I?d like the have the player keep running when the volume is changed. However, when I change the volume, play stops. However, if I set the volume from the message box, nothing happens. AND, when I try to set or get the loudness value (from the message box) when I use the controller, nothing changes. > > 3, I would like the audio to continue when the app is not in focus. How do I do this? > > What am I missing? Any suggestions would be appreciated. 1. is that a typo? It should read: ... set the playloudness of player xyz to someintegervalue ? > Bill > > William A. Prothero > http://es.earthednet.org/ Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From prothero at earthednet.org Sun Apr 26 18:04:51 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 26 Apr 2015 15:04:51 -0700 Subject: struggling with player In-Reply-To: <83E75BF5-20C6-410A-B517-81300E638E4E@major-k.de> References: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> <83E75BF5-20C6-410A-B517-81300E638E4E@major-k.de> Message-ID: <6DADC7DE-9F91-4AAF-8851-17BBD2D7A747@earthednet.org> Klaus: Yeah, just as I posted this, I noticed in the user guide that it was the playLoudness. I used that and it did change the loudness. However, I?m still having trouble getting the players to play continuously when I drag the loudness scroller. I have 3 players going simultaneously and I?m changing the loudness on 2 of them. There seems to be some kind of timing problem because if I change the loudness too quickly, one of the players stops. It also seems pretty cumbersome that there isn?t a ?play from start? command. I will fiddle with the startTime,endTime, and playSelection to try to get it to rewind to the start. But it seems line basic commands are quirky to implement. So, to get the player to begin at the start, when it?s somewhere else, I?d have to do something like: stop player myPlayer put the duration of player myPlayer into endTime set the startTime of player myPlayer to 1 set the endTime of player myPlayer to endTime set the playSelection of player 1 to true start player myPlayer Do I have to stop, then start the player to get it to jump to a particular location? And, is there a way to keep the other player going, without being affected by commands and the stack losing focus? Thanks, Klaus, for your input. Best, Bill > On Apr 26, 2015, at 2:50 PM, Klaus major-k wrote: > > Hi Bill, > >> Am 26.04.2015 um 23:38 schrieb William Prothero : >> >> Folks: >> I?m trying to make an audio player that has a background sound, then various sounds playing at specific times, with the background sound continuing. Playing both sounds at the same time works well. However, I can?t get the loudness to change and can?t get the loudness to change seamlessly when the controller from mobGUI is activated. >> >> Details: Livecode 7.0.4 >> 1. The "set the loudness of player ?xyaz? to someIntegerValue" doesn?t seem to work. I'm running the player in loop mode. I would like the loudness to change without stopping the sound, when the user adjusts a scroller that I have. The controller changes the loudness, but not setting the property. I tried with and without a controller, and when the movie is stopped. >> >> 2. I?m using a revMOBGui scroller to adjust the volume of audio in the player object, I?d like the have the player keep running when the volume is changed. However, when I change the volume, play stops. However, if I set the volume from the message box, nothing happens. AND, when I try to set or get the loudness value (from the message box) when I use the controller, nothing changes. >> >> 3, I would like the audio to continue when the app is not in focus. How do I do this? >> >> What am I missing? Any suggestions would be appreciated. > > 1. is that a typo? It should read: > ... > set the playloudness of player xyz to someintegervalue > ? > >> Bill >> >> William A. Prothero >> http://es.earthednet.org/ > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Sun Apr 26 19:43:29 2015 From: klaus at major-k.de (Klaus major-k) Date: Mon, 27 Apr 2015 01:43:29 +0200 Subject: struggling with player In-Reply-To: <6DADC7DE-9F91-4AAF-8851-17BBD2D7A747@earthednet.org> References: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> <83E75BF5-20C6-410A-B517-81300E638E4E@major-k.de> <6DADC7DE-9F91-4AAF-8851-17BBD2D7A747@earthednet.org> Message-ID: Hi Bill, > Am 27.04.2015 um 00:04 schrieb William Prothero : > > Klaus: > Yeah, just as I posted this, I noticed in the user guide that it was the playLoudness. I used that and it did change the loudness. However, I?m still having trouble getting the players to play continuously when I drag the loudness scroller. I have 3 players going simultaneously and I?m changing the loudness on 2 of them. There seems to be some kind of timing problem because if I change the loudness too quickly, one of the players stops. > > It also seems pretty cumbersome that there isn?t a ?play from start? command. I will fiddle with the startTime,endTime, and playSelection to try to get it to rewind to the start. But it seems line basic commands are quirky to implement. See below :-) > So, to get the player to begin at the start, when it?s somewhere else, I?d have to do something like: > stop player myPlayer > put the duration of player myPlayer into endTime > set the startTime of player myPlayer to 1 > set the endTime of player myPlayer to endTime > set the playSelection of player 1 to true > start player myPlayer Just tested with LC 7.04 (never worked with the new AVFoindation player object before) and this single line will it: ? set the currenttime of player "myplayer? to 0 ## Or any other time in the audio/movie ? No need to stop the player or set a selection from STARTTIME to ENDTIME. Playback will continue! > Do I have to stop, then start the player to get it to jump to a particular location? See above. > And, is there a way to keep the other player going, without being affected by commands and the stack losing focus? Sorry, not sure I understand your exact problem? > Thanks, Klaus, for your input. > Best, > Bill Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From monte at sweattechnologies.com Sun Apr 26 20:00:18 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Mon, 27 Apr 2015 10:00:18 +1000 Subject: Android Intents/iOS Extensions? In-Reply-To: <553A9C88.20509@hyperactivesw.com> References: <553933E2.3080303@hyperactivesw.com> <553935BB.2040701@fourthworld.com> <30D5D935-701E-4ADA-AB77-84F3163B19FE@sweattechnologies.com> <553A9C88.20509@hyperactivesw.com> Message-ID: On 25 Apr 2015, at 5:42 am, J. Landman Gay wrote: > I'm still trying to figure out why my manifest isn't working but yours does. Do you think line endings matter? I've got mine set up with Linux endings. I'm not sure... I think what you need to do is set a breakpoint in revSaveAsAndroidStandalone just before line 652 and work out exactly what error is causing it not to generate the manifest. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From roger.e.eller at sealedair.com Sun Apr 26 20:07:50 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 26 Apr 2015 20:07:50 -0400 Subject: [OT] Endless OS In-Reply-To: <553C9E74.4010203@gmail.com> References: <553C9E74.4010203@gmail.com> Message-ID: This is also $169, but available NOW, sans "style", and has both HDMI and VGA. http://www.amazon.com/dp/B00SCBWF52?psc=1 https :// www.youtube.com /watch?v=1GBo8y9IZcM On Apr 26, 2015 4:15 AM, "Richmond" @ gmail.com > wrote: > > I wonder if this is a plastic bath-toy or something that might get a semi-respectable market share: > > https :// endlessm.com/ > > The computer is pitched at the 'poor' end of the spectrum, yet it costs $169 when I bought > a "proper" second hand DELL for $50. > > Richmond. > From colinholgate at gmail.com Sun Apr 26 20:51:48 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 26 Apr 2015 20:51:48 -0400 Subject: [OT] Endless OS In-Reply-To: References: <553C9E74.4010203@gmail.com> Message-ID: <1B241388-73EA-4BAE-80AF-8C85E406831A@gmail.com> For the Endless folk, NOT being Windows is one of their selling points. It also includes a lot of software that may not be in that Windows version. From roger.e.eller at sealedair.com Sun Apr 26 21:04:13 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Sun, 26 Apr 2015 21:04:13 -0400 Subject: [OT] Endless OS In-Reply-To: <1B241388-73EA-4BAE-80AF-8C85E406831A@gmail.com> References: <553C9E74.4010203@gmail.com> <1B241388-73EA-4BAE-80AF-8C85E406831A@gmail.com> Message-ID: For those of us that use Windows, and LiveCode on Windows, it's not really a selling point. Smaller, almost embeddable PCs that include Windows, running on an Intel platform that isn't an underpowered Celeron, that gets my attention. I'm sure Endless OS is simply a customized Linux variant. This one even runs on a built-in battery, which is great for robotics applications. http://www.amazon.com/Vensmile-TM-iPC002-Quad-core-Bluetooth/dp/B00REGG6QU/ On Apr 26, 2015 8:52 PM, "Colin Holgate" wrote: > > For the Endless folk, NOT being Windows is one of their selling points. It also includes a lot of software that may not be in that Windows version. From prothero at earthednet.org Sun Apr 26 22:43:07 2015 From: prothero at earthednet.org (William Prothero) Date: Sun, 26 Apr 2015 19:43:07 -0700 Subject: struggling with player In-Reply-To: References: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> <83E75BF5-20C6-410A-B517-81300E638E4E@major-k.de> <6DADC7DE-9F91-4AAF-8851-17BBD2D7A747@earthednet.org> Message-ID: <9CDF714B-F945-4352-8887-E6127E8149EE@earthednet.org> Klaus: Ok, it makes sense. I think I?ve got it working now. The slider adjusts the volume and all seems ok. One thing is, the 3rd audio clip stops when I adjust the slider, but the control still shows it?s running. I then check the playRate, even though it isn?t playing and if it is 1 (even in the paused mode), I give it a ?play? command. This seems to work fine. Also, when the stack loses focus, it keeps playing. So, it?s pretty good for now. It would be really helpful if the LESSONS part of the Livecode site gave the correct info for the player. I think I?m going to be using it a lot,. Thanks for the help. Bill > On Apr 26, 2015, at 4:43 PM, Klaus major-k wrote: > > Hi Bill, > >> Am 27.04.2015 um 00:04 schrieb William Prothero : >> >> Klaus: >> Yeah, just as I posted this, I noticed in the user guide that it was the playLoudness. I used that and it did change the loudness. However, I?m still having trouble getting the players to play continuously when I drag the loudness scroller. I have 3 players going simultaneously and I?m changing the loudness on 2 of them. There seems to be some kind of timing problem because if I change the loudness too quickly, one of the players stops. >> >> It also seems pretty cumbersome that there isn?t a ?play from start? command. I will fiddle with the startTime,endTime, and playSelection to try to get it to rewind to the start. But it seems line basic commands are quirky to implement. > > See below :-) > >> So, to get the player to begin at the start, when it?s somewhere else, I?d have to do something like: >> stop player myPlayer >> put the duration of player myPlayer into endTime >> set the startTime of player myPlayer to 1 >> set the endTime of player myPlayer to endTime >> set the playSelection of player 1 to true >> start player myPlayer > > Just tested with LC 7.04 (never worked with the new AVFoindation player object before) > and this single line will it: > ? > set the currenttime of player "myplayer? to 0 > ## Or any other time in the audio/movie > ? > No need to stop the player or set a selection from STARTTIME to ENDTIME. > Playback will continue! > >> Do I have to stop, then start the player to get it to jump to a particular location? > > See above. > >> And, is there a way to keep the other player going, without being affected by commands and the stack losing focus? > > Sorry, not sure I understand your exact problem? > >> Thanks, Klaus, for your input. >> Best, >> Bill > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dave at applicationinsight.com Mon Apr 27 04:59:35 2015 From: dave at applicationinsight.com (Dave Kilroy) Date: Mon, 27 Apr 2015 01:59:35 -0700 (PDT) Subject: struggling with player In-Reply-To: <9CDF714B-F945-4352-8887-E6127E8149EE@earthednet.org> References: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> <83E75BF5-20C6-410A-B517-81300E638E4E@major-k.de> <6DADC7DE-9F91-4AAF-8851-17BBD2D7A747@earthednet.org> <9CDF714B-F945-4352-8887-E6127E8149EE@earthednet.org> Message-ID: <1430125175073-4691540.post@n4.nabble.com> Hi Bill Just for your interest, I used mobilePlaySoundOnChannel on an iOS app a couple of years ago and was able to play several audio files at the same time and change their volume while they all continued to play without pausing... put "word" into tChannelName put "now" into tType if the environment is "mobile" then if (mobileSoundOnChannel(tChannelName) is empty) OR (mobileSoundOnChannel(tChannelName) is "could not find channel") then -- --make background audio quieter if mobileSoundChannelStatus("background") ="playing" then put mobileSoundChannelVolume("background") into tVolume put (tVolume - 10) into tVolume mobileSetSoundChannelVolume "background", tVolume end if -- --code to do various things like find the correct audio file --make changes to the GUI etc -- --play 'word' audio file mobilePlaySoundOnChannel tAudioPath, tChannelName, tType -- --reset GUI & background volume once sound has finished playing send "resetFieldBackgroundColor pField" to this stack in tMS milliseconds end if end if Wprothero wrote > Klaus: > Ok, it makes sense. I think I?ve got it working now. The slider adjusts > the volume and all seems ok. One thing is, the 3rd audio clip stops when I > adjust the slider, but the control still shows it?s running. I then check > the playRate, even though it isn?t playing and if it is 1 (even in the > paused mode), I give it a ?play? command. This seems to work fine. Also, > when the stack loses focus, it keeps playing. So, it?s pretty good for > now. > > It would be really helpful if the LESSONS part of the Livecode site gave > the correct info for the player. I think I?m going to be using it a lot,. > > Thanks for the help. > Bill > >> On Apr 26, 2015, at 4:43 PM, Klaus major-k < > klaus@ > > wrote: >> >> Hi Bill, >> >>> Am 27.04.2015 um 00:04 schrieb William Prothero < > prothero@ > >: >>> >>> Klaus: >>> Yeah, just as I posted this, I noticed in the user guide that it was the >>> playLoudness. I used that and it did change the loudness. However, I?m >>> still having trouble getting the players to play continuously when I >>> drag the loudness scroller. I have 3 players going simultaneously and >>> I?m changing the loudness on 2 of them. There seems to be some kind of >>> timing problem because if I change the loudness too quickly, one of the >>> players stops. >>> >>> It also seems pretty cumbersome that there isn?t a ?play from start? >>> command. I will fiddle with the startTime,endTime, and playSelection to >>> try to get it to rewind to the start. But it seems line basic commands >>> are quirky to implement. >> >> See below :-) >> >>> So, to get the player to begin at the start, when it?s somewhere else, >>> I?d have to do something like: >>> stop player myPlayer >>> put the duration of player myPlayer into endTime >>> set the startTime of player myPlayer to 1 >>> set the endTime of player myPlayer to endTime >>> set the playSelection of player 1 to true >>> start player myPlayer >> >> Just tested with LC 7.04 (never worked with the new AVFoindation player >> object before) >> and this single line will it: >> ? >> set the currenttime of player "myplayer? to 0 >> ## Or any other time in the audio/movie >> ? >> No need to stop the player or set a selection from STARTTIME to ENDTIME. >> Playback will continue! >> >>> Do I have to stop, then start the player to get it to jump to a >>> particular location? >> >> See above. >> >>> And, is there a way to keep the other player going, without being >>> affected by commands and the stack losing focus? >> >> Sorry, not sure I understand your exact problem? >> >>> Thanks, Klaus, for your input. >>> Best, >>> Bill >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> http://www.major-k.de >> > klaus@ >> >> >> _______________________________________________ >> use-livecode mailing list >> > use-livecode at .runrev >> 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 at .runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ----- "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/struggling-with-player-tp4691531p4691540.html Sent from the Revolution - User mailing list archive at Nabble.com. From toolbook at kestner.de Mon Apr 27 06:53:59 2015 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 27 Apr 2015 12:53:59 +0200 Subject: AW: where does revsecurity.dll comes from? In-Reply-To: References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> <9DBB262C-A0F9-4790-A4EC-A86329AE93F0@canelasoftware.com> Message-ID: <006101d080d8$77854ba0$668fe2e0$@kestner.de> Thanks Mark and the others, Good to know, but funny I don't use either encrypt functions, nore https in this stack. I have no idea, what the standalone builder found to have it included. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mark Waddingham Gesendet: Samstag, 25. April 2015 14:07 An: How to use LiveCode Betreff: Re: where does revsecurity.dll comes from? It also provides https support (via secure socket features which libURL uses) - which is the bit many applications will use indirectly if they aren't using the encryption facilities directly. Mark. Sent from my iPhone > On 24 Apr 2015, at 22:37, Mark Talluto wrote: > >> On Apr 24, 2015, at 5:55 AM, Tiemo Hollmann TB wrote: >> Who can give me a hint, where this dll comes from and how I can get >> rid of it - and hopefully speed up the build process? > > Hi Teimo, > > The revsecurity.dll allows you to use encryption in your applications. This would include commands like: > encrypt, cipherNames, decrypt, and many others. > > Best regards, > > Mark Talluto > livecloud.io > canelasoftware.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bodine at bodinetraininggames.com Mon Apr 27 09:21:25 2015 From: bodine at bodinetraininggames.com (tbodine) Date: Mon, 27 Apr 2015 06:21:25 -0700 (PDT) Subject: struggling with player In-Reply-To: <9CDF714B-F945-4352-8887-E6127E8149EE@earthednet.org> References: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> <83E75BF5-20C6-410A-B517-81300E638E4E@major-k.de> <6DADC7DE-9F91-4AAF-8851-17BBD2D7A747@earthednet.org> <9CDF714B-F945-4352-8887-E6127E8149EE@earthednet.org> Message-ID: <1430140885255-4691542.post@n4.nabble.com> It would be really helpful if the LESSONS part of the Livecode site gave the correct info for the player. Agreed! As a relative newcomer to LC, the two biggest obstacles I found to learning it are out-of-date online lessons and the spotty indexing of the Dictionary. Maybe when the dust settles from the LC 7/8 push there can be a refresh of all that. It'll be needed with so much changed. In the meantime, I'm very grateful for this list! -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/struggling-with-player-tp4691531p4691542.html Sent from the Revolution - User mailing list archive at Nabble.com. From rdimola at evergreeninfo.net Mon Apr 27 10:01:45 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 27 Apr 2015 10:01:45 -0400 Subject: where does revsecurity.dll comes from? In-Reply-To: <006101d080d8$77854ba0$668fe2e0$@kestner.de> References: <005f01d07e8d$e85864e0$b9092ea0$@kestner.de> <9DBB262C-A0F9-4790-A4EC-A86329AE93F0@canelasoftware.com> <006101d080d8$77854ba0$668fe2e0$@kestner.de> Message-ID: <001301d080f2$b2cc0360$18640a20$@net> I think you might need revsecurity.dll if you open a database with SSL. I know on mobile you need to include the encryption external if you open a database with SSL. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Tiemo Hollmann TB Sent: Monday, April 27, 2015 6:54 AM To: 'How to use LiveCode' Subject: AW: where does revsecurity.dll comes from? Thanks Mark and the others, Good to know, but funny I don't use either encrypt functions, nore https in this stack. I have no idea, what the standalone builder found to have it included. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Mark Waddingham Gesendet: Samstag, 25. April 2015 14:07 An: How to use LiveCode Betreff: Re: where does revsecurity.dll comes from? It also provides https support (via secure socket features which libURL uses) - which is the bit many applications will use indirectly if they aren't using the encryption facilities directly. Mark. Sent from my iPhone > On 24 Apr 2015, at 22:37, Mark Talluto wrote: > >> On Apr 24, 2015, at 5:55 AM, Tiemo Hollmann TB wrote: >> Who can give me a hint, where this dll comes from and how I can get >> rid of it - and hopefully speed up the build process? > > Hi Teimo, > > The revsecurity.dll allows you to use encryption in your applications. This would include commands like: > encrypt, cipherNames, decrypt, and many others. > > Best regards, > > Mark Talluto > livecloud.io > canelasoftware.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Mon Apr 27 10:29:45 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Mon, 27 Apr 2015 07:29:45 -0700 Subject: struggling with player In-Reply-To: <1430125175073-4691540.post@n4.nabble.com> References: <3EC7655F-F52D-47D0-9512-F225579BA58C@earthednet.org> <83E75BF5-20C6-410A-B517-81300E638E4E@major-k.de> <6DADC7DE-9F91-4AAF-8851-17BBD2D7A747@earthednet.org> <9CDF714B-F945-4352-8887-E6127E8149EE@earthednet.org> <1430125175073-4691540.post@n4.nabble.com> Message-ID: <329BD0DB-9D99-4AE8-8E8F-192DB47548FA@earthednet.org> Thanks, Dave! That's very helpful. Best regards, Bill William Prothero http://es.earthednet.org > On Apr 27, 2015, at 1:59 AM, Dave Kilroy wrote: > > Hi Bill > > Just for your interest, I used mobilePlaySoundOnChannel on an iOS app a > couple of years ago and was able to play several audio files at the same > time and change their volume while they all continued to play without > pausing... > > > put "word" into tChannelName > put "now" into tType > if the environment is "mobile" then > if (mobileSoundOnChannel(tChannelName) is empty) OR > (mobileSoundOnChannel(tChannelName) is "could not find channel") then > -- > --make background audio quieter > if mobileSoundChannelStatus("background") ="playing" then > put mobileSoundChannelVolume("background") into tVolume > put (tVolume - 10) into tVolume > mobileSetSoundChannelVolume "background", tVolume > end if > -- > --code to do various things like find the correct audio file > --make changes to the GUI etc > -- > --play 'word' audio file > mobilePlaySoundOnChannel tAudioPath, tChannelName, tType > -- > --reset GUI & background volume once sound has finished playing > send "resetFieldBackgroundColor pField" to this stack in tMS > milliseconds > end if > end if > > > > > > Wprothero wrote >> Klaus: >> Ok, it makes sense. I think I?ve got it working now. The slider adjusts >> the volume and all seems ok. One thing is, the 3rd audio clip stops when I >> adjust the slider, but the control still shows it?s running. I then check >> the playRate, even though it isn?t playing and if it is 1 (even in the >> paused mode), I give it a ?play? command. This seems to work fine. Also, >> when the stack loses focus, it keeps playing. So, it?s pretty good for >> now. >> >> It would be really helpful if the LESSONS part of the Livecode site gave >> the correct info for the player. I think I?m going to be using it a lot,. >> >> Thanks for the help. >> Bill >> >>> On Apr 26, 2015, at 4:43 PM, Klaus major-k < > >> klaus@ > >> > wrote: >>> >>> Hi Bill, >>> >>>> Am 27.04.2015 um 00:04 schrieb William Prothero < > >> prothero@ > >> >: >>>> >>>> Klaus: >>>> Yeah, just as I posted this, I noticed in the user guide that it was the >>>> playLoudness. I used that and it did change the loudness. However, I?m >>>> still having trouble getting the players to play continuously when I >>>> drag the loudness scroller. I have 3 players going simultaneously and >>>> I?m changing the loudness on 2 of them. There seems to be some kind of >>>> timing problem because if I change the loudness too quickly, one of the >>>> players stops. >>>> >>>> It also seems pretty cumbersome that there isn?t a ?play from start? >>>> command. I will fiddle with the startTime,endTime, and playSelection to >>>> try to get it to rewind to the start. But it seems line basic commands >>>> are quirky to implement. >>> >>> See below :-) >>> >>>> So, to get the player to begin at the start, when it?s somewhere else, >>>> I?d have to do something like: >>>> stop player myPlayer >>>> put the duration of player myPlayer into endTime >>>> set the startTime of player myPlayer to 1 >>>> set the endTime of player myPlayer to endTime >>>> set the playSelection of player 1 to true >>>> start player myPlayer >>> >>> Just tested with LC 7.04 (never worked with the new AVFoindation player >>> object before) >>> and this single line will it: >>> ? >>> set the currenttime of player "myplayer? to 0 >>> ## Or any other time in the audio/movie >>> ? >>> No need to stop the player or set a selection from STARTTIME to ENDTIME. >>> Playback will continue! >>> >>>> Do I have to stop, then start the player to get it to jump to a >>>> particular location? >>> >>> See above. >>> >>>> And, is there a way to keep the other player going, without being >>>> affected by commands and the stack losing focus? >>> >>> Sorry, not sure I understand your exact problem? >>> >>>> Thanks, Klaus, for your input. >>>> Best, >>>> Bill >>> >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> http://www.major-k.de > >> klaus@ > >>> >>> >>> _______________________________________________ >>> use-livecode mailing list > >> use-livecode at .runrev > >>> 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 at .runrev > >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > ----- > "The difference between genius and stupidity is; genius has its limits." - Albert Einstein > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/struggling-with-player-tp4691531p4691540.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Apr 27 10:31:12 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 27 Apr 2015 07:31:12 -0700 Subject: struggling with player In-Reply-To: <1430140885255-4691542.post@n4.nabble.com> References: <1430140885255-4691542.post@n4.nabble.com> Message-ID: <553E4830.2050708@fourthworld.com> Tom Bodine wrote: > It would be really helpful if the LESSONS part of the Livecode site gave the > correct info for the player. > > Agreed! As a relative newcomer to LC, the two biggest obstacles I found to > learning it are out-of-date online lessons and the spotty indexing of the > Dictionary. Maybe when the dust settles from the LC 7/8 push there can be a > refresh of all that. It'll be needed with so much changed. That's the plan. Please note any specific inaccuracies in the comments for the Lessons so they can be addressed. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From prothero at earthednet.org Mon Apr 27 10:50:09 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Mon, 27 Apr 2015 07:50:09 -0700 Subject: struggling with player In-Reply-To: <553E4830.2050708@fourthworld.com> References: <1430140885255-4691542.post@n4.nabble.com> <553E4830.2050708@fourthworld.com> Message-ID: <34499FF1-4CBB-47E4-B768-D381D04207A4@earthednet.org> Richard, I have been using Google to find docs on livecode. I wonder if there was an old, unlinked lesson that Google found. I'll try to find it and make a comment. I think it was titled something like "including media". Thanks, Bill William Prothero http://es.earthednet.org > On Apr 27, 2015, at 7:31 AM, Richard Gaskin wrote: > > Tom Bodine wrote: > >> It would be really helpful if the LESSONS part of the Livecode site gave the >> correct info for the player. >> >> Agreed! As a relative newcomer to LC, the two biggest obstacles I found to >> learning it are out-of-date online lessons and the spotty indexing of the >> Dictionary. Maybe when the dust settles from the LC 7/8 push there can be a >> refresh of all that. It'll be needed with so much changed. > > That's the plan. Please note any specific inaccuracies in the comments for the Lessons so they can be addressed. > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gregory.lypny at videotron.ca Mon Apr 27 11:52:49 2015 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Mon, 27 Apr 2015 11:52:49 -0400 Subject: Need Help With FTP In-Reply-To: References: Message-ID: <84C159BB-8ABD-4755-8E77-4D9BF8E238D3@videotron.ca> Hi Robert and Richard, Robert, thanks for the tip. I?ll give it a try. This may be the problem as I was able to download 60,000 of 130,000 files without a problem until it stopped. When I restarted the loop, it stopped roughly every 200. > On Sat, Apr 25, 2015, at 4:44 AM,Robert Brenstein wrote: > > May be if you make a pause between successive downloads, the host > won't mind so much. They probably don't like robotic pulls of large > volumes. Richard, yes, put url works well. I too keep it simply. I?m not familiar with shared SSH keys, but I?ll look into it. Thanks. Gregory From userev at canelasoftware.com Mon Apr 27 12:14:52 2015 From: userev at canelasoftware.com (Mark Talluto) Date: Mon, 27 Apr 2015 09:14:52 -0700 Subject: Need Help With FTP In-Reply-To: <84C159BB-8ABD-4755-8E77-4D9BF8E238D3@videotron.ca> References: <84C159BB-8ABD-4755-8E77-4D9BF8E238D3@videotron.ca> Message-ID: <8EB07822-241B-45CF-91B0-6E7B3F2BDF16@canelasoftware.com> On Apr 27, 2015, at 8:52 AM, Gregory Lypny wrote: > Robert, thanks for the tip. I?ll give it a try. This may be the problem as I was able to download 60,000 of 130,000 files without a problem until it stopped. When I restarted the loop, it stopped roughly every 200. You are going to want good error checking for your download routine. In the event of a failure, simply pick up where you left off and download another n quantity of files. You could start with a list of files that you need to get and remove successful downloads from the list as they come down. When the download fails you can pick up again from the list. Best regards, Mark Talluto livecloud.io canelasoftware.com From ambassador at fourthworld.com Mon Apr 27 12:48:03 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 27 Apr 2015 09:48:03 -0700 Subject: Need Help With FTP In-Reply-To: <84C159BB-8ABD-4755-8E77-4D9BF8E238D3@videotron.ca> References: <84C159BB-8ABD-4755-8E77-4D9BF8E238D3@videotron.ca> Message-ID: <553E6843.2070100@fourthworld.com> Gregory Lypny wrote: > Richard, yes, put url works well. I too keep it simply. I?m not familiar with shared SSH keys, but I?ll look into it. Thanks. It's a game-changer. Once you have that set up you can use scp, rsync, and many other shell commands from LiveCode, easily and securely. There are many tutorials on how to set up shared SSH keys - this one is my favorite: Splash21 also wrote one in the forums: Keep me posted if I can be of any help with that. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From lists at mangomultimedia.com Mon Apr 27 13:23:40 2015 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 27 Apr 2015 13:23:40 -0400 Subject: Circle Progress Extension Message-ID: Hi all, The Extension Store tab in the Extensions Manager in LiveCode 8 seems a little sparse so I've added the first 3rd party extension to it. It is called "Circle Progress" and shows progress by filling in a circle. It doesn't seem that you can update extensions yet so if you find anything wrong, tough :-) I've filed a bug report so hopefully that gets addressed soon. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From pete at lcsql.com Mon Apr 27 13:56:33 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 27 Apr 2015 10:56:33 -0700 Subject: Image IDs Message-ID: I'm trying to wrap my head around how LC resolves references to image IDs when used as button icons or in the imageSource property. My fist confusion comes from the dictionary entry for the ID property. It lists ranges of image IDs that are reserved for specific purposes. The range 200,000-299,999 is described as "reserved for application use" What does that mean exactly? For example, if I create a new image in a stack, LC allocates it an id in the 1000 range upwards, not in the 200,000-299,999 range. Should I be changing the ID to be in the "reserved for application use" range? The next confusion comes from the dictionary entry for imageSource which includes what to me is an extremely badly written description of where LC looks for images and in what order, which to my simple mind is pretty much incomprehensible :-) For example, the first place it looks is "1) the stack of the object's behavior (if applicable)". Got it. Next on the list "2) the stack of the owner of the object's behavior". Isn't that the same as "the stack of the object's behavior"? An object can only be in one stack can't it? After that, there are a series of vertical ellipses ending with "n) the stack of the object's stack's behavior(if applicable)". I think that means that if the behavior is in a substack, this would cause it to look in that substack's main stack. But what do they vertical ellipses refer to? The rest of it is pretty comprehensible, except perhaps for "C) the object's stack's mainstacks substacks" Huh? The description makes no mention of looking in the stacksInUse which I know for a fact is searched for image IDs since I've successfully placed images in a library stack and references to them are correctly resolved. Anyone know when library stacks are searched relative to the other locations mentioned? The point of all this is I'm trying to determine if there is a possibility that an image ID I use may be duplicated in another developer's stack and the other developer's image used instead of mine. It seems there is since the locations searched include any open stacks and any library stacks. Finally, this area of LC seems really messy to me. If references to images were in the same format as behavior references, there would be no need for this complicated search hierarchy. Pete Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From jacque at hyperactivesw.com Mon Apr 27 13:58:11 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 27 Apr 2015 12:58:11 -0500 Subject: Enabling/Disabling MenuItems in LC In-Reply-To: <76CBC8AF-65EA-4C9D-B57F-CCB93CB604D2@icloud.com> References: <76CBC8AF-65EA-4C9D-B57F-CCB93CB604D2@icloud.com> Message-ID: <553E78B3.2010908@hyperactivesw.com> On 4/26/2015 1:23 PM, Terence Heaford wrote: > The shortcut keys I have set do not work for these items. > > menuItem 3 of menu "File" ? close > menuItem 1 of menu "Actions" ? Categories > menuItem 2 of menu "Actions" ? Find > If you haven't solved this yet, can you post the text of those menu buttons? There may be a misconfiguration somewhere. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Mon Apr 27 14:17:51 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 27 Apr 2015 11:17:51 -0700 Subject: Need Help With FTP In-Reply-To: References: Message-ID: On Fri, Apr 24, 2015 at 5:43 AM, Gregory Lypny wrote: > > Thanks for the detailed handler! I?ll give it a whirl. Blocking is not > really the problem for me; it?s the session timeouts or dropped connection > when downloading many files in a loop Unless you're using windows look at the command line wget, whose -C option will let you download continuing from where the file left off. You could access it with shell. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From prothero at earthednet.org Mon Apr 27 14:27:43 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 27 Apr 2015 11:27:43 -0700 Subject: struggling with player In-Reply-To: <553E4830.2050708@fourthworld.com> References: <1430140885255-4691542.post@n4.nabble.com> <553E4830.2050708@fourthworld.com> Message-ID: <041C6462-3F47-4F68-8D55-9774072E5840@earthednet.org> Richard: It appears that I was confused. The lesson I referred to was using the newer AVFoundation player. So, I apologize if anybody was confused by it. Anyway, one of the reason that I was confused was that the lesson was so brief and there wasn?t enough information to make the lesson really useful. The user guide, and some help from Klaus did the trick, though. Regards, Bill > On Apr 27, 2015, at 7:31 AM, Richard Gaskin wrote: > > Tom Bodine wrote: > >> It would be really helpful if the LESSONS part of the Livecode site gave the >> correct info for the player. >> >> Agreed! As a relative newcomer to LC, the two biggest obstacles I found to >> learning it are out-of-date online lessons and the spotty indexing of the >> Dictionary. Maybe when the dust settles from the LC 7/8 push there can be a >> refresh of all that. It'll be needed with so much changed. > > That's the plan. Please note any specific inaccuracies in the comments for the Lessons so they can be addressed. > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Apr 27 14:38:24 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 27 Apr 2015 11:38:24 -0700 Subject: Need Help With FTP In-Reply-To: References: Message-ID: <553E8220.1050406@fourthworld.com> Dr. Hawkins wrote: > On Fri, Apr 24, 2015 at 5:43 AM, Gregory Lypny wrote: > >> Thanks for the detailed handler! I?ll give it a whirl. Blocking is >> not really the problem for me; it?s the session timeouts or dropped >> connection when downloading many files in a loop > > Unless you're using windows look at the command line wget, whose -C > option will let you download continuing from where the file left > off. You could access it with shell. And if you are using Windows you can install Cygwin to avoid having to deal with Microsoft-specific PowerShell and use industry standard shell commands instead - it's free and open under GPL: For transferring large numbers of files I prefer rsync because it uses an uncommonly smart algo to avoid re-sending things that have already been sent, and has an on-the-fly compression option for quick transport: I most commonly use the "-avz" options when transferring outside my local network (just "-av" for local, since the compression isn't as useful over Gb ethernet): rsync -avz ~/LocalFolder/ user at server:/RemoteFolder/ ...where: a = archive mode, which is recursive and maintains mod dates, etc. v = verbose, so you see a list of what's sent; if you don't need that you can safely omit the "v" z = on-the-fly gzip compression of file chunks for faster transport Digital Ocean has a good introductory tutorial on rsync: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From harrison at all-auctions.com Mon Apr 27 14:55:02 2015 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 27 Apr 2015 14:55:02 -0400 Subject: Image IDs In-Reply-To: References: Message-ID: Hi Pete, Why don?t you create your own names for referring to your images. You can call them something like PeteImage123001 - PeteImage88999. Then you don?t have to concern yourself with image ID?s. You can do the same with the button you create as well. I hope that works for you so you don?t have to keep wrestling with image IDs. On the other hand, you do ask some interesting questions, and it would be nice to know the answers as some of the documentation is rather obscure and confusing. Good luck! Rick > On Apr 27, 2015, at 1:56 PM, Peter Haworth wrote: > > I'm trying to wrap my head around how LC resolves references to image IDs > when used as button icons or in the imageSource property. > > My fist confusion comes from the dictionary entry for the ID property. It > lists ranges of image IDs that are reserved for specific purposes. The > range 200,000-299,999 is described as "reserved for application use" What > does that mean exactly? For example, if I create a new image in a stack, > LC allocates it an id in the 1000 range upwards, not in the 200,000-299,999 > range. Should I be changing the ID to be in the "reserved for application > use" range? > > The next confusion comes from the dictionary entry for imageSource which > includes what to me is an extremely badly written description of where LC > looks for images and in what order, which to my simple mind is pretty much > incomprehensible :-) > > For example, the first place it looks is "1) the stack of the object's > behavior (if applicable)". Got it. > > Next on the list "2) the stack of the owner of the object's behavior". > Isn't that the same as "the stack of the object's behavior"? An object can > only be in one stack can't it? > > After that, there are a series of vertical ellipses ending with "n) the > stack of the object's stack's behavior(if applicable)". I think that means > that if the behavior is in a substack, this would cause it to look in that > substack's main stack. But what do they vertical ellipses refer to? > > The rest of it is pretty comprehensible, except perhaps for "C) the > object's stack's mainstacks substacks" Huh? > > The description makes no mention of looking in the stacksInUse which I know > for a fact is searched for image IDs since I've successfully placed images > in a library stack and references to them are correctly resolved. Anyone > know when library stacks are searched relative to the other locations > mentioned? > > The point of all this is I'm trying to determine if there is a possibility > that an image ID I use may be duplicated in another developer's stack and > the other developer's image used instead of mine. It seems there is since > the locations searched include any open stacks and any library stacks. > > Finally, this area of LC seems really messy to me. If references to images > were in the same format as behavior references, there would be no need for > this complicated search hierarchy. > > Pete > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Mon Apr 27 15:20:30 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 27 Apr 2015 12:20:30 -0700 Subject: Image IDs In-Reply-To: References: Message-ID: Thanks Rick. Problem is, if I want to define an icon for a button, for example, I can only use a simple image ID. For a time I was setting the button icons to the name of an image on startup as you suggested but there's still confusion in my mind as to whether the resulting image ID might resolve to an image in someone else's stack. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Apr 27, 2015 at 11:55 AM, Rick Harrison wrote: > Hi Pete, > > Why don?t you create your own names for referring to your images. > You can call them something like PeteImage123001 - PeteImage88999. > Then you don?t have to concern yourself with image ID?s. You can do the > same with the button you create as well. > > I hope that works for you so you don?t have to keep wrestling with > image IDs. > > On the other hand, you do ask some interesting questions, and it would > be nice to know the answers as some of the documentation is rather > obscure and confusing. > > Good luck! > > Rick > > > > On Apr 27, 2015, at 1:56 PM, Peter Haworth wrote: > > > > I'm trying to wrap my head around how LC resolves references to image IDs > > when used as button icons or in the imageSource property. > > > > My fist confusion comes from the dictionary entry for the ID property. > It > > lists ranges of image IDs that are reserved for specific purposes. The > > range 200,000-299,999 is described as "reserved for application use" What > > does that mean exactly? For example, if I create a new image in a stack, > > LC allocates it an id in the 1000 range upwards, not in the > 200,000-299,999 > > range. Should I be changing the ID to be in the "reserved for > application > > use" range? > > > > The next confusion comes from the dictionary entry for imageSource which > > includes what to me is an extremely badly written description of where LC > > looks for images and in what order, which to my simple mind is pretty > much > > incomprehensible :-) > > > > For example, the first place it looks is "1) the stack of the object's > > behavior (if applicable)". Got it. > > > > Next on the list "2) the stack of the owner of the object's behavior". > > Isn't that the same as "the stack of the object's behavior"? An object > can > > only be in one stack can't it? > > > > After that, there are a series of vertical ellipses ending with "n) the > > stack of the object's stack's behavior(if applicable)". I think that > means > > that if the behavior is in a substack, this would cause it to look in > that > > substack's main stack. But what do they vertical ellipses refer to? > > > > The rest of it is pretty comprehensible, except perhaps for "C) the > > object's stack's mainstacks substacks" Huh? > > > > The description makes no mention of looking in the stacksInUse which I > know > > for a fact is searched for image IDs since I've successfully placed > images > > in a library stack and references to them are correctly resolved. Anyone > > know when library stacks are searched relative to the other locations > > mentioned? > > > > The point of all this is I'm trying to determine if there is a > possibility > > that an image ID I use may be duplicated in another developer's stack and > > the other developer's image used instead of mine. It seems there is > since > > the locations searched include any open stacks and any library stacks. > > > > Finally, this area of LC seems really messy to me. If references to > images > > were in the same format as behavior references, there would be no need > for > > this complicated search hierarchy. > > > > Pete > > > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Mon Apr 27 15:43:28 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 27 Apr 2015 12:43:28 -0700 Subject: Need Help With FTP In-Reply-To: <553E8220.1050406@fourthworld.com> References: <553E8220.1050406@fourthworld.com> Message-ID: On Mon, Apr 27, 2015 at 11:38 AM, Richard Gaskin wrote: > I most commonly use the "-avz" options when transferring outside my local > network (just "-av" for local, since the compression isn't as useful over > Gb ethernet): > I use -auvz by finger memory. The u skips files that are newer on the receiver, so if you run it both directions, both get the most recent versions. I use this to keep laptop and desktop in sync. But does it support ftp protocol? I though it needed ssh access. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Mon Apr 27 16:14:29 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 27 Apr 2015 15:14:29 -0500 Subject: Image IDs In-Reply-To: References: Message-ID: <553E98A5.9090405@hyperactivesw.com> On 4/27/2015 12:56 PM, Peter Haworth wrote: > My fist confusion comes from the dictionary entry for the ID property. It > lists ranges of image IDs that are reserved for specific purposes. The > range 200,000-299,999 is described as "reserved for application use" What > does that mean exactly? For example, if I create a new image in a stack, > LC allocates it an id in the 1000 range upwards, not in the 200,000-299,999 > range. Should I be changing the ID to be in the "reserved for application > use" range? The lower IDs are historical, and the behavior hasn't changed since MetaCard. But when LC took over the engine they assigned blocks of IDs to avoid the conflicts that can occur. It doesn't always work, because people tend to leave the IDs at their default assignments. When I create apps that will be self-contained I don't bother to change ID numbers, but if I'm creating tools for other people's use I do. If you remember to change the first new object ID during development, all subsequent objects will increment by 1 from there, so if you think ahead you can change only one ID and all your other controls will be in range. "Reserved for application use" means the range is reserved for your own apps or stacks, and the IDE will never assign numbers in that range. For the rest of it, my interpretation is: > 1) The stack of the object's behavior (if applicable) Clear enough, I think. If a behavior is assigned, the engine first looks at the stack containing the behavior button. > 2) The stack of the owner of the object's behavior (if applicable) > ... If the behavior button is in a substack, it's owner is the mainstack, so it looks at that mainstack next. This may or may not be the original object's mainstack because behaviors can be stored in other unrelated stacks. I think the elipsis is because behaviors can be chained, so the engine will follow the chain, looking in every stack that contains a behavior in the chain. > n) The stack of the object's stack's behavior (if applicable) If the stack where the object lives has a behavior assigned, it looks in the stack containing that behavior. > A) The object's stack Now that behaviors are out of the way, it looks in the original objects's stack. > B) The object's stack's mainstack (if a substack) > C) The object's stack's mainstacks substacks > D) The list of open stacks, in order they were loaded A-D follows the original search path before behaviors were implemented, and traces the stack hierarchy from substack to mainstack. (C) is missing an apostrophe, it should be "the object's stack's mainstack's substacks." Or better, "the other substacks of the object's mainstack." I.e., it searches all the other substacks in the stackfile. If the image still isn't found, it moves on to other separate open stacks. And yes, this could use a rewrite. It reads like some engineer wrote it while looking at the code. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Mon Apr 27 16:28:09 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 27 Apr 2015 13:28:09 -0700 Subject: Need Help With FTP In-Reply-To: References: Message-ID: <553E9BD9.9060804@fourthworld.com> Dr. Hawkins wrote: > On Mon, Apr 27, 2015 at 11:38 AM, Richard Gaskin wrote: > >> I most commonly use the "-avz" options when transferring outside my >> local network (just "-av" for local, since the compression isn't as >> useful over Gb ethernet): > > I use -auvz by finger memory. The u skips files that are newer on the > receiver, so if you run it both directions, both get the most recent > versions. I use this to keep laptop and desktop in sync. That's one of the great things about rsync - very flexible. > But does it support ftp protocol? I though it needed ssh access. It does require SSH, and moreover if used within LiveCode requires shared SSH keys to avoid the password prompt, which is why I'd provided the link to the tutorial on setting up shared keys. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From t.heaford at icloud.com Mon Apr 27 16:43:38 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Mon, 27 Apr 2015 21:43:38 +0100 Subject: Enabling/Disabling MenuItems in LC In-Reply-To: <553E78B3.2010908@hyperactivesw.com> References: <76CBC8AF-65EA-4C9D-B57F-CCB93CB604D2@icloud.com> <553E78B3.2010908@hyperactivesw.com> Message-ID: <01E0C410-BF98-4603-ADD3-949DF32669D4@icloud.com> > On 27 Apr 2015, at 18:58, J. Landman Gay wrote: > > If you haven't solved this yet, can you post the text of those menu buttons? There may be a misconfiguration somewhere. Thank you for your interest. When selecting menuItem 3 of menu "File" ? close I call a tidy up routine called ?closeDB? which closes the DB and carries out some other tidying up including setting the uDBOpen of stack ?TH? to false. This is called from the ?File? menu script menuPick. I have now placed a call to setupMenus in the closeDB routine and this resolves the issue. The only issue I can think of is the timing of calls within LC. Is the menuBar script called before or after the menuPick pItemName script in the individual menus? All the best Terry From pete at lcsql.com Mon Apr 27 17:56:02 2015 From: pete at lcsql.com (Peter Haworth) Date: Mon, 27 Apr 2015 14:56:02 -0700 Subject: Image IDs In-Reply-To: <553E98A5.9090405@hyperactivesw.com> References: <553E98A5.9090405@hyperactivesw.com> Message-ID: On Mon, Apr 27, 2015 at 1:14 PM, J. Landman Gay wrote: > And yes, this could use a rewrite. It reads like some engineer wrote it > while looking at the code. :) Thanks Jacque, your explanation is much clearer. Somehow, sentences with more than one possessive in them (like C above) go right over my head! I'm still left with the questions of is it possible that an image ID in the 200,000-299,999 range in a plugin rather than a standalone could exist in another developer's plugin and be used instead of mine. I guess the answer to that is yes since the last item in the search path is all open stacks, plus there's the issue of library stacks which I know are searched. I'm not over worried about it since it seems pretty unlikely but it does seem that it could happen. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From prothero at earthednet.org Mon Apr 27 18:06:40 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 27 Apr 2015 15:06:40 -0700 Subject: struggling with player In-Reply-To: <041C6462-3F47-4F68-8D55-9774072E5840@earthednet.org> References: <1430140885255-4691542.post@n4.nabble.com> <553E4830.2050708@fourthworld.com> <041C6462-3F47-4F68-8D55-9774072E5840@earthednet.org> Message-ID: I?m going by the lesson at: http://lessons.runrev.com/m/4069/l/12353-how-do-i-play-sounds-on-an-ios-device to get sound files to play on the iPhone. However, I get no sound in the simulator. It finds the sound files (I test that the file exists), but no sound. And, the player doesn?t show any controls, even tho I have specified to show the controls. Can I use the same play commands that I do in the development environment, or do I have to use the special mobile sound commands, like: mobilePlaySoundOnChannel commands? I don?t see this in the lessons, so I?m asking. So, I guess I?m asking if I have to use completely different commands when in mobile environment. The lesson doesn?t say it. Regards, Bill > On Apr 27, 2015, at 11:27 AM, William Prothero wrote: > > Richard: > It appears that I was confused. The lesson I referred to was using the newer AVFoundation player. So, I apologize if anybody was confused by it. Anyway, one of the reason that I was confused was that the lesson was so brief and there wasn?t enough information to make the lesson really useful. The user guide, and some help from Klaus did the trick, though. > > Regards, > Bill > >> On Apr 27, 2015, at 7:31 AM, Richard Gaskin wrote: >> >> Tom Bodine wrote: >> >>> It would be really helpful if the LESSONS part of the Livecode site gave the >>> correct info for the player. >>> >>> Agreed! As a relative newcomer to LC, the two biggest obstacles I found to >>> learning it are out-of-date online lessons and the spotty indexing of the >>> Dictionary. Maybe when the dust settles from the LC 7/8 push there can be a >>> refresh of all that. It'll be needed with so much changed. >> >> That's the plan. Please note any specific inaccuracies in the comments for the Lessons so they can be addressed. >> >> -- >> Richard Gaskin >> LiveCode Community Manager >> richard at livecode.org >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Mon Apr 27 18:11:02 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 27 Apr 2015 15:11:02 -0700 Subject: struggling with player In-Reply-To: References: <1430140885255-4691542.post@n4.nabble.com> <553E4830.2050708@fourthworld.com> <041C6462-3F47-4F68-8D55-9774072E5840@earthednet.org> Message-ID: <66ED34F3-B29C-4C93-963D-BB6BA7901CEF@earthednet.org> Ignore last post. Sorry. Seems that just after I post a question, I see where my error was. So, thanks for being there, but I solved the problem. The syntax for the mobile player is slightly different from that in the development environment. Bill > On Apr 27, 2015, at 3:06 PM, William Prothero wrote: > > I?m going by the lesson at: > http://lessons.runrev.com/m/4069/l/12353-how-do-i-play-sounds-on-an-ios-device > to get sound files to play on the iPhone. However, I get no sound in the simulator. It finds the sound files (I test that the file exists), but no sound. And, the player doesn?t show any controls, even tho I have specified to show the controls. > > Can I use the same play commands that I do in the development environment, or do I have to use the special mobile sound commands, like: > mobilePlaySoundOnChannel commands? I don?t see this in the lessons, so I?m asking. > > So, I guess I?m asking if I have to use completely different commands when in mobile environment. The lesson doesn?t say it. > > Regards, > Bill > > > > >> On Apr 27, 2015, at 11:27 AM, William Prothero wrote: > >> >> Richard: >> It appears that I was confused. The lesson I referred to was using the newer AVFoundation player. So, I apologize if anybody was confused by it. Anyway, one of the reason that I was confused was that the lesson was so brief and there wasn?t enough information to make the lesson really useful. The user guide, and some help from Klaus did the trick, though. >> >> Regards, >> Bill >> >>> On Apr 27, 2015, at 7:31 AM, Richard Gaskin wrote: >>> >>> Tom Bodine wrote: >>> >>>> It would be really helpful if the LESSONS part of the Livecode site gave the >>>> correct info for the player. >>>> >>>> Agreed! As a relative newcomer to LC, the two biggest obstacles I found to >>>> learning it are out-of-date online lessons and the spotty indexing of the >>>> Dictionary. Maybe when the dust settles from the LC 7/8 push there can be a >>>> refresh of all that. It'll be needed with so much changed. >>> >>> That's the plan. Please note any specific inaccuracies in the comments for the Lessons so they can be addressed. >>> >>> -- >>> Richard Gaskin >>> LiveCode Community Manager >>> richard at livecode.org >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Apr 27 18:14:22 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 27 Apr 2015 15:14:22 -0700 Subject: struggling with player In-Reply-To: References: Message-ID: <553EB4BE.2@fourthworld.com> William Prothero wrote: > I?m going by the lesson at: > http://lessons.runrev.com/m/4069/l/12353-how-do-i-play-sounds-on-an-ios-device > to get sound files to play on the iPhone. However, I get no sound in the simulator. It finds the sound files (I test that the file exists), but no sound. And, the player doesn?t show any controls, even tho I have specified to show the controls. > > Can I use the same play commands that I do in the development environment, or do I have to use the special mobile sound commands, like: > mobilePlaySoundOnChannel commands? I don?t see this in the lessons, so I?m asking. > > So, I guess I?m asking if I have to use completely different commands when in mobile environment. The lesson doesn?t say it. That lesson includes this note: Important: The iPhone simulator appears to have somewhat buggy support for sound playback via AVAudioPlayer ? it will intermittently fail for no reason. Therefore, if you are using the play command be sure to test your application on a real device. How does it work when you test on your phone? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Mon Apr 27 19:00:05 2015 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 27 Apr 2015 16:00:05 -0700 Subject: Need Help With FTP In-Reply-To: <553E9BD9.9060804@fourthworld.com> References: <553E9BD9.9060804@fourthworld.com> Message-ID: On Mon, Apr 27, 2015 at 1:28 PM, Richard Gaskin wrote: > > But does it support ftp protocol? I though it needed ssh access. > > It does require SSH, and moreover if used within LiveCode requires shared > SSH keys to avoid the password prompt, which is why I'd provided the link > to the tutorial on setting up shared keys. OK, I fell better about my memory. Isn't he trying to access a government repository, which is unlikely to have ssh available to users? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pystcat at gmail.com Mon Apr 27 19:03:40 2015 From: pystcat at gmail.com (PystCat) Date: Mon, 27 Apr 2015 19:03:40 -0400 Subject: Circle Progress Extension In-Reply-To: References: Message-ID: <3C9C6A11-467C-4079-A4FC-7C5CE1BFC452@gmail.com> THIS. IS. SO. COOL. I think I'm going to like these new extensions. Thanks Trevor... I'm playing with it now. Paul > On Apr 27, 2015, at 1:23 PM, Trevor DeVore wrote: > > Hi all, > > The Extension Store tab in the Extensions Manager in LiveCode 8 seems a > little sparse so I've added the first 3rd party extension to it. It is > called "Circle Progress" and shows progress by filling in a circle. > > It doesn't seem that you can update extensions yet so if you find anything > wrong, tough :-) I've filed a bug report so hopefully that gets addressed > soon. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.com - www.clarify-it.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Mon Apr 27 19:25:31 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 27 Apr 2015 16:25:31 -0700 Subject: struggling with player In-Reply-To: <553EB4BE.2@fourthworld.com> References: <553EB4BE.2@fourthworld.com> Message-ID: <48E497AA-7AAE-4798-9650-0594CD705D64@earthednet.org> Richard: I have it working in the simulator now, EXCEPT for the volume setting. The volume doesn?t have any effect. So, I guess I should load it onto my iPad and see if it works? iPhoneSetSoundChannelVolume "background1",tVol Bill > On Apr 27, 2015, at 3:14 PM, Richard Gaskin wrote: > > William Prothero wrote: >> I?m going by the lesson at: >> http://lessons.runrev.com/m/4069/l/12353-how-do-i-play-sounds-on-an-ios-device >> to get sound files to play on the iPhone. However, I get no sound in the simulator. It finds the sound files (I test that the file exists), but no sound. And, the player doesn?t show any controls, even tho I have specified to show the controls. >> >> Can I use the same play commands that I do in the development environment, or do I have to use the special mobile sound commands, like: >> mobilePlaySoundOnChannel commands? I don?t see this in the lessons, so I?m asking. >> >> So, I guess I?m asking if I have to use completely different commands when in mobile environment. The lesson doesn?t say it. > > That lesson includes this note: > > Important: The iPhone simulator appears to have somewhat > buggy support for sound playback via AVAudioPlayer ? it > will intermittently fail for no reason. Therefore, if > you are using the play command be sure to test your > application on a real device. > > How does it work when you test on your phone? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Apr 27 19:27:42 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 27 Apr 2015 16:27:42 -0700 Subject: Need Help With FTP In-Reply-To: References: Message-ID: <553EC5EE.5060608@fourthworld.com> Dr. Hawkins wrote: > On Mon, Apr 27, 2015 at 1:28 PM, Richard Gaskin wrote: > >> > But does it support ftp protocol? I though it needed ssh access. >> >> It does require SSH, and moreover if used within LiveCode requires >> shared SSH keys to avoid the password prompt, which is why I'd >> provided the link to the tutorial on setting up shared keys. > > > OK, I fell better about my memory. Isn't he trying to access a > government repository, which is unlikely to have ssh available > to users? Seems I missed that. I thought he was posting to his own server. It wouldn't have occurred to me that a government site still uses FTP. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Mon Apr 27 20:12:03 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 27 Apr 2015 17:12:03 -0700 Subject: invalid entitlements Message-ID: Folks: I?m trying to load my sound app onto an iPad to test it. I get the message ?The executable was signed with invalid entitlements?. Another app I created and loaded, worked fine. I use the same provisioning profile. Where should I look to sort this out? Thanks for any advice. Regards, Bill William A. Prothero http://es.earthednet.org/ From prothero at earthednet.org Mon Apr 27 20:26:13 2015 From: prothero at earthednet.org (William Prothero) Date: Mon, 27 Apr 2015 17:26:13 -0700 Subject: invalid entitlements In-Reply-To: References: Message-ID: Answered my own question. Bill https://developer.apple.com/library/ios/qa/qa1878/_index.html > On Apr 27, 2015, at 5:12 PM, William Prothero wrote: > > Folks: > I?m trying to load my sound app onto an iPad to test it. I get the message ?The executable was signed with invalid entitlements?. Another app I created and loaded, worked fine. I use the same provisioning profile. > > Where should I look to sort this out? > > Thanks for any advice. > Regards, > Bill > > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Apr 27 21:26:21 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 27 Apr 2015 20:26:21 -0500 Subject: Enabling/Disabling MenuItems in LC In-Reply-To: <01E0C410-BF98-4603-ADD3-949DF32669D4@icloud.com> References: <76CBC8AF-65EA-4C9D-B57F-CCB93CB604D2@icloud.com> <553E78B3.2010908@hyperactivesw.com> <01E0C410-BF98-4603-ADD3-949DF32669D4@icloud.com> Message-ID: <553EE1BD.50400@hyperactivesw.com> On 4/27/2015 3:43 PM, Terence Heaford wrote: > When selecting > > menuItem 3 of menu "File" ? close > > I call a tidy up routine called ?closeDB? which closes the DB and > carries out some other tidying up including setting the uDBOpen of > stack ?TH? to false. This is called from the ?File? menu script > menuPick. > > I have now placed a call to setupMenus in the closeDB routine and > this resolves the issue. I thought the problem was that the keyboard shortcuts weren't working, which usually implies a misconfigured key assignment in the text of the button (not it's script, the menu assignments.) But it sounds like you've figured it out. > Is the menuBar script called before or after the menuPick pItemName > script in the individual menus? LC menus are just buttons in a group and they follow the normal message hierarchy. So the menuPick in the button will trigger first, and if not handled, is passed to the menu group. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Apr 27 21:34:14 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 27 Apr 2015 20:34:14 -0500 Subject: Image IDs In-Reply-To: References: <553E98A5.9090405@hyperactivesw.com> Message-ID: <553EE396.9060208@hyperactivesw.com> On 4/27/2015 4:56 PM, Peter Haworth wrote: > I'm still left with the questions of is it possible that an image ID in the > 200,000-299,999 range in a plugin rather than a standalone could exist in > another developer's plugin and be used instead of mine. I guess the answer > to that is yes since the last item in the search path is all open stacks, > plus there's the issue of library stacks which I know are searched. Right, it could happen, though up in those high ranges the odds are lower. But if your images are used only in your own plugin stacks then there is no problem because your plugin stack will be searched before the others. That's why IDs still work in multiple open stacks that all have an image with an ID of, say, 1005. The stack that needs the image will be searched first. Most conflicts happen when an image is referenced from another stack, and the second conflicting image is in a stack that happens to be hit on first. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobwarren at howsoft.com Mon Apr 27 23:42:19 2015 From: bobwarren at howsoft.com (Bob Warren) Date: Tue, 28 Apr 2015 00:42:19 -0300 Subject: [ANN] "Self-tailoring" Unicode Chooser Widgets Message-ID: <553F019B.4070703@howsoft.com> Now 100% UTF-8 Unicode (no more HTML for file I-O). Multiple file selection. Better navigation. Much easier to employ in your app. Links (info, and single file download): http://www.howsoft.com/runrev/ulinchoosers/ (Linux) http://www.howsoft.com/runrev/uwinchoosers/ (Windows) From t.heaford at icloud.com Tue Apr 28 02:42:54 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Tue, 28 Apr 2015 07:42:54 +0100 Subject: Enabling/Disabling MenuItems in LC In-Reply-To: <553EE1BD.50400@hyperactivesw.com> References: <76CBC8AF-65EA-4C9D-B57F-CCB93CB604D2@icloud.com> <553E78B3.2010908@hyperactivesw.com> <01E0C410-BF98-4603-ADD3-949DF32669D4@icloud.com> <553EE1BD.50400@hyperactivesw.com> Message-ID: > On 28 Apr 2015, at 02:26, J. Landman Gay wrote: > > LC menus are just buttons in a group and they follow the normal message hierarchy. So the menuPick in the button will trigger first, and if not handled, is passed to the menu group. I was trying to use LC?s Menu system in the way Apple deals with things in Cocoa but it does not work like that. I only needed to change the status of menuItems, enabled/disabled, by using the menuPick routine for each item not by changing the status in the menubar routine. This must have confused the shortcuts somehow. So, this begs the question. Trying to think of a situation?.. When is there a need to use the menubar script? on mouseDown tMenu if tMenu = 1 then ? your code end if end mouseDown All the best and thanks Terry From richmondmathewson at gmail.com Tue Apr 28 02:43:40 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 28 Apr 2015 09:43:40 +0300 Subject: LC Builder for sleepy types? Message-ID: <553F2C1C.4000803@gmail.com> Like me! Is there any way to convert small LC scripts into the LC Builder language? While the LC 8 DPs provide "a first look at LiveCode?s new ?LiveCode Builder? language", there is no comprehensive guide to LC Builder . . . . . . is there something like this lurking on a computer up at the mothership in Edinburgh? . . . is something like this going to be made available for those who do not intuitively grasp a new programming language on the basis of a few, fairly scanty examples? Help! Richmond. From t.heaford at icloud.com Tue Apr 28 02:50:21 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Tue, 28 Apr 2015 07:50:21 +0100 Subject: Enabling/Disabling MenuItems in LC In-Reply-To: References: <76CBC8AF-65EA-4C9D-B57F-CCB93CB604D2@icloud.com> <553E78B3.2010908@hyperactivesw.com> <01E0C410-BF98-4603-ADD3-949DF32669D4@icloud.com> <553EE1BD.50400@hyperactivesw.com> Message-ID: <3287FC92-16F6-4618-8545-B304998BB5E6@icloud.com> No need to answer, got it now. Thanks Terry > On 28 Apr 2015, at 07:42, Terence Heaford wrote: > > So, this begs the question. Trying to think of a situation?.. > > When is there a need to use the menubar script? > > on mouseDown tMenu > if tMenu = 1 then > ? your code > end if > end mouseDown From richmondmathewson at gmail.com Tue Apr 28 02:52:58 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 28 Apr 2015 09:52:58 +0300 Subject: [OT] upgrading Linux to 64 bit Message-ID: <553F2E4A.4020203@gmail.com> I have been running an Ubuntu derivative 32 bit distro for some years now, and should like to upgrade to a 64 bit version. My hard drive is partitioned so that my /Home stuff is on a different partition to the Boot folder and so on. Can I "just" install a 64 bit version via the "something else" button, retaining my Home partition so that all my settings and so forth are preserved? This has been, mainly, necessitated by VMWare going "off" with Kernel 3.19. It would also be "fun" (?????) to run the LiveCode 8.0.0 64 bit releases. Richmond. From rolf.kocherhans at id.uzh.ch Tue Apr 28 03:05:51 2015 From: rolf.kocherhans at id.uzh.ch (Rolf Kocherhans) Date: Tue, 28 Apr 2015 09:05:51 +0200 Subject: [ANN] Yosemite Styles Window Plugin (free) Message-ID: Hello Everyone... I wanted to have modern OS X style native windows (with Icons in the Titlebar) in LC for a very long time - I made an enhancement request in the Quality Control Center over a year ago: http://quality.runrev.com/show_bug.cgi?id=12069 Unfortunately there is not much going on with my request :-( ?! So, I decided to create a Plugin, that creates such windows with the windowShape technique myself... I had many problems with stack resizing and some other routines, luckily I could get Bernd into the boat :-) - he and I made this Plugin together ! We hope you enjoy it - all scripts are open ! If you like this kind of windows in your own projects and would like to have real native style OS X windows (Cocoa) then please vote for my enhancement request or leave a comment on the page in the Quality Control Center with the link above. Download the Plugin from inside LiveCode (with the button: Sample Stacks) or from here: http://livecodeshare.runrev.com/stack/791/Yosemite-Style-Window-Creator Regards Rolf Kocherhans & Bernd Niggemann From peter.brett at livecode.com Tue Apr 28 04:06:54 2015 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 28 Apr 2015 09:06:54 +0100 Subject: [OT] upgrading Linux to 64 bit In-Reply-To: <553F2E4A.4020203@gmail.com> References: <553F2E4A.4020203@gmail.com> Message-ID: <6fc47a55d6363fcbe44042aff451f259@livecode.com> On 2015-04-28 07:52, Richmond wrote: > I have been running an Ubuntu derivative 32 bit distro for some years > now, and should > like to upgrade to a 64 bit version. > > My hard drive is partitioned so that my /Home stuff is on a different > partition to > the Boot folder and so on. > > Can I "just" install a 64 bit version via the "something else" button, > retaining my Home partition so > that all my settings and so forth are preserved? > When I transitioned from x86 to x86-64 Linux -- a few years ago now! -- I just carried my /home partition across to the new install and everything seemed to work absolutely fine. Anyway, I assume you make regular backups, right? ;-) Note that moving to 64-bit Linux is likely to be a big win in terms of performance, because the x86-64 architecture has a lot more registers. We saw a significant (>10%) speed-up in LiveCode x86-64 relative to LiveCode x86. Have fun! Peter -- Dr Peter Brett LiveCode Engine Development Team From peter.brett at livecode.com Tue Apr 28 04:41:19 2015 From: peter.brett at livecode.com (Peter TB Brett) Date: Tue, 28 Apr 2015 09:41:19 +0100 Subject: LC Builder for sleepy =?UTF-8?Q?types=3F?= In-Reply-To: <553F2C1C.4000803@gmail.com> References: <553F2C1C.4000803@gmail.com> Message-ID: On 2015-04-28 07:43, Richmond wrote: > Like me! > > Is there any way to convert small LC scripts into the LC Builder > language? > > While the LC 8 DPs provide "a first look at LiveCode?s new ?LiveCode > Builder? language", there is no > comprehensive guide to LC Builder . . . > > . . . is there something like this lurking on a computer up at the > mothership in Edinburgh? > > . . . is something like this going to be made available for those who > do not intuitively grasp > a new programming language on the basis of a few, fairly scanty > examples? Hi Richmond, Although you can write a lot of LiveCode Script (LCS) programs in LiveCode Builder (LCB), it's not really practical to write a tool to automatically transform LCS programs to LCB. There are a number of reasons for this: - the LCB language does work in quite a different way to Script; many programs in LCS just wouldn't be written in the same way in LCB. For example, LCB has a "List" type, which isn't present in LCS, but is incredibly useful. - LCB is a lot stricter than Script in many respects; programs that take advantage of LCS's tolerant and forgiving nature would generate a lot of errors. - currently, the LCB standard library is a lot smaller and far less incomplete than LCS's. For example, if you're running LC 8 on Windows, you currently can't even access files without either calling low-level platform C APIs (which you *can* do directly from LCB!) or calling into LCS. Many quick and useful LCS programs can't be written in LCB -- yet. - at the moment the LCB virtual machine (the bit of LC8 that *runs* a compiled LCB program) is a bit slow. For many programs, you wouldn't get much of a speed-up from converting to LCB -- or it might even run slower! All of those points sound really quite negative, but in reality LCB is very good and useful, and I am currently doing the *vast* majority of my LiveCode programming in LCB rather than using LiveCode Script. Also, LCB is *really good* for writing widgets! LCB's graphics syntax is very easy to use, and a widget can render custom graphics far more quickly and efficiently than LiveCode's "traditional" method for drawing custom graphics. In LC 8, many parts of the IDE are now implemented using widgets, and the overall result is for a much more responsive and robust experience. I really recommend reading these blog posts for examples of what can be achieved with LCB widgets (and how to create them): http://livecode.com/the-evolution-of-dragons/ http://www.bluemangolearning.com/livecode/2015/04/creating-a-busy-indicator-in-livecode-builder/ http://www.bluemangolearning.com/livecode/2015/03/creating-a-slider-widget/ http://www.bluemangolearning.com/livecode/2015/03/dawn-of-the-planet-of-the-widgets/ More internal blog posts are definitely on the cards -- I've been talking to some of the other people on our team about it this morning, and (as I understand it) there should be at least one LCB-focussed blog post coming out in the next week. LCB can be used to write things that aren't widgets, too. It can be used to add functions and commands to LCS by creating extension libraries. Recently I wrote a complete JSON parser/generator in pure LiveCode Builder, which you can find here: https://gist.github.com/peter-b/b54ba5587af240589513 This library is significantly faster than the LiveCode Script "EasyJSON" stack (https://github.com/luxlogica/easyjson) -- but, alas, it is still much slower than Monte's mergJSON. Hope some of that helps. Peter -- Dr Peter Brett LiveCode Engine Development Team From gregory.lypny at videotron.ca Tue Apr 28 08:41:35 2015 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Tue, 28 Apr 2015 08:41:35 -0400 Subject: Need Help With FTP In-Reply-To: References: Message-ID: <69659BD0-EDFE-4580-A30C-086A608D91CF@videotron.ca> Hi Richard, > On Tue, Apr 28, 2015, at 6:00 AM, Richard Gaskin: > > Seems I missed that. I thought he was posting to his own server. It > wouldn't have occurred to me that a government site still uses FTP. Yes, Doc Hawkins was right: I?m downloading from the Securities and Exchange Commission?s anonymous FTP site. There was nothing on their help pages about another protocol, although I may have missed it. But your tips about shared SSH keys will be helpful to me anyway because I do run my own server on a Mac for my students at the university. Regards, Gregory From devin_asay at byu.edu Tue Apr 28 10:36:54 2015 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 28 Apr 2015 14:36:54 +0000 Subject: Circle Progress Extension In-Reply-To: References: Message-ID: <9A739270-D679-4A17-B2AE-0DB91D615CE6@byu.edu> On Apr 27, 2015, at 11:23 AM, Trevor DeVore wrote: > Hi all, > > The Extension Store tab in the Extensions Manager in LiveCode 8 seems a > little sparse so I've added the first 3rd party extension to it. It is > called "Circle Progress" and shows progress by filling in a circle. > > It doesn't seem that you can update extensions yet so if you find anything > wrong, tough :-) I've filed a bug report so hopefully that gets addressed > soon. So is submission of extensions to the Livecode store working now? Devin Devin Asay Office of Digital Humanities Brigham Young University From lists at mangomultimedia.com Tue Apr 28 11:04:12 2015 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 28 Apr 2015 11:04:12 -0400 Subject: Circle Progress Extension In-Reply-To: <9A739270-D679-4A17-B2AE-0DB91D615CE6@byu.edu> References: <9A739270-D679-4A17-B2AE-0DB91D615CE6@byu.edu> Message-ID: On Tue, Apr 28, 2015 at 10:36 AM, Devin Asay wrote: > > On Apr 27, 2015, at 11:23 AM, Trevor DeVore > wrote: > > > Hi all, > > > > The Extension Store tab in the Extensions Manager in LiveCode 8 seems a > > little sparse so I've added the first 3rd party extension to it. It is > > called "Circle Progress" and shows progress by filling in a circle. > > > > It doesn't seem that you can update extensions yet so if you find > anything > > wrong, tough :-) I've filed a bug report so hopefully that gets addressed > > soon. > > So is submission of extensions to the Livecode store working now? > It did for me. I logged in at http://livecode.com and then clicked on "Developer" in the left column. There is a button to "Add New Extension". I have some other extensions to upload but I'm waiting for DP-3. There is an issue in DP-2 with using certain property names for widgets. Once DP-3 is out I can upload them. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From bobwarren at howsoft.com Tue Apr 28 11:44:53 2015 From: bobwarren at howsoft.com (Bob Warren) Date: Tue, 28 Apr 2015 12:44:53 -0300 Subject: "Self-tailoring" Unicode Chooser Widgets P.S. Message-ID: <553FAAF5.7050706@howsoft.com> Two more useful links: http://www.howsoft.com/runrev/downloads/vanilla_utf-8_chooser_demo_linux.txt http://www.howsoft.com/runrev/downloads/vanilla_utf-8_chooser_demo_windows.txt From lists at mangomultimedia.com Tue Apr 28 11:47:03 2015 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 28 Apr 2015 11:47:03 -0400 Subject: LC Builder for sleepy types? In-Reply-To: References: <553F2C1C.4000803@gmail.com> Message-ID: On Tue, Apr 28, 2015 at 4:41 AM, Peter TB Brett wrote: > > This library is significantly faster than the LiveCode Script "EasyJSON" > stack (https://github.com/luxlogica/easyjson) -- but, alas, it is still > much slower than Monte's mergJSON. Peter, Thanks for sharing the JSON library! Being able to work with [optional] typed variables in LC 8 (e.g. Lists) will make it much easier to work with formats like JSON. I like where this is headed. -- Trevor DeVore ScreenSteps www.screensteps.com - www.clarify-it.com From tore.nilsen at me.com Tue Apr 28 15:06:52 2015 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 28 Apr 2015 21:06:52 +0200 Subject: Inserting a character at the text insertion point in a field Message-ID: I try to make a script in a field to allow only numbers or the decimal sign to be entered into the field. To block any other key is easy, but I have run into problems when I try to insert the decimal sign at the text insertion point in the field. This script only allows me to insert the decimal sign at the end of the string. I seem to be unable to find any help in the lessons on the runner web site or in the dictionary. Does anyone have a smart solution that I can use to impress my students, and maybe help them in their preparations for their exam? on keyDown theKey if theKey is a number then pass keyDown end if if theKey is "." or theKey is "," then if the text of me is not empty and "." is not in me then put "." after me end if end if end keyDown ? Tore Nilsen From pete at lcsql.com Tue Apr 28 15:17:03 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 28 Apr 2015 12:17:03 -0700 Subject: Inserting a character at the text insertion point in a field In-Reply-To: References: Message-ID: Hi Tore, You'll need to to use the selectedChunk property of the field. Check out the dictionary entry for it but as long as no text is selected in the field, replace your put statement with: put word 4 of the selectedChunk of me into tPos put "." after char tPos of me Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 28, 2015 at 12:06 PM, Tore Nilsen wrote: > I try to make a script in a field to allow only numbers or the decimal > sign to be entered into the field. To block any other key is easy, but I > have run into problems when I try to insert the decimal sign at the text > insertion point in the field. > > This script only allows me to insert the decimal sign at the end of the > string. I seem to be unable to find any help in the lessons on the runner > web site or in the dictionary. Does anyone have a smart solution that I > can use to impress my students, and maybe help them in their preparations > for their exam? > > on keyDown theKey > if theKey is a number then > pass keyDown > end if > if theKey is "." or theKey is "," then > if the text of me is not empty and "." is not in me then > put "." after me > end if > end if > end keyDown > > ? > > Tore Nilsen > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tore.nilsen at me.com Tue Apr 28 15:23:23 2015 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 28 Apr 2015 21:23:23 +0200 Subject: Inserting a character at the text insertion point in a field In-Reply-To: References: Message-ID: Thank you! It did the trick nicely. Sometimes the solution is just too easy! In Norway comma is used as a decimal sign, and this way my students can make a script that will allow the user to write whatever decimal sign they choose. Tore > 28. apr. 2015 kl. 21.17 skrev Peter Haworth : > > Hi Tore, > You'll need to to use the selectedChunk property of the field. Check out > the dictionary entry for it but as long as no text is selected in the > field, replace your put statement with: > > put word 4 of the selectedChunk of me into tPos > put "." after char tPos of me > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Tue, Apr 28, 2015 at 12:06 PM, Tore Nilsen wrote: > >> I try to make a script in a field to allow only numbers or the decimal >> sign to be entered into the field. To block any other key is easy, but I >> have run into problems when I try to insert the decimal sign at the text >> insertion point in the field. >> >> This script only allows me to insert the decimal sign at the end of the >> string. I seem to be unable to find any help in the lessons on the runner >> web site or in the dictionary. Does anyone have a smart solution that I >> can use to impress my students, and maybe help them in their preparations >> for their exam? >> >> on keyDown theKey >> if theKey is a number then >> pass keyDown >> end if >> if theKey is "." or theKey is "," then >> if the text of me is not empty and "." is not in me then >> put "." after me >> end if >> end if >> end keyDown >> >> ? >> >> Tore Nilsen >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Tue Apr 28 15:26:19 2015 From: paul at livecode.org (Paul Hibbert) Date: Tue, 28 Apr 2015 12:26:19 -0700 Subject: Inserting a character at the text insertion point in a field In-Reply-To: References: Message-ID: Or another way, replace? > put "." after me ?with: put "." into the selection Works OK here, and allows you to replace a number with a period if you typed it wrong. Paul From tore.nilsen at me.com Tue Apr 28 15:30:23 2015 From: tore.nilsen at me.com (Tore Nilsen) Date: Tue, 28 Apr 2015 21:30:23 +0200 Subject: Inserting a character at the text insertion point in a field In-Reply-To: References: Message-ID: <13E56EDA-8044-4D1E-9818-9B1C30029D03@me.com> This gets better and better! The last solution seems to cover all eventualities! Thank you! Tore > 28. apr. 2015 kl. 21.26 skrev Paul Hibbert : > > Or another way, replace? > >> put "." after me > > ?with: > > put "." into the selection > > Works OK here, and allows you to replace a number with a period if you typed it wrong. > > Paul > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From johnpatten at me.com Tue Apr 28 15:34:18 2015 From: johnpatten at me.com (JOHN PATTEN) Date: Tue, 28 Apr 2015 12:34:18 -0700 Subject: iOS Profile Problems..."Could not find a valid identity..." Message-ID: <005BF181-3D65-498F-99E8-4D66E3BCD367@me.com> Hi All, I have messed up my iOS profile settings in Standalone Builder. Two days ago I built a Enterprise iOS standalone app fine. Made some change to the app, and attempted to save out a new standalone version and i got a ?could not find a valid identity to use for the selected profile? message and the build failed. (I think I some how changed the identifier name and missed that?water under the bridge now..) In troubleshooting, i think I have just made things worse. I would like to start from scratch. I am using following previous post, http://forums.livecode.com/viewtopic.php?f=7&t=22341 Vedus provides steps on recreating the necessary identities, keys, certs, etc. I stil was not successful. I want to start from scratch on the Apple Developer Portal. Should I delete all my certificates, identifiers, and provisioning profiles first, and then follow Vedus?s described steps, or does LiveCode have better documentation for setting up necessary components for building iOS apps? Also, in Standalone Settings, LiveCode is showing all my iOS profiles, even the ones that have long since expired. How do i delete these profiles from the StandAlone settings interface? I could not find anything that lays the process down from scratch. Again, this is using our Enterprise developer license. Thank you! From richmondmathewson at gmail.com Tue Apr 28 15:34:54 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 28 Apr 2015 22:34:54 +0300 Subject: Inserting a character at the text insertion point in a field In-Reply-To: References: Message-ID: <553FE0DE.8080905@gmail.com> On 28/04/15 22:06, Tore Nilsen wrote: > I try to make a script in a field to allow only numbers or the decimal sign to be entered into the field. To block any other key is easy, but I have run into problems when I try to insert the decimal sign at the text insertion point in the field. > > This script only allows me to insert the decimal sign at the end of the string. I seem to be unable to find any help in the lessons on the runner web site or in the dictionary. Does anyone have a smart solution that I can use to impress my students, and maybe help them in their preparations for their exam? > > on keyDown theKey > if theKey is a number then > pass keyDown > end if > if theKey is "." or theKey is "," then > if the text of me is not empty and "." is not in me then > put "." after me > end if > end if > end keyDown > > ? > > Tore Nilsen > _______________________________________________ > set the text of the selectedText to "3" Richmond. From pmbrig at gmail.com Tue Apr 28 15:48:07 2015 From: pmbrig at gmail.com (Peter M. Brigham) Date: Tue, 28 Apr 2015 15:48:07 -0400 Subject: Stack is Dirty? In-Reply-To: <5537CAC6.1020606@fourthworld.com> References: <5537609F.9080007@LinkIt.Com> <5537CAC6.1020606@fourthworld.com> Message-ID: Is there any message sent in LC when the cursor moves into the titlebar of a stack? It occurs to me that this would be a good trigger for checking the modifiedMark to indicate the need for saving. The workaround would be a frontscript mouseleave handler that checks to see if the final mouseloc is x,0, but if there is a dedicated message that would be simpler. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 22, 2015, at 12:22 PM, Richard Gaskin wrote: > Ray wrote: > >> I believe there's a key word which is a property you can use to detect >> whether a stack has changes which have not yet been saved. It's >> something like stackIsDirty but I can't find it anywhere. Does anybody >> remember this? > > There is a Mac-only stack property, the modifiedMark, which can be used to indicate to the user that a stack has unsaved changes (it colors the window's close button dark red), but I know of no engine-level way to monitor for changes in the engine. > > Would be nice, but given the many different ways we use LC it may not be practical. > > For example, in most apps changing the text of a field would be a change worth noting but changing the rect of a stack would not, but in LC changing any object rect, or any other property, might warrant noting an unsaved change. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Tue Apr 28 15:56:21 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 28 Apr 2015 19:56:21 +0000 (UTC) Subject: [OT] upgrading Linux to 64 bit References: <553F2E4A.4020203@gmail.com> <6fc47a55d6363fcbe44042aff451f259@livecode.com> Message-ID: Peter TB Brett writes: > When I transitioned from x86 to x86-64 Linux -- a few years ago now! -- > I just carried my /home partition across to the new install and > everything seemed to work absolutely fine. Just to be safe, you might also make sure your /etc and /opt directories are backed up as well. > Note that moving to 64-bit Linux is likely to be a big win in terms of > performance, because the x86-64 architecture has a lot more registers. > We saw a significant (>10%) speed-up in LiveCode x86-64 relative to > LiveCode x86. Indeed. -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Tue Apr 28 15:58:54 2015 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 28 Apr 2015 22:58:54 +0300 Subject: [OT] upgrading Linux to 64 bit In-Reply-To: References: <553F2E4A.4020203@gmail.com> <6fc47a55d6363fcbe44042aff451f259@livecode.com> Message-ID: <553FE67E.4030500@gmail.com> On 28/04/15 22:56, Mark Wieder wrote: > Peter TB Brett writes: > >> When I transitioned from x86 to x86-64 Linux -- a few years ago now! -- >> I just carried my /home partition across to the new install and >> everything seemed to work absolutely fine. > Just to be safe, you might also make sure your /etc and /opt directories > are backed up as well. > >> Note that moving to 64-bit Linux is likely to be a big win in terms of >> performance, because the x86-64 architecture has a lot more registers. >> We saw a significant (>10%) speed-up in LiveCode x86-64 relative to >> LiveCode x86. > Indeed. > Well, I suppose that is how I'm going to spend my May 1st holiday. Thanks for the advice. Richmond. From johnpatten at me.com Tue Apr 28 16:03:47 2015 From: johnpatten at me.com (JOHN PATTEN) Date: Tue, 28 Apr 2015 13:03:47 -0700 Subject: iOS Profile Problems..."Could not find a valid identity..." (SOLVED) In-Reply-To: <005BF181-3D65-498F-99E8-4D66E3BCD367@me.com> References: <005BF181-3D65-498F-99E8-4D66E3BCD367@me.com> Message-ID: Okay? maybe I?m just impatient. The certificates seemed to be acting odd the first time I double-clicked to install it. I deleted it from the KeyChain app, double clicked the certificate again to install, and it showed up in the KeyChain app as I remembered. There must be some kind of delayed reaction between when the cert gets created in the Developer site and when you can install it on your development machine??? I don?t know? This time the Standalone Builder created the app, and i was able to drag it over to the iPad successfully. All?s right with the world again :) Thank you! > On Apr 28, 2015, at 12:34 PM, JOHN PATTEN wrote: > > Hi All, > > I have messed up my iOS profile settings in Standalone Builder. > > Two days ago I built a Enterprise iOS standalone app fine. Made some change to the app, and attempted to save out a new standalone version and i got a ?could not find a valid identity to use for the selected profile? message and the build failed. (I think I some how changed the identifier name and missed that?water under the bridge now..) > > In troubleshooting, i think I have just made things worse. I would like to start from scratch. > > I am using following previous post, http://forums.livecode.com/viewtopic.php?f=7&t=22341 Vedus provides steps on recreating the necessary identities, keys, certs, etc. > > I stil was not successful. > > I want to start from scratch on the Apple Developer Portal. Should I delete all my certificates, identifiers, and provisioning profiles first, and then follow Vedus?s described steps, or does LiveCode have better documentation for setting up necessary components for building iOS apps? > > Also, in Standalone Settings, LiveCode is showing all my iOS profiles, even the ones that have long since expired. How do i delete these profiles from the StandAlone settings interface? > > I could not find anything that lays the process down from scratch. Again, this is using our Enterprise developer license. > > Thank you! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mwieder at ahsoftware.net Tue Apr 28 15:59:53 2015 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 28 Apr 2015 19:59:53 +0000 (UTC) Subject: [OT] upgrading Linux to 64 bit References: <553F2E4A.4020203@gmail.com> Message-ID: Richmond writes: > It would also be "fun" (?????) to run the LiveCode 8.0.0 64 bit releases. Although if that's the driving force behind the migration, I'd put it off for (quite) a while. 8.0 currently runs very poorly on linux. Even worse that 7.x, which is somewhat usable even though extremely slow and unresponsive. -- Mark Wieder ahsoftware at gmail.com From pete at lcsql.com Tue Apr 28 17:02:00 2015 From: pete at lcsql.com (Peter Haworth) Date: Tue, 28 Apr 2015 14:02:00 -0700 Subject: Inserting a character at the text insertion point in a field In-Reply-To: References: Message-ID: Thanks for that Paul, learned something new, yet again! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Apr 28, 2015 at 12:26 PM, Paul Hibbert wrote: > Or another way, replace? > > > put "." after me > > ?with: > > put "." into the selection > > Works OK here, and allows you to replace a number with a period if you > typed it wrong. > > Paul > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Tue Apr 28 17:33:42 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 28 Apr 2015 17:33:42 -0400 Subject: Stack is Dirty? In-Reply-To: Message-ID: <14d01f327f0-1c10-2fe6f@webprd-m98.mail.aol.com> Peter. Yes and no. The titlebar is no different than the edge of the card window. The only thing you get is "mouseEnter" and "mouseLeave" when you move the cursor across those borders. But since you know the mouseLoc, you can exploit that to determine if you are moving across the top edge. Craig -----Original Message----- From: Peter M. Brigham To: How to use LiveCode Sent: Tue, Apr 28, 2015 3:49 pm Subject: Re: Stack is Dirty? Is there any message sent in LC when the cursor moves into the titlebar of a stack? It occurs to me that this would be a good trigger for checking the modifiedMark to indicate the need for saving. The workaround would be a frontscript mouseleave handler that checks to see if the final mouseloc is x,0, but if there is a dedicated message that would be simpler. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Apr 22, 2015, at 12:22 PM, Richard Gaskin wrote: > Ray wrote: > >> I believe there's a key word which is a property you can use to detect >> whether a stack has changes which have not yet been saved. It's >> something like stackIsDirty but I can't find it anywhere. Does anybody >> remember this? > > There is a Mac-only stack property, the modifiedMark, which can be used to indicate to the user that a stack has unsaved changes (it colors the window's close button dark red), but I know of no engine-level way to monitor for changes in the engine. > > Would be nice, but given the many different ways we use LC it may not be practical. > > For example, in most apps changing the text of a field would be a change worth noting but changing the rect of a stack would not, but in LC changing any object rect, or any other property, might warrant noting an unsaved change. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobwarren at howsoft.com Tue Apr 28 17:48:47 2015 From: bobwarren at howsoft.com (Bob Warren) Date: Tue, 28 Apr 2015 18:48:47 -0300 Subject: "Self-tailoring" Unicode Chooser Widgets P.P.S. Message-ID: <5540003F.5040001@howsoft.com> In the Demo, at the beginning of the callChooser handler, you will see these 3 lines: put empty into field "choice" put empty into field "thePath" put empty into button "theFiles" These are OK in the Demo, but if you copy the handler to your own app as suggested, it will complain about them because these fields and button do not necessarily exist in your app. Just remove these lines. They are not necessary. (Note that they have already been removed in the "vanilla script" links I recommended.) Apologies. I'll be updating the download ASAP. Bob From prothero at earthednet.org Tue Apr 28 20:12:16 2015 From: prothero at earthednet.org (William Prothero) Date: Tue, 28 Apr 2015 17:12:16 -0700 Subject: mobileSound Files question Message-ID: <18306DA5-0D61-4BB5-A41E-C1D72E2EF95B@earthednet.org> Folks: I have my 3 sound files playing fine on the iOS simulator. But, is it possible to get other file parameters like the play time, or set the location to start play? This is possible on desktop player, but I don?t see any commands for this in the dictionary. Or do I need to use one of Monte?s externals to get that functionality? Best, Bill William A. Prothero http://es.earthednet.org/ From peterwawood at gmail.com Tue Apr 28 21:23:13 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Wed, 29 Apr 2015 09:23:13 +0800 Subject: How to initialise a Library stack? References: Message-ID: Is there a reliable method to initialise a library stack before it is used? I tried adding preOpenStack and OpenStack handlers to the library stack but they don?t appear to work. (I was using LiveCode 8.0). Regards Peter From bonnmike at gmail.com Tue Apr 28 21:29:54 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 28 Apr 2015 19:29:54 -0600 Subject: How to initialise a Library stack? In-Reply-To: References: Message-ID: when you start using a stack, the librarystack message is sent to the stack, so you could use that. On Tue, Apr 28, 2015 at 7:23 PM, Peter W A Wood wrote: > Is there a reliable method to initialise a library stack before it is > used? I tried adding preOpenStack and OpenStack handlers to the library > stack but they don?t appear to work. (I was using LiveCode 8.0). > > Regards > > Peter > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From peterwawood at gmail.com Tue Apr 28 21:48:45 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Wed, 29 Apr 2015 09:48:45 +0800 Subject: How to initialise a Library stack? In-Reply-To: References: Message-ID: <7DDC3CF5-6E0B-4D37-A196-994E979D04F2@gmail.com> Many thanks Mike. Regards Peter > On 29 Apr 2015, at 09:29, Mike Bonner wrote: > > when you start using a stack, the librarystack message is sent to the > stack, so you could use that. > > On Tue, Apr 28, 2015 at 7:23 PM, Peter W A Wood > wrote: > >> Is there a reliable method to initialise a library stack before it is >> used? I tried adding preOpenStack and OpenStack handlers to the library >> stack but they don?t appear to work. (I was using LiveCode 8.0). >> >> Regards >> >> Peter >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rman at free.fr Tue Apr 28 21:56:28 2015 From: rman at free.fr (Robert Mann) Date: Tue, 28 Apr 2015 18:56:28 -0700 (PDT) Subject: Plain text library stacks In-Reply-To: References: <3e58b9a6b6fbf015ed71e81a95730119@livecode.com> <4FCA9010-8C1B-4749-B326-C5AB5CD893D3@livecode.com> <55393CDA.8050502@gmail.com> Message-ID: <1430272588101-4691608.post@n4.nabble.com> Hi bouncing on my present subject which is how to implement a a simple "semaphore" system to be used by server stacks : could that simple forma t(and I suppose fast to load) be used to store some data along scripts, e.i for a semaphore? -- when loaded in memory, is it parsed and checked? are there errors launched if non script info is found? --I suppose a script can include a set up handler that will instantiate a global variable, or a property? -- and that data in that handler can be edited by an external handler? i found interesting the prospect of having a kind of small independent "object" that can have some behaviors I mean scripts and some datas, one of the use being for a simple file access semaphore. But there can be other uses i'm sure. -- could a handler in the script have something like "write that data into line X of me (i mean of the script file) and save me? Robert -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Fwd-Plain-text-library-stacks-tp4691383p4691608.html Sent from the Revolution - User mailing list archive at Nabble.com. From rman at free.fr Tue Apr 28 21:59:44 2015 From: rman at free.fr (Robert Mann) Date: Tue, 28 Apr 2015 18:59:44 -0700 (PDT) Subject: [LC Server] using a stack as a small database to store contacts emails - how to deal with concurrent inputs? Message-ID: <1430272784725-4691609.post@n4.nabble.com> Hi! I'll be back into setting up sites after taking a long time off LC into music instrument designs... I'll need to gather some information like contacts emails and thought of using a server stack that I could then use in many ways and simply upload on to the desktop to add functions and do some exports and so on. Problem is how to ensure that concurrent addition of data will not be squashed? I understood that when sent a msg, a stack will create a process per call. So if two people happen to send some information at the same time... Did I get it right? Does the CGI mode work differently than the server mode? (it would be great if one could force only one process to be open at the same time!!) Is there an easy way to implement a flag system like a dbase? I guess that could be of some use to others if the question is cleared!! Thanks for your inputs! Robert otherwise I'll fall back to the dbase method.; but find it less elegant to be able to write export functions from dbase into a stack.. !! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LC-Server-using-a-stack-as-a-small-database-to-store-contacts-emails-how-to-deal-with-concurrent-inp-tp4691609.html Sent from the Revolution - User mailing list archive at Nabble.com. From rman at free.fr Tue Apr 28 22:00:09 2015 From: rman at free.fr (Robert Mann) Date: Tue, 28 Apr 2015 19:00:09 -0700 (PDT) Subject: [LC Server] using a stack as a small database to store contacts emails - how to deal with concurrent inputs? In-Reply-To: <1430272784725-4691609.post@n4.nabble.com> References: <1430272784725-4691609.post@n4.nabble.com> Message-ID: <1430272809075-4691610.post@n4.nabble.com> Quick & dirty live code server semaphore ????????????------------------- context : using a server stack as dynamic data storage medium in relation to a site. How secure would that be, in terms of avoiding loss of data? We have 2 server server stacks : a) a siteStack which receives http request & builds pages, including the form. b) a storageStack, where the data from the form is sent by the siteStack The story : 1) when triggered, the siteStack starts a session with a unique random session identifier, which identifies each running instance of the siteStack : ?> sessionId 2) when the siteStack receives the data of the ? form ? with the user datas : ? it makes a ?> timeStamp and ? opens up the file ? storageStackSemaphore.txt ? and checks if the color is GREEN, if it is GREEN then - write in it : ? color is RED from sessionId at TimeStamp and saves ? - then loads storageStack with a start using command - then sends ? storeMe with the name of the semaphore file, the timeStamp, the sessionId, and the data? to the storageStack Else repeat x times until color is green (wait for a while and retry) [with a security x times to avoid any lost process] 3) storageStack ? storeMe ? handler with : 3 params: semaphoreName, timeStamp, sessionId, data? ? opens up storageStackSemaphore and checks the color (RED or GREEN) i) if RED and SessionId corresponds to the one received as parameter : - deal with data and - save the storageStack - write off the ? RED ? semaphore in the storageStackSemaphore.txt writing back ? GREEN ? into it and saving it. DONE (possibly unload storageStack from memory) ii) else : (at that point I don?t figure exactly what could or not have happened and how safe that procedure is!?), so? ? CASE [RED and other sessionId] = another process did it at exactly the same time -> redo from 2) ? CASE [GREEN] ?? another process started and completed faster... ?? -> redo from 2) SO : send a msg error to the siteStack and ask it to redo the operation from point 2) The the timeStamp would not be needed? thanks for any hint since i?m not too sure how the server stuff would handle that... good day.. RObert -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LC-Server-using-a-stack-as-a-small-database-to-store-contacts-emails-how-to-deal-with-concurrent-inp-tp4691609p4691610.html Sent from the Revolution - User mailing list archive at Nabble.com. From rman at free.fr Tue Apr 28 22:01:07 2015 From: rman at free.fr (Robert Mann) Date: Tue, 28 Apr 2015 19:01:07 -0700 (PDT) Subject: [LC Server] using a stack as a small database to store contacts emails - how to deal with concurrent inputs? In-Reply-To: <1430272809075-4691610.post@n4.nabble.com> References: <1430272784725-4691609.post@n4.nabble.com> <1430272809075-4691610.post@n4.nabble.com> Message-ID: <1430272867038-4691611.post@n4.nabble.com> Possibly some refinements with the text only format of script libraries discussed along. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LC-Server-using-a-stack-as-a-small-database-to-store-contacts-emails-how-to-deal-with-concurrent-inp-tp4691609p4691611.html Sent from the Revolution - User mailing list archive at Nabble.com. From rolf.kocherhans at id.uzh.ch Wed Apr 29 02:31:08 2015 From: rolf.kocherhans at id.uzh.ch (Rolf Kocherhans) Date: Wed, 29 Apr 2015 08:31:08 +0200 Subject: [ANN] Yosemite Styles Window Plugin (free) In-Reply-To: References: Message-ID: <3331D3F7-130E-4C7F-97C7-B7A1D0CB4D15@id.uzh.ch> Hello Everyone? I totally forgot to mention? To create custom shape windows in general is easy, but it is not easy to create custom shape windows which retain their shape on their corners while resizing ! If you use a fixed picture as windowShape and enlarge the window then the whole window gets terribly distorted. Bernd and I found a way to overcome just that :-) - this is probably the main attraction of this Plugin ! Regards Rolf > So, I decided to create a Plugin, that creates such windows with the windowShape technique myself... > > I had many problems with stack resizing and some other routines, luckily I could get Bernd into the boat :-) - he and I made this Plugin together ! From roger.e.eller at sealedair.com Wed Apr 29 07:25:47 2015 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 29 Apr 2015 07:25:47 -0400 Subject: [ANN] Yosemite Styles Window Plugin (free) In-Reply-To: <3331D3F7-130E-4C7F-97C7-B7A1D0CB4D15@id.uzh.ch> References: <3331D3F7-130E-4C7F-97C7-B7A1D0CB4D15@id.uzh.ch> Message-ID: If only we could build from LC as Android Widgets, this would be perfect for that use case. On Apr 29, 2015 2:31 AM, "Rolf Kocherhans" wrote: > Hello Everyone? > > I totally forgot to mention? > > To create custom shape windows in general is easy, but it is > not easy to create custom shape windows which retain their shape on > their corners while resizing ! > > If you use a fixed picture as windowShape and enlarge the window then the > whole window gets terribly distorted. > > Bernd and I found a way to overcome just that :-) - this is probably the > main > attraction of this Plugin ! > > Regards > Rolf > > > > So, I decided to create a Plugin, that creates such windows with the > windowShape technique myself... > > > > I had many problems with stack resizing and some other routines, luckily > I could get Bernd into the boat :-) - he and I made this Plugin together ! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gregory.lypny at videotron.ca Wed Apr 29 08:44:31 2015 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Wed, 29 Apr 2015 08:44:31 -0400 Subject: Need Help With FTP In-Reply-To: References: Message-ID: <109E3406-5E72-4048-938A-5027B6D84E92@videotron.ca> Hi Mark, Richard and Dr. Hawkins, Much obliged for all the tips. Gregory From dfepstein at comcast.net Wed Apr 29 09:21:21 2015 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Wed, 29 Apr 2015 13:21:21 +0000 (UTC) Subject: What is driving the MB of a stack? In-Reply-To: <1556031999.181259.1430313424210.JavaMail.zimbra@comcast.net> Message-ID: <121750668.185663.1430313681443.JavaMail.zimbra@comcast.net> A stack I have gradually improved over several years now occupies 4 MB on disk, whereas for a long time it was more like 500 KB. Is there some way to diagnose what elements are causing this???I'd like?to generate a list of all of the stack's?substacks, cards, fields, images, scripts, etc., and see the amount of stack space each is occupying. ? David Epstein From scott at tactilemedia.com Wed Apr 29 10:07:43 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 29 Apr 2015 07:07:43 -0700 Subject: What is driving the MB of a stack? In-Reply-To: <121750668.185663.1430313681443.JavaMail.zimbra@comcast.net> References: <1556031999.181259.1430313424210.JavaMail.zimbra@comcast.net> <121750668.185663.1430313681443.JavaMail.zimbra@comcast.net> Message-ID: An issue that has been discussed in the past might be unplaced groups -- groups that have been created at some time but aren't being used in the stack. Here's one thread: Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/29/15, 6:21 AM, "dfepstein at comcast.net" wrote: >A stack I have gradually improved over several years now occupies 4 MB on >disk, whereas for a long time it was more like 500 KB. >Is there some way to diagnose what elements are causing this? I'd like >to generate a list of all of the stack's substacks, cards, fields, >images, scripts, etc., and see the amount of stack space each is >occupying. > >David Epstein From ambassador at fourthworld.com Wed Apr 29 10:40:47 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 29 Apr 2015 07:40:47 -0700 Subject: Stack is Dirty? In-Reply-To: References: Message-ID: <5540ED6F.1000206@fourthworld.com> Peter M. Brigham wrote: > Is there any message sent in LC when the cursor moves into the > titlebar of a stack? It occurs to me that this would be a good > trigger for checking the modifiedMark to indicate the need for > saving. The closeStackRequest method is provided for that purpose. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Wed Apr 29 10:47:42 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 29 Apr 2015 07:47:42 -0700 Subject: Stack is Dirty? In-Reply-To: <5540ED6F.1000206@fourthworld.com> References: <5540ED6F.1000206@fourthworld.com> Message-ID: <5540EF0E.3020707@fourthworld.com> A moment ago I wrote: > The closeStackRequest method is provided for that purpose. Pardon the typo - I do know what language we're talking about here, honestly I do. :) Of course I meant "message" there, not "method". -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dunbarx at aol.com Wed Apr 29 11:01:26 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 29 Apr 2015 11:01:26 -0400 Subject: Stack is Dirty? In-Reply-To: <5540EF0E.3020707@fourthworld.com> Message-ID: <14d05b26149-4c99-1074@webprd-m98.mail.aol.com> I cannot see my own replies sometimes. Did this kluge get through" on mouseLeave if the top of this stack - item 2 of the screenmouseLoc < 4 then answer "You have gone through the roof" end mouseLeave Craig -----Original Message----- From: Richard Gaskin To: use-livecode Sent: Wed, Apr 29, 2015 10:48 am Subject: Re: Stack is Dirty? A moment ago I wrote: > The closeStackRequest method is provided for that purpose. Pardon the typo - I do know what language we're talking about here, honestly I do. :) Of course I meant "message" there, not "method". -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bvlahos at mac.com Wed Apr 29 12:11:08 2015 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 29 Apr 2015 09:11:08 -0700 Subject: Memory question active program Message-ID: I have an app which logs phone calls. It receives command line input from the phone using an on relaunch handler and updates the log display with time, date and caller name and also does a revSpeak command to announce the caller. My app works fine when launched but after some time idling there is a long delay (5 or more seconds) for it to respond. If it gets another command from the program soon it responds right away. I?m guessing something is loaded into RAM when it works quickly. After a while it is unloaded from RAM or cached and then has to reload which causes the delay. I don?t know if LiveCode is doing this or the Windows 7 PC (64bit) is. The PC has 8 GB RAM. I suspect it is the PC memory management that is doing this as LiveCode loads everything in RAM. Is there a way for me to test what is causing this? Is there a way to prevent this? Thanks, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) From gbojsza at gmail.com Wed Apr 29 12:17:53 2015 From: gbojsza at gmail.com (Glen Bojsza) Date: Wed, 29 Apr 2015 12:17:53 -0400 Subject: HTML5... Message-ID: Can someone outline what version and approximately when in the development timeline we will start being able to generate HTML5 from LC. thanks, Glen From MikeKerner at roadrunner.com Wed Apr 29 12:56:15 2015 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 29 Apr 2015 12:56:15 -0400 Subject: Substack vs. Library Stack Message-ID: I have not read a straight answer on this, yet. Library stacks vs. substacks why use one vs. the other? I don't see any clear advantage to Libraries, per se, even for...libraries. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From scott at tactilemedia.com Wed Apr 29 13:36:11 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 29 Apr 2015 10:36:11 -0700 Subject: Substack vs. Library Stack In-Reply-To: References: Message-ID: I imagine you'll get a lot of responses to this, but one reason to use a library is its code is available to all open stacks in LC: functions, commands, etc. Sort of like having a backscript for all open stacks, instead of just one. A substack doesn't do this. Another frame of reference that might help is the difference between behaviors and libraries: code in behaviors is object-specific, available only to those objects that have the behavior assigned to them, while code in libraries is universal, available to all objects anywhere, and doesn't require any assignment. Other people will probably chime in with additional insights. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/29/15, 9:56 AM, "Mike Kerner" wrote: >I have not read a straight answer on this, yet. > >Library stacks vs. substacks why use one vs. the other? I don't see any >clear advantage to Libraries, per se, even for...libraries. > >-- >On the first day, God created the heavens and the Earth >On the second day, God created the oceans. >On the third day, God put the animals on hold for a few hours, > and did a little diving. >And God said, "This is good." >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Wed Apr 29 14:14:05 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 29 Apr 2015 11:14:05 -0700 Subject: mobileSound Files question In-Reply-To: <18306DA5-0D61-4BB5-A41E-C1D72E2EF95B@earthednet.org> References: <18306DA5-0D61-4BB5-A41E-C1D72E2EF95B@earthednet.org> Message-ID: <1219B98A-1994-4589-B2F0-8A770AE89C1F@earthednet.org> Folks: On thing that is missing in the commands for the mobileSound commands is a way to determine the length of a sound file. I can pretty much live with the limitations that I see so far, but it is going to be a kludge to determine the play time of a sound file. Also, the player is AVFoundation on iOS too?? Why are the number of commands that can be given to the mobile player so limited? Seems being able to duplicate the desktop player functionality would be very useful. Or are there other ways of playing sounds that have the more expanded functionality? Regards, Bill > On Apr 28, 2015, at 5:12 PM, William Prothero wrote: > > Folks: > I have my 3 sound files playing fine on the iOS simulator. But, is it possible to get other file parameters like the play time, or set the location to start play? This is possible on desktop player, but I don?t see any commands for this in the dictionary. > > Or do I need to use one of Monte?s externals to get that functionality? > > Best, > Bill > > > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Apr 29 15:06:42 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 29 Apr 2015 22:06:42 +0300 Subject: HTML5... In-Reply-To: References: Message-ID: <55412BC2.4020700@gmail.com> On 29/04/15 19:17, Glen Bojsza wrote: > Can someone outline what version and approximately when in the development > timeline we will start being able to generate HTML5 from LC. > > thanks, > > Glen > _______________________________________________ > It is very odd that having run that Kickstarter campaign we have heard nothing about the HTML5 thing at all. http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0CC0QFjAC&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTake_the_Money_and_Run&ei=gytBVc_MJoXsmAW00oGICA&usg=AFQjCNEevVZQoPBsvRM45zUz2Gbx7ZHBNQ&bvm=bv.92189499,d.dGY But, Hey, I'm waiting for a good few things from the Open Source Kickstarter which seem to have fallen by the wayside . . . Richmond. From kevin at runrev.com Wed Apr 29 15:09:07 2015 From: kevin at runrev.com (Kevin Miller) Date: Wed, 29 Apr 2015 20:09:07 +0100 Subject: HTML5... In-Reply-To: <55412BC2.4020700@gmail.com> References: <55412BC2.4020700@gmail.com> Message-ID: <69E89F54-CA50-4F51-A09C-E89B2DC63C9A@runrev.com> Should have something more to announce in this soon. > On 29 Apr 2015, at 20:06, Richmond wrote: > >> On 29/04/15 19:17, Glen Bojsza wrote: >> Can someone outline what version and approximately when in the development >> timeline we will start being able to generate HTML5 from LC. >> >> thanks, >> >> Glen >> _______________________________________________ > > It is very odd that having run that Kickstarter campaign we have heard nothing > about the HTML5 thing at all. > > http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0CC0QFjAC&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTake_the_Money_and_Run&ei=gytBVc_MJoXsmAW00oGICA&usg=AFQjCNEevVZQoPBsvRM45zUz2Gbx7ZHBNQ&bvm=bv.92189499,d.dGY > > But, Hey, I'm waiting for a good few things from the Open Source Kickstarter which seem to have fallen by the wayside . . . > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Wed Apr 29 15:10:33 2015 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 29 Apr 2015 22:10:33 +0300 Subject: HTML5... In-Reply-To: <69E89F54-CA50-4F51-A09C-E89B2DC63C9A@runrev.com> References: <55412BC2.4020700@gmail.com> <69E89F54-CA50-4F51-A09C-E89B2DC63C9A@runrev.com> Message-ID: <55412CA9.1070008@gmail.com> On 29/04/15 22:09, Kevin Miller wrote: > Should have something more to announce in this soon. Lovely! > >> On 29 Apr 2015, at 20:06, Richmond wrote: >> >>> On 29/04/15 19:17, Glen Bojsza wrote: >>> Can someone outline what version and approximately when in the development >>> timeline we will start being able to generate HTML5 from LC. >>> >>> thanks, >>> >>> Glen >>> _______________________________________________ >> It is very odd that having run that Kickstarter campaign we have heard nothing >> about the HTML5 thing at all. >> >> http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0CC0QFjAC&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTake_the_Money_and_Run&ei=gytBVc_MJoXsmAW00oGICA&usg=AFQjCNEevVZQoPBsvRM45zUz2Gbx7ZHBNQ&bvm=bv.92189499,d.dGY >> >> But, Hey, I'm waiting for a good few things from the Open Source Kickstarter which seem to have fallen by the wayside . . . >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revdev at pdslabs.net Wed Apr 29 15:23:18 2015 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 29 Apr 2015 12:23:18 -0700 Subject: What is driving the MB of a stack? In-Reply-To: References: <1556031999.181259.1430313424210.JavaMail.zimbra@comcast.net> <121750668.185663.1430313681443.JavaMail.zimbra@comcast.net> Message-ID: <55412FA6.7000101@pdslabs.net> Hi David, Another issue could be a resource fork. If you're on a Mac and have pasted a desktop icon into Finder's "About" box for the stack, that pasted image becomes one or more resources in the resource fork. If you delete the resources you don't want, stack bloat will decrease. Here's a little tool you can use to review and remove resources from a resource fork: https://www.dropbox.com/s/gxgxp35wfm53rz5/Resource%20Manager.livecode?dl=0 Phil Davis On 4/29/15 7:07 AM, Scott Rossi wrote: > An issue that has been discussed in the past might be unplaced groups -- > groups that have been created at some time but aren't being used in the > stack. Here's one thread: > g-in-a-stand-alone-td4687858i40.html> > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 4/29/15, 6:21 AM,"dfepstein at comcast.net" wrote: > >> A stack I have gradually improved over several years now occupies 4 MB on >> disk, whereas for a long time it was more like 500 KB. >> Is there some way to diagnose what elements are causing this? I'd like >> to generate a list of all of the stack's substacks, cards, fields, >> images, scripts, etc., and see the amount of stack space each is >> occupying. >> >> David Epstein > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 From revdev at pdslabs.net Wed Apr 29 15:31:48 2015 From: revdev at pdslabs.net (Phil Davis) Date: Wed, 29 Apr 2015 12:31:48 -0700 Subject: Substack vs. Library Stack In-Reply-To: References: Message-ID: <554131A4.1030800@pdslabs.net> Another thing about libraries: they can have substacks if needed. Of course, substacks can't. Phil Davis On 4/29/15 10:36 AM, Scott Rossi wrote: > I imagine you'll get a lot of responses to this, but one reason to use a > library is its code is available to all open stacks in LC: functions, > commands, etc. Sort of like having a backscript for all open stacks, > instead of just one. A substack doesn't do this. > > Another frame of reference that might help is the difference between > behaviors and libraries: code in behaviors is object-specific, available > only to those objects that have the behavior assigned to them, while code > in libraries is universal, available to all objects anywhere, and doesn't > require any assignment. > > Other people will probably chime in with additional insights. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 4/29/15, 9:56 AM, "Mike Kerner" wrote: > >> I have not read a straight answer on this, yet. >> >> Library stacks vs. substacks why use one vs. the other? I don't see any >> clear advantage to Libraries, per se, even for...libraries. >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 From paul at researchware.com Wed Apr 29 16:03:46 2015 From: paul at researchware.com (Paul Dupuis) Date: Wed, 29 Apr 2015 16:03:46 -0400 Subject: HTML5... In-Reply-To: References: Message-ID: <55413922.80001@researchware.com> On 4/29/2015 12:17 PM, Glen Bojsza wrote: > Can someone outline what version and approximately when in the development > timeline we will start being able to generate HTML5 from LC. > A web deployment/build option for "standalones" (i.e. HTML5 and the crowdfunding campaign) was communicated as being tied to or predicated on LiveCode 8. LiveCode 8 is still just in DP (developer preview) releases. As LC8 develops, I would expect RunRev to have some sort of update, but maybe not until a few more DP releases gets LC8 more stable and robust. From gbojsza at gmail.com Wed Apr 29 16:35:53 2015 From: gbojsza at gmail.com (Glen Bojsza) Date: Wed, 29 Apr 2015 16:35:53 -0400 Subject: HTML5... In-Reply-To: <55413922.80001@researchware.com> References: <55413922.80001@researchware.com> Message-ID: So has HTML5 been seen in the current DP versions Livecode 8? On Wed, Apr 29, 2015 at 4:03 PM, Paul Dupuis wrote: > On 4/29/2015 12:17 PM, Glen Bojsza wrote: > > Can someone outline what version and approximately when in the > development > > timeline we will start being able to generate HTML5 from LC. > > > > A web deployment/build option for "standalones" (i.e. HTML5 and the > crowdfunding campaign) was communicated as being tied to or predicated > on LiveCode 8. LiveCode 8 is still just in DP (developer preview) > releases. As LC8 develops, I would expect RunRev to have some sort of > update, but maybe not until a few more DP releases gets LC8 more stable > and robust. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From prothero at earthednet.org Wed Apr 29 16:37:50 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 29 Apr 2015 13:37:50 -0700 Subject: Substack vs. Library Stack In-Reply-To: <554131A4.1030800@pdslabs.net> References: <554131A4.1030800@pdslabs.net> Message-ID: <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> Scott: I use substacks as code libraries in a large project. The substack handlers are callable (without specifying the substack name) from any other substack and also from the main stack. It is like having a giant stack script. Of course, you have to ?Start using mySubstack? to make the code available. You can also remove the substack and use it elsewhere and attach it to another main stack by setting its mainStack property. e.g. set the mainStack of this stack to ?myMainStack?. I find it very convenient. But, as I get more familiar with Livecode, I?ll like the libraries approach. Best, Bill > On Apr 29, 2015, at 12:31 PM, Phil Davis wrote: > > Another thing about libraries: they can have substacks if needed. Of course, substacks can't. > > Phil Davis > > > On 4/29/15 10:36 AM, Scott Rossi wrote: >> I imagine you'll get a lot of responses to this, but one reason to use a >> library is its code is available to all open stacks in LC: functions, >> commands, etc. Sort of like having a backscript for all open stacks, >> instead of just one. A substack doesn't do this. >> >> Another frame of reference that might help is the difference between >> behaviors and libraries: code in behaviors is object-specific, available >> only to those objects that have the behavior assigned to them, while code >> in libraries is universal, available to all objects anywhere, and doesn't >> require any assignment. >> >> Other people will probably chime in with additional insights. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 4/29/15, 9:56 AM, "Mike Kerner" wrote: >> >>> I have not read a straight answer on this, yet. >>> >>> Library stacks vs. substacks why use one vs. the other? I don't see any >>> clear advantage to Libraries, per se, even for...libraries. >>> >>> -- >>> On the first day, God created the heavens and the Earth >>> On the second day, God created the oceans. >>> On the third day, God put the animals on hold for a few hours, >>> and did a little diving. >>> And God said, "This is good." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Wed Apr 29 16:46:21 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 29 Apr 2015 13:46:21 -0700 Subject: Substack vs. Library Stack In-Reply-To: <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> References: <554131A4.1030800@pdslabs.net> <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> Message-ID: Hi Bill: When you "start using stack xyz..." you are using it as a library stack :-) See the docs under "start using" or the "library" command. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/29/15, 1:37 PM, "William Prothero" wrote: >Scott: >I use substacks as code libraries in a large project. The substack >handlers are callable (without specifying the substack name) from any >other substack and also from the main stack. It is like having a giant >stack script. Of course, you have to ?Start using mySubstack? to make the >code available. You can also remove the substack and use it elsewhere and >attach it to another main stack by setting its mainStack property. e.g. >set the mainStack of this stack to ?myMainStack?. > >I find it very convenient. But, as I get more familiar with Livecode, >I?ll like the libraries approach. > >Best, >Bill > > >> On Apr 29, 2015, at 12:31 PM, Phil Davis wrote: >> >> Another thing about libraries: they can have substacks if needed. Of >>course, substacks can't. >> >> Phil Davis >> >> >> On 4/29/15 10:36 AM, Scott Rossi wrote: >>> I imagine you'll get a lot of responses to this, but one reason to use >>>a >>> library is its code is available to all open stacks in LC: functions, >>> commands, etc. Sort of like having a backscript for all open stacks, >>> instead of just one. A substack doesn't do this. >>> >>> Another frame of reference that might help is the difference between >>> behaviors and libraries: code in behaviors is object-specific, >>>available >>> only to those objects that have the behavior assigned to them, while >>>code >>> in libraries is universal, available to all objects anywhere, and >>>doesn't >>> require any assignment. >>> >>> Other people will probably chime in with additional insights. >>> >>> Regards, >>> >>> Scott Rossi >>> Creative Director >>> Tactile Media, UX/UI Design >>> >>> >>> >>> >>> On 4/29/15, 9:56 AM, "Mike Kerner" wrote: >>> >>>> I have not read a straight answer on this, yet. >>>> >>>> Library stacks vs. substacks why use one vs. the other? I don't see >>>>any >>>> clear advantage to Libraries, per se, even for...libraries. >>>> >>>> -- >>>> On the first day, God created the heavens and the Earth >>>> On the second day, God created the oceans. >>>> On the third day, God put the animals on hold for a few hours, >>>> and did a little diving. >>>> And God said, "This is good." >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Wed Apr 29 17:08:53 2015 From: martyknappster at gmail.com (Marty Knapp) Date: Wed, 29 Apr 2015 14:08:53 -0700 Subject: Pancake down Message-ID: <55414865.4030007@gmail.com> All my On-Rev web sites have been down (on Pancake) for at least 6 hours. Have a note off to support but haven't heard anything . . . Marty K From bogdanoff at me.com Wed Apr 29 17:15:20 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 29 Apr 2015 14:15:20 -0700 Subject: Displaying a stack as sheet Message-ID: Hi, I?m wanting to display a stack as a sheet. It shows help text over the current card. This is a cross-platform application for Mac and Windows desktop. The stack has a field for the help text, an image, and a button to click on to hide the sheet. I?ve got it to show correctly on my Mac, but: 1. How do I dismiss it? Clicking on the button to send a message ?hide stack tStack? doesn?t do it. A script in the button to ?exit??? 2. On Windows I understand it will show as a modal dialog. Does this mean there will be a standard ?Cancel? button added on automatically? Will the size of the stack be maintained along with control placement? The dictionary is kind of vague about this? Peter Bogdanoff UCLA From pete at lcsql.com Wed Apr 29 17:28:34 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 29 Apr 2015 14:28:34 -0700 Subject: Displaying a stack as sheet In-Reply-To: References: Message-ID: "close this stack". I don't think there's any standard close button added for windows, you'd use the same mechanism as OSX Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 29, 2015 at 2:15 PM, Peter Bogdanoff wrote: > Hi, > > I?m wanting to display a stack as a sheet. It shows help text over the > current card. This is a cross-platform application for Mac and Windows > desktop. > > The stack has a field for the help text, an image, and a button to click > on to hide the sheet. I?ve got it to show correctly on my Mac, but: > > 1. How do I dismiss it? Clicking on the button to send a message ?hide > stack tStack? doesn?t do it. A script in the button to ?exit??? > > 2. On Windows I understand it will show as a modal dialog. Does this mean > there will be a standard ?Cancel? button added on automatically? Will the > size of the stack be maintained along with control placement? > > The dictionary is kind of vague about this? > > Peter Bogdanoff > UCLA > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Wed Apr 29 17:30:35 2015 From: pete at lcsql.com (Peter Haworth) Date: Wed, 29 Apr 2015 14:30:35 -0700 Subject: Substack vs. Library Stack In-Reply-To: <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> References: <554131A4.1030800@pdslabs.net> <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> Message-ID: Maybe I'm confused over what you're doing but "start using" is how you make a stack available as a library so you're already using a library, not a substack. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr 29, 2015 at 1:37 PM, William Prothero wrote: > Scott: > I use substacks as code libraries in a large project. The substack > handlers are callable (without specifying the substack name) from any other > substack and also from the main stack. It is like having a giant stack > script. Of course, you have to ?Start using mySubstack? to make the code > available. You can also remove the substack and use it elsewhere and attach > it to another main stack by setting its mainStack property. e.g. set the > mainStack of this stack to ?myMainStack?. > > I find it very convenient. But, as I get more familiar with Livecode, I?ll > like the libraries approach. > > Best, > Bill > > > > On Apr 29, 2015, at 12:31 PM, Phil Davis wrote: > > > > Another thing about libraries: they can have substacks if needed. Of > course, substacks can't. > > > > Phil Davis > > > > > > On 4/29/15 10:36 AM, Scott Rossi wrote: > >> I imagine you'll get a lot of responses to this, but one reason to use a > >> library is its code is available to all open stacks in LC: functions, > >> commands, etc. Sort of like having a backscript for all open stacks, > >> instead of just one. A substack doesn't do this. > >> > >> Another frame of reference that might help is the difference between > >> behaviors and libraries: code in behaviors is object-specific, available > >> only to those objects that have the behavior assigned to them, while > code > >> in libraries is universal, available to all objects anywhere, and > doesn't > >> require any assignment. > >> > >> Other people will probably chime in with additional insights. > >> > >> Regards, > >> > >> Scott Rossi > >> Creative Director > >> Tactile Media, UX/UI Design > >> > >> > >> > >> > >> On 4/29/15, 9:56 AM, "Mike Kerner" wrote: > >> > >>> I have not read a straight answer on this, yet. > >>> > >>> Library stacks vs. substacks why use one vs. the other? I don't see > any > >>> clear advantage to Libraries, per se, even for...libraries. > >>> > >>> -- > >>> On the first day, God created the heavens and the Earth > >>> On the second day, God created the oceans. > >>> On the third day, God put the animals on hold for a few hours, > >>> and did a little diving. > >>> And God said, "This is good." > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Wed Apr 29 17:37:56 2015 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 29 Apr 2015 14:37:56 -0700 Subject: Displaying a stack as sheet In-Reply-To: References: Message-ID: Thanks Pete! That did it. Peter On Apr 29, 2015, at 2:28 PM, Peter Haworth wrote: > "close this stack". I don't think there's any standard close button added > for windows, you'd use the same mechanism as OSX > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Apr 29, 2015 at 2:15 PM, Peter Bogdanoff wrote: > >> Hi, >> >> I?m wanting to display a stack as a sheet. It shows help text over the >> current card. This is a cross-platform application for Mac and Windows >> desktop. >> >> The stack has a field for the help text, an image, and a button to click >> on to hide the sheet. I?ve got it to show correctly on my Mac, but: >> >> 1. How do I dismiss it? Clicking on the button to send a message ?hide >> stack tStack? doesn?t do it. A script in the button to ?exit??? >> >> 2. On Windows I understand it will show as a modal dialog. Does this mean >> there will be a standard ?Cancel? button added on automatically? Will the >> size of the stack be maintained along with control placement? >> >> The dictionary is kind of vague about this? >> >> Peter Bogdanoff >> UCLA >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Apr 29 18:03:52 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 29 Apr 2015 16:03:52 -0600 Subject: Memory question active program In-Reply-To: References: Message-ID: My guess would be that windows is swapping it out. The fix might be as simple as a send in time loop. Have it do some little bit of nothing every few minutes. (For all I know, just having the send in time refresh itself might be enough) If its the revspeak portion that is causing the issue, i'm not sure how to keep it from being swapped out, but there's probably a way. On Wed, Apr 29, 2015 at 10:11 AM, Bill Vlahos wrote: > I have an app which logs phone calls. It receives command line input from > the phone using an on relaunch handler and updates the log display with > time, date and caller name and also does a revSpeak command to announce the > caller. > > My app works fine when launched but after some time idling there is a long > delay (5 or more seconds) for it to respond. If it gets another command > from the program soon it responds right away. > > I?m guessing something is loaded into RAM when it works quickly. After a > while it is unloaded from RAM or cached and then has to reload which causes > the delay. > > I don?t know if LiveCode is doing this or the Windows 7 PC (64bit) is. The > PC has 8 GB RAM. > > I suspect it is the PC memory management that is doing this as LiveCode > loads everything in RAM. > > Is there a way for me to test what is causing this? > > Is there a way to prevent this? > > Thanks, > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important > life information with you, accessible, and secure. > lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) > RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Wed Apr 29 18:29:49 2015 From: prothero at earthednet.org (William Prothero) Date: Wed, 29 Apr 2015 15:29:49 -0700 Subject: Substack vs. Library Stack In-Reply-To: References: <554131A4.1030800@pdslabs.net> <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> Message-ID: <3AB17341-E436-4D59-93CE-24AFF6C195A5@earthednet.org> Peter: Ok, if that makes it a library stack, then I?m using it as a library stack. BUT, it?s also a substack. So I guess in this instance, they are the same thing, functionally at least. One of the nice differences is I don?t have to provide a file path to the start using command. Don?t know if libraries require this, because I haven?t really tried to use ?Libraries? per se. Best, Bill > On Apr 29, 2015, at 2:30 PM, Peter Haworth wrote: > > Maybe I'm confused over what you're doing but "start using" is how you make > a stack available as a library so you're already using a library, not a > substack. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > On Wed, Apr 29, 2015 at 1:37 PM, William Prothero > wrote: > >> Scott: >> I use substacks as code libraries in a large project. The substack >> handlers are callable (without specifying the substack name) from any other >> substack and also from the main stack. It is like having a giant stack >> script. Of course, you have to ?Start using mySubstack? to make the code >> available. You can also remove the substack and use it elsewhere and attach >> it to another main stack by setting its mainStack property. e.g. set the >> mainStack of this stack to ?myMainStack?. >> >> I find it very convenient. But, as I get more familiar with Livecode, I?ll >> like the libraries approach. >> >> Best, >> Bill >> >> >>> On Apr 29, 2015, at 12:31 PM, Phil Davis wrote: >>> >>> Another thing about libraries: they can have substacks if needed. Of >> course, substacks can't. >>> >>> Phil Davis >>> >>> >>> On 4/29/15 10:36 AM, Scott Rossi wrote: >>>> I imagine you'll get a lot of responses to this, but one reason to use a >>>> library is its code is available to all open stacks in LC: functions, >>>> commands, etc. Sort of like having a backscript for all open stacks, >>>> instead of just one. A substack doesn't do this. >>>> >>>> Another frame of reference that might help is the difference between >>>> behaviors and libraries: code in behaviors is object-specific, available >>>> only to those objects that have the behavior assigned to them, while >> code >>>> in libraries is universal, available to all objects anywhere, and >> doesn't >>>> require any assignment. >>>> >>>> Other people will probably chime in with additional insights. >>>> >>>> Regards, >>>> >>>> Scott Rossi >>>> Creative Director >>>> Tactile Media, UX/UI Design >>>> >>>> >>>> >>>> >>>> On 4/29/15, 9:56 AM, "Mike Kerner" wrote: >>>> >>>>> I have not read a straight answer on this, yet. >>>>> >>>>> Library stacks vs. substacks why use one vs. the other? I don't see >> any >>>>> clear advantage to Libraries, per se, even for...libraries. >>>>> >>>>> -- >>>>> On the first day, God created the heavens and the Earth >>>>> On the second day, God created the oceans. >>>>> On the third day, God put the animals on hold for a few hours, >>>>> and did a little diving. >>>>> And God said, "This is good." >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at sweattechnologies.com Wed Apr 29 19:51:08 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 30 Apr 2015 09:51:08 +1000 Subject: pancake Message-ID: <5EDB08CA-4C9F-415F-BA6C-59417EF5544A@sweattechnologies.com> Hi Folks Anyone else lost a heap of data from pancake? Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From matthias_livecode_150811 at m-r-d.de Wed Apr 29 19:53:01 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 30 Apr 2015 01:53:01 +0200 Subject: On-Rev server Pancake problems - old backup restored? Message-ID: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> Just noticed that my site hosted at the on-rev server Pancake shows now old data from 2014. My complete new site including my file uploads dissapeared. Is there someone else with that problem or am i the only one? Seems an old backup was restored. Regards, Matthias From monte at sweattechnologies.com Wed Apr 29 19:54:18 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 30 Apr 2015 09:54:18 +1000 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> Message-ID: <9138E006-B19C-4833-852B-35D6234DDE41@sweattechnologies.com> Yes.. me too > On 30 Apr 2015, at 9:53 am, Matthias Rebbe | M-R-D wrote: > > Just noticed that my site hosted at the on-rev server Pancake shows now old data from 2014. My complete new site including my file uploads dissapeared. > > Is there someone else with that problem or am i the only one? Seems an old backup was restored. > > Regards, > > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From monte at sweattechnologies.com Wed Apr 29 19:54:41 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 30 Apr 2015 09:54:41 +1000 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> Message-ID: <19AB7F04-E8BA-4BBB-9C30-E8788E4AECFA@sweattechnologies.com> I have submitted an urgent support request > On 30 Apr 2015, at 9:53 am, Matthias Rebbe | M-R-D wrote: > > Just noticed that my site hosted at the on-rev server Pancake shows now old data from 2014. My complete new site including my file uploads dissapeared. > > Is there someone else with that problem or am i the only one? Seems an old backup was restored. > > Regards, > > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From sc at sahores-conseil.com Wed Apr 29 19:54:55 2015 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 30 Apr 2015 01:54:55 +0200 Subject: Pancake down In-Reply-To: <55414865.4030007@gmail.com> References: <55414865.4030007@gmail.com> Message-ID: <3E5E61B7-0B56-450A-81DE-22F3758609B1@sahores-conseil.com> Confirmed. A 13 months old backup disk seems to be running instead of the current state of all my own sites and n-tier apps. I expect that the on-rev team will get all back to normal along the next hours. > Le 29 avr. 2015 ? 23:08, Marty Knapp a ?crit : > > All my On-Rev web sites have been down (on Pancake) for at least 6 hours. Have a note off to support but haven't heard anything . . . > > Marty K > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From alex at harryscollar.com Wed Apr 29 19:55:09 2015 From: alex at harryscollar.com (Alex Shaw) Date: Thu, 30 Apr 2015 09:55:09 +1000 Subject: Pancake problem?? In-Reply-To: <3AB17341-E436-4D59-93CE-24AFF6C195A5@earthednet.org> References: <554131A4.1030800@pdslabs.net> <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> <3AB17341-E436-4D59-93CE-24AFF6C195A5@earthednet.org> Message-ID: <55416F5D.7000106@harryscollar.com> Hi One of my domains on pancake has gone back in time. Website and emails have gone back to April 2014. Have sent an email to on-rev at runrev.com and no reply yet. Anyone else experiencing this? regards alex From martyknappster at gmail.com Wed Apr 29 19:57:39 2015 From: martyknappster at gmail.com (Marty Knapp) Date: Wed, 29 Apr 2015 16:57:39 -0700 Subject: pancake In-Reply-To: <5EDB08CA-4C9F-415F-BA6C-59417EF5544A@sweattechnologies.com> References: <5EDB08CA-4C9F-415F-BA6C-59417EF5544A@sweattechnologies.com> Message-ID: <55416FF3.8060302@gmail.com> Yup. And Wordpress has reverted back to 3.8.7 (current version is 4.2.1) I've also lost my SSL certificate so people trying to buy stuff are getting the "Untrusted Site" warning. My sites were down for pretty much the whole day. :( Marty K > Hi Folks > > Anyone else lost a heap of data from pancake? > > Cheers > > Monte > > -- > M E R Goulding > Software development services > Bespoke application development for vertical markets > > mergExt - There's an external for that! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at sweattechnologies.com Wed Apr 29 20:02:14 2015 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 30 Apr 2015 10:02:14 +1000 Subject: pancake In-Reply-To: <55416FF3.8060302@gmail.com> References: <5EDB08CA-4C9F-415F-BA6C-59417EF5544A@sweattechnologies.com> <55416FF3.8060302@gmail.com> Message-ID: <7E58C877-CDD6-410C-B49A-99700A1418C1@sweattechnologies.com> Just got this from David so they are on it: There was an issue with the filesystem on pancake.on-rev.com this evening, and after having repaired the filesystem we have seen some instances of erroneously placed or missing data. I am currently investigating and running scripts to restore the system, but we do maintain a full backup of all our data. If you have data that you require access to immediately, let me know and I can retrieve this from the backup server amd place it in the specified location. I am currently assessing the situation and will ensure that if any data is not recovered after my investigation, it is restored from the backup. I apologize for this disruption to your service. Let me know if you require any further assistance right now and I will get back to you as soon as possible. > On 30 Apr 2015, at 9:57 am, Marty Knapp wrote: > > Yup. And Wordpress has reverted back to 3.8.7 (current version is 4.2.1) I've also lost my SSL certificate so people trying to buy stuff are getting the "Untrusted Site" warning. My sites were down for pretty much the whole day. :( > > Marty K >> Hi Folks >> >> Anyone else lost a heap of data from pancake? >> >> Cheers >> >> Monte >> >> -- >> M E R Goulding >> Software development services >> Bespoke application development for vertical markets >> >> mergExt - There's an external for that! >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! From pystcat at gmail.com Wed Apr 29 20:26:07 2015 From: pystcat at gmail.com (PystCat) Date: Wed, 29 Apr 2015 20:26:07 -0400 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> Message-ID: Yeah?. ditto. > On Apr 29, 2015, at 7:53 PM, Matthias Rebbe | M-R-D wrote: > > Just noticed that my site hosted at the on-rev server Pancake shows now old data from 2014. My complete new site including my file uploads dissapeared. > > Is there someone else with that problem or am i the only one? Seems an old backup was restored. > > Regards, > > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Wed Apr 29 20:49:54 2015 From: martyknappster at gmail.com (Marty Knapp) Date: Wed, 29 Apr 2015 17:49:54 -0700 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> Message-ID: <55417C32.9050809@gmail.com> Some of my "restored" files are dated back to the beginning of 2014 (no where near current), old serial numbers for my products that have already been issued, product links that are over a year old (and thus broken). You've got to be kidding me. I now have no idea what I have. What a mess. Marty K > Yeah?. ditto. > >> On Apr 29, 2015, at 7:53 PM, Matthias Rebbe | M-R-D wrote: >> >> Just noticed that my site hosted at the on-rev server Pancake shows now old data from 2014. My complete new site including my file uploads dissapeared. >> >> Is there someone else with that problem or am i the only one? Seems an old backup was restored. >> >> Regards, >> >> Matthias >> >> From dfepstein at comcast.net Wed Apr 29 21:48:29 2015 From: dfepstein at comcast.net (David Epstein) Date: Wed, 29 Apr 2015 21:48:29 -0400 Subject: What is driving the MB of a stack? Message-ID: <6C16B47F-B8D0-46A9-8037-4EF64807BD0D@comcast.net> Thanks to Scott Rossi for calling my attention to ?unplaced groups,? which seem important enough to be better known. I found and purged a few of these, but trimmed only a few KB off my 4.3 MB stack, which still seems much larger than its (known) content can explain. Are there any other ways of diagnosing what?s going on? David Epstein > An issue that has been discussed in the past might be unplaced groups -- > groups that have been created at some time but aren't being used in the > stack. Here's one thread: > > g-in-a-stand-alone-td4687858i40.html> > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 4/29/15, 6:21 AM, "dfepstein at comcast.net " > wrote: > >> A stack I have gradually improved over several years now occupies 4 MB on >> disk, whereas for a long time it was more like 500 KB. >> Is there some way to diagnose what elements are causing this? I'd like >> to generate a list of all of the stack's substacks, cards, fields, >> images, scripts, etc., and see the amount of stack space each is >> occupying. >> >> David Epstein From alex at harryscollar.com Wed Apr 29 23:29:16 2015 From: alex at harryscollar.com (Alex Shaw) Date: Thu, 30 Apr 2015 13:29:16 +1000 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <55417C32.9050809@gmail.com> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <55417C32.9050809@gmail.com> Message-ID: <5541A18C.20407@harryscollar.com> Hmm, I'm worried about my emails for the affected domain. Because I primarily use SMTP, if they restore back to a certain point what will happen to all the emails which have already come in? Should I be doing local backups of everyone's new emails now, as they come in? Messy indeed. I really hope these magic scripts they're working on do the job. Been interesting though to see the state of the site over a year ago. regards alex On 30/04/2015 10:49 am, Marty Knapp wrote: > Some of my "restored" files are dated back to the beginning of 2014 > (no where near current), old serial numbers for my products that have > already been issued, product links that are over a year old (and thus > broken). You've got to be kidding me. I now have no idea what I have. > What a mess. > > Marty K >> Yeah?. ditto. >> >>> On Apr 29, 2015, at 7:53 PM, Matthias Rebbe | M-R-D >>> wrote: >>> >>> Just noticed that my site hosted at the on-rev server Pancake shows >>> now old data from 2014. My complete new site including my file >>> uploads dissapeared. >>> >>> Is there someone else with that problem or am i the only one? Seems >>> an old backup was restored. >>> >>> Regards, >>> >>> Matthias >>> >>> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Wed Apr 29 23:50:39 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 29 Apr 2015 20:50:39 -0700 Subject: What is driving the MB of a stack? In-Reply-To: <6C16B47F-B8D0-46A9-8037-4EF64807BD0D@comcast.net> References: <6C16B47F-B8D0-46A9-8037-4EF64807BD0D@comcast.net> Message-ID: Make a copy of your stack. If the copy contains multiple cards, delete card by card (within reason) and check file size . If it's a single card stack, delete object-by-object. You say you went through unplaced groups, but you might also try deleting everything in the stack, and seeing what the single card stack weighs in at. If it's high, it most likely contains unplaced groups and/or custom properties with large data. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/29/15, 6:48 PM, "David Epstein" wrote: >Thanks to Scott Rossi for calling my attention to ?unplaced groups,? >which seem important enough to be better known. I found and purged a few >of these, but trimmed only a few KB off my 4.3 MB stack, which still >seems much larger than its (known) content can explain. Are there any >other ways of diagnosing what?s going on? > >David Epstein > >> An issue that has been discussed in the past might be unplaced groups -- >> groups that have been created at some time but aren't being used in the >> stack. Here's one thread: >> >>>in >>>in> >> g-in-a-stand-alone-td4687858i40.html> >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX/UI Design >> >> >> >> >> On 4/29/15, 6:21 AM, "dfepstein at comcast.net >>" >> wrote: >> >>> A stack I have gradually improved over several years now occupies 4 MB >>>on >>> disk, whereas for a long time it was more like 500 KB. >>> Is there some way to diagnose what elements are causing this? I'd like >>> to generate a list of all of the stack's substacks, cards, fields, >>> images, scripts, etc., and see the amount of stack space each is >>> occupying. >>> >>> David Epstein > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From shawnblc at me.com Wed Apr 29 23:39:54 2015 From: shawnblc at me.com (shawnlc) Date: Wed, 29 Apr 2015 20:39:54 -0700 (PDT) Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> Message-ID: <1430365194404-4691654.post@n4.nabble.com> I have a life-time subscription to on-rev, but it's times like this that scare the heck out of me to use it. I use it primarily for testing. I'm on pancake too, and I confirm that it's been down. I haven't looked into it, but surely the brilliant guys & gals at RunRev could be running state of the art servers, instant notifications any time something goes beyond a threshold, down, etc. IMHO on-rev is treated like a hobby and they get to it when they get to it. Come on, some of the most brilliant minds in the world sit there in Edinburgh yet you have single server down for several hours. I don't get it. Even my not so brilliant self ran a 10 server hosting business at one time and never experienced such downtime, one customer was doing $100k a day in transactions. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-server-Pancake-problems-old-backup-restored-tp4691642p4691654.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Thu Apr 30 00:48:28 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 29 Apr 2015 21:48:28 -0700 Subject: What is driving the MB of a stack? In-Reply-To: <6C16B47F-B8D0-46A9-8037-4EF64807BD0D@comcast.net> References: <6C16B47F-B8D0-46A9-8037-4EF64807BD0D@comcast.net> Message-ID: <5541B41C.7050304@fourthworld.com> David Epstein wrote: > ... trimmed only a few KB off my 4.3 MB stack, which still seems > much larger than its (known) content can explain. Are there any > other ways of diagnosing what?s going on? Look for things that can't be seen. :) That is, if your stack was full of high-res graphics you'd be looking at them and wouldn't have needed to write here, so now the task is to find less visible elements. Do you have any hidden fields, or custom properties, in which you may have stored data you had intended to remove? -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Thu Apr 30 01:04:11 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Wed, 29 Apr 2015 22:04:11 -0700 Subject: Keeping a mobile app alive Message-ID: <4E667D86-FBA4-4EAB-AE8A-89934E1515CE@earthednet.org> I have a mobile app that will be playing a long audio file. Is there a way to keep the application from going inactive when the device goes into sleep mode? On my iPad, after a period of no user activity, the screen goes black and the audio ceases. Is there a way to prevent this from happening? Google has been no help and I can't find anything in the user guide, or the dictionary. Perhaps there is a syntax I haven't thought of. Regards, Bill William Prothero http://es.earthednet.org From dixonja at hotmail.co.uk Thu Apr 30 01:40:03 2015 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 30 Apr 2015 06:40:03 +0100 Subject: Keeping a mobile app alive In-Reply-To: <4E667D86-FBA4-4EAB-AE8A-89934E1515CE@earthednet.org> References: <4E667D86-FBA4-4EAB-AE8A-89934E1515CE@earthednet.org> Message-ID: By default, iOS will dim the screen and eventually lock the device after periods of no user interaction. To control this behavior, use the following commands: iphoneLockIdleTimer iphoneUnlockIdleTimer > Subject: Keeping a mobile app alive > From: prothero at earthednet.org > Date: Wed, 29 Apr 2015 22:04:11 -0700 > To: use-livecode at lists.runrev.com > > I have a mobile app that will be playing a long audio file. Is there a way to keep the application from going inactive when the device goes into sleep mode? On my iPad, after a period of no user activity, the screen goes black and the audio ceases. Is there a way to prevent this from happening? > > Google has been no help and I can't find anything in the user guide, or the dictionary. Perhaps there is a syntax I haven't thought of. > > Regards, > Bill > > William Prothero > http://es.earthednet.org > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Thu Apr 30 02:18:39 2015 From: brahma at hindu.org (Brahmanathaswami) Date: Wed, 29 Apr 2015 20:18:39 -1000 Subject: Autohilite Color -- How to Set? Message-ID: <5541C93F.1070300@hindu.org> What determines the color that appears when "autohilite" is set to true for a button? And how can we change it? Sometimes, on mousedown, I'm getting a dark blue with black type. I would like to be able to set that color but I'm not seeing any dark blue in the color properties for the button(s). It seems to be some kind of "reverse out" algorithm? BR From scott at tactilemedia.com Thu Apr 30 02:48:03 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 29 Apr 2015 23:48:03 -0700 Subject: Autohilite Color -- How to Set? In-Reply-To: <5541C93F.1070300@hindu.org> References: <5541C93F.1070300@hindu.org> Message-ID: <2856F887-6E70-4599-B08A-B6D62DFF8E55@tactilemedia.com> You want to set the hiliteColor. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Apr 29, 2015, at 11:18 PM, Brahmanathaswami wrote: > What determines the color that appears when "autohilite" is set to true for a button? And how can we change it? > > Sometimes, on mousedown, I'm getting a dark blue with black type. I would like to be able to set that color but I'm not seeing any dark blue in the color properties for the button(s). It seems to be some kind of "reverse out" algorithm? > > > BR > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Apr 30 03:35:42 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 30 Apr 2015 09:35:42 +0200 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <1430365194404-4691654.post@n4.nabble.com> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <1430365194404-4691654.post@n4.nabble.com> Message-ID: <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> I am seriously thinking of leaving the On-Rev platform. I have several accounts, lifetime and payed ones on different servers. In the past i always have born when there were problems with one of the servers. I even felt negative comments about the reliability of the On-Rev platform as unfair and i defended RunRev and On-Rev. But this incident now is one of many in the past. Please don?t get me wrong. I do not blame David Williams. He doing what is possible. But my understanding is that he is the only one who is responsible for such bigger problems. At least he is the one who replies to emergency support request regardless if at day or at night. I do blame Runrev to not having extended their On-Rev staff and improve the On-Rev platform. Btw: Does ?ringing the bell? at NASDAQ and showing ones logo cost money? If so, Runrev better would have invested that money into the On-Rev platform and the support staff. It does not make sense to go for new customers also for On-Rev if you cannot handle it afterwards. At this stage i cannot recommend On-Rev as a professional hosting platform anymore. I am really pissed of now. Matthias (who is now preparing to repair his sites in the hope no other old backup is restored) > Am 30.04.2015 um 05:39 schrieb shawnlc : > > I have a life-time subscription to on-rev, but it's times like this that > scare the heck out of me to use it. I use it primarily for testing. I'm on > pancake too, and I confirm that it's been down. > > I haven't looked into it, but surely the brilliant guys & gals at RunRev > could be running state of the art servers, instant notifications any time > something goes beyond a threshold, down, etc. > > IMHO on-rev is treated like a hobby and they get to it when they get to it. > Come on, some of the most brilliant minds in the world sit there in > Edinburgh yet you have single server down for several hours. > > I don't get it. Even my not so brilliant self ran a 10 server hosting > business at one time and never experienced such downtime, one customer was > doing $100k a day in transactions. > > > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-server-Pancake-problems-old-backup-restored-tp4691642p4691654.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revolution at derbrill.de Thu Apr 30 04:07:05 2015 From: revolution at derbrill.de (Malte Brill) Date: Thu, 30 Apr 2015 10:07:05 +0200 Subject: Something like charIndex, but in a variable... In-Reply-To: References: Message-ID: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> Hi all, I need to find the start and end character of chuncks in a variable. If we are in a field we can use charIndex for that. However, in a variable I have no good idea on how to do something similar to get charIndex(token 7 of line 15 of field ?myField?) Any ideas? All the best, Malte From peterwawood at gmail.com Thu Apr 30 04:35:26 2015 From: peterwawood at gmail.com (Peter W A Wood) Date: Thu, 30 Apr 2015 16:35:26 +0800 Subject: [ANN} - LiveCode MiniTest Message-ID: I have written a few automated test scripts to test elements of LiveCode. The testing commands and the tests were all in a single script. I?m now about to modernise a stack I use personally and want to develop a set of tests for it as I write it. Rather than copy and paste the few testing commands into another script, I?ve pulled them together into a very simple toolkit for testing LiveCode stacks and scripts. I call in Mini Test. I thought it may be of some use to others so I?ve written some very basic documentation and published it on Github. It can be found at https://github.com/PeterWAWood/LiveCode-MiniTest Regards Peter From sebastien.nouat at livecode.com Thu Apr 30 04:45:44 2015 From: sebastien.nouat at livecode.com (Sebastien Nouat) Date: Thu, 30 Apr 2015 09:45:44 +0100 Subject: Release 6.7.5 RC 1 / 7.0.5 RC 1 Message-ID: <5541EBB8.3030002@livecode.com> Dear List Members, We are pleased to announce the release of LiveCode 6.7.5 RC 1 and 7.0.5 RC 1. This release is a maintenance release which contains bug fixes for both versions. The list of bugs fixed can be found in the Release Notes. * iOS Font Map * As some of you may have experienced, the font loading is affected by a dramatic slowdown from iOS 8.1. That comes from iOS 8.1 itself, which cannot handle font loading efficiently unless the exact PostScript name of the font is used. To help with this, we introduced a font mapping system in the iOS Standalone Settings (see the Release Notes for further information). * specialFolderPath of "resources" * A new specialFolderPath has been added for the Resources, which matches the location of the files copied along the standalone engine for standalones, or the location of the defaultstack, in the IDE. This comes in response to the bug 14295 (more information is available in the docs and the Release Notes). * Xcode 6.3 and iOS 8.3 * Xcode 6.3 is now selectable, and required for saving a stack as an iOS standalone application on Yosemite. Since Xcode 6.3 cannot be installed on Mac OS 10.9 (Mavericks), Xcode 6.2 and iOS Simulator 8.2 are still supported; and will be as long as the AppStore will accept apps created with iOS SDK 8.2. *Getting the Release* To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com *6.7.5 RC 2 / 7.0.5 RC 2 * The following RC release is planned to happen next week. Warm regards, The LiveCode Team From benr_mc at cogapp.com Thu Apr 30 04:51:53 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 30 Apr 2015 09:51:53 +0100 Subject: HTML5... In-Reply-To: <55412BC2.4020700@gmail.com> References: <55412BC2.4020700@gmail.com> Message-ID: <5541ED29.7090603@cogapp.com> On 29/04/2015 20:06, Richmond wrote: > It is very odd that having run that Kickstarter campaign we have heard nothing > about the HTML5 thing at all. > > http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0CC0QFjAC&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTake_the_Money_and_Run&ei=gytBVc_MJoXsmAW00oGICA&usg=AFQjCNEevVZQoPBsvRM45zUz2Gbx7ZHBNQ&bvm=bv.92189499,d.dGY Here's what LiveCode said on the campaign page (http://livecode.com/livecode-to-html5/) : > We estimate that from the starting point to the first point of delivery of a prototype will take around a year. This was the final ?stretch goal? on last year?s Kickstarter project that we didn?t get to including in that campaign. We?d like to start now so we can deliver as soon as possible! We?ve learned from our previous project, that it can take a long time to hire the right talent, train up new programmers and get productive on a brand new project. The campaign scraped over the line on July 31 last year. So if you expect that software development proceeds according to estimates, you wouldn't expect to see "first point of delivery of a prototype" for another three months yet. A little early for offensive (not to mention unnecessarily verbose) links? From matthias_livecode_150811 at m-r-d.de Thu Apr 30 05:19:42 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 30 Apr 2015 11:19:42 +0200 Subject: Release 6.7.5 RC 1 / 7.0.5 RC 1 In-Reply-To: <5541EBB8.3030002@livecode.com> References: <5541EBB8.3030002@livecode.com> Message-ID: > Am 30.04.2015 um 10:45 schrieb Sebastien Nouat : > > > > * Xcode 6.3 and iOS 8.3 * > Xcode 6.3 is now selectable, and required for saving a stack as an iOS standalone application on Yosemite. > Since Xcode 6.3 cannot be installed on Mac OS 10.9 (Mavericks), Xcode 6.2 and iOS Simulator 8.2 are still supported; and will be as long as the AppStore will accept apps created with iOS SDK 8.2. Sebastien, thanks for the information, but how do i select in that the iOS to be used for iOS app creation? If i just add Xcode 6.2 to the ?mobile support? section in the LC prefs then i get the following error when building a standalone ?performing iOS device builds requires the iOS 8.3 SDK platform to be installed (available with XCODE 6.3)?. If i add both xCode versions (6.2 and 6.3) then building a standalone works but of course the SDK 8.3 is taken. And under iOS in the standalone settings the dropdown for ?built fo? only lists iOS up to 8.2. So please, how can i build an iOS standalone using the SDK 8.2. I have here several SDK 8.2 compatible externals i need to include in the app? Regards, Matthias Rebbe From sebastien.nouat at livecode.com Thu Apr 30 06:05:35 2015 From: sebastien.nouat at livecode.com (Sebastien Nouat) Date: Thu, 30 Apr 2015 11:05:35 +0100 Subject: Release 6.7.5 RC 1 / 7.0.5 RC 1 In-Reply-To: References: <5541EBB8.3030002@livecode.com> Message-ID: <5541FE6F.4040100@livecode.com> On 30/04/2015 10:19, Matthias Rebbe | M-R-D wrote: > Sebastien, > > thanks for the information, but how do i select in that the iOS to be used for iOS app creation? > > If i just add Xcode 6.2 to the ?mobile support? section in the LC prefs then i get the following error when building a standalone ?performing iOS device builds requires the iOS 8.3 SDK platform to be installed (available with XCODE 6.3)?. > > If i add both xCode versions (6.2 and 6.3) then building a standalone works but of course the SDK 8.3 is taken. And under iOS in the standalone settings the dropdown for ?built fo? only lists iOS up to 8.2. > > So please, how can i build an iOS standalone using the SDK 8.2. I have here several SDK 8.2 compatible externals i need to include in the app? > > Regards, > > Matthias Rebbe > Hi Matthias, We have been a bit too strict regarding the validity of Xcode 6.2 on Yosemite, and that will be fixed in the RC 2. A workaround is possible meanwhile, if you have a look at the bug report http://quality.runrev.com/show_bug.cgi?id=15300 . The bug http://quality.runrev.com/show_bug.cgi?id=15298 has been filed as well, regarding the minimum iOS version. Thanks for your feedback on this update. Regards, S?bastien Nouat -- S?bastien Nouat LiveCode Development Team From matthias_livecode_150811 at m-r-d.de Thu Apr 30 07:15:59 2015 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Thu, 30 Apr 2015 13:15:59 +0200 Subject: Release 6.7.5 RC 1 / 7.0.5 RC 1 In-Reply-To: <5541FE6F.4040100@livecode.com> References: <5541EBB8.3030002@livecode.com> <5541FE6F.4040100@livecode.com> Message-ID: Hi Sebastien, thank you very much for a workaround. Building an iOS app with mergExt externals was successful now. Regards, Matthias > Am 30.04.2015 um 12:05 schrieb Sebastien Nouat >: > > On 30/04/2015 10:19, Matthias Rebbe | M-R-D wrote: >> Sebastien, >> >> thanks for the information, but how do i select in that the iOS to be used for iOS app creation? >> >> If i just add Xcode 6.2 to the ?mobile support? section in the LC prefs then i get the following error when building a standalone ?performing iOS device builds requires the iOS 8.3 SDK platform to be installed (available with XCODE 6.3)?. >> >> If i add both xCode versions (6.2 and 6.3) then building a standalone works but of course the SDK 8.3 is taken. And under iOS in the standalone settings the dropdown for ?built fo? only lists iOS up to 8.2. >> >> So please, how can i build an iOS standalone using the SDK 8.2. I have here several SDK 8.2 compatible externals i need to include in the app? >> >> Regards, >> >> Matthias Rebbe >> > Hi Matthias, > > We have been a bit too strict regarding the validity of Xcode 6.2 on Yosemite, and that will be fixed in the RC 2. A workaround is possible meanwhile, if you have a look at the bug report http://quality.runrev.com/show_bug.cgi?id=15300 . > The bug http://quality.runrev.com/show_bug.cgi?id=15298 has been filed as well, regarding the minimum iOS version. > > Thanks for your feedback on this update. > > Regards, > > S?bastien Nouat > > -- > S?bastien Nouat > LiveCode Development Team > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pystcat at gmail.com Thu Apr 30 07:50:56 2015 From: pystcat at gmail.com (PystCat) Date: Thu, 30 Apr 2015 07:50:56 -0400 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <1430365194404-4691654.post@n4.nabble.com> <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> Message-ID: <3080BF10-CA26-4D0E-BBAD-7A0B6394B4E7@gmail.com> It doesn't cost anything to ring the bell but time. Since none of the guys from the mothership were there, it didn't even cost the plane trip over for them. > On Apr 30, 2015, at 3:35 AM, Matthias Rebbe | M-R-D wrote: > > I am seriously thinking of leaving the On-Rev platform. > > I have several accounts, lifetime and payed ones on different servers. > In the past i always have born when there were problems with one of the servers. > I even felt negative comments about the reliability of the On-Rev platform as unfair and i defended RunRev and On-Rev. > > But this incident now is one of many in the past. Please don?t get me wrong. > > I do not blame David Williams. He doing what is possible. But my understanding is that he is the only one who is responsible for such bigger problems. > At least he is the one who replies to emergency support request regardless if at day or at night. > > I do blame Runrev to not having extended their On-Rev staff and improve the On-Rev platform. > > Btw: Does ?ringing the bell? at NASDAQ and showing ones logo cost money? If so, Runrev better would have invested that money into the On-Rev platform and the support staff. > It does not make sense to go for new customers also for On-Rev if you cannot handle it afterwards. > > At this stage i cannot recommend On-Rev as a professional hosting platform anymore. > > I am really pissed of now. > > Matthias (who is now preparing to repair his sites in the hope no other old backup is restored) > > > > > > >> Am 30.04.2015 um 05:39 schrieb shawnlc : >> >> I have a life-time subscription to on-rev, but it's times like this that >> scare the heck out of me to use it. I use it primarily for testing. I'm on >> pancake too, and I confirm that it's been down. >> >> I haven't looked into it, but surely the brilliant guys & gals at RunRev >> could be running state of the art servers, instant notifications any time >> something goes beyond a threshold, down, etc. >> >> IMHO on-rev is treated like a hobby and they get to it when they get to it. >> Come on, some of the most brilliant minds in the world sit there in >> Edinburgh yet you have single server down for several hours. >> >> I don't get it. Even my not so brilliant self ran a 10 server hosting >> business at one time and never experienced such downtime, one customer was >> doing $100k a day in transactions. >> >> >> >> >> >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-server-Pancake-problems-old-backup-restored-tp4691642p4691654.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From walter.h.brown at gmail.com Thu Apr 30 07:51:08 2015 From: walter.h.brown at gmail.com (Walt Brown) Date: Thu, 30 Apr 2015 07:51:08 -0400 Subject: Something like charIndex, but in a variable... In-Reply-To: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> References: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> Message-ID: Best I could do is: *on* mouseUp *local* tVar, tStart, tEnd *put* fld "fData" into tVar *get* matchChunk(tVar, "(" & word 8 of tVar & ")", tStart, tEnd) *answer* tStart & comma && tEnd *end* mouseUp On Thu, Apr 30, 2015 at 4:07 AM, Malte Brill wrote: > Hi all, > > I need to find the start and end character of chuncks in a variable. If we > are in a field we can use charIndex for that. However, in a variable I have > no good idea on how to do something similar to > > get charIndex(token 7 of line 15 of field ?myField?) > > > Any ideas? > > All the best, > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Thu Apr 30 07:58:43 2015 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 30 Apr 2015 13:58:43 +0200 Subject: Something like charIndex, but in a variable... In-Reply-To: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> References: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> Message-ID: Hi Malte, If using a field is the only solution, try the templateField. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 30 apr. 2015 om 10:07 heeft Malte Brill het volgende geschreven: > Hi all, > > I need to find the start and end character of chuncks in a variable. If we are in a field we can use charIndex for that. However, in a variable I have no good idea on how to do something similar to > > get charIndex(token 7 of line 15 of field ?myField?) > > > Any ideas? > > All the best, > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather.williams11 at btinternet.com Thu Apr 30 08:21:12 2015 From: heather.williams11 at btinternet.com (Heather Laine) Date: Thu, 30 Apr 2015 13:21:12 +0100 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <1430365194404-4691654.post@n4.nabble.com> <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> Message-ID: <13B8EDF4-9B72-4D20-BCC9-6C773B3C2393@btinternet.com> Dear folks, We are currently working as fast as possible to resolve this issue. I will be responding personally to the tickets in the on-rev queue as I now have some information to give you. Please be assured we have a very recent backup of accounts which is what we are using for the restoration, I do not recommend you spend effort in restoring your account yourself at this time. Regards, Heather On 30 Apr 2015, at 08:35, Matthias Rebbe | M-R-D wrote: > I am seriously thinking of leaving the On-Rev platform. > > I have several accounts, lifetime and payed ones on different servers. > In the past i always have born when there were problems with one of the servers. > I even felt negative comments about the reliability of the On-Rev platform as unfair and i defended RunRev and On-Rev. > > But this incident now is one of many in the past. Please don?t get me wrong. > > I do not blame David Williams. He doing what is possible. But my understanding is that he is the only one who is responsible for such bigger problems. > At least he is the one who replies to emergency support request regardless if at day or at night. > > I do blame Runrev to not having extended their On-Rev staff and improve the On-Rev platform. > > Btw: Does ?ringing the bell? at NASDAQ and showing ones logo cost money? If so, Runrev better would have invested that money into the On-Rev platform and the support staff. > It does not make sense to go for new customers also for On-Rev if you cannot handle it afterwards. > > At this stage i cannot recommend On-Rev as a professional hosting platform anymore. > > I am really pissed of now. > > Matthias (who is now preparing to repair his sites in the hope no other old backup is restored) > > > > > > >> Am 30.04.2015 um 05:39 schrieb shawnlc : >> >> I have a life-time subscription to on-rev, but it's times like this that >> scare the heck out of me to use it. I use it primarily for testing. I'm on >> pancake too, and I confirm that it's been down. >> >> I haven't looked into it, but surely the brilliant guys & gals at RunRev >> could be running state of the art servers, instant notifications any time >> something goes beyond a threshold, down, etc. >> >> IMHO on-rev is treated like a hobby and they get to it when they get to it. >> Come on, some of the most brilliant minds in the world sit there in >> Edinburgh yet you have single server down for several hours. >> >> I don't get it. Even my not so brilliant self ran a 10 server hosting >> business at one time and never experienced such downtime, one customer was >> doing $100k a day in transactions. >> >> >> >> >> >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-server-Pancake-problems-old-backup-restored-tp4691642p4691654.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david at viral.academy Thu Apr 30 09:08:01 2015 From: david at viral.academy (David Bovill) Date: Thu, 30 Apr 2015 13:08:01 +0000 Subject: HTML5... In-Reply-To: <5541ED29.7090603@cogapp.com> References: <55412BC2.4020700@gmail.com> <5541ED29.7090603@cogapp.com> Message-ID: True Ben. It also takes time for a culture to change. Livecode is now an open source project. That's a big shift in processes, people and perception. I also would like to see a faster shift towards open discussion of progress and targets. We are still a bit in an in-house engineering culture, with company events, blog posts and occasional videos published. Being more open with regards to technical development plans is still I fear considered to be a marketing exercise, or a diversion from real (in house ) software development. A move towards openly presenting internal strategic and early day planning of software development would be useful, and I'm sure it will come as the culture shifts. Showing your underwear in public is not easy, nor is figuring out how to manage open source community participation and expectations. But i do think mot describing on some technical detail what will or is aimed to be built, 9 months after the Kickstarter is wrong. Telling what you are planning to fo ss an ongoing process is the way to go. Not a month before a release. Publishing an ongoing roadmap should be as easy as publishing whatever Livecode Ltd have in-house by way of Road-map or dev minutes. No flames please - I'm sensitive :) On Thu, 30 Apr 2015 at 09:52, Ben Rubinstein wrote: > On 29/04/2015 20:06, Richmond wrote: > > It is very odd that having run that Kickstarter campaign we have heard > nothing > > about the HTML5 thing at all. > > > > > http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0CC0QFjAC&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTake_the_Money_and_Run&ei=gytBVc_MJoXsmAW00oGICA&usg=AFQjCNEevVZQoPBsvRM45zUz2Gbx7ZHBNQ&bvm=bv.92189499,d.dGY > > Here's what LiveCode said on the campaign page > (http://livecode.com/livecode-to-html5/) : > > > We estimate that from the starting point to the first point of delivery > of a prototype will take around a year. This was the final ?stretch goal? > on last year?s Kickstarter project that we didn?t get to including in that > campaign. We?d like to start now so we can deliver as soon as possible! > We?ve learned from our previous project, that it can take a long time to > hire the right talent, train up new programmers and get productive on a > brand new project. > > The campaign scraped over the line on July 31 last year. > > So if you expect that software development proceeds according to estimates, > you wouldn't expect to see "first point of delivery of a prototype" for > another three months yet. > > A little early for offensive (not to mention unnecessarily verbose) links? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Thu Apr 30 09:33:43 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 30 Apr 2015 09:33:43 -0400 Subject: Something like charIndex, but in a variable... In-Reply-To: Message-ID: <14d0a887171-4c99-57b1@webprd-m98.mail.aol.com> How about this, assuming the chunk you want is the second word: on mouseUp put fld 1 into temp answer offset(char 1 of word 2 of temp,temp) answer offset(char (the number of chars of word 2 of temp) of word 2 of temp,temp) end mouseUp Craig -----Original Message----- From: Mark Schonewille To: How to use LiveCode Sent: Thu, Apr 30, 2015 8:00 am Subject: Re: Something like charIndex, but in a variable... Hi Malte, If using a field is the only solution, try the templateField. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 30 apr. 2015 om 10:07 heeft Malte Brill het volgende geschreven: > Hi all, > > I need to find the start and end character of chuncks in a variable. If we are in a field we can use charIndex for that. However, in a variable I have no good idea on how to do something similar to > > get charIndex(token 7 of line 15 of field ?myField?) > > > Any ideas? > > All the best, > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Thu Apr 30 09:52:19 2015 From: prothero at earthednet.org (Earthednet-wp) Date: Thu, 30 Apr 2015 06:52:19 -0700 Subject: Keeping a mobile app alive In-Reply-To: References: <4E667D86-FBA4-4EAB-AE8A-89934E1515CE@earthednet.org> Message-ID: <34F3B7EA-E1F0-45F5-B84D-73C02FA407C4@earthednet.org> Thanks, John! Bill William Prothero http://es.earthednet.org > On Apr 29, 2015, at 10:40 PM, John Dixon wrote: > > By default, iOS will dim the screen and eventually lock the device after periods of no user interaction. > To control this behavior, use the following commands: > > iphoneLockIdleTimer > iphoneUnlockIdleTimer > >> Subject: Keeping a mobile app alive >> From: prothero at earthednet.org >> Date: Wed, 29 Apr 2015 22:04:11 -0700 >> To: use-livecode at lists.runrev.com >> >> I have a mobile app that will be playing a long audio file. Is there a way to keep the application from going inactive when the device goes into sleep mode? On my iPad, after a period of no user activity, the screen goes black and the audio ceases. Is there a way to prevent this from happening? >> >> Google has been no help and I can't find anything in the user guide, or the dictionary. Perhaps there is a syntax I haven't thought of. >> >> Regards, >> Bill >> >> William Prothero >> http://es.earthednet.org >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revolution at derbrill.de Thu Apr 30 10:02:18 2015 From: revolution at derbrill.de (Malte Brill) Date: Thu, 30 Apr 2015 16:02:18 +0200 Subject: Something like charIndex, but in a variable... In-Reply-To: References: Message-ID: <65C107D9-0333-43EC-BBC5-0BA41B5934E4@derbrill.de> Hi all, thanks for the replies so far. The problem with both matchChunk and offset are, that they will return the first occurance of the literal. So in a text like this: orange banana tomato banana tomato orange tomato banana orange on mouseUp local temp,tChar put fld 1 into temp put offset(char 1 of word 2 of line 3 of temp,temp) into tChar set the backcolor of char tChar of fld 1 to "red" end mouseUp Will hilite the first b instead of the one on line 3. @Mark: charIndex does not appear to be working on the templateField. And of course it is slower in 7? :-( All the best, Malte From dfepstein at comcast.net Thu Apr 30 10:17:14 2015 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Thu, 30 Apr 2015 14:17:14 +0000 (UTC) Subject: What is driving the MB of a stack? In-Reply-To: <1172926503.1109840.1430403342878.JavaMail.zimbra@comcast.net> Message-ID: <1955175995.1111742.1430403434036.JavaMail.zimbra@comcast.net> Thanks to Scott Rossi and Richard Gaskin for their suggestions, which led me to the problem (large block of data stored as a custom property of a substack). ? While poking around, I noticed that many but not most controls and groups, when I get "the customPropertySets" of them, return the value "cREVGeneral", although when I look for this in the property inspector I do not find it.? What causes this custom property set to be created for some but not all controls, and (assuming it is really there), is there any harm in removing it? ? David Epstein From jacque at hyperactivesw.com Thu Apr 30 10:48:19 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 30 Apr 2015 09:48:19 -0500 Subject: Something like charIndex, but in a variable... In-Reply-To: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> References: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> Message-ID: <676819EA-15B1-44B0-BAE7-E4E877935AA0@hyperactivesw.com> Will the offset function work? put the number of chars in line 1 to 14 of tVar into tCount put offset(startChar, line 15 of tVar) + tCount into tStart put offset(endChar, line 15 of tVar) + tCount into tEnd On April 30, 2015 3:07:05 AM CDT, Malte Brill wrote: >Hi all, > >I need to find the start and end character of chuncks in a variable. If >we are in a field we can use charIndex for that. However, in a variable >I have no good idea on how to do something similar to > >get charIndex(token 7 of line 15 of field ?myField?) > > >Any ideas? > >All the best, > >Malte > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Thu Apr 30 10:51:02 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 30 Apr 2015 10:51:02 -0400 Subject: Something like charIndex, but in a variable... In-Reply-To: <65C107D9-0333-43EC-BBC5-0BA41B5934E4@derbrill.de> Message-ID: <14d0acf383d-4c99-5c9d@webprd-m98.mail.aol.com> Malte. Just so. Too fast on keyboard, too slow in brain. How about this: on mouseUp put fld 1 into temp get the number of chars of word 1 to 8 of temp -- first char answer it & "," & the number of chars of word 8 of temp + it end mouseUp Craig Will hilite the first b instead of the one on line 3. @Mark: charIndex does not appear to be working on the templateField. And of course it is slower in 7? :-( All the best, Malte _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -----Original Message----- From: Malte Brill To: use-livecode Sent: Thu, Apr 30, 2015 10:03 am Subject: Something like charIndex, but in a variable... Hi all, thanks for the replies so far. The problem with both matchChunk and offset are, that they will return the first occurance of the literal. So in a text like this: orange banana tomato banana tomato orange tomato banana orange on mouseUp local temp,tChar put fld 1 into temp put offset(char 1 of word 2 of line 3 of temp,temp) into tChar set the backcolor of char tChar of fld 1 to "red" end mouseUp Will hilite the first b instead of the one on line 3. @Mark: charIndex does not appear to be working on the templateField. And of course it is slower in 7? :-( All the best, Malte _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Thu Apr 30 10:55:42 2015 From: dunbarx at aol.com (dunbarx) Date: Thu, 30 Apr 2015 07:55:42 -0700 (PDT) Subject: Something like charIndex, but in a variable... In-Reply-To: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> References: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> Message-ID: <1430405742309-4691679.post@n4.nabble.com> Just so. Too fast on keyboard, too slow in brain. How about this: on mouseUp put fld 1 into temp get the number of chars of word 1 to 8 of temp -- first char answer it & "," & the number of chars of word 8 of temp + it end mouseUp Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Something-like-charIndex-but-in-a-variable-tp4691661p4691679.html Sent from the Revolution - User mailing list archive at Nabble.com. From th.douez at gmail.com Thu Apr 30 11:16:52 2015 From: th.douez at gmail.com (Thierry Douez) Date: Thu, 30 Apr 2015 17:16:52 +0200 Subject: Something like charIndex, but in a variable... In-Reply-To: <65C107D9-0333-43EC-BBC5-0BA41B5934E4@derbrill.de> References: <65C107D9-0333-43EC-BBC5-0BA41B5934E4@derbrill.de> Message-ID: > orange banana tomato > banana tomato orange > tomato banana orange Experimenting with regex... Sorry, couldn't resist :) function MalteCharIndex T, nWord, nLine, at p1, @p2 get format( "(?mx)(?: .*? \\n){%d} (?: (\\w+) [\\W]*){%d}", nLine -1, nWord) return matchChunk( T, IT, p1, p2) end MalteCharIndex and run it this way: on mouseUp put field "fEntry" into theText put 5 into nLine put 7 into nWord if MalteCharIndex( theText, nWord, nLine, tStart, tEnd) then select char tStart to tEnd of fld "fEntry" else beep end if end mouseUp Did a couple of tests and looks good so far. Sure, a lot of room for improvement. Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage From pete at lcsql.com Thu Apr 30 11:19:41 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Apr 2015 08:19:41 -0700 Subject: Substack vs. Library Stack In-Reply-To: <3AB17341-E436-4D59-93CE-24AFF6C195A5@earthednet.org> References: <554131A4.1030800@pdslabs.net> <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> <3AB17341-E436-4D59-93CE-24AFF6C195A5@earthednet.org> Message-ID: Hi Bill, There's nothing wrong with what you're doing but you can get the same functionality by putting your "library " handlers in your mainstack script, no need to start using it then. Pete lcSQL Software On Apr 29, 2015 3:30 PM, "William Prothero" wrote: > Peter: > Ok, if that makes it a library stack, then I?m using it as a library > stack. BUT, it?s also a substack. So I guess in this instance, they are the > same thing, functionally at least. One of the nice differences is I don?t > have to provide a file path to the start using command. Don?t know if > libraries require this, because I haven?t really tried to use ?Libraries? > per se. > Best, > Bill > > > On Apr 29, 2015, at 2:30 PM, Peter Haworth wrote: > > > > Maybe I'm confused over what you're doing but "start using" is how you > make > > a stack available as a library so you're already using a library, not a > > substack. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > On Wed, Apr 29, 2015 at 1:37 PM, William Prothero < > prothero at earthednet.org> > > wrote: > > > >> Scott: > >> I use substacks as code libraries in a large project. The substack > >> handlers are callable (without specifying the substack name) from any > other > >> substack and also from the main stack. It is like having a giant stack > >> script. Of course, you have to ?Start using mySubstack? to make the code > >> available. You can also remove the substack and use it elsewhere and > attach > >> it to another main stack by setting its mainStack property. e.g. set the > >> mainStack of this stack to ?myMainStack?. > >> > >> I find it very convenient. But, as I get more familiar with Livecode, > I?ll > >> like the libraries approach. > >> > >> Best, > >> Bill > >> > >> > >>> On Apr 29, 2015, at 12:31 PM, Phil Davis wrote: > >>> > >>> Another thing about libraries: they can have substacks if needed. Of > >> course, substacks can't. > >>> > >>> Phil Davis > >>> > >>> > >>> On 4/29/15 10:36 AM, Scott Rossi wrote: > >>>> I imagine you'll get a lot of responses to this, but one reason to > use a > >>>> library is its code is available to all open stacks in LC: functions, > >>>> commands, etc. Sort of like having a backscript for all open stacks, > >>>> instead of just one. A substack doesn't do this. > >>>> > >>>> Another frame of reference that might help is the difference between > >>>> behaviors and libraries: code in behaviors is object-specific, > available > >>>> only to those objects that have the behavior assigned to them, while > >> code > >>>> in libraries is universal, available to all objects anywhere, and > >> doesn't > >>>> require any assignment. > >>>> > >>>> Other people will probably chime in with additional insights. > >>>> > >>>> Regards, > >>>> > >>>> Scott Rossi > >>>> Creative Director > >>>> Tactile Media, UX/UI Design > >>>> > >>>> > >>>> > >>>> > >>>> On 4/29/15, 9:56 AM, "Mike Kerner" wrote: > >>>> > >>>>> I have not read a straight answer on this, yet. > >>>>> > >>>>> Library stacks vs. substacks why use one vs. the other? I don't see > >> any > >>>>> clear advantage to Libraries, per se, even for...libraries. > >>>>> > >>>>> -- > >>>>> On the first day, God created the heavens and the Earth > >>>>> On the second day, God created the oceans. > >>>>> On the third day, God put the animals on hold for a few hours, > >>>>> and did a little diving. > >>>>> And God said, "This is good." > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Thu Apr 30 11:50:06 2015 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 30 Apr 2015 16:50:06 +0100 Subject: Something like charIndex, but in a variable... In-Reply-To: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> References: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> Message-ID: <55424F2E.5000807@cogapp.com> On 30/04/2015 09:07, Malte Brill wrote: > I need to find the start and end character of chuncks in a variable. If we are in a field we can use charIndex for that. However, in a variable I have no good idea on how to do something similar to > > get charIndex(token 7 of line 15 of field ?myField?) (unhelpful to Malte, sorry) - I hadn't noticed the introduction of charIndex. What a useful property. It would be great if it could be extended to arbitrary sources of value. In the meantime, could one write an ugly function to calculate the start index of a chunk by first getting the length of the preceeding chunks, then using that value as the charsToSkip for a call to offset on the value of the chunk? So a first approximation - it would need some better work parsing the chunk expression to be robust - function chunkIndex tFullChunkExpr, tValue local tChunkExpr, tPriorChunksExpr, tChunkValue, iConsumed, n, i -- convert nested chunk expression into lines, minor to major replace " of " with return in tFullChunkExpr if last word of tFullChunkExpr = "of" then \ delete last word of tFullChunkExpr -- accumulate start of each level of chunk put 0 into iConsumed -- find the start of each chunk in the expression, from major to minor repeat with i = number of lines in tFullChunkExpr down to 1 put line i of tFullChunkExpr into tChunkExpr -- make an expression for the chunks prior to this one put tChunkExpr into tPriorChunksExpr put format("1 to %d", word 2 of tChunkExpr - 1) \ into word 2 of tPriorChunksExpr -- get the length of the chunks prior to this one do format("put length(%s of tValue) into n", tPriorChunksExpr) -- get this chunk, and find the first instance -- of it after the length of the prior chunks do ("put" && tChunkExpr && "of tValue into tChunkValue") add offset(tChunkValue, tValue, n) + n to iConsumed -- repeat within this chunk put tChunkValue into tValue end repeat return iConsumed - 1 end chunkIndex To be called as e.g. get chunkIndex("token 7 of line 15 of", myVar) I suspect that this could be fooled if there was a lot of leading white space (and a repetition of the target chunk prior to it), but that could probably be dealt with by an additional check for offset of the 'priorChunkValue'. Ben From pmbrig at gmail.com Thu Apr 30 12:55:18 2015 From: pmbrig at gmail.com (Peter Brigham) Date: Thu, 30 Apr 2015 12:55:18 -0400 Subject: Something like charIndex, but in a variable... In-Reply-To: <676819EA-15B1-44B0-BAE7-E4E877935AA0@hyperactivesw.com> References: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> <676819EA-15B1-44B0-BAE7-E4E877935AA0@hyperactivesw.com> Message-ID: Here's a function I use all the time, which may come in handy: function offsets str, pContainer -- returns a comma-delimited list of all the offsets of str in pContainer -- returns 0 if not found -- note: offsets("xx","xxxxxx") returns "1,3,5" not "1,2,3,4,5" -- ie, overlapping offsets are not counted -- note: to get the last occurrence of a string in a container (often useful) -- use "item -1 of offsets(...)" -- by Peter M. Brigham, pmbrig at gmail.com ? freeware if str is not in pContainer then return 0 put 0 into startPoint repeat put offset(str,pContainer,startPoint) into thisOffset if thisOffset = 0 then exit repeat add thisOffset to startPoint put startPoint & comma after offsetList add length(str)-1 to startPoint end repeat return item 1 to -1 of offsetList -- delete trailing comma end offsets -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Thu, Apr 30, 2015 at 10:48 AM, J. Landman Gay wrote: > Will the offset function work? > > put the number of chars in line 1 to 14 of tVar into tCount > put offset(startChar, line 15 of tVar) + tCount into tStart > put offset(endChar, line 15 of tVar) + tCount into tEnd > > > On April 30, 2015 3:07:05 AM CDT, Malte Brill > wrote: > >Hi all, > > > >I need to find the start and end character of chuncks in a variable. If > >we are in a field we can use charIndex for that. However, in a variable > >I have no good idea on how to do something similar to > > > >get charIndex(token 7 of line 15 of field ?myField?) > > > > > >Any ideas? > > > >All the best, > > > >Malte > > > > > >_______________________________________________ > >use-livecode mailing list > >use-livecode at lists.runrev.com > >Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Thu Apr 30 12:57:16 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Apr 2015 09:57:16 -0700 Subject: Something like charIndex, but in a variable... In-Reply-To: <55424F2E.5000807@cogapp.com> References: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> <55424F2E.5000807@cogapp.com> Message-ID: For those whose eyes glaze over when looking at regexp, it seems Jacque's suggestion of the offset function making use of the chars to skip easily solves this problem. I don;t have the original post in front of me so can't remember if the objective was to find the last occurrence of the character or the first and last. This finds both. on mouseUp put zero into tSkip repeat until tOffset is zero put offset("b",tVar,tSkip) into tOffset if tOffset <>0 then if tSkip is zero then put tOffset into tStart else put tSkip+tOffset into tEnd end if add tOffset to tSkip end if end repeat end mouseUp No idea on performance. I've often thought it would be great if there was a way for offset to start at the end of a string and work backwards, maybe a "direction" parameter. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Apr 30, 2015 at 8:50 AM, Ben Rubinstein wrote: > On 30/04/2015 09:07, Malte Brill wrote: > >> I need to find the start and end character of chuncks in a variable. If >> we are in a field we can use charIndex for that. However, in a variable I >> have no good idea on how to do something similar to >> >> get charIndex(token 7 of line 15 of field ?myField?) >> > > (unhelpful to Malte, sorry) - I hadn't noticed the introduction of > charIndex. What a useful property. It would be great if it could be > extended to arbitrary sources of value. > > In the meantime, could one write an ugly function to calculate the start > index of a chunk by first getting the length of the preceeding chunks, then > using that value as the charsToSkip for a call to offset on the value of > the chunk? > > So a first approximation - it would need some better work parsing the > chunk expression to be robust - > > function chunkIndex tFullChunkExpr, tValue > local tChunkExpr, tPriorChunksExpr, tChunkValue, iConsumed, n, i > > -- convert nested chunk expression into lines, minor to major > replace " of " with return in tFullChunkExpr > if last word of tFullChunkExpr = "of" then \ > delete last word of tFullChunkExpr > > -- accumulate start of each level of chunk > put 0 into iConsumed > > -- find the start of each chunk in the expression, from major to minor > repeat with i = number of lines in tFullChunkExpr down to 1 > put line i of tFullChunkExpr into tChunkExpr > > -- make an expression for the chunks prior to this one > put tChunkExpr into tPriorChunksExpr > put format("1 to %d", word 2 of tChunkExpr - 1) \ > into word 2 of tPriorChunksExpr > > -- get the length of the chunks prior to this one > do format("put length(%s of tValue) into n", tPriorChunksExpr) > > -- get this chunk, and find the first instance > -- of it after the length of the prior chunks > do ("put" && tChunkExpr && "of tValue into tChunkValue") > add offset(tChunkValue, tValue, n) + n to iConsumed > > -- repeat within this chunk > put tChunkValue into tValue > end repeat > > return iConsumed - 1 > end chunkIndex > > > To be called as e.g. > get chunkIndex("token 7 of line 15 of", myVar) > > I suspect that this could be fooled if there was a lot of leading white > space (and a repetition of the target chunk prior to it), but that could > probably be dealt with by an additional check for offset of the > 'priorChunkValue'. > > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Apr 30 13:06:28 2015 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 30 Apr 2015 12:06:28 -0500 Subject: What is driving the MB of a stack? In-Reply-To: <1955175995.1111742.1430403434036.JavaMail.zimbra@comcast.net> References: <1955175995.1111742.1430403434036.JavaMail.zimbra@comcast.net> Message-ID: <55426114.7090807@hyperactivesw.com> On 4/30/2015 9:17 AM, dfepstein at comcast.net wrote: > While poking around, I noticed that many but not most controls and > groups, when I get "the customPropertySets" of them, return the value > "cREVGeneral", although when I look for this in the property > inspector I do not find it. What causes this custom property set to > be created for some but not all controls, and (assuming it is really > there), is there any harm in removing it? It's an IDE property set which you can see by choosing "LiveCode UI Elements in Lists" from the View menu. The set is created whenever you open the Geometry pane in the property inspector for an object. If you aren't using geometry, you can delete the set. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Thu Apr 30 13:20:51 2015 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 30 Apr 2015 20:20:51 +0300 Subject: HTML5... In-Reply-To: <69E89F54-CA50-4F51-A09C-E89B2DC63C9A@runrev.com> References: <55412BC2.4020700@gmail.com> <69E89F54-CA50-4F51-A09C-E89B2DC63C9A@runrev.com> Message-ID: <55426473.20907@gmail.com> On 29/04/2015 20:06, Richmond wrote: > It is very odd that having run that Kickstarter campaign we have heard nothing > about the HTML5 thing at all. > > http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0CC0QFjAC&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTake_the_Money_and_Run&ei=gytBVc_MJoXsmAW00oGICA&usg=AFQjCNEevVZQoPBsvRM45zUz2Gbx7ZHBNQ&bvm=bv.92189499,d.dGY Here's what LiveCode said on the campaign page (http://livecode.com/livecode-to-html5/) : > We estimate that from the starting point to the first point of delivery of a prototype will take around a year. This was the final ?stretch goal? on last year?s Kickstarter project that we didn?t get to including in that campaign. We?d like to start now so we can deliver as soon as possible! We?ve learned from our previous project, that it can take a long time to hire the right talent, train up new programmers and get productive on a brand new project. The campaign scraped over the line on July 31 last year. So if you expect that software development proceeds according to estimates, you wouldn't expect to see "first point of delivery of a prototype" for another three months yet. A little early for offensive (not to mention unnecessarily verbose) links? ------------------------------------------------------------------------ Dear Ben, 1. My message was only mildly offensive (obviously you are not very well acquainted with my track record), and it was intended to be so, as expereince has shown me that a mildly offensive message gets results. My message did: within a matter of minutes Kevin was there on the button, Bless him! 2. Verbose. Always . . . Love, Richmond. From cs_livecode at icloud.com Thu Apr 30 14:32:21 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Thu, 30 Apr 2015 12:32:21 -0600 Subject: Release 6.7.5 RC 1 / 7.0.5 RC 1 In-Reply-To: <5541EBB8.3030002@livecode.com> References: <5541EBB8.3030002@livecode.com> Message-ID: I want to try out the new font mapping feature for iOS, but I?m a little confused. Wondering if someone has played with it yet and can offer a few pointers, or maybe someone from LiveCode can, if no one else does. :-) First, how do we determine the PostScript names of fonts? The Release Notes say to reference Font Book, but I?m not sure that always shows PostScript names. For example, in one app I have a field that uses the font Helvetica Neue Condensed Bold. This is the name exactly as it appears in Font Book. However, in my stack, the font name is specified as ?HelveticaNeue-CondensedBold?, and this works on the device. So which one is the PostScript name? And which one should I specify in the property inspector and the name of the font? Maybe what would make this easier is if we could see a sample font map file. Second, in the font mapping file, should the font names be enclosed in quotes? Third, is the font mapping case sensitive? I?m assuming so, since iOS is case sensitive, but want to make sure. So in my font map file, would I need to use "Helvetica Neue Condensed Bold? vs. ?helvetica neue condensed bold?, or would either one work fine? Thanks, Chris > On Apr 30, 2015, at 2:45 AM, Sebastien Nouat wrote: > > Dear List Members, > > We are pleased to announce the release of LiveCode 6.7.5 RC 1 and 7.0.5 RC 1. This release is a maintenance release which contains bug fixes for both versions. The list of bugs fixed can be found in the Release Notes. > > * iOS Font Map * > As some of you may have experienced, the font loading is affected by a dramatic slowdown from iOS 8.1. That comes from iOS 8.1 itself, which cannot handle font loading efficiently unless the exact PostScript name of the font is used. To help with this, we introduced a font mapping system in the iOS Standalone Settings (see the Release Notes for further information). > > * specialFolderPath of "resources" * > A new specialFolderPath has been added for the Resources, which matches the location of the files copied along the standalone engine for standalones, or the location of the defaultstack, in the IDE. This comes in response to the bug 14295 (more information is available in the docs and the Release Notes). > > * Xcode 6.3 and iOS 8.3 * > Xcode 6.3 is now selectable, and required for saving a stack as an iOS standalone application on Yosemite. > Since Xcode 6.3 cannot be installed on Mac OS 10.9 (Mavericks), Xcode 6.2 and iOS Simulator 8.2 are still supported; and will be as long as the AppStore will accept apps created with iOS SDK 8.2. > > *Getting the Release* > To get the release please select "check for updates" from the "help" menu in the product or download the installer directly at: http://downloads.livecode.com > > *6.7.5 RC 2 / 7.0.5 RC 2 * > The following RC release is planned to happen next week. > > Warm regards, > > The LiveCode Team > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From t.heaford at icloud.com Thu Apr 30 14:38:55 2015 From: t.heaford at icloud.com (Terence Heaford) Date: Thu, 30 Apr 2015 19:38:55 +0100 Subject: Release 6.7.5 RC 1 / 7.0.5 RC 1 In-Reply-To: References: <5541EBB8.3030002@livecode.com> Message-ID: Not working in IOS but I presume in Font Book you visit the View/Show Font Info in the menu and PostScript Name is the top of the list. All the best Terry > On 30 Apr 2015, at 19:32, Chris Sheffield wrote: > > First, how do we determine the PostScript names of fonts? From mark at livecode.com Thu Apr 30 14:39:28 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 30 Apr 2015 20:39:28 +0200 Subject: Release 6.7.5 RC 1 / 7.0.5 RC 1 In-Reply-To: References: <5541EBB8.3030002@livecode.com> Message-ID: On 2015-04-30 20:32, Chris Sheffield wrote: > First, how do we determine the PostScript names of fonts? The Release > Notes say to reference Font Book, but I?m not sure that always shows > PostScript names. For example, in one app I have a field that uses the > font Helvetica Neue Condensed Bold. This is the name exactly as it > appears in Font Book. However, in my stack, the font name is specified > as ?HelveticaNeue-CondensedBold?, and this works on the device. So > which one is the PostScript name? And which one should I specify in > the property inspector and the name of the font? Maybe what would make > this easier is if we could see a sample font map file. You can find out the PostScript name of the font by using Font Book as mentioned... 1) Open up Font Book 2) Go to menu Preview > Show Font Info 3) Choose the font you want to inspect and the right hand pane will list the PostScript name at the top > Second, in the font mapping file, should the font names be enclosed in > quotes? No. The form is: = e.g. Abadi MT Condensed Extra Bold=AbadiMT-CondensedExtraBold There is a complete fontmap file containing all fonts included in iOS 8 used by default when you build an iOS standalone. You can find this by opening up the LiveCode.app package and looking in: Contents > Tools > Runtime > Device-8_3 > Third, is the font mapping case sensitive? I?m assuming so, since iOS > is case sensitive, but want to make sure. So in my font map file, > would I need to use "Helvetica Neue Condensed Bold? vs. ?helvetica > neue condensed bold?, or would either one work fine? The LiveCode Name is case-insensitive, the PostScript name is case-sensitive. (CoreText is case-sensitive, but LiveCode isn't). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Thu Apr 30 15:04:52 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 30 Apr 2015 21:04:52 +0200 Subject: HTML5... In-Reply-To: <55426473.20907@gmail.com> References: " " <55412BC2.4020700@gmail.com> <69E89F54-CA50-4F51-A09C-E89B2DC63C9A@runrev.com> <55426473.20907@gmail.com> Message-ID: > > 1. My message was only mildly offensive (obviously you are not very > well acquainted with my track record), and it was intended to > be so, as expereince has shown me that a mildly offensive message gets > results. > > My message did: within a matter of minutes Kevin was there on the > button, Bless him! I must confess I did not take the link as being offensive at all - indeed it did actually produce one of those true LOL moments (I was glad I didn't have a mouthful of coffee at the time!). After all, if we had 'taken the money and run', do you think we would be sitting at our computers, posting periodically at various random times to the lists and forums in a part of the world which is currently experiencing a four week 'Arctic Blast' in what is purported to be 'Spring'? > 2. Verbose. Always . . . I think it would hypocritical for me to make any comment on the verbosity of anyone else - so I won't ;) Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From colinholgate at gmail.com Thu Apr 30 15:08:19 2015 From: colinholgate at gmail.com (Colin Holgate) Date: Thu, 30 Apr 2015 15:08:19 -0400 Subject: HTML5... In-Reply-To: References: <"> <"> <55412BC2.4020700@gmail.com> <69E89F54-CA50-4F51-A09C-E89B2DC63C9A@runrev.com> <55426473.20907@gmail.com> Message-ID: I bet you type your replies quicker than most too. > On Apr 30, 2015, at 3:04 PM, Mark Waddingham wrote: > >> 2. Verbose. Always . . . > > I think it would hypocritical for me to make any comment on the verbosity of anyone else - so I won't ;) From prothero at earthednet.org Thu Apr 30 15:08:52 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 30 Apr 2015 12:08:52 -0700 Subject: question re mobilePick Message-ID: Folks: I am using mobilePick to select from a list of data, in iOS. I can?t seem to get the initialIndex to work. The API Dictionary says: initialIndex - The (1-based) index of the item to be initially highlighted. I was assuming that this was just the line number of the optionList, but since it doesn?t work, I figure it must be something else. What dos that line mean? What is a "1-based" index? Regards, Bill William A. Prothero http://es.earthednet.org/ From prothero at earthednet.org Thu Apr 30 15:10:40 2015 From: prothero at earthednet.org (William Prothero) Date: Thu, 30 Apr 2015 12:10:40 -0700 Subject: Substack vs. Library Stack In-Reply-To: References: <554131A4.1030800@pdslabs.net> <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> <3AB17341-E436-4D59-93CE-24AFF6C195A5@earthednet.org> Message-ID: <428E8CBE-5A8A-4900-A41E-19BCDC35DEBC@earthednet.org> Peter: Yeah, but it?s very cumbersome to deal with thousands of lines of code in one edit window. And, then I can divide the substacks by functionality and pull what I need for other applications. Bill > On Apr 30, 2015, at 8:19 AM, Peter Haworth wrote: > > Hi Bill, > There's nothing wrong with what you're doing but you can get the same > functionality by putting your "library " handlers in your mainstack script, > no need to start using it then. > > Pete > lcSQL Software > On Apr 29, 2015 3:30 PM, "William Prothero" wrote: > >> Peter: >> Ok, if that makes it a library stack, then I?m using it as a library >> stack. BUT, it?s also a substack. So I guess in this instance, they are the >> same thing, functionally at least. One of the nice differences is I don?t >> have to provide a file path to the start using command. Don?t know if >> libraries require this, because I haven?t really tried to use ?Libraries? >> per se. >> Best, >> Bill >> >>> On Apr 29, 2015, at 2:30 PM, Peter Haworth wrote: >>> >>> Maybe I'm confused over what you're doing but "start using" is how you >> make >>> a stack available as a library so you're already using a library, not a >>> substack. >>> >>> Pete >>> lcSQL Software >>> Home of lcStackBrowser and >>> SQLiteAdmin >>> >>> On Wed, Apr 29, 2015 at 1:37 PM, William Prothero < >> prothero at earthednet.org> >>> wrote: >>> >>>> Scott: >>>> I use substacks as code libraries in a large project. The substack >>>> handlers are callable (without specifying the substack name) from any >> other >>>> substack and also from the main stack. It is like having a giant stack >>>> script. Of course, you have to ?Start using mySubstack? to make the code >>>> available. You can also remove the substack and use it elsewhere and >> attach >>>> it to another main stack by setting its mainStack property. e.g. set the >>>> mainStack of this stack to ?myMainStack?. >>>> >>>> I find it very convenient. But, as I get more familiar with Livecode, >> I?ll >>>> like the libraries approach. >>>> >>>> Best, >>>> Bill >>>> >>>> >>>>> On Apr 29, 2015, at 12:31 PM, Phil Davis wrote: >>>>> >>>>> Another thing about libraries: they can have substacks if needed. Of >>>> course, substacks can't. >>>>> >>>>> Phil Davis >>>>> >>>>> >>>>> On 4/29/15 10:36 AM, Scott Rossi wrote: >>>>>> I imagine you'll get a lot of responses to this, but one reason to >> use a >>>>>> library is its code is available to all open stacks in LC: functions, >>>>>> commands, etc. Sort of like having a backscript for all open stacks, >>>>>> instead of just one. A substack doesn't do this. >>>>>> >>>>>> Another frame of reference that might help is the difference between >>>>>> behaviors and libraries: code in behaviors is object-specific, >> available >>>>>> only to those objects that have the behavior assigned to them, while >>>> code >>>>>> in libraries is universal, available to all objects anywhere, and >>>> doesn't >>>>>> require any assignment. >>>>>> >>>>>> Other people will probably chime in with additional insights. >>>>>> >>>>>> Regards, >>>>>> >>>>>> Scott Rossi >>>>>> Creative Director >>>>>> Tactile Media, UX/UI Design >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 4/29/15, 9:56 AM, "Mike Kerner" wrote: >>>>>> >>>>>>> I have not read a straight answer on this, yet. >>>>>>> >>>>>>> Library stacks vs. substacks why use one vs. the other? I don't see >>>> any >>>>>>> clear advantage to Libraries, per se, even for...libraries. >>>>>>> >>>>>>> -- >>>>>>> On the first day, God created the heavens and the Earth >>>>>>> On the second day, God created the oceans. >>>>>>> On the third day, God put the animals on hold for a few hours, >>>>>>> and did a little diving. >>>>>>> And God said, "This is good." >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Thu Apr 30 15:15:47 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Apr 2015 12:15:47 -0700 Subject: Substack vs. Library Stack In-Reply-To: <428E8CBE-5A8A-4900-A41E-19BCDC35DEBC@earthednet.org> References: <554131A4.1030800@pdslabs.net> <6594BB49-3EB9-4057-B4C8-D6644692DC9B@earthednet.org> <3AB17341-E436-4D59-93CE-24AFF6C195A5@earthednet.org> <428E8CBE-5A8A-4900-A41E-19BCDC35DEBC@earthednet.org> Message-ID: Hi Bill, Well I certainly agree with your comment about being cumbersome to edit large scripts in one editor window. and I can see why your substack idea would make it easier to manage/edit smaller scripts. In fact I might take a look at that idea myself but utilizing a separate library mainstack with substacks according to functionality groups. Thanks for the idea. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Apr 30, 2015 at 12:10 PM, William Prothero wrote: > Peter: > Yeah, but it?s very cumbersome to deal with thousands of lines of code in > one edit window. And, then I can divide the substacks by functionality and > pull what I need for other applications. > Bill > > > On Apr 30, 2015, at 8:19 AM, Peter Haworth wrote: > > > > Hi Bill, > > There's nothing wrong with what you're doing but you can get the same > > functionality by putting your "library " handlers in your mainstack > script, > > no need to start using it then. > > > > Pete > > lcSQL Software > > On Apr 29, 2015 3:30 PM, "William Prothero" > wrote: > > > >> Peter: > >> Ok, if that makes it a library stack, then I?m using it as a library > >> stack. BUT, it?s also a substack. So I guess in this instance, they are > the > >> same thing, functionally at least. One of the nice differences is I > don?t > >> have to provide a file path to the start using command. Don?t know if > >> libraries require this, because I haven?t really tried to use > ?Libraries? > >> per se. > >> Best, > >> Bill > >> > >>> On Apr 29, 2015, at 2:30 PM, Peter Haworth wrote: > >>> > >>> Maybe I'm confused over what you're doing but "start using" is how you > >> make > >>> a stack available as a library so you're already using a library, not a > >>> substack. > >>> > >>> Pete > >>> lcSQL Software > >>> Home of lcStackBrowser and > >>> SQLiteAdmin > >>> > >>> On Wed, Apr 29, 2015 at 1:37 PM, William Prothero < > >> prothero at earthednet.org> > >>> wrote: > >>> > >>>> Scott: > >>>> I use substacks as code libraries in a large project. The substack > >>>> handlers are callable (without specifying the substack name) from any > >> other > >>>> substack and also from the main stack. It is like having a giant stack > >>>> script. Of course, you have to ?Start using mySubstack? to make the > code > >>>> available. You can also remove the substack and use it elsewhere and > >> attach > >>>> it to another main stack by setting its mainStack property. e.g. set > the > >>>> mainStack of this stack to ?myMainStack?. > >>>> > >>>> I find it very convenient. But, as I get more familiar with Livecode, > >> I?ll > >>>> like the libraries approach. > >>>> > >>>> Best, > >>>> Bill > >>>> > >>>> > >>>>> On Apr 29, 2015, at 12:31 PM, Phil Davis wrote: > >>>>> > >>>>> Another thing about libraries: they can have substacks if needed. Of > >>>> course, substacks can't. > >>>>> > >>>>> Phil Davis > >>>>> > >>>>> > >>>>> On 4/29/15 10:36 AM, Scott Rossi wrote: > >>>>>> I imagine you'll get a lot of responses to this, but one reason to > >> use a > >>>>>> library is its code is available to all open stacks in LC: > functions, > >>>>>> commands, etc. Sort of like having a backscript for all open > stacks, > >>>>>> instead of just one. A substack doesn't do this. > >>>>>> > >>>>>> Another frame of reference that might help is the difference between > >>>>>> behaviors and libraries: code in behaviors is object-specific, > >> available > >>>>>> only to those objects that have the behavior assigned to them, while > >>>> code > >>>>>> in libraries is universal, available to all objects anywhere, and > >>>> doesn't > >>>>>> require any assignment. > >>>>>> > >>>>>> Other people will probably chime in with additional insights. > >>>>>> > >>>>>> Regards, > >>>>>> > >>>>>> Scott Rossi > >>>>>> Creative Director > >>>>>> Tactile Media, UX/UI Design > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> On 4/29/15, 9:56 AM, "Mike Kerner" > wrote: > >>>>>> > >>>>>>> I have not read a straight answer on this, yet. > >>>>>>> > >>>>>>> Library stacks vs. substacks why use one vs. the other? I don't > see > >>>> any > >>>>>>> clear advantage to Libraries, per se, even for...libraries. > >>>>>>> > >>>>>>> -- > >>>>>>> On the first day, God created the heavens and the Earth > >>>>>>> On the second day, God created the oceans. > >>>>>>> On the third day, God put the animals on hold for a few hours, > >>>>>>> and did a little diving. > >>>>>>> And God said, "This is good." > >>>>>>> _______________________________________________ > >>>>>>> use-livecode mailing list > >>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Thu Apr 30 15:16:27 2015 From: mark at livecode.com (Mark Waddingham) Date: Thu, 30 Apr 2015 21:16:27 +0200 Subject: HTML5... In-Reply-To: References: <"> <"> <55412BC2.4020700@gmail.com> <69E89F54-CA50-4F51-A09C-E89B2DC63C9A@runrev.com> <55426473.20907@gmail.com> Message-ID: <67b18b08dbe82bd4000f989d73d349a7@livecode.com> On 2015-04-30 21:08, Colin Holgate wrote: > I bet you type your replies quicker than most too. Not as quick as Kevin! -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From tedennis at softwaredetails.com Thu Apr 30 15:17:22 2015 From: tedennis at softwaredetails.com (Terry Dennis) Date: Thu, 30 Apr 2015 12:17:22 -0700 Subject: Repeat ... kind'a Message-ID: I copied a section of script from within a complex ?repeat? loop within a complex function into another, smaller and less complex inline function. So far, so good. Then, I ran into a condition in the new function that happens about once every 500 records, and only under a rare set of circumstances. It caused an interesting execution time error. I thought it was related to ?eof? processing, because that was the LC bug that recently caused me frustrating fits. Not so. It took me quite a bit of whittling down logic and running bunches of tests to recreate the rare set of circumstances. Much fiddling later, I discovered the issue. It was a runtime ?oops?. Check out the following code snippet, which shows the execution error. I threw it into button ?Capture?s script: on testOOPS put 1 into t1 -- Superfluous for testing purposes put 2 into t2 -- Superfluous for testing purposes if true = true then -- Runtime error here !!! exit repeat end if put 3 into t3 -- Superfluous for testing purposes end testOOPS <<<< button "Capture": execution error at line 27 (Handler: error in statement), char 1 >>>> I certainly didn?t expect an execution error on an ?if true then? statement. The problem is the code I copied included an ?exit repeat?, but the function I copied it into didn?t have a ?repeat ... end repeat?. Thus, there was an ?unmatched? exit from a repeat that didn?t exist. On the rare occurrences when my code matched the complex condition, it caused an execution error on the line BEFORE the ?exit repeat?. (the same thing happens on an ?end repeat?) It seems to me this is a bug that should have been caught during the script compilation phase, instead of during execution. somehow indicating a runtime error on the prior statement. It cost me several hours and some lost data to figure it out, primarily because of the rare circumstances that caused it to happen. Note that some other lines in that script got "dorked". I don't know if it was the "oops" or the manual changes trying to narrow down the error while I was frustrated. I don't THINK running a script can modify code, but I also didn't THINK I could get an execution error on an "if true then" statement. From dunbarx at aol.com Thu Apr 30 15:34:11 2015 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 30 Apr 2015 15:34:11 -0400 Subject: Repeat ... kind'a In-Reply-To: References: Message-ID: <14d0bd2738d-4c99-725a@webprd-m98.mail.aol.com> I would cringe if I saw someone using a reserved word as a variable, and blanch if that word was as deep and embedded as "true". You are lucky the machine did not explode. Try this: on mouseUp --put "66" into true -- uncomment, and you will get a compile-time error, never mind run-time if true = true then -- Runtime error here !!! exit repeat end if end mouseUp Don't. Just don't. Craig Newman on testOOPS put 1 into t1 -- Superfluous for testing purposes put 2 into t2 -- Superfluous for testing purposes if true = true then -- Runtime error here !!! exit repeat end if put 3 into t3 -- Superfluous for testing purposes end testOOPS -----Original Message----- From: Terry Dennis To: use-livecode Sent: Thu, Apr 30, 2015 3:18 pm Subject: Repeat ... kind'a I copied a section of script from within a complex ?repeat? loop within a complex function into another, smaller and less complex inline function. So far, so good. Then, I ran into a condition in the new function that happens about once every 500 records, and only under a rare set of circumstances. It caused an interesting execution time error. I thought it was related to ?eof? processing, because that was the LC bug that recently caused me frustrating fits. Not so. It took me quite a bit of whittling down logic and running bunches of tests to recreate the rare set of circumstances. Much fiddling later, I discovered the issue. It was a runtime ?oops?. Check out the following code snippet, which shows the execution error. I threw it into button ?Capture?s script: on testOOPS put 1 into t1 -- Superfluous for testing purposes put 2 into t2 -- Superfluous for testing purposes if true = true then -- Runtime error here !!! exit repeat end if put 3 into t3 -- Superfluous for testing purposes end testOOPS <<<< button "Capture": execution error at line 27 (Handler: error in statement), char 1 >>>> I certainly didn?t expect an execution error on an ?if true then? statement. The problem is the code I copied included an ?exit repeat?, but the function I copied it into didn?t have a ?repeat ... end repeat?. Thus, there was an ?unmatched? exit from a repeat that didn?t exist. On the rare occurrences when my code matched the complex condition, it caused an execution error on the line BEFORE the ?exit repeat?. (the same thing happens on an ?end repeat?) It seems to me this is a bug that should have been caught during the script compilation phase, instead of during execution. somehow indicating a runtime error on the prior statement. It cost me several hours and some lost data to figure it out, primarily because of the rare circumstances that caused it to happen. Note that some other lines in that script got "dorked". I don't know if it was the "oops" or the manual changes trying to narrow down the error while I was frustrated. I don't THINK running a script can modify code, but I also didn't THINK I could get an execution error on an "if true then" statement. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Thu Apr 30 15:41:50 2015 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 30 Apr 2015 13:41:50 -0600 Subject: Repeat ... kind'a In-Reply-To: References: Message-ID: since exit repeat can technically be a "stand alone" type of statement, it indeed might only be caught on execution. I'm with you though, it would be better if the engine looked to make sure it was actually inside a repeat loop. Having said that, if you do a function call that checks things, I think you can have the function exit the loop? (maybe) If so, then checking for the location of the exit repeat would be a bad thing. On Thu, Apr 30, 2015 at 1:17 PM, Terry Dennis wrote: > I copied a section of script from within a complex ?repeat? loop within a > complex function into another, smaller and less complex inline function. > So far, so good. Then, I ran into a condition in the new function that > happens about once every 500 records, and only under a rare set of > circumstances. It caused an interesting execution time error. I thought it > was related to ?eof? processing, because that was the LC bug that recently > caused me frustrating fits. Not so. It took me quite a bit of whittling > down logic and running bunches of tests to recreate the rare set of > circumstances. Much fiddling later, I discovered the issue. It was a > runtime ?oops?. Check out the following code snippet, which shows the > execution error. I threw it into button ?Capture?s script: > > on testOOPS > put 1 into t1 -- Superfluous for testing purposes > put 2 into t2 -- Superfluous for testing purposes > if true = true then -- Runtime error here !!! > exit repeat > end if > put 3 into t3 -- Superfluous for testing purposes > end testOOPS > > <<<< > button "Capture": execution error at line 27 (Handler: error in > statement), char 1 > >> >>>>> > I certainly didn?t expect an execution error on an ?if true then? > statement. > > The problem is the code I copied included an ?exit repeat?, but the > function I copied it into didn?t have a ?repeat ... end repeat?. Thus, > there was an ?unmatched? exit from a repeat that didn?t exist. On the rare > occurrences when my code matched the complex condition, it caused an > execution error on the line BEFORE the ?exit repeat?. (the same thing > happens on an ?end repeat?) > > It seems to me this is a bug that should have been caught during the > script compilation phase, instead of during execution. somehow indicating > a runtime error on the prior statement. It cost me several hours and some > lost data to figure it out, primarily because of the rare circumstances > that caused it to happen. Note that some other lines in that script got > "dorked". I don't know if it was the "oops" or the manual changes trying > to narrow down the error while I was frustrated. I don't THINK running a > script can modify code, but I also didn't THINK I could get an execution > error on an "if true then" statement. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From walter.h.brown at gmail.com Thu Apr 30 15:52:27 2015 From: walter.h.brown at gmail.com (Walt Brown) Date: Thu, 30 Apr 2015 15:52:27 -0400 Subject: Something like charIndex, but in a variable... In-Reply-To: <14d0acf383d-4c99-5c9d@webprd-m98.mail.aol.com> References: <65C107D9-0333-43EC-BBC5-0BA41B5934E4@derbrill.de> <14d0acf383d-4c99-5c9d@webprd-m98.mail.aol.com> Message-ID: I'm not sure I get it Malte. If you already know which line your target is on, then just limit the chunk expression to that line. On Thu, Apr 30, 2015 at 10:51 AM, wrote: > Malte. > > > Just so. Too fast on keyboard, too slow in brain. How about this: > > > > on mouseUp > put fld 1 into temp > get the number of chars of word 1 to 8 of temp -- first char > answer it & "," & the number of chars of word 8 of temp + it > end mouseUp > > > Craig > > > > Will hilite the first b instead of the one > on line 3. > > @Mark: charIndex does not appear to be working on the templateField. > And of course it is slower in 7? :-( > > All the > best, > > Malte > > > > _______________________________________________ > use-livecode > mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, > unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -----Original Message----- > From: Malte Brill > To: use-livecode > Sent: Thu, Apr 30, 2015 10:03 am > Subject: Something like charIndex, but in a variable... > > > Hi all, > > thanks for the replies so far. > > The problem with both matchChunk and > offset are, that they will return the first occurance of the literal. So > in a > text like this: > > > orange banana tomato > banana tomato orange > tomato banana > orange > > on mouseUp > local temp,tChar > put fld 1 into temp > put offset(char > 1 of word 2 of line 3 of temp,temp) into tChar > set the backcolor of char > tChar of fld 1 to "red" > end mouseUp > > Will hilite the first b instead of the one > on line 3. > > @Mark: charIndex does not appear to be working on the templateField. > And of course it is slower in 7? :-( > > All the > best, > > Malte > > > > _______________________________________________ > use-livecode > mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From cs_livecode at icloud.com Thu Apr 30 16:07:36 2015 From: cs_livecode at icloud.com (Chris Sheffield) Date: Thu, 30 Apr 2015 14:07:36 -0600 Subject: Release 6.7.5 RC 1 / 7.0.5 RC 1 In-Reply-To: References: <5541EBB8.3030002@livecode.com> Message-ID: <6B902639-084C-472E-AB6F-67DF67FEBC43@icloud.com> Mark, Thank you for the explanation. Very helpful. I?m trying it out now. :) > On Apr 30, 2015, at 12:39 PM, Mark Waddingham wrote: > > On 2015-04-30 20:32, Chris Sheffield wrote: > >> First, how do we determine the PostScript names of fonts? The Release >> Notes say to reference Font Book, but I?m not sure that always shows >> PostScript names. For example, in one app I have a field that uses the >> font Helvetica Neue Condensed Bold. This is the name exactly as it >> appears in Font Book. However, in my stack, the font name is specified >> as ?HelveticaNeue-CondensedBold?, and this works on the device. So >> which one is the PostScript name? And which one should I specify in >> the property inspector and the name of the font? Maybe what would make >> this easier is if we could see a sample font map file. > > You can find out the PostScript name of the font by using Font Book as mentioned... > > 1) Open up Font Book > 2) Go to menu Preview > Show Font Info > 3) Choose the font you want to inspect and the right hand pane will list the PostScript name at the top > >> Second, in the font mapping file, should the font names be enclosed in quotes? > > No. The form is: > > = > > e.g. > > Abadi MT Condensed Extra Bold=AbadiMT-CondensedExtraBold > > There is a complete fontmap file containing all fonts included in iOS 8 used by default when you build an iOS standalone. You can find this by opening up the LiveCode.app package and looking in: > Contents > Tools > Runtime > Device-8_3 > >> Third, is the font mapping case sensitive? I?m assuming so, since iOS >> is case sensitive, but want to make sure. So in my font map file, >> would I need to use "Helvetica Neue Condensed Bold? vs. ?helvetica >> neue condensed bold?, or would either one work fine? > > The LiveCode Name is case-insensitive, the PostScript name is case-sensitive. (CoreText is case-sensitive, but LiveCode isn't). > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gregory.lypny at videotron.ca Thu Apr 30 16:31:17 2015 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Thu, 30 Apr 2015 16:31:17 -0400 Subject: Displaying Web Pages in a Field Message-ID: <90B86633-3346-48C2-8E12-EB4016AB679D@videotron.ca> Hi everyone, I?m a little rusty, so please excuse the lame question. I have some text files that are downloaded web pages. How can I display them in a stack field to look something like they do in a browser, that is, without the HTML tags showing? Regards, Gregory From revolution at derbrill.de Thu Apr 30 16:32:24 2015 From: revolution at derbrill.de (Malte Brill) Date: Thu, 30 Apr 2015 22:32:24 +0200 Subject: Something like charIndex, but in a variable... In-Reply-To: References: Message-ID: <62DC8AA1-61EE-4017-ACDB-BF4DCB45E6A8@derbrill.de> Thanks for all the suggestions. Need some time to try them out. I really like Thierrys RegEx approach and the others look promissing too. @Walt: In the real live Scenario I try to colorize Structured Data (e.G. XML, but others too). I need to walk through the whole dataset token by token and really have the token number I am interested in. I need to find the start and end position inside of the dataset (e.G. token 79 starts at char 400 and ends at 402). The datasets can potentially be huge. A field would add quite a bit of overhead here, which I am not necessariely keen on. :-) Also the dataset *might* be that huge and to make it worse actually be on a single line, that a field would cut off some of the data, while a variable would not. Ultimate goal is to have a tiny text editor, that can colorize the data and point out where in the data it is potentionally malformed and ideally what the error is. All the best, Malte From walter.h.brown at gmail.com Thu Apr 30 16:57:00 2015 From: walter.h.brown at gmail.com (Walt Brown) Date: Thu, 30 Apr 2015 16:57:00 -0400 Subject: Something like charIndex, but in a variable... In-Reply-To: <62DC8AA1-61EE-4017-ACDB-BF4DCB45E6A8@derbrill.de> References: <62DC8AA1-61EE-4017-ACDB-BF4DCB45E6A8@derbrill.de> Message-ID: Sorry to be so dense but can you colorize text without a field? Or are you running through the text as an XML tree (either Rev's or your own) or manually editing HTML text behind the scenes and adding a colorization attribute? On Thu, Apr 30, 2015 at 4:32 PM, Malte Brill wrote: > Thanks for all the suggestions. Need some time to try them out. I really > like Thierrys RegEx approach and the others look promissing too. > > @Walt: In the real live Scenario I try to colorize Structured Data (e.G. > XML, but others too). I need to walk through the whole dataset token by > token and really have the token number I am interested in. I need to find > the start and end position inside of the dataset (e.G. token 79 starts at > char 400 and ends at 402). > The datasets can potentially be huge. A field would add quite a bit of > overhead here, which I am not necessariely keen on. :-) > Also the dataset *might* be that huge and to make it worse actually be on > a single line, that a field would cut off some of the data, while a > variable would not. > > Ultimate goal is to have a tiny text editor, that can colorize the data > and point out where in the data it is potentionally malformed and ideally > what the error is. > > All the best, > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Thu Apr 30 17:23:05 2015 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 30 Apr 2015 17:23:05 -0400 Subject: question re mobilePick In-Reply-To: References: Message-ID: <009001d0838b$d8defe90$8a9cfbb0$@net> I believe that you must use a style of "checkmark" for initialIndex to work. 1-based means if: line 1 is "picked" then 1 is returned. line 2 is "picked" then 2 is returned... 0-based means if: line 1 is "picked" then 0 is returned. line 2 is "picked" then 1 is returned..... Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of William Prothero Sent: Thursday, April 30, 2015 3:09 PM To: How to use LiveCode Subject: question re mobilePick Folks: I am using mobilePick to select from a list of data, in iOS. I can?t seem to get the initialIndex to work. The API Dictionary says: initialIndex - The (1-based) index of the item to be initially highlighted. I was assuming that this was just the line number of the optionList, but since it doesn?t work, I figure it must be something else. What dos that line mean? What is a "1-based" index? Regards, Bill William A. Prothero http://es.earthednet.org/ _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Thu Apr 30 17:25:15 2015 From: prothero at earthednet.org (EED-wp Email) Date: Thu, 30 Apr 2015 14:25:15 -0700 Subject: question re mobilePick In-Reply-To: <009001d0838b$d8defe90$8a9cfbb0$@net> References: <009001d0838b$d8defe90$8a9cfbb0$@net> Message-ID: Ahhh, thanks, Ralph. Got it. Bill William Prothero http://ed.earthednet.org > On Apr 30, 2015, at 2:23 PM, Ralph DiMola wrote: > > I believe that you must use a style of "checkmark" for initialIndex to work. > > 1-based means if: > line 1 is "picked" then 1 is returned. > line 2 is "picked" then 2 is returned... > > 0-based means if: > line 1 is "picked" then 0 is returned. > line 2 is "picked" then 1 is returned..... > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of William Prothero > Sent: Thursday, April 30, 2015 3:09 PM > To: How to use LiveCode > Subject: question re mobilePick > > Folks: > I am using mobilePick to select from a list of data, in iOS. I can?t seem to get the initialIndex to work. The API Dictionary says: > > initialIndex - The (1-based) index of the item to be initially highlighted. > > I was assuming that this was just the line number of the optionList, but since it doesn?t work, I figure it must be something else. What dos that line mean? What is a "1-based" index? > > Regards, > Bill > > > > William A. Prothero > http://es.earthednet.org/ > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From devin_asay at byu.edu Thu Apr 30 17:29:06 2015 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 30 Apr 2015 21:29:06 +0000 Subject: Displaying Web Pages in a Field In-Reply-To: <90B86633-3346-48C2-8E12-EB4016AB679D@videotron.ca> References: <90B86633-3346-48C2-8E12-EB4016AB679D@videotron.ca> Message-ID: On Apr 30, 2015, at 2:31 PM, Gregory Lypny wrote: > Hi everyone, > > I?m a little rusty, so please excuse the lame question. I have some text files that are downloaded web pages. How can I display them in a stack field to look something like they do in a browser, that is, without the HTML tags showing? Gregory, set the htmlText of fld ?myfld? to URL ?file:/path/to/file.html? Devin Devin Asay Office of Digital Humanities Brigham Young University From scott at tactilemedia.com Thu Apr 30 18:10:25 2015 From: scott at tactilemedia.com (Scott Rossi) Date: Thu, 30 Apr 2015 15:10:25 -0700 Subject: Displaying Web Pages in a Field In-Reply-To: References: <90B86633-3346-48C2-8E12-EB4016AB679D@videotron.ca> Message-ID: Using htmlText may not render the page layout described in the HTML. You'd probably need to use the browser object and set the URL of the browser to the local file to see the page rendered correctly. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/30/15, 2:29 PM, "Devin Asay" wrote: > >On Apr 30, 2015, at 2:31 PM, Gregory Lypny >wrote: > >> Hi everyone, >> >> I?m a little rusty, so please excuse the lame question. I have some >>text files that are downloaded web pages. How can I display them in a >>stack field to look something like they do in a browser, that is, >>without the HTML tags showing? > >Gregory, > > set the htmlText of fld ?myfld? to URL ?file:/path/to/file.html? > >Devin > >Devin Asay >Office of Digital Humanities >Brigham Young University > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.org Thu Apr 30 18:26:09 2015 From: alex at tweedly.org (Alex Tweedly) Date: Thu, 30 Apr 2015 23:26:09 +0100 Subject: Something like charIndex, but in a variable... In-Reply-To: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> References: <5B6A6B6F-A39A-4454-B202-675CAC438AB1@derbrill.de> Message-ID: <5542AC01.6000803@tweedly.org> Not quite so straightforward, but you can do function getCharIndexByLineToken pVar, pLine, pToken local temp put the number of chars in line 1 to (pLine-1) of pVar into temp add 1 to temp -- for the CR between lines 14 and 15 !! add the number of chars in token 1 to (pToken-1) of line 15 of pVar to temp return temp end getCharIndexByLineToken Unfortunately you need different functions for token, word, etc. unless you want to make it more complex and (probably) need to use "do" or "value" Hmmm - and maybe you need to watch that "add 1" in the case of pLine being 1 !! or beyond the end ?!? -- Alex. On 30/04/2015 09:07, Malte Brill wrote: > Hi all, > > I need to find the start and end character of chuncks in a variable. If we are in a field we can use charIndex for that. However, in a variable I have no good idea on how to do something similar to > > get charIndex(token 7 of line 15 of field ?myField?) > > > Any ideas? > > All the best, > > Malte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Apr 30 18:33:59 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 30 Apr 2015 15:33:59 -0700 Subject: Repeat ... kind'a In-Reply-To: References: Message-ID: <5542ADD7.1080407@fourthworld.com> Terry Dennis wrote: > Much fiddling later, I discovered the issue. It was a runtime > ?oops?. > Check out the following code snippet, which shows the execution > error. I threw it into button ?Capture?s script: > > on testOOPS > put 1 into t1 -- Superfluous for testing purposes > put 2 into t2 -- Superfluous for testing purposes > if true = true then -- Runtime error here !!! > exit repeat > end if > put 3 into t3 -- Superfluous for testing purposes > end testOOPS > > <<<< > button "Capture": execution error at line 27 (Handler: error in statement), > char 1 >>>>> > > I certainly didn?t expect an execution error on an ?if true then? > statement. > > The problem is the code I copied included an ?exit repeat?, but the > function I copied it into didn?t have a ?repeat ... end repeat?. > Thus, there was an ?unmatched? exit from a repeat that didn?t > exist. ... > It seems to me this is a bug that should have been caught during the > script compilation phase, instead of during execution. Agreed. If you substitute "exit repeat" with any other equally irrelevant expression like "exit foo" or "exit if" etc. the compiler flags it immediately, and ideally it should do the same here too. It may also be worth noting in the report that the error is flagged on the wrong line. Hopefully once they fix the compiler to catch this it'll identify the actual erroneous line as a compilation error and we won't ever see an incorrect line flagged for an execution error. But since it is flagging the wrong line, drawing attention to that may provide an opportunity to review that part of the code to make sure incorrect lines aren't being flagged in other contexts. If you file a report please note the number here so I can add myself to the report's CC list. Thanks. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From pete at lcsql.com Thu Apr 30 18:54:16 2015 From: pete at lcsql.com (Peter Haworth) Date: Thu, 30 Apr 2015 15:54:16 -0700 Subject: Repeat ... kind'a In-Reply-To: <5542ADD7.1080407@fourthworld.com> References: <5542ADD7.1080407@fourthworld.com> Message-ID: I ran into a similar situation once with a leftover "break" command when converting a switch statement to a series of if statements. Might be worth including that in the QCC report Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Apr 30, 2015 at 3:33 PM, Richard Gaskin wrote: > Terry Dennis wrote: > > > Much fiddling later, I discovered the issue. It was a runtime > > ?oops?. > > Check out the following code snippet, which shows the execution > > error. I threw it into button ?Capture?s script: > > > > on testOOPS > > put 1 into t1 -- Superfluous for testing purposes > > put 2 into t2 -- Superfluous for testing purposes > > if true = true then -- Runtime error here !!! > > exit repeat > > end if > > put 3 into t3 -- Superfluous for testing purposes > > end testOOPS > > > > <<<< > > button "Capture": execution error at line 27 (Handler: error in > statement), > > char 1 > >>>>> > > > > I certainly didn?t expect an execution error on an ?if true then? > > statement. > > > > The problem is the code I copied included an ?exit repeat?, but the > > function I copied it into didn?t have a ?repeat ... end repeat?. > > Thus, there was an ?unmatched? exit from a repeat that didn?t > > exist. > ... > > It seems to me this is a bug that should have been caught during the > > script compilation phase, instead of during execution. > > Agreed. If you substitute "exit repeat" with any other equally irrelevant > expression like "exit foo" or "exit if" etc. the compiler flags it > immediately, and ideally it should do the same here too. > > It may also be worth noting in the report that the error is flagged on the > wrong line. Hopefully once they fix the compiler to catch this it'll > identify the actual erroneous line as a compilation error and we won't ever > see an incorrect line flagged for an execution error. > > But since it is flagging the wrong line, drawing attention to that may > provide an opportunity to review that part of the code to make sure > incorrect lines aren't being flagged in other contexts. > > If you file a report please note the number here so I can add myself to > the report's CC list. Thanks. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at harryscollar.com Thu Apr 30 20:28:16 2015 From: alex at harryscollar.com (Alex Shaw) Date: Fri, 01 May 2015 10:28:16 +1000 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <13B8EDF4-9B72-4D20-BCC9-6C773B3C2393@btinternet.com> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <1430365194404-4691654.post@n4.nabble.com> <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> <13B8EDF4-9B72-4D20-BCC9-6C773B3C2393@btinternet.com> Message-ID: <5542C8A0.5040900@harryscollar.com> Hi I wanted to keep this off the mailing list but I'm still have no email capacity or website.. and no answers from on-rev support. Getting a bit anxious so hopefully someone has their service going and can answer a few questions. As far as I know Pancake has been migrated to Jasmine. I've changed servers in my email client to Jasmine to receive the years worth of email that went missing (minus a day or two). Still can't receive or send yet. Currently the affected domain name is still pointing to Pancake so hopefully it's just waiting until that DNS issue propagation finishes. But I have asked whether I need to make changes to my domain's nameservers, which are pointing to ns1.on-rev.com & ns2.on-rev.com. If anyone is back online, besides email server changes did you need to do anything else? regards alex On 30/04/2015 10:21 pm, Heather Laine wrote: > Dear folks, > > We are currently working as fast as possible to resolve this issue. > > I will be responding personally to the tickets in the on-rev queue as I now have some information to give you. Please be assured we have a very recent backup of accounts which is what we are using for the restoration, I do not recommend you spend effort in restoring your account yourself at this time. > > Regards, > > Heather > > On 30 Apr 2015, at 08:35, Matthias Rebbe | M-R-D wrote: > >> I am seriously thinking of leaving the On-Rev platform. >> >> I have several accounts, lifetime and payed ones on different servers. >> In the past i always have born when there were problems with one of the servers. >> I even felt negative comments about the reliability of the On-Rev platform as unfair and i defended RunRev and On-Rev. >> >> But this incident now is one of many in the past. Please don?t get me wrong. >> >> I do not blame David Williams. He doing what is possible. But my understanding is that he is the only one who is responsible for such bigger problems. >> At least he is the one who replies to emergency support request regardless if at day or at night. >> >> I do blame Runrev to not having extended their On-Rev staff and improve the On-Rev platform. >> >> Btw: Does ?ringing the bell? at NASDAQ and showing ones logo cost money? If so, Runrev better would have invested that money into the On-Rev platform and the support staff. >> It does not make sense to go for new customers also for On-Rev if you cannot handle it afterwards. >> >> At this stage i cannot recommend On-Rev as a professional hosting platform anymore. >> >> I am really pissed of now. >> >> Matthias (who is now preparing to repair his sites in the hope no other old backup is restored) >> >> >> >> >> >> >>> Am 30.04.2015 um 05:39 schrieb shawnlc : >>> >>> I have a life-time subscription to on-rev, but it's times like this that >>> scare the heck out of me to use it. I use it primarily for testing. I'm on >>> pancake too, and I confirm that it's been down. >>> >>> I haven't looked into it, but surely the brilliant guys & gals at RunRev >>> could be running state of the art servers, instant notifications any time >>> something goes beyond a threshold, down, etc. >>> >>> IMHO on-rev is treated like a hobby and they get to it when they get to it. >>> Come on, some of the most brilliant minds in the world sit there in >>> Edinburgh yet you have single server down for several hours. >>> >>> I don't get it. Even my not so brilliant self ran a 10 server hosting >>> business at one time and never experienced such downtime, one customer was >>> doing $100k a day in transactions. >>> >>> >>> >>> >>> >>> -- >>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/On-Rev-server-Pancake-problems-old-backup-restored-tp4691642p4691654.html >>> Sent from the Revolution - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From martyknappster at gmail.com Thu Apr 30 20:35:00 2015 From: martyknappster at gmail.com (Marty Knapp) Date: Thu, 30 Apr 2015 17:35:00 -0700 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <5542C8A0.5040900@harryscollar.com> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <1430365194404-4691654.post@n4.nabble.com> <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> <13B8EDF4-9B72-4D20-BCC9-6C773B3C2393@btinternet.com> <5542C8A0.5040900@harryscollar.com> Message-ID: <5542CA34.3000209@gmail.com> I'm back up - didn't need to do anything on my end and everything seems to be back to normal, including my blood pressure! Marty K > Hi > > I wanted to keep this off the mailing list but I'm still have no email > capacity or website.. and no answers from on-rev support. > > Getting a bit anxious so hopefully someone has their service going and > can answer a few questions. > > As far as I know Pancake has been migrated to Jasmine. > > I've changed servers in my email client to Jasmine to receive the > years worth of email that went missing (minus a day or two). Still > can't receive or send yet. > > Currently the affected domain name is still pointing to Pancake so > hopefully it's just waiting until that DNS issue propagation finishes. > > But I have asked whether I need to make changes to my domain's > nameservers, which are pointing to ns1.on-rev.com & ns2.on-rev.com. > > If anyone is back online, besides email server changes did you need to > do anything else? > > regards > alex > > On 30/04/2015 10:21 pm, Heather Laine wrote: >> Dear folks, >> >> We are currently working as fast as possible to resolve this issue. >> >> I will be responding personally to the tickets in the on-rev queue as >> I now have some information to give you. Please be assured we have a >> very recent backup of accounts which is what we are using for the >> restoration, I do not recommend you spend effort in restoring your >> account yourself at this time. >> >> Regards, >> >> Heather >> >> On 30 Apr 2015, at 08:35, Matthias Rebbe | M-R-D >> wrote: >> >>> I am seriously thinking of leaving the On-Rev platform. >>> >>> I have several accounts, lifetime and payed ones on different servers. >>> In the past i always have born when there were problems with one of >>> the servers. >>> I even felt negative comments about the reliability of the On-Rev >>> platform as unfair and i defended RunRev and On-Rev. >>> >>> But this incident now is one of many in the past. Please don?t get >>> me wrong. >>> >>> I do not blame David Williams. He doing what is possible. But my >>> understanding is that he is the only one who is responsible for such >>> bigger problems. >>> At least he is the one who replies to emergency support request >>> regardless if at day or at night. >>> >>> I do blame Runrev to not having extended their On-Rev staff and >>> improve the On-Rev platform. >>> >>> Btw: Does ?ringing the bell? at NASDAQ and showing ones logo cost >>> money? If so, Runrev better would have invested that money into the >>> On-Rev platform and the support staff. >>> It does not make sense to go for new customers also for On-Rev if >>> you cannot handle it afterwards. >>> >>> At this stage i cannot recommend On-Rev as a professional hosting >>> platform anymore. >>> >>> I am really pissed of now. >>> >>> Matthias (who is now preparing to repair his sites in the hope no >>> other old backup is restored) >>> >>> >>> >>> From ambassador at fourthworld.com Thu Apr 30 20:50:05 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 30 Apr 2015 17:50:05 -0700 Subject: Docker, anyone? Message-ID: Has anyone here experimented with making a Docker container for a LiveCode socket server? http://www.docker.com/ Richard Gaskin Fourth World Systems http://fourthworld.com From alex at harryscollar.com Thu Apr 30 21:35:02 2015 From: alex at harryscollar.com (Alex Shaw) Date: Fri, 01 May 2015 11:35:02 +1000 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <5542CA34.3000209@gmail.com> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <1430365194404-4691654.post@n4.nabble.com> <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> <13B8EDF4-9B72-4D20-BCC9-6C773B3C2393@btinternet.com> <5542C8A0.5040900@harryscollar.com> <5542CA34.3000209@gmail.com> Message-ID: <5542D846.3000705@harryscollar.com> Thanks Marty. Very inconvenient but it's too easy to get upset about these things. I've certainly had my fair share of hardware problems so.. ?\_(?)_/? regards alex On 1/05/2015 10:35 am, Marty Knapp wrote: > I'm back up - didn't need to do anything on my end and everything > seems to be back to normal, including my blood pressure! > > Marty K >> Hi >> >> I wanted to keep this off the mailing list but I'm still have no >> email capacity or website.. and no answers from on-rev support. >> >> Getting a bit anxious so hopefully someone has their service going >> and can answer a few questions. >> >> As far as I know Pancake has been migrated to Jasmine. >> >> I've changed servers in my email client to Jasmine to receive the >> years worth of email that went missing (minus a day or two). Still >> can't receive or send yet. >> >> Currently the affected domain name is still pointing to Pancake so >> hopefully it's just waiting until that DNS issue propagation finishes. >> >> But I have asked whether I need to make changes to my domain's >> nameservers, which are pointing to ns1.on-rev.com & ns2.on-rev.com. >> >> If anyone is back online, besides email server changes did you need >> to do anything else? >> >> regards >> alex >> >> On 30/04/2015 10:21 pm, Heather Laine wrote: >>> Dear folks, >>> >>> We are currently working as fast as possible to resolve this issue. >>> >>> I will be responding personally to the tickets in the on-rev queue >>> as I now have some information to give you. Please be assured we >>> have a very recent backup of accounts which is what we are using for >>> the restoration, I do not recommend you spend effort in restoring >>> your account yourself at this time. >>> >>> Regards, >>> >>> Heather >>> >>> On 30 Apr 2015, at 08:35, Matthias Rebbe | M-R-D >>> wrote: >>> >>>> I am seriously thinking of leaving the On-Rev platform. >>>> >>>> I have several accounts, lifetime and payed ones on different servers. >>>> In the past i always have born when there were problems with one of >>>> the servers. >>>> I even felt negative comments about the reliability of the On-Rev >>>> platform as unfair and i defended RunRev and On-Rev. >>>> >>>> But this incident now is one of many in the past. Please don?t get >>>> me wrong. >>>> >>>> I do not blame David Williams. He doing what is possible. But my >>>> understanding is that he is the only one who is responsible for >>>> such bigger problems. >>>> At least he is the one who replies to emergency support request >>>> regardless if at day or at night. >>>> >>>> I do blame Runrev to not having extended their On-Rev staff and >>>> improve the On-Rev platform. >>>> >>>> Btw: Does ?ringing the bell? at NASDAQ and showing ones logo cost >>>> money? If so, Runrev better would have invested that money into the >>>> On-Rev platform and the support staff. >>>> It does not make sense to go for new customers also for On-Rev if >>>> you cannot handle it afterwards. >>>> >>>> At this stage i cannot recommend On-Rev as a professional hosting >>>> platform anymore. >>>> >>>> I am really pissed of now. >>>> >>>> Matthias (who is now preparing to repair his sites in the hope no >>>> other old backup is restored) >>>> >>>> >>>> >>>> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pystcat at gmail.com Thu Apr 30 21:37:38 2015 From: pystcat at gmail.com (PystCat) Date: Thu, 30 Apr 2015 21:37:38 -0400 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <5542D846.3000705@harryscollar.com> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <1430365194404-4691654.post@n4.nabble.com> <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> <13B8EDF4-9B72-4D20-BCC9-6C773B3C2393@btinternet.com> <5542C8A0.5040900@harryscollar.com> <5542CA34.3000209@gmail.com> <5542D846.3000705@harryscollar.com> Message-ID: <33E16981-54BD-4185-A865-4DA4484F757D@gmail.com> You?re one of the lucky ones? I?m still missing a lot? email, FTP setup and a MySQL database? I?m sure they?re doing everything they could. > On Apr 30, 2015, at 9:35 PM, Alex Shaw wrote: > > Thanks Marty. > > Very inconvenient but it's too easy to get upset about these things. > > I've certainly had my fair share of hardware problems so.. > > ?\_(?)_/? > > regards > alex > > > On 1/05/2015 10:35 am, Marty Knapp wrote: >> I'm back up - didn't need to do anything on my end and everything seems to be back to normal, including my blood pressure! >> >> Marty K >>> Hi >>> >>> I wanted to keep this off the mailing list but I'm still have no email capacity or website.. and no answers from on-rev support. >>> >>> Getting a bit anxious so hopefully someone has their service going and can answer a few questions. >>> >>> As far as I know Pancake has been migrated to Jasmine. >>> >>> I've changed servers in my email client to Jasmine to receive the years worth of email that went missing (minus a day or two). Still can't receive or send yet. >>> >>> Currently the affected domain name is still pointing to Pancake so hopefully it's just waiting until that DNS issue propagation finishes. >>> >>> But I have asked whether I need to make changes to my domain's nameservers, which are pointing to ns1.on-rev.com & ns2.on-rev.com. >>> >>> If anyone is back online, besides email server changes did you need to do anything else? >>> >>> regards >>> alex >>> >>> On 30/04/2015 10:21 pm, Heather Laine wrote: >>>> Dear folks, >>>> >>>> We are currently working as fast as possible to resolve this issue. >>>> >>>> I will be responding personally to the tickets in the on-rev queue as I now have some information to give you. Please be assured we have a very recent backup of accounts which is what we are using for the restoration, I do not recommend you spend effort in restoring your account yourself at this time. >>>> >>>> Regards, >>>> >>>> Heather >>>> >>>> On 30 Apr 2015, at 08:35, Matthias Rebbe | M-R-D wrote: >>>> >>>>> I am seriously thinking of leaving the On-Rev platform. >>>>> >>>>> I have several accounts, lifetime and payed ones on different servers. >>>>> In the past i always have born when there were problems with one of the servers. >>>>> I even felt negative comments about the reliability of the On-Rev platform as unfair and i defended RunRev and On-Rev. >>>>> >>>>> But this incident now is one of many in the past. Please don?t get me wrong. >>>>> >>>>> I do not blame David Williams. He doing what is possible. But my understanding is that he is the only one who is responsible for such bigger problems. >>>>> At least he is the one who replies to emergency support request regardless if at day or at night. >>>>> >>>>> I do blame Runrev to not having extended their On-Rev staff and improve the On-Rev platform. >>>>> >>>>> Btw: Does ?ringing the bell? at NASDAQ and showing ones logo cost money? If so, Runrev better would have invested that money into the On-Rev platform and the support staff. >>>>> It does not make sense to go for new customers also for On-Rev if you cannot handle it afterwards. >>>>> >>>>> At this stage i cannot recommend On-Rev as a professional hosting platform anymore. >>>>> >>>>> I am really pissed of now. >>>>> >>>>> Matthias (who is now preparing to repair his sites in the hope no other old backup is restored) >>>>> >>>>> >>>>> >>>>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Apr 30 21:39:33 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 30 Apr 2015 18:39:33 -0700 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <5542D846.3000705@harryscollar.com> References: <5542D846.3000705@harryscollar.com> Message-ID: <5542D955.5010900@fourthworld.com> Alex Shaw wrote: > Very inconvenient but it's too easy to get upset about these things. > > I've certainly had my fair share of hardware problems so.. Apparently the key is to buy Hitachi/HGST: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From alex at harryscollar.com Thu Apr 30 22:01:11 2015 From: alex at harryscollar.com (Alex Shaw) Date: Fri, 01 May 2015 12:01:11 +1000 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <5542D955.5010900@fourthworld.com> References: <5542D846.3000705@harryscollar.com> <5542D955.5010900@fourthworld.com> Message-ID: <5542DE67.9080309@harryscollar.com> Thanks Richard, good to know. I replaced a harddrive in a 2008 Macbook Pro early last year with a HGST and it has been running solidly ever since. Might be time to investigate some for the mini server we use internally. regards alex On 1/05/2015 11:39 am, Richard Gaskin wrote: > Alex Shaw wrote: > >> Very inconvenient but it's too easy to get upset about these things. >> >> I've certainly had my fair share of hardware problems so.. > > Apparently the key is to buy Hitachi/HGST: > > > From jhj at jhj.com Thu Apr 30 22:08:18 2015 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 30 Apr 2015 19:08:18 -0700 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <5542D955.5010900@fourthworld.com> References: <5542D846.3000705@harryscollar.com> <5542D955.5010900@fourthworld.com> Message-ID: <9BC395F8-2860-4DCC-A7A3-0912B063853F@jhj.com> Thanks, Richard. Interesting data in that article. I?ve been buying HGST Ultrastar drives. I?m surprised to not see them mentioned in the article. I prefer them for their 5 year warranty, which implies that they may last longer. The price difference is not much compared to what a failure costs in time and aggravation. I don?t have thousands of them, like backblaze, but maybe a dozen. So far I have no failure data because there have been NO failures. .Jerry > On Apr 30, 2015, at 6:39 PM, Richard Gaskin wrote: > > Alex Shaw wrote: > >> Very inconvenient but it's too easy to get upset about these things. >> >> I've certainly had my fair share of hardware problems so.. > > Apparently the key is to buy Hitachi/HGST: > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Apr 30 23:27:55 2015 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 30 Apr 2015 20:27:55 -0700 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <9BC395F8-2860-4DCC-A7A3-0912B063853F@jhj.com> References: <9BC395F8-2860-4DCC-A7A3-0912B063853F@jhj.com> Message-ID: <5542F2BB.5070607@fourthworld.com> It's a fun article, but somewhat unfair to all the other HDD manufacturers. BackBlaze puts their drives through a level of use far beyond what just about any home user will ever need, so seeing shorter MTTF for Seagate doesn't make me not want a Barracuda. TechReport recently ran a stress test on SSDs, and like BackBlaze's HDD tests all units performed beyond specs: Never hurts to buy the best, but for most of us second-best, or even-third best, is probably going to serve us well - unless we're running a server farm, then I'd stick with Hitachi. :) -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Jerry Jensen wrote: > Thanks, Richard. Interesting data in that article. > I?ve been buying HGST Ultrastar drives. I?m surprised to not see them mentioned in the article. I prefer them for their 5 year warranty, which implies that they may last longer. The price difference is not much compared to what a failure costs in time and aggravation. I don?t have thousands of them, like backblaze, but maybe a dozen. So far I have no failure data because there have been NO failures. > .Jerry > >> On Apr 30, 2015, at 6:39 PM, Richard Gaskin wrote: >> >> Alex Shaw wrote: >> >>> Very inconvenient but it's too easy to get upset about these things. >>> >>> I've certainly had my fair share of hardware problems so.. >> >> Apparently the key is to buy Hitachi/HGST: >> >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com From pystcat at gmail.com Thu Apr 30 21:37:38 2015 From: pystcat at gmail.com (PystCat) Date: Thu, 30 Apr 2015 21:37:38 -0400 Subject: On-Rev server Pancake problems - old backup restored? In-Reply-To: <5542D846.3000705@harryscollar.com> References: <44536753-B043-4AFF-A6AC-AD11D0B6365E@m-r-d.de> <1430365194404-4691654.post@n4.nabble.com> <59C8D434-274B-4CE2-821C-0A328F241DFD@m-r-d.de> <13B8EDF4-9B72-4D20-BCC9-6C773B3C2393@btinternet.com> <5542C8A0.5040900@harryscollar.com> <5542CA34.3000209@gmail.com> <5542D846.3000705@harryscollar.com> Message-ID: <33E16981-54BD-4185-A865-4DA4484F757D@gmail.com> You?re one of the lucky ones? I?m still missing a lot? email, FTP setup and a MySQL database? I?m sure they?re doing everything they could. > On Apr 30, 2015, at 9:35 PM, Alex Shaw wrote: > > Thanks Marty. > > Very inconvenient but it's too easy to get upset about these things. > > I've certainly had my fair share of hardware problems so.. > > ?\_(?)_/? > > regards > alex > > > On 1/05/2015 10:35 am, Marty Knapp wrote: >> I'm back up - didn't need to do anything on my end and everything seems to be back to normal, including my blood pressure! >> >> Marty K >>> Hi >>> >>> I wanted to keep this off the mailing list but I'm still have no email capacity or website.. and no answers from on-rev support. >>> >>> Getting a bit anxious so hopefully someone has their service going and can answer a few questions. >>> >>> As far as I know Pancake has been migrated to Jasmine. >>> >>> I've changed servers in my email client to Jasmine to receive the years worth of email that went missing (minus a day or two). Still can't receive or send yet. >>> >>> Currently the affected domain name is still pointing to Pancake so hopefully it's just waiting until that DNS issue propagation finishes. >>> >>> But I have asked whether I need to make changes to my domain's nameservers, which are pointing to ns1.on-rev.com & ns2.on-rev.com. >>> >>> If anyone is back online, besides email server changes did you need to do anything else? >>> >>> regards >>> alex >>> >>> On 30/04/2015 10:21 pm, Heather Laine wrote: >>>> Dear folks, >>>> >>>> We are currently working as fast as possible to resolve this issue. >>>> >>>> I will be responding personally to the tickets in the on-rev queue as I now have some information to give you. Please be assured we have a very recent backup of accounts which is what we are using for the restoration, I do not recommend you spend effort in restoring your account yourself at this time. >>>> >>>> Regards, >>>> >>>> Heather >>>> >>>> On 30 Apr 2015, at 08:35, Matthias Rebbe | M-R-D wrote: >>>> >>>>> I am seriously thinking of leaving the On-Rev platform. >>>>> >>>>> I have several accounts, lifetime and payed ones on different servers. >>>>> In the past i always have born when there were problems with one of the servers. >>>>> I even felt negative comments about the reliability of the On-Rev platform as unfair and i defended RunRev and On-Rev. >>>>> >>>>> But this incident now is one of many in the past. Please don?t get me wrong. >>>>> >>>>> I do not blame David Williams. He doing what is possible. But my understanding is that he is the only one who is responsible for such bigger problems. >>>>> At least he is the one who replies to emergency support request regardless if at day or at night. >>>>> >>>>> I do blame Runrev to not having extended their On-Rev staff and improve the On-Rev platform. >>>>> >>>>> Btw: Does ?ringing the bell? at NASDAQ and showing ones logo cost money? If so, Runrev better would have invested that money into the On-Rev platform and the support staff. >>>>> It does not make sense to go for new customers also for On-Rev if you cannot handle it afterwards. >>>>> >>>>> At this stage i cannot recommend On-Rev as a professional hosting platform anymore. >>>>> >>>>> I am really pissed of now. >>>>> >>>>> Matthias (who is now preparing to repair his sites in the hope no other old backup is restored) >>>>> >>>>> >>>>> >>>>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode