From jacque at hyperactivesw.com Thu Mar 1 00:47:40 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 28 Feb 2018 23:47:40 -0600 Subject: Internet checking? In-Reply-To: References: Message-ID: On 2/28/18 5:20 PM, Graham Samuel via use-livecode wrote: > I know this is a golden oldie, but I can?t find a reference? I have a script that wants to check a file on a server, and basically to do nothing if the program is offline. > > Remind me, is there an easy way to tell from within an LC standalone if the internet is not accessible? I don?t want my program to hang. I understand the URLStatus will eventually tell me if access did not occur, but I don?t understand how to limit the waiting time to something reasonable. I notice that some browsers can actually display a message saying something like ?you are not connected to the internet? - how do they do that? I haven't actually played with it, but it looks like tsNetSetTimeouts might work if you set the pConnectTimeoutMS (the third param) to something shorter than the default. Then when you try to retrieve your file when there is no connection, you should get an error from tsNet. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From toolbook at kestner.de Thu Mar 1 02:52:17 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 1 Mar 2018 08:52:17 +0100 Subject: AW: IDE Cursor icon often hangs on windows In-Reply-To: <161dd81a2a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <002801d3b073$7c6ef350$754cd9f0$@kestner.de> <7d8c98fa-0e02-c4d8-2040-0324383ae62a@fourthworld.com> <161dd81a2a0.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <000a01d3b132$39468380$abd38a80$@kestner.de> Ok, I found a small recipe for one of these situations and file a QR: http://quality.livecode.com/show_bug.cgi?id=21021 There are other situations and other cursors, but this is one of them Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode Gesendet: Mittwoch, 28. Februar 2018 18:42 An: How to use LiveCode Cc: J. Landman Gay Betreff: Re: IDE Cursor icon often hangs on windows This has been happening for years, it just may be more frequent now. I've had a handler in my private backscript for probably 10 years that does "unlock cursor" when I type "uc" in the message box. There's no consistent recipe. My best guess is that it happens when the cursor is moving so fast that any messages that track the mouse are either not sent or the mouse is no longer over the original control when it is received. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On February 28, 2018 9:26:21 AM Richard Gaskin via use-livecode wrote: > Tiemo Hollmann wrote: > > > On Windows, since LC 8 the icon of the cursor often "hangs", it > just > keeps the icon from the last action and doesn't changes back > to the > standard pointer icon when moving around the screen, so that > I often > have to select any action with the "resize cursor" - just an example. > > > > It's not essential, but a little bit annoying. Anything I can do? > > Is it known? Shall a file a bug report, though it will be hard to > make > a recepie? > > If you do file a bug report please post the URL here. I've seen this > with v9 under Ubuntu, but haven't reported it yet as it's intermittent > and I haven't yet found a recipe. If I do come up with a recipe I'll > share it here. > > -- > 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 jonathandlynch at gmail.com Thu Mar 1 07:41:47 2018 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 1 Mar 2018 07:41:47 -0500 Subject: Another server question (mixing node.js and LC) In-Reply-To: References: <16892098-A6C3-4631-B9C2-2E3D51F43084@gmail.com> <35633bfb-8110-340a-e604-71494fa8e2ef@fourthworld.com> <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> Message-ID: Is it possible to solve the C10k problem with simple CGI? LC has a relatively small footprint in RAM. If each LC process takes up 7 meg, then 10,000 processes would take 70 gig of ram. NginX can manage that no problem on a dedicated server. Is there any reason why that would not work? Sent from my iPhone > On Feb 28, 2018, at 2:49 PM, jonathandlynch at gmail.com wrote: > > I think you might be right, Mike. I have been reading about benchmark tests between node, Apache, and ningx. Node does not seem to live up to the hype at all. > > Sent from my iPhone > >> On Feb 28, 2018, at 2:27 PM, Mike Bonner via use-livecode wrote: >> >> One thing you might do if you were to decide to stick with apache would be >> to make sure you use either the worker mpm or events mpm (sounds like >> events would be the one you wanted for this) (read more on this page... >> https://httpd.apache.org/docs/2.4/misc/perf-tuning.html ) to get better >> performance. >> >> Alternatively as Richard mentioned, there is nginx, which might be just >> what the doctor ordered. Basically, a request comes in, is handed off to >> the your lc script, and when a response is ready, it handles it and sends >> it back to the client, meanwhile still being able to listen for, and accept >> new requests. At least this is what I get from my reading, some of which >> are older postings. Sounds pretty much like what you are thinking of doing >> with node.js. >> >> I'm also wondering where a docker swarm might fit into your needs. multiple >> containers with a custom nginx image that can run your scripts, with load >> balancing and auto failover could be a great thing, and still be very >> lightweight. (the nginx docker on alpine is amazingly tiny, lightweight) >> >> I've no clue how performance and reliability might compare to node.js for >> this. >> >> On Wed, Feb 28, 2018 at 11:26 AM, Jonathan Lynch via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> In reading about fastCGI and LC, it seems rather experimental. I am just >>> wondering if replacing Apache with node.js as the http server would give us >>> the necessary concurrency capacity for using LC server on a large scale. >>> >>> Basically, I am soon going to start pitching augmented tours (idea >>> suggested by guys at a business incubator) to tourism companies, using >>> Augmented Earth, and I don?t want to have the server crash if a large >>> number of people are using it all at once. >>> >>> Sent from my iPhone >>> >>>> On Feb 28, 2018, at 12:48 PM, jonathandlynch at gmail.com wrote: >>>> >>>> Thank you, Richard >>>> >>>> A given transaction involves processing a user request, making two or >>> three requests to the database, and returning around 500 kB to the user. >>>> >>>> I certainly don?t need to load fonts in the LC process. Can that be >>> turned off? >>>> >>>> I like the idea of maintaining a queue of running LC processes and >>> growing or shrinking it as needed based on request load. >>>> >>>> How does the http server know which process to access? >>>> >>>> I know that node.js has a pretty simple code for launching a CGI process >>> and listening for a result. I don?t know how it would do that with an >>> already-running process. >>>> >>>> Sent from my iPhone >>>> >>>>> On Feb 28, 2018, at 12:22 PM, Richard Gaskin via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> jonathandlynch wrote: >>>>> >>>>>> I have another server question. I really like scripting with LC, >>>>>> because I can make improvements very quickly. This is important >>>>>> because of my very limited free time. >>>>>> >>>>>> But, I want to be able to handle many many concurrent server requests, >>>>>> the way node.js does. >>>>> >>>>> Good timing. Geoff Canyon and I have been corresponding about a >>> related matter, comparing performance of LC Server with PHP. >>>>> >>>>> PHP7 is such a radical improvement over PHP5 that it's almost unfair to >>> compare it any scripting language now. But it also prompts me to wonder: >>> is there anything in those PHP speed improvements which could be applied to >>> LC? >>>>> >>>>> >>>>> But that's for the future, and for CGI. In the here-and-now, you're >>> exploring a different but very interesting area: >>>>> >>>>>> Would it work to have node take In a request, launch an LC cgi >>>>>> executable to process the request, set an event listener to wait >>>>>> for LC to send the results back to Node, then have node return >>>>>> the results to the user? >>>>>> >>>>>> This is not unlike using Apache to launch LC CGI processes, but >>>>>> the asynchronous nature of node would, presumably, tie up fewer >>>>>> system resources and allow for larger concurrency. This could mean >>>>>> having a couple thousand LC processes running at any one time - would >>>>>> that be okay as long as the server had enough RAM? >>>>>> >>>>>> In general, would this work for a system that hand to handle, say, >>>>>> 10,000 server requests per minute? >>>>> >>>>> A minute's a long time. That's only 167 connections per second. >>>>> >>>>> Likely difficult for any CGI, and certainly for LC (see general >>> performance relative to PHP, and the 70+% of LC boot time spent >>> initializing fonts that are almost never used in CGIs - BZ# 14115). >>>>> >>>>> But there are other ways beyond CGI. >>>>> >>>>> A couple years ago Pierre Sahores and I traded notes here on this list >>> about tests run with LC socket servers. There's a lot across multiple >>> threads, but this may be a good starting point: >>>>> http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html >>>>> >>>>> One thing is clear: if high concurrency is a requirement, use >>> something dedicated to manage comms between connected clients and a pool of >>> workers. >>>>> >>>>> My own tests were measuring lchttpd against Apache, a different model >>> but instructive here because it's still about socket comms. What I found >>> was that an httpd written in LC was outmatched by Apache two-fold. But >>> that also means that a quickly-thrown-together httpd script in LC was about >>> half as fast as the world's most popular httpd written in C by hundreds of >>> contributors specializing in that task. >>>>> >>>>> So, promising for certain tasks. :) >>>>> >>>>> The key with my modded fork of the old mchttpd stack was rewriting all >>> socket comms to use callbacks. The original used callbacks only for >>> incoming POST, but I extended that to include all writes as well. >>>>> >>>>> Applying this to your scenario: >>>>> >>>>> client client client >>>>> -------- -------- -------- >>>>> \ | / >>>>> ........internet....... >>>>> \ | / >>>>> |----------- HTTP SERVER -----------| >>>>> | / | \ | >>>>> | worker worker worker | >>>>> |-----------------------------------| >>>>> >>>>> >>>>> While LC could be used in the role of the HTTP SERVER, that would be >>> wasteful. It's not an interesting job, and dedicated tools like Node.js >>> and NginX will outperform it many-fold. Let the experts handle the boring >>> parts. :) >>>>> >>>>> The value LC brings to the table is application-specific. So we let a >>> dedicated tool broker comms between external clients and a pool of workers, >>> where the workers could be LC standalones. >>>>> >>>>> That's where much of Pierre's experiments have focused, and where the >>> most interesting and productive use of LC lies in a scenario where load >>> requirements exceed practical limitations of LC as a CGI. >>>>> >>>>> The boost goes beyond the RAM savings from having a separate LC >>> instance for each CGI request: as a persistent process, it obviates the >>> font-loading and other init that take up so much time in an LC CGI. >>>>> >>>>> As with the lchttpd experiments, using callbacks for all sockets comms >>> between the LC-based workers and the HTTP SERVER will be essential for keep >>> throughput optimal. >>>>> >>>>> >>>>> TL;DR: I think you're on the right track for a possible solution that >>> optimizes your development time without prohibitively impeding scalability. >>>>> >>>>> >>>>> The suitability of this comes down to: what exactly does each >>> transaction do? >>>>> >>>>> 167 transactions/sec may not be much, or it might be a lot. >>>>> >>>>> If a given transaction is fairly modest, I'd say it's probably worth >>> the time to put together a test system to try it out. >>>>> >>>>> But if a transaction is CPU intensive, or heavily I/O bound, or >>> otherwise taking up a lot of time, the radical changes in PHP7 may make it >>> a better bet, esp. if run as FastCGI. >>>>> >>>>> Can you tell us more about what a given transaction involves? >>>>> >>>>> -- >>>>> 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 jonathandlynch at gmail.com Thu Mar 1 11:07:08 2018 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Thu, 1 Mar 2018 11:07:08 -0500 Subject: =?utf-8?Q?A_suggestion_for_an_in-memory_database,_following_up_o?= =?utf-8?Q?n_Richard=E2=80=99s_experiment?= Message-ID: <79C97366-EC86-4AFB-8603-F06717B49063@gmail.com> This is a different idea from the other thread, so I am starting a new thread. Imagine the following scenario: Each record is saved as a separate text file. LC loads up all the text files into a single massive global array. LC listens to a port for DB requests. When a DB request comes in, LC makes changes in the global array and retrieves data from the global array. It sends the results back almost instantly. LC sends the new version of the file over to Apache which is listening on a different port. Apache spawns a new thread for each concurrent request. Each thread simply takes the record and saves it to its file. In this way, LC operates as an in-memory database, which is supposed to be very fast, and Apache does the multithreading to back up each record in the background. Assuming a powerful server with lots of RAM, could this allow us to handle massive concurrency while using LC as the server? Apologies if these questions are getting tedious - they are relevant to my current project. Sent from my iPhone From tom at makeshyft.com Thu Mar 1 11:25:41 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 1 Mar 2018 11:25:41 -0500 Subject: =?UTF-8?Q?Re=3A_A_suggestion_for_an_in=2Dmemory_database=2C_followin?= =?UTF-8?Q?g_up_on_Richard=E2=80=99s_experiment?= In-Reply-To: <79C97366-EC86-4AFB-8603-F06717B49063@gmail.com> References: <79C97366-EC86-4AFB-8603-F06717B49063@gmail.com> Message-ID: no reason why it wouldn't work... but keep 2 things in mind if you use community edition, the number of HHTP Requests you can make to the same domain at one time is exactly 1. For a system like this, it could be better to save to an sql because seperate TXT files would be a lot of IO calls. If you are on Business License, its less of an issue.... I'd be curious to see the performance of using LC Arrays as Database. On Thu, Mar 1, 2018 at 11:07 AM, Jonathan Lynch via use-livecode < use-livecode at lists.runrev.com> wrote: > This is a different idea from the other thread, so I am starting a new > thread. > > Imagine the following scenario: > > Each record is saved as a separate text file. > > LC loads up all the text files into a single massive global array. > > LC listens to a port for DB requests. > > When a DB request comes in, LC makes changes in the global array and > retrieves data from the global array. It sends the results back almost > instantly. > > LC sends the new version of the file over to Apache which is listening on > a different port. > > Apache spawns a new thread for each concurrent request. Each thread simply > takes the record and saves it to its file. > > In this way, LC operates as an in-memory database, which is supposed to be > very fast, and Apache does the multithreading to back up each record in the > background. > > Assuming a powerful server with lots of RAM, could this allow us to handle > massive concurrency while using LC as the server? > > Apologies if these questions are getting tedious - they are relevant to my > current project. > > Sent from my iPhone > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 1 11:38:27 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Mar 2018 08:38:27 -0800 Subject: Another server question (mixing node.js and LC) In-Reply-To: <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> References: <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> Message-ID: jonathandlynch wrote: > I certainly don?t need to load fonts in the LC process. Most people doing server work don't. It's nice that we now have graphics capabilities in Server, and I can imagine some CGIs that maybe generate postcard or other output where fonts would be needed. But probably not many. > Can that be turned off? Not yet. I have a request for a "-f" option to bypass that: http://quality.livecode.com/show_bug.cgi?id=14115 If we could get buy-in from the team to allow this to be added, given that a command line flag is by far the simplest of the remedies discussed I would imagine we may be able to find community resources to implement it. > I like the idea of maintaining a queue of running LC processes and > growing or shrinking it as needed based on request load. > > How does the http server know which process to access? There are various queuing methods, the simplest being a round-robin, where a counter keeps track of the last worked used and each request moves on to the next one. Comms between HTTP server and workers also happen via sockets, on internal ports. The mechanics will vary from HTTP server to HTTP server, but the basic setup seems pretty common. -- Richard Gaskin Fourth World Systems From ambassador at fourthworld.com Thu Mar 1 11:41:12 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Mar 2018 08:41:12 -0800 Subject: Background color in an 'answer' dialog? In-Reply-To: References: Message-ID: Very kind of you to say, Brian. Thanks. I have no registration requirement for that free plugin, so I'm often delightfully surprised to discover who's using it. Very soon I'll have a window of time in which I can finally get around to adding some more useful things to the Projects pane. If you think if anything you'd find especially useful there, or anywhere in devolution. drop me a note. -- Richard Gaskin Fourth World Systems Brian Milby wrote: > Richard, > > That is super helpful. I?ve had Devolution loaded for a while but was > using PB to get to IDE scripts. This will be so much better/faster. > > Thanks, > Brian > > On Wed, Feb 28, 2018 at 9:56 AM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> For super-quick access to IDE scripts, consider devolution's MPath, >> which not only has a checkbox for showing LC scripts, but even more >> easily that can be toggled with the space bar while the MPath pane >> is open: >> http://fourthworld.net/lc/devo3-mpath.png >> >> Designed for quick access for scripting, everything in devolution's >> MPath pane has hot key shortcuts: >> http://fourthworld.net/lc/devo-mpath-help.png >> >> The devolution plugin for LC is freely available here: >> http://fourthworld.com/products/devolution/ From bobsneidar at iotecdigital.com Thu Mar 1 12:17:06 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 1 Mar 2018 17:17:06 +0000 Subject: Background color in an 'answer' dialog? In-Reply-To: References: Message-ID: Saw the png of it, looks great! I am going to give it a try. If I like and use it I will be happty to shoot you off something on PayPal. Just let me know your handle if you have one. Bob S > On Mar 1, 2018, at 08:41 , Richard Gaskin via use-livecode wrote: > > Very kind of you to say, Brian. Thanks. I have no registration > requirement for that free plugin, so I'm often delightfully surprised to > discover who's using it. From ambassador at fourthworld.com Thu Mar 1 12:54:56 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Mar 2018 09:54:56 -0800 Subject: Background color in an 'answer' dialog? In-Reply-To: References: Message-ID: Generous of you to offer, Bob. There's a donation button in the About pane, accessed through the topmost arrow button. I use paypal at fourthworld.com Donations allow me to spend time with it, and also useful is learning how others spend time with it. It's more of a tool rack than a tool itself, a convenient way to quickly access any mix of IDE tools, plugins, or your own. So feel free to drop me a note on anything you find particularly useful, or would like to see added. -- Richard Gaskin Fourth World Systems http://fourthworld.com/products/devolution/ Bob S wrote: > Saw the png of it, looks great! I am going to give it a try. If I like and use it I will be happty to shoot you off something on PayPal. Just let me know your handle if you have one. > > Bob S > > >> On Mar 1, 2018, at 08:41 , Richard Gaskin via use-livecode wrote: >> >> Very kind of you to say, Brian. Thanks. I have no registration >> requirement for that free plugin, so I'm often delightfully surprised to >> discover who's using it. From ambassador at fourthworld.com Thu Mar 1 12:45:18 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Mar 2018 09:45:18 -0800 Subject: =?UTF-8?Q?Re:_Re:_A_suggestion_for_an_in-memory_database=2c_followi?= =?UTF-8?Q?ng_up_on_Richard=e2=80=99s_experiment?= In-Reply-To: References: Message-ID: Tom Glod wrote: > no reason why it wouldn't work... but keep 2 things in mind > > if you use community edition, the number of HHTP Requests you can make > to the same domain at one time is exactly 1. How many are needed from a single client? While it's unfortunate the LiveCode Community Edition is the only open source scripting language I know of that doesn't have CURL support available in its community, that's a problem that can be fixed here as it has been for others: it would be possible for someone in the community to wrap the most relevant subset affordably. HTTPS alone would take care of at least 80% of real-world needs in our API-driven world. And in the meantime, the limit for domain access is in the scripted libURL, so a modded version could up that (though I wouldn't take it too high, for the same reasons browsers default to a small number of connections to a single host). > For a system like this, it could be better to save to an sql because > seperate TXT files would be a lot of IO calls. How would the method used for moving data from disk to socket affect throughput for socket comms? Ultimately all persistent storage needs to write to disk. MySQL is very efficient, but does a lot of complex B-tree traversal. It's possible (for _very_ limited use cases) to outperform it for some forms of simple retrieval in LC script. You'd never match even a small fraction of the full scope of DB features without losing that advantage many times over. But if you knew in advance that the only thing you ever needed to do was simple retrieval your options are broad. Even writes aren't too bad under some circumstances. Another concern for larger systems may be inode depletion: if you have a lot of records and each record is a separate file, unless you tune the file system from its defaults you're limited to roughly total-disk-kb/4 for the number of files (Ext4 and most others these days use a default 4k block size). > I'd be curious to see the performance of using LC Arrays as Database. Poor as CGI, promising as daemon. The ability to serialize arrays in LC is very nice, but as intensive as one would imagine for the task: beyond the ftstat and fread, it needs to parse the data, extracting each element from length indicators, translating numbers (which are serialized in binary form) by type indicators, and tucking what it finds into an array, key and element by key and element. Certainly faster in the engine's machine code than trying to do it in script, but it's a lot of work no matter who's doing it. I was doing some measurements on this the other day, exploring options for server storage that might be reasonably performant while more portable than MySQL (and unencumbered by GPL in case I decide to ship a complete solution from it). One file was plain text, with keys longer than we commonly find but much shorter than the max of 255 (35 chars) as item 1 of each line, and a 10-character integer as the value in item 2. The second file was that same data in array form, stored on disk as LSON. The test was for CGI, so each iteration reads the file from disk and obtains the value associated with what happens to be the last key in the text file. I chose the last key specifically because it would be the worst case for lineoffset, while of course for arrays it makes almost no difference. But even weighted against using lineoffset in a text file, the overhead of arrayDecode more than ate up any benefits of using arrays for a simple single lookup: the LSON file took nearly 8 times longer for 100,000 keys: Text: 21.8 ms LSON: 167.9 ms All that said, the overhead of LSON only applies for CGIs, where each request is effectively working from a cold boot, and any files used need to be read and unpacked each time. As a daemon, the array would already be in memory, completely avoiding the overhead of deserialization. In a broad sense that's more or less how MongoDB works: a key-value store in which the index is RAM-bound, with data on disk found by pointers in the index. Using a CouchDB-like logfile method (append is among the faster disk write options), one could get pretty good performance for storing any arbitrary data; kinda like have one big array on disk, but with the added benefit of built-in versioning. But this is ideal only for limited use cases, in which both of these conditions are met: shared hosting where you have no control over the DBs you can use, a preference for document-style NonSQL storage. If you're really concerned about C10k, you're probably not on a shared host (or you'll soon find out why you don't want to be on a shared host for that ). And if you're on a well-equipped VPS or dedicated server, there's probably no reason why you wouldn't just use MongoDB or CouchDB if you prefer those. Compiled to machine code they'll give you not only far better performance than any scripted solution, but far more efficient and flexible options for managing the other half of most NonSQL stores, materialized views. TL;DR: I appreciate the desire for LC-based server components more than most, but given the performance advantage of any dedicated storage option those are better for scalable systems. And even as middleware, LiveCode Server is great for small low-load systems, but given the blinding speed of PHP7 its advantages make it the clear winner among scripting languages where performance is critical. -- 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 Thu Mar 1 13:35:43 2018 From: jbv at souslelogo.com (jbv) Date: Thu, 1 Mar 2018 19:35:43 +0100 Subject: Another server question (mixing node.js and LC) In-Reply-To: References: <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> Message-ID: <8698acb8bdf444acef1acde3a22f5283.squirrel@sage.on-rev.com> On Thu, March 1, 2018 5:38 pm, Richard Gaskin via use-livecode wrote: > It's nice that we now have > graphics capabilities in Server, Is there any doc on this somewhere ? And is this feature already available on the LC version of on-rev accounts ? Thanks, jbv From bmmeili at swissonline.ch Thu Mar 1 13:38:58 2018 From: bmmeili at swissonline.ch (martin meili) Date: Thu, 1 Mar 2018 19:38:58 +0100 Subject: How to include files in an iOS-App? Message-ID: <7554C9B8-A99E-4B9B-B85C-1B0BF19928BF@swissonline.ch> How can I include e.g. a textfile (let's say ?MyText.txt?), when building the standalone application for iOS for the use from within the app (reading from/writing to)? I get my apps running on my iPad, I can read and write files, and - if there is no ?TheFiles?-folder - I can create such a folder within the ?documents-folder" by the help of the special-folderpath-function. But how can I include such a folder (?TheFiles?{holding already existing different xy.txt files}) in my iOS-application (inside the documents-folder) when building the standalone, so that I can access these textfiles from within my iOS-Applcation? Many thanks for you advising me. Martin From rdimola at evergreeninfo.net Thu Mar 1 14:02:53 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 1 Mar 2018 14:02:53 -0500 Subject: How to include files in an iOS-App? In-Reply-To: <7554C9B8-A99E-4B9B-B85C-1B0BF19928BF@swissonline.ch> References: <7554C9B8-A99E-4B9B-B85C-1B0BF19928BF@swissonline.ch> Message-ID: <003a01d3b18f$e9e97ff0$bdbc7fd0$@net> Martin, 1) Put the text file into the "Copy Files" pane of the standalone settings 2) When app start check is there is a copy in your "the documents folder/somepath" folder. If not then copy it from "the engine folder" to "the documents folder/somepath" folder. 3) Your app will access the file in the " the documents folder/somepath" folder and read/write at will. "The engine folder" is where you find the files in the Copy Files pane and is read-only. "The documents folder" is read/write. 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 martin meili via use-livecode Sent: Thursday, March 01, 2018 1:39 PM To: use-livecode at lists.runrev.com Cc: martin meili Subject: How to include files in an iOS-App? How can I include e.g. a textfile (let's say ?MyText.txt?), when building the standalone application for iOS for the use from within the app (reading from/writing to)? I get my apps running on my iPad, I can read and write files, and - if there is no ?TheFiles?-folder - I can create such a folder within the ?documents-folder" by the help of the special-folderpath-function. But how can I include such a folder (?TheFiles?{holding already existing different xy.txt files}) in my iOS-application (inside the documents-folder) when building the standalone, so that I can access these textfiles from within my iOS-Applcation? Many thanks for you advising me. Martin _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 1 13:48:16 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Mar 2018 10:48:16 -0800 Subject: Another server question (mixing node.js and LC) In-Reply-To: <8698acb8bdf444acef1acde3a22f5283.squirrel@sage.on-rev.com> References: <8698acb8bdf444acef1acde3a22f5283.squirrel@sage.on-rev.com> Message-ID: <52e671c1-124d-c6b4-9c08-5c767f0d244e@fourthworld.com> jbv wrote: > On Thu, March 1, 2018 5:38 pm, Richard Gaskin via use-livecode wrote: >> It's nice that we now have >> graphics capabilities in Server, > > Is there any doc on this somewhere ? I think it was in the Release Notes for whatever version it was enabled in (v7?), but I haven't checked to see if it's in the LS Server Guide included with the download. I haven't needed it myself, but my recollection is it's pretty straightforward: use the "export snapshot from " command to produce an image of whatever you can put on a card. This isn't new on the desktop of course, but earlier version of LC Server didn't include the graphics subsystem. > And is this feature already available on the LC version of on-rev > accounts ? Hard to say. I have an on-rev account, but haven't set it up. I would imagine that the mother ship is using the latest Stable build, no? IIRC this has been around since at least v7, so the much-faster v8 and v9 engines should have it too. -- 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 brian at milby7.com Thu Mar 1 14:31:03 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 01 Mar 2018 19:31:03 +0000 Subject: Another server question (mixing node.js and LC) In-Reply-To: References: <3353D87C-95F1-44E1-804B-2AEF2595BD13@gmail.com> Message-ID: If you just need community, should be pretty easy to compile a copy without that feature. I have not looked at the source though. On Thu, Mar 1, 2018 at 10:38 AM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > > > Can that be turned off? > > Not yet. I have a request for a "-f" option to bypass that: > http://quality.livecode.com/show_bug.cgi?id=14115 > > If we could get buy-in from the team to allow this to be added, given > that a command line flag is by far the simplest of the remedies > discussed I would imagine we may be able to find community resources to > implement it. > > From bobsneidar at iotecdigital.com Thu Mar 1 15:06:08 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 1 Mar 2018 20:06:08 +0000 Subject: Format Arrays Message-ID: <8619D8D5-1D63-4CB4-88FF-00A84978F6F4@iotecdigital.com> Hi all. Ever queried or updated an SQL database with float column types, and noted to your dismay that float values truncate leading AND trailing values? So now when you want to put that data into a datagrid, 800.00 becomes 800, 495.60 becomes 495.6. Wouldn't it be great if there was a command that went through all those arrays in the datagrid data and formatted the float values the way you want? Well now you can! Right now it only calls formatMoney (which I have included and because that is what I needed it for) but add your own formatting in the switch statement and call your own functions. A great example would be retrieving sql datetime formats and converting them to another livecode date format before populating your datagrid (or anything else really). aArray is obviously an array, but can be a single array or an array of arrays (but not mixed). pFormat is how you want to format the values, pKeyList is which array keys you want to format, and pType is the kind of array you are passing (record or data). Anyone who wants to tack on their own formatting can chime in. Actually, this would be a great open source github project! on formatArray @aArray, pFormat, pKeyList, pType if pType is "record" then put aArray into aArrayRecords [1] else -- pType is "data" (array of arrays) put aArray into aArrayRecords end if put the keys of aArrayRecords into tArrayKeys sort lines of tArrayKeys numeric ascending repeat for each line tRecord in tArrayKeys put aArrayRecords [tRecord] into aRecord put the keys of aRecord into tRecordKeys sort lines of tRecordKeys numeric ascending put (char 1 of tRecordKeys is "@") into IsRecord repeat for each item tKey in pKeyList put aRecord [tKey] into tValue switch pFormat case "money" put formatMoney(tValue, false) into tValue break end switch if isRecord then sqlrecord_set aRecord, tKey, tValue else put tValue into aRecord [tKey] end if end repeat put aRecord into aArrayRecords [tRecord] end repeat -- convert back to passed array if pType is "record" then put aArrayRecords [1] into aArray else put aArrayRecords into aArray end if end formatArray function formatMoney theValue, tUseSymbols -- strip out monetary symbols replace "$" with empty in theValue replace "?" with empty in theValue switch case theValue = 0 or theValue >= 1 put "$%1.2f" into tFormatString if tUseSymbols is false then replace "$" with empty in tFormatString put format(tFormatString, theValue) into theValue break case theValue >= 0 put "%#.2f?" into tFormatString if tUseSymbols is false then replace "?" with empty in tFormatString put format(tFormatString, theValue) into theValue break case theValue <= -1 -- why am I doing this?? replace "-" WITH empty in theValue put format("($%1.2f)", theValue) into theValue break case theValue < 0 -- why am I doing this?? replace "-" WITH empty in theValue put format("(%#.2f?)", theValue) into theValue break end switch return theValue end formatMoney From martyknappster at gmail.com Thu Mar 1 16:36:03 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Thu, 1 Mar 2018 13:36:03 -0800 Subject: Rolling my own font menu Message-ID: So I need to roll my own font menu for a project I'm working on. I'm using a simple stack that I open as a palette with a scrolling field which lists all the fonts. I open this font menu stack and the text stays selected in the field of the stack that I'm wanting to change the font of. But after I make my font selection and close the font stack, the text de-selects. So I'm storing the selectedChunk and re-selecting the text using that info, but of course you see the text de-select, then re-select. Is there a way to avoid this? Lock screen has no effect. Another way to deal with this? Marty From alex at tweedly.net Thu Mar 1 17:33:06 2018 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 1 Mar 2018 22:33:06 +0000 Subject: Another server question (mixing node.js and LC) In-Reply-To: <52e671c1-124d-c6b4-9c08-5c767f0d244e@fourthworld.com> References: <8698acb8bdf444acef1acde3a22f5283.squirrel@sage.on-rev.com> <52e671c1-124d-c6b4-9c08-5c767f0d244e@fourthworld.com> Message-ID: On 01/03/2018 18:48, Richard Gaskin via use-livecode wrote: > jbv wrote: > > > And is this feature already available on the LC version of on-rev > > accounts ? > > Hard to say. I have an on-rev account, but haven't set it up.? I would > imagine that the mother ship is using the latest Stable build, no? > Yeah, right :-( The default on on-rev (at least, on sage) is 7.1 !! You can, I believe, request any particular version to be enabled per-domain. Or you can specify a specific version (but I couldn't find a way to predict which versions might be available). Or, my choice, just give up on on-rev and use hostM (uses latest stable release by default, and gives you a simple way to specify which major release you would prefer to use), or Dreamhost (can't remember how they did it, but I remember it worked OK). -- Alex. From martyknappster at gmail.com Thu Mar 1 17:42:01 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Thu, 1 Mar 2018 14:42:01 -0800 Subject: Font name weirdness Message-ID: I just discovered something weird with regards to font names. If I look at the font names in the font menu of LC 8.1.9, in some cases they are different names than what I get when I access the fontNames. For example, I have a font family named "Vendome." From the fontNames function I get these: VendomeTBol VendomeTMed VendomeTMedIta VendomeReg When I try to apply those to text, nothing happens. Then when I look at the font names in the LC font menu I see this instead; Vendome T Bold Vendome T Medium Vendome T Medium Italic Vendome T Regular And those apply just fine. I've been using LC 6.6.5 and have no problems there. Anybody know what's up? The dictionary entry for fontNames makes no mention of this? Marty From bonnmike at gmail.com Thu Mar 1 18:32:55 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 1 Mar 2018 16:32:55 -0700 Subject: building deb packages In-Reply-To: References: <6379bf8b-6ee5-1ae6-95b9-1306c46a09f8@sonic.net> Message-ID: I'm giving up on the file size. No clue where the extra comes from, and I even went to far as to try compressing the .deb after the fact looking to see if it could be squeezed any tighter. But, Newp. On Wed, Feb 28, 2018 at 7:24 PM, Mike Bonner wrote: > Thanks for testing! Tickled that it actually worked. > > As far as installing for individual use, I haven't stumbled on a way to do > that, so i'm not sure if its possible either. > > Thanks for the reminder about the link. It does work easier by changing > the dl=0 to a 1, so here's the alternate link. (I did choose "copy public > link" but it defaults to that page where you have to choose between direct > download or download to Dropbox. The new link should fix that. ) > > https://www.dropbox.com/s/49d4g6n4fi7nabz/livecode_9.0. > 0_dp_11_x64.deb?dl=1 > > There is default compression used when building the deb, but obviously it > needs to be tweaked. Not much real overhead as all it does is bundle up > the proper directory structure, with a control file (straight text) that > sets some parameters. I'll see if I can get better encryption because it > is a big on the large side. > > If I can get things shrunk down and reliable, would you (or anyone) be > interested in a selection of versions converted to deb? I don't think it > would be very difficult to automate much of it. > The only hard part on my end is the horrendously slow up connection I > have. (runs a little under a half a Mbps.) > > Reading while answering, I think I may have some compression clues to > follow up. > > Thanks Mark > > On Wed, Feb 28, 2018 at 6:48 PM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 02/28/2018 11:37 AM, Mike Bonner via use-livecode wrote: >> >>> I decided to see how hard it was to turn LC into a deb package. So far >>> it >>> hasn't been too difficult, the only thing I need to find again is how to >>> have the icon auto update during the install. (as it is, to see the lc >>> icon >>> one must log out and in for it to show up, otherwise its the generic icon >>> that shows... I have the answer to that specific thing.. I just need to >>> remember where I put it. :) >>> >>> I built the .deb package on ubuntu 16.4. Currently, I don't know if it >>> will function as is on earlier versions, and would also like others to >>> test. This is the x64 version. >>> >>> Any of you who like messing with vm's, would you mind downloading it and >>> seeing if it will work? (I'd rather a safe check in a vm rather than a >>> production system obviously, though there isn't all that much that could >>> go >>> wrong.. i'm still paranoid) >>> >>> The link to it is here: >>> https://www.dropbox.com/s/49d4g6n4fi7nabz/livecode_9.0.0_dp_ >>> 11_x64.deb?dl=0 >>> >>> To install, at a command prompt run: dpkg -i >>> livecode_9.0.0_dp_11_x64.deb >>> >>> I added some dependencies to the deb, but i'm unsure (so far) what might >>> need to be adjusted for earlier versions (if anything.) Still trying to >>> get a handle on how it all works. (it seems deceptively simple, so i'm >>> pretty sure i'm missing something!) >>> >> >> Installed properly here on linux Mint 17.3. I opened with the Gdebi >> package installer first rather than following my first instinct to go with >> a commandline. That let me look at the install directories, and everything >> seemed fine, so I clicked install. No problems installing, and it showed up >> properly in the menu. >> >> A few things here: >> >> You might want to change the download link - Dropbox lets you do this in >> a couple of different ways, and the one you selected requires that the >> downloader have a Dropbox account as well. You can alternately create a >> download link that anyone can use without needing an account. >> >> The installer installs to the /opt/livecode directory, which doesn't >> offer the option of installing just for the current user. That doesn't >> bother me, since it's what I wanted anyway, so I'm just noting it. Also, >> I'm not sure if it's desirable or feasible to create a .deb installer that >> would only install for the current user. >> >> And the size of the installer is a bit of a boggler. The installer from >> the downloads.livecode page is a bit under 400MB, and the .deb installer is >> 628MB. That seems like a lot of overhead. Just curious. >> >> >> -- >> Mark Wieder >> ahsoftware at gmail.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 bob at bobhall.net Thu Mar 1 19:18:51 2018 From: bob at bobhall.net (bob at bobhall.net) Date: Thu, 1 Mar 2018 19:18:51 -0500 Subject: Android Studio how to create AVD? In-Reply-To: References: <20180115135050.Horde.AGCVxX7_Qlb-WTiJi8X4heT@ua850258.serversignin.com> Message-ID: I?m trying to figure out how to get an Android virtual device going for LC testing/debugging. For the life of me I can?t figure out how to create an AVD with Android Studio. I?ve spent the better part of my day trying to figure this out. I've tried LC business 8.1.9 & LC business 9.0.0 (dp11). I?ve installed JRE 9.0.4, jdk 9.0.4, Android Studio 3.0. I?m on Mac OS 10.13.3. My LC Preference appear to be set correctly with the Android SDK being displayed with JDK Path also being displayed and appears to be valid. I have no problem testing IOS. I?ve just not been able to figure out how to get an Android virtual device and everything I?m reading on line doesn?t make sense for what I?m seeing in LC and Studio. The Test menu in the IDE does not show and Android deviced. not sure if this is related but when I attempt to save a standalone as an Android I get an error that says ?There was an error while saving the standalone application could not compile service support class?. What am I missing? There must be something dumb I?m doing or something I need to install isn?t on my system. Any help is much appreciated. Bob H. From martyknappster at gmail.com Thu Mar 1 19:40:27 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Thu, 1 Mar 2018 16:40:27 -0800 Subject: Font name weirdness In-Reply-To: References: Message-ID: <1B207927-823F-45FA-9AD9-C964224E2AE4@gmail.com> Never mind - I just realized that I?d loaded the fonts in my test stack in LC 6.6.5, then opened the stack in LC 8.1.9. But it is weird that the same fonts in my system show up with different names between 6.6.5 and 8.1.9. > I just discovered something weird with regards to font names. If I look at the font names in the font menu of LC 8.1.9, in some cases they are different names than what I get when I access the fontNames. For example, I have a font family named "Vendome." From the fontNames function I get these: > > VendomeTBol > VendomeTMed > VendomeTMedIta > VendomeReg > > When I try to apply those to text, nothing happens. > > Then when I look at the font names in the LC font menu I see this instead; > > Vendome T Bold > Vendome T Medium > Vendome T Medium Italic > Vendome T Regular > > And those apply just fine. I've been using LC 6.6.5 and have no problems there. Anybody know what's up? The dictionary entry for fontNames makes no mention of this? > > Marty From ali.lloyd at livecode.com Thu Mar 1 19:47:29 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 02 Mar 2018 00:47:29 +0000 Subject: Android Studio how to create AVD? In-Reply-To: References: <20180115135050.Horde.AGCVxX7_Qlb-WTiJi8X4heT@ua850258.serversignin.com> Message-ID: One very irritating thing about Android Studio is that you have to create a project before you can launch a simulator. So when you open Android Studio, and get the welcome dialog, just start a new project with any old settings. Once you've done that you can choose Tools > Android > AVD Manager and create a device. You'll need to choose something with armeabi architecture, not x86, when you create the device. Once it has booted up you should see it in the target list. On Fri, Mar 2, 2018 at 12:18 AM bob--- via use-livecode < use-livecode at lists.runrev.com> wrote: > I?m trying to figure out how to get an Android virtual device going for LC > testing/debugging. For the life of me I can?t figure out how to create an > AVD with Android Studio. I?ve spent the better part of my day trying to > figure this out. > > I've tried LC business 8.1.9 & LC business 9.0.0 (dp11). I?ve installed > JRE 9.0.4, jdk 9.0.4, Android Studio 3.0. I?m on Mac OS 10.13.3. My LC > Preference appear to be set correctly with the Android SDK being displayed > with JDK Path also being displayed and appears to be valid. I have no > problem testing IOS. I?ve just not been able to figure out how to get an > Android virtual device and everything I?m reading on line doesn?t make > sense for what I?m seeing in LC and Studio. > > The Test menu in the IDE does not show and Android deviced. > > not sure if this is related but when I attempt to save a standalone as an > Android I get an error that says ?There was an error while saving the > standalone application could not compile service support class?. > > What am I missing? There must be something dumb I?m doing or something I > need to install isn?t on my system. Any help is much appreciated. > > Bob H. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 2 01:13:59 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 1 Mar 2018 22:13:59 -0800 Subject: Factoring over Scaling (was: Another server question (mixing node.js and LC)) In-Reply-To: References: Message-ID: It's easy to get excited about C10k problems, and I got caught up in it myself. Geeks love this stuff. It's hard to resist. But once the coffee wore off, I changed hats and reconsidered this problem from the standpoint not of an implementer, but a business owner. Here's the core of the business need, summarized from two posts: jonathandlynch wrote: > A given transaction involves processing a user request, making two > or three requests to the database, and returning around 500 kB to > the user. ... > Basically, I am soon going to start pitching augmented tours (idea > suggested by guys at a business incubator) to tourism companies, using > Augmented Earth, and I don?t want to have the server crash if a large > number of people are using it all at once. Questions to consider, not for us but for your business planning: - How many users will be an achievable maximum? - How many users do you have today? - What is your attrition rate? - How long will it take you to get from your current user base to that maximum? - What marketing plan will be needed to acquire those new customers? - How much will that marketing plan cost to execute this year, next year, and the year after? And Guy Kawasaki's favorite question: - How will you be able to fulfill that marketing plan if you spend all your money on infrastructure development and provisioning? :) Grab your favorite after-dinner beverage, settle into your comfy chair, and enjoy this talk by Guy, esp. Mistake #2: Guy Kawasaki: The Top 10 Mistakes of Entrepreneurs See Mistake #2: Scaling too soon (@10:57): https://www.youtube.com/watch?v=HHjgK6p4nrw What we all want is one system that will handle anything we throw at it. But what we truly need is just any system that will handle the customer load we have today, with enough unused capacity for near-term growth. When we run into capacity limits we have the most enviable business problem: too many customers. :) That problem is self-correcting in software, unlike other forms of manufacturing that have a cost of physical goods per unit sold. We have no supply chain, no fabrication, no inventory warehouse. In software, the only raw materials needed are bandwidth and CPU time, both of which are far easier to acquire than customers. Ultimately every system will run into capacity constraints. If you get as big as Google, you'll eventually outgrow literally every existing system on earth and even need to invent your own file system. Most of us don't get that big. And on one starts that big. If you find yourself with that most enviable of business problems, you can rest easy because: - You're not the first person to need scaling. - At that point you have income to invest in scaling. Harder than scaling is launching, with marketing a close second. And unless both of those happen, and are done with excellence, any investment in scaling won't matter. So with all that in mind, I would prioritize time-to-market first, leaving as much time and money as you can for marketing. To make the most of development time, use what you know. It's not necessary to have large-scale capacity at the outset. You just want to make sure you don't make future scaling efforts harder than they need to be. For where you are at the moment, factoring may be more valuable than scaling. Use what you know and enjoy, and just make sure that your system is set up with each element as discrete as it can practically be: client, server logic, server storage. Separation of concerns, as they say. If you set those up with well-defined APIs between them, you can change out any one of them without affecting the other two. Then you can turn your attention to the harder work, the marketing plan. And when that pays off you'll be able to expand system components as you need to. And with any luck, you might even get so big that you'll need to invent your own file system too. I hope you do. But along the way you'll be able to consider scaling horizontally, or vertically, or both, as you learn more about usage patterns as the actual needs become evident. TL;DR: Relax about scaling, go cut some code. :) -- 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 Fri Mar 2 03:54:48 2018 From: jbv at souslelogo.com (jbv) Date: Fri, 2 Mar 2018 09:54:48 +0100 Subject: Another server question (mixing node.js and LC) In-Reply-To: References: <8698acb8bdf444acef1acde3a22f5283.squirrel@sage.on-rev.com> <52e671c1-124d-c6b4-9c08-5c767f0d244e@fourthworld.com> Message-ID: Indeed, on sage the engine version is 7.1 I did a few quick tests last evening and things like "create btn" or "export snapshot" work. I need to do more tests, but so far it's a nice surprise. jbv On Thu, March 1, 2018 11:33 pm, Alex Tweedly via use-livecode wrote: > On 01/03/2018 18:48, Richard Gaskin via use-livecode wrote: > > >> jbv wrote: >> >>> And is this feature already available on the LC version of on-rev >>> accounts ? >> >> Hard to say. I have an on-rev account, but haven't set it up.? I would >> imagine that the mother ship is using the latest Stable build, no? >> > Yeah, right :-( > The default on on-rev (at least, on sage) is 7.1 !! > > > You can, I believe, request any particular version to be enabled > per-domain. Or you can specify a specific version (but I couldn't find a > way to predict which versions might be available). > > Or, my choice, just give up on on-rev and use hostM (uses latest stable > release by default, and gives you a simple way to specify which major > release you would prefer to use), or Dreamhost (can't remember how they > did it, but I remember it worked OK). > > -- Alex. > > > _______________________________________________ > use-livecode mailing list use-livecode at 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 Mar 2 05:14:15 2018 From: jbv at souslelogo.com (jbv) Date: Fri, 2 Mar 2018 11:14:15 +0100 Subject: LC server and fonts Message-ID: Hello list How can I load ttf font files with LC server, at least version 7.1 available on my on-rev account ? Neither "revFontLoad" nor "start using font file" seem to work... And the list of available fonts returned by "the fontNames" is quite limited... Thanks in advance. jbv From bob at bobhall.net Fri Mar 2 06:39:19 2018 From: bob at bobhall.net (bob at bobhall.net) Date: Fri, 2 Mar 2018 06:39:19 -0500 Subject: Android Studio how to create AVD? In-Reply-To: References: <20180115135050.Horde.AGCVxX7_Qlb-WTiJi8X4heT@ua850258.serversignin.com> Message-ID: <18374EA3-AA01-4B35-804D-E815390AD392@bobhall.net> > > Once you've done that you can choose Tools > Android > AVD Manager and > create a device. You'll need to choose something with armeabi architecture, > not x86, when you create the device. Once it has booted up you should see > it in the target list. > Thanks for the clearing this up Ali. When I go to the Tools menu Android is not listed. BUT, you gave me a hint as to what was up. I did some searches and it turns out that there?s still an issue with the default installation of Android Studio ? apparently, in Googles infinite wisdom, the Android menu is not installed with the default configuration (dope slap to Google). You need to select custom install and add the AVD and other options for installation. I had 2 options to get things working. Completely uninstall Android Studio (not something I wanted to tackle since it?s not just uninstall the app and I use JetBrains for other dev work) or let AStudio fix itself. I choose Option 2. Option 1 Uninstall: https://stackoverflow.com/questions/47272832/no-android-option-in-tool-menu-and-no-avd-manager Not out of the woods yet but I do have the Android menu now (YIPEE!). I?ve created a AVD (Nexus 5 API 15 IceCreamSandwidch). I had installed this from the configuration menu of AStudio. When I tried to created an AVD I got an error: "Emulator: emulator: ERROR: This AVD's configuration is missing a kernel file! Please ensure the file "kernel-qemu" is in the same location as your system image.? "Emulator: emulator: ERROR: ANDROID_SDK_ROOT is undefined? I went back and created a API 17 based AVD. This device is able to boot after I downloaded the image. Back to LC. Development->Test Target and select the Android emulator. Then Development->Test. LC: ?Unable to build app for testing: could not compile Application class? Troubleshooting continues but thanks for moving me forward. Bob H. From livfoss at mac.com Fri Mar 2 06:44:13 2018 From: livfoss at mac.com (Graham Samuel) Date: Fri, 02 Mar 2018 12:44:13 +0100 Subject: Internet checking? In-Reply-To: References: Message-ID: Jacque, thanks. It seems like overkill to load up and initialise tsnet just to get a 20-byte text file. I?m really surprised there isn?t a foolproof way to find out if one?s device is connected to the internet or not. I am not good on internet functions, but don?t a huge number of apps in the real world want to know if they?re connected or not? Maybe I will write a tiny standalone that just talks to my server, and experiment with switching off the internet connection to see what errors I get. Puzzled Graham > On 1 Mar 2018, at 06:47, J. Landman Gay via use-livecode wrote: > > On 2/28/18 5:20 PM, Graham Samuel via use-livecode wrote: >> I know this is a golden oldie, but I can?t find a reference? I have a script that wants to check a file on a server, and basically to do nothing if the program is offline. >> Remind me, is there an easy way to tell from within an LC standalone if the internet is not accessible? I don?t want my program to hang. I understand the URLStatus will eventually tell me if access did not occur, but I don?t understand how to limit the waiting time to something reasonable. I notice that some browsers can actually display a message saying something like ?you are not connected to the internet? - how do they do that? > > I haven't actually played with it, but it looks like tsNetSetTimeouts might work if you set the pConnectTimeoutMS (the third param) to something shorter than the default. Then when you try to retrieve your file when there is no connection, you should get an error from tsNet. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From merakosp at gmail.com Fri Mar 2 07:02:41 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 2 Mar 2018 12:02:41 +0000 Subject: Android Studio how to create AVD? In-Reply-To: <18374EA3-AA01-4B35-804D-E815390AD392@bobhall.net> References: <20180115135050.Horde.AGCVxX7_Qlb-WTiJi8X4heT@ua850258.serversignin.com> <18374EA3-AA01-4B35-804D-E815390AD392@bobhall.net> Message-ID: Hi Bob, Just a suggestion, I personally find it easier to download an install just the Android SDK Tools, not Android Studio. The problem is that the newest versions of the Android SDK Tools don't work well with LC, because you can mainly run commands from the command line instead of having a UI for Android AVD Manager and Android SDK Manager etc So you have to download an older version of the Android SDK Tools. I have installed version 19 and it works like a charm with all LC versions I have tried (from 6.7.11 to 9.0) The link is a bit difficult to find, it has this format: http://dl-ssl.google.com/android/repository/tools_r[rev]-windows.zip http://dl-ssl.google.com/android/repository/tools_r[rev]-linux.zip http://dl-ssl.google.com/android/repository/tools_r[rev]-macosx.zip For example http://dl-ssl.google.com/android/repository/tools_r19-macosx.zip for version 19 on Mac. On other machines I have installed more recent versions, I *think* 20-23, and they work fine too. After downloading an older version of the Android Tools, use the instructions in this lesson http://lessons.livecode.com/m/2571/l/27389-how-do-i-become-an-android-developer-on-a-mac to download the other dependencies (SDK Platform Android 4.0.3 package) using the Android SDK Manager and configure Android AVD Manager. Hope this helps, Panos -- On Fri, Mar 2, 2018 at 11:39 AM, bob--- via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > > Once you've done that you can choose Tools > Android > AVD Manager and > > create a device. You'll need to choose something with armeabi > architecture, > > not x86, when you create the device. Once it has booted up you should see > > it in the target list. > > > > Thanks for the clearing this up Ali. When I go to the Tools menu Android > is not listed. BUT, you gave me a hint as to what was up. I did some > searches and it turns out that there?s still an issue with the default > installation of Android Studio ? apparently, in Googles infinite wisdom, > the Android menu is not installed with the default configuration (dope slap > to Google). You need to select custom install and add the AVD and other > options for installation. > > I had 2 options to get things working. Completely uninstall Android Studio > (not something I wanted to tackle since it?s not just uninstall the app and > I use JetBrains for other dev work) or let AStudio fix itself. I choose > Option 2. > > Option 1 Uninstall: https://stackoverflow.com/ > questions/47272832/no-android-option-in-tool-menu-and-no-avd-manager < > https://stackoverflow.com/questions/47272832/no-android- > option-in-tool-menu-and-no-avd-manager> Option 2 Let AStudio fix itself: https://stackoverflow.com/ > questions/46948322/how-to-open-avd-manager-in-android-studio-3-0-version < > https://stackoverflow.com/questions/46948322/how-to- > open-avd-manager-in-android-studio-3-0-version> > > Not out of the woods yet but I do have the Android menu now (YIPEE!). > > I?ve created a AVD (Nexus 5 API 15 IceCreamSandwidch). I had installed > this from the configuration menu of AStudio. When I tried to created an AVD > I got an error: > "Emulator: emulator: ERROR: This AVD's configuration is missing a kernel > file! Please ensure the file "kernel-qemu" is in the same location as your > system image.? > "Emulator: emulator: ERROR: ANDROID_SDK_ROOT is undefined? > > I went back and created a API 17 based AVD. This device is able to boot > after I downloaded the image. > > Back to LC. Development->Test Target and select the Android emulator. Then > Development->Test. > > LC: ?Unable to build app for testing: could not compile Application class? > > Troubleshooting continues but thanks for moving me forward. > > Bob H. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 2 07:18:22 2018 From: livfoss at mac.com (Graham Samuel) Date: Fri, 02 Mar 2018 13:18:22 +0100 Subject: Internet checking? In-Reply-To: References: Message-ID: I wrote: > > Maybe I will write a tiny standalone that just talks to my server, and experiment with switching off the internet connection to see what errors I get. I just did that, but so far have only used it in the IDE. I found out two things: 1. Despite my not being particularly interested in tsnet, if I run this program from the IDE, it uses tsnet. I?m not sure if it?s my responsibility to initialise tsnet or not, either here in the IDE (unlikely) or in a standalone (more likely). 2. If I switch off my internet connection, I get the result ?tsneterr: (7)? Seems interesting, so I have looked for a list of tsnet error numbers, but I can?t find it. Basically all I can find about tsnet is the stuff in the dictionary and some press releases. Can anyone point me at its error list? TIA Graham From harrison at all-auctions.com Fri Mar 2 09:23:52 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 2 Mar 2018 09:23:52 -0500 Subject: Internet checking? In-Reply-To: References: Message-ID: <591BEDDE-B2EC-4DA2-A222-F715D719C671@all-auctions.com> Hi Graham, Why don?t you just check for the existence of "tsneterr: (7)?? Rick > On Mar 2, 2018, at 7:18 AM, Graham Samuel via use-livecode wrote: > > 2. If I switch off my internet connection, I get the result ?tsneterr: (7)? From livfoss at mac.com Fri Mar 2 09:42:07 2018 From: livfoss at mac.com (Graham Samuel) Date: Fri, 02 Mar 2018 15:42:07 +0100 Subject: Internet checking? In-Reply-To: <591BEDDE-B2EC-4DA2-A222-F715D719C671@all-auctions.com> References: <591BEDDE-B2EC-4DA2-A222-F715D719C671@all-auctions.com> Message-ID: Rick, thanks for the reply. Well, sounds good, but as I have no idea of the range of happenings that could generate that error, I need a bit more information first! It?s odd how hard it is to find this stuff out. If it wasn?t for the nice little ?LiveCode Error Lookup? plug-in that?s been around for ages (Jacque, was it you that created it?) we?d have the same problem with error numbers in mainline LC. Actually, perhaps one should ask the mother ship to add tsnet errors to the plug-in? think I will. Graham > On 2 Mar 2018, at 15:23, Rick Harrison via use-livecode wrote: > > Hi Graham, > > Why don?t you just check for the existence of "tsneterr: (7)?? > > Rick > >> On Mar 2, 2018, at 7:18 AM, Graham Samuel via use-livecode wrote: >> >> 2. If I switch off my internet connection, I get the result ?tsneterr: (7)? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Mar 2 10:37:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Mar 2018 15:37:49 +0000 Subject: Factoring over Scaling (was: Another server question (mixing node.js and LC)) In-Reply-To: References: Message-ID: <7C3AE5D3-4FA9-4EBF-8AD0-FC90E55A947F@iotecdigital.com> The sum total of any scaling I have done is to finally get my company to adopt my application in it's workflow. :-) Bob S > On Mar 1, 2018, at 22:13 , Richard Gaskin via use-livecode wrote: > > TL;DR: Relax about scaling, go cut some code. :) > > -- > Richard Gaskin From bobsneidar at iotecdigital.com Fri Mar 2 10:47:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Mar 2018 15:47:30 +0000 Subject: Internet checking? In-Reply-To: References: Message-ID: Hi Graham. Whether or not you are connected to the internet isn't really the issue, is it? All that means is that you have a route to the WAN port of your edge router. I mean, the real issue is finding out if you can reach a particular server on a particular port using DNS, or else a given IP address, whether or not it is "on the internet". That is I think, what you really mean. The code I posted, while it has some exterraneous code dependent on sqlYoga calls, neverless is a framework for doing that. 1. Outer loop to allow user to retry (not strictly necessary but it lets the user attempt to fix the problem before dumping him). 2. Inner loop to open socket to prescribed server (Not necessary either, but you may want to check multiple times for the open socket in case of slow connections, and timeout after x tries). Bob S > On Mar 2, 2018, at 03:44 , Graham Samuel via use-livecode wrote: > > I?m really surprised there isn?t a foolproof way to find out if one?s device is connected to the internet or not. From ludovic.thebault at laposte.net Fri Mar 2 11:24:43 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 2 Mar 2018 17:24:43 +0100 Subject: Color a graphic on a datagrid Message-ID: <2BDFCD47-B23B-4A76-BCAD-1AF780645F7E@laposte.net> Hello, I want to do something similar to http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table but i want to ? automatically ? change the color of a graphic (in col 1) in a row only when there is some data in this row (in col 10). I can't get the value of my cell (col 10) to test it and modify the color of the graphic in col 1. Any ideas ? Thanks ! From ludovic.thebault at laposte.net Fri Mar 2 13:05:12 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 2 Mar 2018 19:05:12 +0100 Subject: Color a graphic on a datagrid In-Reply-To: <2BDFCD47-B23B-4A76-BCAD-1AF780645F7E@laposte.net> References: <2BDFCD47-B23B-4A76-BCAD-1AF780645F7E@laposte.net> Message-ID: > Le 2 mars 2018 ? 17:24, Ludovic THEBAULT via use-livecode a ?crit : > > Hello, > > I want to do something similar to http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table > > but i want to ? automatically ? change the color of a graphic (in col 1) in a row only when there is some data in this row (in col 10). I can't get the value of my cell (col 10) to test it and modify the color of the graphic in col 1. > > Any ideas ? > > Thanks ! I use a workaround : put the value in a hidden field of the same column of the graphic From livfoss at mac.com Fri Mar 2 13:09:41 2018 From: livfoss at mac.com (Graham Samuel) Date: Fri, 02 Mar 2018 19:09:41 +0100 Subject: Internet checking? In-Reply-To: References: Message-ID: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> Bob of course you?re right - in my particular case, anyway, I just want to know if I can access me chosen server or not. But one could certainly imagine programs that would want to know if they were wasting their time offering their users a broader internet access - I mean any program that allows the user to specify addresses (like a browser does) would want more of an ?is there or isn?t there?? approach. On my Mac, the Apple browser Safari can announce ?you are not connected to the internet?. Maybe it just pings a trusted source and waits for a reasonable time for the reaction. Anyway what I noticed in my little experiment was that the reaction of the script when the internet wasn?t available was very rapid (certainly less than half a second), which means that just trying to get the file and then looking for an error response would probably be OK for a human user, since there is no prolonged wait. As you see, I am reluctant to do anything that?s at all complicated! Graham > On 2 Mar 2018, at 16:47, Bob Sneidar via use-livecode wrote: > > Hi Graham. > > Whether or not you are connected to the internet isn't really the issue, is it? All that means is that you have a route to the WAN port of your edge router. I mean, the real issue is finding out if you can reach a particular server on a particular port using DNS, or else a given IP address, whether or not it is "on the internet". That is I think, what you really mean. > > The code I posted, while it has some exterraneous code dependent on sqlYoga calls, neverless is a framework for doing that. > > 1. Outer loop to allow user to retry (not strictly necessary but it lets the user attempt to fix the problem before dumping him). > 2. Inner loop to open socket to prescribed server (Not necessary either, but you may want to check multiple times for the open socket in case of slow connections, and timeout after x tries). > > Bob S > > >> On Mar 2, 2018, at 03:44 , Graham Samuel via use-livecode wrote: >> >> I?m really surprised there isn?t a foolproof way to find out if one?s device is connected to the internet or not. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 2 14:14:25 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 2 Mar 2018 13:14:25 -0600 Subject: How to include files in an iOS-App? In-Reply-To: <003a01d3b18f$e9e97ff0$bdbc7fd0$@net> References: <7554C9B8-A99E-4B9B-B85C-1B0BF19928BF@swissonline.ch> <003a01d3b18f$e9e97ff0$bdbc7fd0$@net> Message-ID: On 3/1/18 1:02 PM, Ralph DiMola via use-livecode wrote: > "The engine folder" is where you find the files in the Copy Files pane and is read-only. Apple now restricts the iOS engine folder to executable code only. You can still use that path but LC will silently redirect to specialFolderPath("resources") which is the real location of included files now. I just call the resources folder directly these days. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Mar 2 14:54:11 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Mar 2018 19:54:11 +0000 Subject: Color a graphic on a datagrid In-Reply-To: References: <2BDFCD47-B23B-4A76-BCAD-1AF780645F7E@laposte.net> Message-ID: Not sure if Datagrid Helper can do this. Conditional formatting of a datagrid may only be possible with forms, not tables. Bob S > On Mar 2, 2018, at 10:05 , Ludovic THEBAULT via use-livecode wrote: > >> Le 2 mars 2018 ? 17:24, Ludovic THEBAULT via use-livecode a ?crit : >> >> Hello, >> >> I want to do something similar to http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table >> >> but i want to ? automatically ? change the color of a graphic (in col 1) in a row only when there is some data in this row (in col 10). I can't get the value of my cell (col 10) to test it and modify the color of the graphic in col 1. >> >> Any ideas ? >> >> Thanks ! > > I use a workaround : put the value in a hidden field of the same column of the graphic From bobsneidar at iotecdigital.com Fri Mar 2 15:02:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Mar 2018 20:02:09 +0000 Subject: Internet checking? In-Reply-To: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> Message-ID: <5F3C47D2-57F4-4310-AC66-62C64BC014D6@iotecdigital.com> Yes, trying to figure out WHY the connection failed is trickier. I think you are right that Safari pings an IP (to exclude DNS problems) and then looks at the response. A ping that has no route will report something like Destination Unreachable as opposed to timeout. On my Apple terminal, if I ping a bogus DNS name, I get cannot resolve : unknown host. If I ping a bogus IP, I get a timeout. If I disable all network adapters I get a timeout AND sendto: No route to host. Windows probably does something similar. I suppose you could simply ping through a shell and then peruse the responses. Bob S > On Mar 2, 2018, at 10:09 , Graham Samuel via use-livecode wrote: > > Bob of course you?re right - in my particular case, anyway, I just want to know if I can access me chosen server or not. > > But one could certainly imagine programs that would want to know if they were wasting their time offering their users a broader internet access - I mean any program that allows the user to specify addresses (like a browser does) would want more of an ?is there or isn?t there?? approach. On my Mac, the Apple browser Safari can announce ?you are not connected to the internet?. Maybe it just pings a trusted source and waits for a reasonable time for the reaction. > > Anyway what I noticed in my little experiment was that the reaction of the script when the internet wasn?t available was very rapid (certainly less than half a second), which means that just trying to get the file and then looking for an error response would probably be OK for a human user, since there is no prolonged wait. > > As you see, I am reluctant to do anything that?s at all complicated! > > Graham From rdimola at evergreeninfo.net Fri Mar 2 15:40:36 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 2 Mar 2018 15:40:36 -0500 Subject: Internet checking? In-Reply-To: <5F3C47D2-57F4-4310-AC66-62C64BC014D6@iotecdigital.com> References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> <5F3C47D2-57F4-4310-AC66-62C64BC014D6@iotecdigital.com> Message-ID: <00af01d3b266$bac99de0$305cd9a0$@net> If the FQDN's IP is cached you will get timeouts when there is no network connection. A DNS cache entry is valid until TTL is exceeded. If the DNS cache entry is stale or not cached then you will get "unknown host" when there is no network connection. I check the network availability in my mobile apps by: 1) Set the network timeout to 2 seconds. 2) Send an https request to a webpage that calls an LC server script. 3) If there is a network connection then script returns turns an LC array with the "Status" key value of "OK". I set the app to "Network Available". 4) If there is a timeout I set the app to "Network Not Available". 5) Set the network timeout back to the previous value. I don't check the tsNet error to find out why the "ping" failed. I have a timer set to check if the network is up periodically. 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 Bob Sneidar via use-livecode Sent: Friday, March 02, 2018 3:02 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Internet checking? Yes, trying to figure out WHY the connection failed is trickier. I think you are right that Safari pings an IP (to exclude DNS problems) and then looks at the response. A ping that has no route will report something like Destination Unreachable as opposed to timeout. On my Apple terminal, if I ping a bogus DNS name, I get cannot resolve : unknown host. If I ping a bogus IP, I get a timeout. If I disable all network adapters I get a timeout AND sendto: No route to host. Windows probably does something similar. I suppose you could simply ping through a shell and then peruse the responses. Bob S > On Mar 2, 2018, at 10:09 , Graham Samuel via use-livecode wrote: > > Bob of course you?re right - in my particular case, anyway, I just want to know if I can access me chosen server or not. > > But one could certainly imagine programs that would want to know if they were wasting their time offering their users a broader internet access - I mean any program that allows the user to specify addresses (like a browser does) would want more of an ?is there or isn?t there?? approach. On my Mac, the Apple browser Safari can announce ?you are not connected to the internet?. Maybe it just pings a trusted source and waits for a reasonable time for the reaction. > > Anyway what I noticed in my little experiment was that the reaction of the script when the internet wasn?t available was very rapid (certainly less than half a second), which means that just trying to get the file and then looking for an error response would probably be OK for a human user, since there is no prolonged wait. > > As you see, I am reluctant to do anything that?s at all complicated! > > 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 waprothero at gmail.com Fri Mar 2 16:01:20 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 2 Mar 2018 13:01:20 -0800 Subject: Stupid Question re LC9 In-Reply-To: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> Message-ID: Folks: I?ve been away from Livecode for the past 4 months and am doing a very small project in the latest LC9 DP11 and when I put in a breakpoint, when it activates, I only get a list of the system handlers in the debug window. These things are usually at the bottom of the window, but it is way off the bottom of my screen. I?ve tried to set the rect in the message box, to no avail. I know there must be some kind of toggle to get the debug window sized, but ?.. Sorry for the newby-like question, but things have changed quite a bit in the last several months. Best, Bill William A. Prothero http://earthlearningsolution.org/ From tom at makeshyft.com Fri Mar 2 16:10:20 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 2 Mar 2018 16:10:20 -0500 Subject: Stupid Question re LC9 In-Reply-To: References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> Message-ID: Hi Will... I don't know the answer to your question, but I did click on your web link ...(i enjoy learning about companies that use livecode)...and your site seems to not be there at all. just an fyi,. On Fri, Mar 2, 2018 at 4:01 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks: > I?ve been away from Livecode for the past 4 months and am doing a very > small project in the latest LC9 DP11 and when I put in a breakpoint, when > it activates, I only get a list of the system handlers in the debug window. > These things are usually at the bottom of the window, but it is way off the > bottom of my screen. I?ve tried to set the rect in the message box, to no > avail. > > I know there must be some kind of toggle to get the debug window sized, > but ?.. > > Sorry for the newby-like question, but things have changed quite a bit in > the last several months. > > Best, > Bill > > > > William A. Prothero > http://earthlearningsolution.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 waprothero at gmail.com Fri Mar 2 16:10:27 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 2 Mar 2018 13:10:27 -0800 Subject: Stupid Question re LC9 In-Reply-To: References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> Message-ID: <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> Thought I had it, using: "set the rect of window "revNewScriptEditor 1" to 100,100,200,200 in the message box, but none of the variables and their values show up. Is there a control key command to toggle back to the normal display? Bill > On Mar 2, 2018, at 1:01 PM, William Prothero via use-livecode wrote: > > Folks: > I?ve been away from Livecode for the past 4 months and am doing a very small project in the latest LC9 DP11 and when I put in a breakpoint, when it activates, I only get a list of the system handlers in the debug window. These things are usually at the bottom of the window, but it is way off the bottom of my screen. I?ve tried to set the rect in the message box, to no avail. > > I know there must be some kind of toggle to get the debug window sized, but ?.. > > Sorry for the newby-like question, but things have changed quite a bit in the last several months. > > Best, > Bill > > > > William A. Prothero > http://earthlearningsolution.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 matthias_livecode_150811 at m-r-d.de Fri Mar 2 16:19:49 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 2 Mar 2018 22:19:49 +0100 Subject: Stupid Question re LC9 In-Reply-To: References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> Message-ID: <5068EF86-36F4-4D4B-AFA3-399FC68C96E9@m-r-d.de> Because it?s http://earthlearningsolutions.org Bill has a typo in his signature. Rebards, Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 02.03.2018 um 22:10 schrieb Tom Glod via use-livecode >: > > Hi Will... I don't know the answer to your question, but I did click on > your web link ...(i enjoy learning about companies that use livecode)...and > your site seems to not be there at all. just an fyi,. > > On Fri, Mar 2, 2018 at 4:01 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com > wrote: > >> Folks: >> I?ve been away from Livecode for the past 4 months and am doing a very >> small project in the latest LC9 DP11 and when I put in a breakpoint, when >> it activates, I only get a list of the system handlers in the debug window. >> These things are usually at the bottom of the window, but it is way off the >> bottom of my screen. I?ve tried to set the rect in the message box, to no >> avail. >> >> I know there must be some kind of toggle to get the debug window sized, >> but ?.. >> >> Sorry for the newby-like question, but things have changed quite a bit in >> the last several months. >> >> Best, >> Bill >> >> >> >> William A. Prothero >> http://earthlearningsolution.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 waprothero at gmail.com Fri Mar 2 16:19:58 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 2 Mar 2018 13:19:58 -0800 Subject: Stupid Question re LC9 In-Reply-To: References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> Message-ID: <67B410A4-94FB-4C37-89AA-6EF5395EFD4C@gmail.com> Tom: Thanks for the ?heads up?. Gaads, I?ve been using that mis-spelled link for longer than I remember. Anyway, here is the correct one: William A. Prothero http://earthlearningsolutions.org Bill > On Mar 2, 2018, at 1:10 PM, Tom Glod via use-livecode wrote: > > Hi Will... I don't know the answer to your question, but I did click on > your web link ...(i enjoy learning about companies that use livecode)...and > your site seems to not be there at all. just an fyi,. > > On Fri, Mar 2, 2018 at 4:01 PM, William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Folks: >> I?ve been away from Livecode for the past 4 months and am doing a very >> small project in the latest LC9 DP11 and when I put in a breakpoint, when >> it activates, I only get a list of the system handlers in the debug window. >> These things are usually at the bottom of the window, but it is way off the >> bottom of my screen. I?ve tried to set the rect in the message box, to no >> avail. >> >> I know there must be some kind of toggle to get the debug window sized, >> but ?.. >> >> Sorry for the newby-like question, but things have changed quite a bit in >> the last several months. >> >> Best, >> Bill >> >> >> >> William A. Prothero >> http://earthlearningsolution.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 bobsneidar at iotecdigital.com Fri Mar 2 16:30:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Mar 2018 21:30:03 +0000 Subject: Stupid Question re LC9 In-Reply-To: <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> Message-ID: <2B2C18BB-CF70-4C40-A7A7-E14BEC50F3FC@iotecdigital.com> Try setting the loc to the screenloc. Bob S > On Mar 2, 2018, at 13:10 , William Prothero via use-livecode wrote: > > Thought I had it, using: > "set the rect of window "revNewScriptEditor 1" to 100,100,200,200 > in the message box, but none of the variables and their values show up. > Is there a control key command to toggle back to the normal display? > Bill From bobsneidar at iotecdigital.com Fri Mar 2 16:31:24 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Mar 2018 21:31:24 +0000 Subject: Stupid Question re LC9 In-Reply-To: <2B2C18BB-CF70-4C40-A7A7-E14BEC50F3FC@iotecdigital.com> References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> <2B2C18BB-CF70-4C40-A7A7-E14BEC50F3FC@iotecdigital.com> Message-ID: <86B4CD2F-29AD-40FB-AD05-3888B0E52E02@iotecdigital.com> OIC you are missing the variables pane. If the handle for getting it back is gone, you may have to qiot, delete your preferences and relaunch. Bob S From tom at makeshyft.com Fri Mar 2 16:52:16 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 2 Mar 2018 16:52:16 -0500 Subject: Stupid Question re LC9 In-Reply-To: <86B4CD2F-29AD-40FB-AD05-3888B0E52E02@iotecdigital.com> References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> <2B2C18BB-CF70-4C40-A7A7-E14BEC50F3FC@iotecdigital.com> <86B4CD2F-29AD-40FB-AD05-3888B0E52E02@iotecdigital.com> Message-ID: the brain.....filling...... things.......in. Such a blessing and such a hazard. All the best Bill On Fri, Mar 2, 2018 at 4:31 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > OIC you are missing the variables pane. If the handle for getting it back > is gone, you may have to qiot, delete your preferences and relaunch. > > 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 waprothero at gmail.com Fri Mar 2 17:20:07 2018 From: waprothero at gmail.com (William Prothero) Date: Fri, 2 Mar 2018 14:20:07 -0800 Subject: Stupid Question re LC9 In-Reply-To: References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> <2B2C18BB-CF70-4C40-A7A7-E14BEC50F3FC@iotecdigital.com> <86B4CD2F-29AD-40FB-AD05-3888B0E52E02@iotecdigital.com> Message-ID: Bob: Yeah, I agree. I had a 4 mo vacation in the hospital because of a side effect of a biopsy. One of the ?shxxx happens situations.? Fortunately I survived an am getting back into the swing of my life. Best, Bill > On Mar 2, 2018, at 1:52 PM, Tom Glod via use-livecode wrote: > > the brain.....filling...... things.......in. Such a blessing and such a > hazard. All the best Bill > > On Fri, Mar 2, 2018 at 4:31 PM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> OIC you are missing the variables pane. If the handle for getting it back >> is gone, you may have to qiot, delete your preferences and relaunch. >> >> 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 zryip.theslug at gmail.com Fri Mar 2 18:27:51 2018 From: zryip.theslug at gmail.com (zryip theSlug) Date: Sat, 3 Mar 2018 00:27:51 +0100 Subject: Color a graphic on a datagrid In-Reply-To: References: <2BDFCD47-B23B-4A76-BCAD-1AF780645F7E@laposte.net> Message-ID: We have nothing helpful for accomplishing that in DGH. But having a look to the ColumnControlOfIndex function in the datagrid API could be helpful: http://lessons.livecode.com/m/datagrid/l/7344-data-grid-api We have shared a stack demonstrating the usage of this function some years ago. I just republished it here: http://www.aslugontheroad.com/download/category/4-lab The name of the stack is "dg interaction with a column control" and the purpose was to change the background color of column 2 when one is changing a value in column 3 by choosing a color inside a popup menu. On Fri, Mar 2, 2018 at 8:54 PM, Bob Sneidar via use-livecode wrote: > Not sure if Datagrid Helper can do this. Conditional formatting of a datagrid may only be possible with forms, not tables. > > Bob S > > >> On Mar 2, 2018, at 10:05 , Ludovic THEBAULT via use-livecode wrote: >> >>> Le 2 mars 2018 ? 17:24, Ludovic THEBAULT via use-livecode a ?crit : >>> >>> Hello, >>> >>> I want to do something similar to http://lessons.livecode.com/m/datagrid/l/7332-how-can-i-colorize-individual-lines-in-a-table >>> >>> but i want to ? automatically ? change the color of a graphic (in col 1) in a row only when there is some data in this row (in col 10). I can't get the value of my cell (col 10) to test it and modify the color of the graphic in col 1. >>> >>> Any ideas ? >>> >>> Thanks ! >> >> I use a workaround : put the value in a hidden field of the same column of the graphic > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Zryip TheSlug http://www.aslugontheroad.com From bogdanoff at me.com Fri Mar 2 20:06:17 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 02 Mar 2018 17:06:17 -0800 Subject: Stupid Question re LC9 In-Reply-To: References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> <2B2C18BB-CF70-4C40-A7A7-E14BEC50F3FC@iotecdigital.com> <86B4CD2F-29AD-40FB-AD05-3888B0E52E02@iotecdigital.com> Message-ID: <865CDA4F-3639-4E0C-A723-7B7B68A7EA0D@me.com> Bill, I?m glad you?re OK! Peter Bogdanoff > On Mar 2, 2018, at 2:20 PM, William Prothero via use-livecode wrote: > > Bob: > Yeah, I agree. I had a 4 mo vacation in the hospital because of a side effect of a biopsy. One of the ?shxxx happens situations.? Fortunately I survived an am getting back into the swing of my life. > > Best, > Bill > > >> On Mar 2, 2018, at 1:52 PM, Tom Glod via use-livecode wrote: >> >> the brain.....filling...... things.......in. Such a blessing and such a >> hazard. All the best Bill >> >> On Fri, Mar 2, 2018 at 4:31 PM, Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> OIC you are missing the variables pane. If the handle for getting it back >>> is gone, you may have to qiot, delete your preferences and relaunch. >>> >>> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Mar 2 20:35:17 2018 From: paul at livecode.org (Paul Hibbert) Date: Fri, 2 Mar 2018 17:35:17 -0800 Subject: Stupid Question re LC9 In-Reply-To: <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> References: <43ACDF83-00EC-4B38-BD2D-58EC599BE37A@mac.com> <22FB3BBE-DB39-4A9A-8CC5-A84169DADA61@gmail.com> Message-ID: <8DF8C272-523A-4C39-B962-CC97AEB92CB9@livecode.org> In the messageBox try: set the rect of stack "revNewScriptEditor 1" to "100,100,800,600" then: set the loc button "Resizer" of stack "revNewScriptEditor 1" to (the width of card 1 of stack "revNewScriptEditor 1"/2),(the height of card 1 of stack "revNewScriptEditor 1" - 100) Beware of email line wraps, these should both be single lines. This should bring the resize button into view, it just appears as two lines, move this and the debug panes should follow. Paul > On 2 Mar 2018, at 13:10, William Prothero via use-livecode wrote: > > Thought I had it, using: > "set the rect of window "revNewScriptEditor 1" to 100,100,200,200 > in the message box, but none of the variables and their values show up. > Is there a control key command to toggle back to the normal display? > Bill > >> On Mar 2, 2018, at 1:01 PM, William Prothero via use-livecode wrote: >> >> Folks: >> I?ve been away from Livecode for the past 4 months and am doing a very small project in the latest LC9 DP11 and when I put in a breakpoint, when it activates, I only get a list of the system handlers in the debug window. These things are usually at the bottom of the window, but it is way off the bottom of my screen. I?ve tried to set the rect in the message box, to no avail. >> >> I know there must be some kind of toggle to get the debug window sized, but ?.. >> >> Sorry for the newby-like question, but things have changed quite a bit in the last several months. >> >> Best, >> Bill >> >> >> >> William A. Prothero >> http://earthlearningsolution.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 tom at makeshyft.com Sat Mar 3 10:10:59 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 3 Mar 2018 10:10:59 -0500 Subject: LC server and fonts In-Reply-To: References: Message-ID: LC server generates html code to display text..... so you need to use inline CSS, external CSS to generate the text you want using HTML On Fri, Mar 2, 2018 at 5:14 AM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello list > How can I load ttf font files with LC server, at least version 7.1 > available on my on-rev account ? > Neither "revFontLoad" nor "start using font file" seem to work... > And the list of available fonts returned by "the fontNames" is quite > limited... > > Thanks in advance. > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ludovic.thebault at laposte.net Sat Mar 3 10:13:49 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Sat, 3 Mar 2018 16:13:49 +0100 Subject: Color a graphic on a datagrid In-Reply-To: References: <2BDFCD47-B23B-4A76-BCAD-1AF780645F7E@laposte.net> Message-ID: <4AF64368-DB4B-4356-B2A9-C1166AA6F6DA@laposte.net> > Le 3 mars 2018 ? 00:27, zryip theSlug via use-livecode a ?crit : > > We have nothing helpful for accomplishing that in DGH. But having a > look to the ColumnControlOfIndex function in the datagrid API could be > helpful: > http://lessons.livecode.com/m/datagrid/l/7344-data-grid-api > > We have shared a stack demonstrating the usage of this function some > years ago. I just republished it here: > http://www.aslugontheroad.com/download/category/4-lab > > The name of the stack is "dg interaction with a column control" and > the purpose was to change the background color of column 2 when one is > changing a value in column 3 by choosing a color inside a popup menu. Thanks. Ludovic From jbv at souslelogo.com Sat Mar 3 10:19:50 2018 From: jbv at souslelogo.com (jbv) Date: Sat, 3 Mar 2018 16:19:50 +0100 Subject: LC server and fonts In-Reply-To: References: Message-ID: Hello Thanks for the reply, but that's not what I need. For instance, here's what I want to do : create field put "my text" into fld 1 set the textfont of fld 1 to "myfont.ttf' export snapshot from fld 1 to file "File1.png" as PNG Therefore I need to "load" ttf fonts somehow. Best jbv On Sat, March 3, 2018 4:10 pm, Tom Glod via use-livecode wrote: > LC server generates html code to display text..... so you need to use > inline CSS, external CSS to generate the text you want using HTML > > On Fri, Mar 2, 2018 at 5:14 AM, jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hello list >> How can I load ttf font files with LC server, at least version 7.1 >> available on my on-rev account ? Neither "revFontLoad" nor "start using >> font file" seem to work... And the list of available fonts returned by >> "the fontNames" is quite >> limited... >> >> Thanks in advance. >> jbv >> >> >> _______________________________________________ >> use-livecode mailing list use-livecode at lists.runrev.com Please visit this >> url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list use-livecode at lists.runrev.com Please visit this > url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From tom at makeshyft.com Sat Mar 3 11:29:22 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 3 Mar 2018 11:29:22 -0500 Subject: LC server and fonts In-Reply-To: References: Message-ID: That would work perfectly in desktop....but on server...... its different for some reason. You are displaying field and exporting from a browser window correct? On Sat, Mar 3, 2018 at 10:19 AM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello > Thanks for the reply, but that's not what I need. > For instance, here's what I want to do : > create field > put "my text" into fld 1 > set the textfont of fld 1 to "myfont.ttf' > export snapshot from fld 1 to file "File1.png" as PNG > Therefore I need to "load" ttf fonts somehow. > > Best > jbv > > On Sat, March 3, 2018 4:10 pm, Tom Glod via use-livecode wrote: > > LC server generates html code to display text..... so you need to use > > inline CSS, external CSS to generate the text you want using HTML > > > > On Fri, Mar 2, 2018 at 5:14 AM, jbv via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hello list > >> How can I load ttf font files with LC server, at least version 7.1 > >> available on my on-rev account ? Neither "revFontLoad" nor "start using > >> font file" seem to work... And the list of available fonts returned by > >> "the fontNames" is quite > >> limited... > >> > >> Thanks in advance. > >> jbv > >> > >> > >> _______________________________________________ > >> use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > >> url to subscribe, unsubscribe and manage your subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > > _______________________________________________ > > use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > > url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Sat Mar 3 11:31:49 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 3 Mar 2018 11:31:49 -0500 Subject: LC server and fonts In-Reply-To: References: Message-ID: so doesn't html output need font css to display correctly? On Sat, Mar 3, 2018 at 11:29 AM, Tom Glod wrote: > That would work perfectly in desktop....but on server...... its different > for some reason. > > You are displaying field and exporting from a browser window correct? > > On Sat, Mar 3, 2018 at 10:19 AM, jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hello >> Thanks for the reply, but that's not what I need. >> For instance, here's what I want to do : >> create field >> put "my text" into fld 1 >> set the textfont of fld 1 to "myfont.ttf' >> export snapshot from fld 1 to file "File1.png" as PNG >> Therefore I need to "load" ttf fonts somehow. >> >> Best >> jbv >> >> On Sat, March 3, 2018 4:10 pm, Tom Glod via use-livecode wrote: >> > LC server generates html code to display text..... so you need to use >> > inline CSS, external CSS to generate the text you want using HTML >> > >> > On Fri, Mar 2, 2018 at 5:14 AM, jbv via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > >> >> Hello list >> >> How can I load ttf font files with LC server, at least version 7.1 >> >> available on my on-rev account ? Neither "revFontLoad" nor "start using >> >> font file" seem to work... And the list of available fonts returned by >> >> "the fontNames" is quite >> >> limited... >> >> >> >> Thanks in advance. >> >> jbv >> >> >> >> >> >> _______________________________________________ >> >> use-livecode mailing list use-livecode at lists.runrev.com Please visit >> this >> >> url to subscribe, unsubscribe and manage your subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> >> > _______________________________________________ >> > use-livecode mailing list use-livecode at lists.runrev.com Please visit >> this >> > url to subscribe, unsubscribe and manage your subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> > >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Sat Mar 3 12:22:32 2018 From: jbv at souslelogo.com (jbv) Date: Sat, 3 Mar 2018 18:22:32 +0100 Subject: LC server and fonts In-Reply-To: References: Message-ID: On Sat, March 3, 2018 5:29 pm, Tom Glod via use-livecode wrote: > That would work perfectly in desktop....but on server...... its different > for some reason. > > You are displaying field and exporting from a browser window correct? > > Actually no : I want to layout text, images, and graphics server-side, in the same way as what can be done with php librairies such as gd2 or image magik. From tom at makeshyft.com Sat Mar 3 13:01:57 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 3 Mar 2018 13:01:57 -0500 Subject: LC server and fonts In-Reply-To: References: Message-ID: ooohhhhhh....i see. I'm not sure about the limitations of LC Server and outputting to a 'visible stack'...but if its not possible with LC Server...then you can run an LC Desktop Standalone to create the image you need ...and then pass it on to the server, Its likely to be fast enough with very little overhead. But if this needs to scale..then I'm not sure. Anyone else? On Sat, Mar 3, 2018 at 12:22 PM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > On Sat, March 3, 2018 5:29 pm, Tom Glod via use-livecode wrote: > > That would work perfectly in desktop....but on server...... its different > > for some reason. > > > > You are displaying field and exporting from a browser window correct? > > > > > > Actually no : I want to layout text, images, and graphics > server-side, in the same way as what can be done with php > librairies such as gd2 or image magik. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Mar 3 17:50:39 2018 From: livfoss at mac.com (Graham Samuel) Date: Sat, 03 Mar 2018 23:50:39 +0100 Subject: tsNet Error Codes (was: Internet checking?) Message-ID: Charles Warwick of Tech Sstrategies gave me this info and doesn?t mind if it?s shared. May be useful to some folk on the list! It certainly solved my question about tserror(7). Graham > The numeric error codes that tsNet reports back come from the curl library which it uses for all network operations. > > The full list of these curl error codes can be found here: > > https://curl.haxx.se/libcurl/c/libcurl-errors.html > > I will check the documentation for tsNet and if this isn?t referenced within it, I will make sure I update the documentation. > > Best Regards, > > Charles From alex at tweedly.net Sat Mar 3 19:09:40 2018 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 4 Mar 2018 00:09:40 +0000 Subject: [Completely OT] Withdrawal symptoms from Slashdot Message-ID: Completely off topic, but I need help ;-) For many years now my standard "I have 30 seconds (or minutes) to fill in, what's happening in the world" web site has been slashdot, but it seems to be completely off the air for now. I'm looking for suggestions for alternates that are worth using while waiting for a build, or just to give me some interesting. The less video, the better :-) Thanks Alex. From harrison at all-auctions.com Sat Mar 3 21:37:24 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 3 Mar 2018 21:37:24 -0500 Subject: [Completely OT] Withdrawal symptoms from Slashdot In-Reply-To: References: Message-ID: <5F6CD911-7EE1-4E38-8055-E5B1A006535B@all-auctions.com> Hi Alex, Try.. https://news360.com You can choose a technical focus too. Enjoy! Rick > On Mar 3, 2018, at 7:09 PM, Alex Tweedly via use-livecode wrote: > > Completely off topic, but I need help ;-) > > For many years now my standard "I have 30 seconds (or minutes) to fill in, what's happening in the world" web site has been slashdot, but it seems to be completely off the air for now. > > I'm looking for suggestions for alternates that are worth using while waiting for a build, or just to give me some interesting. The less video, the better :-) > > Thanks > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Sun Mar 4 12:16:52 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 4 Mar 2018 09:16:52 -0800 Subject: [Completely OT] Withdrawal symptoms from Slashdot In-Reply-To: References: Message-ID: <5a943cae-b528-4c43-22e8-ec339b60425b@sonic.net> On 03/03/2018 04:09 PM, Alex Tweedly via use-livecode wrote: > Completely off topic, but I need help ;-) > > For many years now my standard "I have 30 seconds (or minutes) to fill > in, what's happening in the world" web site has been slashdot, but it > seems to be completely off the air for now. > > I'm looking for suggestions for alternates that are worth using while > waiting for a build, or just to give me some interesting. The less > video, the better :-) /. is back on the air now, but nonetheless... https://www.mercurynews.com/tag/siliconbeat/ https://whatthefuckjusthappenedtoday.com/ https://www.boingboing.net -- Mark Wieder ahsoftware at gmail.com From rodney at pobox.com Sat Mar 3 23:16:15 2018 From: rodney at pobox.com (Rodney Somerstein) Date: Sat, 03 Mar 2018 23:16:15 -0500 Subject: [Completely OT] Withdrawal symptoms from Slashdot In-Reply-To: References: Message-ID: <5A9B730F.1060009@pobox.com> Slashdot is definitely still there. Make sure you are going to https://slashdot.org . I suppose they may have been having a problem the last time you tried the site, but it is definitely up and running right now. > Alex Tweedly via use-livecode > March 3, 2018 at 7:09 PM > Completely off topic, but I need help ;-) > > For many years now my standard "I have 30 seconds (or minutes) to fill > in, what's happening in the world" web site has been slashdot, but it > seems to be completely off the air for now. > > I'm looking for suggestions for alternates that are worth using while > waiting for a build, or just to give me some interesting. The less > video, the better :-) > > Thanks > > Alex. > > From livfoss at mac.com Mon Mar 5 05:16:06 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Mar 2018 11:16:06 +0100 Subject: this is a test Message-ID: Just a test, please ignore? (in case you were wondering, my mail client has just seen the first mail to this list since 3rd March, but I know that some are missing.) From livfoss at mac.com Mon Mar 5 05:18:54 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Mar 2018 11:18:54 +0100 Subject: tsNet or not tsNet? Message-ID: <4DEF2764-5F3E-410A-887B-0BE9917B094D@mac.com> This message may be a repeat. If you see two copies on the list, I apologise. === I?ve been executing this line of script in an app made on a Mac with LC 9.0.0 dp11 get URL ?http://www.myserver.com/mytextfile .txt It works fine, but I also wanted to detect what happens when the connection can't be established, so I made the command fail by switching off internet access on my machine. I got an error in ?the result?, as expected. Or at least I got one when the line was executed in the IDE, and this was a tsNet error. As I had not initialised tsNet in my script - according to the dictionary, this **must** be done before tsNet functions are used - I concluded that the IDE had done it for me. Fair enough, but I then reasoned that if I wanted to see the same kind of explicit error messages in my standalone, I would have to include a call to tsNetInit in my script. However, I created a little test app which **doesn?t** make any tsNet calls, certainly not initialising the package, but I still get a tsNet style error, e.g. > tsneterr: (6) Could not resolve host: www.myserver.com So, what?s going on? Is tsNet now always included in a standalone, and if so, how does it get initialised? Puzzled, not for the first time. Graham From livfoss at mac.com Mon Mar 5 04:21:06 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Mar 2018 10:21:06 +0100 Subject: tsNet or not tsNet? Message-ID: <49F42A3A-2DC9-4DC0-820F-D990CDB2F9D0@mac.com> I?ve been executing this line of script in an app made on a Mac with LC 9.0.0 dp11 get URL ?http://www.myserver.com/mytextfile .txt It works fine, but I also wanted to detect what happens when the connection can't be established, so I made the command fail by switching off internet access on my machine. I got an error in ?the result?, as expected. Or at least I got one when the line was executed in the IDE, and this was a tsNet error. As I had not initialised tsNet in my script - according to the dictionary, this **must** be done before tsNet functions are used - I concluded that the IDE had done it for me. Fair enough, but I then reasoned that if I wanted to see the same kind of explicit error messages in my standalone, I would have to include a call to tsNetInit in my script. However, I created a little test app which **doesn?t** make any tsNet calls, certainly not initialising the package, but I still get a tsNet style error, e.g. > tsneterr: (6) Could not resolve host: www.myserver.com So, what?s going on? Is tsNet now always included in a standalone, and if so, how does it get initialised? Puzzled, not for the first time. Graham From warren at warrensweb.us Sun Mar 4 10:21:22 2018 From: warren at warrensweb.us (Warren Samples) Date: Sun, 4 Mar 2018 09:21:22 -0600 Subject: LC server and fonts In-Reply-To: References: Message-ID: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: > Hello list > How can I load ttf font files with LC server, at least version 7.1 > available on my on-rev account ? > Neither "revFontLoad" nor "start using font file" seem to work... > And the list of available fonts returned by "the fontNames" is quite > limited... > > Thanks in advance. > jbv > > Does on-rev run on Linux? If you create a directory called '.fonts' under your user name and install the fonts you want to use in your images in that directory, LiveCode will find them. A quick test shows this to be true using LC Server 8.1.4, but you may have to do some experimenting to get them working in a script accessed through your web server. Executing a script to show the fontnames works from the command line but without having done any real investigating, I have to admit it's not working when accessed through my server. This isn't an on-rev nor an Apache server so ymmv. If you decide to go the standalone route, you should be able to install your fonts this way to use them in the standalone. Good luck! Warren From williamdesmet at gmail.com Mon Mar 5 02:55:39 2018 From: williamdesmet at gmail.com (William de Smet) Date: Mon, 5 Mar 2018 08:55:39 +0100 Subject: Reverse 'pixelcoloring' and total amount of colors Message-ID: Hi there, This is quite a challenge for me. I an trying to build a template in which users (small children) can 'pixeldraw' something and based on the drawing the instruction will be made. The instruction is needed for other children to make the pixel drawing. The instruction is quite special. The template is a square with 49 buttons (7x7) for the coloring and 49 fields for the instruction. The coloring of the buttons is no problem. The 'reverse' coloring is the problem. I can get the amount of a colors in a row (5 x white and 2 x blue) but how do I determine on which place (in which buttons) these colors are. The first row is: 3 white - 1 blue - 2 white - 1 blue But how do I output it like: 3 - 1- 2 - 1 ? And each number needs to be in another field. --------------- on mouseup if the backgroundcolor of btn "f1" is 255,255,255 then add "1" to field "v1" end mouseup or on mouseup repeat with x=1 to 7 put "f"&x into tButton if the backgroundcolor of btn tButton is 255,255,255 then add "1" to field "v1" else add "1" to field "v2" end if end mousep ------------------- What is the best way to do this? Any pointers are welcome. To easier understand what i am trying to do, see this image: http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg greetings, William From hh at hyperhh.de Sun Mar 4 03:21:26 2018 From: hh at hyperhh.de (hh) Date: Sun, 4 Mar 2018 09:21:26 +0100 Subject: Hyphenator Message-ID: Just uploaded a LiveCode Hyphenator. The stack uses Hyphenator.js (by M. Nater, MIT licensed) in a browser widget with your input. It runs using LC 8/9 on Mac/ Win 7+10/ Ubuntu. You get as plain text 1. The hyphenated text (using the selected language patterns) displayed in a browser widget, the hyphenation based on the famous Liang-algorithm. 2. The input with the softhyphens indicated (these are editable/changeable). 3. A LC field hyphenated according to the patterns (own algorithm). So you can use the text in a browser widget OR get hyphenated text for your LC field (or both). The algorithms are very fast. [Or you use the given softhyphened words to write your own algorithm ...] The stack is made for offline use and supports currently 18 languages: cs/ Czech, da/ Danish, de/ German, el/ Greek, en-gb/ British English, en-us/ American English, es/ Spanish, fi/ Finnish, fr/French, hu/ Hungarian, it/ Italian, la/ Latin, nl/ Dutch, no/ Norwegian, pl/ Polish, pt/ Portuguese, sv/ Swedish and tr/ Turkish. Download "Hyphenator" from "Sample Stacks" (or http://livecodeshare.runrev.com/stack/868). From charles at techstrategies.com.au Mon Mar 5 06:27:49 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Mon, 5 Mar 2018 21:27:49 +1000 Subject: tsNet or not tsNet? In-Reply-To: <49F42A3A-2DC9-4DC0-820F-D990CDB2F9D0@mac.com> References: <49F42A3A-2DC9-4DC0-820F-D990CDB2F9D0@mac.com> Message-ID: Hi Graham, In commercial versions of LiveCode, the default behaviour of the Internet library (libUrl) is to include and use tsNet. It calls tsNetInit on startup so that you don?t need to do that separately. Hope that helps, Charles > On 5 Mar 2018, at 7:21 pm, Graham Samuel via use-livecode wrote: > > I?ve been executing this line of script in an app made on a Mac with LC 9.0.0 dp11 > get URL ?http://www.myserver.com/mytextfile .txt > > It works fine, but I also wanted to detect what happens when the connection can't be established, so I made the command fail by switching off internet access on my machine. I got an error in ?the result?, as expected. Or at least I got one when the line was executed in the IDE, and this was a tsNet error. As I had not initialised tsNet in my script - according to the dictionary, this **must** be done before tsNet functions are used - I concluded that the IDE had done it for me. > > Fair enough, but I then reasoned that if I wanted to see the same kind of explicit error messages in my standalone, I would have to include a call to tsNetInit in my script. However, I created a little test app which **doesn?t** make any tsNet calls, certainly not initialising the package, but I still get a tsNet style error, e.g. > >> tsneterr: (6) Could not resolve host: www.myserver.com > > So, what?s going on? Is tsNet now always included in a standalone, and if so, how does it get initialised? > > Puzzled, not for the first time. > > 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 danoldboy at gmail.com Sun Mar 4 02:04:16 2018 From: danoldboy at gmail.com (Dan Brown) Date: Sun, 4 Mar 2018 07:04:16 +0000 Subject: [Completely OT] Withdrawal symptoms from Slashdot In-Reply-To: References: Message-ID: Hacker News always has some interesting reading. The comments section for each submission can be insightful as a broad range of programmers/ engineers that work in the relevant fields share thoughts and knowledge on the topics at hand https://news.ycombinator.com/ "*Hacker News* is a social news website focusing on computer science and entrepreneurship . It is run by Paul Graham 's investment fund and startup incubator, Y Combinator . In general, content that can be submitted is defined as "anything that gratifies one's intellectual curiosity" On 4 Mar 2018 12:10 am, "Alex Tweedly via use-livecode" < use-livecode at lists.runrev.com> wrote: > Completely off topic, but I need help ;-) > > For many years now my standard "I have 30 seconds (or minutes) to fill in, > what's happening in the world" web site has been slashdot, but it seems to > be completely off the air for now. > > I'm looking for suggestions for alternates that are worth using while > waiting for a build, or just to give me some interesting. The less video, > the better :-) > > Thanks > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 4 05:48:22 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 4 Mar 2018 12:48:22 +0200 Subject: Rotating PNG images Message-ID: <076bb9fa-2643-4c16-4ee4-e5949b8c95c8@gmail.com> I have just spent/wasted 60 minutes rotating 64 PNG images in GIMP because LiveCode is incapable of rotating anything other than SVG images without a bad case of the "jaggies". Now I will have to import those 64 images into a stack and store them somewhere unseen to present inwith graphic objects . . . resulting in a considerable overhead in terms of physical storage, RAM and coding time. If GIMP (which is FREE) can rotate images of all sorts without any perceivable deterioration in image quality why can't LiveCode? Richmond. From montero.je at gmail.com Mon Mar 5 07:40:23 2018 From: montero.je at gmail.com (Jose Enrique Montero) Date: Mon, 5 Mar 2018 08:40:23 -0400 Subject: Reverse 'pixelcoloring' and total amount of colors In-Reply-To: References: Message-ID: I made a similar application, you can look, https://play.google.com/store/apps/details?id=com.kaikuse.babygrid&hl=es best regards 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < use-livecode at lists.runrev.com>: > Hi there, > > This is quite a challenge for me. > I an trying to build a template in which users (small children) can > 'pixeldraw' something and based on the drawing the instruction will be > made. > The instruction is needed for other children to make the pixel drawing. > The instruction is quite special. > > The template is a square with 49 buttons (7x7) for the coloring and 49 > fields for the instruction. > The coloring of the buttons is no problem. The 'reverse' coloring is the > problem. > I can get the amount of a colors in a row (5 x white and 2 x blue) but how > do I determine on which place (in which buttons) these colors are. > The first row is: 3 white - 1 blue - 2 white - 1 blue > But how do I output it like: 3 - 1- 2 - 1 ? And each number needs to be in > another field. > > --------------- > on mouseup > if the backgroundcolor of btn "f1" is 255,255,255 then add "1" to field > "v1" > end mouseup > > or > > on mouseup > repeat with x=1 to 7 > put "f"&x into tButton > if the backgroundcolor of btn tButton is 255,255,255 > then > add "1" to field "v1" > else > add "1" to field "v2" > end if > end mousep > > ------------------- > > What is the best way to do this? > > Any pointers are welcome. > > > To easier understand what i am trying to do, see this image: > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From williamdesmet at gmail.com Mon Mar 5 07:50:47 2018 From: williamdesmet at gmail.com (William de Smet) Date: Mon, 5 Mar 2018 13:50:47 +0100 Subject: Reverse 'pixelcoloring' and total amount of colors In-Reply-To: References: Message-ID: Thanks for your reply! Your app is the same as what I did before and that's quit easy to do. For now I want to build instruction cards based upon a pixel drawing. First you makel your drawing and then it gives you your instruction card. The other way around. My question is how to do that? groeten, William 2018-03-05 13:40 GMT+01:00 Jose Enrique Montero via use-livecode < use-livecode at lists.runrev.com>: > I made a similar application, you can look, > https://play.google.com/store/apps/details?id=com.kaikuse.babygrid&hl=es > > best regards > > > 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < > use-livecode at lists.runrev.com>: > > > Hi there, > > > > This is quite a challenge for me. > > I an trying to build a template in which users (small children) can > > 'pixeldraw' something and based on the drawing the instruction will be > > made. > > The instruction is needed for other children to make the pixel drawing. > > The instruction is quite special. > > > > The template is a square with 49 buttons (7x7) for the coloring and 49 > > fields for the instruction. > > The coloring of the buttons is no problem. The 'reverse' coloring is the > > problem. > > I can get the amount of a colors in a row (5 x white and 2 x blue) but > how > > do I determine on which place (in which buttons) these colors are. > > The first row is: 3 white - 1 blue - 2 white - 1 blue > > But how do I output it like: 3 - 1- 2 - 1 ? And each number needs to be > in > > another field. > > > > --------------- > > on mouseup > > if the backgroundcolor of btn "f1" is 255,255,255 then add "1" to field > > "v1" > > end mouseup > > > > or > > > > on mouseup > > repeat with x=1 to 7 > > put "f"&x into tButton > > if the backgroundcolor of btn tButton is 255,255,255 > > then > > add "1" to field "v1" > > else > > add "1" to field "v2" > > end if > > end mousep > > > > ------------------- > > > > What is the best way to do this? > > > > Any pointers are welcome. > > > > > > To easier understand what i am trying to do, see this image: > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > greetings, > > > > William > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Mar 5 07:53:15 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Mar 2018 13:53:15 +0100 Subject: tsNet or not tsNet? In-Reply-To: References: <49F42A3A-2DC9-4DC0-820F-D990CDB2F9D0@mac.com> Message-ID: <97E8D6CC-C4C7-41C2-92FB-C803858ABF61@mac.com> Thanks, very clear explanation! I?m using Indy (i.e Commercial) versions, so now I understand. Graham > On 5 Mar 2018, at 12:27, Charles Warwick via use-livecode wrote: > > Hi Graham, > > In commercial versions of LiveCode, the default behaviour of the Internet library (libUrl) is to include and use tsNet. > > It calls tsNetInit on startup so that you don?t need to do that separately. > > Hope that helps, > > Charles > >> On 5 Mar 2018, at 7:21 pm, Graham Samuel via use-livecode wrote: >> >> I?ve been executing this line of script in an app made on a Mac with LC 9.0.0 dp11 >> get URL ?http://www.myserver.com/mytextfile .txt >> >> It works fine, but I also wanted to detect what happens when the connection can't be established, so I made the command fail by switching off internet access on my machine. I got an error in ?the result?, as expected. Or at least I got one when the line was executed in the IDE, and this was a tsNet error. As I had not initialised tsNet in my script - according to the dictionary, this **must** be done before tsNet functions are used - I concluded that the IDE had done it for me. >> >> Fair enough, but I then reasoned that if I wanted to see the same kind of explicit error messages in my standalone, I would have to include a call to tsNetInit in my script. However, I created a little test app which **doesn?t** make any tsNet calls, certainly not initialising the package, but I still get a tsNet style error, e.g. >> >>> tsneterr: (6) Could not resolve host: www.myserver.com >> >> So, what?s going on? Is tsNet now always included in a standalone, and if so, how does it get initialised? >> >> Puzzled, not for the first time. >> >> 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 From livfoss at mac.com Mon Mar 5 07:56:12 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Mar 2018 13:56:12 +0100 Subject: Get URL anomaly Message-ID: <0F73276A-4C58-4C2C-88B1-D8F6F9FAF39C@mac.com> Thanks to Charles Warwick I now understand that when using LC Indy versions, tsNet is automatically included both in standalones and the IDE. So, there should be no real difference between doing some simple ?getting? in either environment. Perhaps there isn?t, but I have run into an anomaly that I can?t understand. As in some of my previous mails, I?m talking about having to retrieve a tiny text file from a server (and later put a modified version of it back, but let?s get one problem solved at a time) The whole thing is just a few lines of code: constant myFileOnTheServer = "www.myserver.comm/mytextfile.txt? put ?http://? & myFileOnTheServer into t1 get URL t1 if the result is empty then do stuff with ?it?, where the text file is placed ? I can make this work in the IDE every time, and can verify that the text file is intact. I can make it work in a standalone that does almost nothing more than the above, apart from filling in the odd field. BUT in a more complex real app, the exact same code which works every time in the IDE returns an empty result (indicating ?no error?), but the file is not transferred (?it? is empty). Obviously I must have done something wrong, but it doesn?t appear to be the actual coding. Can it be a timing issue? Before the code is executed in my app, there is quite a bit of looking at local files on the hard disk (this is a desktop app), but I don?t see that this could have a bearing on the issue. I am logging everything, but I just can?t see what is going wrong. It must be something I?m doing, but what? TIA Graham From livfoss at mac.com Mon Mar 5 08:04:20 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 05 Mar 2018 14:04:20 +0100 Subject: Overwriting a file on a server Message-ID: Another dumb question, I?m afraid. The dictionary says I can do put tdata into URL [some url] well, I want to put a file on my server (in this example, it?s a text file) to replace one of the same name. If I just try to steamroller it by ignoring the existing file, I get a ?405? error (forbidden method, I think). If I use an FTP client like Transmit, I get a warning about overwriting the file and a manual override. How can I grow my own, by detecting the existing file and then overwriting it anyway? Should I delete the existing file as a separate operation? How can I be sure I have enough permission to do so? I feel stupid asking all these questions - my only excuse is that LC has made it look sooo simple that I actually thought it was simple. TIA for any advice Graham From panos.merakos at livecode.com Mon Mar 5 09:01:39 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 5 Mar 2018 14:01:39 +0000 Subject: [ANN] This Week in LiveCode 119 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #119 here: https://goo.gl/nHi73d This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From bonnmike at gmail.com Mon Mar 5 09:59:55 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 5 Mar 2018 07:59:55 -0700 Subject: LC server and fonts In-Reply-To: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> Message-ID: With on-rev, I put up this script..
" & cr end repeat ?> And it works fine, with the exception of fonts with a - in the name. All of them are Hershey fonts, so not sure if its the font family that is broken, or the dashes causing the issue. If you have a ttf font file to use, you can probably put it on your server next to your script and: load font file "nameofyourfont.ttf" and then set the textfont to "nameofyourfont" and it will likely work. To see my script in action, check here: http://guidezone.info/fonttest.lc On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via use-livecode < use-livecode at lists.runrev.com> wrote: > On 03/02/2018 04:14 AM, jbv via use-livecode wrote: > >> Hello list >> How can I load ttf font files with LC server, at least version 7.1 >> available on my on-rev account ? >> Neither "revFontLoad" nor "start using font file" seem to work... >> And the list of available fonts returned by "the fontNames" is quite >> limited... >> >> Thanks in advance. >> jbv >> >> >> > Does on-rev run on Linux? If you create a directory called '.fonts' under > your user name and install the fonts you want to use in your images in that > directory, LiveCode will find them. > > A quick test shows this to be true using LC Server 8.1.4, but you may have > to do some experimenting to get them working in a script accessed through > your web server. Executing a script to show the fontnames works from the > command line but without having done any real investigating, I have to > admit it's not working when accessed through my server. This isn't an > on-rev nor an Apache server so ymmv. If you decide to go the standalone > route, you should be able to install your fonts this way to use them in the > standalone. > > Good luck! > > Warren > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Mar 5 10:10:25 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 5 Mar 2018 08:10:25 -0700 Subject: Reverse 'pixelcoloring' and total amount of colors In-Reply-To: References: Message-ID: If you want to know which "pixel" is on in a row, you could treat them as binary bits. Farthest right in a row is bit 1, next to the left is bit 2.. So your buttons could be 0 0 1 0 1 0 1 64 32 16 8 4 2 1 for a total of 21 which would then tell you the "bit patteren" of your row. Not fully awake yet, so if there is anything wrong with my example, hopefully it still makes sense. On Mon, Mar 5, 2018 at 5:50 AM, William de Smet via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks for your reply! > Your app is the same as what I did before and that's quit easy to do. > > For now I want to build instruction cards based upon a pixel drawing. > First you makel your drawing and then it gives you your instruction card. > The other way around. > > My question is how to do that? > > > > groeten, > > William > > > > 2018-03-05 13:40 GMT+01:00 Jose Enrique Montero via use-livecode < > use-livecode at lists.runrev.com>: > > > I made a similar application, you can look, > > https://play.google.com/store/apps/details?id=com.kaikuse.babygrid&hl=es > > > > best regards > > > > > > 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < > > use-livecode at lists.runrev.com>: > > > > > Hi there, > > > > > > This is quite a challenge for me. > > > I an trying to build a template in which users (small children) can > > > 'pixeldraw' something and based on the drawing the instruction will be > > > made. > > > The instruction is needed for other children to make the pixel drawing. > > > The instruction is quite special. > > > > > > The template is a square with 49 buttons (7x7) for the coloring and 49 > > > fields for the instruction. > > > The coloring of the buttons is no problem. The 'reverse' coloring is > the > > > problem. > > > I can get the amount of a colors in a row (5 x white and 2 x blue) but > > how > > > do I determine on which place (in which buttons) these colors are. > > > The first row is: 3 white - 1 blue - 2 white - 1 blue > > > But how do I output it like: 3 - 1- 2 - 1 ? And each number needs to be > > in > > > another field. > > > > > > --------------- > > > on mouseup > > > if the backgroundcolor of btn "f1" is 255,255,255 then add "1" to field > > > "v1" > > > end mouseup > > > > > > or > > > > > > on mouseup > > > repeat with x=1 to 7 > > > put "f"&x into tButton > > > if the backgroundcolor of btn tButton is 255,255,255 > > > then > > > add "1" to field "v1" > > > else > > > add "1" to field "v2" > > > end if > > > end mousep > > > > > > ------------------- > > > > > > What is the best way to do this? > > > > > > Any pointers are welcome. > > > > > > > > > To easier understand what i am trying to do, see this image: > > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > > > > > greetings, > > > > > > William > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Mar 5 10:22:12 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 5 Mar 2018 08:22:12 -0700 Subject: Rotating PNG images In-Reply-To: <076bb9fa-2643-4c16-4ee4-e5949b8c95c8@gmail.com> References: <076bb9fa-2643-4c16-4ee4-e5949b8c95c8@gmail.com> Message-ID: if you set the resizequality of your images to "best" prior to rotating, does it help? It should make quite a difference. On Sun, Mar 4, 2018 at 3:48 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > I have just spent/wasted 60 minutes rotating 64 PNG images in GIMP > because LiveCode is incapable of rotating anything other than SVG images > without a bad case of the "jaggies". > > Now I will have to import those 64 images into a stack and store them > somewhere > unseen to present inwith graphic objects . . . resulting in a > considerable overhead > in terms of physical storage, > RAM and coding time. > > If GIMP (which is FREE) can rotate images of all sorts without any > perceivable > deterioration in image quality why can't 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 williamdesmet at gmail.com Mon Mar 5 10:28:49 2018 From: williamdesmet at gmail.com (William de Smet) Date: Mon, 5 Mar 2018 16:28:49 +0100 Subject: Reverse 'pixelcoloring' and total amount of colors In-Reply-To: References: Message-ID: Hi Mike, Thanks for your answer! The exercises are actually binary exercises but the children don't know. All they know is a 'puzzle' to solve with pixelcoloring. Funny I can solve it this way :-) Still figuring how to do it because the children instruction is not just binary writing as you explained it. Did you see my picture? http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg greetings. William 2018-03-05 16:10 GMT+01:00 Mike Bonner via use-livecode < use-livecode at lists.runrev.com>: > If you want to know which "pixel" is on in a row, you could treat them as > binary bits. Farthest right in a row is bit 1, next to the left is bit 2.. > > So your buttons could be 0 0 1 0 1 0 1 > 64 32 16 8 4 2 1 > for a total of 21 which would then tell you the "bit patteren" of your row. > > Not fully awake yet, so if there is anything wrong with my example, > hopefully it still makes sense. > > On Mon, Mar 5, 2018 at 5:50 AM, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Thanks for your reply! > > Your app is the same as what I did before and that's quit easy to do. > > > > For now I want to build instruction cards based upon a pixel drawing. > > First you makel your drawing and then it gives you your instruction card. > > The other way around. > > > > My question is how to do that? > > > > > > > > groeten, > > > > William > > > > > > > > 2018-03-05 13:40 GMT+01:00 Jose Enrique Montero via use-livecode < > > use-livecode at lists.runrev.com>: > > > > > I made a similar application, you can look, > > > https://play.google.com/store/apps/details?id=com.kaikuse. > babygrid&hl=es > > > > > > best regards > > > > > > > > > 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < > > > use-livecode at lists.runrev.com>: > > > > > > > Hi there, > > > > > > > > This is quite a challenge for me. > > > > I an trying to build a template in which users (small children) can > > > > 'pixeldraw' something and based on the drawing the instruction will > be > > > > made. > > > > The instruction is needed for other children to make the pixel > drawing. > > > > The instruction is quite special. > > > > > > > > The template is a square with 49 buttons (7x7) for the coloring and > 49 > > > > fields for the instruction. > > > > The coloring of the buttons is no problem. The 'reverse' coloring is > > the > > > > problem. > > > > I can get the amount of a colors in a row (5 x white and 2 x blue) > but > > > how > > > > do I determine on which place (in which buttons) these colors are. > > > > The first row is: 3 white - 1 blue - 2 white - 1 blue > > > > But how do I output it like: 3 - 1- 2 - 1 ? And each number needs to > be > > > in > > > > another field. > > > > > > > > --------------- > > > > on mouseup > > > > if the backgroundcolor of btn "f1" is 255,255,255 then add "1" to > field > > > > "v1" > > > > end mouseup > > > > > > > > or > > > > > > > > on mouseup > > > > repeat with x=1 to 7 > > > > put "f"&x into tButton > > > > if the backgroundcolor of btn tButton is 255,255,255 > > > > then > > > > add "1" to field "v1" > > > > else > > > > add "1" to field "v2" > > > > end if > > > > end mousep > > > > > > > > ------------------- > > > > > > > > What is the best way to do this? > > > > > > > > Any pointers are welcome. > > > > > > > > > > > > To easier understand what i am trying to do, see this image: > > > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > > > > > > > > > greetings, > > > > > > > > William > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 5 10:36:00 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 5 Mar 2018 17:36:00 +0200 Subject: Rotating PNG images In-Reply-To: References: <076bb9fa-2643-4c16-4ee4-e5949b8c95c8@gmail.com> Message-ID: Not much. Luckily I am building images where the part that needs rotating is monochrome so that can be rendeered as an SVG and imported into a widget. This is, however, quite beside the point . . . The inability of LiveCode to do something that nearly every other program seems to manage "easily". Richmond. On 5/3/2018 5:22 pm, Mike Bonner via use-livecode wrote: > if you set the resizequality of your images to "best" prior to rotating, > does it help? It should make quite a difference. > > On Sun, Mar 4, 2018 at 3:48 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I have just spent/wasted 60 minutes rotating 64 PNG images in GIMP >> because LiveCode is incapable of rotating anything other than SVG images >> without a bad case of the "jaggies". >> >> Now I will have to import those 64 images into a stack and store them >> somewhere >> unseen to present inwith graphic objects . . . resulting in a >> considerable overhead >> in terms of physical storage, >> RAM and coding time. >> >> If GIMP (which is FREE) can rotate images of all sorts without any >> perceivable >> deterioration in image quality why can't 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 warren at warrensweb.us Mon Mar 5 11:02:40 2018 From: warren at warrensweb.us (Warren Samples) Date: Mon, 5 Mar 2018 10:02:40 -0600 Subject: LC server and fonts In-Reply-To: References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> Message-ID: <060faf95-c840-21a5-58ce-95be84f0ce1e@warrensweb.us> On 03/05/2018 08:59 AM, Mike Bonner via use-livecode wrote: > If you create a directory called '.fonts' under > your user name and install the fonts you want to use in your images in that > directory, LiveCode will find them. > > A quick test shows this to be true using LC Server 8.1.4, but you may have > to do some experimenting to get them working in a script accessed through > your web server. Executing a script to show the fontnames works from the > command line but without having done any real investigating, I have to > admit it's not working when accessed through my server. This may need clarification. Getting the fontnames works always but the list returned when doing it from a served page doesn't include the fonts in ~/.fonts while running the same script from the command line using ssh does show those fonts. I don't know why and didn't investigate any further. Warren From hh at hyperhh.de Mon Mar 5 11:30:01 2018 From: hh at hyperhh.de (hh) Date: Mon, 5 Mar 2018 17:30:01 +0100 Subject: Rotating PNG images Message-ID: > Richmond M. wrote: > Not much. > Luckily I am building images where the part that needs > rotating is monochrome so that can > be rendered as an SVG and imported into a widget. > This is, however, quite beside the point . . . > The inability of LiveCode to do something that nearly > every other program seems to manage "easily". An image can't be rendered as an SVG. Or do you mean that it is "traced" to an SVG? This is non-trivial (i.e. not "Not much"). The "nearly every other programs" (which else than Inkscape and Gimp?) can't do it "easily", they all use "Potrace". That can LC also easily do. I have already implemented it. p.s. Are you really looking for PNGtoSVG in order to rotate an image? From bonnmike at gmail.com Mon Mar 5 11:41:04 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 5 Mar 2018 09:41:04 -0700 Subject: Reverse 'pixelcoloring' and total amount of colors In-Reply-To: References: Message-ID: Ah, I understand better now. Something like this should work. Its just a quicky, no time to really test before my doc appointment. on mouseup local tInstructions -- gotta have this cause a non declared isn't seen as empty repeat with i = 1 to 4 switch case the backgroundcolor of button ("b" & i) is "255,255,255" if tInstructions is empty then put "W0" into tInstructions if char -2 of tInstructions is not "W" then put comma & "W0" after tInstructions add 1 to char -1 of tInstructions break case the backgroundcolor of button ("b" & i) is "0,0,255" if tInstructions is empty then put "B0" into tInstructions if char -2 of tInstructions is not "B" then put comma & "B0" after tInstructions add 1 to char -1 of tInstructions break default if tInstructions is empty then put "E" into tInstructions else put comma & "E" after tInstructions end if end switch end repeat put tInstructions end mouseup On Mon, Mar 5, 2018 at 8:28 AM, William de Smet via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike, > > Thanks for your answer! > The exercises are actually binary exercises but the children don't know. > All they know is a 'puzzle' to solve with pixelcoloring. > Funny I can solve it this way :-) > Still figuring how to do it because the children instruction is not just > binary writing as you explained it. > > Did you see my picture? > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > greetings. > > William > > > > 2018-03-05 16:10 GMT+01:00 Mike Bonner via use-livecode < > use-livecode at lists.runrev.com>: > > > If you want to know which "pixel" is on in a row, you could treat them as > > binary bits. Farthest right in a row is bit 1, next to the left is bit > 2.. > > > > So your buttons could be 0 0 1 0 1 0 1 > > 64 32 16 8 4 2 1 > > for a total of 21 which would then tell you the "bit patteren" of your > row. > > > > Not fully awake yet, so if there is anything wrong with my example, > > hopefully it still makes sense. > > > > On Mon, Mar 5, 2018 at 5:50 AM, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Thanks for your reply! > > > Your app is the same as what I did before and that's quit easy to do. > > > > > > For now I want to build instruction cards based upon a pixel drawing. > > > First you makel your drawing and then it gives you your instruction > card. > > > The other way around. > > > > > > My question is how to do that? > > > > > > > > > > > > groeten, > > > > > > William > > > > > > > > > > > > 2018-03-05 13:40 GMT+01:00 Jose Enrique Montero via use-livecode < > > > use-livecode at lists.runrev.com>: > > > > > > > I made a similar application, you can look, > > > > https://play.google.com/store/apps/details?id=com.kaikuse. > > babygrid&hl=es > > > > > > > > best regards > > > > > > > > > > > > 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < > > > > use-livecode at lists.runrev.com>: > > > > > > > > > Hi there, > > > > > > > > > > This is quite a challenge for me. > > > > > I an trying to build a template in which users (small children) can > > > > > 'pixeldraw' something and based on the drawing the instruction will > > be > > > > > made. > > > > > The instruction is needed for other children to make the pixel > > drawing. > > > > > The instruction is quite special. > > > > > > > > > > The template is a square with 49 buttons (7x7) for the coloring and > > 49 > > > > > fields for the instruction. > > > > > The coloring of the buttons is no problem. The 'reverse' coloring > is > > > the > > > > > problem. > > > > > I can get the amount of a colors in a row (5 x white and 2 x blue) > > but > > > > how > > > > > do I determine on which place (in which buttons) these colors are. > > > > > The first row is: 3 white - 1 blue - 2 white - 1 blue > > > > > But how do I output it like: 3 - 1- 2 - 1 ? And each number needs > to > > be > > > > in > > > > > another field. > > > > > > > > > > --------------- > > > > > on mouseup > > > > > if the backgroundcolor of btn "f1" is 255,255,255 then add "1" to > > field > > > > > "v1" > > > > > end mouseup > > > > > > > > > > or > > > > > > > > > > on mouseup > > > > > repeat with x=1 to 7 > > > > > put "f"&x into tButton > > > > > if the backgroundcolor of btn tButton is 255,255,255 > > > > > then > > > > > add "1" to field "v1" > > > > > else > > > > > add "1" to field "v2" > > > > > end if > > > > > end mousep > > > > > > > > > > ------------------- > > > > > > > > > > What is the best way to do this? > > > > > > > > > > Any pointers are welcome. > > > > > > > > > > > > > > > To easier understand what i am trying to do, see this image: > > > > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > > > > > > > > > > > > > greetings, > > > > > > > > > > William > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode at lists.runrev.com > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > subscription preferences: > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Mon Mar 5 11:49:13 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 5 Mar 2018 08:49:13 -0800 Subject: [Completely OT] Withdrawal symptoms from Slashdot In-Reply-To: <5A9B730F.1060009@pobox.com> References: <5A9B730F.1060009@pobox.com> Message-ID: <9826bea6-8dac-1445-a0d5-6238e4ea8cf0@sonic.net> On 03/03/2018 08:16 PM, Rodney Somerstein via use-livecode wrote: > Slashdot is definitely still there. Make sure you are going to > https://slashdot.org . I suppose they may have been having a problem the > last time you tried the site, but it is definitely up and running right > now. Slashdot was having some hiccups transferring to new servers. They seem to have recovered nicely now. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Mon Mar 5 11:33:16 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 5 Mar 2018 08:33:16 -0800 Subject: Rotating PNG images In-Reply-To: References: Message-ID: <0e441947-456e-95d0-d451-af24fe658bde@fourthworld.com> When testing here on Ubuntu 14.04 images rotated at 90, 180, or 270 look very good. How can I reproduce what you're seeing? Also, have you tried setting the angle property instead? -- 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 Mon Mar 5 13:33:37 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 5 Mar 2018 20:33:37 +0200 Subject: Rotating PNG images In-Reply-To: References: Message-ID: <498e8b47-429b-17a2-f02d-ef34a90b2c26@gmail.com> Erm . . . Yes: I trace the monochrome images in Inkscape and then import them into SVG widgets using my homegrown stack. On 5/3/2018 6:30 pm, hh via use-livecode wrote: >> Richmond M. wrote: >> Not much. >> Luckily I am building images where the part that needs >> rotating is monochrome so that can >> be rendered as an SVG and imported into a widget. >> This is, however, quite beside the point . . . >> The inability of LiveCode to do something that nearly >> every other program seems to manage "easily". > An image can't be rendered as an SVG. Or do you mean that it > is "traced" to an SVG? This is non-trivial (i.e. not "Not much"). > The "nearly every other programs" (which else than Inkscape and > Gimp?) can't do it "easily", they all use "Potrace". > > That can LC also easily do. I have already implemented it. Aha! And is that publically available? > > p.s. Are you really looking for PNGtoSVG in order to rotate an image? No, I'm not. Richmond. From richmondmathewson at gmail.com Mon Mar 5 13:34:31 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 5 Mar 2018 20:34:31 +0200 Subject: Rotating PNG images In-Reply-To: <0e441947-456e-95d0-d451-af24fe658bde@fourthworld.com> References: <0e441947-456e-95d0-d451-af24fe658bde@fourthworld.com> Message-ID: <5d2c5251-817f-4a3b-32f9-77140adef3df@gmail.com> On 5/3/2018 6:33 pm, Richard Gaskin via use-livecode wrote: > When testing here on Ubuntu 14.04 images rotated at 90, 180, or 270 > look very good. > > How can I reproduce what you're seeing? > > Also, have you tried setting the angle property instead? > There's no "instead", I set the angle on PNG images and they deteriorate. Richmond. From jbv at souslelogo.com Mon Mar 5 13:39:48 2018 From: jbv at souslelogo.com (jbv) Date: Mon, 5 Mar 2018 19:39:48 +0100 Subject: LC server and fonts In-Reply-To: References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> Message-ID: <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> Hi Mike, Thanks for your reply. Yes, I managed to set the textfont of a btn or fld to one of the fonts available in the fontnames, but I still can't figure how to use any other ttf font... load font file "nameofyourfont.ttf" -> returns an error I tried load URL "nameofyourfont.ttf", it works, but then the textfont property isn't updated... On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode wrote: > With on-rev, I put up this script.. > > > create button "mybtn" > > repeat for each line tLIne in the fontnames -- will make 1 png per font > > set the label of btn "mybtn" to tLine set the textfont of button "mybtn" > to tLine set the width of button "mybtn" to the formattedwidth of button > "mybtn" + 5 > > > export snapshot from button "mybtn" to file (tLine & ".png") as PNG > > put the textfont of button "mybtn" && " & quote & ">
" & cr > end repeat ?> > > > And it works fine, with the exception of fonts with a - in the name. All > of them are Hershey fonts, so not sure if its the font family that is > broken, or the dashes causing the issue. > > If you have a ttf font file to use, you can probably put it on your > server next to your script and: load font file "nameofyourfont.ttf" and then > set the textfont to "nameofyourfont" and it will likely work. > > To see my script in action, check here: > http://guidezone.info/fonttest.lc > > > On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: >> >> >>> Hello list >>> How can I load ttf font files with LC server, at least version 7.1 >>> available on my on-rev account ? Neither "revFontLoad" nor "start using >>> font file" seem to work... And the list of available fonts returned by >>> "the fontNames" is quite >>> limited... >>> >>> Thanks in advance. >>> jbv >>> >>> >>> >> Does on-rev run on Linux? If you create a directory called '.fonts' >> under your user name and install the fonts you want to use in your >> images in that directory, LiveCode will find them. >> >> A quick test shows this to be true using LC Server 8.1.4, but you may >> have to do some experimenting to get them working in a script accessed >> through your web server. Executing a script to show the fontnames works >> from the command line but without having done any real investigating, I >> have to admit it's not working when accessed through my server. This >> isn't an on-rev nor an Apache server so ymmv. If you decide to go the >> standalone route, you should be able to install your fonts this way to >> use them in the standalone. >> >> Good luck! >> >> >> Warren >> >> >> >> _______________________________________________ >> use-livecode mailing list use-livecode at lists.runrev.com Please visit this >> url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list use-livecode at lists.runrev.com Please visit this > url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From williamdesmet at gmail.com Mon Mar 5 14:13:26 2018 From: williamdesmet at gmail.com (William de Smet) Date: Mon, 5 Mar 2018 20:13:26 +0100 Subject: Reverse 'pixelcoloring' and total amount of colors In-Reply-To: References: Message-ID: Thanks Mike that helped a lot! I extended your script with this: ---- repeat with x= 1 to the number of items of tInstructions put char 2 of item x of tInstructions into tChar put "v"&x into tNaam set the label of btn tNaam to tChar set the showname of btn tNaam to true put char 1 of item x of tInstructions into tLetter if tLetter is "W" then set the backgroundcolor of btn tNaam to 255,255,255 else set the backgroundcolor of btn tNaam to 90,200,250 end if end repeat --- Now it almost looks like this: http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg One thing left: If the last button(s) is/are white it doesn't have to be shown on the instruction. So how do I leave it out? When I add this it almost works: -- if char 1 of the last item of tInstructions is "W" then put the last item of tInstructions into fld "instructions2" delete the last item of tInstructions -- This fails if the last item is the first and only item (when there are 7 white buttons). Any thoughts on this? greetings, William 2018-03-05 17:41 GMT+01:00 Mike Bonner via use-livecode < use-livecode at lists.runrev.com>: > Ah, I understand better now. > Something like this should work. Its just a quicky, no time to really test > before my doc appointment. > > > on mouseup > local tInstructions -- gotta have this cause a non declared isn't seen as > empty > > repeat with i = 1 to 4 > switch > case the backgroundcolor of button ("b" & i) is "255,255,255" > if tInstructions is empty then put "W0" into tInstructions > if char -2 of tInstructions is not "W" then put comma & "W0" > after tInstructions > add 1 to char -1 of tInstructions > break > case the backgroundcolor of button ("b" & i) is "0,0,255" > if tInstructions is empty then put "B0" into tInstructions > if char -2 of tInstructions is not "B" then put comma & "B0" > after tInstructions > add 1 to char -1 of tInstructions > break > default > if tInstructions is empty then > put "E" into tInstructions > else > put comma & "E" after tInstructions > end if > end switch > end repeat > > put tInstructions > end mouseup > > On Mon, Mar 5, 2018 at 8:28 AM, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi Mike, > > > > Thanks for your answer! > > The exercises are actually binary exercises but the children don't know. > > All they know is a 'puzzle' to solve with pixelcoloring. > > Funny I can solve it this way :-) > > Still figuring how to do it because the children instruction is not just > > binary writing as you explained it. > > > > Did you see my picture? > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > greetings. > > > > William > > > > > > > > 2018-03-05 16:10 GMT+01:00 Mike Bonner via use-livecode < > > use-livecode at lists.runrev.com>: > > > > > If you want to know which "pixel" is on in a row, you could treat them > as > > > binary bits. Farthest right in a row is bit 1, next to the left is bit > > 2.. > > > > > > So your buttons could be 0 0 1 0 1 0 1 > > > 64 32 16 8 4 2 1 > > > for a total of 21 which would then tell you the "bit patteren" of your > > row. > > > > > > Not fully awake yet, so if there is anything wrong with my example, > > > hopefully it still makes sense. > > > > > > On Mon, Mar 5, 2018 at 5:50 AM, William de Smet via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > Thanks for your reply! > > > > Your app is the same as what I did before and that's quit easy to do. > > > > > > > > For now I want to build instruction cards based upon a pixel drawing. > > > > First you makel your drawing and then it gives you your instruction > > card. > > > > The other way around. > > > > > > > > My question is how to do that? > > > > > > > > > > > > > > > > groeten, > > > > > > > > William > > > > > > > > > > > > > > > > 2018-03-05 13:40 GMT+01:00 Jose Enrique Montero via use-livecode < > > > > use-livecode at lists.runrev.com>: > > > > > > > > > I made a similar application, you can look, > > > > > https://play.google.com/store/apps/details?id=com.kaikuse. > > > babygrid&hl=es > > > > > > > > > > best regards > > > > > > > > > > > > > > > 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < > > > > > use-livecode at lists.runrev.com>: > > > > > > > > > > > Hi there, > > > > > > > > > > > > This is quite a challenge for me. > > > > > > I an trying to build a template in which users (small children) > can > > > > > > 'pixeldraw' something and based on the drawing the instruction > will > > > be > > > > > > made. > > > > > > The instruction is needed for other children to make the pixel > > > drawing. > > > > > > The instruction is quite special. > > > > > > > > > > > > The template is a square with 49 buttons (7x7) for the coloring > and > > > 49 > > > > > > fields for the instruction. > > > > > > The coloring of the buttons is no problem. The 'reverse' coloring > > is > > > > the > > > > > > problem. > > > > > > I can get the amount of a colors in a row (5 x white and 2 x > blue) > > > but > > > > > how > > > > > > do I determine on which place (in which buttons) these colors > are. > > > > > > The first row is: 3 white - 1 blue - 2 white - 1 blue > > > > > > But how do I output it like: 3 - 1- 2 - 1 ? And each number needs > > to > > > be > > > > > in > > > > > > another field. > > > > > > > > > > > > --------------- > > > > > > on mouseup > > > > > > if the backgroundcolor of btn "f1" is 255,255,255 then add "1" to > > > field > > > > > > "v1" > > > > > > end mouseup > > > > > > > > > > > > or > > > > > > > > > > > > on mouseup > > > > > > repeat with x=1 to 7 > > > > > > put "f"&x into tButton > > > > > > if the backgroundcolor of btn tButton is 255,255,255 > > > > > > then > > > > > > add "1" to field "v1" > > > > > > else > > > > > > add "1" to field "v2" > > > > > > end if > > > > > > end mousep > > > > > > > > > > > > ------------------- > > > > > > > > > > > > What is the best way to do this? > > > > > > > > > > > > Any pointers are welcome. > > > > > > > > > > > > > > > > > > To easier understand what i am trying to do, see this image: > > > > > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > > > > > > > > > > > > > > > > > greetings, > > > > > > > > > > > > William > > > > > > _______________________________________________ > > > > > > use-livecode mailing list > > > > > > use-livecode at lists.runrev.com > > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > > subscription preferences: > > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode at lists.runrev.com > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > subscription preferences: > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From thatkeith at mac.com Mon Mar 5 14:43:28 2018 From: thatkeith at mac.com (Keith Martin) Date: Mon, 05 Mar 2018 19:43:28 +0000 Subject: Rotating PNG images In-Reply-To: <5d2c5251-817f-4a3b-32f9-77140adef3df@gmail.com> References: <0e441947-456e-95d0-d451-af24fe658bde@fourthworld.com> <5d2c5251-817f-4a3b-32f9-77140adef3df@gmail.com> Message-ID: <5F315BF3-4441-485D-B0B1-DB7B6E13C7C8@mac.com> On 5 Mar 2018, at 18:34, Richmond Mathewson via use-livecode wrote: > I set the angle on PNG images and they deteriorate. For clarity, are you setting the angle to something other than 90/180/270 degrees? k From jiml at netrin.com Mon Mar 5 15:20:05 2018 From: jiml at netrin.com (Jim Lambert) Date: Mon, 5 Mar 2018 12:20:05 -0800 Subject: Rotating PNG images In-Reply-To: References: Message-ID: <4F15333C-3E6C-4867-9AF8-8C6D64F3042F@netrin.com> Richmond wrote: > LiveCode is incapable of rotating anything other than SVG images > without a bad case of the "jaggies". RichardG wrote: > have you tried setting the angle property instead? Richmond wrote: > I set the angle on PNG images and they deteriorate. I find that rotate image 1 by 13 will often produce jaggies even if resize quality is best. And the distortion increases with every iteration. However, if find that set the angle of image 1 to 13 never deteriorates the image. You can do the following all the livelong day without any jaggies in the image. local ang on spin repeat forever add 13 to ang set the angle of image 1 to ang if the commandKey is down then set the angle of image 1 to 0 exit spin end if end repeat end spin Jim Lambert From richmondmathewson at gmail.com Mon Mar 5 15:26:17 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 5 Mar 2018 22:26:17 +0200 Subject: Rotating PNG images In-Reply-To: <5F315BF3-4441-485D-B0B1-DB7B6E13C7C8@mac.com> References: <0e441947-456e-95d0-d451-af24fe658bde@fourthworld.com> <5d2c5251-817f-4a3b-32f9-77140adef3df@gmail.com> <5F315BF3-4441-485D-B0B1-DB7B6E13C7C8@mac.com> Message-ID: No. All fairly pedestrian stuff. On 5/3/2018 9:43 pm, Keith Martin via use-livecode wrote: > On 5 Mar 2018, at 18:34, Richmond Mathewson via use-livecode wrote: > >> I set the angle on PNG images and they deteriorate. > > For clarity, are you setting the angle to something other than > 90/180/270 degrees? > > 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 From bonnmike at gmail.com Mon Mar 5 15:28:22 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 5 Mar 2018 13:28:22 -0700 Subject: LC server and fonts In-Reply-To: <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> Message-ID: Hmm. Not sure what to do about loading a fontfile then. Out of curiosity, what is the error? On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike, > Thanks for your reply. > > Yes, I managed to set the textfont of a btn or fld to one of the fonts > available in the fontnames, but I still can't figure how to use any > other ttf font... > load font file "nameofyourfont.ttf" -> returns an error > I tried load URL "nameofyourfont.ttf", it works, but then the textfont > property isn't updated... > > On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode wrote: > > With on-rev, I put up this script.. > > > > > > > create button "mybtn" > > > > repeat for each line tLIne in the fontnames -- will make 1 png per font > > > > set the label of btn "mybtn" to tLine set the textfont of button "mybtn" > > to tLine set the width of button "mybtn" to the formattedwidth of button > > "mybtn" + 5 > > > > > > export snapshot from button "mybtn" to file (tLine & ".png") as PNG > > > > put the textfont of button "mybtn" && " > & quote & ">
" & cr > > end repeat ?> > > > > > > And it works fine, with the exception of fonts with a - in the name. All > > of them are Hershey fonts, so not sure if its the font family that is > > broken, or the dashes causing the issue. > > > > If you have a ttf font file to use, you can probably put it on your > > server next to your script and: load font file "nameofyourfont.ttf" and > then > > set the textfont to "nameofyourfont" and it will likely work. > > > > To see my script in action, check here: > > http://guidezone.info/fonttest.lc > > > > > > On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: > >> > >> > >>> Hello list > >>> How can I load ttf font files with LC server, at least version 7.1 > >>> available on my on-rev account ? Neither "revFontLoad" nor "start using > >>> font file" seem to work... And the list of available fonts returned by > >>> "the fontNames" is quite > >>> limited... > >>> > >>> Thanks in advance. > >>> jbv > >>> > >>> > >>> > >> Does on-rev run on Linux? If you create a directory called '.fonts' > >> under your user name and install the fonts you want to use in your > >> images in that directory, LiveCode will find them. > >> > >> A quick test shows this to be true using LC Server 8.1.4, but you may > >> have to do some experimenting to get them working in a script accessed > >> through your web server. Executing a script to show the fontnames works > >> from the command line but without having done any real investigating, I > >> have to admit it's not working when accessed through my server. This > >> isn't an on-rev nor an Apache server so ymmv. If you decide to go the > >> standalone route, you should be able to install your fonts this way to > >> use them in the standalone. > >> > >> Good luck! > >> > >> > >> Warren > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > >> url to subscribe, unsubscribe and manage your subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > > _______________________________________________ > > use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > > url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Mar 5 15:37:58 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 5 Mar 2018 13:37:58 -0700 Subject: Reverse 'pixelcoloring' and total amount of colors In-Reply-To: References: Message-ID: Hmm. In this case, you know the condition of failure, so if everything else is working as you need, i'd just check for that condition and act accordingly.. if char 1 of the last item of tInstructions is "W" and the number of items of tInstructions > 1 then.. Do you want tInstructions to be empty in the case of 7 white squares? And W7 to be put into field instructions2? Either way.. if there is only 1 item in tInstructions, and char 1 of tInstructions is "W" then put whatever into field "instructions2" that you need put empty into tInstructions else put whatever into field "instructions2" that you need delete item -1 of tInstructions end if Not sure what end results you want, or how if fails, but maybe something ^ there will help. On Mon, Mar 5, 2018 at 12:13 PM, William de Smet via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Mike that helped a lot! > I extended your script with this: > > ---- > repeat with x= 1 to the number of items of tInstructions > put char 2 of item x of tInstructions into tChar > put "v"&x into tNaam > set the label of btn tNaam to tChar > set the showname of btn tNaam to true > put char 1 of item x of tInstructions into tLetter > if tLetter is "W" > then > set the backgroundcolor of btn tNaam to 255,255,255 > else > set the backgroundcolor of btn tNaam to 90,200,250 > end if > end repeat > --- > > Now it almost looks like this: > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > One thing left: > If the last button(s) is/are white it doesn't have to be shown on the > instruction. > So how do I leave it out? > When I add this it almost works: > -- > if char 1 of the last item of tInstructions is "W" > then > put the last item of tInstructions into fld "instructions2" > delete the last item of tInstructions > -- > This fails if the last item is the first and only item (when there are 7 > white buttons). > Any thoughts on this? > > > > greetings, > > William > > > > 2018-03-05 17:41 GMT+01:00 Mike Bonner via use-livecode < > use-livecode at lists.runrev.com>: > > > Ah, I understand better now. > > Something like this should work. Its just a quicky, no time to really > test > > before my doc appointment. > > > > > > on mouseup > > local tInstructions -- gotta have this cause a non declared isn't seen as > > empty > > > > repeat with i = 1 to 4 > > switch > > case the backgroundcolor of button ("b" & i) is "255,255,255" > > if tInstructions is empty then put "W0" into tInstructions > > if char -2 of tInstructions is not "W" then put comma & "W0" > > after tInstructions > > add 1 to char -1 of tInstructions > > break > > case the backgroundcolor of button ("b" & i) is "0,0,255" > > if tInstructions is empty then put "B0" into tInstructions > > if char -2 of tInstructions is not "B" then put comma & "B0" > > after tInstructions > > add 1 to char -1 of tInstructions > > break > > default > > if tInstructions is empty then > > put "E" into tInstructions > > else > > put comma & "E" after tInstructions > > end if > > end switch > > end repeat > > > > put tInstructions > > end mouseup > > > > On Mon, Mar 5, 2018 at 8:28 AM, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Hi Mike, > > > > > > Thanks for your answer! > > > The exercises are actually binary exercises but the children don't > know. > > > All they know is a 'puzzle' to solve with pixelcoloring. > > > Funny I can solve it this way :-) > > > Still figuring how to do it because the children instruction is not > just > > > binary writing as you explained it. > > > > > > Did you see my picture? > > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > > greetings. > > > > > > William > > > > > > > > > > > > 2018-03-05 16:10 GMT+01:00 Mike Bonner via use-livecode < > > > use-livecode at lists.runrev.com>: > > > > > > > If you want to know which "pixel" is on in a row, you could treat > them > > as > > > > binary bits. Farthest right in a row is bit 1, next to the left is > bit > > > 2.. > > > > > > > > So your buttons could be 0 0 1 0 1 0 1 > > > > 64 32 16 8 4 2 1 > > > > for a total of 21 which would then tell you the "bit patteren" of > your > > > row. > > > > > > > > Not fully awake yet, so if there is anything wrong with my example, > > > > hopefully it still makes sense. > > > > > > > > On Mon, Mar 5, 2018 at 5:50 AM, William de Smet via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > Thanks for your reply! > > > > > Your app is the same as what I did before and that's quit easy to > do. > > > > > > > > > > For now I want to build instruction cards based upon a pixel > drawing. > > > > > First you makel your drawing and then it gives you your instruction > > > card. > > > > > The other way around. > > > > > > > > > > My question is how to do that? > > > > > > > > > > > > > > > > > > > > groeten, > > > > > > > > > > William > > > > > > > > > > > > > > > > > > > > 2018-03-05 13:40 GMT+01:00 Jose Enrique Montero via use-livecode < > > > > > use-livecode at lists.runrev.com>: > > > > > > > > > > > I made a similar application, you can look, > > > > > > https://play.google.com/store/apps/details?id=com.kaikuse. > > > > babygrid&hl=es > > > > > > > > > > > > best regards > > > > > > > > > > > > > > > > > > 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < > > > > > > use-livecode at lists.runrev.com>: > > > > > > > > > > > > > Hi there, > > > > > > > > > > > > > > This is quite a challenge for me. > > > > > > > I an trying to build a template in which users (small children) > > can > > > > > > > 'pixeldraw' something and based on the drawing the instruction > > will > > > > be > > > > > > > made. > > > > > > > The instruction is needed for other children to make the pixel > > > > drawing. > > > > > > > The instruction is quite special. > > > > > > > > > > > > > > The template is a square with 49 buttons (7x7) for the coloring > > and > > > > 49 > > > > > > > fields for the instruction. > > > > > > > The coloring of the buttons is no problem. The 'reverse' > coloring > > > is > > > > > the > > > > > > > problem. > > > > > > > I can get the amount of a colors in a row (5 x white and 2 x > > blue) > > > > but > > > > > > how > > > > > > > do I determine on which place (in which buttons) these colors > > are. > > > > > > > The first row is: 3 white - 1 blue - 2 white - 1 blue > > > > > > > But how do I output it like: 3 - 1- 2 - 1 ? And each number > needs > > > to > > > > be > > > > > > in > > > > > > > another field. > > > > > > > > > > > > > > --------------- > > > > > > > on mouseup > > > > > > > if the backgroundcolor of btn "f1" is 255,255,255 then add "1" > to > > > > field > > > > > > > "v1" > > > > > > > end mouseup > > > > > > > > > > > > > > or > > > > > > > > > > > > > > on mouseup > > > > > > > repeat with x=1 to 7 > > > > > > > put "f"&x into tButton > > > > > > > if the backgroundcolor of btn tButton is 255,255,255 > > > > > > > then > > > > > > > add "1" to field "v1" > > > > > > > else > > > > > > > add "1" to field "v2" > > > > > > > end if > > > > > > > end mousep > > > > > > > > > > > > > > ------------------- > > > > > > > > > > > > > > What is the best way to do this? > > > > > > > > > > > > > > Any pointers are welcome. > > > > > > > > > > > > > > > > > > > > > To easier understand what i am trying to do, see this image: > > > > > > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > > > > > > > > > > > > > > > > > > > > > greetings, > > > > > > > > > > > > > > William > > > > > > > _______________________________________________ > > > > > > > use-livecode mailing list > > > > > > > use-livecode at lists.runrev.com > > > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > > > subscription preferences: > > > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > > > _______________________________________________ > > > > > > use-livecode mailing list > > > > > > use-livecode at lists.runrev.com > > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > > subscription preferences: > > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode at lists.runrev.com > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > subscription preferences: > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Mon Mar 5 16:04:04 2018 From: hh at hyperhh.de (hh) Date: Mon, 5 Mar 2018 22:04:04 +0100 Subject: Rotating PNG images Message-ID: <62FBDA57-E39D-4ABB-BDAC-401B542010D1@hyperhh.de> > Richmond M. wrote: > There's no "instead", I set the angle on PNG images and they deteriorate. Did you already try hhMockUp (from "sample stacks")? I just tried with the LCC 1024x1024 logo. Simply use the images menu there to import and then select it from that menu. Works fine: skewing, scaling, rotating all as single actions or (use check "All") in one single all-in-one action. Or even perspective transforms. That's what LiveCode can do ... (and Trace_to_SVG is now also available). From hh at hyperhh.de Mon Mar 5 16:08:17 2018 From: hh at hyperhh.de (hh) Date: Mon, 5 Mar 2018 22:08:17 +0100 Subject: Trace_to_SVG Message-ID: Just uploaded "Trace_to_SVG" (MIT license from Potrace). The stack uses Potrace (by P. Seliger, the "lite" JavaScript version) in a browser widget with your input. It runs using LC 8/9 on Mac/ Win 7+10/ Ubuntu. I changed the JavaScript a little bit to use better the power of the "LC-GUI". You input an image (especially your own painting) or an image from a group or an image from a text field. This is traced to an SVG path using curves with a selectable level of smoothing. The image is translated to "black and white" for tracing, you can set weights for building the preparing grayLevel and set the threshold value. Transparency is supported. The generated SVG is displayed in a grouped "SVG Icon" widget and (if installed) in a grouped "SVG_Text" widget, ready for being copied. The size of the generated SVG is in between 10% and 110% of the input image! Download "Trace_to_SVG" from "Sample Stacks" (or http://livecodeshare.runrev.com/stack/869). From jiml at netrin.com Mon Mar 5 16:12:18 2018 From: jiml at netrin.com (Jim Lambert) Date: Mon, 5 Mar 2018 13:12:18 -0800 Subject: Rotating PNG images In-Reply-To: References: Message-ID: <1B8DF7B7-000F-4080-A33A-5FEDD2D4244E@netrin.com> With the added WAIT this is a bit more fun to look at. And it checks for angles > 32767. You get an error if you set the angle of an image to greater than 32767. local ang on spin repeat forever add 13 to ang if ang > 32767 then beep put 0 into ang end if set the angle of image 1 to ang if the commandKey is down then --set the angle of image 1 to 0 exit spin end if wait 0 ticks end repeat end spin Again this illustrates that setting the angle of an image does not distort the image, whereas rotating an image can distort the image. Jim Lambert From revdev at pdslabs.net Sat Mar 3 23:50:52 2018 From: revdev at pdslabs.net (Phil Davis) Date: Sat, 3 Mar 2018 20:50:52 -0800 Subject: [Completely OT] Withdrawal symptoms from Slashdot In-Reply-To: <5F6CD911-7EE1-4E38-8055-E5B1A006535B@all-auctions.com> References: <5F6CD911-7EE1-4E38-8055-E5B1A006535B@all-auctions.com> Message-ID: <6f17d35f-1042-7a7a-aa2a-070ae42d2f43@pdslabs.net> Or this: https://alternativeto.net/software/slashdot/ Phil Davis On 3/3/18 6:37 PM, Rick Harrison via use-livecode wrote: > Hi Alex, > > Try.. > > https://news360.com > > You can choose a technical focus too. > > Enjoy! > > Rick > >> On Mar 3, 2018, at 7:09 PM, Alex Tweedly via use-livecode wrote: >> >> Completely off topic, but I need help ;-) >> >> For many years now my standard "I have 30 seconds (or minutes) to fill in, what's happening in the world" web site has been slashdot, but it seems to be completely off the air for now. >> >> I'm looking for suggestions for alternates that are worth using while waiting for a build, or just to give me some interesting. The less video, the better :-) >> >> Thanks >> >> Alex. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode 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 charles at techstrategies.com.au Tue Mar 6 02:50:58 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Tue, 6 Mar 2018 17:50:58 +1000 Subject: Get URL anomaly In-Reply-To: <0F73276A-4C58-4C2C-88B1-D8F6F9FAF39C@mac.com> References: <0F73276A-4C58-4C2C-88B1-D8F6F9FAF39C@mac.com> Message-ID: <6E85DDDF-6126-4DC6-A4E6-ECAAC17A8751@techstrategies.com.au> Hi Graham, > On 5 Mar 2018, at 10:56 pm, Graham Samuel via use-livecode wrote: > > As in some of my previous mails, I?m talking about having to retrieve a tiny text file from a server (and later put a modified version of it back, but let?s get one problem solved at a time) The whole thing is just a few lines of code: > > constant myFileOnTheServer = "www.myserver.comm/mytextfile.txt? > > put ?http://? & myFileOnTheServer into t1 > > get URL t1 > > if the result is empty then > > do stuff with ?it?, where the text file is placed > > ? I would recommend using: put URL t1 into tData The contents of ?it? can be changed by other commands, so if you are having issues in a more complex app, maybe something else is overwriting that value? Cheers, Charles From charles at techstrategies.com.au Tue Mar 6 02:59:34 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Tue, 6 Mar 2018 17:59:34 +1000 Subject: Overwriting a file on a server In-Reply-To: References: Message-ID: <7DB59713-22DA-4E91-BBC5-B4CD54ACE89E@techstrategies.com.au> Hi Graham, > On 5 Mar 2018, at 11:04 pm, Graham Samuel via use-livecode wrote: > > Another dumb question, I?m afraid. The dictionary says I can do > > put tdata into URL [some url] > > well, I want to put a file on my server (in this example, it?s a text file) to replace one of the same name. If I just try to steamroller it by ignoring the existing file, I get a ?405? error (forbidden method, I think). If I use an FTP client like Transmit, I get a warning about overwriting the file and a manual override. > > How can I grow my own, by detecting the existing file and then overwriting it anyway? Should I delete the existing file as a separate operation? How can I be sure I have enough permission to do so? You can use ?delete URL? to delete an FTP file. If the result is not empty, then it failed to delete it. You could always try the ?put? first, and if you get a 405 error, try the ?delete?. If the delete is successful, you can ?put? again. If the delete is unsuccessful, advise the user. Cheers, Charles From jbv at souslelogo.com Tue Mar 6 03:07:06 2018 From: jbv at souslelogo.com (jbv) Date: Tue, 6 Mar 2018 09:07:06 +0100 Subject: LC server and fonts In-Reply-To: References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> Message-ID: When using load font file "nameofyourfont.ttf" the result contains Handler: can't find handler (file) It looks like "load" is accepted only in the form "load URL"... On Mon, March 5, 2018 9:28 pm, Mike Bonner via use-livecode wrote: > Hmm. Not sure what to do about loading a fontfile then. Out of > curiosity, what is the error? > > On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Mike, >> Thanks for your reply. >> >> >> Yes, I managed to set the textfont of a btn or fld to one of the fonts >> available in the fontnames, but I still can't figure how to use any other >> ttf font... load font file "nameofyourfont.ttf" -> returns an error I >> tried load URL "nameofyourfont.ttf", it works, but then the textfont >> property isn't updated... >> >> On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode wrote: >> >>> With on-rev, I put up this script.. >>> >>> >>> >>> >> create button "mybtn" >>> >>> repeat for each line tLIne in the fontnames -- will make 1 png per >>> font >>> >>> set the label of btn "mybtn" to tLine set the textfont of button >>> "mybtn" >>> to tLine set the width of button "mybtn" to the formattedwidth of >>> button "mybtn" + 5 >>> >>> >>> >>> export snapshot from button "mybtn" to file (tLine & ".png") as PNG >>> >>> put the textfont of button "mybtn" && ">> & quote & ">
" & cr >>> end repeat ?> >>> >>> >>> And it works fine, with the exception of fonts with a - in the name. >>> All >>> of them are Hershey fonts, so not sure if its the font family that is >>> broken, or the dashes causing the issue. >>> >>> If you have a ttf font file to use, you can probably put it on your >>> server next to your script and: load font file "nameofyourfont.ttf" >>> and >> then >>> set the textfont to "nameofyourfont" and it will likely work. >>> >>> To see my script in action, check here: >>> http://guidezone.info/fonttest.lc >>> >>> >>> >>> On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: >>>> >>>> >>>> >>>>> Hello list >>>>> How can I load ttf font files with LC server, at least version 7.1 >>>>> available on my on-rev account ? Neither "revFontLoad" nor >>>>> "start using >>>>> font file" seem to work... And the list of available fonts >>>>> returned by "the fontNames" is quite >>>>> limited... >>>>> >>>>> Thanks in advance. >>>>> jbv >>>>> >>>>> >>>>> >>>> Does on-rev run on Linux? If you create a directory called '.fonts' >>>> under your user name and install the fonts you want to use in your >>>> images in that directory, LiveCode will find them. >>>> >>>> A quick test shows this to be true using LC Server 8.1.4, but you >>>> may have to do some experimenting to get them working in a script >>>> accessed through your web server. Executing a script to show the >>>> fontnames works from the command line but without having done any >>>> real investigating, I have to admit it's not working when accessed >>>> through my server. This isn't an on-rev nor an Apache server so >>>> ymmv. If you decide to go the standalone route, you should be able >>>> to install your fonts this way to use them in the standalone. >>>> >>>> Good luck! >>>> >>>> >>>> >>>> Warren >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list use-livecode at lists.runrev.com Please visit >>>> >> this >>>> url to subscribe, unsubscribe and manage your subscription >>>> preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list use-livecode at lists.runrev.com Please visit >> this >>> url to subscribe, unsubscribe and manage your subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> >> >> >> >> _______________________________________________ >> use-livecode mailing list use-livecode at lists.runrev.com Please visit this >> url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list use-livecode at lists.runrev.com Please visit this > url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From williamdesmet at gmail.com Tue Mar 6 04:36:52 2018 From: williamdesmet at gmail.com (William de Smet) Date: Tue, 6 Mar 2018 10:36:52 +0100 Subject: Reverse 'pixelcoloring' and total amount of colors In-Reply-To: References: Message-ID: Hi Mike, The 'put into field instructions2' was in there to check what was going on. It works now the way I like it. Thanks again! greetings, William 2018-03-05 21:37 GMT+01:00 Mike Bonner via use-livecode < use-livecode at lists.runrev.com>: > Hmm. In this case, you know the condition of failure, so if everything else > is working as you need, i'd just check for that condition and act > accordingly.. > if char 1 of the last item of tInstructions is "W" and the number of items > of tInstructions > 1 then.. > > Do you want tInstructions to be empty in the case of 7 white squares? And > W7 to be put into field instructions2? > > Either way.. > if there is only 1 item in tInstructions, and char 1 of tInstructions is > "W" then > put whatever into field "instructions2" that you need > put empty into tInstructions > else > put whatever into field "instructions2" that you need > delete item -1 of tInstructions > end if > > Not sure what end results you want, or how if fails, but maybe something ^ > there will help. > > On Mon, Mar 5, 2018 at 12:13 PM, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Thanks Mike that helped a lot! > > I extended your script with this: > > > > ---- > > repeat with x= 1 to the number of items of tInstructions > > put char 2 of item x of tInstructions into tChar > > put "v"&x into tNaam > > set the label of btn tNaam to tChar > > set the showname of btn tNaam to true > > put char 1 of item x of tInstructions into tLetter > > if tLetter is "W" > > then > > set the backgroundcolor of btn tNaam to 255,255,255 > > else > > set the backgroundcolor of btn tNaam to 90,200,250 > > end if > > end repeat > > --- > > > > Now it almost looks like this: > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > One thing left: > > If the last button(s) is/are white it doesn't have to be shown on the > > instruction. > > So how do I leave it out? > > When I add this it almost works: > > -- > > if char 1 of the last item of tInstructions is "W" > > then > > put the last item of tInstructions into fld "instructions2" > > delete the last item of tInstructions > > -- > > This fails if the last item is the first and only item (when there are 7 > > white buttons). > > Any thoughts on this? > > > > > > > > greetings, > > > > William > > > > > > > > 2018-03-05 17:41 GMT+01:00 Mike Bonner via use-livecode < > > use-livecode at lists.runrev.com>: > > > > > Ah, I understand better now. > > > Something like this should work. Its just a quicky, no time to really > > test > > > before my doc appointment. > > > > > > > > > on mouseup > > > local tInstructions -- gotta have this cause a non declared isn't seen > as > > > empty > > > > > > repeat with i = 1 to 4 > > > switch > > > case the backgroundcolor of button ("b" & i) is "255,255,255" > > > if tInstructions is empty then put "W0" into tInstructions > > > if char -2 of tInstructions is not "W" then put comma & > "W0" > > > after tInstructions > > > add 1 to char -1 of tInstructions > > > break > > > case the backgroundcolor of button ("b" & i) is "0,0,255" > > > if tInstructions is empty then put "B0" into tInstructions > > > if char -2 of tInstructions is not "B" then put comma & > "B0" > > > after tInstructions > > > add 1 to char -1 of tInstructions > > > break > > > default > > > if tInstructions is empty then > > > put "E" into tInstructions > > > else > > > put comma & "E" after tInstructions > > > end if > > > end switch > > > end repeat > > > > > > put tInstructions > > > end mouseup > > > > > > On Mon, Mar 5, 2018 at 8:28 AM, William de Smet via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > Hi Mike, > > > > > > > > Thanks for your answer! > > > > The exercises are actually binary exercises but the children don't > > know. > > > > All they know is a 'puzzle' to solve with pixelcoloring. > > > > Funny I can solve it this way :-) > > > > Still figuring how to do it because the children instruction is not > > just > > > > binary writing as you explained it. > > > > > > > > Did you see my picture? > > > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > > > > > greetings. > > > > > > > > William > > > > > > > > > > > > > > > > 2018-03-05 16:10 GMT+01:00 Mike Bonner via use-livecode < > > > > use-livecode at lists.runrev.com>: > > > > > > > > > If you want to know which "pixel" is on in a row, you could treat > > them > > > as > > > > > binary bits. Farthest right in a row is bit 1, next to the left is > > bit > > > > 2.. > > > > > > > > > > So your buttons could be 0 0 1 0 1 0 1 > > > > > 64 32 16 8 4 2 1 > > > > > for a total of 21 which would then tell you the "bit patteren" of > > your > > > > row. > > > > > > > > > > Not fully awake yet, so if there is anything wrong with my example, > > > > > hopefully it still makes sense. > > > > > > > > > > On Mon, Mar 5, 2018 at 5:50 AM, William de Smet via use-livecode < > > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > > Thanks for your reply! > > > > > > Your app is the same as what I did before and that's quit easy to > > do. > > > > > > > > > > > > For now I want to build instruction cards based upon a pixel > > drawing. > > > > > > First you makel your drawing and then it gives you your > instruction > > > > card. > > > > > > The other way around. > > > > > > > > > > > > My question is how to do that? > > > > > > > > > > > > > > > > > > > > > > > > groeten, > > > > > > > > > > > > William > > > > > > > > > > > > > > > > > > > > > > > > 2018-03-05 13:40 GMT+01:00 Jose Enrique Montero via use-livecode > < > > > > > > use-livecode at lists.runrev.com>: > > > > > > > > > > > > > I made a similar application, you can look, > > > > > > > https://play.google.com/store/apps/details?id=com.kaikuse. > > > > > babygrid&hl=es > > > > > > > > > > > > > > best regards > > > > > > > > > > > > > > > > > > > > > 2018-03-05 3:55 GMT-04:00 William de Smet via use-livecode < > > > > > > > use-livecode at lists.runrev.com>: > > > > > > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > This is quite a challenge for me. > > > > > > > > I an trying to build a template in which users (small > children) > > > can > > > > > > > > 'pixeldraw' something and based on the drawing the > instruction > > > will > > > > > be > > > > > > > > made. > > > > > > > > The instruction is needed for other children to make the > pixel > > > > > drawing. > > > > > > > > The instruction is quite special. > > > > > > > > > > > > > > > > The template is a square with 49 buttons (7x7) for the > coloring > > > and > > > > > 49 > > > > > > > > fields for the instruction. > > > > > > > > The coloring of the buttons is no problem. The 'reverse' > > coloring > > > > is > > > > > > the > > > > > > > > problem. > > > > > > > > I can get the amount of a colors in a row (5 x white and 2 x > > > blue) > > > > > but > > > > > > > how > > > > > > > > do I determine on which place (in which buttons) these colors > > > are. > > > > > > > > The first row is: 3 white - 1 blue - 2 white - 1 blue > > > > > > > > But how do I output it like: 3 - 1- 2 - 1 ? And each number > > needs > > > > to > > > > > be > > > > > > > in > > > > > > > > another field. > > > > > > > > > > > > > > > > --------------- > > > > > > > > on mouseup > > > > > > > > if the backgroundcolor of btn "f1" is 255,255,255 then add > "1" > > to > > > > > field > > > > > > > > "v1" > > > > > > > > end mouseup > > > > > > > > > > > > > > > > or > > > > > > > > > > > > > > > > on mouseup > > > > > > > > repeat with x=1 to 7 > > > > > > > > put "f"&x into tButton > > > > > > > > if the backgroundcolor of btn tButton is 255,255,255 > > > > > > > > then > > > > > > > > add "1" to field "v1" > > > > > > > > else > > > > > > > > add "1" to field "v2" > > > > > > > > end if > > > > > > > > end mousep > > > > > > > > > > > > > > > > ------------------- > > > > > > > > > > > > > > > > What is the best way to do this? > > > > > > > > > > > > > > > > Any pointers are welcome. > > > > > > > > > > > > > > > > > > > > > > > > To easier understand what i am trying to do, see this image: > > > > > > > > http://www.camelcaps.nl/pixelcoding/pixelcoding.jpg > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > greetings, > > > > > > > > > > > > > > > > William > > > > > > > > _______________________________________________ > > > > > > > > use-livecode mailing list > > > > > > > > use-livecode at lists.runrev.com > > > > > > > > Please visit this url to subscribe, unsubscribe and manage > your > > > > > > > > subscription preferences: > > > > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > use-livecode mailing list > > > > > > > use-livecode at lists.runrev.com > > > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > > > subscription preferences: > > > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > > > _______________________________________________ > > > > > > use-livecode mailing list > > > > > > use-livecode at lists.runrev.com > > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > > subscription preferences: > > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode at lists.runrev.com > > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > > subscription preferences: > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From james at thehales.id.au Tue Mar 6 08:55:57 2018 From: james at thehales.id.au (James At The Hale) Date: Wed, 7 Mar 2018 00:55:57 +1100 Subject: Reverse 'pixelcoloring' and total amount of colors Message-ID: <61802985-43E3-413D-993E-1042EEF1351C@thehales.id.au> Just wanted to delete all the appended quotes! From bonnmike at gmail.com Tue Mar 6 09:03:52 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 6 Mar 2018 07:03:52 -0700 Subject: LC server and fonts In-Reply-To: References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> Message-ID: My apologies.. Had a brain fritz, it should be "start using font file.." load url would just load whatever url into cache and not font it up. On Tue, Mar 6, 2018 at 1:07 AM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > When using > load font file "nameofyourfont.ttf" > the result contains > Handler: can't find handler (file) > > It looks like "load" is accepted only in the form "load URL"... > > On Mon, March 5, 2018 9:28 pm, Mike Bonner via use-livecode wrote: > > Hmm. Not sure what to do about loading a fontfile then. Out of > > curiosity, what is the error? > > > > On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi Mike, > >> Thanks for your reply. > >> > >> > >> Yes, I managed to set the textfont of a btn or fld to one of the fonts > >> available in the fontnames, but I still can't figure how to use any > other > >> ttf font... load font file "nameofyourfont.ttf" -> returns an error I > >> tried load URL "nameofyourfont.ttf", it works, but then the textfont > >> property isn't updated... > >> > >> On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode wrote: > >> > >>> With on-rev, I put up this script.. > >>> > >>> > >>> > >>> >>> create button "mybtn" > >>> > >>> repeat for each line tLIne in the fontnames -- will make 1 png per > >>> font > >>> > >>> set the label of btn "mybtn" to tLine set the textfont of button > >>> "mybtn" > >>> to tLine set the width of button "mybtn" to the formattedwidth of > >>> button "mybtn" + 5 > >>> > >>> > >>> > >>> export snapshot from button "mybtn" to file (tLine & ".png") as PNG > >>> > >>> put the textfont of button "mybtn" && " >>> & quote & ">
" & cr > >>> end repeat ?> > >>> > >>> > >>> And it works fine, with the exception of fonts with a - in the name. > >>> All > >>> of them are Hershey fonts, so not sure if its the font family that is > >>> broken, or the dashes causing the issue. > >>> > >>> If you have a ttf font file to use, you can probably put it on your > >>> server next to your script and: load font file "nameofyourfont.ttf" > >>> and > >> then > >>> set the textfont to "nameofyourfont" and it will likely work. > >>> > >>> To see my script in action, check here: > >>> http://guidezone.info/fonttest.lc > >>> > >>> > >>> > >>> On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: > >>>> > >>>> > >>>> > >>>>> Hello list > >>>>> How can I load ttf font files with LC server, at least version 7.1 > >>>>> available on my on-rev account ? Neither "revFontLoad" nor > >>>>> "start using > >>>>> font file" seem to work... And the list of available fonts > >>>>> returned by "the fontNames" is quite > >>>>> limited... > >>>>> > >>>>> Thanks in advance. > >>>>> jbv > >>>>> > >>>>> > >>>>> > >>>> Does on-rev run on Linux? If you create a directory called '.fonts' > >>>> under your user name and install the fonts you want to use in your > >>>> images in that directory, LiveCode will find them. > >>>> > >>>> A quick test shows this to be true using LC Server 8.1.4, but you > >>>> may have to do some experimenting to get them working in a script > >>>> accessed through your web server. Executing a script to show the > >>>> fontnames works from the command line but without having done any > >>>> real investigating, I have to admit it's not working when accessed > >>>> through my server. This isn't an on-rev nor an Apache server so > >>>> ymmv. If you decide to go the standalone route, you should be able > >>>> to install your fonts this way to use them in the standalone. > >>>> > >>>> Good luck! > >>>> > >>>> > >>>> > >>>> Warren > >>>> > >>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list use-livecode at lists.runrev.com Please visit > >>>> > >> this > >>>> url to subscribe, unsubscribe and manage your subscription > >>>> preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>>> > >>>> > >>> _______________________________________________ > >>> use-livecode mailing list use-livecode at lists.runrev.com Please visit > >> this > >>> url to subscribe, unsubscribe and manage your subscription > >>> preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> > >>> > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > >> url to subscribe, unsubscribe and manage your subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > > _______________________________________________ > > use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > > url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Mar 6 09:37:36 2018 From: jbv at souslelogo.com (jbv) Date: Tue, 6 Mar 2018 15:37:36 +0100 Subject: LC server and fonts In-Reply-To: References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> Message-ID: "start using font file.." is the first option that I tried, but unfortunately it returns "can't load font file"... The ttf file is on the server next to my script, and I have also tried with the full absolute path for that ttf file. Could you please make a test on your own on-rev account with any ttf file (different from the default fonts in fontnames) and let us know of it works ? Thanks in advance. On Tue, March 6, 2018 3:03 pm, Mike Bonner via use-livecode wrote: > My apologies.. Had a brain fritz, it should be "start using font file.." > load url would just load whatever url into cache and not font it up. > > On Tue, Mar 6, 2018 at 1:07 AM, jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> When using >> load font file "nameofyourfont.ttf" the result contains Handler: can't >> find handler (file) >> >> It looks like "load" is accepted only in the form "load URL"... >> >> >> On Mon, March 5, 2018 9:28 pm, Mike Bonner via use-livecode wrote: >> >>> Hmm. Not sure what to do about loading a fontfile then. Out of >>> curiosity, what is the error? >>> >>> On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Mike, >>>> Thanks for your reply. >>>> >>>> >>>> >>>> Yes, I managed to set the textfont of a btn or fld to one of the >>>> fonts available in the fontnames, but I still can't figure how to >>>> use any >> other >>>> ttf font... load font file "nameofyourfont.ttf" -> returns an error >>>> I >>>> tried load URL "nameofyourfont.ttf", it works, but then the textfont >>>> property isn't updated... >>>> >>>> On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode wrote: >>>> >>>> >>>>> With on-rev, I put up this script.. >>>>> >>>>> >>>>> >>>>> >>>>> >>>> create button "mybtn" >>>>> >>>>> repeat for each line tLIne in the fontnames -- will make 1 png >>>>> per font >>>>> >>>>> set the label of btn "mybtn" to tLine set the textfont of button >>>>> "mybtn" >>>>> to tLine set the width of button "mybtn" to the formattedwidth of >>>>> button "mybtn" + 5 >>>>> >>>>> >>>>> >>>>> export snapshot from button "mybtn" to file (tLine & ".png") as >>>>> PNG >>>>> >>>>> >>>>> put the textfont of button "mybtn" && ">>>> & quote & ">
" & cr >>>>> end repeat ?> >>>>> >>>>> >>>>> And it works fine, with the exception of fonts with a - in the >>>>> name. All >>>>> of them are Hershey fonts, so not sure if its the font family that >>>>> is broken, or the dashes causing the issue. >>>>> >>>>> If you have a ttf font file to use, you can probably put it on >>>>> your server next to your script and: load font file >>>>> "nameofyourfont.ttf" >>>>> and >>>> then >>>>> set the textfont to "nameofyourfont" and it will likely work. >>>>> >>>>> To see my script in action, check here: >>>>> http://guidezone.info/fonttest.lc >>>>> >>>>> >>>>> >>>>> >>>>> On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hello list >>>>>>> How can I load ttf font files with LC server, at least version >>>>>>> 7.1 >>>>>>> available on my on-rev account ? Neither "revFontLoad" nor >>>>>>> "start using >>>>>>> font file" seem to work... And the list of available fonts >>>>>>> returned by "the fontNames" is quite limited... >>>>>>> >>>>>>> Thanks in advance. >>>>>>> jbv >>>>>>> >>>>>>> >>>>>>> >>>>>> Does on-rev run on Linux? If you create a directory called >>>>>> '.fonts' >>>>>> under your user name and install the fonts you want to use in >>>>>> your images in that directory, LiveCode will find them. >>>>>> >>>>>> A quick test shows this to be true using LC Server 8.1.4, but >>>>>> you may have to do some experimenting to get them working in a >>>>>> script accessed through your web server. Executing a script to >>>>>> show the fontnames works from the command line but without >>>>>> having done any real investigating, I have to admit it's not >>>>>> working when accessed through my server. This isn't an on-rev >>>>>> nor an Apache server so ymmv. If you decide to go the standalone >>>>>> route, you should be able to install your fonts this way to use >>>>>> them in the standalone. >>>>>> >>>>>> Good luck! >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Warren >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list use-livecode at lists.runrev.com Please >>>>>> visit >>>>>> >>>> this >>>>>> url to subscribe, unsubscribe and manage your subscription >>>>>> preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list use-livecode at lists.runrev.com Please >>>>> visit >>>> this >>>>> url to subscribe, unsubscribe and manage your subscription >>>>> preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list use-livecode at lists.runrev.com Please visit >>>> >> this >>>> url to subscribe, unsubscribe and manage your subscription >>>> preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list use-livecode at lists.runrev.com Please visit >> this >>> url to subscribe, unsubscribe and manage your subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> >> >> >> >> _______________________________________________ >> use-livecode mailing list use-livecode at lists.runrev.com Please visit this >> url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list use-livecode at 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 Mar 6 09:41:37 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 6 Mar 2018 07:41:37 -0700 Subject: LC server and fonts In-Reply-To: References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> Message-ID: Sure, i'll dig up a font file and try. On Tue, Mar 6, 2018 at 7:37 AM, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > "start using font file.." is the first option that I tried, but > unfortunately it returns "can't load font file"... > The ttf file is on the server next to my script, and I have also > tried with the full absolute path for that ttf file. > Could you please make a test on your own on-rev account with any > ttf file (different from the default fonts in fontnames) and let us > know of it works ? > > Thanks in advance. > > On Tue, March 6, 2018 3:03 pm, Mike Bonner via use-livecode wrote: > > My apologies.. Had a brain fritz, it should be "start using font file.." > > load url would just load whatever url into cache and not font it up. > > > > On Tue, Mar 6, 2018 at 1:07 AM, jbv via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> When using > >> load font file "nameofyourfont.ttf" the result contains Handler: can't > >> find handler (file) > >> > >> It looks like "load" is accepted only in the form "load URL"... > >> > >> > >> On Mon, March 5, 2018 9:28 pm, Mike Bonner via use-livecode wrote: > >> > >>> Hmm. Not sure what to do about loading a fontfile then. Out of > >>> curiosity, what is the error? > >>> > >>> On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> Hi Mike, > >>>> Thanks for your reply. > >>>> > >>>> > >>>> > >>>> Yes, I managed to set the textfont of a btn or fld to one of the > >>>> fonts available in the fontnames, but I still can't figure how to > >>>> use any > >> other > >>>> ttf font... load font file "nameofyourfont.ttf" -> returns an error > >>>> I > >>>> tried load URL "nameofyourfont.ttf", it works, but then the textfont > >>>> property isn't updated... > >>>> > >>>> On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode wrote: > >>>> > >>>> > >>>>> With on-rev, I put up this script.. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> >>>>> create button "mybtn" > >>>>> > >>>>> repeat for each line tLIne in the fontnames -- will make 1 png > >>>>> per font > >>>>> > >>>>> set the label of btn "mybtn" to tLine set the textfont of button > >>>>> "mybtn" > >>>>> to tLine set the width of button "mybtn" to the formattedwidth of > >>>>> button "mybtn" + 5 > >>>>> > >>>>> > >>>>> > >>>>> export snapshot from button "mybtn" to file (tLine & ".png") as > >>>>> PNG > >>>>> > >>>>> > >>>>> put the textfont of button "mybtn" && " >>>>> & quote & ">
" & cr > >>>>> end repeat ?> > >>>>> > >>>>> > >>>>> And it works fine, with the exception of fonts with a - in the > >>>>> name. All > >>>>> of them are Hershey fonts, so not sure if its the font family that > >>>>> is broken, or the dashes causing the issue. > >>>>> > >>>>> If you have a ttf font file to use, you can probably put it on > >>>>> your server next to your script and: load font file > >>>>> "nameofyourfont.ttf" > >>>>> and > >>>> then > >>>>> set the textfont to "nameofyourfont" and it will likely work. > >>>>> > >>>>> To see my script in action, check here: > >>>>> http://guidezone.info/fonttest.lc > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via use-livecode < > >>>>> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>>> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> Hello list > >>>>>>> How can I load ttf font files with LC server, at least version > >>>>>>> 7.1 > >>>>>>> available on my on-rev account ? Neither "revFontLoad" nor > >>>>>>> "start using > >>>>>>> font file" seem to work... And the list of available fonts > >>>>>>> returned by "the fontNames" is quite limited... > >>>>>>> > >>>>>>> Thanks in advance. > >>>>>>> jbv > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> Does on-rev run on Linux? If you create a directory called > >>>>>> '.fonts' > >>>>>> under your user name and install the fonts you want to use in > >>>>>> your images in that directory, LiveCode will find them. > >>>>>> > >>>>>> A quick test shows this to be true using LC Server 8.1.4, but > >>>>>> you may have to do some experimenting to get them working in a > >>>>>> script accessed through your web server. Executing a script to > >>>>>> show the fontnames works from the command line but without > >>>>>> having done any real investigating, I have to admit it's not > >>>>>> working when accessed through my server. This isn't an on-rev > >>>>>> nor an Apache server so ymmv. If you decide to go the standalone > >>>>>> route, you should be able to install your fonts this way to use > >>>>>> them in the standalone. > >>>>>> > >>>>>> Good luck! > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> Warren > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> use-livecode mailing list use-livecode at lists.runrev.com Please > >>>>>> visit > >>>>>> > >>>> this > >>>>>> url to subscribe, unsubscribe and manage your subscription > >>>>>> preferences: > >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> _______________________________________________ > >>>>> use-livecode mailing list use-livecode at lists.runrev.com Please > >>>>> visit > >>>> this > >>>>> url to subscribe, unsubscribe and manage your subscription > >>>>> preferences: > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list use-livecode at lists.runrev.com Please visit > >>>> > >> this > >>>> url to subscribe, unsubscribe and manage your subscription > >>>> preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>>> > >>>> > >>> _______________________________________________ > >>> use-livecode mailing list use-livecode at lists.runrev.com Please visit > >> this > >>> url to subscribe, unsubscribe and manage your subscription > >>> preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> > >>> > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > >> url to subscribe, unsubscribe and manage your subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > > _______________________________________________ > > use-livecode mailing list use-livecode at lists.runrev.com Please visit > this > > url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Mar 6 09:56:57 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 06 Mar 2018 15:56:57 +0100 Subject: Get URL anomaly In-Reply-To: <6E85DDDF-6126-4DC6-A4E6-ECAAC17A8751@techstrategies.com.au> References: <0F73276A-4C58-4C2C-88B1-D8F6F9FAF39C@mac.com> <6E85DDDF-6126-4DC6-A4E6-ECAAC17A8751@techstrategies.com.au> Message-ID: Hi Charles - thanks for your help. I immediately tried your modification (use ?put? and avoid the variable ?it?) but it made no difference. However, I think I have solved the problem: I was relying on the Standalone Application Settings option ?search for required inclusions?. This did however not include something called ?internet?, which presumably is not tsNet but something else. Anyway when I chose that option, the behaviour in the IDE and the standalone suddenly appeared the same. I don?t know why it worked in some simpler standalones used for testing - perhaps the LC search for inclusions was confused by something in my real app and not in the simpler ones. Without this inclusion, the ?put? (or ?get?) apparently works - nothing in ?the result? - but no data is transferred. With the inclusion, data is transferred as expected. If I can, I will report this as a bug, but it?s going to be tricky to demonstrate it in its original context. If anyone else is reading this, have you had any negative experience with the ?search for required inclusions? feature of the LC Standalone settings? Thanks again Graham > On 6 Mar 2018, at 08:50, Charles Warwick via use-livecode wrote: > > Hi Graham, > > >> On 5 Mar 2018, at 10:56 pm, Graham Samuel via use-livecode wrote: >> >> As in some of my previous mails, I?m talking about having to retrieve a tiny text file from a server (and later put a modified version of it back, but let?s get one problem solved at a time) The whole thing is just a few lines of code: >> >> constant myFileOnTheServer = "www.myserver.comm/mytextfile.txt? >> >> put ?http://? & myFileOnTheServer into t1 >> >> get URL t1 >> >> if the result is empty then >> >> do stuff with ?it?, where the text file is placed >> >> ? > > I would recommend using: > > put URL t1 into tData > > The contents of ?it? can be changed by other commands, so if you are having issues in a more complex app, maybe something else is overwriting that value? > > Cheers, > > Charles > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Mar 6 10:33:29 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 06 Mar 2018 16:33:29 +0100 Subject: Overwriting a file on a server In-Reply-To: <7DB59713-22DA-4E91-BBC5-B4CD54ACE89E@techstrategies.com.au> References: <7DB59713-22DA-4E91-BBC5-B4CD54ACE89E@techstrategies.com.au> Message-ID: <2628C91E-D979-4C43-81C4-C27101CD2105@mac.com> More wisdom from Charles, sincere thanks! However, I don?t seem to be able to mimic what my FTP software (Transmit on the Mac, or FileZilla) can do, which is to easily delete a file on a server - the file in question is part of a web site hosted by DreamHost. I just want to use the URL functionality to do this, as discussed in my conversation below, but I always get 405 (http) or 530 (ftp). I have a vague suspicion that I should be transmitting my credentials to the server, which of course I did when I set up my FTP client, but I have absolutely no idea how to do this. Many members of this list must have mucked around with files on a server - can someone point me to a tutorial on all this? TIA Graham > On 6 Mar 2018, at 08:59, Charles Warwick via use-livecode wrote: > > Hi Graham, > >> On 5 Mar 2018, at 11:04 pm, Graham Samuel via use-livecode wrote: >> >> Another dumb question, I?m afraid. The dictionary says I can do >> >> put tdata into URL [some url] >> >> well, I want to put a file on my server (in this example, it?s a text file) to replace one of the same name. If I just try to steamroller it by ignoring the existing file, I get a ?405? error (forbidden method, I think). If I use an FTP client like Transmit, I get a warning about overwriting the file and a manual override. >> >> How can I grow my own, by detecting the existing file and then overwriting it anyway? Should I delete the existing file as a separate operation? How can I be sure I have enough permission to do so? > > You can use ?delete URL? to delete an FTP file. If the result is not empty, then it failed to delete it. > > You could always try the ?put? first, and if you get a 405 error, try the ?delete?. If the delete is successful, you can ?put? again. If the delete is unsuccessful, advise the user. > > Cheers, > > Charles > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 6 11:33:08 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 6 Mar 2018 08:33:08 -0800 Subject: Overwriting a file on a server In-Reply-To: <2628C91E-D979-4C43-81C4-C27101CD2105@mac.com> References: <2628C91E-D979-4C43-81C4-C27101CD2105@mac.com> Message-ID: <3dddfdf1-8de4-bca7-7d7c-4adebca20e9b@fourthworld.com> Graham Samuel wrote: > However, I don?t seem to be able to mimic what my FTP software > (Transmit on the Mac, or FileZilla) can do, which is to easily delete > a file on a server - the file in question is part of a web site > hosted by DreamHost. I just want to use the URL functionality to do > this, as discussed in my conversation below, but I always get 405 > (http) or 530 (ftp). I have a vague suspicion that I should be > transmitting my credentials to the server, which of course I did when > I set up my FTP client, but I have absolutely no idea how to do this. > > Many members of this list must have mucked around with files on a > server - can someone point me to a tutorial on all this? If there were, it would not be a short one. If you could delete a file via HTTP alone, then anyone with a browser could delete files on your server. FTP is unsafe to use on the Internet, as it sends passwords in clear text. You could consider FTPS or SFTP, which are not available in the Community Edition but are in others via tsNet - but not without risk: FTP and its secure variants are designed for ad hoc management of remote file stores. You can delete the file in question, but also any other, and can modify anything on the server in any way you like. This is useful in tools like Filezilla, where the password is only stored on your own computer. But if you hard-wire the password in a script, and that script is part of a publicly-distributed app, a memory dump can reveal the key to having complete control over everything on your server. The most common way for apps to perform write tasks on servers is through an HTTP API, which would require something on the server to process the requests. That something can be PHP, Python, LiveCode Server, or other languages that work well with CGI. You'd still want some way to authenticate the request, but since it's used only in a server script you write the scope of what can be done with it is much more limited. And of course that assumes your web server is using HTTPS so credentials can be sent over secured connection, but given the many benefits of HTTPS and the free availability of SSL certs via the Let's Encrypt project (Dreamhost has a convenient option for Let's Encrypt in their control panel) I'm hoping we can assume all web servers managed by developers already have or will soon have HTTPS in place. A tutorial for getting started with LiveCode Server is here: https://livecode.com/resources/guides/server/ I wish I had a one-liner solution for you. But in the hostile environment of the Internet, writing network applications requires much more diligence than we used to enjoy back in the day. -- 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 Tue Mar 6 11:33:20 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 6 Mar 2018 09:33:20 -0700 Subject: LC server and fonts In-Reply-To: References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> Message-ID: Well, it looks like fontconfig is installed in on-rev, but neither /home//.fonts or /home//.local/share/fonts are being updated automatically. I tried to run fc-cache -f -v /home//.fonts and the font is indeed found, but I don't think I have all the required support directories, so there is no writable place to actually store the cache data. The command fails because of this. If it were me, I'd contact on-rev and see if they could help set things up to actually look at a fonts directory in your account and add any fonts there. All the software seems to be installed to do this, I just don't know enough about fontconfig to force it from the user side. (It should be possible, but again I don't know enough about fontconfig to know what to do yet) As for start using font file.. Yep, it fails every time with an error message that is just a bit lacking. Getting on-rev/fontconfig set up to handle this for you sounds like the way to go. On Tue, Mar 6, 2018 at 7:41 AM, Mike Bonner wrote: > Sure, i'll dig up a font file and try. > > On Tue, Mar 6, 2018 at 7:37 AM, jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> "start using font file.." is the first option that I tried, but >> unfortunately it returns "can't load font file"... >> The ttf file is on the server next to my script, and I have also >> tried with the full absolute path for that ttf file. >> Could you please make a test on your own on-rev account with any >> ttf file (different from the default fonts in fontnames) and let us >> know of it works ? >> >> Thanks in advance. >> >> On Tue, March 6, 2018 3:03 pm, Mike Bonner via use-livecode wrote: >> > My apologies.. Had a brain fritz, it should be "start using font file.." >> > load url would just load whatever url into cache and not font it up. >> > >> > On Tue, Mar 6, 2018 at 1:07 AM, jbv via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > >> >> When using >> >> load font file "nameofyourfont.ttf" the result contains Handler: can't >> >> find handler (file) >> >> >> >> It looks like "load" is accepted only in the form "load URL"... >> >> >> >> >> >> On Mon, March 5, 2018 9:28 pm, Mike Bonner via use-livecode wrote: >> >> >> >>> Hmm. Not sure what to do about loading a fontfile then. Out of >> >>> curiosity, what is the error? >> >>> >> >>> On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode < >> >>> use-livecode at lists.runrev.com> wrote: >> >>> >> >>>> Hi Mike, >> >>>> Thanks for your reply. >> >>>> >> >>>> >> >>>> >> >>>> Yes, I managed to set the textfont of a btn or fld to one of the >> >>>> fonts available in the fontnames, but I still can't figure how to >> >>>> use any >> >> other >> >>>> ttf font... load font file "nameofyourfont.ttf" -> returns an error >> >>>> I >> >>>> tried load URL "nameofyourfont.ttf", it works, but then the textfont >> >>>> property isn't updated... >> >>>> >> >>>> On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode wrote: >> >>>> >> >>>> >> >>>>> With on-rev, I put up this script.. >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> > >>>>> create button "mybtn" >> >>>>> >> >>>>> repeat for each line tLIne in the fontnames -- will make 1 png >> >>>>> per font >> >>>>> >> >>>>> set the label of btn "mybtn" to tLine set the textfont of button >> >>>>> "mybtn" >> >>>>> to tLine set the width of button "mybtn" to the formattedwidth of >> >>>>> button "mybtn" + 5 >> >>>>> >> >>>>> >> >>>>> >> >>>>> export snapshot from button "mybtn" to file (tLine & ".png") as >> >>>>> PNG >> >>>>> >> >>>>> >> >>>>> put the textfont of button "mybtn" && "> >>>>> & quote & ">
" & cr >> >>>>> end repeat ?> >> >>>>> >> >>>>> >> >>>>> And it works fine, with the exception of fonts with a - in the >> >>>>> name. All >> >>>>> of them are Hershey fonts, so not sure if its the font family that >> >>>>> is broken, or the dashes causing the issue. >> >>>>> >> >>>>> If you have a ttf font file to use, you can probably put it on >> >>>>> your server next to your script and: load font file >> >>>>> "nameofyourfont.ttf" >> >>>>> and >> >>>> then >> >>>>> set the textfont to "nameofyourfont" and it will likely work. >> >>>>> >> >>>>> To see my script in action, check here: >> >>>>> http://guidezone.info/fonttest.lc >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via use-livecode < >> >>>>> use-livecode at lists.runrev.com> wrote: >> >>>>> >> >>>>>> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>>> Hello list >> >>>>>>> How can I load ttf font files with LC server, at least version >> >>>>>>> 7.1 >> >>>>>>> available on my on-rev account ? Neither "revFontLoad" nor >> >>>>>>> "start using >> >>>>>>> font file" seem to work... And the list of available fonts >> >>>>>>> returned by "the fontNames" is quite limited... >> >>>>>>> >> >>>>>>> Thanks in advance. >> >>>>>>> jbv >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>> Does on-rev run on Linux? If you create a directory called >> >>>>>> '.fonts' >> >>>>>> under your user name and install the fonts you want to use in >> >>>>>> your images in that directory, LiveCode will find them. >> >>>>>> >> >>>>>> A quick test shows this to be true using LC Server 8.1.4, but >> >>>>>> you may have to do some experimenting to get them working in a >> >>>>>> script accessed through your web server. Executing a script to >> >>>>>> show the fontnames works from the command line but without >> >>>>>> having done any real investigating, I have to admit it's not >> >>>>>> working when accessed through my server. This isn't an on-rev >> >>>>>> nor an Apache server so ymmv. If you decide to go the standalone >> >>>>>> route, you should be able to install your fonts this way to use >> >>>>>> them in the standalone. >> >>>>>> >> >>>>>> Good luck! >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> Warren >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> _______________________________________________ >> >>>>>> use-livecode mailing list use-livecode at lists.runrev.com Please >> >>>>>> visit >> >>>>>> >> >>>> this >> >>>>>> url to subscribe, unsubscribe and manage your subscription >> >>>>>> preferences: >> >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>> _______________________________________________ >> >>>>> use-livecode mailing list use-livecode at lists.runrev.com Please >> >>>>> visit >> >>>> this >> >>>>> url to subscribe, unsubscribe and manage your subscription >> >>>>> preferences: >> >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>> >> >>>> >> >>>> >> >>>> _______________________________________________ >> >>>> use-livecode mailing list use-livecode at lists.runrev.com Please visit >> >>>> >> >> this >> >>>> url to subscribe, unsubscribe and manage your subscription >> >>>> preferences: >> >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >>>> >> >>>> >> >>>> >> >>> _______________________________________________ >> >>> use-livecode mailing list use-livecode at lists.runrev.com Please visit >> >> this >> >>> url to subscribe, unsubscribe and manage your subscription >> >>> preferences: >> >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >>> >> >>> >> >>> >> >> >> >> >> >> >> >> _______________________________________________ >> >> use-livecode mailing list use-livecode at lists.runrev.com Please visit >> this >> >> url to subscribe, unsubscribe and manage your subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> >> > _______________________________________________ >> > use-livecode mailing list use-livecode at lists.runrev.com Please visit >> this >> > url to subscribe, unsubscribe and manage your subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> > >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Mar 6 11:38:21 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 6 Mar 2018 09:38:21 -0700 Subject: Overwriting a file on a server In-Reply-To: <3dddfdf1-8de4-bca7-7d7c-4adebca20e9b@fourthworld.com> References: <2628C91E-D979-4C43-81C4-C27101CD2105@mac.com> <3dddfdf1-8de4-bca7-7d7c-4adebca20e9b@fourthworld.com> Message-ID: The specific lesson for lc server file uploads is here: http://lessons.livecode.com/m/4070/l/40708-how-to-upload-a-file-with-livecode-server but as mentioned, setup https first! On Tue, Mar 6, 2018 at 9:33 AM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Graham Samuel wrote: > > > However, I don?t seem to be able to mimic what my FTP software > > (Transmit on the Mac, or FileZilla) can do, which is to easily delete > > a file on a server - the file in question is part of a web site > > hosted by DreamHost. I just want to use the URL functionality to do > > this, as discussed in my conversation below, but I always get 405 > > (http) or 530 (ftp). I have a vague suspicion that I should be > > transmitting my credentials to the server, which of course I did when > > I set up my FTP client, but I have absolutely no idea how to do this. > > > > Many members of this list must have mucked around with files on a > > server - can someone point me to a tutorial on all this? > > If there were, it would not be a short one. > > If you could delete a file via HTTP alone, then anyone with a browser > could delete files on your server. > > FTP is unsafe to use on the Internet, as it sends passwords in clear text. > > You could consider FTPS or SFTP, which are not available in the Community > Edition but are in others via tsNet - but not without risk: > > FTP and its secure variants are designed for ad hoc management of remote > file stores. You can delete the file in question, but also any other, and > can modify anything on the server in any way you like. > > This is useful in tools like Filezilla, where the password is only stored > on your own computer. > > But if you hard-wire the password in a script, and that script is part of > a publicly-distributed app, a memory dump can reveal the key to having > complete control over everything on your server. > > The most common way for apps to perform write tasks on servers is through > an HTTP API, which would require something on the server to process the > requests. That something can be PHP, Python, LiveCode Server, or other > languages that work well with CGI. > > You'd still want some way to authenticate the request, but since it's used > only in a server script you write the scope of what can be done with it is > much more limited. > > And of course that assumes your web server is using HTTPS so credentials > can be sent over secured connection, but given the many benefits of HTTPS > and the free availability of SSL certs via the Let's Encrypt project > (Dreamhost has a convenient option for Let's Encrypt in their control > panel) I'm hoping we can assume all web servers managed by developers > already have or will soon have HTTPS in place. > > A tutorial for getting started with LiveCode Server is here: > https://livecode.com/resources/guides/server/ > > I wish I had a one-liner solution for you. But in the hostile environment > of the Internet, writing network applications requires much more diligence > than we used to enjoy back in the day. > > -- > 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 jacque at hyperactivesw.com Tue Mar 6 16:30:56 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 6 Mar 2018 15:30:56 -0600 Subject: Get URL anomaly In-Reply-To: References: <0F73276A-4C58-4C2C-88B1-D8F6F9FAF39C@mac.com> <6E85DDDF-6126-4DC6-A4E6-ECAAC17A8751@techstrategies.com.au> Message-ID: <788def76-b492-f909-5756-5c007d2f4097@hyperactivesw.com> On 3/6/18 8:56 AM, Graham Samuel via use-livecode wrote: > I was relying on the Standalone Application Settings option ?search for required inclusions?. I always use manual inclusions for that reason. As soon as I add a feature to a project I also add it to the inclusions so I won't forget. TSNet piggybacks on libURL ("internet") so that's why they're both necessary. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From livfoss at mac.com Tue Mar 6 17:08:31 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 06 Mar 2018 23:08:31 +0100 Subject: Get URL anomaly In-Reply-To: <788def76-b492-f909-5756-5c007d2f4097@hyperactivesw.com> References: <0F73276A-4C58-4C2C-88B1-D8F6F9FAF39C@mac.com> <6E85DDDF-6126-4DC6-A4E6-ECAAC17A8751@techstrategies.com.au> <788def76-b492-f909-5756-5c007d2f4097@hyperactivesw.com> Message-ID: <6FDDE6A2-3868-4AAE-8989-3BA5BCE40D95@mac.com> Thanks Jacque - since TSNet is an enforced presence on all commercial versions of LC, I wonder why libURL isn?t automatically included even in apps that don?t appear to be using internet access. It?s a gotcha that is likely to bother people apart from me, IMHO. Maybe ?search for inclusions? should be deprecated. Anyway thanks for the explanation. Graham > On 6 Mar 2018, at 22:30, J. Landman Gay via use-livecode wrote: > > On 3/6/18 8:56 AM, Graham Samuel via use-livecode wrote: >> I was relying on the Standalone Application Settings option ?search for required inclusions?. > > I always use manual inclusions for that reason. As soon as I add a feature to a project I also add it to the inclusions so I won't forget. > > TSNet piggybacks on libURL ("internet") so that's why they're both necessary. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From livfoss at mac.com Tue Mar 6 17:11:33 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 06 Mar 2018 23:11:33 +0100 Subject: Overwriting a file on a server In-Reply-To: References: <2628C91E-D979-4C43-81C4-C27101CD2105@mac.com> <3dddfdf1-8de4-bca7-7d7c-4adebca20e9b@fourthworld.com> Message-ID: OK, I?ll be looking at it: I was not planning to use LiveCode server for this task, although as a matter of fact I do have a copy on the site in question for other purposes. Thanks to you and to Richard G. I?ll report back when I?ve sorted it out. Graham > On 6 Mar 2018, at 17:38, Mike Bonner via use-livecode wrote: > > The specific lesson for lc server file uploads is here: > http://lessons.livecode.com/m/4070/l/40708-how-to-upload-a-file-with-livecode-server > > but as mentioned, setup https first! > > On Tue, Mar 6, 2018 at 9:33 AM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Graham Samuel wrote: >> >>> However, I don?t seem to be able to mimic what my FTP software >>> (Transmit on the Mac, or FileZilla) can do, which is to easily delete >>> a file on a server - the file in question is part of a web site >>> hosted by DreamHost. I just want to use the URL functionality to do >>> this, as discussed in my conversation below, but I always get 405 >>> (http) or 530 (ftp). I have a vague suspicion that I should be >>> transmitting my credentials to the server, which of course I did when >>> I set up my FTP client, but I have absolutely no idea how to do this. >>> >>> Many members of this list must have mucked around with files on a >>> server - can someone point me to a tutorial on all this? >> >> If there were, it would not be a short one. >> >> If you could delete a file via HTTP alone, then anyone with a browser >> could delete files on your server. >> >> FTP is unsafe to use on the Internet, as it sends passwords in clear text. >> >> You could consider FTPS or SFTP, which are not available in the Community >> Edition but are in others via tsNet - but not without risk: >> >> FTP and its secure variants are designed for ad hoc management of remote >> file stores. You can delete the file in question, but also any other, and >> can modify anything on the server in any way you like. >> >> This is useful in tools like Filezilla, where the password is only stored >> on your own computer. >> >> But if you hard-wire the password in a script, and that script is part of >> a publicly-distributed app, a memory dump can reveal the key to having >> complete control over everything on your server. >> >> The most common way for apps to perform write tasks on servers is through >> an HTTP API, which would require something on the server to process the >> requests. That something can be PHP, Python, LiveCode Server, or other >> languages that work well with CGI. >> >> You'd still want some way to authenticate the request, but since it's used >> only in a server script you write the scope of what can be done with it is >> much more limited. >> >> And of course that assumes your web server is using HTTPS so credentials >> can be sent over secured connection, but given the many benefits of HTTPS >> and the free availability of SSL certs via the Let's Encrypt project >> (Dreamhost has a convenient option for Let's Encrypt in their control >> panel) I'm hoping we can assume all web servers managed by developers >> already have or will soon have HTTPS in place. >> >> A tutorial for getting started with LiveCode Server is here: >> https://livecode.com/resources/guides/server/ >> >> I wish I had a one-liner solution for you. But in the hostile environment >> of the Internet, writing network applications requires much more diligence >> than we used to enjoy back in the day. >> >> -- >> 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 jacque at hyperactivesw.com Tue Mar 6 17:57:08 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 6 Mar 2018 16:57:08 -0600 Subject: Get URL anomaly In-Reply-To: <6FDDE6A2-3868-4AAE-8989-3BA5BCE40D95@mac.com> References: <0F73276A-4C58-4C2C-88B1-D8F6F9FAF39C@mac.com> <6E85DDDF-6126-4DC6-A4E6-ECAAC17A8751@techstrategies.com.au> <788def76-b492-f909-5756-5c007d2f4097@hyperactivesw.com> <6FDDE6A2-3868-4AAE-8989-3BA5BCE40D95@mac.com> Message-ID: <68f8b8dc-d147-c4f9-8301-bc5f88670087@hyperactivesw.com> On 3/6/18 4:08 PM, Graham Samuel via use-livecode wrote: > since TSNet is an enforced presence on all commercial versions of LC, I wonder why libURL isn?t automatically included even in apps that don?t appear to be using internet access. That seems entirely reasonable, you might want to write that up in the QCC. The omission may have just been an oversight. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brahma at hindu.org Tue Mar 6 18:11:53 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 6 Mar 2018 23:11:53 +0000 Subject: Horizontal and Portrait Scrolling on Mobile Message-ID: I am about to embark a mission to solve a design problem in Livecode The model is Spotify. The channels or collections, a single screen with 1) Scrolling labels - not scrolling left with right, maintenance fixed position (left to right) but scrolling top to bottom. 2) "Collections" consisting square/label (think "album cover") scrolling left to right 3) Series of collections, that you scroll up (or down), top to bottom Easier if you see Spotify? is a common user case scenario you scroll up and down the whole area, but the label stick their horizontal position, but will up and down Then when user stops (scrolling up are down) they can scroll sideways to see the collections ------------------ GROUP(s) --------------------- Talk By Wizard # stays horizontally [wizard1] [wizard2] [wizard3] [wizard4] [wizard5] [wizard6] # each of these album covers with left and right Music for Alpha alpha1] [alpha2] [alpha3] [alpha4] [alpha5] [alpha6] Sound from the Nanosphere [nanosphere1] [nanosphere2] [nanosphere3] [nanosphere4] [nanosphere5] [nanosphere6] -------------------------------------------------------- I have thought about it? and wonder if it can even be done in LiveCode BR From livfoss at mac.com Tue Mar 6 18:13:27 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 07 Mar 2018 00:13:27 +0100 Subject: Overwriting a file on a server In-Reply-To: References: <2628C91E-D979-4C43-81C4-C27101CD2105@mac.com> <3dddfdf1-8de4-bca7-7d7c-4adebca20e9b@fourthworld.com> Message-ID: <64BFF600-0BB9-418E-894D-D86DAA467207@mac.com> In case anyone was holding their breath, I have just realised that the data I wanted to store on the server can be stored elsewhere (in the application data area, as a property of a stack). So I won?t be in such a hurry to learn this stuff, though I know its value and will do so eventually. Graham I wrote just now: > OK, I?ll be looking at it: I was not planning to use LiveCode server for this task, although as a matter of fact I do have a copy on the site in question for other purposes. > > Thanks to you and to Richard G. I?ll report back when I?ve sorted it out. > > Graham > >> On 6 Mar 2018, at 17:38, Mike Bonner via use-livecode wrote: >> >> The specific lesson for lc server file uploads is here: >> http://lessons.livecode.com/m/4070/l/40708-how-to-upload-a-file-with-livecode-server >> >> but as mentioned, setup https first! >> >> On Tue, Mar 6, 2018 at 9:33 AM, Richard Gaskin via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Graham Samuel wrote: >>> >>>> However, I don?t seem to be able to mimic what my FTP software >>>> (Transmit on the Mac, or FileZilla) can do, which is to easily delete >>>> a file on a server - the file in question is part of a web site >>>> hosted by DreamHost. I just want to use the URL functionality to do >>>> this, as discussed in my conversation below, but I always get 405 >>>> (http) or 530 (ftp). I have a vague suspicion that I should be >>>> transmitting my credentials to the server, which of course I did when >>>> I set up my FTP client, but I have absolutely no idea how to do this. >>>> >>>> Many members of this list must have mucked around with files on a >>>> server - can someone point me to a tutorial on all this? >>> >>> If there were, it would not be a short one. >>> >>> If you could delete a file via HTTP alone, then anyone with a browser >>> could delete files on your server. >>> >>> FTP is unsafe to use on the Internet, as it sends passwords in clear text. >>> >>> You could consider FTPS or SFTP, which are not available in the Community >>> Edition but are in others via tsNet - but not without risk: >>> >>> FTP and its secure variants are designed for ad hoc management of remote >>> file stores. You can delete the file in question, but also any other, and >>> can modify anything on the server in any way you like. >>> >>> This is useful in tools like Filezilla, where the password is only stored >>> on your own computer. >>> >>> But if you hard-wire the password in a script, and that script is part of >>> a publicly-distributed app, a memory dump can reveal the key to having >>> complete control over everything on your server. >>> >>> The most common way for apps to perform write tasks on servers is through >>> an HTTP API, which would require something on the server to process the >>> requests. That something can be PHP, Python, LiveCode Server, or other >>> languages that work well with CGI. >>> >>> You'd still want some way to authenticate the request, but since it's used >>> only in a server script you write the scope of what can be done with it is >>> much more limited. >>> >>> And of course that assumes your web server is using HTTPS so credentials >>> can be sent over secured connection, but given the many benefits of HTTPS >>> and the free availability of SSL certs via the Let's Encrypt project >>> (Dreamhost has a convenient option for Let's Encrypt in their control >>> panel) I'm hoping we can assume all web servers managed by developers >>> already have or will soon have HTTPS in place. >>> >>> A tutorial for getting started with LiveCode Server is here: >>> https://livecode.com/resources/guides/server/ >>> >>> I wish I had a one-liner solution for you. But in the hostile environment >>> of the Internet, writing network applications requires much more diligence >>> than we used to enjoy back in the day. >>> >>> -- >>> 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 jacque at hyperactivesw.com Tue Mar 6 19:03:35 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 6 Mar 2018 18:03:35 -0600 Subject: Forcing a device update Message-ID: Is there a way to force the IDE to look for attached mobile devices without restarting LiveCode? Typically I have half a dozen scripts open and I'm doing multiple test builds to a cabled phone. I edit some scripts and during that time the phone goes into low-power mode (not asleep or locked.) When I tap it to show the launcher again, LC has lost the device and I have to restart LC to make it scan again. I can use Terminal to rescan if necessary, but even after it sees the phone, LC still doesn't. I need a message box command to make LC "see" the device again. Restarting loses all my open script windows and I have to relaunch the stack and set everything up again. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brian at milby7.com Tue Mar 6 19:05:22 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 07 Mar 2018 00:05:22 +0000 Subject: Horizontal and Portrait Scrolling on Mobile In-Reply-To: References: Message-ID: Netflix is probably another example of something like this. On the home screen there are sections (categories) that scroll vertically and when stopped each row of movies will scroll horizontally. You can even move multiple rows at the same time. On Tue, Mar 6, 2018 at 5:12 PM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > I am about to embark a mission to solve a design problem in Livecode > > The model is Spotify. The channels or collections, a single screen with > > 1) Scrolling labels - not scrolling left with right, maintenance fixed > position (left to right) but scrolling top to bottom. > > 2) "Collections" consisting square/label (think "album cover") scrolling > left to right > > 3) Series of collections, that you scroll up (or down), top to bottom > > Easier if you see Spotify? > is a common user case scenario > > you scroll up and down the whole area, > but the label stick their horizontal position, but will up and down > > Then when user stops (scrolling up are down) they can scroll sideways to > see the collections > ------------------ GROUP(s) --------------------- > > Talk By Wizard > # stays horizontally > > [wizard1] [wizard2] [wizard3] [wizard4] [wizard5] [wizard6] > # each of these album covers with left and right > > Music for Alpha > alpha1] [alpha2] [alpha3] [alpha4] [alpha5] [alpha6] > > Sound from the Nanosphere > [nanosphere1] [nanosphere2] [nanosphere3] [nanosphere4] [nanosphere5] > [nanosphere6] > > -------------------------------------------------------- > > I have thought about it? and wonder if it can even be done in LiveCode > > 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 chipsm at themartinz.com Tue Mar 6 21:43:26 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Tue, 6 Mar 2018 18:43:26 -0800 Subject: Android Studio how to create AVD? In-Reply-To: References: <20180115135050.Horde.AGCVxX7_Qlb-WTiJi8X4heT@ua850258.serversignin.com> <18374EA3-AA01-4B35-804D-E815390AD392@bobhall.net> Message-ID: <101d01d3b5be$11fa8200$35ef8600$@themartinz.com> The links that you provided don't seem to work. I get a 404 error -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of panagiotis merakos via use-livecode Sent: Friday, March 02, 2018 4:03 AM To: How to use LiveCode Cc: panagiotis merakos Subject: Re: Android Studio how to create AVD? Hi Bob, Just a suggestion, I personally find it easier to download an install just the Android SDK Tools, not Android Studio. The problem is that the newest versions of the Android SDK Tools don't work well with LC, because you can mainly run commands from the command line instead of having a UI for Android AVD Manager and Android SDK Manager etc So you have to download an older version of the Android SDK Tools. I have installed version 19 and it works like a charm with all LC versions I have tried (from 6.7.11 to 9.0) The link is a bit difficult to find, it has this format: http://dl-ssl.google.com/android/repository/tools_r[rev]-windows.zip http://dl-ssl.google.com/android/repository/tools_r[rev]-linux.zip http://dl-ssl.google.com/android/repository/tools_r[rev]-macosx.zip For example http://dl-ssl.google.com/android/repository/tools_r19-macosx.zip for version 19 on Mac. On other machines I have installed more recent versions, I *think* 20-23, and they work fine too. After downloading an older version of the Android Tools, use the instructions in this lesson http://lessons.livecode.com/m/2571/l/27389-how-do-i-become-an-android-developer-on-a-mac to download the other dependencies (SDK Platform Android 4.0.3 package) using the Android SDK Manager and configure Android AVD Manager. Hope this helps, Panos -- On Fri, Mar 2, 2018 at 11:39 AM, bob--- via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > > Once you've done that you can choose Tools > Android > AVD Manager > > and create a device. You'll need to choose something with armeabi > architecture, > > not x86, when you create the device. Once it has booted up you > > should see it in the target list. > > > > Thanks for the clearing this up Ali. When I go to the Tools menu > Android is not listed. BUT, you gave me a hint as to what was up. I > did some searches and it turns out that there?s still an issue with > the default installation of Android Studio ? apparently, in Googles > infinite wisdom, the Android menu is not installed with the default > configuration (dope slap to Google). You need to select custom install > and add the AVD and other options for installation. > > I had 2 options to get things working. Completely uninstall Android > Studio (not something I wanted to tackle since it?s not just uninstall > the app and I use JetBrains for other dev work) or let AStudio fix > itself. I choose Option 2. > > Option 1 Uninstall: https://stackoverflow.com/ > questions/47272832/no-android-option-in-tool-menu-and-no-avd-manager < > https://stackoverflow.com/questions/47272832/no-android- > option-in-tool-menu-and-no-avd-manager> option-in-tool-menu-and-no-avd-manager> similar > Option 2 Let AStudio fix itself: https://stackoverflow.com/ > questions/46948322/how-to-open-avd-manager-in-android-studio-3-0-versi > on < > https://stackoverflow.com/questions/46948322/how-to- > open-avd-manager-in-android-studio-3-0-version> > > Not out of the woods yet but I do have the Android menu now (YIPEE!). > > I?ve created a AVD (Nexus 5 API 15 IceCreamSandwidch). I had installed > this from the configuration menu of AStudio. When I tried to created > an AVD I got an error: > "Emulator: emulator: ERROR: This AVD's configuration is missing a > kernel file! Please ensure the file "kernel-qemu" is in the same > location as your system image.? > "Emulator: emulator: ERROR: ANDROID_SDK_ROOT is undefined? > > I went back and created a API 17 based AVD. This device is able to > boot after I downloaded the image. > > Back to LC. Development->Test Target and select the Android emulator. > Then > Development->Test. > > LC: ?Unable to build app for testing: could not compile Application class? > > Troubleshooting continues but thanks for moving me forward. > > Bob H. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Tue Mar 6 21:49:57 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 7 Mar 2018 12:49:57 +1000 Subject: Overwriting a file on a server In-Reply-To: <3dddfdf1-8de4-bca7-7d7c-4adebca20e9b@fourthworld.com> References: <2628C91E-D979-4C43-81C4-C27101CD2105@mac.com> <3dddfdf1-8de4-bca7-7d7c-4adebca20e9b@fourthworld.com> Message-ID: Hi, > Graham Samuel wrote: > >> However, I don?t seem to be able to mimic what my FTP software >> (Transmit on the Mac, or FileZilla) can do, which is to easily delete >> a file on a server - the file in question is part of a web site >> hosted by DreamHost. I just want to use the URL functionality to do >> this, as discussed in my conversation below, but I always get 405 >> (http) or 530 (ftp). I have a vague suspicion that I should be >> transmitting my credentials to the server, which of course I did when >> I set up my FTP client, but I have absolutely no idea how to do this. Using delete via HTTP will generally fail unless the HTTP server and website are specifically configured to allow it (it would usually also require credentials). Some HTTP APIs do allow the DELETE method. I expect this is not what you are after. :-) As you mentioned above, Transmit would be doing this via FTP, but you would need to send your credentials as part of the request. You can do this with put URL and delete URL (for any supported protocol) by encoding them into the URL that you use like this: put urlEncode(?username?) into tUser put urlEncode(?password?) into tPass put ?ftp://? & tUser & ?:? & tPass & ?@ftp.mydomain.com/path/to/file.txt? into tUrl I expect that would likely solve your issue, but as Richard has mentioned, there are security issues to be considered that are all dependant on the environment that you are using your application in. Cheers. Charles From bobsneidar at iotecdigital.com Tue Mar 6 22:34:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Mar 2018 03:34:38 +0000 Subject: tsNet or not tsNet? In-Reply-To: <4DEF2764-5F3E-410A-887B-0BE9917B094D@mac.com> References: <4DEF2764-5F3E-410A-887B-0BE9917B094D@mac.com> Message-ID: <2DE7FE67-0449-428C-A596-F9AE2442E381@iotecdigital.com> I am getting the impression that any calls to network functions in your app will cause tsNet to be included (assuming you have auto detect on). I could be wrong. > On Mar 5, 2018, at 02:18 , Graham Samuel via use-livecode wrote: > > [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] > > This message may be a repeat. If you see two copies on the list, I apologise. > > === > > I?ve been executing this line of script in an app made on a Mac with LC 9.0.0 dp11 > get URL ?http://www.myserver.com/mytextfile .txt > > It works fine, but I also wanted to detect what happens when the connection can't be established, so I made the command fail by switching off internet access on my machine. I got an error in ?the result?, as expected. Or at least I got one when the line was executed in the IDE, and this was a tsNet error. As I had not initialised tsNet in my script - according to the dictionary, this **must** be done before tsNet functions are used - I concluded that the IDE had done it for me. > > Fair enough, but I then reasoned that if I wanted to see the same kind of explicit error messages in my standalone, I would have to include a call to tsNetInit in my script. However, I created a little test app which **doesn?t** make any tsNet calls, certainly not initialising the package, but I still get a tsNet style error, e.g. > >> tsneterr: (6) Could not resolve host: www.myserver.com > > So, what?s going on? Is tsNet now always included in a standalone, and if so, how does it get initialised? > > Puzzled, not for the first time. > > 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 bobsneidar at iotecdigital.com Tue Mar 6 22:36:57 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Mar 2018 03:36:57 +0000 Subject: [Completely OT] Withdrawal symptoms from Slashdot In-Reply-To: <9826bea6-8dac-1445-a0d5-6238e4ea8cf0@sonic.net> References: <5A9B730F.1060009@pobox.com> <9826bea6-8dac-1445-a0d5-6238e4ea8cf0@sonic.net> Message-ID: <4AFA00E3-2103-455E-9798-73BC63DEBC6C@iotecdigital.com> The mark of a good IT staff. :-) Bob S > On Mar 5, 2018, at 08:49 , Mark Wieder via use-livecode wrote: > > Slashdot was having some hiccups transferring to new servers. > They seem to have recovered nicely now. > > -- > Mark Wieder > ahsoftware at gmail.com From bobsneidar at iotecdigital.com Tue Mar 6 22:40:47 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Mar 2018 03:40:47 +0000 Subject: Get URL anomaly In-Reply-To: References: <0F73276A-4C58-4C2C-88B1-D8F6F9FAF39C@mac.com> <6E85DDDF-6126-4DC6-A4E6-ECAAC17A8751@techstrategies.com.au> Message-ID: <9548D187-116A-4F31-85CD-99F50810166E@iotecdigital.com> Lately I've found that to be iffy. I just manually select what I know I need. Bob S > On Mar 6, 2018, at 06:56 , Graham Samuel via use-livecode wrote: > > Hi Charles - thanks for your help. I immediately tried your modification (use ?put? and avoid the variable ?it?) but it made no difference. However, I think I have solved the problem: > > I was relying on the Standalone Application Settings option ?search for required inclusions?. From bobsneidar at iotecdigital.com Tue Mar 6 22:42:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Mar 2018 03:42:03 +0000 Subject: Overwriting a file on a server In-Reply-To: References: Message-ID: <2F4F9537-92AB-4000-8907-1EC88178A359@iotecdigital.com> if there is a file? Bob S > On Mar 5, 2018, at 05:04 , Graham Samuel via use-livecode wrote: > > How can I grow my own, by detecting the existing file and then overwriting it anyway? From bobsneidar at iotecdigital.com Tue Mar 6 22:43:11 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Mar 2018 03:43:11 +0000 Subject: Overwriting a file on a server In-Reply-To: <2F4F9537-92AB-4000-8907-1EC88178A359@iotecdigital.com> References: <2F4F9537-92AB-4000-8907-1EC88178A359@iotecdigital.com> Message-ID: <6F4C2770-9813-44AB-9888-3ECDB28086D1@iotecdigital.com> Oh, by server, you mean WEB server. NVM. Bob S > On Mar 6, 2018, at 19:42 , Bob Sneidar via use-livecode wrote: > > [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] > > if there is a file? > > Bob S > > >> On Mar 5, 2018, at 05:04 , Graham Samuel via use-livecode wrote: >> >> How can I grow my own, by detecting the existing file and then overwriting it anyway? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Mar 7 03:15:31 2018 From: jbv at souslelogo.com (jbv) Date: Wed, 7 Mar 2018 09:15:31 +0100 Subject: LC server and fonts In-Reply-To: References: <83d3b44c-b1e0-0221-47c6-e570df1fb459@warrensweb.us> <938fbff00473d21b75eceecec9b59743.squirrel@sage.on-rev.com> Message-ID: <7c31ed6d28aa7f993153b007534d5646.squirrel@sage.on-rev.com> Mike, Thanks for your help. Yes, I will contact on-rev support and I will let you know how it goes. Best. On Tue, March 6, 2018 5:33 pm, Mike Bonner via use-livecode wrote: > Well, it looks like fontconfig is installed in on-rev, but neither > /home//.fonts or /home//.local/share/fonts are being updated > automatically. I tried to run fc-cache -f -v /home//.fonts and the > font is indeed found, but I don't think I have all the required support > directories, so there is no writable place to actually store the cache > data. The command fails because of this. If it were me, I'd contact > on-rev and see if they could help set things up to actually look at a > fonts directory in your account and add any fonts there. All the software > seems to be installed to do this, I just don't know enough about > fontconfig to force it from the user side. (It should be possible, but > again I don't know enough about fontconfig to know what to do yet) > > As for start using font file.. Yep, it fails every time with an error > message that is just a bit lacking. Getting on-rev/fontconfig set up to > handle this for you sounds like the way to go. > > On Tue, Mar 6, 2018 at 7:41 AM, Mike Bonner wrote: > > >> Sure, i'll dig up a font file and try. >> >> >> On Tue, Mar 6, 2018 at 7:37 AM, jbv via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> "start using font file.." is the first option that I tried, but >>> unfortunately it returns "can't load font file"... The ttf file is on >>> the server next to my script, and I have also tried with the full >>> absolute path for that ttf file. Could you please make a test on your >>> own on-rev account with any ttf file (different from the default fonts >>> in fontnames) and let us know of it works ? >>> >>> Thanks in advance. >>> >>> >>> On Tue, March 6, 2018 3:03 pm, Mike Bonner via use-livecode wrote: >>> >>>> My apologies.. Had a brain fritz, it should be "start using font >>>> file.." load url would just load whatever url into cache and not >>>> font it up. >>>> >>>> On Tue, Mar 6, 2018 at 1:07 AM, jbv via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> When using >>>>> load font file "nameofyourfont.ttf" the result contains Handler: >>>>> can't find handler (file) >>>>> >>>>> It looks like "load" is accepted only in the form "load URL"... >>>>> >>>>> >>>>> >>>>> On Mon, March 5, 2018 9:28 pm, Mike Bonner via use-livecode >>>>> wrote: >>>>> >>>>> >>>>>> Hmm. Not sure what to do about loading a fontfile then. Out of >>>>>> curiosity, what is the error? >>>>>> >>>>>> On Mon, Mar 5, 2018 at 11:39 AM, jbv via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>>> Hi Mike, >>>>>>> Thanks for your reply. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Yes, I managed to set the textfont of a btn or fld to one of >>>>>>> the fonts available in the fontnames, but I still can't figure >>>>>>> how to use any >>>>> other >>>>>>> ttf font... load font file "nameofyourfont.ttf" -> returns an >>>>>>> error I >>>>>>> tried load URL "nameofyourfont.ttf", it works, but then the >>>>>>> textfont property isn't updated... >>>>>>> >>>>>>> On Mon, March 5, 2018 3:59 pm, Mike Bonner via use-livecode >>>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> With on-rev, I put up this script.. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> create button "mybtn" >>>>>>>> >>>>>>>> repeat for each line tLIne in the fontnames -- will make 1 >>>>>>>> png per font >>>>>>>> >>>>>>>> set the label of btn "mybtn" to tLine set the textfont of >>>>>>>> button "mybtn" >>>>>>>> to tLine set the width of button "mybtn" to the >>>>>>>> formattedwidth of button "mybtn" + 5 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> export snapshot from button "mybtn" to file (tLine & >>>>>>>> ".png") as >>>>>>>> PNG >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> put the textfont of button "mybtn" && ">>>>>>> & quote & ">
" & cr >>>>>>>> end repeat ?> >>>>>>>> >>>>>>>> >>>>>>>> And it works fine, with the exception of fonts with a - in >>>>>>>> the name. All of them are Hershey fonts, so not sure if its >>>>>>>> the font family that is broken, or the dashes causing the >>>>>>>> issue. >>>>>>>> >>>>>>>> If you have a ttf font file to use, you can probably put it >>>>>>>> on your server next to your script and: load font file >>>>>>>> "nameofyourfont.ttf" >>>>>>>> and >>>>>>> then >>>>>>>> set the textfont to "nameofyourfont" and it will likely >>>>>>>> work. >>>>>>>> >>>>>>>> To see my script in action, check here: >>>>>>>> http://guidezone.info/fonttest.lc >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Sun, Mar 4, 2018 at 8:21 AM, Warren Samples via >>>>>>>> use-livecode < use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>>> On 03/02/2018 04:14 AM, jbv via use-livecode wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> Hello list >>>>>>>>>> How can I load ttf font files with LC server, at least >>>>>>>>>> version 7.1 >>>>>>>>>> available on my on-rev account ? Neither "revFontLoad" >>>>>>>>>> nor "start using >>>>>>>>>> font file" seem to work... And the list of available >>>>>>>>>> fonts returned by "the fontNames" is quite limited... >>>>>>>>>> >>>>>>>>>> Thanks in advance. >>>>>>>>>> jbv >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> Does on-rev run on Linux? If you create a directory >>>>>>>>> called '.fonts' >>>>>>>>> under your user name and install the fonts you want to use >>>>>>>>> in your images in that directory, LiveCode will find them. >>>>>>>>> >>>>>>>>> >>>>>>>>> A quick test shows this to be true using LC Server 8.1.4, >>>>>>>>> but you may have to do some experimenting to get them >>>>>>>>> working in a script accessed through your web server. >>>>>>>>> Executing a script to >>>>>>>>> show the fontnames works from the command line but without >>>>>>>>> having done any real investigating, I have to admit it's >>>>>>>>> not working when accessed through my server. This isn't an >>>>>>>>> on-rev nor an Apache server so ymmv. If you decide to go >>>>>>>>> the standalone route, you should be able to install your >>>>>>>>> fonts this way to use them in the standalone. >>>>>>>>> >>>>>>>>> Good luck! >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Warren >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> use-livecode mailing list use-livecode at lists.runrev.com >>>>>>>>> Please >>>>>>>>> visit >>>>>>>>> >>>>>>> this >>>>>>>>> url to subscribe, unsubscribe and manage your >>>>>>>>> subscription preferences: >>>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list use-livecode at lists.runrev.com >>>>>>>> Please >>>>>>>> visit >>>>>>> this >>>>>>>> url to subscribe, unsubscribe and manage your subscription >>>>>>>> preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list use-livecode at lists.runrev.com Please >>>>>>> visit >>>>>>> >>>>> this >>>>>>> url to subscribe, unsubscribe and manage your subscription >>>>>>> preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list use-livecode at lists.runrev.com Please >>>>>> visit >>>>> this >>>>>> url to subscribe, unsubscribe and manage your subscription >>>>>> preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list use-livecode at lists.runrev.com Please >>>>> visit >>> this >>>>> url to subscribe, unsubscribe and manage your subscription >>>>> preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list use-livecode at lists.runrev.com Please visit >>>> >>> this >>>> url to subscribe, unsubscribe and manage your subscription >>>> preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list use-livecode at lists.runrev.com Please visit >>> this url to subscribe, unsubscribe and manage your subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> > _______________________________________________ > use-livecode mailing list use-livecode at lists.runrev.com Please visit this > url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From charles at techstrategies.com.au Wed Mar 7 05:20:08 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 7 Mar 2018 20:20:08 +1000 Subject: tsNet documentation Message-ID: <63D0D4F7-3C2B-465C-9C94-7C0E483C539F@techstrategies.com.au> Hi, Just a quick update to let everyone know that I have uploaded a series of lessons on tsNet to the LiveCode web site. You can view them at: http://lessons.livecode.com/m/4071/c/235433 I am continuing to upload more lessons as I have time so please let me know if there is any particular task that can be done with tsNet that you would like to see a lesson on. There is also now an online tsNet command reference guide for those who want an easily searchable format of all the tsNet commands that are available. You can find it at: https://www.techstrategies.com.au/tsnet-command-list/ Regards, Charles Warwick Tech Strategies From livfoss at mac.com Wed Mar 7 06:39:58 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 07 Mar 2018 12:39:58 +0100 Subject: Overwriting a file on a server In-Reply-To: <2F4F9537-92AB-4000-8907-1EC88178A359@iotecdigital.com> References: <2F4F9537-92AB-4000-8907-1EC88178A359@iotecdigital.com> Message-ID: <6CF16942-7DAE-4CEE-884C-C94FC7B66852@mac.com> Hi Bob Yes, that works - since the file is tiny, just trying to download it and seeing what you get works too (not a good strategy in general, I agree). The problem was the overwriting of the file - Richard G and other folks have pointed out that it would be extremely dangerous in the whole internet world if that were easy! I was in retrospect being extremely naive. What it?s done to me is to make me reconsider the way my app works, and I?ve chosen another way of dealing with my requirement by using local application storage. This just happens to work in my particular case. Cheers Graham > On 7 Mar 2018, at 04:42, Bob Sneidar via use-livecode wrote: > > if there is a file? > > Bob S > > >> On Mar 5, 2018, at 05:04 , Graham Samuel via use-livecode wrote: >> >> How can I grow my own, by detecting the existing file and then overwriting it anyway? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Mar 7 07:51:38 2018 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 7 Mar 2018 05:51:38 -0700 (MST) Subject: tsNet documentation In-Reply-To: <63D0D4F7-3C2B-465C-9C94-7C0E483C539F@techstrategies.com.au> References: <63D0D4F7-3C2B-465C-9C94-7C0E483C539F@techstrategies.com.au> Message-ID: <1520427098945-0.post@n4.nabble.com> Thank you Charles - these look really useful, they'll help me use your external better - smashing! As soon I have spare brain cells I'll view them all... Kind regards Dave ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From williamdesmet at gmail.com Wed Mar 7 09:40:58 2018 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 7 Mar 2018 15:40:58 +0100 Subject: Slide puzzle question Message-ID: Hi there, I am making a 9 piece slide puzzle. How many pieces should be in the right place at start to solve the puzzle? greetings, William From matthias_livecode_150811 at m-r-d.de Wed Mar 7 10:11:59 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 7 Mar 2018 16:11:59 +0100 Subject: tsNet documentation In-Reply-To: <63D0D4F7-3C2B-465C-9C94-7C0E483C539F@techstrategies.com.au> References: <63D0D4F7-3C2B-465C-9C94-7C0E483C539F@techstrategies.com.au> Message-ID: Charles, thank you very much for that. That is really very useful. Btw. does tsNet support Digest Access Authentication (DAA) (RFC 2617)? Regards, Matthias > Am 07.03.2018 um 11:20 schrieb Charles Warwick via use-livecode >: > > Hi, > > Just a quick update to let everyone know that I have uploaded a series of lessons on tsNet to the LiveCode web site. You can view them at: > > http://lessons.livecode.com/m/4071/c/235433 > > I am continuing to upload more lessons as I have time so please let me know if there is any particular task that can be done with tsNet that you would like to see a lesson on. > > There is also now an online tsNet command reference guide for those who want an easily searchable format of all the tsNet commands that are available. You can find it at: > > https://www.techstrategies.com.au/tsnet-command-list/ > > Regards, > > Charles Warwick > Tech Strategies > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 7 11:05:14 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 7 Mar 2018 08:05:14 -0800 Subject: Slide puzzle question In-Reply-To: References: Message-ID: <6489A7C2-A195-4E6E-B18A-58975DA35732@gmail.com> I'm not sure whether there is an answer in terms of pieces in place/out of place. I know that there are (I think three) different "position-spaces" where each space is unreachable from the others. The easy solution is to this problem is to start with the puzzle solved and quickly execute thirty or so moves at random, either visibly or with the screen locked. gc > On Mar 7, 2018, at 6:40 AM, William de Smet via use-livecode wrote: > > Hi there, > > I am making a 9 piece slide puzzle. > How many pieces should be in the right place at start to solve the puzzle? > > > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 7 11:22:02 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 7 Mar 2018 11:22:02 -0500 Subject: Slide puzzle question In-Reply-To: References: Message-ID: <001c01d3b630$6f765db0$4e631910$@net> I don't know about the 9 puzzle but I suspect it's like the 15 puzzle. The 15 puzzle and Rubics Cube have parity. If the 15 is out of parity it can never be solved. The same for Rubics Cube, if you say switch 2 edge pieces or rotate 1 corner piece it's not solvable. 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 de Smet via use-livecode Sent: Wednesday, March 07, 2018 9:41 AM To: How to use LiveCode Cc: William de Smet Subject: Slide puzzle question Hi there, I am making a 9 piece slide puzzle. How many pieces should be in the right place at start to solve the puzzle? greetings, William _______________________________________________ use-livecode mailing list use-livecode at 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 Wed Mar 7 11:25:52 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Mar 2018 16:25:52 +0000 Subject: Slide puzzle question In-Reply-To: <001c01d3b630$6f765db0$4e631910$@net> References: <001c01d3b630$6f765db0$4e631910$@net> Message-ID: I would love to give an out of parity Rubix Cube to one of those Rubix Cube savants and see how long it taked to figure out they cannot solve it! ;-P Bob S > On Mar 7, 2018, at 08:22 , Ralph DiMola via use-livecode wrote: > > I don't know about the 9 puzzle but I suspect it's like the 15 puzzle. The > 15 puzzle and Rubics Cube have parity. If the 15 is out of parity it can > never be solved. The same for Rubics Cube, if you say switch 2 edge pieces > or rotate 1 corner piece it's not solvable. > > Ralph DiMola From MikeKerner at roadrunner.com Wed Mar 7 15:30:11 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 7 Mar 2018 15:30:11 -0500 Subject: Issues with storage of data in stack Message-ID: I'm working on a session for next week's LCG. We are all working on fun super-advanced pushing-the-envelope things in LC, but I wanted to do something for the beginners who are watching LCG, and handling data seemed like an obvious choice. I have to admit, I haven't stored data in a stack in a long time, since the database options are so easy to use. If you're currently storing data in a stack, have you run into any issues on any platform with it, especially on mobile, for instance, where the rules can be a little weird? -- 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 roland.huettmann at gmail.com Wed Mar 7 15:49:00 2018 From: roland.huettmann at gmail.com (R.H.) Date: Wed, 7 Mar 2018 21:49:00 +0100 Subject: Standalone compile problem including more than two stack files to the mainstack Message-ID: Window 10, LC 8.1.9, Trying to compile a standalone with more than just one application file to the main file (mainfile = splash screen stack). I have a problem and working on this for many hours now. I am using a splash stack as the "main stack" for compilation and I am including the application stack using the dialogs in the "Stacks" pane of the "Standalone Application Settings" window. When I add this one application stack file all is fine. It compiles. Now I want to add a library stack using the same "Stacks" pane just adding this other stack to the same subfolder "resources" which also contains the app file. Compilation completely fails when adding this library stack (or any other stack file I tested). During such compile, only the resources folder is created and one of the included stacks is placed in there. Then the compilation process quits without error. I tried everything I could imagine to find out what is going wrong. Maybe there is some script error in the application file or the splash stack. But I have no idea as it all works in the IDE and it works in the limited setting just using this one app file. An also in debugging mode nothing can be detected. But somehow LiveCode does not like any additional brother or sister for my application file. When I do this with completely independent stack files it works though. I made some test stacks to find out whether is a general problem. But there... all is ok. Maybe someone had similar experiences? How can we check what is going wrong during compilation? I am at the end of my wisdom. Sigh. Roland From ambassador at fourthworld.com Wed Mar 7 18:05:39 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 7 Mar 2018 15:05:39 -0800 Subject: Issues with storage of data in stack In-Reply-To: References: Message-ID: <15379aa6-9c61-4dad-08c1-a82b04b42dc2@fourthworld.com> Mike Kerner wrote: > I have to admit, I haven't stored data in a stack in a long time, > since the database options are so easy to use. If you're currently > storing data in a stack, have you run into any issues on any platform > with it, especially on mobile, for instance, where the rules can be a > little weird? In fields, or custom props? -- 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 charles at techstrategies.com.au Thu Mar 8 00:21:16 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 8 Mar 2018 15:21:16 +1000 Subject: tsNet documentation In-Reply-To: References: <63D0D4F7-3C2B-465C-9C94-7C0E483C539F@techstrategies.com.au> Message-ID: Hi Matthias, Yes, it supports digest authentication. tsNet will automatically use the most secure method the server supports unless you force it to use basic authentication. Regards. Charles > On 8 Mar 2018, at 1:11 am, Matthias Rebbe via use-livecode wrote: > > Charles, > > thank you very much for that. That is really very useful. > > Btw. does tsNet support Digest Access Authentication (DAA) (RFC 2617)? > > Regards, > Matthias > > > >> Am 07.03.2018 um 11:20 schrieb Charles Warwick via use-livecode >: >> >> Hi, >> >> Just a quick update to let everyone know that I have uploaded a series of lessons on tsNet to the LiveCode web site. You can view them at: >> >> http://lessons.livecode.com/m/4071/c/235433 >> >> I am continuing to upload more lessons as I have time so please let me know if there is any particular task that can be done with tsNet that you would like to see a lesson on. >> >> There is also now an online tsNet command reference guide for those who want an easily searchable format of all the tsNet commands that are available. You can find it at: >> >> https://www.techstrategies.com.au/tsnet-command-list/ >> >> Regards, >> >> Charles Warwick >> Tech Strategies >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From niconiko at gmail.com Thu Mar 8 01:22:43 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Thu, 8 Mar 2018 15:22:43 +0900 Subject: how to copy a card? Message-ID: ?Need a new card, and want it to be an exact copy (other than the card title) of an existing card. How yo do this in LC? Thank you. -- Nicolas Cueto ? From jacque at hyperactivesw.com Thu Mar 8 01:38:53 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 08 Mar 2018 00:38:53 -0600 Subject: how to copy a card? In-Reply-To: References: Message-ID: <16204557848.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Use: clone this card set the name of it to "" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 8, 2018 12:24:58 AM Nicolas Cueto via use-livecode wrote: > ?Need a new card, and want it to be an exact copy (other than the card > title) of an existing card. How yo do this in LC? > > Thank you. > > -- > Nicolas Cueto > > ? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 8 05:13:41 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Mar 2018 11:13:41 +0100 Subject: tsNet documentation In-Reply-To: References: <63D0D4F7-3C2B-465C-9C94-7C0E483C539F@techstrategies.com.au> Message-ID: Hi Charles, thanks for confirming that digest authentication is supported. Regards, Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 08.03.2018 um 06:21 schrieb Charles Warwick via use-livecode >: > > Hi Matthias, > > Yes, it supports digest authentication. tsNet will automatically use the most secure method the server supports unless you force it to use basic authentication. > > Regards. > > Charles > >> On 8 Mar 2018, at 1:11 am, Matthias Rebbe via use-livecode > wrote: >> >> Charles, >> >> thank you very much for that. That is really very useful. >> >> Btw. does tsNet support Digest Access Authentication (DAA) (RFC 2617)? >> >> Regards, >> Matthias >> >> >> >>> Am 07.03.2018 um 11:20 schrieb Charles Warwick via use-livecode >>: >>> >>> Hi, >>> >>> Just a quick update to let everyone know that I have uploaded a series of lessons on tsNet to the LiveCode web site. You can view them at: >>> >>> http://lessons.livecode.com/m/4071/c/235433 > >>> >>> I am continuing to upload more lessons as I have time so please let me know if there is any particular task that can be done with tsNet that you would like to see a lesson on. >>> >>> There is also now an online tsNet command reference guide for those who want an easily searchable format of all the tsNet commands that are available. You can find it at: >>> >>> https://www.techstrategies.com.au/tsnet-command-list/ >>> >>> Regards, >>> >>> Charles Warwick >>> Tech Strategies >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? From matthias_livecode_150811 at m-r-d.de Thu Mar 8 06:28:08 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Mar 2018 12:28:08 +0100 Subject: tsNet and Digest Authentication - some problems or better said: missing knowledge Message-ID: Hi, i am trying to use the tsNet external to communicate with an Auerswald PABX which requires digest authentication. The first connection is always successful using PUT URL ?.. The second one isn?t. There is even no value returned. When i use tsNetClose and tsNetInit before the 2nd connection then the 2nd connection is successful, because the complete authentication process is initiated from the beginning. So this works so far ?> tsnetClose tsNetInit put URL ?http:?..? But how can i use the already established connection? tsNetLibUrlReuseConnection FALSE does not help. Is it possible that i have to set the httpheader somehow for the 2nd connection? I am not very happy to unload and reload the external every time. I also tried to use tsNetGetSync. The first connection is also always successful, the 2nd not. So what am i missing? Regards, Matthias Tel +49 5741 310000 ?https://matthiasrebbe.eu ? Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? From bobsneidar at iotecdigital.com Thu Mar 8 10:26:19 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Mar 2018 15:26:19 +0000 Subject: how to copy a card? In-Reply-To: <16204557848.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <16204557848.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Wouldn't it be great to clone TO a reference? Say, clone this card as "NewCard" to stack "MyStack2"? Bob S > On Mar 7, 2018, at 22:38 , J. Landman Gay via use-livecode wrote: > > [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] > > Use: > > clone this card > set the name of it to "" > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From dunbarx at aol.com Thu Mar 8 10:35:00 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 8 Mar 2018 08:35:00 -0700 (MST) Subject: how to copy a card? In-Reply-To: References: <16204557848.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1520523300328-0.post@n4.nabble.com> Note that one can also copy a card, navigate to another spot in the same or another stack, and paste. The advantage is that the copy can be inserted anywhere in the card suite. This can all be done under script control. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dunbarx at aol.com Thu Mar 8 10:37:00 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 8 Mar 2018 08:37:00 -0700 (MST) Subject: Issues with storage of data in stack In-Reply-To: References: Message-ID: <1520523420208-0.post@n4.nabble.com> Hi. I store data in both external files and within the stack itself. Never used a DB. But no issues of any kind ever. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From iphonelagi at gmail.com Thu Mar 8 12:03:52 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 8 Mar 2018 17:03:52 +0000 Subject: Issues with storage of data in stack In-Reply-To: References: Message-ID: Hi Mike, I have 60+ machines running windows7 embedded running a POS/TILL system also a few tablets running windows and android with the same system - wth abouth 8 lines of code added to work on Android. In the first version of the system I save the arrays which held all the Clerks orders/totals etc and items into an external stack every time they added an item. I then saved the whole thing and cleared the "dirty" flag on shutdown. If the"till" program started and the dirty flag was true then system would know it was a powercut and load all the "open" orders and other status information etc. I have users who have not had a problem in over 2 and a half years others who have 3 "tills" with no problems and just a few maybe (4 who have had a corrupt stack maybe 1 to 3 times a years - 2 or three times is too many. There is no rhyme or reason because others have had powercuts (6 in an hour ) with no damage but others can can switch off without exiting the till properly without a problem and yet I can have a corrupt stack with everything shut down properly. So Now I have removed that stack and just save the arrays to "general" config table called TABS in sqlite in a row with an idkey of '99' other IDkeys can save other configuration information- NOT ONE PROBLEM since I have done this - go figure. I'll make a posting on the forum with the code - not trying to teach my granny to suck eggs here, but maybe some beginners on the forum might find it useful - would have done in the beginning. http://forums.livecode.com/viewtopic.php?f=7&t=30717 Regards lagi On 7 March 2018 at 20:30, Mike Kerner via use-livecode wrote: > I'm working on a session for next week's LCG. We are all working on > fun super-advanced pushing-the-envelope things in LC, but I wanted to do > something for the beginners who are watching LCG, and handling data seemed > like an obvious choice. > > I have to admit, I haven't stored data in a stack in a long time, since the > database options are so easy to use. If you're currently storing data in a > stack, have you run into any issues on any platform with it, especially on > mobile, for instance, where the rules can be a little weird? > > -- > 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 jacque at hyperactivesw.com Thu Mar 8 12:35:35 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 08 Mar 2018 11:35:35 -0600 Subject: Issues with storage of data in stack In-Reply-To: References: Message-ID: <16206aeb258.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I've found that sending binary data over the internet is risky. A zip file or base64 encoded file avoids most transit corruption. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 8, 2018 11:06:16 AM Lagi Pittas via use-livecode wrote: > Hi Mike, > > I have 60+ machines running windows7 embedded running a POS/TILL > system also a few tablets running windows and android with the same > system - wth abouth 8 lines of code added to work on Android. > > In the first version of the system I save the arrays which held all > the Clerks orders/totals etc and items into an external stack every > time they added an item. > > I then saved the whole thing and cleared the "dirty" flag on shutdown. > > If the"till" program started and the dirty flag was true then system > would know it was a powercut and load all the "open" orders and other > status information etc. > > I have users who have not had a problem in over 2 and a half years > others who have 3 "tills" with no problems and just a few maybe (4 who > have had a corrupt stack maybe 1 to 3 times a years - 2 or three times > is too many. There is no rhyme or reason because others have had > powercuts (6 in an hour ) with no damage but others can can switch off > without exiting the till properly without a problem and yet I can have > a corrupt stack with everything shut down properly. So Now I have > removed that stack and just save the arrays to "general" config > table called TABS in sqlite in a row with an idkey of '99' other > IDkeys can save other configuration information- NOT ONE PROBLEM since > I have done this - go figure. > > I'll make a posting on the forum with the code - not trying to teach > my granny to suck eggs here, but maybe some beginners on the forum > might find it useful - would have done in the beginning. > > > http://forums.livecode.com/viewtopic.php?f=7&t=30717 > > Regards lagi > > On 7 March 2018 at 20:30, Mike Kerner via use-livecode > wrote: >> I'm working on a session for next week's LCG. We are all working on >> fun super-advanced pushing-the-envelope things in LC, but I wanted to do >> something for the beginners who are watching LCG, and handling data seemed >> like an obvious choice. >> >> I have to admit, I haven't stored data in a stack in a long time, since the >> database options are so easy to use. If you're currently storing data in a >> stack, have you run into any issues on any platform with it, especially on >> mobile, for instance, where the rules can be a little weird? >> >> -- >> 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 From mark at canelasoftware.com Thu Mar 8 13:38:13 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Thu, 8 Mar 2018 10:38:13 -0800 Subject: Issues with storage of data in stack In-Reply-To: References: Message-ID: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> > On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode wrote: > > In the first version of the system I save the arrays which held all > the Clerks orders/totals etc and items into an external stack every > time they added an item. I too use arrays as a data store. You could save the arrays to disk directly with arrayEncode(). To save time and not store the entire array to disk, you could store only the portions that have been updated on every update. This will keep the data store safe and fast. It will also remove the occasional issue of stack corruption?since you will not store the data inside of stacks any longer. All creates/reads/update/writes would be done to memory. Those calls that modify data will simply do a follow-up write to disk for that particular record. To defeat OS inode limitations, you could group your arrays logically into files. Thus, you would have anywhere from 1 to a 100 sub arrays grouped together. The loading and storing of arrays is very fast. Even with databases in the 100s of thousands to low millions of records counts. Performance is amazing. The best part is you are speaking to your database using LiveCode commands and functions. The only limitation is the amount of RAM on a given device. Should you outgrow that limitation then you could move the data to the cloud. Or you could load/unload data accordingly from disk. This would also be a nice indicator that your business is growing. Of course, it could just be that you are storing a lot of data. :) If you need any help or ideas, let me know. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com From bobsneidar at iotecdigital.com Thu Mar 8 13:49:45 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Mar 2018 18:49:45 +0000 Subject: Issues with storage of data in stack In-Reply-To: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> Message-ID: <47EEF745-9A68-4864-A11D-DAC8176DA590@iotecdigital.com> You would need to arrayencode() before saving an array to a database as well. Bob S > On Mar 8, 2018, at 10:38 , Mark Talluto via use-livecode wrote: > > I too use arrays as a data store. You could save the arrays to disk directly with arrayEncode(). From bogdanoff at me.com Thu Mar 8 14:22:48 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 08 Mar 2018 11:22:48 -0800 Subject: Issues with storage of data in stack In-Reply-To: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> Message-ID: <878121FD-420F-4E90-B786-DA18358561B9@me.com> Mark, If the data is written to a file on disk, could someone else arrayDecode the file and gain access to it? Peter Bogdanoff ArtsInteractive > On Mar 8, 2018, at 10:38 AM, Mark Talluto via use-livecode wrote: > >> On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode wrote: >> >> In the first version of the system I save the arrays which held all >> the Clerks orders/totals etc and items into an external stack every >> time they added an item. > > I too use arrays as a data store. You could save the arrays to disk directly with arrayEncode(). To save time and not store the entire array to disk, you could store only the portions that have been updated on every update. This will keep the data store safe and fast. It will also remove the occasional issue of stack corruption?since you will not store the data inside of stacks any longer. > > All creates/reads/update/writes would be done to memory. Those calls that modify data will simply do a follow-up write to disk for that particular record. To defeat OS inode limitations, you could group your arrays logically into files. Thus, you would have anywhere from 1 to a 100 sub arrays grouped together. The loading and storing of arrays is very fast. Even with databases in the 100s of thousands to low millions of records counts. > > Performance is amazing. The best part is you are speaking to your database using LiveCode commands and functions. The only limitation is the amount of RAM on a given device. Should you outgrow that limitation then you could move the data to the cloud. Or you could load/unload data accordingly from disk. This would also be a nice indicator that your business is growing. Of course, it could just be that you are storing a lot of data. :) > > If you need any help or ideas, let me know. > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > 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 jacque at hyperactivesw.com Thu Mar 8 15:14:27 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 8 Mar 2018 14:14:27 -0600 Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: References: Message-ID: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> On 3/7/18 2:49 PM, R.H. via use-livecode wrote: > I am using a > splash stack as the "main stack" for compilation and I am including the > application stack using the dialogs in the "Stacks" pane of the "Standalone > Application Settings" window. > > When I add this one application stack file all is fine. It compiles. > > Now I want to add a library stack using the same "Stacks" pane just adding > this other stack to the same subfolder "resources" which also contains the > app file. > > Compilation completely fails when adding this library stack Put everything into the Copy Files pane instead. Anything there will be copied to the Resources folder. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Thu Mar 8 15:48:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Mar 2018 20:48:26 +0000 Subject: Issues with storage of data in stack In-Reply-To: <878121FD-420F-4E90-B786-DA18358561B9@me.com> References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> <878121FD-420F-4E90-B786-DA18358561B9@me.com> Message-ID: Yes, if they had Livecode. In that case encrypt the arraydecode string using a seed that only you know. I use a special seed value that is different for every record I add to a database. Very effective and hard to guess. Bob S > On Mar 8, 2018, at 11:22 , Peter Bogdanoff via use-livecode wrote: > > Mark, > > If the data is written to a file on disk, could someone else arrayDecode the file and gain access to it? > > Peter Bogdanoff From revdev at pdslabs.net Thu Mar 8 16:36:58 2018 From: revdev at pdslabs.net (Phil Davis) Date: Thu, 8 Mar 2018 13:36:58 -0800 Subject: Issues with storage of data in stack In-Reply-To: <878121FD-420F-4E90-B786-DA18358561B9@me.com> References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> <878121FD-420F-4E90-B786-DA18358561B9@me.com> Message-ID: <9cbaa7b8-e0b0-869f-b305-08459c247bc2@pdslabs.net> Hi Peter, If your app could encrypt the arrayEncoded data before writing to disk, and then decrypt it when reading it, that would solve the unwanted-access problem. The amount of time used by encrypt/decrypt processes is negligible, even for large files. I love arrays. They have become one of my favorite things about LC. Phil Davis On 3/8/18 11:22 AM, Peter Bogdanoff via use-livecode wrote: > Mark, > > If the data is written to a file on disk, could someone else arrayDecode the file and gain access to it? > > Peter Bogdanoff > ArtsInteractive > >> On Mar 8, 2018, at 10:38 AM, Mark Talluto via use-livecode wrote: >> >>> On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode wrote: >>> >>> In the first version of the system I save the arrays which held all >>> the Clerks orders/totals etc and items into an external stack every >>> time they added an item. >> I too use arrays as a data store. You could save the arrays to disk directly with arrayEncode(). To save time and not store the entire array to disk, you could store only the portions that have been updated on every update. This will keep the data store safe and fast. It will also remove the occasional issue of stack corruption?since you will not store the data inside of stacks any longer. >> >> All creates/reads/update/writes would be done to memory. Those calls that modify data will simply do a follow-up write to disk for that particular record. To defeat OS inode limitations, you could group your arrays logically into files. Thus, you would have anywhere from 1 to a 100 sub arrays grouped together. The loading and storing of arrays is very fast. Even with databases in the 100s of thousands to low millions of records counts. >> >> Performance is amazing. The best part is you are speaking to your database using LiveCode commands and functions. The only limitation is the amount of RAM on a given device. Should you outgrow that limitation then you could move the data to the cloud. Or you could load/unload data accordingly from disk. This would also be a nice indicator that your business is growing. Of course, it could just be that you are storing a lot of data. :) >> >> If you need any help or ideas, let me know. >> >> Best regards, >> >> Mark Talluto >> livecloud.io >> nursenotes.net >> 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 -- Phil Davis From dunbarx at aol.com Thu Mar 8 16:45:11 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 8 Mar 2018 14:45:11 -0700 (MST) Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> References: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> Message-ID: <1520545511181-0.post@n4.nabble.com> Jacque usually has a way out. But I have no problem making a standalone with two added stack files. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From mark at canelasoftware.com Thu Mar 8 16:52:57 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Thu, 8 Mar 2018 13:52:57 -0800 Subject: Issues with storage of data in stack In-Reply-To: <878121FD-420F-4E90-B786-DA18358561B9@me.com> References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> <878121FD-420F-4E90-B786-DA18358561B9@me.com> Message-ID: <3D7EE95A-7605-4893-851B-792F8AA84DFC@canelasoftware.com> Hi Peter, Yes. But, you can protect it with a password. 1. arrayEncode(yourDataInAVariable) 2. Encrypt the result above 3. Write out the encrypted value to disk Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Mar 8, 2018, at 11:22 AM, Peter Bogdanoff via use-livecode wrote: > > Mark, > > If the data is written to a file on disk, could someone else arrayDecode the file and gain access to it? > > Peter Bogdanoff > ArtsInteractive > >> On Mar 8, 2018, at 10:38 AM, Mark Talluto via use-livecode wrote: >> >>> On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode wrote: >>> >>> In the first version of the system I save the arrays which held all >>> the Clerks orders/totals etc and items into an external stack every >>> time they added an item. >> >> I too use arrays as a data store. You could save the arrays to disk directly with arrayEncode(). To save time and not store the entire array to disk, you could store only the portions that have been updated on every update. This will keep the data store safe and fast. It will also remove the occasional issue of stack corruption?since you will not store the data inside of stacks any longer. >> >> All creates/reads/update/writes would be done to memory. Those calls that modify data will simply do a follow-up write to disk for that particular record. To defeat OS inode limitations, you could group your arrays logically into files. Thus, you would have anywhere from 1 to a 100 sub arrays grouped together. The loading and storing of arrays is very fast. Even with databases in the 100s of thousands to low millions of records counts. >> >> Performance is amazing. The best part is you are speaking to your database using LiveCode commands and functions. The only limitation is the amount of RAM on a given device. Should you outgrow that limitation then you could move the data to the cloud. Or you could load/unload data accordingly from disk. This would also be a nice indicator that your business is growing. Of course, it could just be that you are storing a lot of data. :) >> >> If you need any help or ideas, let me know. >> >> Best regards, >> >> Mark Talluto >> livecloud.io >> nursenotes.net >> 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 livfoss at mac.com Thu Mar 8 16:53:51 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 08 Mar 2018 22:53:51 +0100 Subject: Sparkle anybody? Message-ID: <87236C43-A85D-4B05-9C7F-51339944A237@mac.com> I don?t think this is OT - I suppose it depends on your point of view. Sparkle is a framework for providing update logic to Mac Apps (this is my take on it anyway). I know Trevor has kind of incorporated into Levure, but the commitment to understanding and working with Levure is too heavy for me, I think. It?s supposed to be easy to integrate Sparkle into your app (no coding!), but it turns out, only if you speak XCode, as the baldest explanations of its use assume that the reader is deep into Apple?s way of doing things. So is it curtains for us LC coders - I mean is there no alternative to a massive technical self-education effort to use this stuff, where one might at the end crash and burn anyway? It would be sad, because it seems so far from ?everyone can code?. Yes, I can, but I am constantly being thumped by deployment issues like this. Thoughts, anyone? Graham From niconiko at gmail.com Thu Mar 8 17:07:45 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Fri, 9 Mar 2018 07:07:45 +0900 Subject: how to copy a card? In-Reply-To: <16204557848.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <16204557848.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Thanks, Jacque. Also figured out it can be done with the Project Browser. -- Nicolas Cueto On 8 March 2018 at 15:38, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > Use: > > clone this card > set the name of it to "" > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > On March 8, 2018 12:24:58 AM Nicolas Cueto via use-livecode < > use-livecode at lists.runrev.com> wrote: > > ?Need a new card, and want it to be an exact copy (other than the card >> >> title) of an existing card. How yo do this in LC? >> >> Thank you. >> >> -- >> Nicolas Cueto >> >> ? >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 8 19:24:07 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 8 Mar 2018 19:24:07 -0500 Subject: Forcing a device update In-Reply-To: References: Message-ID: <000001d3b73c$f37a5dc0$da6f1940$@net> J, The devices refresh automatically on both my Win 10(Android) and OS X 10.12.6 Xcode 9.2 (iOS and Android). I'm using 8.1.9 GM. I tested by plugging devices in/out/in. You could try this in the message box for Android. It's untested. (found it by scratching in the IDE). dispatch "androidDevicesChanged" to stack ("revDeployLibraryAndroid") 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 via use-livecode Sent: Tuesday, March 06, 2018 7:04 PM To: LiveCode Mailing List Cc: J. Landman Gay Subject: Forcing a device update Is there a way to force the IDE to look for attached mobile devices without restarting LiveCode? Typically I have half a dozen scripts open and I'm doing multiple test builds to a cabled phone. I edit some scripts and during that time the phone goes into low-power mode (not asleep or locked.) When I tap it to show the launcher again, LC has lost the device and I have to restart LC to make it scan again. I can use Terminal to rescan if necessary, but even after it sees the phone, LC still doesn't. I need a message box command to make LC "see" the device again. Restarting loses all my open script windows and I have to relaunch the stack and set everything up again. -- 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 chipsm at themartinz.com Thu Mar 8 21:06:13 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Thu, 8 Mar 2018 18:06:13 -0800 Subject: "Open in New Navigator" is back In-Reply-To: References: Message-ID: <029201d3b74b$33972510$9ac56f30$@themartinz.com> I am trying Navigator and I think it is great. However, I have some questions about the copy/paste functions in the LC Editor. The context copy seems to work but in reality is doesn't. I even tried to copy from the editor and paste the scripts copied into a text editor - No Go. I am using LC 10-11. Is there a way to copy script from 1 editor window to another and even in the same editor window. What am I missing? -----Original Message----- From: use-livecode On Behalf Of Geoff Canyon via use-livecode Sent: Wednesday, February 28, 2018 8:45 PM To: How to use LiveCode Cc: Geoff Canyon Subject: "Open in New Navigator" is back Thanks to Mark Talluto for pointing out the issues with it. It does what it says on the tin: right-click on any set of groups, cards, or stacks, select Open in New Navigator and each one opens in a new copy of Navigator. gc _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Thu Mar 8 22:18:37 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Fri, 9 Mar 2018 13:18:37 +1000 Subject: tsNet and Digest Authentication - some problems or better said: missing knowledge In-Reply-To: References: Message-ID: <656AA5F9-9CE1-401B-A202-CCAD7DC6294D@techstrategies.com.au> Hi Matthias, That does sound strange. If you download the following stack: https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode Open that stack at the same time as you have your application stack open in the IDE, click the ?Start Debug? button, and try your PUT requests. That will display some debug information that might help us work out what is going on. On a related note, ?tsNetLibUrlReuseConnection false? should create a fresh connection to the server for the 2nd request, so debug with and without that set would be useful. Regards, Charles > On 8 Mar 2018, at 9:28 pm, Matthias Rebbe via use-livecode wrote: > > Hi, > > i am trying to use the tsNet external to communicate with an Auerswald PABX which requires digest authentication. > > The first connection is always successful using PUT URL ?.. > The second one isn?t. There is even no value returned. > When i use tsNetClose and tsNetInit before the 2nd connection then the 2nd connection is successful, because the complete authentication process is initiated from the beginning. > So this works so far > ?> > tsnetClose > tsNetInit > put URL ?http:?..? > > But how can i use the already established connection? tsNetLibUrlReuseConnection FALSE does not help. > Is it possible that i have to set the httpheader somehow for the 2nd connection? > I am not very happy to unload and reload the external every time. > > I also tried to use tsNetGetSync. The first connection is also always successful, the 2nd not. > > So what am i missing? > > Regards, > > Matthias > > > > Tel +49 5741 310000 > ?https://matthiasrebbe.eu ? > > > > Matthias Rebbe > Tel +49 5741 310000 > ?https://matthiasrebbe.eu ? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From chipsm at themartinz.com Thu Mar 8 22:24:47 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Thu, 8 Mar 2018 19:24:47 -0800 Subject: "Open in New Navigator" is back In-Reply-To: <029201d3b74b$33972510$9ac56f30$@themartinz.com> References: <029201d3b74b$33972510$9ac56f30$@themartinz.com> Message-ID: <000001d3b756$2e0227c0$8a067740$@themartinz.com> Sorry, I meant LC 9-11 and 9-10, not 10.x -----Original Message----- From: use-livecode On Behalf Of Clarence Martin via use-livecode Sent: Thursday, March 08, 2018 6:06 PM To: 'How to use LiveCode' Cc: chipsm at themartinz.com Subject: RE: "Open in New Navigator" is back I am trying Navigator and I think it is great. However, I have some questions about the copy/paste functions in the LC Editor. The context copy seems to work but in reality is doesn't. I even tried to copy from the editor and paste the scripts copied into a text editor - No Go. I am using LC 10-11. Is there a way to copy script from 1 editor window to another and even in the same editor window. What am I missing? -----Original Message----- From: use-livecode On Behalf Of Geoff Canyon via use-livecode Sent: Wednesday, February 28, 2018 8:45 PM To: How to use LiveCode Cc: Geoff Canyon Subject: "Open in New Navigator" is back Thanks to Mark Talluto for pointing out the issues with it. It does what it says on the tin: right-click on any set of groups, cards, or stacks, select Open in New Navigator and each one opens in a new copy of Navigator. gc _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 9 00:18:06 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 8 Mar 2018 21:18:06 -0800 Subject: "Open in New Navigator" is back In-Reply-To: <000001d3b756$2e0227c0$8a067740$@themartinz.com> References: <029201d3b74b$33972510$9ac56f30$@themartinz.com> <000001d3b756$2e0227c0$8a067740$@themartinz.com> Message-ID: Do you mean copying from the script editor? Navigator opens the built-in script editor, it doesn't have its own. Or are you referring to some other copy/paste? gc On Thu, Mar 8, 2018 at 7:24 PM, Clarence Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > Sorry, I meant LC 9-11 and 9-10, not 10.x > > -----Original Message----- > From: use-livecode On Behalf Of > Clarence Martin via use-livecode > Sent: Thursday, March 08, 2018 6:06 PM > To: 'How to use LiveCode' > Cc: chipsm at themartinz.com > Subject: RE: "Open in New Navigator" is back > > I am trying Navigator and I think it is great. However, I have some > questions about the copy/paste functions in the LC Editor. The context copy > seems to work but in reality is doesn't. I even tried to copy from the > editor and paste the scripts copied into a text editor - No Go. I am using > LC 10-11. Is there a way to copy script from 1 editor window to another and > even in the same editor window. > What am I missing? > > -----Original Message----- > From: use-livecode On Behalf Of > Geoff Canyon via use-livecode > Sent: Wednesday, February 28, 2018 8:45 PM > To: How to use LiveCode > Cc: Geoff Canyon > Subject: "Open in New Navigator" is back > > Thanks to Mark Talluto for pointing out the issues with it. > > It does what it says on the tin: right-click on any set of groups, cards, > or > stacks, select Open in New Navigator and each one opens in a new copy of > Navigator. > > gc > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 9 03:10:10 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 9 Mar 2018 09:10:10 +0100 Subject: tsNet and Digest Authentication - some problems or better said: missing knowledge In-Reply-To: <656AA5F9-9CE1-401B-A202-CCAD7DC6294D@techstrategies.com.au> References: <656AA5F9-9CE1-401B-A202-CCAD7DC6294D@techstrategies.com.au> Message-ID: <49A8DFE3-1C01-4C4C-B37D-A8E120CC57AE@m-r-d.de> Hi Charles, thanks for your answer. I?ve done as requested. With tsNetLibUrlReuseConnection set to true A session cookie is sent from the PABX after the first successful connection. The 2nd unsuccessful connection shows "HTTP/1.1 401 Unauthorized Authentication problem. Ignoring this.? And the value for nonce is an other then the one in the first connection. After a restart of LC i set it to false. The error messages looks similar, but i can see also "Issue another request to this URL: 'http://sub-admin:feierabend at 192.168.1.1/app_group_logchange?grpId=2641&kommend=0 ' Hostname 192.168.1.1 was found in DNS cache? I?ve uploaded the complete debug files here: https://dl.qck.nu//?dl=liburl_reuse_false.txt https://dl.qck.nu//?dl=LIBUURL_resue_true.txt Regards, Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 09.03.2018 um 04:18 schrieb Charles Warwick via use-livecode >: > > Hi Matthias, > > That does sound strange. > > If you download the following stack: > > https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode > > Open that stack at the same time as you have your application stack open in the IDE, click the ?Start Debug? button, and try your PUT requests. > > That will display some debug information that might help us work out what is going on. > > On a related note, ?tsNetLibUrlReuseConnection false? should create a fresh connection to the server for the 2nd request, so debug with and without that set would be useful. > > Regards, > > Charles > >> On 8 Mar 2018, at 9:28 pm, Matthias Rebbe via use-livecode > wrote: >> >> Hi, >> >> i am trying to use the tsNet external to communicate with an Auerswald PABX which requires digest authentication. >> >> The first connection is always successful using PUT URL ?.. >> The second one isn?t. There is even no value returned. >> When i use tsNetClose and tsNetInit before the 2nd connection then the 2nd connection is successful, because the complete authentication process is initiated from the beginning. >> So this works so far >> ?> >> tsnetClose >> tsNetInit >> put URL ?http:?..? >> >> But how can i use the already established connection? tsNetLibUrlReuseConnection FALSE does not help. >> Is it possible that i have to set the httpheader somehow for the 2nd connection? >> I am not very happy to unload and reload the external every time. >> >> I also tried to use tsNetGetSync. The first connection is also always successful, the 2nd not. >> >> So what am i missing? >> >> Regards, >> >> Matthias >> >> >> >> Tel +49 5741 310000 >> ?https://matthiasrebbe.eu >? >> >> >> >> Matthias Rebbe >> Tel +49 5741 310000 >> ?https://matthiasrebbe.eu >? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? From iphonelagi at gmail.com Fri Mar 9 05:07:43 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 9 Mar 2018 10:07:43 +0000 Subject: Issues with storage of data in stack In-Reply-To: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> Message-ID: HI Mark, I am intrigued by your way of saving only whats changed and also when you say save to disk after arrayencoded. Do you meanas a simple save as a binfile or in an sqlite BLOB? I would really like to see some exampleish code on saving to disk - if it's other than a single array in a single binfile - I think even I can do that. But your other ideas sound brilliant. Regards Lagi On 8 March 2018 at 18:38, Mark Talluto via use-livecode wrote: >> On Mar 8, 2018, at 9:03 AM, Lagi Pittas via use-livecode wrote: >> >> In the first version of the system I save the arrays which held all >> the Clerks orders/totals etc and items into an external stack every >> time they added an item. > > I too use arrays as a data store. You could save the arrays to disk directly with arrayEncode(). To save time and not store the entire array to disk, you could store only the portions that have been updated on every update. This will keep the data store safe and fast. It will also remove the occasional issue of stack corruption?since you will not store the data inside of stacks any longer. > > All creates/reads/update/writes would be done to memory. Those calls that modify data will simply do a follow-up write to disk for that particular record. To defeat OS inode limitations, you could group your arrays logically into files. Thus, you would have anywhere from 1 to a 100 sub arrays grouped together. The loading and storing of arrays is very fast. Even with databases in the 100s of thousands to low millions of records counts. > > Performance is amazing. The best part is you are speaking to your database using LiveCode commands and functions. The only limitation is the amount of RAM on a given device. Should you outgrow that limitation then you could move the data to the cloud. Or you could load/unload data accordingly from disk. This would also be a nice indicator that your business is growing. Of course, it could just be that you are storing a lot of data. :) > > If you need any help or ideas, let me know. > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > 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 toolbook at kestner.de Fri Mar 9 05:16:48 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 9 Mar 2018 11:16:48 +0100 Subject: is tsnet downwards compatible? Message-ID: <002d01d3b78f$bc784000$3568c000$@kestner.de> Hello, can I take the newest tsnet.dll (from 8.1.9 or 9..0dp4) and use it with LC 8.1.4? Is it downward compatible? The reason I ask for is, that I need the newest tsnet because of some proxy server problem in older version, but I can't use LC newer than 8.1.4 because it can't play mp4 videos on some windows machines. So I wanted to stay with LC 8.1.4 and just copy manually the tsnet from 9.0 Should this be a good idea? Thanks Tiemo From ambassador at fourthworld.com Fri Mar 9 09:18:12 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 9 Mar 2018 06:18:12 -0800 Subject: Issues with storage of data in stack In-Reply-To: <3D7EE95A-7605-4893-851B-792F8AA84DFC@canelasoftware.com> References: <3D7EE95A-7605-4893-851B-792F8AA84DFC@canelasoftware.com> Message-ID: Some notes from a while back on using LSON (LiveCode encoded arrays): http://lists.runrev.com/pipermail/use-livecode/2016-May/227330.html -- 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 chipsm at themartinz.com Fri Mar 9 09:24:44 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Fri, 9 Mar 2018 06:24:44 -0800 Subject: "Open in New Navigator" is back In-Reply-To: <000001d3b756$2e0227c0$8a067740$@themartinz.com> References: <029201d3b74b$33972510$9ac56f30$@themartinz.com> <000001d3b756$2e0227c0$8a067740$@themartinz.com> Message-ID: <00bb01d3b7b2$5f3d4930$1db7db90$@themartinz.com> Problem Solved - this was caused by some corruption in my O/S. Restarting my computer solved the prolem. -----Original Message----- From: use-livecode On Behalf Of Clarence Martin via use-livecode Sent: Thursday, March 08, 2018 7:25 PM To: 'How to use LiveCode' Cc: chipsm at themartinz.com Subject: RE: "Open in New Navigator" is back Sorry, I meant LC 9-11 and 9-10, not 10.x -----Original Message----- From: use-livecode On Behalf Of Clarence Martin via use-livecode Sent: Thursday, March 08, 2018 6:06 PM To: 'How to use LiveCode' Cc: chipsm at themartinz.com Subject: RE: "Open in New Navigator" is back I am trying Navigator and I think it is great. However, I have some questions about the copy/paste functions in the LC Editor. The context copy seems to work but in reality is doesn't. I even tried to copy from the editor and paste the scripts copied into a text editor - No Go. I am using LC 10-11. Is there a way to copy script from 1 editor window to another and even in the same editor window. What am I missing? -----Original Message----- From: use-livecode On Behalf Of Geoff Canyon via use-livecode Sent: Wednesday, February 28, 2018 8:45 PM To: How to use LiveCode Cc: Geoff Canyon Subject: "Open in New Navigator" is back Thanks to Mark Talluto for pointing out the issues with it. It does what it says on the tin: right-click on any set of groups, cards, or stacks, select Open in New Navigator and each one opens in a new copy of Navigator. gc _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Fri Mar 9 10:40:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Mar 2018 15:40:26 +0000 Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: <1520545511181-0.post@n4.nabble.com> References: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> <1520545511181-0.post@n4.nabble.com> Message-ID: > On Mar 8, 2018, at 13:45 , dunbarx via use-livecode wrote: > > Jacque usually has a way out. If she were in a horror film, she'd be the one who survives. ;-) Bob S From bobsneidar at iotecdigital.com Fri Mar 9 10:47:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Mar 2018 15:47:09 +0000 Subject: Sparkle anybody? In-Reply-To: <87236C43-A85D-4B05-9C7F-51339944A237@mac.com> References: <87236C43-A85D-4B05-9C7F-51339944A237@mac.com> Message-ID: Everyone can code. Not everyone can deploy. ;-) Honestly, I don't think the Levure Framework is all that complex. It's simple a matter of putting certain files where your app can find them, then editing a configuration file, if I am not wholly mistaken. You do not have to convert any stacks to script only stacks if you don't want to. You don't have to integrate with Github if you don't want to. I would think about doing it in phases. Get your files into the folder structure first. Then move common code into libraries or script only stacks. Then start using the features of Levure that enhance your development cycle. The only reason I haven't done it is because I am lazy, and dev is not my primary job responsibility. Bob S > On Mar 8, 2018, at 13:53 , Graham Samuel via use-livecode wrote: > > I don?t think this is OT - I suppose it depends on your point of view. > > Sparkle is a framework for providing update logic to Mac Apps (this is my take on it anyway). I know Trevor has kind of incorporated into Levure, but the commitment to understanding and working with Levure is too heavy for me, I think. It?s supposed to be easy to integrate Sparkle into your app (no coding!), but it turns out, only if you speak XCode, as the baldest explanations of its use assume that the reader is deep into Apple?s way of doing things. > > So is it curtains for us LC coders - I mean is there no alternative to a massive technical self-education effort to use this stuff, where one might at the end crash and burn anyway? It would be sad, because it seems so far from ?everyone can code?. Yes, I can, but I am constantly being thumped by deployment issues like this. > > Thoughts, anyone? > > Graham From rdimola at evergreeninfo.net Fri Mar 9 10:48:27 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Mar 2018 10:48:27 -0500 Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: References: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> <1520545511181-0.post@n4.nabble.com> Message-ID: <004801d3b7be$13414430$39c3cc90$@net> I usually panic and run into the barn with all the chain saws hanging from the ceiling to hide. 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 Bob Sneidar via use-livecode Sent: Friday, March 09, 2018 10:40 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Standalone compile problem including more than two stack files to the mainstack > On Mar 8, 2018, at 13:45 , dunbarx via use-livecode wrote: > > Jacque usually has a way out. If she were in a horror film, she'd be the one who survives. ;-) 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 bobsneidar at iotecdigital.com Fri Mar 9 10:57:46 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Mar 2018 15:57:46 +0000 Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: <004801d3b7be$13414430$39c3cc90$@net> References: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> <1520545511181-0.post@n4.nabble.com> <004801d3b7be$13414430$39c3cc90$@net> Message-ID: <390C91A8-4E0B-4436-868D-B6CD9A842FEE@iotecdigital.com> I suppose that's fine, but I usually run into the bathroom, where there is no hope of escape, then cower in the bathtub, ensuring there's plenty of water in it, and an electric blow dryer handy on the counter. Bob S > On Mar 9, 2018, at 07:48 , Ralph DiMola via use-livecode wrote: > > I usually panic and run into the barn with all the chain saws hanging from > the ceiling to hide. > > Ralph DiMola From rdimola at evergreeninfo.net Fri Mar 9 11:34:50 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Mar 2018 11:34:50 -0500 Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: <390C91A8-4E0B-4436-868D-B6CD9A842FEE@iotecdigital.com> References: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> <1520545511181-0.post@n4.nabble.com> <004801d3b7be$13414430$39c3cc90$@net> <390C91A8-4E0B-4436-868D-B6CD9A842FEE@iotecdigital.com> Message-ID: <006301d3b7c4$8e22e180$aa68a480$@net> And then Jacque fires up her time machine and saves us all! 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 Bob Sneidar via use-livecode Sent: Friday, March 09, 2018 10:58 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Standalone compile problem including more than two stack files to the mainstack I suppose that's fine, but I usually run into the bathroom, where there is no hope of escape, then cower in the bathtub, ensuring there's plenty of water in it, and an electric blow dryer handy on the counter. Bob S > On Mar 9, 2018, at 07:48 , Ralph DiMola via use-livecode wrote: > > I usually panic and run into the barn with all the chain saws hanging > from the ceiling to hide. > > Ralph DiMola _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 9 12:03:47 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Mar 2018 11:03:47 -0600 Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: References: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> <1520545511181-0.post@n4.nabble.com> Message-ID: <1620bb7ed50.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On March 9, 2018 9:42:28 AM Bob Sneidar via use-livecode wrote: >> On Mar 8, 2018, at 13:45 , dunbarx via use-livecode >> wrote: >> >> Jacque usually has a way out. > > > If she were in a horror film, she'd be the one who survives. ;-) > > Bob S Thanks, gentlemen. Your compensation will be delivered as soon as it's laundered. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Mar 9 12:04:32 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 09 Mar 2018 11:04:32 -0600 Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: <006301d3b7c4$8e22e180$aa68a480$@net> References: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> <1520545511181-0.post@n4.nabble.com> <004801d3b7be$13414430$39c3cc90$@net> <390C91A8-4E0B-4436-868D-B6CD9A842FEE@iotecdigital.com> <006301d3b7c4$8e22e180$aa68a480$@net> Message-ID: <1620bb8a100.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> It only holds two, you'll have to draw straws. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 9, 2018 10:36:04 AM Ralph DiMola via use-livecode wrote: > And then Jacque fires up her time machine and saves us all! > > 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 Bob Sneidar via use-livecode > Sent: Friday, March 09, 2018 10:58 AM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: Standalone compile problem including more than two stack files > to the mainstack > > I suppose that's fine, but I usually run into the bathroom, where there is > no hope of escape, then cower in the bathtub, ensuring there's plenty of > water in it, and an electric blow dryer handy on the counter. > > Bob S > > >> On Mar 9, 2018, at 07:48 , Ralph DiMola via use-livecode > wrote: >> >> I usually panic and run into the barn with all the chain saws hanging >> from the ceiling to hide. >> >> Ralph DiMola > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Mar 9 12:20:57 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Mar 2018 17:20:57 +0000 Subject: Saving stack locations in multi monitor setups Message-ID: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> Hi all. Here is a handy snippet for saving a stacks location, which is multi-monitor aware. It creates an array of key value pairs for any monitor resolution a stack is in when this function is called. The key is the monitor resolution and the value is the loc of the stack passed as pTargetStack. pTargetStack must be the stack name, or else the long stack name. In other words it must begin with the word "stack". I have gotten into the habit of always using long stack names and long IDs to deconflict multiple objects with the same names. on saveStackLocation pTargetStack put the stackloc of pTargetStack into aStackLoc put line (the screen of stack pTargetStack) of the screenRects into tScreenRect put item 3 of tScreenRect - item 1 of tScreenRect into item 1 of tRect put item 4 of tScreenRect - item 2 of tScreenRect into item 2 of tRect put the loc of pTargetStack into aStackLoc [tRect] set the stackloc of pTargetStack to aStackLoc end saveStackLocation function getStackLocation pTargetStack put the stackloc of pTargetStack into aStackLoc put line (the screen of stack pTargetStack) of the screenRects into tScreenRect put item 3 of tScreenRect - item 1 of tScreenRect into item 1 of tRect put item 4 of tScreenRect - item 2 of tScreenRect into item 2 of tRect return aStackLoc [tRect] end getStackLocation So on closeStack call this function and on openStack call getStackLocation() and set the location of the stack. The reason for the math on the screen rect is because in a multi-monitor setup, the screenRects left for monitors to the right of another do NOT have 0,0 as the leftTop, but rather the left of the RIGHT monitor is the right of the LEFT monitor. I suppose it made sense to the developer at the time. Bob S From chipsm at themartinz.com Fri Mar 9 12:25:31 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Fri, 9 Mar 2018 09:25:31 -0800 Subject: "Open in New Navigator" is back In-Reply-To: <00bb01d3b7b2$5f3d4930$1db7db90$@themartinz.com> References: <029201d3b74b$33972510$9ac56f30$@themartinz.com> <000001d3b756$2e0227c0$8a067740$@themartinz.com> <00bb01d3b7b2$5f3d4930$1db7db90$@themartinz.com> Message-ID: <017501d3b7cb$a0533c90$e0f9b5b0$@themartinz.com> I must take the time to say: Geoff was super responsive to my inquiries. I have to say - Great Support! I look forward to future updates to Navigator. -----Original Message----- From: use-livecode On Behalf Of Clarence Martin via use-livecode Sent: Friday, March 09, 2018 6:25 AM To: 'How to use LiveCode' Cc: chipsm at themartinz.com Subject: RE: "Open in New Navigator" is back Problem Solved - this was caused by some corruption in my O/S. Restarting my computer solved the prolem. -----Original Message----- From: use-livecode On Behalf Of Clarence Martin via use-livecode Sent: Thursday, March 08, 2018 7:25 PM To: 'How to use LiveCode' Cc: chipsm at themartinz.com Subject: RE: "Open in New Navigator" is back Sorry, I meant LC 9-11 and 9-10, not 10.x -----Original Message----- From: use-livecode On Behalf Of Clarence Martin via use-livecode Sent: Thursday, March 08, 2018 6:06 PM To: 'How to use LiveCode' Cc: chipsm at themartinz.com Subject: RE: "Open in New Navigator" is back I am trying Navigator and I think it is great. However, I have some questions about the copy/paste functions in the LC Editor. The context copy seems to work but in reality is doesn't. I even tried to copy from the editor and paste the scripts copied into a text editor - No Go. I am using LC 10-11. Is there a way to copy script from 1 editor window to another and even in the same editor window. What am I missing? -----Original Message----- From: use-livecode On Behalf Of Geoff Canyon via use-livecode Sent: Wednesday, February 28, 2018 8:45 PM To: How to use LiveCode Cc: Geoff Canyon Subject: "Open in New Navigator" is back Thanks to Mark Talluto for pointing out the issues with it. It does what it says on the tin: right-click on any set of groups, cards, or stacks, select Open in New Navigator and each one opens in a new copy of Navigator. gc _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Fri Mar 9 12:27:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Mar 2018 17:27:30 +0000 Subject: Standalone compile problem including more than two stack files to the mainstack In-Reply-To: <1620bb8a100.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <08f72d10-55b7-6940-e014-ee5053ccc670@hyperactivesw.com> <1520545511181-0.post@n4.nabble.com> <004801d3b7be$13414430$39c3cc90$@net> <390C91A8-4E0B-4436-868D-B6CD9A842FEE@iotecdigital.com> <006301d3b7c4$8e22e180$aa68a480$@net> <1620bb8a100.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <3A2304FA-B02A-416F-B68D-982F2CC5A3DD@iotecdigital.com> I suppose you decide after the fact whether or not the short or the long straw gets to go?? Bob S > On Mar 9, 2018, at 09:04 , J. Landman Gay via use-livecode wrote: > > It only holds two, you'll have to draw straws. > > -- > Jacqueline Landman Gay From brahma at hindu.org Fri Mar 9 13:31:16 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 9 Mar 2018 18:31:16 +0000 Subject: Bizarre Number Sort of Files Mac Message-ID: <47504F7A-4354-4653-B7DF-38073D9DFFBD@hindu.org> On Mac, on disk, you will finder files in order _categories.txt _date.txt _title.txt 01-11-04-09-09_2018-Noni-Building-Blessing.jpg 01-11-04-09-09_2018-Noni-Building-Blessing.txt 02-02-10-02-03_2018-Noni-Building-Blessing.jpg 02-02-10-02-03_2018-Noni-Building-Blessing.txt 03-06-01-10-10_2018-Noni-Building-Blessing.jpg 04-09-09-08-08_2018-Noni-Building-Blessing.jpg 04-09-09-08-08_2018-Noni-Building-Blessing.txt 05-05-02-12-12_2018-Noni-Building-Blessing.jpg 06-12-05-03-02_2018-Noni-Building-Blessing.jpg 06-12-05-03-02_2018-Noni-Building-Blessing.txt 07-07-12-07-07_2018-Noni-Building-Blessing.jpg 07-07-12-07-07_2018-Noni-Building-Blessing.txt 08-10-03-04-04_2018-Noni-Building-Blessing.jpg 08-10-03-04-04_2018-Noni-Building-Blessing.txt 09-08-06-06-06_2018-Noni-Building-Blessing.jpg 09-08-06-06-06_2018-Noni-Building-Blessing.txt 10-03-11-05-05_2018-Noni-Building-Blessing.jpg 10-03-11-05-05_2018-Noni-Building-Blessing.txt 11-01-07-11-11_2018-Noni-Building-Blessing.jpg 11-01-07-11-11_2018-Noni-Building-Blessing.txt 12-04-08-01-01_2018-Noni-Building-Blessing.jpg 12-04-08-01-01_2018-Noni-Building-Blessing.txt gallery-story.txt Now when open that for file import, I see in the dialogue (dimmed) 04-09-09-08-08_2018-Noni-Building-Blessing.jpg 02-02-10-02-03_2018-Noni-Building-Blessing.txt 11-01-07-11-11_2018-Noni-Building-Blessing.jpg 09-08-06-06-06_2018-Noni-Building-Blessing.txt 01-11-04-09-09_2018-Noni-Building-Blessing.jpg 12-04-08-01-01_2018-Noni-Building-Blessing.txt 11-01-07-11-11_2018-Noni-Building-Blessing.txt 02-02-10-02-03_2018-Noni-Building-Blessing.jpg 04-09-09-08-08_2018-Noni-Building-Blessing.txt 01-11-04-09-09_2018-Noni-Building-Blessing.txt 09-08-06-06-06_2018-Noni-Building-Blessing.jpg 12-04-08-01-01_2018-Noni-Building-Blessing.jpg 10-03-11-05-05_2018-Noni-Building-Blessing.txt .DS_Store 06-12-05-03-02_2018-Noni-Building-Blessing.jpg 07-07-12-07-07_2018-Noni-Building-Blessing.txt _categories.txt _title.txt 08-10-03-04-04_2018-Noni-Building-Blessing.txt _date.txt gallery-story.txt 07-07-12-07-07_2018-Noni-Building-Blessing.jpg 10-03-11-05-05_2018-Noni-Building-Blessing.jpg 06-12-05-03-02_2018-Noni-Building-Blessing.txt 03-06-01-10-10_2018-Noni-Building-Blessing.jpg 08-10-03-04-04_2018-Noni-Building-Blessing.jpg 05-05-02-12-12_2018-Noni-Building-Blessing.jpg now, put those files into a field, with still get the "amazing" order? on mouseup sort lines fld "theFiles" ascending numeric end mouseup I get the same result? It is in "ascending numeric" does see the files at all? If I sort lines by on mouseup sort lines fld "theFiles" ascending text end mouseup Then they they same as finder. Try again, to sort of line by ascending number file, does not changes files ? do not change from the text sort which remain into the order "ascending text" What is going on? It seems that the ascending numeric, just doesn?t see the files at all? BR From simplsol at aol.com Fri Mar 9 13:46:45 2018 From: simplsol at aol.com (PEL) Date: Fri, 9 Mar 2018 10:46:45 -0800 Subject: Bizarre Number Sort of Files Mac In-Reply-To: <47504F7A-4354-4653-B7DF-38073D9DFFBD@hindu.org> References: <47504F7A-4354-4653-B7DF-38073D9DFFBD@hindu.org> Message-ID: <6A2F53B6-55D3-43B5-A06A-375FD594993A@aol.com> When you add text to a number, it ceases to be a number. If you had a space between 01-11-04-09-_2018 and the rest of the line you might be able to sort lines of field ?TheFiles? dateTime ascending by word one of each Paul Looney > On Mar 9, 2018, at 10:31 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > > On Mac, on disk, you will finder files in order > > _categories.txt > _date.txt > _title.txt > 01-11-04-09-09_2018-Noni-Building-Blessing.jpg > 01-11-04-09-09_2018-Noni-Building-Blessing.txt > 02-02-10-02-03_2018-Noni-Building-Blessing.jpg > 02-02-10-02-03_2018-Noni-Building-Blessing.txt > 03-06-01-10-10_2018-Noni-Building-Blessing.jpg > 04-09-09-08-08_2018-Noni-Building-Blessing.jpg > 04-09-09-08-08_2018-Noni-Building-Blessing.txt > 05-05-02-12-12_2018-Noni-Building-Blessing.jpg > 06-12-05-03-02_2018-Noni-Building-Blessing.jpg > 06-12-05-03-02_2018-Noni-Building-Blessing.txt > 07-07-12-07-07_2018-Noni-Building-Blessing.jpg > 07-07-12-07-07_2018-Noni-Building-Blessing.txt > 08-10-03-04-04_2018-Noni-Building-Blessing.jpg > 08-10-03-04-04_2018-Noni-Building-Blessing.txt > 09-08-06-06-06_2018-Noni-Building-Blessing.jpg > 09-08-06-06-06_2018-Noni-Building-Blessing.txt > 10-03-11-05-05_2018-Noni-Building-Blessing.jpg > 10-03-11-05-05_2018-Noni-Building-Blessing.txt > 11-01-07-11-11_2018-Noni-Building-Blessing.jpg > 11-01-07-11-11_2018-Noni-Building-Blessing.txt > 12-04-08-01-01_2018-Noni-Building-Blessing.jpg > 12-04-08-01-01_2018-Noni-Building-Blessing.txt > gallery-story.txt > > Now when open that for file import, I see in the dialogue (dimmed) > > 04-09-09-08-08_2018-Noni-Building-Blessing.jpg > 02-02-10-02-03_2018-Noni-Building-Blessing.txt > 11-01-07-11-11_2018-Noni-Building-Blessing.jpg > 09-08-06-06-06_2018-Noni-Building-Blessing.txt > 01-11-04-09-09_2018-Noni-Building-Blessing.jpg > 12-04-08-01-01_2018-Noni-Building-Blessing.txt > 11-01-07-11-11_2018-Noni-Building-Blessing.txt > 02-02-10-02-03_2018-Noni-Building-Blessing.jpg > 04-09-09-08-08_2018-Noni-Building-Blessing.txt > 01-11-04-09-09_2018-Noni-Building-Blessing.txt > 09-08-06-06-06_2018-Noni-Building-Blessing.jpg > 12-04-08-01-01_2018-Noni-Building-Blessing.jpg > 10-03-11-05-05_2018-Noni-Building-Blessing.txt > .DS_Store > 06-12-05-03-02_2018-Noni-Building-Blessing.jpg > 07-07-12-07-07_2018-Noni-Building-Blessing.txt > _categories.txt > _title.txt > 08-10-03-04-04_2018-Noni-Building-Blessing.txt > _date.txt > gallery-story.txt > 07-07-12-07-07_2018-Noni-Building-Blessing.jpg > 10-03-11-05-05_2018-Noni-Building-Blessing.jpg > 06-12-05-03-02_2018-Noni-Building-Blessing.txt > 03-06-01-10-10_2018-Noni-Building-Blessing.jpg > 08-10-03-04-04_2018-Noni-Building-Blessing.jpg > 05-05-02-12-12_2018-Noni-Building-Blessing.jpg > > now, put those files into a field, with still get the "amazing" order? > > on mouseup > sort lines fld "theFiles" ascending numeric > end mouseup > > I get the same result? It is in "ascending numeric" does see the files at all? > > If I sort lines by > > on mouseup > sort lines fld "theFiles" ascending text > end mouseup > > Then they they same as finder. > > > Try again, to sort of line by ascending number file, does not changes files ? > do not change from the text sort which remain into the order "ascending text" > > What is going on? It seems that the ascending numeric, just doesn?t see the files at all? > > 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 bobsneidar at iotecdigital.com Fri Mar 9 14:18:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Mar 2018 19:18:49 +0000 Subject: Bizarre Number Sort of Files Mac In-Reply-To: <6A2F53B6-55D3-43B5-A06A-375FD594993A@aol.com> References: <47504F7A-4354-4653-B7DF-38073D9DFFBD@hindu.org> <6A2F53B6-55D3-43B5-A06A-375FD594993A@aol.com> Message-ID: <7251A2EB-31AE-44DA-88C1-0751E5132F2C@iotecdigital.com> Hmmm... I ran into this a few days ago. If you sort numeric, and any of the values are not numeric, the sort fails silently. I would have expected it to sort with the affinity for numeric, but that apparently is not how the sort command works. If you were to simply sort without the numeric arguement, it would work, since your filenames are already padded with zeros. If this needs to work with *any* file list, I think you may be in trouble. One option would be to iterate in a repeat loop through each line, then iterate through each character, adding the current character to a value then checking if the value is a number. When it's not, put char 1 to -2 of the value into item 1 of a new list, the actual filename into item 2 of the new list, sort lines of numeric ascending by item 1 of each, then iterate through the lies again, putting item 2 of each line in a new list. You could create a function that does this. Bob S > On Mar 9, 2018, at 10:46 , PEL via use-livecode wrote: > > When you add text to a number, it ceases to be a number. > > If you had a space between 01-11-04-09-_2018 and the rest of the line you might be able to > > sort lines of field ?TheFiles? dateTime ascending by word one of each > > > Paul Looney From richmondmathewson at gmail.com Fri Mar 9 14:48:50 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 9 Mar 2018 21:48:50 +0200 Subject: Unicode inconsistency Message-ID: When I do this: put numToCodePoint(0xA8FD) [Jain Omkara] I get the symbol in the Message Box. HOWEVER when I do this: put numToCodePoint(0xA8FD) into fld "gg" I get a "silly square: in fld "gg" For those of us who are "kinky" about symbols such as the Jain OM this is "most unfortunate". Richmond. From jacque at hyperactivesw.com Fri Mar 9 14:51:03 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 9 Mar 2018 13:51:03 -0600 Subject: Forcing a device update In-Reply-To: <000001d3b73c$f37a5dc0$da6f1940$@net> References: <000001d3b73c$f37a5dc0$da6f1940$@net> Message-ID: <772798df-eb18-0d3e-b709-2fc8858ccac8@hyperactivesw.com> On 3/8/18 6:24 PM, Ralph DiMola wrote: > dispatch "androidDevicesChanged" to stack ("revDeployLibraryAndroid") I had high hopes, but no go. My phone was uncabled overnight, I left LC running with all the various windows and scripts open. Just cabled the phone up again. Terminal sees it immediately without any interaction. LC doesn't. I issued the command you suggested (twice,) nothing happened. Now I have to close 8 script windows, half a dozen stacks, quit LC, and then re-open and set up everything again. This is not only annoying, it's tripling the amount of time it takes to debug. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Mar 9 15:10:04 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 9 Mar 2018 14:10:04 -0600 Subject: Forcing a device update In-Reply-To: <772798df-eb18-0d3e-b709-2fc8858ccac8@hyperactivesw.com> References: <000001d3b73c$f37a5dc0$da6f1940$@net> <772798df-eb18-0d3e-b709-2fc8858ccac8@hyperactivesw.com> Message-ID: <02acb9d4-cc53-c915-d39e-25d4e8d8ad33@hyperactivesw.com> On 3/9/18 1:51 PM, J. Landman Gay via use-livecode wrote: > On 3/8/18 6:24 PM, Ralph DiMola wrote: >> dispatch "androidDevicesChanged" to stack ("revDeployLibraryAndroid") > > I had high hopes, but no go. It was me. The app opens a bunch of stacks including the one I was working on. The test target isn't activated unless the stack that will be compiled is focused. It was sitting there in full view but I hadn't clicked on it to bring it to the front. I feel both relieved and stupid. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brian at milby7.com Fri Mar 9 15:36:06 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 09 Mar 2018 20:36:06 +0000 Subject: Unicode inconsistency In-Reply-To: References: Message-ID: Is it a font issue? I get an empty box on Win10 and a box with a ? inside on my Mac. Had to go to fileformat.info to see what it should look like. On Fri, Mar 9, 2018 at 1:49 PM Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > When I do this: > > put numToCodePoint(0xA8FD) [Jain Omkara] > > I get the symbol in the Message Box. > > HOWEVER when I do this: > > put numToCodePoint(0xA8FD) into fld "gg" > > I get a "silly square: in fld "gg" > > For those of us who are "kinky" about symbols such as the Jain OM this > is "most unfortunate". > > 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 rdimola at evergreeninfo.net Fri Mar 9 16:27:01 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Mar 2018 16:27:01 -0500 Subject: Navigation widget In-Reply-To: References: Message-ID: <009f01d3b7ed$6056cdb0$21046910$@net> I can't seem to figure out how to reset the hilited option back to unhilited. None of the traditional button properties seem to work. I can change the hilited option but not clear it. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Fri Mar 9 16:29:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Mar 2018 21:29:38 +0000 Subject: Forcing a device update In-Reply-To: <02acb9d4-cc53-c915-d39e-25d4e8d8ad33@hyperactivesw.com> References: <000001d3b73c$f37a5dc0$da6f1940$@net> <772798df-eb18-0d3e-b709-2fc8858ccac8@hyperactivesw.com> <02acb9d4-cc53-c915-d39e-25d4e8d8ad33@hyperactivesw.com> Message-ID: <3663BAFF-C49E-4369-A607-F01917ACC0A7@iotecdigital.com> You've just summarized my whole life in general. ;-) Bob S > On Mar 9, 2018, at 12:10 , J. Landman Gay via use-livecode wrote: > > I feel both relieved and stupid. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com From brian at milby7.com Fri Mar 9 16:37:32 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 09 Mar 2018 21:37:32 +0000 Subject: Navigation widget In-Reply-To: <009f01d3b7ed$6056cdb0$21046910$@net> References: <009f01d3b7ed$6056cdb0$21046910$@net> Message-ID: Navigation Bar should always have exactly one icon selected. On Fri, Mar 9, 2018 at 3:26 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > I can't seem to figure out how to reset the hilited option back to > unhilited. None of the traditional button properties seem to work. I can > change the hilited option but not clear it. > > 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 brian at milby7.com Fri Mar 9 16:59:16 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 09 Mar 2018 21:59:16 +0000 Subject: Navigation widget In-Reply-To: References: <009f01d3b7ed$6056cdb0$21046910$@net> Message-ID: Although that could be an interesting thing to change on Thursday in my LCG talk (allow a selection of ?0?). Not sure if it would get accepted, but would make a good demo of the process. On Fri, Mar 9, 2018 at 3:37 PM Brian Milby wrote: > Navigation Bar should always have exactly one icon selected. > On Fri, Mar 9, 2018 at 3:26 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I can't seem to figure out how to reset the hilited option back to >> unhilited. None of the traditional button properties seem to work. I can >> change the hilited option but not clear it. >> >> 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 rdimola at evergreeninfo.net Fri Mar 9 17:21:11 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 9 Mar 2018 17:21:11 -0500 Subject: Navigation widget In-Reply-To: References: <009f01d3b7ed$6056cdb0$21046910$@net> Message-ID: <00ad01d3b7f4$f0f33410$d2d99c30$@net> Setting it to zero was what I was what I tried it and it did nothing. What I was thinking of is a splash page with the navigation widget all gray and then you select an option and navigate to that page. After that one item would always be hilited. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From: Brian Milby [mailto:brian at milby7.com] Sent: Friday, March 09, 2018 4:59 PM To: How to use LiveCode Cc: Ralph DiMola Subject: Re: Navigation widget Although that could be an interesting thing to change on Thursday in my LCG talk (allow a selection of ?0?). Not sure if it would get accepted, but would make a good demo of the process. On Fri, Mar 9, 2018 at 3:37 PM Brian Milby wrote: Navigation Bar should always have exactly one icon selected. On Fri, Mar 9, 2018 at 3:26 PM Ralph DiMola via use-livecode wrote: I can't seem to figure out how to reset the hilited option back to unhilited. None of the traditional button properties seem to work. I can change the hilited option but not clear it. 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 brian at milby7.com Fri Mar 9 17:23:38 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 09 Mar 2018 22:23:38 +0000 Subject: Navigation widget In-Reply-To: <00ad01d3b7f4$f0f33410$d2d99c30$@net> References: <009f01d3b7ed$6056cdb0$21046910$@net> <00ad01d3b7f4$f0f33410$d2d99c30$@net> Message-ID: Correct... the code does not currently support nothing being selected. It should not be that difficult to add though. On Fri, Mar 9, 2018 at 4:20 PM Ralph DiMola wrote: > Setting it to zero was what I was what I tried it and it did nothing. What > I was thinking of is a splash page with the navigation widget all gray and > then you select an option and navigate to that page. After that one item > would always be hilited. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > *From:* Brian Milby [mailto:brian at milby7.com] > *Sent:* Friday, March 09, 2018 4:59 PM > *To:* How to use LiveCode > *Cc:* Ralph DiMola > *Subject:* Re: Navigation widget > > > > Although that could be an interesting thing to change on Thursday in my > LCG talk (allow a selection of ?0?). Not sure if it would get accepted, but > would make a good demo of the process. > > On Fri, Mar 9, 2018 at 3:37 PM Brian Milby wrote: > > Navigation Bar should always have exactly one icon selected. > > On Fri, Mar 9, 2018 at 3:26 PM Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> wrote: > > I can't seem to figure out how to reset the hilited option back to > unhilited. None of the traditional button properties seem to work. I can > change the hilited option but not clear it. > > 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 bogdanoff at me.com Fri Mar 9 20:23:55 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 09 Mar 2018 17:23:55 -0800 Subject: When me is not me In-Reply-To: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> Message-ID: <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> I learned something today. I was trying by script to set the hilite of a radio button in a group on another card. My script is in the group ?Language Choice? which is called by openStack. I?m thinking that ?me? would operate on the group: set the hilitedButton of me to tNum Didn?t work, even though the script received the message and completed. The radio buttons were unchanged. I modified it to this, which worked: set the hilitedButton of group "Language Choice" of card "Settings" to tNum I can only think that, a group, even though it is on a single card and does not have its backgroundBehavior set to true, must be referred to explicitly by the name of the group and the name of the card is resides in. Or maybe it?s because the individual buttons didn't have sharedHilite set to true. Peter Bogdanoff ArtsInteractive From bonnmike at gmail.com Fri Mar 9 20:59:35 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 9 Mar 2018 18:59:35 -0700 Subject: When me is not me In-Reply-To: <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> Message-ID: What version? Its working for me in 9 dp11 by using either dispatch or send to the group. In the group: command doit pbtn set the hilitedbutton of me to pbtn end doit And from the message box.. send ("doit" && 2) to group 1 or dispatch "doit" to group 1 with 3 On Fri, Mar 9, 2018 at 6:23 PM, Peter Bogdanoff via use-livecode < use-livecode at lists.runrev.com> wrote: > I learned something today. > > I was trying by script to set the hilite of a radio button in a group on > another card. > > My script is in the group ?Language Choice? which is called by openStack. > I?m thinking that ?me? would operate on the group: > > set the hilitedButton of me to tNum > > Didn?t work, even though the script received the message and completed. > The radio buttons were unchanged. I modified it to this, which worked: > > set the hilitedButton of group "Language Choice" of card > "Settings" to tNum > > > I can only think that, a group, even though it is on a single card and > does not have its backgroundBehavior set to true, must be referred to > explicitly by the name of the group and the name of the card is resides in. > Or maybe it?s because the individual buttons didn't have sharedHilite set > to true. > > Peter Bogdanoff > ArtsInteractive > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 9 21:03:52 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 9 Mar 2018 19:03:52 -0700 Subject: When me is not me In-Reply-To: References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> Message-ID: Nevermind. Another card. DOH On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner wrote: > What version? Its working for me in 9 dp11 by using either dispatch or > send to the group. > > In the group: > command doit pbtn > set the hilitedbutton of me to pbtn > end doit > > And from the message box.. > > send ("doit" && 2) to group 1 > or > dispatch "doit" to group 1 with 3 > > > On Fri, Mar 9, 2018 at 6:23 PM, Peter Bogdanoff via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I learned something today. >> >> I was trying by script to set the hilite of a radio button in a group on >> another card. >> >> My script is in the group ?Language Choice? which is called by openStack. >> I?m thinking that ?me? would operate on the group: >> >> set the hilitedButton of me to tNum >> >> Didn?t work, even though the script received the message and completed. >> The radio buttons were unchanged. I modified it to this, which worked: >> >> set the hilitedButton of group "Language Choice" of card >> "Settings" to tNum >> >> >> I can only think that, a group, even though it is on a single card and >> does not have its backgroundBehavior set to true, must be referred to >> explicitly by the name of the group and the name of the card is resides in. >> Or maybe it?s because the individual buttons didn't have sharedHilite set >> to true. >> >> Peter Bogdanoff >> ArtsInteractive >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Fri Mar 9 21:09:54 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 09 Mar 2018 18:09:54 -0800 Subject: When me is not me In-Reply-To: References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> Message-ID: <0840D429-A622-4B0D-8D08-2D4BE1915259@me.com> Yes, it works great if you are on the card, not if you are somewhere else. > On Mar 9, 2018, at 6:03 PM, Mike Bonner via use-livecode wrote: > > Nevermind. Another card. DOH > > On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner wrote: > >> What version? Its working for me in 9 dp11 by using either dispatch or >> send to the group. >> >> In the group: >> command doit pbtn >> set the hilitedbutton of me to pbtn >> end doit >> >> And from the message box.. >> >> send ("doit" && 2) to group 1 >> or >> dispatch "doit" to group 1 with 3 >> >> >> On Fri, Mar 9, 2018 at 6:23 PM, Peter Bogdanoff via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I learned something today. >>> >>> I was trying by script to set the hilite of a radio button in a group on >>> another card. >>> >>> My script is in the group ?Language Choice? which is called by openStack. >>> I?m thinking that ?me? would operate on the group: >>> >>> set the hilitedButton of me to tNum >>> >>> Didn?t work, even though the script received the message and completed. >>> The radio buttons were unchanged. I modified it to this, which worked: >>> >>> set the hilitedButton of group "Language Choice" of card >>> "Settings" to tNum >>> >>> >>> I can only think that, a group, even though it is on a single card and >>> does not have its backgroundBehavior set to true, must be referred to >>> explicitly by the name of the group and the name of the card is resides in. >>> Or maybe it?s because the individual buttons didn't have sharedHilite set >>> to true. >>> >>> Peter Bogdanoff >>> ArtsInteractive >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Mar 9 21:41:04 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 9 Mar 2018 20:41:04 -0600 Subject: When me is not me In-Reply-To: <0840D429-A622-4B0D-8D08-2D4BE1915259@me.com> References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> <0840D429-A622-4B0D-8D08-2D4BE1915259@me.com> Message-ID: I think I know what is going on. If you add a couple of put statements to that script you will find that "me" by itself doesn't include the card or stack. So "put me" would give something like [group "Language Choice"] which isn't specific enough from another card. This works: local tID put the long id of me into tID set the hilitedButton of tID to tNum But it can be simpler: set the hilitedButton of the long id of me to tNum I didn't do it from an openStack script, but from the message box while on another card. Thanks, Brian On Fri, Mar 9, 2018 at 8:10 PM Peter Bogdanoff via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes, it works great if you are on the card, not if you are somewhere else. > > > > On Mar 9, 2018, at 6:03 PM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Nevermind. Another card. DOH > > > > On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner wrote: > > > >> What version? Its working for me in 9 dp11 by using either dispatch or > >> send to the group. > >> > >> In the group: > >> command doit pbtn > >> set the hilitedbutton of me to pbtn > >> end doit > >> > >> And from the message box.. > >> > >> send ("doit" && 2) to group 1 > >> or > >> dispatch "doit" to group 1 with 3 > >> > >> > >> On Fri, Mar 9, 2018 at 6:23 PM, Peter Bogdanoff via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> I learned something today. > >>> > >>> I was trying by script to set the hilite of a radio button in a group > on > >>> another card. > >>> > >>> My script is in the group ?Language Choice? which is called by > openStack. > >>> I?m thinking that ?me? would operate on the group: > >>> > >>> set the hilitedButton of me to tNum > >>> > >>> Didn?t work, even though the script received the message and completed. > >>> The radio buttons were unchanged. I modified it to this, which worked: > >>> > >>> set the hilitedButton of group "Language Choice" of card > >>> "Settings" to tNum > >>> > >>> > >>> I can only think that, a group, even though it is on a single card and > >>> does not have its backgroundBehavior set to true, must be referred to > >>> explicitly by the name of the group and the name of the card is > resides in. > >>> Or maybe it?s because the individual buttons didn't have sharedHilite > set > >>> to true. > >>> > >>> Peter Bogdanoff > >>> ArtsInteractive > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ali.lloyd at livecode.com Sat Mar 10 07:16:41 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sat, 10 Mar 2018 12:16:41 +0000 Subject: When me is not me In-Reply-To: References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> <0840D429-A622-4B0D-8D08-2D4BE1915259@me.com> Message-ID: In theory that shouldn't be the problem - `the of me` should short-circuit to directly evaluating the property of the object with the behavior, rather than evaluating `me` as a name first. This is why `put the long id of me into tID` also works. Peter, in your original script are you doing set the hilitedButton of me to tNum directly, or local tMe put me into tMe set the hilitedButton of tMe to tNum ? The latter will have the 'not on the current card' problem, whereas the former should (in theory) not. On Sat, Mar 10, 2018 at 2:41 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I think I know what is going on. If you add a couple of put statements to > that script you will find that "me" by itself doesn't include the card or > stack. So "put me" would give something like [group "Language Choice"] > which isn't specific enough from another card. This works: > > local tID > put the long id of me into tID > set the hilitedButton of tID to tNum > > But it can be simpler: > > set the hilitedButton of the long id of me to tNum > > I didn't do it from an openStack script, but from the message box while on > another card. > > Thanks, > Brian > > On Fri, Mar 9, 2018 at 8:10 PM Peter Bogdanoff via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Yes, it works great if you are on the card, not if you are somewhere > else. > > > > > > > On Mar 9, 2018, at 6:03 PM, Mike Bonner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Nevermind. Another card. DOH > > > > > > On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner > wrote: > > > > > >> What version? Its working for me in 9 dp11 by using either dispatch > or > > >> send to the group. > > >> > > >> In the group: > > >> command doit pbtn > > >> set the hilitedbutton of me to pbtn > > >> end doit > > >> > > >> And from the message box.. > > >> > > >> send ("doit" && 2) to group 1 > > >> or > > >> dispatch "doit" to group 1 with 3 > > >> > > >> > > >> On Fri, Mar 9, 2018 at 6:23 PM, Peter Bogdanoff via use-livecode < > > >> use-livecode at lists.runrev.com> wrote: > > >> > > >>> I learned something today. > > >>> > > >>> I was trying by script to set the hilite of a radio button in a group > > on > > >>> another card. > > >>> > > >>> My script is in the group ?Language Choice? which is called by > > openStack. > > >>> I?m thinking that ?me? would operate on the group: > > >>> > > >>> set the hilitedButton of me to tNum > > >>> > > >>> Didn?t work, even though the script received the message and > completed. > > >>> The radio buttons were unchanged. I modified it to this, which > worked: > > >>> > > >>> set the hilitedButton of group "Language Choice" of card > > >>> "Settings" to tNum > > >>> > > >>> > > >>> I can only think that, a group, even though it is on a single card > and > > >>> does not have its backgroundBehavior set to true, must be referred to > > >>> explicitly by the name of the group and the name of the card is > > resides in. > > >>> Or maybe it?s because the individual buttons didn't have sharedHilite > > set > > >>> to true. > > >>> > > >>> Peter Bogdanoff > > >>> ArtsInteractive > > >>> > > >>> > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode at lists.runrev.com > > >>> Please visit this url to subscribe, unsubscribe and manage your > > >>> subscription preferences: > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > >> > > >> > > >> > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Sat Mar 10 12:05:03 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 10 Mar 2018 17:05:03 +0000 Subject: When me is not me In-Reply-To: References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> <0840D429-A622-4B0D-8D08-2D4BE1915259@me.com> Message-ID: Ali, he was doing the former. So could this actually be a bug? On Sat, Mar 10, 2018 at 6:17 AM Ali Lloyd via use-livecode < use-livecode at lists.runrev.com> wrote: > In theory that shouldn't be the problem - `the of me` should > short-circuit to directly evaluating the property of the object with the > behavior, rather than evaluating `me` as a name first. This is why `put the > long id of me into tID` also works. > > Peter, in your original script are you doing > set the hilitedButton of me to tNum > directly, or > local tMe > put me into tMe > set the hilitedButton of tMe to tNum > ? > > The latter will have the 'not on the current card' problem, whereas the > former should (in theory) not. > > On Sat, Mar 10, 2018 at 2:41 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I think I know what is going on. If you add a couple of put statements > to > > that script you will find that "me" by itself doesn't include the card or > > stack. So "put me" would give something like [group "Language Choice"] > > which isn't specific enough from another card. This works: > > > > local tID > > put the long id of me into tID > > set the hilitedButton of tID to tNum > > > > But it can be simpler: > > > > set the hilitedButton of the long id of me to tNum > > > > I didn't do it from an openStack script, but from the message box while > on > > another card. > > > > Thanks, > > Brian > > > > On Fri, Mar 9, 2018 at 8:10 PM Peter Bogdanoff via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Yes, it works great if you are on the card, not if you are somewhere > > else. > > > > > > > > > > On Mar 9, 2018, at 6:03 PM, Mike Bonner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > Nevermind. Another card. DOH > > > > > > > > On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner > > wrote: > > > > > > > >> What version? Its working for me in 9 dp11 by using either dispatch > > or > > > >> send to the group. > > > >> > > > >> In the group: > > > >> command doit pbtn > > > >> set the hilitedbutton of me to pbtn > > > >> end doit > > > >> > > > >> And from the message box.. > > > >> > > > >> send ("doit" && 2) to group 1 > > > >> or > > > >> dispatch "doit" to group 1 with 3 > > > >> > > > >> > > > >> On Fri, Mar 9, 2018 at 6:23 PM, Peter Bogdanoff via use-livecode < > > > >> use-livecode at lists.runrev.com> wrote: > > > >> > > > >>> I learned something today. > > > >>> > > > >>> I was trying by script to set the hilite of a radio button in a > group > > > on > > > >>> another card. > > > >>> > > > >>> My script is in the group ?Language Choice? which is called by > > > openStack. > > > >>> I?m thinking that ?me? would operate on the group: > > > >>> > > > >>> set the hilitedButton of me to tNum > > > >>> > > > >>> Didn?t work, even though the script received the message and > > completed. > > > >>> The radio buttons were unchanged. I modified it to this, which > > worked: > > > >>> > > > >>> set the hilitedButton of group "Language Choice" of card > > > >>> "Settings" to tNum > > > >>> > > > >>> > > > >>> I can only think that, a group, even though it is on a single card > > and > > > >>> does not have its backgroundBehavior set to true, must be referred > to > > > >>> explicitly by the name of the group and the name of the card is > > > resides in. > > > >>> Or maybe it?s because the individual buttons didn't have > sharedHilite > > > set > > > >>> to true. > > > >>> > > > >>> Peter Bogdanoff > > > >>> ArtsInteractive > > > >>> > > > >>> > > > >>> _______________________________________________ > > > >>> use-livecode mailing list > > > >>> use-livecode at lists.runrev.com > > > >>> Please visit this url to subscribe, unsubscribe and manage your > > > >>> subscription preferences: > > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > > >> > > > >> > > > >> > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Sat Mar 10 12:19:27 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 10 Mar 2018 11:19:27 -0600 Subject: Unicode inconsistency In-Reply-To: <503b4e54-668a-37ad-b70b-6c1c970d458f@gmail.com> References: <68341fd5-0889-f6bb-2d75-c227f0eca088@gmail.com> <503b4e54-668a-37ad-b70b-6c1c970d458f@gmail.com> Message-ID: With colourful pictures: http://forums.livecode.com/viewtopic.php?f=5&t=30718 Richmond. Bug report 21055 -- Quite interesting. Especially that decimal worked. On Sat, Mar 10, 2018 at 1:56 AM, Richmond Mathewson < richmondmathewson at gmail.com> wrote: > > > On 10/3/2018 1:32 am, Brian Milby wrote: > > Can you select the character and manually change the font and have it > change? Wondering if the font in that field somehow was off. > > > Dunno: it certainly makes me feel "off". > > Well, for starters, I set the font of the field to Devawriter.ttf via the > Properties palette . . . > > Selecting the text in the fld and changing the font makes no difference at > all (LC 8.1.8). > > What IS odd, is that IFF one sets the numToCodePoint(0x9AD) [for instance] > the correct glyph > is displayed in both the field and the Message box. > > This would suggest (?) that the way Unicode 'stuff' is implemented in the > Message box is somehow > different from the way it is implemented in fields . . . > > This is a "bother". > > For those of you who care about this sort of thing Unicode UA8FD is a > glyph inwith the "Devanagari Extended" set > that was implemented a while back. > > As "All of this" is happening on a Macintosh I shall wander over to a > Linux machine this afternoon > and see 'what gives': although, whatever gives, that's a pox for > cross-platform understanding. > > Richmond. > > > Brian > > On Fri, Mar 9, 2018 at 4:09 PM Richmond Mathewson < > richmondmathewson at gmail.com> wrote: > >> I am using my Devawriter.ttf font which has a Jain Om at the Unicode 10.0 >> standardised address for that glyph. >> >> >> Richmond. >> >> On 9/3/2018 10:36 pm, Brian Milby wrote: >> >> Is it a font issue? I get an empty box on Win10 and a box with a ? inside >> on my Mac. Had to go to fileformat.info to see what it should look like. >> >> > From brahma at hindu.org Sat Mar 10 23:26:24 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 11 Mar 2018 04:26:24 +0000 Subject: Bizarre Number Sort of Files Mac In-Reply-To: <7251A2EB-31AE-44DA-88C1-0751E5132F2C@iotecdigital.com> References: <47504F7A-4354-4653-B7DF-38073D9DFFBD@hindu.org> <6A2F53B6-55D3-43B5-A06A-375FD594993A@aol.com> <7251A2EB-31AE-44DA-88C1-0751E5132F2C@iotecdigital.com> Message-ID: <76E03EB2-0D62-4544-ADF7-00A7ED181DE6@hindu.org> Well the dictionary has this cryptic entry "If you don't specify a sortType, the sortType is text. numbers)" ?? I thought, wrongly so, sort alpha text, ascending, was the default sort line fld "imageIist" # would get you want But the solution was simple sort lines fld "imageList" ascending text # this gets want I need So, the default is mysterious; but, explicitly call, will work. BR Bob Sneidar wrote: Hmmm... I ran into this a few days ago. If you sort numeric, and any of the values are not numeric, the sort fails silently. I would have expected it to sort with the affinity for numeric, but that apparently is not how the sort command works. If you were to simply sort without the numeric arguement, it would work, since your filenames are already padded with zeros. If this needs to work with *any* file list, I think you may be in trouble. One option would be to iterate in a repeat loop through each line, then iterate through each character, adding the current character to a value then checking if the value is a number. When it's not, put char 1 to -2 of the value into item 1 of a new list, the actual filename into item 2 of the new list, sort lines of numeric ascending by item 1 of each, then iterate through the lies again, putting item 2 of each line in a new list. You could create a function that does this. Bob S >On Mar 9, 2018, at 10:46 , PEL via use-livecode wrote: >When you add text to a number, it ceases to be a number. >If you had a space between 01-11-04-09-_2018 and the rest of the line you might be able to >sort lines of field ?TheFiles? dateTime ascending by word one of each >Paul Looney From brian at milby7.com Sun Mar 11 00:14:23 2018 From: brian at milby7.com (Brian Milby) Date: Sun, 11 Mar 2018 05:14:23 +0000 Subject: Bizarre Number Sort of Files Mac In-Reply-To: <76E03EB2-0D62-4544-ADF7-00A7ED181DE6@hindu.org> References: <47504F7A-4354-4653-B7DF-38073D9DFFBD@hindu.org> <6A2F53B6-55D3-43B5-A06A-375FD594993A@aol.com> <7251A2EB-31AE-44DA-88C1-0751E5132F2C@iotecdigital.com> <76E03EB2-0D62-4544-ADF7-00A7ED181DE6@hindu.org> Message-ID: That strange dictionary entry was due to a bug in the parser. It is fixed now (9DP11 does not have that bug, not sure about 8). Now, not sure about the actual sort issue... On Sat, Mar 10, 2018 at 10:27 PM Sannyasin Brahmanathaswami via use-livecode wrote: > Well the dictionary has this cryptic entry > > "If you don't specify a sortType, the sortType is text. > numbers)" > > ?? > > I thought, wrongly so, sort alpha text, ascending, was the default > > sort line fld "imageIist" # would get you want > > But the solution was simple > > sort lines fld "imageList" ascending text # this gets want I need > > So, the default is mysterious; but, explicitly call, will work. > > BR > > > > Bob Sneidar wrote: > > Hmmm... I ran into this a few days ago. If you sort numeric, and any > of the values are not numeric, the sort fails silently. I would have > expected it to sort with the affinity for numeric, but that apparently is > not how the sort command works. If you were to simply sort without the > numeric arguement, it would work, since your filenames are already padded > with zeros. If this needs to work with *any* file list, I think you may be > in trouble. > > One option would be to iterate in a repeat loop through each line, > then iterate through each character, adding the current character to a > value then checking if the value is a number. When it's not, put char 1 to > -2 of the value into item 1 of a new list, the actual filename into item 2 > of the new list, sort lines of numeric ascending by item 1 of each, > then iterate through the lies again, putting item 2 of each line in a new > list. > > You could create a function that does this. > > Bob S > > > >On Mar 9, 2018, at 10:46 , PEL via use-livecode < > use-livecode at lists.runrev.com> wrote: > >When you add text to a number, it ceases to be a number. > >If you had a space between 01-11-04-09-_2018 and the rest of the line > you might be able to > >sort lines of field ?TheFiles? dateTime ascending by word one of each > >Paul Looney > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ali.lloyd at livecode.com Sun Mar 11 10:01:53 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sun, 11 Mar 2018 14:01:53 +0000 Subject: Bizarre Number Sort of Files Mac In-Reply-To: References: <47504F7A-4354-4653-B7DF-38073D9DFFBD@hindu.org> <6A2F53B6-55D3-43B5-A06A-375FD594993A@aol.com> <7251A2EB-31AE-44DA-88C1-0751E5132F2C@iotecdigital.com> <76E03EB2-0D62-4544-ADF7-00A7ED181DE6@hindu.org> Message-ID: I think this is a relevant enhancement request: http://quality.livecode.com/show_bug.cgi?id=21013 On Sun, Mar 11, 2018 at 5:14 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > That strange dictionary entry was due to a bug in the parser. It is fixed > now (9DP11 does not have that bug, not sure about 8). > > Now, not sure about the actual sort issue... > On Sat, Mar 10, 2018 at 10:27 PM Sannyasin Brahmanathaswami via > use-livecode wrote: > > > Well the dictionary has this cryptic entry > > > > "If you don't specify a sortType, the sortType is text. > > numbers)" > > > > ?? > > > > I thought, wrongly so, sort alpha text, ascending, was the default > > > > sort line fld "imageIist" # would get you want > > > > But the solution was simple > > > > sort lines fld "imageList" ascending text # this gets want I need > > > > So, the default is mysterious; but, explicitly call, will work. > > > > BR > > > > > > > > Bob Sneidar wrote: > > > > Hmmm... I ran into this a few days ago. If you sort numeric, and any > > of the values are not numeric, the sort fails silently. I would have > > expected it to sort with the affinity for numeric, but that apparently is > > not how the sort command works. If you were to simply sort without the > > numeric arguement, it would work, since your filenames are already padded > > with zeros. If this needs to work with *any* file list, I think you may > be > > in trouble. > > > > One option would be to iterate in a repeat loop through each line, > > then iterate through each character, adding the current character to a > > value then checking if the value is a number. When it's not, put char 1 > to > > -2 of the value into item 1 of a new list, the actual filename into item > 2 > > of the new list, sort lines of numeric ascending by item 1 of > each, > > then iterate through the lies again, putting item 2 of each line in a new > > list. > > > > You could create a function that does this. > > > > Bob S > > > > > > >On Mar 9, 2018, at 10:46 , PEL via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >When you add text to a number, it ceases to be a number. > > >If you had a space between 01-11-04-09-_2018 and the rest of the > line > > you might be able to > > >sort lines of field ?TheFiles? dateTime ascending by word one of > each > > >Paul Looney > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ali.lloyd at livecode.com Sun Mar 11 10:03:09 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sun, 11 Mar 2018 14:03:09 +0000 Subject: When me is not me In-Reply-To: References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> <0840D429-A622-4B0D-8D08-2D4BE1915259@me.com> Message-ID: It certainly sounds like it to me... On Sat, 10 Mar 2018 at 17:05, Brian Milby wrote: > Ali, he was doing the former. So could this actually be a bug? > On Sat, Mar 10, 2018 at 6:17 AM Ali Lloyd via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> In theory that shouldn't be the problem - `the of me` should >> short-circuit to directly evaluating the property of the object with the >> behavior, rather than evaluating `me` as a name first. This is why `put >> the >> long id of me into tID` also works. >> >> Peter, in your original script are you doing >> set the hilitedButton of me to tNum >> directly, or >> local tMe >> put me into tMe >> set the hilitedButton of tMe to tNum >> ? >> >> The latter will have the 'not on the current card' problem, whereas the >> former should (in theory) not. >> >> On Sat, Mar 10, 2018 at 2:41 AM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > I think I know what is going on. If you add a couple of put statements >> to >> > that script you will find that "me" by itself doesn't include the card >> or >> > stack. So "put me" would give something like [group "Language Choice"] >> > which isn't specific enough from another card. This works: >> > >> > local tID >> > put the long id of me into tID >> > set the hilitedButton of tID to tNum >> > >> > But it can be simpler: >> > >> > set the hilitedButton of the long id of me to tNum >> > >> > I didn't do it from an openStack script, but from the message box while >> on >> > another card. >> > >> > Thanks, >> > Brian >> > >> > On Fri, Mar 9, 2018 at 8:10 PM Peter Bogdanoff via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > >> > > Yes, it works great if you are on the card, not if you are somewhere >> > else. >> > > >> > > >> > > > On Mar 9, 2018, at 6:03 PM, Mike Bonner via use-livecode < >> > > use-livecode at lists.runrev.com> wrote: >> > > > >> > > > Nevermind. Another card. DOH >> > > > >> > > > On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner >> > wrote: >> > > > >> > > >> What version? Its working for me in 9 dp11 by using either >> dispatch >> > or >> > > >> send to the group. >> > > >> >> > > >> In the group: >> > > >> command doit pbtn >> > > >> set the hilitedbutton of me to pbtn >> > > >> end doit >> > > >> >> > > >> And from the message box.. >> > > >> >> > > >> send ("doit" && 2) to group 1 >> > > >> or >> > > >> dispatch "doit" to group 1 with 3 >> > > >> >> > > >> >> > > >> On Fri, Mar 9, 2018 at 6:23 PM, Peter Bogdanoff via use-livecode < >> > > >> use-livecode at lists.runrev.com> wrote: >> > > >> >> > > >>> I learned something today. >> > > >>> >> > > >>> I was trying by script to set the hilite of a radio button in a >> group >> > > on >> > > >>> another card. >> > > >>> >> > > >>> My script is in the group ?Language Choice? which is called by >> > > openStack. >> > > >>> I?m thinking that ?me? would operate on the group: >> > > >>> >> > > >>> set the hilitedButton of me to tNum >> > > >>> >> > > >>> Didn?t work, even though the script received the message and >> > completed. >> > > >>> The radio buttons were unchanged. I modified it to this, which >> > worked: >> > > >>> >> > > >>> set the hilitedButton of group "Language Choice" of card >> > > >>> "Settings" to tNum >> > > >>> >> > > >>> >> > > >>> I can only think that, a group, even though it is on a single card >> > and >> > > >>> does not have its backgroundBehavior set to true, must be >> referred to >> > > >>> explicitly by the name of the group and the name of the card is >> > > resides in. >> > > >>> Or maybe it?s because the individual buttons didn't have >> sharedHilite >> > > set >> > > >>> to true. >> > > >>> >> > > >>> Peter Bogdanoff >> > > >>> ArtsInteractive >> > > >>> >> > > >>> >> > > >>> _______________________________________________ >> > > >>> use-livecode mailing list >> > > >>> use-livecode at lists.runrev.com >> > > >>> Please visit this url to subscribe, unsubscribe and manage your >> > > >>> subscription preferences: >> > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > >> >> > > >> >> > > >> >> > > > _______________________________________________ >> > > > use-livecode mailing list >> > > > use-livecode at lists.runrev.com >> > > > Please visit this url to subscribe, unsubscribe and manage your >> > > subscription preferences: >> > > > http://lists.runrev.com/mailman/listinfo/use-livecode >> > > >> > > >> > > _______________________________________________ >> > > use-livecode mailing list >> > > use-livecode at lists.runrev.com >> > > Please visit this url to subscribe, unsubscribe and manage your >> > > subscription preferences: >> > > http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> > subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 canelasoftware.com Sun Mar 11 16:02:04 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Sun, 11 Mar 2018 13:02:04 -0700 Subject: Issues with storage of data in stack In-Reply-To: References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> Message-ID: Hi Lagi, Our LiveCode array database does not use SQL or any other database. In terms of local only database, we do not rely on anything but LiveCode. It is purely a LiveCode derived system. Data is manipulated using familiar methodologies to other databases. The data is encrypted using ?encrypt? and stored using 'arrayEncode()?. The full array of the database is stored in memory. This method provides very quick access to your data thanks to the amazing performance provided by LiveCode. This might get a little long. I am happy to take this off list for more details. I will try to be as succinct as possible. -A little more explanation on storing data- Each record is stored in array that looks like this: tableID/clusterID/recordID/recordData? When a given record/s is updated, we cache the recordIDs that were touched. All data is updated first in memory then cached to disk. We then refer to the cached records and conclude which clusterIDs we affected. Thus, you can very quickly save only the clusters that have been modified. Each cluster will have one or more records associated with it. The clusters are the first ?n? characters of the recordIDs. We use UUIDs as recordIDs. The cluster sizes are definable, giving us the power to decide where to apply the optimization. Clusters of only one or two characters will generate less clusters to be stored. This makes loading of tables from disk to RAM very fast. A cluster of 3 chars or more allows for less records per cluster thus improving saving from RAM to disk to be faster. The pseudo code for this might looks like this: -receive request for update in your API -store the changes to your master array in RAM -remember the recordIDs touched in a variable -calculate the clusters touched by taking the first ?n? characters of the records touched and make a new list of the clusters you need to write to disk -write appropriate clusters to disk -return the results of the action (any errors, recordIDs?) You will find this method to be very performant and easy to manage. This is not particularly complicated to write. Once you get it all working you might add other niceties like: -error checking the input before storing anything -store metadata on each updated record: recordVersion, recordTime, updateTime -add security using ?encrypt? -build simple APIs to do your CRUD first -add other APIs as needed to make accessing your data easier Here is an example API for storing data that you may find useful when making your own system. -Input (array)- put ?Steve? into tInputA[?firstName?] put ?Jobs? into tInputA[?lastName?] put ?rolodex? into tInputA[?cdbTableName?] put ?local? into tInputA[?cdbTarget?] ?We would use ?cloud? when we want to store offsite. Your system might verify that the keys ?firstName' and ?lastName' are actual keys. This is very SQL in terms of error checking. Or, do not check the keys and feel more noSQL in nature. From here we take the array and pass it to a function. put cdb_create(tInputA) into tRecordID ?returns the unique UUID representing the recordID The ?cdb_create()? function basically runs the pseudo code proposed above. And voil?, you have your first record stored. I hope this gives you some ideas. We have successfully used this in enterprise level scenarios. We nightly interchange data with our customer's database. We have not run into any issues with IT in terms of the type of database we are using in our backend. I fully support your experimentation with arrays as a data store. :) If you are interested in seeing other APIs we have found useful, here is a running list. Look under the API dropdown for more ideas. http://canelasoftware.github.io/cassiaDB_docs/ -Mark > On Mar 9, 2018, at 2:07 AM, Lagi Pittas wrote: > > HI Mark, > > I am intrigued by your way of saving only whats changed and also when > you say save to disk after arrayencoded. Do you meanas a simple save > as a binfile or in an sqlite BLOB? > > I would really like to see some exampleish code on saving to disk - if > it's other than a single array in a single binfile - I think even I > can do that. But your other ideas sound brilliant. > > Regards Lagi From bogdanoff at me.com Sun Mar 11 16:15:28 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sun, 11 Mar 2018 13:15:28 -0700 Subject: Callbacks fail Message-ID: Hi, I?m working on a project that has a 1-1/2 hour video playing. I?m using callbacks to display subtitle text in a field. When a callback is sent from the player, the appropriate text is shown. This work great on Mac, not so good on Windows. On Windows, the callbacks seem to stop arriving after about a minute, and the player stops functioning correctly. The player timeScale and subsequent callbacks are set up: Mac timeScale = 2997, last callback in the video = 16661913 Win timeScale = 10,000,000, last callback in the video = 552892592040 So, should I be surprised that in Windows a callback of 552 billion might not work? The callbacks seem to stop coming around 325625625. Peter ArtsInteractive From brahma at hindu.org Sun Mar 11 22:18:30 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 12 Mar 2018 02:18:30 +0000 Subject: Issues with storage of data in stack In-Reply-To: References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> Message-ID: <85FFAC56-E5C3-4321-96A2-BEEF0EF8899E@hindu.org> Mark Talluto wrote: If you are interested in seeing other APIs we have found useful, here is a running list. Look under the API dropdown for more ideas. http://canelasoftware.github.io/cassiaDB_docs/ http://canelasoftware.github.io/cassiaDB_docs/ Where does one download the LiveCloud Manager application (duh, I am not seeing something) BR From mark at canelasoftware.com Mon Mar 12 00:13:52 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Sun, 11 Mar 2018 21:13:52 -0700 Subject: Issues with storage of data in stack In-Reply-To: <85FFAC56-E5C3-4321-96A2-BEEF0EF8899E@hindu.org> References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> <85FFAC56-E5C3-4321-96A2-BEEF0EF8899E@hindu.org> Message-ID: Hi BR, Sorry about that. I have updated the docs page to link back to the main site. https://livecloud.io Mark > On Mar 11, 2018, at 7:18 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > Mark Talluto wrote: > > If you are interested in seeing other APIs we have found useful, here is a running list. Look under the API dropdown for more ideas. > http://canelasoftware.github.io/cassiaDB_docs/ http://canelasoftware.github.io/cassiaDB_docs/ > > Where does one download the LiveCloud Manager application (duh, I am not seeing something) > > 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 sean at pidigital.co.uk Mon Mar 12 09:15:21 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Mon, 12 Mar 2018 13:15:21 +0000 Subject: Callbacks fail In-Reply-To: References: Message-ID: Hi Peter 325625625 is only 32.5sec of video. 552892592040 would be 55290 seconds, which is 921 mins, which is 15.35hrs! If it was 55 billion, that would make more sense. Can you just recheck your numbers and also let us know what format video you are using, codec, wrapper, etc. Also, which version of LC are you using? Cheers Sean Cole *Pi Digital * On 11 March 2018 at 20:15, Peter Bogdanoff via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > I?m working on a project that has a 1-1/2 hour video playing. I?m using > callbacks to display subtitle text in a field. When a callback is sent from > the player, the appropriate text is shown. > > This work great on Mac, not so good on Windows. On Windows, the callbacks > seem to stop arriving after about a minute, and the player stops > functioning correctly. The player timeScale and subsequent callbacks are > set up: > > Mac timeScale = 2997, last callback in the video = 16661913 > Win timeScale = 10,000,000, last callback in the video = 552892592040 > > So, should I be surprised that in Windows a callback of 552 billion might > not work? The callbacks seem to stop coming around 325625625. > > Peter > ArtsInteractive > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Mar 12 09:51:39 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 12 Mar 2018 13:51:39 +0000 Subject: [ANN] This Week in LiveCode 120 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #120 here: https://goo.gl/Bjvb1Z This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From roland.huettmann at gmail.com Mon Mar 12 09:57:55 2018 From: roland.huettmann at gmail.com (R.H.) Date: Mon, 12 Mar 2018 14:57:55 +0100 Subject: Standalone compile problem including more than two stack files to the mainstack Message-ID: I like to thank everyone for help and suggestions !) The suggestion from Jaqueline Landman gave me the workaround that I was knowing that it would work: Using the "Copy Files" pane in the Standalone Settings instead of using "Stacks". So, thank you especially for this hint that saved me. (For new and casual users: After compiling at least 50 x to find my error and to know about errors generated in the Standalone and NOT in the IDE, I created a handler that would receive information from each and every statement writing "the result" and other information to a text file on disk with a timestamp and some execution details. Simply setting a flag using a hidden checkbox would stop executing this error catching. So, I am using a "command catchError pMessage" handler in the lowest (or highest?) message level (in my case library stack) that can be invoked from anywhere and opens the error text file for append and immediately closes it. This works pretty well even in a standalone for debugging purposes. The overhead is manageable. Even on mobile that should work.) I found one error in my code that had some bad influence. When the main stack is opened from the complied splash stack and turning focus to the main stack, trying to execute further instructions in the same handler reverts back to the Splash stack and may find it impossible to execute. Once the main stack is opened and control is given to it, Splash stack must simply close and do nothing more. Context Sensitive Help Suggestion I was thinking of what especially new users might benefit from. I think it is mainly information that might be missing. For example, what is the meaning of a field "Destination Folder:" when it does not allow to enter a path selected from disk? Or it should explain that these folders are folders inside the specialfolderpath("resources") folder and that this specialfolderpath("resources") changes for the compiled version, of course. But what seems obvious is not always so obvious to a casual or new user. The meaning and consequences of certain settings for compilation work (and elsewhere) should ideally be available with a context-sensitive help right at the spot describing more than just giving a title, and it could be realized simply using a pop-up pane or opening a help window or opening an appropriate help page in the browser. I would favor a context-sensitive webpage help. This is a task that could be assigned to us in the community may be. I would at least try to spend some time here. Roland From bobsneidar at iotecdigital.com Mon Mar 12 11:02:17 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 12 Mar 2018 15:02:17 +0000 Subject: When me is not me In-Reply-To: References: <40CF9120-A427-4793-A1D6-286EEE9770FF@iotecdigital.com> <86A81BE1-D613-4BB4-996E-106C1E6DB757@me.com> <0840D429-A622-4B0D-8D08-2D4BE1915259@me.com> Message-ID: It is this sort of thing which inspired me to start using long id's for everything whenever I make calls to cards or stacks not the one I am currently on. That is why I created getParentCard() and getParentStack(). I then pass the local long id of the callign object to whatever script I am callign in another place. I have posted these in the past, let me know if you need them. All I do is pass the long ID of the object that is calling these functions, and all they do is parse the long id string by eliminating everything before the first occurrance of the word "card" or "stack" respectively. Bob S From iphonelagi at gmail.com Mon Mar 12 13:31:06 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 12 Mar 2018 17:31:06 +0000 Subject: Issues with storage of data in stack In-Reply-To: References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> Message-ID: Hi Mark, Thanks for the detailed explanation but I have a few (ish) questions ... Hope you don't mind me asking these questions because I did have to write my own access routines in those bad old days before I started on Clipper/Foxpro/Delphi/Btrieve and I do enjoy learning from others on the list and the forums - those AHA! moments when you finally get how the Heapsort works the night before the exam. Many moons ago I wrote a multi-way B-TREE based on the explanation in Wirth's Book "Algorithms + Data Structures = Programs" - in UCSD Pascal for the Apple 2, I had a 5MB hard Drives for the bigger companies when I was lucky, for the smaller companies I made do with 2 143k floppy disks and Hashing for a "large" data set- oh the memories. I used the B-Trees if the codes were alphanumeric. I also had my own method where I kept the index in the first X Blocks of the file and loaded the parts in memory as they were needed - a brain dead version of yours I suppose. I think we had about 40k of free ram to Play with so couldn't always keep everything in RAM. I even made the system multi-user and ran 20 Apple ][s on a network using a proprietary Nestar/Zynar network using Ribbon Cables - it worked but am I glad we have Ethernet! Anyway - I digress. I can understand the general idea of what you are explaining but it's the low level code for writing to the clusters/file on disk I'm not quite sure of. Which way do you build your initial file? Is it "Sparse" or prebuilt, or does each cluster have a "pointer" to previous or next clusters? Do you have records "spanning" clusters or do you leave any spare space in a cluster empty. Do you mark a "record" as deleted but don't remove the record until it's overwritten or do what Foxpro/Dbase does and "PACK" them with a utility routine. I also presume you use the "AT" option in the write command to write the clusters randomly since you don't wriite the whole in memory table Which brings me onto my final questions - I presume your system is multi-user because you have a server program that receives calls and executes them sequentially? And lastly what are the file size limitations doing it this way - do You also virtualize the data in memory? Sorry for all the question but this is the interesting stuff Regards Lagi On 11 March 2018 at 20:02, Mark Talluto wrote: > Hi Lagi, > > Our LiveCode array database does not use SQL or any other database. In terms > of local only database, we do not rely on anything but LiveCode. It is > purely a LiveCode derived system. Data is manipulated using familiar > methodologies to other databases. The data is encrypted using ?encrypt? and > stored using 'arrayEncode()?. > > The full array of the database is stored in memory. This method provides > very quick access to your data thanks to the amazing performance provided by > LiveCode. > > This might get a little long. I am happy to take this off list for more > details. I will try to be as succinct as possible. > > -A little more explanation on storing data- > Each record is stored in array that looks like this: > tableID/clusterID/recordID/recordData? > When a given record/s is updated, we cache the recordIDs that were touched. > All data is updated first in memory then cached to disk. We then refer to > the cached records and conclude which clusterIDs we affected. Thus, you can > very quickly save only the clusters that have been modified. Each cluster > will have one or more records associated with it. The clusters are the first > ?n? characters of the recordIDs. We use UUIDs as recordIDs. The cluster > sizes are definable, giving us the power to decide where to apply the > optimization. Clusters of only one or two characters will generate less > clusters to be stored. This makes loading of tables from disk to RAM very > fast. A cluster of 3 chars or more allows for less records per cluster thus > improving saving from RAM to disk to be faster. > > The pseudo code for this might looks like this: > -receive request for update in your API > -store the changes to your master array in RAM > -remember the recordIDs touched in a variable > -calculate the clusters touched by taking the first ?n? characters of the > records touched and make a new list of the clusters you need to write to > disk > -write appropriate clusters to disk > -return the results of the action (any errors, recordIDs?) > > You will find this method to be very performant and easy to manage. This is > not particularly complicated to write. Once you get it all working you might > add other niceties like: > -error checking the input before storing anything > -store metadata on each updated record: recordVersion, recordTime, > updateTime > -add security using ?encrypt? > -build simple APIs to do your CRUD first > -add other APIs as needed to make accessing your data easier > > Here is an example API for storing data that you may find useful when making > your own system. > > -Input (array)- > put ?Steve? into tInputA[?firstName?] > put ?Jobs? into tInputA[?lastName?] > put ?rolodex? into tInputA[?cdbTableName?] > put ?local? into tInputA[?cdbTarget?] ?We would use ?cloud? when we want to > store offsite. > > Your system might verify that the keys ?firstName' and ?lastName' are actual > keys. This is very SQL in terms of error checking. Or, do not check the keys > and feel more noSQL in nature. > > From here we take the array and pass it to a function. > put cdb_create(tInputA) into tRecordID ?returns the unique UUID representing > the recordID > > The ?cdb_create()? function basically runs the pseudo code proposed above. > And voil?, you have your first record stored. > > I hope this gives you some ideas. We have successfully used this in > enterprise level scenarios. We nightly interchange data with our customer's > database. We have not run into any issues with IT in terms of the type of > database we are using in our backend. I fully support your experimentation > with arrays as a data store. :) > > If you are interested in seeing other APIs we have found useful, here is a > running list. Look under the API dropdown for more ideas. > http://canelasoftware.github.io/cassiaDB_docs/ > > -Mark > > > On Mar 9, 2018, at 2:07 AM, Lagi Pittas wrote: > > HI Mark, > > I am intrigued by your way of saving only whats changed and also when > you say save to disk after arrayencoded. Do you meanas a simple save > as a binfile or in an sqlite BLOB? > > I would really like to see some exampleish code on saving to disk - if > it's other than a single array in a single binfile - I think even I > can do that. But your other ideas sound brilliant. > > Regards Lagi From brahma at hindu.org Mon Mar 12 17:39:27 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 12 Mar 2018 21:39:27 +0000 Subject: Dictionary Entry For TouchMove Message-ID: I have a group control (made up smaller groups) they I want users to scroll vertically. And the sub-groups, which want the user to scroller horizontally. My current thinking is to turn off scrollers until we get swipe direction, and turn them on, "mid-swipe" simply: how do you know if touchMove is a horizontal or vertical swipe? in the dictionary, it says (another cryptic entry!) touchMove pTouchID, pTouchX, pTouchY Summary Sent when the point at which the user is touching the screen changes. Example on touchMove pTouchID, pX, pY if pX > lastX then -- user has moved to the right end if end touchMove where does "lastX" come from? It is not localized as a variable. Other touch handlers do not record the X,Y coords of touchRelease. should we local sLastMouseUp end touchRelease put the mouseloc to sLastMouseUp end touchRelease on touchMove pTouchID, pX, pY if pX > (item 1 of sLastMouseUp) then -- user has moved to the right end if end touchMove But this relative to the last swipe - this is not "runtime" as the dictionary says: "Handle the touchMove message if you want to perform some action when the user changes the touch position without ending the touch or if you want to keep continuous track of the touch position." BR From brian at milby7.com Mon Mar 12 18:24:26 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 12 Mar 2018 17:24:26 -0500 Subject: Dictionary Entry For TouchMove In-Reply-To: References: Message-ID: Short answer, you need to track the location of each touch yourself and do the math. Check out this piece of code: https://raw.githubusercontent.com/bwmilby/lc-misc/master/PinchZoom/pinchzoom.livecodescript That is a piece of code that I translated into LCS that deals with tracking two touch points to zoom an object. Depending on what you want to accomplish, you won't need anything that complicated. Looking at the Netflix app, you can either go vertical or horizontal. First movement direction locks it until all touches are released. So you would need to capture the touchStart to get the ID and then 2 touchMove messages to establish direction (I didn't try using mouseloc to get the touchStart location). You may want to pair the direction detection with a minimum to ensure you capture the correct direction. Hope this helps, Brian On Mon, Mar 12, 2018 at 4:39 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > I have a group control (made up smaller groups) they I want users to > scroll vertically. And the sub-groups, which want the user to scroller > horizontally. My current thinking is to turn off scrollers until we get > swipe direction, and turn them on, "mid-swipe" > > simply: how do you know if touchMove is a horizontal or vertical swipe? > > in the dictionary, it says (another cryptic entry!) > > touchMove pTouchID, pTouchX, pTouchY > > Summary > > Sent when the point at which the user is touching the screen changes. > Example > > on touchMove pTouchID, pX, pY > if pX > lastX then > -- user has moved to the right > end if > end touchMove > > where does "lastX" come from? It is not localized as a variable. > > Other touch handlers do not record the X,Y coords of touchRelease. > > should we > > local sLastMouseUp > > end touchRelease > put the mouseloc to sLastMouseUp > end touchRelease > > on touchMove pTouchID, pX, pY > if pX > (item 1 of sLastMouseUp) then > -- user has moved to the right > end if > end touchMove > > But this relative to the last swipe - this is not "runtime" as the > dictionary says: > > "Handle the touchMove message if you want to perform some action when > the user changes the touch position without ending the touch or if you > want to keep continuous track of the touch position." > > 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 dan at clearvisiontech.com Mon Mar 12 19:11:10 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 12 Mar 2018 23:11:10 +0000 Subject: tsNet woes Message-ID: <05275673-F0E8-48A5-AFD7-0A4D220BB627@clearvisiontech.com> Greetings! I have an app I am working on and it?s working perfectly on my Mac and in the iOS simulator. However, on an Android device, once I do a couple of get urls, tsNet stops functioning. I get a variety of results: Previous request not completed Sync request already in progress (most common) tsNet is not initialized Also, tsNetIsSyncBlocked() always returns true. I am using LC Indy 8.1.5. Any thoughts or advise? -Dan From brian at milby7.com Mon Mar 12 23:43:15 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 12 Mar 2018 22:43:15 -0500 Subject: Dictionary Entry For TouchMove In-Reply-To: References: Message-ID: PR submitted to clarify the touchMove dictionary entry: https://github.com/livecode/livecode/pull/6413 On Mon, Mar 12, 2018 at 5:24 PM, Brian Milby wrote: > Short answer, you need to track the location of each touch yourself and do > the math. > > Check out this piece of code: > https://raw.githubusercontent.com/bwmilby/lc-misc/master/ > PinchZoom/pinchzoom.livecodescript > > That is a piece of code that I translated into LCS that deals with > tracking two touch points to zoom an object. Depending on what you want to > accomplish, you won't need anything that complicated. > > Looking at the Netflix app, you can either go vertical or horizontal. > First movement direction locks it until all touches are released. So you > would need to capture the touchStart to get the ID and then 2 touchMove > messages to establish direction (I didn't try using mouseloc to get the > touchStart location). You may want to pair the direction detection with a > minimum to ensure you capture the correct direction. > > Hope this helps, > Brian > > On Mon, Mar 12, 2018 at 4:39 PM, Sannyasin Brahmanathaswami via > use-livecode wrote: > >> I have a group control (made up smaller groups) they I want users to >> scroll vertically. And the sub-groups, which want the user to scroller >> horizontally. My current thinking is to turn off scrollers until we get >> swipe direction, and turn them on, "mid-swipe" >> >> simply: how do you know if touchMove is a horizontal or vertical swipe? >> >> in the dictionary, it says (another cryptic entry!) >> >> touchMove pTouchID, pTouchX, pTouchY >> >> Summary >> >> Sent when the point at which the user is touching the screen changes. >> Example >> >> on touchMove pTouchID, pX, pY >> if pX > lastX then >> -- user has moved to the right >> end if >> end touchMove >> >> where does "lastX" come from? It is not localized as a variable. >> >> Other touch handlers do not record the X,Y coords of touchRelease. >> >> should we >> >> local sLastMouseUp >> >> end touchRelease >> put the mouseloc to sLastMouseUp >> end touchRelease >> >> on touchMove pTouchID, pX, pY >> if pX > (item 1 of sLastMouseUp) then >> -- user has moved to the right >> end if >> end touchMove >> >> But this relative to the last swipe - this is not "runtime" as the >> dictionary says: >> >> "Handle the touchMove message if you want to perform some action when >> the user changes the touch position without ending the touch or if you >> want to keep continuous track of the touch position." >> >> 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 tom at makeshyft.com Tue Mar 13 00:31:56 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 13 Mar 2018 00:31:56 -0400 Subject: tsNet woes In-Reply-To: <05275673-F0E8-48A5-AFD7-0A4D220BB627@clearvisiontech.com> References: <05275673-F0E8-48A5-AFD7-0A4D220BB627@clearvisiontech.com> Message-ID: do yo have a firewall app or anything that filters your traffic?.... inconsistent behavior like that usually means something is acting on your traffic On Mon, Mar 12, 2018 at 7:11 PM, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > Greetings! > > I have an app I am working on and it?s working perfectly on my Mac and in > the iOS simulator. However, on an Android device, once I do a couple of > get urls, tsNet stops functioning. I get a variety of results: > > Previous request not completed > Sync request already in progress (most common) > tsNet is not initialized > > Also, tsNetIsSyncBlocked() always returns true. > > I am using LC Indy 8.1.5. Any thoughts or advise? > > -Dan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Tue Mar 13 02:34:40 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Tue, 13 Mar 2018 16:34:40 +1000 Subject: is tsnet downwards compatible? In-Reply-To: <002d01d3b78f$bc784000$3568c000$@kestner.de> References: <002d01d3b78f$bc784000$3568c000$@kestner.de> Message-ID: <6BB49DE1-D9A2-4E01-97B4-648724BC7A01@techstrategies.com.au> Hi Tiemo, Unless you are deploying to iOS devices, you should be ok to use the latest version of tsNet with LC 8.1.4. Each build of tsNet contains iOS binaries specifically for the version of LC it relates to. Cheers, Charles > On 9 Mar 2018, at 8:16 pm, Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > > > can I take the newest tsnet.dll (from 8.1.9 or 9..0dp4) and use it with LC > 8.1.4? Is it downward compatible? > > > > The reason I ask for is, that I need the newest tsnet because of some proxy > server problem in older version, but I can't use LC newer than 8.1.4 because > it can't play mp4 videos on some windows machines. So I wanted to stay with > LC 8.1.4 and just copy manually the tsnet from 9.0 > > Should this be a good idea? > > > > Thanks > > 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 charles at techstrategies.com.au Tue Mar 13 02:44:45 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Tue, 13 Mar 2018 16:44:45 +1000 Subject: tsNet woes In-Reply-To: References: <05275673-F0E8-48A5-AFD7-0A4D220BB627@clearvisiontech.com> Message-ID: <25C3ED60-E2A4-4751-B00D-7AE05042D150@techstrategies.com.au> Hi Dan, If tsNetIsSyncBlocked() is always returning true then a connection must be stalled. The latest version of tsNet defaults to timing out stalled connections after 30 seconds. If you want to stay with LC 8.1.5 then just add the following code in your application?s startup: tsNetSetTimeouts 60,0,300000,60000,30,1000 The last two parameters of this command mean timeout the connection in 30 seconds if less than 1000 bytes per second are transferred over this period. You can adjust those values to suit your application. Regards, Charles > On 13 Mar 2018, at 2:31 pm, Tom Glod via use-livecode wrote: > > do yo have a firewall app or anything that filters your traffic?.... > inconsistent behavior like that usually means something is acting on your > traffic > > On Mon, Mar 12, 2018 at 7:11 PM, Dan Friedman via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Greetings! >> >> I have an app I am working on and it?s working perfectly on my Mac and in >> the iOS simulator. However, on an Android device, once I do a couple of >> get urls, tsNet stops functioning. I get a variety of results: >> >> Previous request not completed >> Sync request already in progress (most common) >> tsNet is not initialized >> >> Also, tsNetIsSyncBlocked() always returns true. >> >> I am using LC Indy 8.1.5. Any thoughts or advise? >> >> -Dan >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Tue Mar 13 03:55:54 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Tue, 13 Mar 2018 17:55:54 +1000 Subject: tsNet and Digest Authentication - some problems or better said: missing knowledge In-Reply-To: <49A8DFE3-1C01-4C4C-B37D-A8E120CC57AE@m-r-d.de> References: <656AA5F9-9CE1-401B-A202-CCAD7DC6294D@techstrategies.com.au> <49A8DFE3-1C01-4C4C-B37D-A8E120CC57AE@m-r-d.de> Message-ID: Hi Matthias, It looks to me that you are issuing a put URL request to the same URL each time? Are you using the latest version of LC? I think I know what is going on, but will need to generate a new tsNet build and get you to test to see if it resolves the issue. Can you please raise a bug report and I will follow up there. Regards, Charles > On 9 Mar 2018, at 6:10 pm, Matthias Rebbe via use-livecode wrote: > > Hi Charles, > thanks for your answer. > > I?ve done as requested. > With tsNetLibUrlReuseConnection set to true > A session cookie is sent from the PABX after the first successful connection. > The 2nd unsuccessful connection shows > > "HTTP/1.1 401 Unauthorized > Authentication problem. Ignoring this.? > > And the value for nonce is an other then the one in the first connection. > > After a restart of LC i set it to false. > The error messages looks similar, but i can see also > "Issue another request to this URL: 'http://sub-admin:feierabend at 192.168.1.1/app_group_logchange?grpId=2641&kommend=0 ' > Hostname 192.168.1.1 was found in DNS cache? > > > I?ve uploaded the complete debug files here: > > https://dl.qck.nu//?dl=liburl_reuse_false.txt > https://dl.qck.nu//?dl=LIBUURL_resue_true.txt > > Regards, > Matthias > > Matthias Rebbe > Tel +49 5741 310000 > ?https://matthiasrebbe.eu ? > >> Am 09.03.2018 um 04:18 schrieb Charles Warwick via use-livecode >: >> >> Hi Matthias, >> >> That does sound strange. >> >> If you download the following stack: >> >> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode >> >> Open that stack at the same time as you have your application stack open in the IDE, click the ?Start Debug? button, and try your PUT requests. >> >> That will display some debug information that might help us work out what is going on. >> >> On a related note, ?tsNetLibUrlReuseConnection false? should create a fresh connection to the server for the 2nd request, so debug with and without that set would be useful. >> >> Regards, >> >> Charles >> >>> On 8 Mar 2018, at 9:28 pm, Matthias Rebbe via use-livecode > wrote: >>> >>> Hi, >>> >>> i am trying to use the tsNet external to communicate with an Auerswald PABX which requires digest authentication. >>> >>> The first connection is always successful using PUT URL ?.. >>> The second one isn?t. There is even no value returned. >>> When i use tsNetClose and tsNetInit before the 2nd connection then the 2nd connection is successful, because the complete authentication process is initiated from the beginning. >>> So this works so far >>> ?> >>> tsnetClose >>> tsNetInit >>> put URL ?http:?..? >>> >>> But how can i use the already established connection? tsNetLibUrlReuseConnection FALSE does not help. >>> Is it possible that i have to set the httpheader somehow for the 2nd connection? >>> I am not very happy to unload and reload the external every time. >>> >>> I also tried to use tsNetGetSync. The first connection is also always successful, the 2nd not. >>> >>> So what am i missing? >>> >>> Regards, >>> >>> Matthias >>> >>> >>> >>> Tel +49 5741 310000 >>> ?https://matthiasrebbe.eu >? >>> >>> >>> >>> Matthias Rebbe >>> Tel +49 5741 310000 >>> ?https://matthiasrebbe.eu >? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > Matthias Rebbe > Tel +49 5741 310000 > ?https://matthiasrebbe.eu ? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Mar 13 08:51:17 2018 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Tue, 13 Mar 2018 13:51:17 +0100 Subject: AW: is tsnet downwards compatible? In-Reply-To: <6BB49DE1-D9A2-4E01-97B4-648724BC7A01@techstrategies.com.au> References: <002d01d3b78f$bc784000$3568c000$@kestner.de> <6BB49DE1-D9A2-4E01-97B4-648724BC7A01@techstrategies.com.au> Message-ID: <003a01d3bac9$fabba270$f032e750$@kestner.de> Hi Charles, thanks for the confirmation, I use it for Win and Mac. Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Charles Warwick via use-livecode Gesendet: Dienstag, 13. M?rz 2018 07:35 An: How to use LiveCode Cc: Charles Warwick Betreff: Re: is tsnet downwards compatible? Hi Tiemo, Unless you are deploying to iOS devices, you should be ok to use the latest version of tsNet with LC 8.1.4. Each build of tsNet contains iOS binaries specifically for the version of LC it relates to. Cheers, Charles > On 9 Mar 2018, at 8:16 pm, Tiemo Hollmann TB via use-livecode wrote: > > Hello, > > > > can I take the newest tsnet.dll (from 8.1.9 or 9..0dp4) and use it > with LC 8.1.4? Is it downward compatible? > > > > The reason I ask for is, that I need the newest tsnet because of some > proxy server problem in older version, but I can't use LC newer than > 8.1.4 because it can't play mp4 videos on some windows machines. So I > wanted to stay with LC 8.1.4 and just copy manually the tsnet from 9.0 > > Should this be a good idea? > > > > Thanks > > 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 matthias_livecode_150811 at m-r-d.de Tue Mar 13 09:20:37 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 13 Mar 2018 14:20:37 +0100 Subject: tsNet and Digest Authentication - some problems or better said: missing knowledge In-Reply-To: References: <656AA5F9-9CE1-401B-A202-CCAD7DC6294D@techstrategies.com.au> <49A8DFE3-1C01-4C4C-B37D-A8E120CC57AE@m-r-d.de> Message-ID: Hi Charles, yes, you are right. For testing i am using the same URL request. But this shouldn?t matter. I?ve tried LC 9DP11 and LC 8.1.9 Business which both have tsNet 1.3.4 included. I ?ve filed a bug now. http://quality.livecode.com/show_bug.cgi?id=21062 Regards, Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 13.03.2018 um 08:55 schrieb Charles Warwick via use-livecode >: > > Hi Matthias, > > It looks to me that you are issuing a put URL request to the same URL each time? Are you using the latest version of LC? > > I think I know what is going on, but will need to generate a new tsNet build and get you to test to see if it resolves the issue. > > Can you please raise a bug report and I will follow up there. > > Regards, > > Charles > >> On 9 Mar 2018, at 6:10 pm, Matthias Rebbe via use-livecode > wrote: >> >> Hi Charles, >> thanks for your answer. >> >> I?ve done as requested. >> With tsNetLibUrlReuseConnection set to true >> A session cookie is sent from the PABX after the first successful connection. >> The 2nd unsuccessful connection shows >> >> "HTTP/1.1 401 Unauthorized >> Authentication problem. Ignoring this.? >> >> And the value for nonce is an other then the one in the first connection. >> >> After a restart of LC i set it to false. >> The error messages looks similar, but i can see also >> "Issue another request to this URL: 'http://sub-admin:feierabend at 192.168.1.1/app_group_logchange?grpId=2641&kommend=0 >' >> Hostname 192.168.1.1 was found in DNS cache? >> >> >> I?ve uploaded the complete debug files here: >> >> https://dl.qck.nu//?dl=liburl_reuse_false.txt > >> https://dl.qck.nu//?dl=LIBUURL_resue_true.txt > >> >> Regards, >> Matthias >> >> Matthias Rebbe >> Tel +49 5741 310000 >> ?https://matthiasrebbe.eu >? >> >>> Am 09.03.2018 um 04:18 schrieb Charles Warwick via use-livecode >>: >>> >>> Hi Matthias, >>> >>> That does sound strange. >>> >>> If you download the following stack: >>> >>> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode > >>> >>> Open that stack at the same time as you have your application stack open in the IDE, click the ?Start Debug? button, and try your PUT requests. >>> >>> That will display some debug information that might help us work out what is going on. >>> >>> On a related note, ?tsNetLibUrlReuseConnection false? should create a fresh connection to the server for the 2nd request, so debug with and without that set would be useful. >>> >>> Regards, >>> >>> Charles >>> >>>> On 8 Mar 2018, at 9:28 pm, Matthias Rebbe via use-livecode >> wrote: >>>> >>>> Hi, >>>> >>>> i am trying to use the tsNet external to communicate with an Auerswald PABX which requires digest authentication. >>>> >>>> The first connection is always successful using PUT URL ?.. >>>> The second one isn?t. There is even no value returned. >>>> When i use tsNetClose and tsNetInit before the 2nd connection then the 2nd connection is successful, because the complete authentication process is initiated from the beginning. >>>> So this works so far >>>> ?> >>>> tsnetClose >>>> tsNetInit >>>> put URL ?http:?..? >>>> >>>> But how can i use the already established connection? tsNetLibUrlReuseConnection FALSE does not help. >>>> Is it possible that i have to set the httpheader somehow for the 2nd connection? >>>> I am not very happy to unload and reload the external every time. >>>> >>>> I also tried to use tsNetGetSync. The first connection is also always successful, the 2nd not. >>>> >>>> So what am i missing? >>>> >>>> Regards, >>>> >>>> Matthias >>>> >>>> >>>> >>>> Tel +49 5741 310000 >>>> ?https://matthiasrebbe.eu > >>? >>>> >>>> >>>> >>>> Matthias Rebbe >>>> Tel +49 5741 310000 >>>> ?https://matthiasrebbe.eu > >>? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> >> >> Matthias Rebbe >> Tel +49 5741 310000 >> ?https://matthiasrebbe.eu >? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Tue Mar 13 10:37:43 2018 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 13 Mar 2018 14:37:43 +0000 Subject: tsNet woes Message-ID: Charles, I misspoke? I?m not on 8.1.5, I?m using 8.1.9. Is there another version you would recommend? -Dan Hi Dan, If tsNetIsSyncBlocked() is always returning true then a connection must be stalled. The latest version of tsNet defaults to timing out stalled connections after 30 seconds. If you want to stay with LC 8.1.5 then just add the following code in your application?s startup: tsNetSetTimeouts 60,0,300000,60000,30,1000 The last two parameters of this command mean timeout the connection in 30 seconds if less than 1000 bytes per second are transferred over this period. You can adjust those values to suit your application. Regards, Charles > On Mon, Mar 12, 2018 at 7:11 PM, Dan Friedman via use-livecode < > >> Greetings! >> >> I have an app I am working on and it?s working perfectly on my Mac and in >> the iOS simulator. However, on an Android device, once I do a couple of >> get urls, tsNet stops functioning. I get a variety of results: >> >> Previous request not completed >> Sync request already in progress (most common) >> tsNet is not initialized >> >> Also, tsNetIsSyncBlocked() always returns true. >> >> I am using LC Indy 8.1.5. Any thoughts or advise? >> >> -Dan From gwolfgang at gaich.de Tue Mar 13 11:18:16 2018 From: gwolfgang at gaich.de (G. Wolfgang Gaich) Date: Tue, 13 Mar 2018 16:18:16 +0100 Subject: tsNetSmtpSync (with attachment Message-ID: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> Hallo all, try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) I tried the sample stack "Mail v1.2" from https://downloads.techstrategies.com.au/tsnet/LCMail.livecode I get an error when I try to send with an attachment (PDF document): Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) returned from server Without the attachment the email is send. Windows 7, LC 8.1.9 Any ideas? Best G?nter From chipsm at themartinz.com Tue Mar 13 12:08:37 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Tue, 13 Mar 2018 09:08:37 -0700 Subject: tsNet woes In-Reply-To: References: Message-ID: <00e601d3bae5$8c1f6060$a45e2120$@themartinz.com> Hi Dan, I have been having similar problems with my Android Builds. I removed the TSNet Inclusion from my Android Builds and the problem still exist. I have tried both LC8x and LC9's and the problem still exist. This problem seems to be sensitive to Android Devises. I have 2 Devices and my Nexus 7 seems to have the problems more frequently. It is running Android 5.1. the other device is a generic cheapy device with Android 5x and the frequency of failures is much less if at all. I'm chasing GHOST here! -----Original Message----- From: use-livecode On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, March 13, 2018 7:38 AM To: use-livecode at lists.runrev.com Cc: Dan Friedman Subject: Re: tsNet woes Charles, I misspoke? I?m not on 8.1.5, I?m using 8.1.9. Is there another version you would recommend? -Dan Hi Dan, If tsNetIsSyncBlocked() is always returning true then a connection must be stalled. The latest version of tsNet defaults to timing out stalled connections after 30 seconds. If you want to stay with LC 8.1.5 then just add the following code in your application?s startup: tsNetSetTimeouts 60,0,300000,60000,30,1000 The last two parameters of this command mean timeout the connection in 30 seconds if less than 1000 bytes per second are transferred over this period. You can adjust those values to suit your application. Regards, Charles > On Mon, Mar 12, 2018 at 7:11 PM, Dan Friedman via use-livecode < > >> Greetings! >> >> I have an app I am working on and it?s working perfectly on my Mac >> and in the iOS simulator. However, on an Android device, once I do a couple of >> get urls, tsNet stops functioning. I get a variety of results: >> >> Previous request not completed >> Sync request already in progress (most common) tsNet is not >> initialized >> >> Also, tsNetIsSyncBlocked() always returns true. >> >> I am using LC Indy 8.1.5. Any thoughts or advise? >> >> -Dan _______________________________________________ use-livecode mailing list use-livecode at 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 Tue Mar 13 12:56:17 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 13 Mar 2018 12:56:17 -0400 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: <00e601d3bae5$8c1f6060$a45e2120$@themartinz.com> References: <00e601d3bae5$8c1f6060$a45e2120$@themartinz.com> Message-ID: <003501d3baec$372b9e50$a582daf0$@net> I'm getting a very strange complaint from one user who has an older iPhone 5 running iOS 11.2. When the app opens it briefly flashes the last screen that was up before the app was closed. This happens in between the splash page and the app's first card. The page flashed page sometimes even has an "answer" dialog from a previous session! I can't replicate it on any of my 3 iOS devices. I also noticed that Pandora and Google Maps does the same thing on my iPad Mini but on my iPad or iPod. The user has two other non-LC apps that are doing the cached flashing. All of the user's other apps except for LC apps and two others don't exhibit the flashing behavior. I'm wondering if the Apple throttle-back for older batteries is exposing: a problem with LC(and other apps), an iOS bug or their device need a factory reset. The last thing I want to do is have the user factory reset their iPhone and have the same thing happen. Could this be an Apple bug for testers that side load many versions of apps? This user has side-loaded many versions to test. Then I had download a store version of the app that never did it before and it's now happening but never did before. I find it very strange that apps that never did this are now acting strangely. I find very little in web searches on this subject. The few hits I've seen were mainly Safari a couple of years ago and a one or two non native Xcode "app building" platforms. Has anyone else ever seen this? Thanks Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From brian at milby7.com Tue Mar 13 13:59:14 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 13 Mar 2018 17:59:14 +0000 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: <003501d3baec$372b9e50$a582daf0$@net> References: <00e601d3bae5$8c1f6060$a45e2120$@themartinz.com> <003501d3baec$372b9e50$a582daf0$@net> Message-ID: Sounds like an OS thing. When you double tap the home, is that the screen that flashes? I think the OS caches the last screen for switching and throws that up before the splash. Apps that resume will not notice. The faster the device, the less likely you are to see it. At least that is my non-educated guess :) On Tue, Mar 13, 2018 at 11:55 AM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > I'm getting a very strange complaint from one user who has an older iPhone > 5 running iOS 11.2. When the app opens it briefly flashes the last screen > that was up before the app was closed. This happens in between the splash > page and the app's first card. The page flashed page sometimes even has an > "answer" dialog from a previous session! I can't replicate it on any of my > 3 iOS devices. I also noticed that Pandora and Google Maps does the same > thing on my iPad Mini but on my iPad or iPod. The user has two other non-LC > apps that are doing the cached flashing. All of the user's other apps > except for LC apps and two others don't exhibit the flashing behavior. I'm > wondering if the Apple throttle-back for older batteries is exposing: a > problem with LC(and other apps), an iOS bug or their device need a factory > reset. The last thing I want to do is have the user factory reset their > iPhone and have the same thing happen. Could this be an Apple bug for > testers that side load many versions of apps? This user has side-loaded > many versions to test. Then I had download a store version of the app that > never did it before and it's now happening but never did before. I find it > very strange that apps that never did this are now acting strangely. I find > very little in web searches on this subject. The few hits I've seen were > mainly Safari a couple of years ago and a one or two non native Xcode "app > building" platforms. > > Has anyone else ever seen this? > Thanks > > 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 rdimola at evergreeninfo.net Tue Mar 13 14:11:41 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 13 Mar 2018 14:11:41 -0400 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: References: <00e601d3bae5$8c1f6060$a45e2120$@themartinz.com> <003501d3baec$372b9e50$a582daf0$@net> Message-ID: <004301d3baf6$bffb8790$3ff296b0$@net> Thank Brian, No, It?s when the app starts again after being closed. You get the splash page, the cached page for .1 to 1 second and then the first card of the app is displayed. It?s particularly noticeable because our fist card is the same as the splash screen so you get splash/cached/splash. I?m getting a lot of noise because the vast majority of other apps don?t exhibit this behavior. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From: Brian Milby [mailto:brian at milby7.com] Sent: Tuesday, March 13, 2018 1:59 PM To: How to use LiveCode Cc: Ralph DiMola Subject: Re: iOS cached Screen Flashes after Splash Image Sounds like an OS thing. When you double tap the home, is that the screen that flashes? I think the OS caches the last screen for switching and throws that up before the splash. Apps that resume will not notice. The faster the device, the less likely you are to see it. At least that is my non-educated guess :) On Tue, Mar 13, 2018 at 11:55 AM Ralph DiMola via use-livecode wrote: I'm getting a very strange complaint from one user who has an older iPhone 5 running iOS 11.2. When the app opens it briefly flashes the last screen that was up before the app was closed. This happens in between the splash page and the app's first card. The page flashed page sometimes even has an "answer" dialog from a previous session! I can't replicate it on any of my 3 iOS devices. I also noticed that Pandora and Google Maps does the same thing on my iPad Mini but on my iPad or iPod. The user has two other non-LC apps that are doing the cached flashing. All of the user's other apps except for LC apps and two others don't exhibit the flashing behavior. I'm wondering if the Apple throttle-back for older batteries is exposing: a problem with LC(and other apps), an iOS bug or their device need a factory reset. The last thing I want to do is have the user factory reset their iPhone and have the same thing happen. Could this be an Apple bug for testers that side load many versions of apps? This user has side-loaded many versions to test. Then I had download a store version of the app that never did it before and it's now happening but never did before. I find it very strange that apps that never did this are now acting strangely. I find very little in web searches on this subject. The few hits I've seen were mainly Safari a couple of years ago and a one or two non native Xcode "app building" platforms. Has anyone else ever seen this? Thanks 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 livfoss at mac.com Tue Mar 13 15:08:34 2018 From: livfoss at mac.com (G E Samuel) Date: Tue, 13 Mar 2018 20:08:34 +0100 Subject: =?utf-8?Q?OT:_Can=E2=80=99t_download_file?= Message-ID: <782C767E-7338-4F4A-8FB4-A6083A10B918@mac.com> Sorry this is OT, but I don?t know where to turn for advice. I have a web site and from time to time I put up files as well as pages. I use Transmit, a Mac FTP client. Uploads work fine, but I now find that when I want to access such a file via a browser using http, I get ?you don?t have permission...?. I?ve set the permissions via Transmit to ?everyone can read?. I think the numeric equivalent is 644, although I am not at all sure what this means. I?ve tried various browsers on different devices. What have I done wrong? TIA Graham Sent from my iPad From williamdesmet at gmail.com Tue Mar 13 16:22:02 2018 From: williamdesmet at gmail.com (William de Smet) Date: Tue, 13 Mar 2018 21:22:02 +0100 Subject: App rejected because of camera permission modal alert! Message-ID: Hi there, My new app 'FotoPuzzel' is rejected by Apple because the app needs camera permission. I did not clarify the use of this feature in the modal alert? How do I change this? Can I change this? I just use MobilePickPhoto "camera" The standard modal alert says: FotoPuzzel would like to access the camera This application requires access to the device's camera. Apple's response: ----- We noticed that your app requests the user?s consent to access their camera but does not clarify the use of this feature in the permission modal alert. Please see attached screenshots for details. Next Steps To resolve this issue, please revise the permission modal alert to specify why the app is requesting access to the user's camera. ---- Any advice on this? LC 8.1.8 greetings, William From rdimola at evergreeninfo.net Tue Mar 13 16:36:50 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 13 Mar 2018 16:36:50 -0400 Subject: App rejected because of camera permission modal alert! In-Reply-To: References: Message-ID: <006801d3bb0b$06645770$132d0650$@net> William, Did you tic the various Camera options(as needed) to "Required" in the iOS standalone setting? 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 de Smet via use-livecode Sent: Tuesday, March 13, 2018 4:22 PM To: How to use LiveCode Cc: William de Smet Subject: App rejected because of camera permission modal alert! Hi there, My new app 'FotoPuzzel' is rejected by Apple because the app needs camera permission. I did not clarify the use of this feature in the modal alert? How do I change this? Can I change this? I just use MobilePickPhoto "camera" The standard modal alert says: FotoPuzzel would like to access the camera This application requires access to the device's camera. Apple's response: ----- We noticed that your app requests the user?s consent to access their camera but does not clarify the use of this feature in the permission modal alert. Please see attached screenshots for details. Next Steps To resolve this issue, please revise the permission modal alert to specify why the app is requesting access to the user's camera. ---- Any advice on this? LC 8.1.8 greetings, William _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Mar 13 16:58:11 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 13 Mar 2018 20:58:11 +0000 Subject: =?UTF-8?Q?Re=3A_OT=3A_Can=E2=80=99t_download_file?= In-Reply-To: <782C767E-7338-4F4A-8FB4-A6083A10B918@mac.com> References: <782C767E-7338-4F4A-8FB4-A6083A10B918@mac.com> Message-ID: What about the permissions on the parent directory? Those could limit access too. On Tue, Mar 13, 2018 at 2:09 PM G E Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > Sorry this is OT, but I don?t know where to turn for advice. > > I have a web site and from time to time I put up files as well as pages. I > use Transmit, a Mac FTP client. Uploads work fine, but I now find that when > I want to access such a file via a browser using http, I get ?you don?t > have permission...?. I?ve set the permissions via Transmit to ?everyone can > read?. I think the numeric equivalent is 644, although I am not at all sure > what this means. > > I?ve tried various browsers on different devices. > > What have I done wrong? > > TIA > > Graham > > Sent from my iPad > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Mar 13 17:07:36 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 13 Mar 2018 17:07:36 -0400 Subject: App rejected because of camera permission modal alert! In-Reply-To: References: <006801d3bb0b$06645770$132d0650$@net> Message-ID: <006f01d3bb0f$5315af70$f9410e50$@net> Hey William, OK, I see the problem. This will require you to modify the plist files in the LiveCode app bundle. 1) Go to the Applications folder 2) Right click on the LC app version you are using and select "Show Package Contents" 3) Navigate to the "Tools/Runtime/iOS" folder 4) Right click on all the device/simulator folders one at a time and select "Get Info" 5) At the bottom click on the "Read only" to the right of your account name and select "Read & Write" 6) Repeat 5 for all device/simulator folders 7) In each of the device/simulator folders edit the setting.plist file. 8) To edit... right click the setting.plist file and select "Open With" and then "Other..." and select "TextEdit.app". 9) You will get a warning that the file is locked. Choose the Unlock option. 10) Change the for the key to be more specific to your application. You might be able to make this generic enough for all your applications. If not then you will have to change this for each app before submitting it for review. 11) repeat 8-10 for setting.plist in each of the device/simulator folders. 12) Fire up LC and make an iOS app and submit it. I would suggest you submit a QCC Bug Report. This looks like it could be a problem for any app that uses the camera. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From: William de Smet [mailto:williamdesmet at gmail.com] Sent: Tuesday, March 13, 2018 4:41 PM To: rdimola at evergreeninfo.net Subject: Re: App rejected because of camera permission modal alert! Hi Ralph, Yes I did. It is just a standard modal alert that shows. Apple says: We noticed that your app requests the user?s consent to access their camera but does not clarify the use of this feature in the permission modal alert. https://developer.apple.com/library/content/qa/qa1937/_index.html groeten, William 2018-03-13 21:36 GMT+01:00 Ralph DiMola : William, Did you tic the various Camera options(as needed) to "Required" in the iOS standalone setting? 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 de Smet via use-livecode Sent: Tuesday, March 13, 2018 4:22 PM To: How to use LiveCode Cc: William de Smet Subject: App rejected because of camera permission modal alert! Hi there, My new app 'FotoPuzzel' is rejected by Apple because the app needs camera permission. I did not clarify the use of this feature in the modal alert? How do I change this? Can I change this? I just use MobilePickPhoto "camera" The standard modal alert says: FotoPuzzel would like to access the camera This application requires access to the device's camera. Apple's response: ----- We noticed that your app requests the user?s consent to access their camera but does not clarify the use of this feature in the permission modal alert. Please see attached screenshots for details. Next Steps To resolve this issue, please revise the permission modal alert to specify why the app is requesting access to the user's camera. ---- Any advice on this? LC 8.1.8 greetings, William _______________________________________________ use-livecode mailing list use-livecode at 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 Tue Mar 13 19:21:28 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 13 Mar 2018 23:21:28 +0000 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: <004301d3baf6$bffb8790$3ff296b0$@net> References: <00e601d3bae5$8c1f6060$a45e2120$@themartinz.com> <003501d3baec$372b9e50$a582daf0$@net> <004301d3baf6$bffb8790$3ff296b0$@net> Message-ID: <23BD3D25-519D-4800-8ABC-B31BC0A43F3C@iotecdigital.com> We have web pages that work the same way. I catch myself touching buttons in our time clock web app, even though I know the page has expired. Bob S > On Mar 13, 2018, at 11:11 , Ralph DiMola via use-livecode wrote: > > Thank Brian, > > > > No, It?s when the app starts again after being closed. You get the splash page, the cached page for .1 to 1 second and then the first card of the app is displayed. It?s particularly noticeable because our fist card is the same as the splash screen so you get splash/cached/splash. I?m getting a lot of noise because the vast majority of other apps don?t exhibit this behavior. > > > > Ralph DiMola From bobsneidar at iotecdigital.com Tue Mar 13 19:26:15 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 13 Mar 2018 23:26:15 +0000 Subject: =?utf-8?B?UmU6IE9UOiBDYW7igJl0IGRvd25sb2FkIGZpbGU=?= In-Reply-To: <782C767E-7338-4F4A-8FB4-A6083A10B918@mac.com> References: <782C767E-7338-4F4A-8FB4-A6083A10B918@mac.com> Message-ID: <3662093C-11CC-4549-9C8A-FE3681E320D2@iotecdigital.com> By Everyone, I think it means All Registered Users. You would need to enable Anonymous Login for it to be anyone at all, or you can log into the FTP server using the format: ftp://user:password@ Obviously, replace user with the FTP user, password with the password, and ftpservername with the FQDN of your ftp server. Some browsers may not support this. Use on that can. It may actually launch a local FTP client though. Depends on the browser and platform. Bob S > On Mar 13, 2018, at 12:08 , G E Samuel via use-livecode wrote: > > Sorry this is OT, but I don?t know where to turn for advice. > > I have a web site and from time to time I put up files as well as pages. I use Transmit, a Mac FTP client. Uploads work fine, but I now find that when I want to access such a file via a browser using http, I get ?you don?t have permission...?. I?ve set the permissions via Transmit to ?everyone can read?. I think the numeric equivalent is 644, although I am not at all sure what this means. > > I?ve tried various browsers on different devices. > > What have I done wrong? > > TIA > > Graham From matthias_livecode_150811 at m-r-d.de Tue Mar 13 20:14:15 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 14 Mar 2018 01:14:15 +0100 Subject: [OT] Free tool for ease Windows Installer creation Message-ID: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> Hi, inspired by Monte?s great, but unfortunately not available anymore, tool InstallGadget, i?ve created a similar tool called InstaMaker. I very often need to create Installers for my little Windows apps and InstallGadget was a good friend in the past, but drag?n?drop did not work with newer Windows versions and other problems appeared. So i decided to built my own version of such a tool. On Windows InstaMaker creates Windows Installers (based on the newest version of InnoSetup). You do not need to install InnoSetup separately. The needed parts are already included in InstaMaker. On OS X it creates simple DMG files. Just drag a folder which contains your program into the program window of InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. I know there are other tools out there which do the DMG stuff much better, but i wanted to have a tool available which does exact the same as InstallGadget did. InstaMaker for Windows might be a good solution for the one or the other who wants to create a Windows Installer of a program quick and easy. I will add code signing support the next weeks or when time allows, so that the Windows installer will be automatically code signed after creation. For this you will need a code signing certificate. InstaMaker is free. You can download it from its website at https://instamaker.dermattes.de Regards, Matthias From tom at makeshyft.com Tue Mar 13 20:44:51 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 13 Mar 2018 20:44:51 -0400 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> Message-ID: this is cool.. thank you.....i'm very interested in the code signing tool...where would it source the certificates? and how much? On Tue, Mar 13, 2018 at 8:14 PM, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > inspired by Monte?s great, but unfortunately not available anymore, tool > InstallGadget, i?ve created a similar tool called InstaMaker. > I very often need to create Installers for my little Windows apps and > InstallGadget was a good friend in the past, but drag?n?drop did not work > with newer Windows versions and other problems appeared. So i decided to > built my own version of such a tool. > > On Windows InstaMaker creates Windows Installers (based on the newest > version of InnoSetup). You do not need to install InnoSetup separately. The > needed parts are already included in InstaMaker. On OS X it creates simple > DMG files. > Just drag a folder which contains your program into the program window of > InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. > > I know there are other tools out there which do the DMG stuff much better, > but i wanted to have a tool available which does exact the same as > InstallGadget did. > > InstaMaker for Windows might be a good solution for the one or the other > who wants to create a Windows Installer of a program quick and easy. > > I will add code signing support the next weeks or when time allows, so > that the Windows installer will be automatically code signed after > creation. For this you will need a code signing certificate. > > InstaMaker is free. You can download it from its website at > https://instamaker.dermattes.de > > 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 jacque at hyperactivesw.com Tue Mar 13 22:57:37 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 13 Mar 2018 21:57:37 -0500 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> Message-ID: <16222710ce8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> This sounds great, Matthias. Just a few weeks ago a client asked me if LC had an installer built in. You must have overheard it. :) We do need code signing so I'm looking forward to that version. Thanks for tackling this! -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 13, 2018 7:16:15 PM Matthias Rebbe via use-livecode wrote: Hi, inspired by Monte?s great, but unfortunately not available anymore, tool InstallGadget, i?ve created a similar tool called InstaMaker. I very often need to create Installers for my little Windows apps and InstallGadget was a good friend in the past, but drag?n?drop did not work with newer Windows versions and other problems appeared. So i decided to built my own version of such a tool. On Windows InstaMaker creates Windows Installers (based on the newest version of InnoSetup). You do not need to install InnoSetup separately. The needed parts are already included in InstaMaker. On OS X it creates simple DMG files. Just drag a folder which contains your program into the program window of InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. I know there are other tools out there which do the DMG stuff much better, but i wanted to have a tool available which does exact the same as InstallGadget did. InstaMaker for Windows might be a good solution for the one or the other who wants to create a Windows Installer of a program quick and easy. I will add code signing support the next weeks or when time allows, so that the Windows installer will be automatically code signed after creation. For this you will need a code signing certificate. InstaMaker is free. You can download it from its website at https://instamaker.dermattes.de 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 brahma at hindu.org Tue Mar 13 23:38:43 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 14 Mar 2018 03:38:43 +0000 Subject: Standalone Setting Become Corrupt Message-ID: After working in other projects for a few days, with the LiveCode open to the background. 8.1.9 ? in SA builder, the Stack File pane is completely dim Stack files in the application: all dimmed?and they are not copied to standalone is their a way out? I download a new version 8.1.9, but that didn?t help BR From brahma at hindu.org Wed Mar 14 00:05:44 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 14 Mar 2018 04:05:44 +0000 Subject: Standalone Setting Become Corrupt In-Reply-To: References: Message-ID: DUH, the stack file are in property inspector of the stack! I had a bad file listed in the json that we use to load additional stacks files, which prevented this file from loading in the standalone. ====== Stack files in the application: all dimmed?and they are not copied to standalone From monte at appisle.net Wed Mar 14 02:55:48 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 14 Mar 2018 17:55:48 +1100 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> Message-ID: <3C4AE49E-F6E5-4C9D-8C8F-AC1E7268CDF3@appisle.net> Good stuff Matthias InstallGadget was a handy little thing for a while there so I?m sure this will equally so. There?s some DMG wrangling code in the livecode repo that we use for building the mac installer if you are interested. Cheers Monte > On 14 Mar 2018, at 11:14 am, Matthias Rebbe via use-livecode wrote: > > Hi, > > inspired by Monte?s great, but unfortunately not available anymore, tool InstallGadget, i?ve created a similar tool called InstaMaker. > I very often need to create Installers for my little Windows apps and InstallGadget was a good friend in the past, but drag?n?drop did not work with newer Windows versions and other problems appeared. So i decided to built my own version of such a tool. > > On Windows InstaMaker creates Windows Installers (based on the newest version of InnoSetup). You do not need to install InnoSetup separately. The needed parts are already included in InstaMaker. On OS X it creates simple DMG files. > Just drag a folder which contains your program into the program window of InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. > > I know there are other tools out there which do the DMG stuff much better, but i wanted to have a tool available which does exact the same as InstallGadget did. > > InstaMaker for Windows might be a good solution for the one or the other who wants to create a Windows Installer of a program quick and easy. > > I will add code signing support the next weeks or when time allows, so that the Windows installer will be automatically code signed after creation. For this you will need a code signing certificate. > > InstaMaker is free. You can download it from its website at https://instamaker.dermattes.de > > 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 tfabacher at gmail.com Wed Mar 14 04:49:44 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Wed, 14 Mar 2018 08:49:44 +0000 Subject: TSNet updated to include PUT and PATCH Message-ID: Hello Charles and LC community, As we start to use more JSON databases and REST APIs, we are going to need to get HTTPS PATCH. This is a commonly used function used by many REST services. We are currently doing Google Firebase for LiveCode and they make extensive use of PATCH. We can get by with just POST, but we would prefer if we could get PUT and PATCH on mobile. Is there any plan at all on the roadmap?? --Todd From matthias_livecode_150811 at m-r-d.de Wed Mar 14 05:58:31 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 14 Mar 2018 10:58:31 +0100 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: <3C4AE49E-F6E5-4C9D-8C8F-AC1E7268CDF3@appisle.net> References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> <3C4AE49E-F6E5-4C9D-8C8F-AC1E7268CDF3@appisle.net> Message-ID: <0B7AB6CE-0F78-4A01-B70B-5A99AEAB58F0@m-r-d.de> Hi Monte, thanks for the hint. Unfortunately i am relatively new to git in common. So if you could give me a hint/link where i could find that stuff. That would be great. Regards, Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 14.03.2018 um 07:55 schrieb Monte Goulding via use-livecode >: > > Good stuff Matthias > > InstallGadget was a handy little thing for a while there so I?m sure this will equally so. There?s some DMG wrangling code in the livecode repo that we use for building the mac installer if you are interested. > > Cheers > > Monte > >> On 14 Mar 2018, at 11:14 am, Matthias Rebbe via use-livecode > wrote: >> >> Hi, >> >> inspired by Monte?s great, but unfortunately not available anymore, tool InstallGadget, i?ve created a similar tool called InstaMaker. >> I very often need to create Installers for my little Windows apps and InstallGadget was a good friend in the past, but drag?n?drop did not work with newer Windows versions and other problems appeared. So i decided to built my own version of such a tool. >> >> On Windows InstaMaker creates Windows Installers (based on the newest version of InnoSetup). You do not need to install InnoSetup separately. The needed parts are already included in InstaMaker. On OS X it creates simple DMG files. >> Just drag a folder which contains your program into the program window of InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. >> >> I know there are other tools out there which do the DMG stuff much better, but i wanted to have a tool available which does exact the same as InstallGadget did. >> >> InstaMaker for Windows might be a good solution for the one or the other who wants to create a Windows Installer of a program quick and easy. >> >> I will add code signing support the next weeks or when time allows, so that the Windows installer will be automatically code signed after creation. For this you will need a code signing certificate. >> >> InstaMaker is free. You can download it from its website at https://instamaker.dermattes.de > >> >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 06:24:25 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 14 Mar 2018 11:24:25 +0100 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: <16222710ce8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> <16222710ce8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Great stuff Matthias - helps to bang the drum for easier deployment of LC apps, my continued obsession. Like Jacque and others, I eagerly await the code signing features. Graham > On 14 Mar 2018, at 03:57, J. Landman Gay via use-livecode wrote: > > This sounds great, Matthias. Just a few weeks ago a client asked me if LC had an installer built in. You must have overheard it. :) > > We do need code signing so I'm looking forward to that version. Thanks for tackling this! > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On March 13, 2018 7:16:15 PM Matthias Rebbe via use-livecode wrote: > > Hi, > > inspired by Monte?s great, but unfortunately not available anymore, tool InstallGadget, i?ve created a similar tool called InstaMaker. > I very often need to create Installers for my little Windows apps and InstallGadget was a good friend in the past, but drag?n?drop did not work with newer Windows versions and other problems appeared. So i decided to built my own version of such a tool. > > On Windows InstaMaker creates Windows Installers (based on the newest version of InnoSetup). You do not need to install InnoSetup separately. The needed parts are already included in InstaMaker. On OS X it creates simple DMG files. > Just drag a folder which contains your program into the program window of InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. > > I know there are other tools out there which do the DMG stuff much better, but i wanted to have a tool available which does exact the same as InstallGadget did. > > InstaMaker for Windows might be a good solution for the one or the other who wants to create a Windows Installer of a program quick and easy. > > I will add code signing support the next weeks or when time allows, so that the Windows installer will be automatically code signed after creation. For this you will need a code signing certificate. > > InstaMaker is free. You can download it from its website at https://instamaker.dermattes.de > > 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 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 06:27:52 2018 From: livfoss at mac.com (Graham Samuel) Date: Wed, 14 Mar 2018 11:27:52 +0100 Subject: =?utf-8?Q?Re=3A_OT=3A_Can=E2=80=99t_download_file?= In-Reply-To: <3662093C-11CC-4549-9C8A-FE3681E320D2@iotecdigital.com> References: <782C767E-7338-4F4A-8FB4-A6083A10B918@mac.com> <3662093C-11CC-4549-9C8A-FE3681E320D2@iotecdigital.com> Message-ID: Thanks, but it ain?t the FTP aspects that worry me, since my uploads via FTP always work using normal FTP clients: it?s the straight download from a publicly available web site. I?ve achieved this with binary files before (for example, with Mac installers), but now I have been bitten by this permissions thing. I have asked our hosting company about it. I obviously did something new and wrong, I just can?t work out what it was. Graham > On 14 Mar 2018, at 00:26, Bob Sneidar via use-livecode wrote: > > By Everyone, I think it means All Registered Users. You would need to enable Anonymous Login for it to be anyone at all, or you can log into the FTP server using the format: > > ftp://user:password@ > > Obviously, replace user with the FTP user, password with the password, and ftpservername with the FQDN of your ftp server. Some browsers may not support this. Use on that can. It may actually launch a local FTP client though. Depends on the browser and platform. > > Bob S > > >> On Mar 13, 2018, at 12:08 , G E Samuel via use-livecode wrote: >> >> Sorry this is OT, but I don?t know where to turn for advice. >> >> I have a web site and from time to time I put up files as well as pages. I use Transmit, a Mac FTP client. Uploads work fine, but I now find that when I want to access such a file via a browser using http, I get ?you don?t have permission...?. I?ve set the permissions via Transmit to ?everyone can read?. I think the numeric equivalent is 644, although I am not at all sure what this means. >> >> I?ve tried various browsers on different devices. >> >> What have I done wrong? >> >> TIA >> >> 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 matthias_livecode_150811 at m-r-d.de Wed Mar 14 06:38:54 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 14 Mar 2018 11:38:54 +0100 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> Message-ID: Thanks to all for your kind words. @Tom, > tool...where would it source the certificates? and how much? I am sorry, i don?t understand the question. Do you want to know where you can buy the Software Signing Certificate for Windows? The cheapest Seller i?ve found is K-Software (http://codesigning.ksoftware.net ). They are selling genuine Comodo products and a Software Signing certificate cost about 84USD for 1 year. It?ll be even cheaper if you purchase it for 2, 3 or 4 years.. They even provide a very easy tool for CodeSigning for free called kSign. It has a GUI is really very easy to use. I am using this tool for manually signing my Windows apps now for about 4 years. @All The upcoming code signing option in InstaMaker will only code sign the Installer, not the programs you?ve created the installer for. For code signing in InstaMaker Microsofts signtool.exe will be used. So at the moment the steps for code signing a Windows app and creating a signed Installer for it would be 1. Sign the Windows app and all externals using kSign.exe or Signtool.exe Btw: the externals of a LC standalone are write protected for whatever reason. You?ll have to disable the write protection before code signing. Otherwise the externals can not signed 2. Create the Installer with InstaMaker 3. Code Sign the Installer. When InstaMaker has code signing support, then 1. Sign the Windows app and all externals using kSign.exe or Signtool.exe 2. Create an Installer with InstaMaker and sign it automatically. So you?ll have to code sign your Windows program in any case first if you want to have your app also be code signed, then you can use InstaMaker to create an Installer and also code sign that installer after creation. But as i wrote, i need some spare time for it. But i will come. Regards, Matthias > Am 14.03.2018 um 01:44 schrieb Tom Glod via use-livecode >: > > this is cool.. thank you.....i'm very interested in the code signing > tool...where would it source the certificates? and how much? > > On Tue, Mar 13, 2018 at 8:14 PM, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com > wrote: > >> Hi, >> >> inspired by Monte?s great, but unfortunately not available anymore, tool >> InstallGadget, i?ve created a similar tool called InstaMaker. >> I very often need to create Installers for my little Windows apps and >> InstallGadget was a good friend in the past, but drag?n?drop did not work >> with newer Windows versions and other problems appeared. So i decided to >> built my own version of such a tool. >> >> On Windows InstaMaker creates Windows Installers (based on the newest >> version of InnoSetup). You do not need to install InnoSetup separately. The >> needed parts are already included in InstaMaker. On OS X it creates simple >> DMG files. >> Just drag a folder which contains your program into the program window of >> InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. >> >> I know there are other tools out there which do the DMG stuff much better, >> but i wanted to have a tool available which does exact the same as >> InstallGadget did. >> >> InstaMaker for Windows might be a good solution for the one or the other >> who wants to create a Windows Installer of a program quick and easy. >> >> I will add code signing support the next weeks or when time allows, so >> that the Windows installer will be automatically code signed after >> creation. For this you will need a code signing certificate. >> >> InstaMaker is free. You can download it from its website at >> https://instamaker.dermattes.de > >> >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Wed Mar 14 07:46:15 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 14 Mar 2018 21:46:15 +1000 Subject: TSNet updated to include PUT and PATCH In-Reply-To: References: Message-ID: Hi Todd, You can use the tsNetCustom* functions to issue any HTTP(S) request type you require (including PATCH and PUT). The tsNetUpload* functions are also effectively just a PUT request when using the HTTP(S) protocols. Let me know if you need any more info. Cheers, Charles > On 14 Mar 2018, at 6:49 pm, Todd Fabacher via use-livecode wrote: > > Hello Charles and LC community, > > As we start to use more JSON databases and REST APIs, we are going to need > to get HTTPS PATCH. This is a commonly used function used by many REST > services. > > We are currently doing Google Firebase for LiveCode and they make extensive > use of PATCH. We can get by with just POST, but we would prefer if we could > get PUT and PATCH on mobile. > > Is there any plan at all on the roadmap?? > > --Todd > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From panos.merakos at livecode.com Wed Mar 14 11:48:34 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 14 Mar 2018 15:48:34 +0000 Subject: Release 9.0.0 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.0.0 RC-1. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 9.0.0 RC-1 comes with more than 95 bugfixes. Moreover, more than 20 bugfixes that were fixed in LiveCode 8.1.x, are now merged into LiveCode 9.0.0 RC-1. In addition, LiveCode 9.0.0 RC-1 includes several new features: - Native HTML5 button widget - LCB: new "my pixel scale" expression - Improved SVG support - Updated detailed guide on "Extending LiveCode" Known issues ================ - The Browser widget's native layer is not shown in some Linux distros with Cinnamon window manager. - You might not be able to run HTML5 standalones locally using the most recent version of Safari or Chrome (Firefox is OK). This is due to those browsers now prohibiting cross-origin-requests. To test out standalones locally using these browser, we suggest using a local HTTP server as described in the HTML5 deployment guide. However, this will not be a problem if you use the new HTML5 deployment library, which does this for you: You just have to choose one of the installed browsers (click on the "Development -> Test Target" menu item), and then click on the "Test" button. - When loading a new widget in the Extensions Builder and clicking "Test", the widget does not appear. Clicking "Test" again fixes the problem. - Regarding the Tilecache refactor (the final part of the Datagrid 2 project), it was decided that it was too invasive to include at this stage in 9.0, so we are working hard to put it out in a 9.1 DP as soon as possible. The full release notes are available from: http://downloads.livecode.com/livecode/9_0_0/LiveCodeNotes-9_0_0_rc_1.pdf Feedback ======== 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 ========================================================================================================== Have you migrated your project to LiveCode 9? If not, then now is the time, with all these amazing features added to LC 9 so far: 1. New libraries added: - Amazon Web Services (AWS) Library - Android Audio Recorder Library - Android Background Audio Library - Command-line Option Parser (getopt) Library - Dropbox Library - HTTPD Library - Message Authentication Library - MIME Library - OAuth2 Library - Object Repository Library - QR Code Generator Library - Time zone Library - Toast Notification Library - Unified Diff Library - Remote Debugger Library (available in the Business Edition) - Script Profiler Library (available in the Business Edition) - Secure Key Storage Library (available in the Business Edition) 2. New Widgets added: - Spinner Widget - Android Native Button Widget - Android Native Field Widget - iOS Native Button Widget - Mac Native Button Widget - Mac Native Field Widget - HTML5 Native Button Widget - Signature Widget (available in the Indy and Business Edition) - Map Widget (available in the Indy and Business Edition) 3. Added support for foreign function interface (FFI) in LCB, which can be used to access native APIs on all supported platforms. With FFI, you can bind to foreign handlers, so in other words you can wrap functions in C, Objective C and Java and call them directly from LiveCode. Moreover, it gives you the ability to include dynamic libraries in extensions and bind to their functions. 4. New IDE features added, in various IDE components, for example: - Enhanced contextual menus, allowing you to access and edit behaviors - Extended drag-and-drop support to stackfiles - Enhanced resizable Property Inspector, allowing to access more properties - SVG support - Enhanced DataGrid object with native scrollers, edit mode swipe actions and drag reordering - Enhanced Script Editor with autocomplete, live errors, bracket completion and more - Optimised Search in Script Editor - Enhanced Project Browser with many keyboard shortcuts, ability to flag scripts that have errors, as well as showing up to 10 nested behaviors. - New HTML5 deployment library, allowing you to test your HTML5 standalone directly from the IDE, using the "Test" button of the LiveCode menubar. 5. New engine features added, including: - Added missing create syntax forms - Expanded range of 'random()' to 53-bits - Added new set ops and into form - Added a recordFormats function - Added messageDigest() function with SHA2 and SHA3 support - Enabled NFC tag reading on Android - Added maximum text length property for a native iOS field - Implemented "do ... as javascript" in html5 engine - Removed size limitation for creating graphics - Added support for showing widgets in HTML5 standalones. - Added support for HTML5 windowing: This allows tooltips, dialogs, and pop-up menus to work within the HTML5 engine. This also allows multiple stacks to be opened on the HTML5 page. - Added support for basic libURL commands in HTML5 - Windows cameraControl new properties: exposure, focus and white balance mode 6. Updated some of the prebuilt / thirdparty libraries we use: - New version of Chromium Embedded Framework (CEF) - New version of OpenSSL - New version of Skia Library ===================================================================================================== Have fun! The LiveCode Team -- From andrew at midwestcoastmedia.com Wed Mar 14 12:12:14 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Wed, 14 Mar 2018 16:12:14 +0000 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: Message-ID: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> I don't have a clear answer for this, but just an observation: iPhone 5 was the last of the Apple 32bit hardware devices. That makes me think this is an OS issue more than an LC issue. --Andrew Bell > I'm getting a very strange complaint from one user who has an older > iPhone 5 running iOS 11.2. When the app opens it briefly flashes the > last screen that was up before the app was closed. This happens in > between the splash page and the app's first card. The page flashed > page sometimes even has an "answer" dialog from a previous session! > I can't replicate it on any of my 3 iOS devices. I also noticed that > Pandora and Google Maps does the same thing on my iPad Mini but on > my iPad or iPod. The user has two other non-LC apps that are doing > the cached flashing. All of the user's other apps except for LC apps > and two others don't exhibit the flashing behavior. I'm wondering if > the Apple throttle-back for older batteries is exposing: a problem > with LC(and other apps), an iOS bug or their device need a factory > reset. The last thing I want to do is have the user factory reset > their iPhone and have the same thing happen. Could this be an Apple > bug for testers that side load many versions of apps? This user has > side-loaded many versions to test. Then I had download a store > version of the app that never did it before and it's now happening > but never did before. I find it very strange that apps that never > did this are now acting strangely. I find very little in web > searches on this subject. The few hits I've seen were mainly Safari > a couple of years ago and a one or two non native Xcode "app > building" platforms. > > Has anyone else ever seen this? > Thanks > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From rdimola at evergreeninfo.net Wed Mar 14 13:24:05 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 14 Mar 2018 13:24:05 -0400 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> References: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> Message-ID: <005301d3bbb9$447ccd90$cd7668b0$@net> It's interesting that the user never had this problem until last week even on apps that have not changed. I wonder if the Apple speed throttling has anything to do with it. The user loaded some app that shows if throttling is in effect and his speed is now reduced by .1 mhz. I wonder if this became a problem on older devices since Apple introduced as "App Thinning/Slicing." Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Andrew Bell via use-livecode Sent: Wednesday, March 14, 2018 12:12 PM To: use-livecode at lists.runrev.com Cc: andrew at midwestcoastmedia.com Subject: Re: iOS cached Screen Flashes after Splash Image I don't have a clear answer for this, but just an observation: iPhone 5 was the last of the Apple 32bit hardware devices. That makes me think this is an OS issue more than an LC issue. --Andrew Bell > I'm getting a very strange complaint from one user who has an older > iPhone 5 running iOS 11.2. When the app opens it briefly flashes the > last screen that was up before the app was closed. This happens in > between the splash page and the app's first card. The page flashed > page sometimes even has an "answer" dialog from a previous session! > I can't replicate it on any of my 3 iOS devices. I also noticed that > Pandora and Google Maps does the same thing on my iPad Mini but on my > iPad or iPod. The user has two other non-LC apps that are doing the > cached flashing. All of the user's other apps except for LC apps and > two others don't exhibit the flashing behavior. I'm wondering if the > Apple throttle-back for older batteries is exposing: a problem with > LC(and other apps), an iOS bug or their device need a factory reset. > The last thing I want to do is have the user factory reset their > iPhone and have the same thing happen. Could this be an Apple bug for > testers that side load many versions of apps? This user has > side-loaded many versions to test. Then I had download a store version > of the app that never did it before and it's now happening but never > did before. I find it very strange that apps that never did this are > now acting strangely. I find very little in web searches on this > subject. The few hits I've seen were mainly Safari a couple of years > ago and a one or two non native Xcode "app building" platforms. > > Has anyone else ever seen this? > Thanks > > 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 colinholgate at gmail.com Wed Mar 14 13:27:39 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Wed, 14 Mar 2018 13:27:39 -0400 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: <005301d3bbb9$447ccd90$cd7668b0$@net> References: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> <005301d3bbb9$447ccd90$cd7668b0$@net> Message-ID: <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> I have seen something like you?re describing with other apps, not LiveCode ones. iOS 11 has a new way of doing app switching, and that uses a different snapshot of the apps. Are you letting your app quit on suspend, or is it still open in the background? I can imagine cases where someone switches apps and will get the last app switching image iOS 11 kept. That is bound to be different if the app quit on suspend. From rdimola at evergreeninfo.net Wed Mar 14 14:35:35 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 14 Mar 2018 14:35:35 -0400 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> References: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> <005301d3bbb9$447ccd90$cd7668b0$@net> <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> Message-ID: <005d01d3bbc3$40fa2af0$c2ee80d0$@net> Hey Colin, Hope your well.... It's still open in the background. It's not exiting on suspend. When the app is still open in the background there is no problems switching between apps. When the user swipes it off after the double press of the home button and then re-opens the app is when this cached page is flashed in between the splash page and the first card. I would think that the thumbnail you see after the double press of the home button would be the image that flashes. In many cases it is but not all, maybe 50-50 between the thumbnail and the some random card from the past. I was looking for an app bug until the user said that one of the flashed images had an answer dialog opened. If you reinstall the app it still happens. If you uninstall/reinstall the app it still happens. If you uninstall the app then re-boot the device and then reinstall it does not happen the first launch. Then if you swipe the app off and then reopen it's sometimes OK the first few launches then after 3 or so launches it's back other times it starts after the first time you swipe it off. The happens on Pandora and Google maps also on my iPad mini but they are fine on my old iPad 2. 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 Colin Holgate via use-livecode Sent: Wednesday, March 14, 2018 1:28 PM To: How to use LiveCode Cc: Colin Holgate Subject: Re: iOS cached Screen Flashes after Splash Image I have seen something like you?re describing with other apps, not LiveCode ones. iOS 11 has a new way of doing app switching, and that uses a different snapshot of the apps. Are you letting your app quit on suspend, or is it still open in the background? I can imagine cases where someone switches apps and will get the last app switching image iOS 11 kept. That is bound to be different if the app quit on suspend. _______________________________________________ use-livecode mailing list use-livecode at 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 Wed Mar 14 14:35:07 2018 From: dave at applicationinsight.com (Dave Kilroy) Date: Wed, 14 Mar 2018 11:35:07 -0700 (MST) Subject: Release 9.0.0 RC-1 In-Reply-To: References: Message-ID: <1521052507810-0.post@n4.nabble.com> Well done all of you at LiveCode! RC-1 looks great and a 'great leap forward' from 8 (which was itself a great leap forward etc...) I don't have enough time to have a good play with it at the moment but am looking forward to doing so :) BTW, in the last week using 9.0.0-dp11 I've built and submitted the same app twice for iTunesConnect, and apart from the usual annoying warning messages, the app sailed though the Apple Review process (and uploaded .apks to Google Play as well). In short, dp11 was stable for me and just fine for deploying as well as development. Kind regards Dave ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From hh at hyperhh.de Wed Mar 14 14:36:22 2018 From: hh at hyperhh.de (hh) Date: Wed, 14 Mar 2018 19:36:22 +0100 Subject: Release 9.0.0 RC-1 Message-ID: Special thanks for the detailed documentation of changes in the release notes and also the compact listing here. > Panos/LCTeam wrote: > > 1. New libraries added: > > - Amazon Web Services (AWS) Library > - Android Audio Recorder Library > - Android Background Audio Library > - Command-line Option Parser (getopt) Library > - Dropbox Library > - HTTPD Library > - Message Authentication Library > - MIME Library > - OAuth2 Library > - Object Repository Library > - QR Code Generator Library > - Time zone Library > - Toast Notification Library > - Unified Diff Library > - Remote Debugger Library (available in the Business Edition) > - Script Profiler Library (available in the Business Edition) > - Secure Key Storage Library (available in the Business Edition) > > 2. New Widgets added: > > - Spinner Widget > - Android Native Button Widget > - Android Native Field Widget > - iOS Native Button Widget > - Mac Native Button Widget > - Mac Native Field Widget > - HTML5 Native Button Widget > - Signature Widget (available in the Indy and Business Edition) > - Map Widget (available in the Indy and Business Edition) > > 3. Added support for foreign function interface (FFI) in LCB, which can be > used to access native APIs on all supported platforms. With FFI, you can > bind to foreign handlers, so in other words you can wrap functions in C, > Objective C and Java and call them directly from LiveCode. Moreover, it > gives you the ability to include dynamic libraries in extensions and bind > to their functions. > > 4. New IDE features added, in various IDE components, for example: > > - Enhanced contextual menus, allowing you to access and edit behaviors > - Extended drag-and-drop support to stackfiles > - Enhanced resizable Property Inspector, allowing to access more properties > - SVG support > - Enhanced DataGrid object with native scrollers, edit mode swipe actions > and drag reordering > - Enhanced Script Editor with autocomplete, live errors, bracket completion > and more > - Optimised Search in Script Editor > - Enhanced Project Browser with many keyboard shortcuts, ability to flag > scripts that have errors, as well as showing up to 10 nested behaviors. > - New HTML5 deployment library, allowing you to test your HTML5 standalone > directly from the IDE, using the "Test" button of the LiveCode menubar. > > > 5. New engine features added, including: > - Added missing create syntax forms > - Expanded range of 'random()' to 53-bits > - Added new set ops and into form > - Added a recordFormats function > - Added messageDigest() function with SHA2 and SHA3 support > - Enabled NFC tag reading on Android > - Added maximum text length property for a native iOS field > - Implemented "do ... as javascript" in html5 engine > - Removed size limitation for creating graphics > - Added support for showing widgets in HTML5 standalones. > - Added support for HTML5 windowing: This allows tooltips, dialogs, and > pop-up menus to work within the HTML5 engine. This also allows multiple > stacks to be opened on the HTML5 page. > - Added support for basic libURL commands in HTML5 > - Windows cameraControl new properties: exposure, focus and white balance > mode > > > 6. Updated some of the prebuilt / thirdparty libraries we use: > - New version of Chromium Embedded Framework (CEF) > - New version of OpenSSL > - New version of Skia Library From bobsneidar at iotecdigital.com Wed Mar 14 14:37:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Mar 2018 18:37:09 +0000 Subject: iOS cached Screen Flashes after Splash Image In-Reply-To: <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> References: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> <005301d3bbb9$447ccd90$cd7668b0$@net> <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> Message-ID: <65BC5A97-AE8F-4B13-A61F-E451A8EFB6C5@iotecdigital.com> That is exactly what I am seeing Colin. I use Dashlane, which has it's own built in browser. When I navigate away from one site and back again, I get a brief time where the cached page displays, even though the connection has timed out, and then it takes me back to a login page for that site. I think this is a device specific issue. If a user is used to this, I don't think it is a problem, unless of course the last time the site was visited, the user was viewing confidential data. Then it could be extremely critical! Bob S > On Mar 14, 2018, at 10:27 , Colin Holgate via use-livecode wrote: > > I have seen something like you?re describing with other apps, not LiveCode ones. iOS 11 has a new way of doing app switching, and that uses a different snapshot of the apps. Are you letting your app quit on suspend, or is it still open in the background? I can imagine cases where someone switches apps and will get the last app switching image iOS 11 kept. That is bound to be different if the app quit on suspend. From dvglasgow at gmail.com Wed Mar 14 14:59:41 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Wed, 14 Mar 2018 18:59:41 +0000 Subject: OT: Develop yourself? In-Reply-To: <65BC5A97-AE8F-4B13-A61F-E451A8EFB6C5@iotecdigital.com> References: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> <005301d3bbb9$447ccd90$cd7668b0$@net> <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> <65BC5A97-AE8F-4B13-A61F-E451A8EFB6C5@iotecdigital.com> Message-ID: <94BC4DC1-450A-4FEC-91D8-458AADC08BED@gmail.com> I?ve just examined the premium pack of LiveCode goodies for me (and you) to enjoy. Am I the only one unsettled by the feeling that ?Develop yourself? on merchandise sounds like it might involve steroids, exercise, or a vacuum pump? Best Wishes, David Glasgow From jacque at hyperactivesw.com Wed Mar 14 15:10:20 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Mar 2018 14:10:20 -0500 Subject: Still looking into HTML5 app Message-ID: <176edf60-54ac-cbbd-daa6-69c2604df6e0@hyperactivesw.com> Do HTML5 apps support the "splash screen" approach? In our desktop app, the (large) splash stack script is put in use as a library, and the stack itself stores images and icons, template groups, and other resources common to all the mainstacks it opens. It also has players that provide audio globally while other mainstacks are open. Does anyone know if these things are supported? I guess the main question is whether the splash stack is available/in use in a browser even when not visible. Or does the currently open stack completely replace the splash in memory? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Mar 14 15:44:39 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Mar 2018 19:44:39 +0000 Subject: OT: Develop yourself? In-Reply-To: <94BC4DC1-450A-4FEC-91D8-458AADC08BED@gmail.com> References: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> <005301d3bbb9$447ccd90$cd7668b0$@net> <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> <65BC5A97-AE8F-4B13-A61F-E451A8EFB6C5@iotecdigital.com> <94BC4DC1-450A-4FEC-91D8-458AADC08BED@gmail.com> Message-ID: I'm unsettled that it might involve all three. Bob S > On Mar 14, 2018, at 11:59 , David V Glasgow via use-livecode wrote: > > I?ve just examined the premium pack of LiveCode goodies for me (and you) to enjoy. Am I the only one unsettled by the feeling that ?Develop yourself? on merchandise sounds like it might involve steroids, exercise, or a vacuum pump? > > > Best Wishes, > David Glasgow From tom at makeshyft.com Wed Mar 14 16:12:12 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 14 Mar 2018 16:12:12 -0400 Subject: OT: Develop yourself? In-Reply-To: References: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> <005301d3bbb9$447ccd90$cd7668b0$@net> <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> <65BC5A97-AE8F-4B13-A61F-E451A8EFB6C5@iotecdigital.com> <94BC4DC1-450A-4FEC-91D8-458AADC08BED@gmail.com> Message-ID: LOL.....at least its not brain surgery On Wed, Mar 14, 2018 at 3:44 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I'm unsettled that it might involve all three. > > Bob S > > > > On Mar 14, 2018, at 11:59 , David V Glasgow via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I?ve just examined the premium pack of LiveCode goodies for me (and you) > to enjoy. Am I the only one unsettled by the feeling that ?Develop > yourself? on merchandise sounds like it might involve steroids, exercise, > or a vacuum pump? > > > > > > Best Wishes, > > David Glasgow > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 16:14:26 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 14 Mar 2018 16:14:26 -0400 Subject: OT: Develop yourself? In-Reply-To: References: <20180314161214.Horde.hcB9ZQUCs4UtoUkswovpixa@ua850258.serversignin.com> <005301d3bbb9$447ccd90$cd7668b0$@net> <257A1E68-FD62-4C21-AC8A-4CC72D663FD9@gmail.com> <65BC5A97-AE8F-4B13-A61F-E451A8EFB6C5@iotecdigital.com> <94BC4DC1-450A-4FEC-91D8-458AADC08BED@gmail.com> Message-ID: <007601d3bbd1$0fa99f90$2efcdeb0$@net> I thought it was a way not to send the film to the lab. 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 Bob Sneidar via use-livecode Sent: Wednesday, March 14, 2018 3:45 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: OT: Develop yourself? I'm unsettled that it might involve all three. Bob S > On Mar 14, 2018, at 11:59 , David V Glasgow via use-livecode wrote: > > I?ve just examined the premium pack of LiveCode goodies for me (and you) to enjoy. Am I the only one unsettled by the feeling that ?Develop yourself? on merchandise sounds like it might involve steroids, exercise, or a vacuum pump? > > > Best Wishes, > David Glasgow _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 14 16:11:57 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 14 Mar 2018 13:11:57 -0700 Subject: Linux 32-bit? Message-ID: <66b91f1a-934a-1f89-6d67-70323b4260f2@fourthworld.com> Do we need to maintain a 32-bit build for Linux? I've noticed a lot of distros seems to have dropped 32-bit support some time ago. I don't have an opinion one way or another, and if we truly need it we need it. But if we don't need it's nice to let unneeded parts of the build system go away. -- Richard Gaskin Fourth World Systems From bobsneidar at iotecdigital.com Wed Mar 14 16:28:29 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 14 Mar 2018 20:28:29 +0000 Subject: Linux 32-bit? In-Reply-To: <66b91f1a-934a-1f89-6d67-70323b4260f2@fourthworld.com> References: <66b91f1a-934a-1f89-6d67-70323b4260f2@fourthworld.com> Message-ID: <68995AE8-00F4-421C-903D-393A04918F60@iotecdigital.com> Shhhh! Richmond may be listening! Bob S > On Mar 14, 2018, at 13:11 , Richard Gaskin via use-livecode wrote: > > Do we need to maintain a 32-bit build for Linux? > > I've noticed a lot of distros seems to have dropped 32-bit support some > time ago. > > I don't have an opinion one way or another, and if we truly need it we > need it. But if we don't need it's nice to let unneeded parts of the > build system go away. > > -- > Richard Gaskin > Fourth World Systems From jacque at hyperactivesw.com Wed Mar 14 17:07:44 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Mar 2018 16:07:44 -0500 Subject: Still looking into HTML5 app In-Reply-To: <176edf60-54ac-cbbd-daa6-69c2604df6e0@hyperactivesw.com> References: <176edf60-54ac-cbbd-daa6-69c2604df6e0@hyperactivesw.com> Message-ID: <8ef92cb5-a4a1-c63f-f84e-e2bda7e3b399@hyperactivesw.com> On 3/14/18 2:10 PM, J. Landman Gay via use-livecode wrote: > Do HTML5 apps support the "splash screen" approach? In our desktop app, > the (large) splash stack script is put in use as a library, and the > stack itself stores images and icons, template groups, and other > resources common to all the mainstacks it opens. It also has players > that provide audio globally while other mainstacks are open. > > Does anyone know if these things are supported? I guess the main > question is whether the splash stack is available/in use in a browser > even when not visible. Or does the currently open stack completely > replace the splash in memory? > I have just heard this is a no-go, so never mind. On the other hand, I'm still curious about the capabilities of HTML5. It isn't clear yet what it can and can't do, particularly with more complex multi-stack apps. It would be useful to know what stays in RAM, how stack navigation, libraries, and shared resources are managed, that sort of thing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Wed Mar 14 17:22:58 2018 From: hh at hyperhh.de (hh) Date: Wed, 14 Mar 2018 22:22:58 +0100 Subject: Still looking into HTML5 app Message-ID: <8193F4CF-660E-45B5-A6E9-19017044DB51@hyperhh.de> There is a new feature "new window/another canvas" that may help with the 'splash' problem (library stacks). Regarding audio/video: LC player is not supported. But everything is possible what's possible in the supported browsers, because you have the "do as javaScript" feature. Sadly you need until now still two versions of a video (mp4 and webm) for the different browsers. By the "do as javaScript" feature you have (running in a desktop machine) effectively more possibilities and can be much faster in a HTML5 standalone than in a desktop Mac/Win/linux standalone, if ... ... if you write your own javaScript additions or embed and use suitable javascript engines. p.s. Testing HTML5 builds is meanwhile very fast and comfortable. Just put any (scripted) object on a test stack and compile to see what's working. From devin_asay at byu.edu Wed Mar 14 18:05:20 2018 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 14 Mar 2018 22:05:20 +0000 Subject: LC 9 and Icon Families Message-ID: <82278261-97E8-4FDD-8DCA-9E16E052340B@byu.edu> Hi folks, Couldn?t resist spending some time on the new RC of LC 9. One of the cool new features is the ability to add icon families to your instance of LiveCode. Using the release notes and the dictionary I worked out how to create and add new icon families. This finally makes it possible to use your own custom icons in a Nav bar widget, for example. Try out my stack here (enter in message box): go stack URL "https://asay.byu.edu/stacks/IconFamilyMaker.livecode" Enjoy! Devin Devin Asay Director Office of Digital Humanities Brigham Young University From hh at hyperhh.de Wed Mar 14 18:29:03 2018 From: hh at hyperhh.de (hh) Date: Wed, 14 Mar 2018 23:29:03 +0100 Subject: LC 9 and Icon Families Message-ID: <0CAEA134-5AA3-4C8C-847F-8A59F8BD4F52@hyperhh.de> Thanks. Please put this on "Sample Stacks" (there are more visitors there). From richmondmathewson at gmail.com Wed Mar 14 18:43:40 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 15 Mar 2018 00:43:40 +0200 Subject: Linux 32-bit? In-Reply-To: <66b91f1a-934a-1f89-6d67-70323b4260f2@fourthworld.com> References: <66b91f1a-934a-1f89-6d67-70323b4260f2@fourthworld.com> Message-ID: <3ad401a5-8f97-6216-2ade-5a3616091794@gmail.com> Well, I, for one, deploy my English as a Foreign Language content programs to both 32 and 64 bit machines running Linux: but as they are all made with 8.1.8 or earlier this is NOT a reason to keep 32 bit versions for LiveCode 9. Richmond. On 14/3/2018 10:11 pm, Richard Gaskin via use-livecode wrote: > Do we need to maintain a 32-bit build for Linux? > > I've noticed a lot of distros seems to have dropped 32-bit support > some time ago. > > I don't have an opinion one way or another, and if we truly need it we > need it. But if we don't need it's nice to let unneeded parts of the > build system go away. > From richmondmathewson at gmail.com Wed Mar 14 18:47:11 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 15 Mar 2018 00:47:11 +0200 Subject: Linux 32-bit? In-Reply-To: <68995AE8-00F4-421C-903D-393A04918F60@iotecdigital.com> References: <66b91f1a-934a-1f89-6d67-70323b4260f2@fourthworld.com> <68995AE8-00F4-421C-903D-393A04918F60@iotecdigital.com> Message-ID: <0ffbe8d9-e6eb-e400-b5f2-ce1b810481b8@gmail.com> I am. Richmond. On 14/3/2018 10:28 pm, Bob Sneidar via use-livecode wrote: > Shhhh! Richmond may be listening! > > Bob S > > >> On Mar 14, 2018, at 13:11 , Richard Gaskin via use-livecode wrote: >> >> Do we need to maintain a 32-bit build for Linux? >> >> I've noticed a lot of distros seems to have dropped 32-bit support some >> time ago. >> >> I don't have an opinion one way or another, and if we truly need it we >> need it. But if we don't need it's nice to let unneeded parts of the >> build system go away. >> >> -- >> 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 jacque at hyperactivesw.com Wed Mar 14 19:28:05 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 14 Mar 2018 18:28:05 -0500 Subject: Still looking into HTML5 app In-Reply-To: <8193F4CF-660E-45B5-A6E9-19017044DB51@hyperhh.de> References: <8193F4CF-660E-45B5-A6E9-19017044DB51@hyperhh.de> Message-ID: On 3/14/18 4:22 PM, hh via use-livecode wrote: > There is a new feature "new window/another canvas" that may help with the > 'splash' problem (library stacks). > > Regarding audio/video: LC player is not supported. But everything > is possible what's possible in the supported browsers, because you have > the "do as javaScript" feature. Sadly you need until now still two versions > of a video (mp4 and webm) for the different browsers. > > By the "do as javaScript" feature you have (running in a desktop machine) > effectively more possibilities and can be much faster in a HTML5 standalone > than in a desktop Mac/Win/linux standalone, if ... > > ... if you write your own javaScript additions or embed and use suitable > javascript engines. > > p.s. Testing HTML5 builds is meanwhile very fast and comfortable. Just put > any (scripted) object on a test stack and compile to see what's working. Thanks, I'll save this for reference. It sounds like I'd need to know JavaScript to make a full-featured HTML5 app. Unfortunately I don't, so I'm not too unhappy the project got cancelled. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From devin_asay at byu.edu Wed Mar 14 19:50:53 2018 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 14 Mar 2018 23:50:53 +0000 Subject: LC 9 and Icon Families In-Reply-To: <0CAEA134-5AA3-4C8C-847F-8A59F8BD4F52@hyperhh.de> References: <0CAEA134-5AA3-4C8C-847F-8A59F8BD4F52@hyperhh.de> Message-ID: <787EF328-5BA0-4583-81E0-87AFEC614B93@byu.edu> Good idea. Done. I also added my SVG Icon Picker stack. DNA On Mar 14, 2018, at 4:29 PM, hh via use-livecode > wrote: Thanks. Please put this on "Sample Stacks" (there are more visitors there). _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University From tom at makeshyft.com Wed Mar 14 20:27:36 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 14 Mar 2018 20:27:36 -0400 Subject: code signing cost Message-ID: Hi guys, Maybe my question is dumb, and maybe I'm too pessimistic.... but are you telling me LC drops $ on code signing every windows installer for their DP and RC releases too? Is there some way of signing applications without that cost? From matthias_livecode_150811 at m-r-d.de Wed Mar 14 20:36:19 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 15 Mar 2018 01:36:19 +0100 Subject: code signing cost In-Reply-To: References: Message-ID: ??? Tom, you pay for a code signing certificate for one year and can use that certificate then for signing as many windows programs,Dlls and so on as you want. After that year your signed apps are still working, but you have to renew your certificate if you want to sign new apps. And 84USD for a code signing certificate is not much. Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 15.03.2018 um 01:27 schrieb Tom Glod via use-livecode >: > > Hi guys, > > Maybe my question is dumb, and maybe I'm too pessimistic.... but are you > telling me LC drops $ on code signing every windows installer for their DP > and RC releases too? > > Is there some way of signing applications without that cost? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 14 20:38:52 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Wed, 14 Mar 2018 17:38:52 -0700 Subject: code signing cost In-Reply-To: References: Message-ID: Coding signing certificates are priced on a per-year basis, not per app or signing instance. I get my Windows code signing certificates from kSoft - the certificates themselves are from Comodo and you can get anything from 1 to 5 years (the more years, the cheaper per year) - at least that last time I purchased. Marty > On Mar 14, 2018, at 5:27 PM, Tom Glod via use-livecode wrote: > > Hi guys, > > Maybe my question is dumb, and maybe I'm too pessimistic.... but are you > telling me LC drops $ on code signing every windows installer for their DP > and RC releases too? > > Is there some way of signing applications without that cost? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Mar 14 20:40:16 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 15 Mar 2018 01:40:16 +0100 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> Message-ID: So i took the time and added Code Signing for the Windows version of InstaMaker. So, who already owns a Code Signing Certificate and is keen enough to test my first build? ;) It?s late here and i need some sleep, so i will be able to answer any request in about 9 hours. Regards, Matthias > Am 14.03.2018 um 11:38 schrieb Matthias Rebbe via use-livecode >: > > Thanks to all for your kind words. > > > > @Tom, >> tool...where would it source the certificates? and how much? > > I am sorry, i don?t understand the question. > Do you want to know where you can buy the Software Signing Certificate for Windows? > The cheapest Seller i?ve found is K-Software (http://codesigning.ksoftware.net >). > They are selling genuine Comodo products and a Software Signing certificate cost about 84USD for 1 year. It?ll be even cheaper if you purchase it for 2, 3 or 4 years.. > They even provide a very easy tool for CodeSigning for free called kSign. It has a GUI is really very easy to use. I am using this tool for manually signing my Windows apps now for about 4 years. > > > @All > The upcoming code signing option in InstaMaker will only code sign the Installer, not the programs you?ve created the installer for. > For code signing in InstaMaker Microsofts signtool.exe will be used. > > So at the moment the steps for code signing a Windows app and creating a signed Installer for it would be > 1. Sign the Windows app and all externals using kSign.exe or Signtool.exe > Btw: the externals of a LC standalone are write protected for whatever reason. You?ll have to disable the write protection before code signing. Otherwise the externals can not signed > > 2. Create the Installer with InstaMaker > > 3. Code Sign the Installer. > > > When InstaMaker has code signing support, then > > 1. Sign the Windows app and all externals using kSign.exe or Signtool.exe > > 2. Create an Installer with InstaMaker and sign it automatically. > > So you?ll have to code sign your Windows program in any case first if you want to have your app also be code signed, then you can use InstaMaker to create an Installer and also code sign that installer after creation. > > But as i wrote, i need some spare time for it. But i will come. > > Regards, > > Matthias > > >> Am 14.03.2018 um 01:44 schrieb Tom Glod via use-livecode >>: >> >> this is cool.. thank you.....i'm very interested in the code signing >> tool...where would it source the certificates? and how much? >> >> On Tue, Mar 13, 2018 at 8:14 PM, Matthias Rebbe via use-livecode < >> use-livecode at lists.runrev.com >> wrote: >> >>> Hi, >>> >>> inspired by Monte?s great, but unfortunately not available anymore, tool >>> InstallGadget, i?ve created a similar tool called InstaMaker. >>> I very often need to create Installers for my little Windows apps and >>> InstallGadget was a good friend in the past, but drag?n?drop did not work >>> with newer Windows versions and other problems appeared. So i decided to >>> built my own version of such a tool. >>> >>> On Windows InstaMaker creates Windows Installers (based on the newest >>> version of InnoSetup). You do not need to install InnoSetup separately. The >>> needed parts are already included in InstaMaker. On OS X it creates simple >>> DMG files. >>> Just drag a folder which contains your program into the program window of >>> InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. >>> >>> I know there are other tools out there which do the DMG stuff much better, >>> but i wanted to have a tool available which does exact the same as >>> InstallGadget did. >>> >>> InstaMaker for Windows might be a good solution for the one or the other >>> who wants to create a Windows Installer of a program quick and easy. >>> >>> I will add code signing support the next weeks or when time allows, so >>> that the Windows installer will be automatically code signed after >>> creation. For this you will need a code signing certificate. >>> >>> InstaMaker is free. You can download it from its website at >>> https://instamaker.dermattes.de > >> >>> >>> 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 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Wed Mar 14 21:32:40 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 14 Mar 2018 21:32:40 -0400 Subject: code signing cost In-Reply-To: References: Message-ID: thanks you that makes alot more sense than what I was thinking. In the few times I researched this topic, it was never clear to me that you can sign multiple things with one sig. thanks guys On Wed, Mar 14, 2018 at 8:38 PM, Knapp Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > Coding signing certificates are priced on a per-year basis, not per app or > signing instance. I get my Windows code signing certificates from kSoft - > the certificates themselves are from Comodo and you can get anything from 1 > to 5 years (the more years, the cheaper per year) - at least that last time > I purchased. > > Marty > > > On Mar 14, 2018, at 5:27 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi guys, > > > > Maybe my question is dumb, and maybe I'm too pessimistic.... but are you > > telling me LC drops $ on code signing every windows installer for their > DP > > and RC releases too? > > > > Is there some way of signing applications without that cost? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Wed Mar 14 21:59:39 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 14 Mar 2018 20:59:39 -0500 Subject: LC 9 and Icon Families In-Reply-To: <787EF328-5BA0-4583-81E0-87AFEC614B93@byu.edu> References: <0CAEA134-5AA3-4C8C-847F-8A59F8BD4F52@hyperhh.de> <787EF328-5BA0-4583-81E0-87AFEC614B93@byu.edu> Message-ID: I wrote a stack that does something similar. Mine was geared toward importing a folder of SVG icons. http://forums.livecode.com/viewtopic.php?f=10&t=30411 There's also a copy on my web site that includes a whole bunch of icons: https://milby.us/lc/SvgIconTool.180114-1700.zip Most of the icons came from: https://github.com/leungwensen/svg-icon Thanks, Brian On Wed, Mar 14, 2018 at 6:50 PM, Devin Asay via use-livecode < use-livecode at lists.runrev.com> wrote: > Good idea. Done. > > I also added my SVG Icon Picker stack. > > DNA > > On Mar 14, 2018, at 4:29 PM, hh via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > Thanks. Please put this on "Sample Stacks" (there are more visitors there). > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > Devin Asay > Director > 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 tom at makeshyft.com Thu Mar 15 00:14:35 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 15 Mar 2018 00:14:35 -0400 Subject: Still looking into HTML5 app In-Reply-To: References: <8193F4CF-660E-45B5-A6E9-19017044DB51@hyperhh.de> Message-ID: Yup. Reading the release notes from 9 RC1 can help you to decide. If it means anything...I'm pushing forward with a HTML5 Web Application Project based on what I read here and tested in latest DP release On Wed, Mar 14, 2018 at 7:28 PM, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 3/14/18 4:22 PM, hh via use-livecode wrote: > >> There is a new feature "new window/another canvas" that may help with the >> 'splash' problem (library stacks). >> >> Regarding audio/video: LC player is not supported. But everything >> is possible what's possible in the supported browsers, because you have >> the "do as javaScript" feature. Sadly you need until now still two >> versions >> of a video (mp4 and webm) for the different browsers. >> >> By the "do as javaScript" feature you have (running in a desktop machine) >> effectively more possibilities and can be much faster in a HTML5 >> standalone >> than in a desktop Mac/Win/linux standalone, if ... >> >> ... if you write your own javaScript additions or embed and use suitable >> javascript engines. >> >> p.s. Testing HTML5 builds is meanwhile very fast and comfortable. Just put >> any (scripted) object on a test stack and compile to see what's working. >> > > Thanks, I'll save this for reference. It sounds like I'd need to know > JavaScript to make a full-featured HTML5 app. Unfortunately I don't, so I'm > not too unhappy the project got cancelled. > > -- > 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 michael-kristensen at dsa-net.dk Thu Mar 15 04:33:33 2018 From: michael-kristensen at dsa-net.dk (Michael Kristensen) Date: Thu, 15 Mar 2018 09:33:33 +0100 Subject: 9.0.0 RC-1 Hard crash still persists Message-ID: <4785B562-9C3C-4CDC-8C18-1D4F011895CA@dsa-net.dk> Hi there (Mac 10.11.6) I have grouped items in a group. I press Command R to edit the big group. Then I hover mouse over one of the subgroups and Option-Command-click to acces the script. Then Hard crash Only Force Quit Livecode will let me out Mic From hh at hyperhh.de Thu Mar 15 05:34:04 2018 From: hh at hyperhh.de (hh) Date: Thu, 15 Mar 2018 10:34:04 +0100 Subject: LC 9 and Icon Families Message-ID: @Brian Please add your tool also to "Sample Stacks". This was reworked in the last year and works really fine here. And it is *very* fast for searching and downloading a stack. Such wonderful stacks go (somehow) lost in the list or the forum. From james at thehales.id.au Thu Mar 15 09:10:31 2018 From: james at thehales.id.au (James Hale) Date: Fri, 16 Mar 2018 00:10:31 +1100 Subject: Dash LiveCode Docset and "Make Docset" stack updated Message-ID: <42E0E998-6EC5-441C-9F6F-1125EE45A359@thehales.id.au> The Livecode Dash Docset has been updated to version 1.5 and has been compiled from the LC 9.0.0 rc1 documentation. The "Make Docset" stack on LivecodeShare has been updated to version 2.6 (modified version algorithm to catch fully the LC 9 series.) http://livecodeshare.runrev.com/stack/845/Make-DocSet Enjoy. James From bobsneidar at iotecdigital.com Thu Mar 15 10:36:06 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Mar 2018 14:36:06 +0000 Subject: 9.0.0 RC-1 Hard crash still persists In-Reply-To: <4785B562-9C3C-4CDC-8C18-1D4F011895CA@dsa-net.dk> References: <4785B562-9C3C-4CDC-8C18-1D4F011895CA@dsa-net.dk> Message-ID: I just tried that and it works for me, but I am running 10.13.3 and LC 8.1.9. Try quitting, removing all your plugins and testing. Bob S > On Mar 15, 2018, at 01:33 , Michael Kristensen via use-livecode wrote: > > Hi there > > (Mac 10.11.6) > > I have grouped items in a group. > > I press Command R to edit the big group. > > Then I hover mouse over one of the subgroups and Option-Command-click to acces the script. > > Then Hard crash > > Only Force Quit Livecode will let me out > > > Mic From bobsneidar at iotecdigital.com Thu Mar 15 10:38:31 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Mar 2018 14:38:31 +0000 Subject: Dash LiveCode Docset and "Make Docset" stack updated In-Reply-To: <42E0E998-6EC5-441C-9F6F-1125EE45A359@thehales.id.au> References: <42E0E998-6EC5-441C-9F6F-1125EE45A359@thehales.id.au> Message-ID: <7292F747-B86B-4E87-9C05-DFA2B07A9973@iotecdigital.com> Interesting. I'm curious if this can be used to combine multiple PDF documents into a DocSet. Bob S > On Mar 15, 2018, at 06:10 , James Hale via use-livecode wrote: > > The Livecode Dash Docset has been updated to version 1.5 and has been compiled from the LC 9.0.0 rc1 documentation. > > The "Make Docset" stack on LivecodeShare has been updated to version 2.6 (modified version algorithm to catch fully the LC 9 series.) > http://livecodeshare.runrev.com/stack/845/Make-DocSet > > Enjoy. > > James From williamdesmet at gmail.com Thu Mar 15 10:55:15 2018 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 15 Mar 2018 15:55:15 +0100 Subject: Sound delay Message-ID: Hi there, Why is there a short delay when playing a sound for the first time? And how do I solve this? play specialFolderPath("engine") & slash & "sounds/pop.mp3" greetings, William From bobsneidar at iotecdigital.com Thu Mar 15 10:58:24 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 15 Mar 2018 14:58:24 +0000 Subject: Sound delay In-Reply-To: References: Message-ID: Hard to say, since I don't have that file. Have you attempted in the OS to double click the file or if on Mac, play the file in preview mode? Bob S > On Mar 15, 2018, at 07:55 , William de Smet via use-livecode wrote: > > play specialFolderPath("engine") & slash & "sounds/pop.mp3" From williamdesmet at gmail.com Thu Mar 15 11:06:32 2018 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 15 Mar 2018 16:06:32 +0100 Subject: Sound delay In-Reply-To: References: Message-ID: Hi Bob, It's on iOS. Sound files are ok and sound ok on my Mac. In the app the second time it plays faster/immediately. Like it needs to buffer first? groeten, William 2018-03-15 15:58 GMT+01:00 Bob Sneidar via use-livecode < use-livecode at lists.runrev.com>: > Hard to say, since I don't have that file. Have you attempted in the OS to > double click the file or if on Mac, play the file in preview mode? > > Bob S > > > > On Mar 15, 2018, at 07:55 , William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > play specialFolderPath("engine") & slash & "sounds/pop.mp3" > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 15 11:45:09 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Mar 2018 10:45:09 -0500 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> Message-ID: <1622a560800.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I might be able to test. Are the links in your first post still current? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 14, 2018 7:42:02 PM Matthias Rebbe via use-livecode wrote: > So i took the time and added Code Signing for the Windows version of > InstaMaker. > > So, who already owns a Code Signing Certificate and is keen enough to test > my first build? ;) > > It?s late here and i need some sleep, so i will be able to answer any > request in about 9 hours. > > Regards, > Matthias > > > Am 14.03.2018 um 11:38 schrieb Matthias Rebbe via use-livecode > >: > > > > Thanks to all for your kind words. > > > > > > > > @Tom, >> > tool...where would it source the certificates? and how much? > > > > I am sorry, i don?t understand the question. > > Do you want to know where you can buy the Software Signing Certificate > for Windows? > > The cheapest Seller i?ve found is K-Software > (http://codesigning.ksoftware.net > >). > > They are selling genuine Comodo products and a Software Signing > certificate cost about 84USD for 1 year. It?ll be even cheaper if you > purchase it for 2, 3 or 4 years.. > > They even provide a very easy tool for CodeSigning for free called kSign. > It has a GUI is really very easy to use. I am using this tool for manually > signing my Windows apps now for about 4 years. > > > > > > @All > > The upcoming code signing option in InstaMaker will only code sign the > Installer, not the programs you?ve created the installer for. > > For code signing in InstaMaker Microsofts signtool.exe will be used. > > > > So at the moment the steps for code signing a Windows app and creating a > signed Installer for it would be > > 1. Sign the Windows app and all externals using kSign.exe or Signtool.exe > > Btw: the externals of a LC standalone are write protected for whatever > reason. You?ll have to disable the write protection before code signing. > Otherwise the externals can not signed > > > > 2. Create the Installer with InstaMaker > > > > 3. Code Sign the Installer. > > > > > > When InstaMaker has code signing support, then > > > > 1. Sign the Windows app and all externals using kSign.exe or Signtool.exe > > > > 2. Create an Installer with InstaMaker and sign it automatically. > > > > So you?ll have to code sign your Windows program in any case first if you > want to have your app also be code signed, then you can use InstaMaker to > create an Installer and also code sign that installer after creation. > > > > But as i wrote, i need some spare time for it. But i will come. > > > > Regards, > > > > Matthias > > > > >> > Am 14.03.2018 um 01:44 schrieb Tom Glod via use-livecode >> >> >>: >> > >> > this is cool.. thank you.....i'm very interested in the code signing >> > tool...where would it source the certificates? and how much? >> > >> > On Tue, Mar 13, 2018 at 8:14 PM, Matthias Rebbe via use-livecode < >> > use-livecode at lists.runrev.com >> > >> wrote: >> > >>> > Hi, >>> > >>> > inspired by Monte?s great, but unfortunately not available anymore, tool >>> > InstallGadget, i?ve created a similar tool called InstaMaker. >>> > I very often need to create Installers for my little Windows apps and >>> > InstallGadget was a good friend in the past, but drag?n?drop did not work >>> > with newer Windows versions and other problems appeared. So i decided to >>> > built my own version of such a tool. >>> > >>> > On Windows InstaMaker creates Windows Installers (based on the newest >>> > version of InnoSetup). You do not need to install InnoSetup separately. The >>> > needed parts are already included in InstaMaker. On OS X it creates simple >>> > DMG files. >>> > Just drag a folder which contains your program into the program window of >>> > InstaMaker or onto the InstaMaker Icon. InstaMaker does the rest for you. >>> > >>> > I know there are other tools out there which do the DMG stuff much better, >>> > but i wanted to have a tool available which does exact the same as >>> > InstallGadget did. >>> > >>> > InstaMaker for Windows might be a good solution for the one or the other >>> > who wants to create a Windows Installer of a program quick and easy. >>> > >>> > I will add code signing support the next weeks or when time allows, so >>> > that the Windows installer will be automatically code signed after >>> > creation. For this you will need a code signing certificate. >>> > >>> > InstaMaker is free. You can download it from its website at >>> > https://instamaker.dermattes.de >>> > >>> >>> >> >>> > >>> > 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 >>> >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Mar 15 11:47:15 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 15 Mar 2018 16:47:15 +0100 Subject: Strange problem with tsNet external on Windows Message-ID: I have a LiveCode standalone running as PC app (a .exe file, plus some other files which are needed when it runs). If I simply run the original standalone on Windows 7 (OK, running under Parallels on a Mac), it all just works. If I create an installer for the program and its dependent files using Inno Setup, the whole thing appears to run smoothly, but when I run the installed version of the app (which is exactly the same size as the original standalone, as expected), I get an error from the LC engine ?Initialization Error: Failed to load external: tsNet?. I suppose I have somehow failed to include tsNet, but it was specifically included in the standalone (as ?internet?) and anyway the original standalone works. Should I somehow be giving my installed app a path to the LC externals? I?m confused. Graham From malamoud.public at free.fr Thu Mar 15 12:15:16 2018 From: malamoud.public at free.fr (Georges Malamoud) Date: Thu, 15 Mar 2018 17:15:16 +0100 Subject: Power outage alarm app on iPhone : LC can do it ? Message-ID: <4EA16DE8-8A7B-4A95-8EC5-08A2274326F8@free.fr> Hello I want to develop a simple LC app to monitor power outages in my home and to send an email in case of an outage. The iPhone is an old one and will be permanently plugged in my home (near the fridge ;). When there is a power outage, it will continue on battery, LC will wake up and send an email somewhere because it is easy (on GSM, because wifi will be down) or why not a SMS if it can be fully automated. I know it is simple on Android (app exist in Google Play), but I have to use an iPhone, and it will be fun to develop (of course, it will be freely available if the community version is compatible) Any clues ? Thanks From benr_mc at cogapp.com Thu Mar 15 12:01:41 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 15 Mar 2018 16:01:41 +0000 Subject: When did 'throw' stop being handled properly in the IDE? Message-ID: <317d6c1a-b485-9029-381d-41cb8dab5810@cogapp.com> When I was a lad, you could use throw with abandon. In the IDE, if you didn't catch it, the IDE opened the debugger at the appropriate level, and threw up a polite dialog explaining: The following user thrown error was generated and not handled, so it was intercepted by LiveCode Now - in 8.1.9 and 9.0.0 rc1, instead it goes into the debugger, then simply halts. So you've lost the ability to inspect variables etc, you may not even know what the error was that was thrown - and in fact nothing explicitly tells you that the reason you are looking at your script is that there was an error thrown. If you've gone to make a cup of tea while your script was running, you may not remember whether you'd left the script window open, and may not realise that your script didn't complete... err, according to a friend who this might have happened to. I'm not sure when this happened. I presume it's a bug. But it's evidently been happening for a while, and nobody else seems to have QCC'd it, so I wanted to check first. Do other people see this? TIA Ben From rdimola at evergreeninfo.net Thu Mar 15 12:29:27 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 15 Mar 2018 12:29:27 -0400 Subject: Strange problem with tsNet external on Windows In-Reply-To: References: Message-ID: <003401d3bc7a$cc3406b0$649c1410$@net> Graham, Also check tsNet, it's way down at the bottom of the inclusions pane. Or you can disable tsNet and use only libURL. Here are a couple of handlers to find out if is tsNet is enabled. Below that is how to explicitly enable/disable tsNet. function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "Sockets" else return "tsNet" end if end GetNetworkType command NetworkType if GetNetworkType() = "Sockets" then answer"tsNet is disabled" else answer "tsNet in use"&cr&"Version==>"& tsNetVersion() end if end NetworkType To unload: dispatch "revUnloadLibrary" to stack "tsNetLibUrl" To load again: dispatch "revLoadLibrary" to stack "tsNetLibUrl" 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 Graham Samuel via use-livecode Sent: Thursday, March 15, 2018 11:47 AM To: How to use LiveCode Cc: Graham Samuel Subject: Strange problem with tsNet external on Windows I have a LiveCode standalone running as PC app (a .exe file, plus some other files which are needed when it runs). If I simply run the original standalone on Windows 7 (OK, running under Parallels on a Mac), it all just works. If I create an installer for the program and its dependent files using Inno Setup, the whole thing appears to run smoothly, but when I run the installed version of the app (which is exactly the same size as the original standalone, as expected), I get an error from the LC engine ?Initialization Error: Failed to load external: tsNet?. I suppose I have somehow failed to include tsNet, but it was specifically included in the standalone (as ?internet?) and anyway the original standalone works. Should I somehow be giving my installed app a path to the LC externals? I?m confused. 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 jacque at hyperactivesw.com Thu Mar 15 14:28:39 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 15 Mar 2018 13:28:39 -0500 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> Message-ID: <728270bf-3787-3b9a-ca14-2c368aed659c@hyperactivesw.com> On 3/14/18 7:40 PM, Matthias Rebbe via use-livecode wrote: > i will be able to answer any request in about 9 hours. Real programmers don't need sleep. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rman at free.fr Thu Mar 15 14:52:51 2018 From: rman at free.fr (Robert Mann) Date: Thu, 15 Mar 2018 11:52:51 -0700 (MST) Subject: [on-rev] Tio not responding since early evening Message-ID: <1521139971076-0.post@n4.nabble.com> Hi is anybody else monitoring such a problem or is it just my account? thanks! -- no access to websites -- no access to mail -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From rman at free.fr Thu Mar 15 14:59:43 2018 From: rman at free.fr (Robert Mann) Date: Thu, 15 Mar 2018 11:59:43 -0700 (MST) Subject: [on-rev] Tio not responding since early evening In-Reply-To: <1521139971076-0.post@n4.nabble.com> References: <1521139971076-0.post@n4.nabble.com> Message-ID: <1521140383960-0.post@n4.nabble.com> All is back, seems support reacted like a rocket!! whouahouu!! Impressed. Now, thre was an option to delete a msg. How to do that!?? can't find it! thanks -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From tom at makeshyft.com Thu Mar 15 16:04:08 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 15 Mar 2018 16:04:08 -0400 Subject: Not sure what to do.....can I run this by you guys? Message-ID: Hi guys, I've brought this up before.....and the time to solve is coming sooner than I expected. 1. My project must be open source 2. I must communicate with cloud service not one request at a time. 3. TsNet is not open source and I love that LC has a feature that can bring them important revenue. But I have to create a workaround ... so its hackathon time.... My first idea is to do this : - Create process in Go using Go Routines to give me concurrent http requests - send all my requests to that process via a non-blocking socket - read from the socket in non-blocking way to receive the data returned for the requests until all requests have completed or timed out. thats the theory i hope it works. thanks you guys for any thouights From ambassador at fourthworld.com Thu Mar 15 22:14:40 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Mar 2018 19:14:40 -0700 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: Message-ID: Tom Glod wrote: > Hi guys, I've brought this up before.....and the time to solve is > coming sooner than I expected. > > 1. My project must be open source > 2. I must communicate with cloud service not one request at a time. > 3. TsNet is not open source and I love that LC has a feature that > can bring them important revenue. > > But I have to create a workaround ... so its hackathon time.... > > My first idea is to do this : > > - Create process in Go using Go Routines to give me concurrent http > requests > - send all my requests to that process via a non-blocking socket > - read from the socket in non-blocking way to receive the data > returned > for the requests until all requests have completed or timed out. While it is unfortunate that LC is among the few open source languages that doesn't have CURL support, in your case I wonder if it's truly necessary. The engine's socket support is generally pretty good, and libURL can be modified. What exactly do you need to 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 tom at makeshyft.com Thu Mar 15 22:26:10 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 15 Mar 2018 22:26:10 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: Message-ID: i need to be able to send more than one http request to my cloud service domain at one time....it is not a limitation I am willing to live with ....and I don't want to package requests together and have to wait for all of them to be processed before something comes back. Its not a limitation that should exist in any modern software..... and it won't in mine...... so I have to try different ways to try to get around this somehow and still be GPL3 Cheers....I'm going to try the read from process idea....and see if i can read the returned requests faster that way. Thank you. On Thu, Mar 15, 2018 at 10:14 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom Glod wrote: > > Hi guys, I've brought this up before.....and the time to solve is > > coming sooner than I expected. > > > > 1. My project must be open source > > 2. I must communicate with cloud service not one request at a time. > > 3. TsNet is not open source and I love that LC has a feature that > > can bring them important revenue. > > > > But I have to create a workaround ... so its hackathon time.... > > > > My first idea is to do this : > > > > - Create process in Go using Go Routines to give me concurrent http > > requests > > - send all my requests to that process via a non-blocking socket > > - read from the socket in non-blocking way to receive the data > > returned > > for the requests until all requests have completed or timed out. > > While it is unfortunate that LC is among the few open source languages > that doesn't have CURL support, in your case I wonder if it's truly > necessary. > > The engine's socket support is generally pretty good, and libURL can be > modified. What exactly do you need to 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 bonnmike at gmail.com Thu Mar 15 22:35:49 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 15 Mar 2018 20:35:49 -0600 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: Message-ID: I've used load for this in the past. The ability to specify a callback message makes it work well. In my case I was experimenting with offloading a large job to a webserver for processing. To help with organizing the data being returned, I tacked a # and an incrementing number to the end of each url. Made it easy to re-assemble things into the proper order. (Be aware though, things behave differently between desktop and mobile so you have to take platform into account) On Thu, Mar 15, 2018 at 8:26 PM, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > i need to be able to send more than one http request to my cloud service > domain at one time....it is not a limitation I am willing to live with > ....and I don't want to package requests together and have to wait for all > of them to be processed before something comes back. > > Its not a limitation that should exist in any modern software..... and it > won't in mine...... so I have to try different ways to try to get around > this somehow and still be GPL3 > > Cheers....I'm going to try the read from process idea....and see if i can > read the returned requests faster that way. > > Thank you. > > > > > > > On Thu, Mar 15, 2018 at 10:14 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Tom Glod wrote: > > > Hi guys, I've brought this up before.....and the time to solve is > > > coming sooner than I expected. > > > > > > 1. My project must be open source > > > 2. I must communicate with cloud service not one request at a time. > > > 3. TsNet is not open source and I love that LC has a feature that > > > can bring them important revenue. > > > > > > But I have to create a workaround ... so its hackathon time.... > > > > > > My first idea is to do this : > > > > > > - Create process in Go using Go Routines to give me concurrent http > > > requests > > > - send all my requests to that process via a non-blocking socket > > > - read from the socket in non-blocking way to receive the data > > > returned > > > for the requests until all requests have completed or timed out. > > > > While it is unfortunate that LC is among the few open source languages > > that doesn't have CURL support, in your case I wonder if it's truly > > necessary. > > > > The engine's socket support is generally pretty good, and libURL can be > > modified. What exactly do you need to 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 tom at makeshyft.com Thu Mar 15 23:35:59 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 15 Mar 2018 23:35:59 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: Message-ID: Great hints there Mike .... thanks alot. Luckily I'm desktop only right now. It shouldn't be too long before I sit down to make something that I can rely on and reuse in future projects. Might turn out I will have to hire someone to help which is cool too. It only has to be very simple..and does not need to match performance of Tsnet. Anything more than 1 would be a great start. LOL. I will look into the libURL library and then try to guess which way I should go my first attempt to hack this. I'll keep you guys posted on the progress..I think I need a name for this little project. Thanks you Tom On Thu, Mar 15, 2018 at 10:35 PM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > I've used load for this in the past. The ability to specify a callback > message makes it work well. In my case I was experimenting with offloading > a large job to a webserver for processing. To help with organizing the > data being returned, I tacked a # and an incrementing number to the end of > each url. Made it easy to re-assemble things into the proper order. (Be > aware though, things behave differently between desktop and mobile so you > have to take platform into account) > > On Thu, Mar 15, 2018 at 8:26 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > i need to be able to send more than one http request to my cloud service > > domain at one time....it is not a limitation I am willing to live with > > ....and I don't want to package requests together and have to wait for > all > > of them to be processed before something comes back. > > > > Its not a limitation that should exist in any modern software..... and it > > won't in mine...... so I have to try different ways to try to get around > > this somehow and still be GPL3 > > > > Cheers....I'm going to try the read from process idea....and see if i can > > read the returned requests faster that way. > > > > Thank you. > > > > > > > > > > > > > > On Thu, Mar 15, 2018 at 10:14 PM, Richard Gaskin via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Tom Glod wrote: > > > > Hi guys, I've brought this up before.....and the time to solve is > > > > coming sooner than I expected. > > > > > > > > 1. My project must be open source > > > > 2. I must communicate with cloud service not one request at a time. > > > > 3. TsNet is not open source and I love that LC has a feature that > > > > can bring them important revenue. > > > > > > > > But I have to create a workaround ... so its hackathon time.... > > > > > > > > My first idea is to do this : > > > > > > > > - Create process in Go using Go Routines to give me concurrent > http > > > > requests > > > > - send all my requests to that process via a non-blocking socket > > > > - read from the socket in non-blocking way to receive the data > > > > returned > > > > for the requests until all requests have completed or timed out. > > > > > > While it is unfortunate that LC is among the few open source languages > > > that doesn't have CURL support, in your case I wonder if it's truly > > > necessary. > > > > > > The engine's socket support is generally pretty good, and libURL can be > > > modified. What exactly do you need to 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From james at thehales.id.au Fri Mar 16 00:00:10 2018 From: james at thehales.id.au (James At The Hale) Date: Fri, 16 Mar 2018 15:00:10 +1100 Subject: Dash LiveCode Docset and "Make Docset" stack updated Message-ID: <0480337D-48C2-469E-969B-3EFDCA20E1A9@thehales.id.au> Bob asked: > Interesting. I'm curious if this can be used to combine multiple PDF documents into a DocSet. If you are asking if a Dash Docset can be made from pdf?s I think the answer is no. See...https://kapeli.com/docsets In the ?Make Docset? stack I am using the html files contained in the documentation directory within LiveCode. These are the files that appear when you click on the ?Guide? tab in LC?s dictionary. Within Dash they appear when you select the LiveCode document set or any of the keyword headers. The actual entries come from the stored arrays in the dictionary sqlite database reformatted to html. No pdf?s were harmed or even looked at in any way. If you wanted to use pdf?s to make a dash docset, I think you would nee to convert the pdf?s to html. James From ambassador at fourthworld.com Fri Mar 16 01:19:19 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 15 Mar 2018 22:19:19 -0700 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: Message-ID: <464e1839-b668-0b40-2fdf-a272eef7e845@fourthworld.com> Tom Glod wrote: > I'll keep you guys posted on the progress..I think I need a name for > this little project. "There are only two hard things in Computer Science: cache invalidation and naming things." - Phil Karlton -- Richard Gaskin Fourth World Systems From matthias_livecode_150811 at m-r-d.de Fri Mar 16 04:12:56 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 16 Mar 2018 09:12:56 +0100 Subject: [OT] Free tool for ease Windows Installer creation In-Reply-To: <728270bf-3787-3b9a-ca14-2c368aed659c@hyperactivesw.com> References: <290159C3-87F0-4029-AC83-FC38989E6F41@m-r-d.de> <728270bf-3787-3b9a-ca14-2c368aed659c@hyperactivesw.com> Message-ID: <87FE3132-1BBE-4B07-9E8A-B36B5EFF8619@m-r-d.de> > Am 15.03.2018 um 19:28 schrieb J. Landman Gay via use-livecode >: > > On 3/14/18 7:40 PM, Matthias Rebbe via use-livecode wrote: >> i will be able to answer any request in about 9 hours. > > Real programmers don't need sleep. :) > Who said i am a programmer. Call me software architect and grant me my sleep. ;) 9 hours btw. are not that much. It means sleep, eating, ?family business?, body care and so on Speaking of body care I remember a colleague in the first company i worked for. He was a brilliant programmer, he did not sleep much. Sometimes he worked 3 days in a row. His workplace looked like a garbage dump. All over there was the packaging of Camembert. That was his main food. Camembert, Potato chips/crisps and Coke. The key caps of his keyboard were nearly black, because he was also a heavy smoker. And he smelled unpleasant? That was a warning for me to never ever being like someone like him. Btw, our boss had not a problem with that all, because firstly the work of that colleague was brilliant and secondly our boss had his own office room far far away. So please let me sleep and smell well. ;) > -- > 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 charles at techstrategies.com.au Fri Mar 16 05:48:03 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Fri, 16 Mar 2018 19:48:03 +1000 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> Message-ID: <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> Hi Tom, If the site you are trying to contact has CORS enabled appropriately, then you can do something like this... With the LiveCode browser widget, you can call JavaScript functions from LC script and have the JavaScript functions call LC handlers in return. JavaScript has the capability to perform asynchronous HTTP requests. You can create a HTML page that you automatically load up in the browser widget that has a small JavaScript function which you can call from LC with ?do in widget?. All this function needs to do is issue an asynchronous HTTP call to the URL passed to it as a parameter and when it receives the data, return it back to your LC script by calling a nominated LC handler and passing the returned data as a parameter. The HTML page would look something like this: Javascript Async Test You can either load that from a file into the browser widget?s URL or set its htmlText property accordingly... Then in LC, make sure you register the httpRequestComplete handler so that the widget can call it: set the javascriptHandlers of widget ?browser? to ?httpRequestComplete? After that, add a httpRequestComplete handler to the card script to handle the returned data: on httpRequestComplete pUrl, pData ? pUrl will be the URL requested ? pData will be the data returned from the URL requested end httpRequestComplete Lastly, make your async requests.... do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? Since the JavaScript in the browser widget is issuing the requests and sending the data back to LC, it doesn?t need to display anything related to it in the browser widget itself - it can be a blank canvas. Just be aware that the browser widget can cache URLs and there is no easy way (that I know of?) in LC to clear the browser?s cache... so if you see very quick responses on a second or subsequent request to the same URL, it is likely pulling it all from the browser?s cache. Cheers, Charles >> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode wrote: >> >> Great hints there Mike .... thanks alot. Luckily I'm desktop only right >> now. >> >> It shouldn't be too long before I sit down to make something that I can >> rely on and reuse in future projects. >> >> Might turn out I will have to hire someone to help which is cool too. >> >> It only has to be very simple..and does not need to match performance of >> Tsnet. >> >> Anything more than 1 would be a great start. LOL. >> >> I will look into the libURL library and then try to guess which way I >> should go my first attempt to hack this. >> >> I'll keep you guys posted on the progress..I think I need a name for this >> little project. >> >> Thanks you >> >> Tom From livfoss at mac.com Fri Mar 16 06:23:12 2018 From: livfoss at mac.com (Graham Samuel) Date: Fri, 16 Mar 2018 11:23:12 +0100 Subject: Strange problem with tsNet external on Windows In-Reply-To: References: Message-ID: <1303D247-1ACF-48B7-9205-0CF4A5B4C91D@mac.com> I finally answered my own question - it was simple and I was nearly right in my first guess. I forgot to include the ?Externals? folder in the files and folders encapsulated by the PC installer maker. I suppose I live too much in the Mac world. The live program looks for an ?Externals? folder in its immediate vicinity and if it doesn?t find one, or the contents are wrong, it very sensible reports an error. It would be better if the error was ?can?t find Externals folder? rather than ?can?t find tsNet?, but that?s a weak excuse on my part. There you go - deployment stumbling block number 42, I suppose. Graham > On 15 Mar 2018, at 16:47, Graham Samuel via use-livecode wrote: > > I have a LiveCode standalone running as PC app (a .exe file, plus some other files which are needed when it runs). If I simply run the original standalone on Windows 7 (OK, running under Parallels on a Mac), it all just works. If I create an installer for the program and its dependent files using Inno Setup, the whole thing appears to run smoothly, but when I run the installed version of the app (which is exactly the same size as the original standalone, as expected), I get an error from the LC engine ?Initialization Error: Failed to load external: tsNet?. I suppose I have somehow failed to include tsNet, but it was specifically included in the standalone (as ?internet?) and anyway the original standalone works. > > Should I somehow be giving my installed app a path to the LC externals? I?m confused. > > 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 iphonelagi at gmail.com Fri Mar 16 06:36:57 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 16 Mar 2018 10:36:57 +0000 Subject: 9.0.0 RC-1 Hard crash still persists In-Reply-To: <4785B562-9C3C-4CDC-8C18-1D4F011895CA@dsa-net.dk> References: <4785B562-9C3C-4CDC-8C18-1D4F011895CA@dsa-net.dk> Message-ID: Hi Just tested this in LC 9 dp11 and RC-1 on a group of 20 different objects - works perfectly although how much time it saves pressing CTRL-R instead of clicking edit group I don't know. I never knew CTRL-R existed. Anyway as Bob intimated it's your "system" whether the stack, plugins or Solitaire running in the background ;-) Test it on brand new stack and get back to us - always useful to know. Regards Lagi On 15 March 2018 at 08:33, Michael Kristensen via use-livecode wrote: > Hi there > > (Mac 10.11.6) > > I have grouped items in a group. > > I press Command R to edit the big group. > > Then I hover mouse over one of the subgroups and Option-Command-click to acces the script. > > Then Hard crash > > Only Force Quit Livecode will let me out > > > Mic > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iphonelagi at gmail.com Fri Mar 16 07:13:02 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 16 Mar 2018 11:13:02 +0000 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> Message-ID: Maybe not 100% reliable but .... https://stackoverflow.com/questions/1341089/using-meta-tags-to-turn-off-caching-in-all-browsers Regards Lagi On 16 March 2018 at 09:48, Charles Warwick via use-livecode wrote: > Hi Tom, > > If the site you are trying to contact has CORS enabled appropriately, then you can do something like this... > > With the LiveCode browser widget, you can call JavaScript functions from LC script and have the JavaScript functions call LC handlers in return. JavaScript has the capability to perform asynchronous HTTP requests. > > You can create a HTML page that you automatically load up in the browser widget that has a small JavaScript function which you can call from LC with ?do in widget?. All this function needs to do is issue an asynchronous HTTP call to the URL passed to it as a parameter and when it receives the data, return it back to your LC script by calling a nominated LC handler and passing the returned data as a parameter. > > The HTML page would look something like this: > > > > Javascript Async Test > > > > > > > You can either load that from a file into the browser widget?s URL or set its htmlText property accordingly... > > Then in LC, make sure you register the httpRequestComplete handler so that the widget can call it: > > set the javascriptHandlers of widget ?browser? to ?httpRequestComplete? > > After that, add a httpRequestComplete handler to the card script to handle the returned data: > > on httpRequestComplete pUrl, pData > ? pUrl will be the URL requested > ? pData will be the data returned from the URL requested > end httpRequestComplete > > Lastly, make your async requests.... > > do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? > > Since the JavaScript in the browser widget is issuing the requests and sending the data back to LC, it doesn?t need to display anything related to it in the browser widget itself - it can be a blank canvas. > > Just be aware that the browser widget can cache URLs and there is no easy way (that I know of?) in LC to clear the browser?s cache... so if you see very quick responses on a second or subsequent request to the same URL, it is likely pulling it all from the browser?s cache. > > Cheers, > > Charles > >>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode wrote: >>> >>> Great hints there Mike .... thanks alot. Luckily I'm desktop only right >>> now. >>> >>> It shouldn't be too long before I sit down to make something that I can >>> rely on and reuse in future projects. >>> >>> Might turn out I will have to hire someone to help which is cool too. >>> >>> It only has to be very simple..and does not need to match performance of >>> Tsnet. >>> >>> Anything more than 1 would be a great start. LOL. >>> >>> I will look into the libURL library and then try to guess which way I >>> should go my first attempt to hack this. >>> >>> I'll keep you guys posted on the progress..I think I need a name for this >>> little project. >>> >>> Thanks you >>> >>> Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Fri Mar 16 09:24:00 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 16 Mar 2018 09:24:00 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> Message-ID: Wow....I'm impressed....thats quite a hack Charles..I will study all this see how far I get..... Thank you gentlemen....you are Rockstars!! On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < use-livecode at lists.runrev.com> wrote: > Maybe not 100% reliable but .... > > https://stackoverflow.com/questions/1341089/using-meta- > tags-to-turn-off-caching-in-all-browsers > > Regards Lagi > > On 16 March 2018 at 09:48, Charles Warwick via use-livecode > wrote: > > Hi Tom, > > > > If the site you are trying to contact has CORS enabled appropriately, > then you can do something like this... > > > > With the LiveCode browser widget, you can call JavaScript functions from > LC script and have the JavaScript functions call LC handlers in return. > JavaScript has the capability to perform asynchronous HTTP requests. > > > > You can create a HTML page that you automatically load up in the browser > widget that has a small JavaScript function which you can call from LC with > ?do in widget?. All this function needs to do is issue an asynchronous > HTTP call to the URL passed to it as a parameter and when it receives the > data, return it back to your LC script by calling a nominated LC handler > and passing the returned data as a parameter. > > > > The HTML page would look something like this: > > > > > > > > Javascript Async Test > > > > > > > > > > > > > > You can either load that from a file into the browser widget?s URL or > set its htmlText property accordingly... > > > > Then in LC, make sure you register the httpRequestComplete handler so > that the widget can call it: > > > > set the javascriptHandlers of widget ?browser? to ?httpRequestComplete? > > > > After that, add a httpRequestComplete handler to the card script to > handle the returned data: > > > > on httpRequestComplete pUrl, pData > > ? pUrl will be the URL requested > > ? pData will be the data returned from the URL requested > > end httpRequestComplete > > > > Lastly, make your async requests.... > > > > do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? > > > > Since the JavaScript in the browser widget is issuing the requests and > sending the data back to LC, it doesn?t need to display anything related to > it in the browser widget itself - it can be a blank canvas. > > > > Just be aware that the browser widget can cache URLs and there is no > easy way (that I know of?) in LC to clear the browser?s cache... so if you > see very quick responses on a second or subsequent request to the same URL, > it is likely pulling it all from the browser?s cache. > > > > Cheers, > > > > Charles > > > >>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Great hints there Mike .... thanks alot. Luckily I'm desktop only > right > >>> now. > >>> > >>> It shouldn't be too long before I sit down to make something that I can > >>> rely on and reuse in future projects. > >>> > >>> Might turn out I will have to hire someone to help which is cool too. > >>> > >>> It only has to be very simple..and does not need to match performance > of > >>> Tsnet. > >>> > >>> Anything more than 1 would be a great start. LOL. > >>> > >>> I will look into the libURL library and then try to guess which way I > >>> should go my first attempt to hack this. > >>> > >>> I'll keep you guys posted on the progress..I think I need a name for > this > >>> little project. > >>> > >>> Thanks you > >>> > >>> Tom > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 16 09:31:26 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 16 Mar 2018 07:31:26 -0600 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> Message-ID: Another way around the cache problem is to use the #2 trick at the end of the url. Send each request with a pound and different number at the end of the url and it'll be seen as a new request thus doing an end run around the cache. Since it designates an inline anchor position on the page, it should have zero affect on the way the url functions. (unless things have changed, the associated anchor doesn't need to exist on the page) Thanks for the neat trick Charles. :) On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Wow....I'm impressed....thats quite a hack Charles..I will study all this > see how far I get..... > > Thank you gentlemen....you are Rockstars!! > > On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Maybe not 100% reliable but .... > > > > https://stackoverflow.com/questions/1341089/using-meta- > > tags-to-turn-off-caching-in-all-browsers > > > > Regards Lagi > > > > On 16 March 2018 at 09:48, Charles Warwick via use-livecode > > wrote: > > > Hi Tom, > > > > > > If the site you are trying to contact has CORS enabled appropriately, > > then you can do something like this... > > > > > > With the LiveCode browser widget, you can call JavaScript functions > from > > LC script and have the JavaScript functions call LC handlers in return. > > JavaScript has the capability to perform asynchronous HTTP requests. > > > > > > You can create a HTML page that you automatically load up in the > browser > > widget that has a small JavaScript function which you can call from LC > with > > ?do in widget?. All this function needs to do is issue an asynchronous > > HTTP call to the URL passed to it as a parameter and when it receives the > > data, return it back to your LC script by calling a nominated LC handler > > and passing the returned data as a parameter. > > > > > > The HTML page would look something like this: > > > > > > > > > > > > Javascript Async Test > > > > > > > > > > > > > > > > > > > > > You can either load that from a file into the browser widget?s URL or > > set its htmlText property accordingly... > > > > > > Then in LC, make sure you register the httpRequestComplete handler so > > that the widget can call it: > > > > > > set the javascriptHandlers of widget ?browser? to ?httpRequestComplete? > > > > > > After that, add a httpRequestComplete handler to the card script to > > handle the returned data: > > > > > > on httpRequestComplete pUrl, pData > > > ? pUrl will be the URL requested > > > ? pData will be the data returned from the URL requested > > > end httpRequestComplete > > > > > > Lastly, make your async requests.... > > > > > > do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? > > > > > > Since the JavaScript in the browser widget is issuing the requests and > > sending the data back to LC, it doesn?t need to display anything related > to > > it in the browser widget itself - it can be a blank canvas. > > > > > > Just be aware that the browser widget can cache URLs and there is no > > easy way (that I know of?) in LC to clear the browser?s cache... so if > you > > see very quick responses on a second or subsequent request to the same > URL, > > it is likely pulling it all from the browser?s cache. > > > > > > Cheers, > > > > > > Charles > > > > > >>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > >>> > > >>> Great hints there Mike .... thanks alot. Luckily I'm desktop only > > right > > >>> now. > > >>> > > >>> It shouldn't be too long before I sit down to make something that I > can > > >>> rely on and reuse in future projects. > > >>> > > >>> Might turn out I will have to hire someone to help which is cool too. > > >>> > > >>> It only has to be very simple..and does not need to match performance > > of > > >>> Tsnet. > > >>> > > >>> Anything more than 1 would be a great start. LOL. > > >>> > > >>> I will look into the libURL library and then try to guess which way I > > >>> should go my first attempt to hack this. > > >>> > > >>> I'll keep you guys posted on the progress..I think I need a name for > > this > > >>> little project. > > >>> > > >>> Thanks you > > >>> > > >>> Tom > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From michael-kristensen at dsa-net.dk Fri Mar 16 10:10:08 2018 From: michael-kristensen at dsa-net.dk (Michael Kristensen) Date: Fri, 16 Mar 2018 15:10:08 +0100 Subject: 9.0.0 RC-1 Hard crash still persists + New problem Message-ID: <4489F590-F2B4-4358-99B2-1B6A9BD1C2FA@dsa-net.dk> Hi Lagi I disabled all the extensions, one by one, in the Extensions Manager. I had the same result as before ?a hard crash. But apparently the Extensions Manager depends on the extensions themself, because now the Extension Manager is completely empty and I cant acces them to load them at startUp. I did re-install LC 9 rc1 again but the Extension Manager remains empty. The Project Browser is also empty. How can I reactivate the extensions? Thanks Mic From tom at makeshyft.com Fri Mar 16 10:12:57 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 16 Mar 2018 10:12:57 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> Message-ID: Yes Mike that is a helpful trick. On Fri, Mar 16, 2018 at 9:31 AM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > Another way around the cache problem is to use the #2 trick at the end of > the url. Send each request with a pound and different number at the end of > the url and it'll be seen as a new request thus doing an end run around the > cache. Since it designates an inline anchor position on the page, it > should have zero affect on the way the url functions. (unless things have > changed, the associated anchor doesn't need to exist on the page) > > Thanks for the neat trick Charles. :) > > On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Wow....I'm impressed....thats quite a hack Charles..I will study all this > > see how far I get..... > > > > Thank you gentlemen....you are Rockstars!! > > > > On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Maybe not 100% reliable but .... > > > > > > https://stackoverflow.com/questions/1341089/using-meta- > > > tags-to-turn-off-caching-in-all-browsers > > > > > > Regards Lagi > > > > > > On 16 March 2018 at 09:48, Charles Warwick via use-livecode > > > wrote: > > > > Hi Tom, > > > > > > > > If the site you are trying to contact has CORS enabled appropriately, > > > then you can do something like this... > > > > > > > > With the LiveCode browser widget, you can call JavaScript functions > > from > > > LC script and have the JavaScript functions call LC handlers in return. > > > JavaScript has the capability to perform asynchronous HTTP requests. > > > > > > > > You can create a HTML page that you automatically load up in the > > browser > > > widget that has a small JavaScript function which you can call from LC > > with > > > ?do in widget?. All this function needs to do is issue an > asynchronous > > > HTTP call to the URL passed to it as a parameter and when it receives > the > > > data, return it back to your LC script by calling a nominated LC > handler > > > and passing the returned data as a parameter. > > > > > > > > The HTML page would look something like this: > > > > > > > > > > > > > > > > Javascript Async Test > > > > > > > > > > > > > > > > > > > > > > > > > > > > You can either load that from a file into the browser widget?s URL or > > > set its htmlText property accordingly... > > > > > > > > Then in LC, make sure you register the httpRequestComplete handler so > > > that the widget can call it: > > > > > > > > set the javascriptHandlers of widget ?browser? to > ?httpRequestComplete? > > > > > > > > After that, add a httpRequestComplete handler to the card script to > > > handle the returned data: > > > > > > > > on httpRequestComplete pUrl, pData > > > > ? pUrl will be the URL requested > > > > ? pData will be the data returned from the URL requested > > > > end httpRequestComplete > > > > > > > > Lastly, make your async requests.... > > > > > > > > do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? > > > > > > > > Since the JavaScript in the browser widget is issuing the requests > and > > > sending the data back to LC, it doesn?t need to display anything > related > > to > > > it in the browser widget itself - it can be a blank canvas. > > > > > > > > Just be aware that the browser widget can cache URLs and there is no > > > easy way (that I know of?) in LC to clear the browser?s cache... so if > > you > > > see very quick responses on a second or subsequent request to the same > > URL, > > > it is likely pulling it all from the browser?s cache. > > > > > > > > Cheers, > > > > > > > > Charles > > > > > > > >>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > >>> > > > >>> Great hints there Mike .... thanks alot. Luckily I'm desktop only > > > right > > > >>> now. > > > >>> > > > >>> It shouldn't be too long before I sit down to make something that I > > can > > > >>> rely on and reuse in future projects. > > > >>> > > > >>> Might turn out I will have to hire someone to help which is cool > too. > > > >>> > > > >>> It only has to be very simple..and does not need to match > performance > > > of > > > >>> Tsnet. > > > >>> > > > >>> Anything more than 1 would be a great start. LOL. > > > >>> > > > >>> I will look into the libURL library and then try to guess which > way I > > > >>> should go my first attempt to hack this. > > > >>> > > > >>> I'll keep you guys posted on the progress..I think I need a name > for > > > this > > > >>> little project. > > > >>> > > > >>> Thanks you > > > >>> > > > >>> Tom > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Fri Mar 16 10:26:45 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 16 Mar 2018 14:26:45 +0000 Subject: 9.0.0 RC-1 Hard crash still persists + New problem In-Reply-To: <4489F590-F2B4-4358-99B2-1B6A9BD1C2FA@dsa-net.dk> References: <4489F590-F2B4-4358-99B2-1B6A9BD1C2FA@dsa-net.dk> Message-ID: Hi Michael, I think Bob and Lagi suggested to remove any *custom* Extensions and Plugins you have in the "Documents/My LiveCode" folder, not to disable the LC built-in extensions. If this does not help, I would suggest you try removing your Prefs, as maybe they have been corrupted, and this can cause unexpected behavior. To remove your prefs: 1. Quit LiveCode 2. Navigate to /Users//Library/Preferences/RunRev/ folder You should see one or two files there: livecode.rev --> Prefs for LiveCode versions < 7 livecode7.rev --> Prefs for LiveCode 7, 8 and 9 3. Remove those 2 files from this folder. You can trash them, or just put them in a different folder. Those files will be re-generated once you start LiveCode again. 4. Open LiveCode again. Now all the preferences will have been reset to defaults (you should see a gray backdrop) 5. Test again if you still can reproduce the crash. If yes, then please file a bug report at quality.livecode.com, and make sure you include a sample stack that demonstrates the problem. Kind regards, Panos -- On Fri, Mar 16, 2018 at 2:10 PM, Michael Kristensen via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Lagi > > I disabled all the extensions, one by one, in the Extensions Manager. > > I had the same result as before ?a hard crash. > > > But apparently the Extensions Manager depends on the extensions themself, > because now the Extension Manager is completely empty and I cant acces them > to load them at startUp. > > I did re-install LC 9 rc1 again but the Extension Manager remains empty. > The Project Browser is also empty. > > How can I reactivate the extensions? > > Thanks > Mic > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Mar 16 10:36:34 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Mar 2018 14:36:34 +0000 Subject: Dash LiveCode Docset and "Make Docset" stack updated In-Reply-To: <0480337D-48C2-469E-969B-3EFDCA20E1A9@thehales.id.au> References: <0480337D-48C2-469E-969B-3EFDCA20E1A9@thehales.id.au> Message-ID: <0AA8C457-756E-45A9-B85F-E3226C712640@iotecdigital.com> Thanks James. I was thinking along the lines of an app we use here called DocRecord by Prism. An entry in the database is actually a collection of any kind of document you can read from the file system. So for example, everything related to the sale and installation of a copier, the proposal, contract, lease, site survey etc. are all a part of a collection. Adobe has their own device for this, but so far as I know only accept PDFs. Bob S > On Mar 15, 2018, at 21:00 , James At The Hale via use-livecode wrote: > > Bob asked: >> Interesting. I'm curious if this can be used to combine multiple PDF documents into a DocSet. > > > If you are asking if a Dash Docset can be made from pdf?s I think the answer is no. > See...https://kapeli.com/docsets > > In the ?Make Docset? stack I am using the html files contained in the documentation directory within LiveCode. These are the files that appear when you click on the ?Guide? tab in LC?s dictionary. Within Dash they appear when you select the LiveCode document set or any of the keyword headers. > The actual entries come from the stored arrays in the dictionary sqlite database reformatted to html. > > No pdf?s were harmed or even looked at in any way. > > If you wanted to use pdf?s to make a dash docset, I think you would nee to convert the pdf?s to html. > > James From bobsneidar at iotecdigital.com Fri Mar 16 10:42:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Mar 2018 14:42:38 +0000 Subject: 9.0.0 RC-1 Hard crash still persists + New problem In-Reply-To: References: <4489F590-F2B4-4358-99B2-1B6A9BD1C2FA@dsa-net.dk> Message-ID: <14C6129A-9002-4484-9966-85163AA58614@iotecdigital.com> For testing purposes I just move all the extensions to a disable folder. Bob S > On Mar 16, 2018, at 07:26 , panagiotis merakos via use-livecode wrote: > > Hi Michael, > > I think Bob and Lagi suggested to remove any *custom* Extensions and > Plugins you have in the "Documents/My LiveCode" folder, not to disable the > LC built-in extensions. From harrison at all-auctions.com Fri Mar 16 10:53:44 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 16 Mar 2018 10:53:44 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> Message-ID: <1F77A54A-AD9D-4805-97A7-D1230E5D13DD@all-auctions.com> Hi Mike, I am finding that Safari is not honoring the meta tag to turn off caching. I thought I would give your method a try. I?m not sure I am doing it right though because that isn?t working either. (Firefox does everything properly.) I was thinking from your description that it would look something like: http://www.yourwebsite.com/coolpage.lc#48432 Is the above example of what you are discussing correct? If not could you please post an example? Thanks, Rick > On Mar 16, 2018, at 9:31 AM, Mike Bonner via use-livecode wrote: > > Another way around the cache problem is to use the #2 trick at the end of > the url. Send each request with a pound and different number at the end of > the url and it'll be seen as a new request thus doing an end run around the > cache. Since it designates an inline anchor position on the page, it > should have zero affect on the way the url functions. (unless things have > changed, the associated anchor doesn't need to exist on the page) > > Thanks for the neat trick Charles. :) > > On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Wow....I'm impressed....thats quite a hack Charles..I will study all this >> see how far I get..... >> >> Thank you gentlemen....you are Rockstars!! >> >> On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Maybe not 100% reliable but .... >>> >>> https://stackoverflow.com/questions/1341089/using-meta- >>> tags-to-turn-off-caching-in-all-browsers >>> >>> Regards Lagi >>> >>> On 16 March 2018 at 09:48, Charles Warwick via use-livecode >>> wrote: >>>> Hi Tom, >>>> >>>> If the site you are trying to contact has CORS enabled appropriately, >>> then you can do something like this... >>>> >>>> With the LiveCode browser widget, you can call JavaScript functions >> from >>> LC script and have the JavaScript functions call LC handlers in return. >>> JavaScript has the capability to perform asynchronous HTTP requests. >>>> >>>> You can create a HTML page that you automatically load up in the >> browser >>> widget that has a small JavaScript function which you can call from LC >> with >>> ?do in widget?. All this function needs to do is issue an asynchronous >>> HTTP call to the URL passed to it as a parameter and when it receives the >>> data, return it back to your LC script by calling a nominated LC handler >>> and passing the returned data as a parameter. >>>> >>>> The HTML page would look something like this: >>>> >>>> >>>> >>>> Javascript Async Test >>>> >>>> >>>> >>>> >>>> >>>> >>>> You can either load that from a file into the browser widget?s URL or >>> set its htmlText property accordingly... >>>> >>>> Then in LC, make sure you register the httpRequestComplete handler so >>> that the widget can call it: >>>> >>>> set the javascriptHandlers of widget ?browser? to ?httpRequestComplete? >>>> >>>> After that, add a httpRequestComplete handler to the card script to >>> handle the returned data: >>>> >>>> on httpRequestComplete pUrl, pData >>>> ? pUrl will be the URL requested >>>> ? pData will be the data returned from the URL requested >>>> end httpRequestComplete >>>> >>>> Lastly, make your async requests.... >>>> >>>> do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? >>>> >>>> Since the JavaScript in the browser widget is issuing the requests and >>> sending the data back to LC, it doesn?t need to display anything related >> to >>> it in the browser widget itself - it can be a blank canvas. >>>> >>>> Just be aware that the browser widget can cache URLs and there is no >>> easy way (that I know of?) in LC to clear the browser?s cache... so if >> you >>> see very quick responses on a second or subsequent request to the same >> URL, >>> it is likely pulling it all from the browser?s cache. >>>> >>>> Cheers, >>>> >>>> Charles >>>> >>>>>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Great hints there Mike .... thanks alot. Luckily I'm desktop only >>> right >>>>>> now. >>>>>> >>>>>> It shouldn't be too long before I sit down to make something that I >> can >>>>>> rely on and reuse in future projects. >>>>>> >>>>>> Might turn out I will have to hire someone to help which is cool too. >>>>>> >>>>>> It only has to be very simple..and does not need to match performance >>> of >>>>>> Tsnet. >>>>>> >>>>>> Anything more than 1 would be a great start. LOL. >>>>>> >>>>>> I will look into the libURL library and then try to guess which way I >>>>>> should go my first attempt to hack this. >>>>>> >>>>>> I'll keep you guys posted on the progress..I think I need a name for >>> this >>>>>> little project. >>>>>> >>>>>> Thanks you >>>>>> >>>>>> Tom >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 16 11:31:17 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 16 Mar 2018 09:31:17 -0600 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: <1F77A54A-AD9D-4805-97A7-D1230E5D13DD@all-auctions.com> References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> <1F77A54A-AD9D-4805-97A7-D1230E5D13DD@all-auctions.com> Message-ID: Yeah, thats what I was talking about, but I never tried it with safari i'm afraid. Sounds like something funky with safari, though i'm not sure why my method wouldn't work unless safari is smart enough now to recognize an inline link and NOT treat it as a new URL to cache. If this is only for your personal use, you can disable caching on safari as described here: https://www.technipages.com/apple-safari-completely- disable-cache If you have safari 11, check here instead to disable cache: https://stackoverflow.com/questions/46324675/how-do- i-disable-cache-in-safari-11-0 If this is for an app being shipped though thats not a solution. You said firefox works fine, so i'm guessing you don't have some type of caching proxy between you and the server. Either way, from what I've been reading just now, rather than using meta tags, you're more likely to get the desired result if you set the headers directly. One way to do this would be with an .htaccess file. https://stackoverflow.com/questions/11532636/how-to-prevent-http-file-caching-in-apache-httpd-mamp You'd need to add .lc to the filesmatch so that they're not cached. Hopefully the correct module is installed. If it isn't, while I've never done it, I believe you can set the headers to return using lc in your server script (assuming you're using lc.) I know php can. If you're using something other than apache of course, ignore the above. On Fri, Mar 16, 2018 at 8:53 AM, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike, > > I am finding that Safari is not honoring > the meta tag to turn off caching. I thought > I would give your method a try. I?m not > sure I am doing it right though because > that isn?t working either. > > (Firefox does everything properly.) > > I was thinking from your description that > it would look something like: > > http://www.yourwebsite.com/coolpage.lc#48432 coolpage.lc#48432> > > Is the above example of what you are discussing > correct? If not could you please post an example? > > Thanks, > > Rick > > > On Mar 16, 2018, at 9:31 AM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Another way around the cache problem is to use the #2 trick at the end of > > the url. Send each request with a pound and different number at the end > of > > the url and it'll be seen as a new request thus doing an end run around > the > > cache. Since it designates an inline anchor position on the page, it > > should have zero affect on the way the url functions. (unless things > have > > changed, the associated anchor doesn't need to exist on the page) > > > > Thanks for the neat trick Charles. :) > > > > On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Wow....I'm impressed....thats quite a hack Charles..I will study all > this > >> see how far I get..... > >> > >> Thank you gentlemen....you are Rockstars!! > >> > >> On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> Maybe not 100% reliable but .... > >>> > >>> https://stackoverflow.com/questions/1341089/using-meta- > >>> tags-to-turn-off-caching-in-all-browsers > >>> > >>> Regards Lagi > >>> > >>> On 16 March 2018 at 09:48, Charles Warwick via use-livecode > >>> wrote: > >>>> Hi Tom, > >>>> > >>>> If the site you are trying to contact has CORS enabled appropriately, > >>> then you can do something like this... > >>>> > >>>> With the LiveCode browser widget, you can call JavaScript functions > >> from > >>> LC script and have the JavaScript functions call LC handlers in return. > >>> JavaScript has the capability to perform asynchronous HTTP requests. > >>>> > >>>> You can create a HTML page that you automatically load up in the > >> browser > >>> widget that has a small JavaScript function which you can call from LC > >> with > >>> ?do in widget?. All this function needs to do is issue an > asynchronous > >>> HTTP call to the URL passed to it as a parameter and when it receives > the > >>> data, return it back to your LC script by calling a nominated LC > handler > >>> and passing the returned data as a parameter. > >>>> > >>>> The HTML page would look something like this: > >>>> > >>>> > >>>> > >>>> Javascript Async Test > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> You can either load that from a file into the browser widget?s URL or > >>> set its htmlText property accordingly... > >>>> > >>>> Then in LC, make sure you register the httpRequestComplete handler so > >>> that the widget can call it: > >>>> > >>>> set the javascriptHandlers of widget ?browser? to > ?httpRequestComplete? > >>>> > >>>> After that, add a httpRequestComplete handler to the card script to > >>> handle the returned data: > >>>> > >>>> on httpRequestComplete pUrl, pData > >>>> ? pUrl will be the URL requested > >>>> ? pData will be the data returned from the URL requested > >>>> end httpRequestComplete > >>>> > >>>> Lastly, make your async requests.... > >>>> > >>>> do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? > >>>> > >>>> Since the JavaScript in the browser widget is issuing the requests and > >>> sending the data back to LC, it doesn?t need to display anything > related > >> to > >>> it in the browser widget itself - it can be a blank canvas. > >>>> > >>>> Just be aware that the browser widget can cache URLs and there is no > >>> easy way (that I know of?) in LC to clear the browser?s cache... so if > >> you > >>> see very quick responses on a second or subsequent request to the same > >> URL, > >>> it is likely pulling it all from the browser?s cache. > >>>> > >>>> Cheers, > >>>> > >>>> Charles > >>>> > >>>>>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>>>>> > >>>>>> Great hints there Mike .... thanks alot. Luckily I'm desktop only > >>> right > >>>>>> now. > >>>>>> > >>>>>> It shouldn't be too long before I sit down to make something that I > >> can > >>>>>> rely on and reuse in future projects. > >>>>>> > >>>>>> Might turn out I will have to hire someone to help which is cool > too. > >>>>>> > >>>>>> It only has to be very simple..and does not need to match > performance > >>> of > >>>>>> Tsnet. > >>>>>> > >>>>>> Anything more than 1 would be a great start. LOL. > >>>>>> > >>>>>> I will look into the libURL library and then try to guess which way > I > >>>>>> should go my first attempt to hack this. > >>>>>> > >>>>>> I'll keep you guys posted on the progress..I think I need a name for > >>> this > >>>>>> little project. > >>>>>> > >>>>>> Thanks you > >>>>>> > >>>>>> Tom > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >>> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Fri Mar 16 11:40:30 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 16 Mar 2018 11:40:30 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> <1F77A54A-AD9D-4805-97A7-D1230E5D13DD@all-auctions.com> Message-ID: this solution has to work flawlessly in production on all 3 desktop platforms. I'm giving a shot to modifying LibURL..... I wish I knew why the limit is in there to begin with, that would help to know if I am wasting my time or not. Realistically if it was as easy as just hacking that code, someone would have done it already. Its fun anyways....I have to solve this.......even if I speed it up just a little bit ...... Its not an emergency situation so its a fun problem to think about until its solved. some good ideas from you guys.... thanks everyone On Fri, Mar 16, 2018 at 11:31 AM, Mike Bonner via use-livecode < use-livecode at lists.runrev.com> wrote: > Yeah, thats what I was talking about, but I never tried it with safari i'm > afraid. Sounds like something funky with safari, though i'm not sure why my > method wouldn't work unless safari is smart enough now to recognize an > inline link and NOT treat it as a new URL to cache. > > If this is only for your personal use, you can disable caching on safari as > described here: https://www.technipages.com/apple-safari-completely- > disable-cache > If you have safari 11, check here instead to disable cache: > https://stackoverflow.com/questions/46324675/how-do- > i-disable-cache-in-safari-11-0 > > If this is for an app being shipped though thats not a solution. You said > firefox works fine, so i'm guessing you don't have some type of caching > proxy between you and the server. Either way, from what I've been reading > just now, rather than using meta tags, you're more likely to get the > desired result if you set the headers directly. One way to do this would > be with an .htaccess file. > https://stackoverflow.com/questions/11532636/how-to- > prevent-http-file-caching-in-apache-httpd-mamp > You'd need to add .lc to the filesmatch so that they're not cached. > > Hopefully the correct module is installed. If it isn't, while I've never > done it, I believe you can set the headers to return using lc in your > server script (assuming you're using lc.) I know php can. If you're using > something other than apache of course, ignore the above. > > On Fri, Mar 16, 2018 at 8:53 AM, Rick Harrison via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi Mike, > > > > I am finding that Safari is not honoring > > the meta tag to turn off caching. I thought > > I would give your method a try. I?m not > > sure I am doing it right though because > > that isn?t working either. > > > > (Firefox does everything properly.) > > > > I was thinking from your description that > > it would look something like: > > > > http://www.yourwebsite.com/coolpage.lc#48432 < > http://www.yourwebsite.com/ > > coolpage.lc#48432> > > > > Is the above example of what you are discussing > > correct? If not could you please post an example? > > > > Thanks, > > > > Rick > > > > > On Mar 16, 2018, at 9:31 AM, Mike Bonner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Another way around the cache problem is to use the #2 trick at the end > of > > > the url. Send each request with a pound and different number at the > end > > of > > > the url and it'll be seen as a new request thus doing an end run around > > the > > > cache. Since it designates an inline anchor position on the page, it > > > should have zero affect on the way the url functions. (unless things > > have > > > changed, the associated anchor doesn't need to exist on the page) > > > > > > Thanks for the neat trick Charles. :) > > > > > > On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > >> Wow....I'm impressed....thats quite a hack Charles..I will study all > > this > > >> see how far I get..... > > >> > > >> Thank you gentlemen....you are Rockstars!! > > >> > > >> On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < > > >> use-livecode at lists.runrev.com> wrote: > > >> > > >>> Maybe not 100% reliable but .... > > >>> > > >>> https://stackoverflow.com/questions/1341089/using-meta- > > >>> tags-to-turn-off-caching-in-all-browsers > > >>> > > >>> Regards Lagi > > >>> > > >>> On 16 March 2018 at 09:48, Charles Warwick via use-livecode > > >>> wrote: > > >>>> Hi Tom, > > >>>> > > >>>> If the site you are trying to contact has CORS enabled > appropriately, > > >>> then you can do something like this... > > >>>> > > >>>> With the LiveCode browser widget, you can call JavaScript functions > > >> from > > >>> LC script and have the JavaScript functions call LC handlers in > return. > > >>> JavaScript has the capability to perform asynchronous HTTP requests. > > >>>> > > >>>> You can create a HTML page that you automatically load up in the > > >> browser > > >>> widget that has a small JavaScript function which you can call from > LC > > >> with > > >>> ?do in widget?. All this function needs to do is issue an > > asynchronous > > >>> HTTP call to the URL passed to it as a parameter and when it receives > > the > > >>> data, return it back to your LC script by calling a nominated LC > > handler > > >>> and passing the returned data as a parameter. > > >>>> > > >>>> The HTML page would look something like this: > > >>>> > > >>>> > > >>>> > > >>>> Javascript Async Test > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> You can either load that from a file into the browser widget?s URL > or > > >>> set its htmlText property accordingly... > > >>>> > > >>>> Then in LC, make sure you register the httpRequestComplete handler > so > > >>> that the widget can call it: > > >>>> > > >>>> set the javascriptHandlers of widget ?browser? to > > ?httpRequestComplete? > > >>>> > > >>>> After that, add a httpRequestComplete handler to the card script to > > >>> handle the returned data: > > >>>> > > >>>> on httpRequestComplete pUrl, pData > > >>>> ? pUrl will be the URL requested > > >>>> ? pData will be the data returned from the URL requested > > >>>> end httpRequestComplete > > >>>> > > >>>> Lastly, make your async requests.... > > >>>> > > >>>> do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? > > >>>> > > >>>> Since the JavaScript in the browser widget is issuing the requests > and > > >>> sending the data back to LC, it doesn?t need to display anything > > related > > >> to > > >>> it in the browser widget itself - it can be a blank canvas. > > >>>> > > >>>> Just be aware that the browser widget can cache URLs and there is no > > >>> easy way (that I know of?) in LC to clear the browser?s cache... so > if > > >> you > > >>> see very quick responses on a second or subsequent request to the > same > > >> URL, > > >>> it is likely pulling it all from the browser?s cache. > > >>>> > > >>>> Cheers, > > >>>> > > >>>> Charles > > >>>> > > >>>>>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < > > >>> use-livecode at lists.runrev.com> wrote: > > >>>>>> > > >>>>>> Great hints there Mike .... thanks alot. Luckily I'm desktop only > > >>> right > > >>>>>> now. > > >>>>>> > > >>>>>> It shouldn't be too long before I sit down to make something that > I > > >> can > > >>>>>> rely on and reuse in future projects. > > >>>>>> > > >>>>>> Might turn out I will have to hire someone to help which is cool > > too. > > >>>>>> > > >>>>>> It only has to be very simple..and does not need to match > > performance > > >>> of > > >>>>>> Tsnet. > > >>>>>> > > >>>>>> Anything more than 1 would be a great start. LOL. > > >>>>>> > > >>>>>> I will look into the libURL library and then try to guess which > way > > I > > >>>>>> should go my first attempt to hack this. > > >>>>>> > > >>>>>> I'll keep you guys posted on the progress..I think I need a name > for > > >>> this > > >>>>>> little project. > > >>>>>> > > >>>>>> Thanks you > > >>>>>> > > >>>>>> Tom > > >>>> _______________________________________________ > > >>>> use-livecode mailing list > > >>>> use-livecode at lists.runrev.com > > >>>> Please visit this url to subscribe, unsubscribe and manage your > > >>> subscription preferences: > > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > > >>> > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode at lists.runrev.com > > >>> Please visit this url to subscribe, unsubscribe and manage your > > >>> subscription preferences: > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > > >>> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at lists.runrev.com > > >> Please visit this url to subscribe, unsubscribe and manage your > > >> subscription preferences: > > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > >> > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From michael-kristensen at dsa-net.dk Fri Mar 16 12:13:48 2018 From: michael-kristensen at dsa-net.dk (Michael Kristensen) Date: Fri, 16 Mar 2018 17:13:48 +0100 Subject: 9.0.0 RC-1 Hard crash still persists + New problem Message-ID: Hi again Thanks for the answers! Deleted the prefs files. Crash persist. As a side note Command-E opens the script fine. Problem with Extension Manager: This is a picture of my Extension Manager https://www.dropbox.com/s/vjtsy4agfauwol7/Sk%C3%A6rmbillede%202018-03-16%20kl.%2017.05.41.png?dl=0 How do I get the extensions back? Michael From ludovic.thebault at laposte.net Fri Mar 16 12:41:50 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 16 Mar 2018 17:41:50 +0100 Subject: App rejected because of camera permission modal alert! In-Reply-To: <006f01d3bb0f$5315af70$f9410e50$@net> References: <006801d3bb0b$06645770$132d0650$@net> <006f01d3bb0f$5315af70$f9410e50$@net> Message-ID: > Le 13 mars 2018 ? 22:07, Ralph DiMola via use-livecode a ?crit : > > Hey William, > > > > OK, I see the problem. This will require you to modify the plist files in the LiveCode app bundle. > Hello, My app was also rejected for localization permission. That?s new from Apple. PS : I hope a future version of livecode will save all changes to plist files and android.xml manifests to keep them with each update. From ludovic.thebault at laposte.net Fri Mar 16 12:49:10 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 16 Mar 2018 17:49:10 +0100 Subject: App rejected because of location permission modal alert! In-Reply-To: References: <006801d3bb0b$06645770$132d0650$@net> <006f01d3bb0f$5315af70$f9410e50$@net> Message-ID: <1A39BE90-662F-4164-ACB8-7A765503860C@laposte.net> > Le 16 mars 2018 ? 17:41, Ludovic THEBAULT via use-livecode a ?crit : > > > My app was also rejected for localization permission. > But in the settings.plist file there is no reference to localion?. Can I add these lines : NSLocationWhenInUseUsageDescription This application requires access to Location because ? Thanks ! From MikeKerner at roadrunner.com Fri Mar 16 12:50:28 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 16 Mar 2018 12:50:28 -0400 Subject: 9.0.0 RC-1 Hard crash still persists + New problem In-Reply-To: References: Message-ID: I've got a completely different weird issue. On one machine all's well and everything seems happy (2017 MBP) On another (2011 mini), when I open LC, I get a weird grey/black box in the top left corner of the screen that almost looks like a mini version of the LC splash screen (but is so compressed that I can't tell for sure). I am unable to open any stacks as this is the only window that will show. All other versions of LC on this machine work as expected. In the Development menu, the only menuitem is "true" On Fri, Mar 16, 2018 at 12:13 PM, Michael Kristensen via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi again > Thanks for the answers! > > > > Deleted the prefs files. > > Crash persist. > > As a side note Command-E opens the script fine. > > > > Problem with Extension Manager: > > This is a picture of my Extension Manager > https://www.dropbox.com/s/vjtsy4agfauwol7/Sk%C3% > A6rmbillede%202018-03-16%20kl.%2017.05.41.png?dl=0 < > https://www.dropbox.com/s/vjtsy4agfauwol7/Sk%C3% > A6rmbillede%202018-03-16%20kl.%2017.05.41.png?dl=0> > > > How do I get the extensions back? > > > > Michael > _______________________________________________ > use-livecode mailing list > use-livecode 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 merakosp at gmail.com Fri Mar 16 12:52:34 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 16 Mar 2018 16:52:34 +0000 Subject: App rejected because of location permission modal alert! In-Reply-To: <1A39BE90-662F-4164-ACB8-7A765503860C@laposte.net> References: <006801d3bb0b$06645770$132d0650$@net> <006f01d3bb0f$5315af70$f9410e50$@net> <1A39BE90-662F-4164-ACB8-7A765503860C@laposte.net> Message-ID: Hi Ludovic, For changing the location-related description in the plist, see comment 11 in this report: http://quality.livecode.com/show_bug.cgi?id=19780 Best, Panos -- On Fri, Mar 16, 2018 at 4:49 PM, Ludovic THEBAULT via use-livecode < use-livecode at lists.runrev.com> wrote: > > > Le 16 mars 2018 ? 17:41, Ludovic THEBAULT via use-livecode < > use-livecode at lists.runrev.com> a ?crit : > > > > > > My app was also rejected for localization permission. > > > > But in the settings.plist file there is no reference to localion?. > > Can I add these lines : > > NSLocationWhenInUseUsageDescription > This application requires access to Location because > ? > > Thanks ! > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Fri Mar 16 12:54:26 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 16 Mar 2018 16:54:26 +0000 Subject: 9.0.0 RC-1 Hard crash still persists + New problem In-Reply-To: References: Message-ID: Hi Mike, Yes, a few other people had this problem. See http://quality.livecode.com/show_bug.cgi?id=21067 for a workaround Best, Panos -- On Fri, Mar 16, 2018 at 4:50 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > I've got a completely different weird issue. > On one machine all's well and everything seems happy (2017 MBP) > On another (2011 mini), when I open LC, I get a weird grey/black box in the > top left corner of the screen that almost looks like a mini version of the > LC splash screen (but is so compressed that I can't tell for sure). > I am unable to open any stacks as this is the only window that will show. > All other versions of LC on this machine work as expected. > In the Development menu, the only menuitem is "true" > > On Fri, Mar 16, 2018 at 12:13 PM, Michael Kristensen via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi again > > Thanks for the answers! > > > > > > > > Deleted the prefs files. > > > > Crash persist. > > > > As a side note Command-E opens the script fine. > > > > > > > > Problem with Extension Manager: > > > > This is a picture of my Extension Manager > > https://www.dropbox.com/s/vjtsy4agfauwol7/Sk%C3% > > A6rmbillede%202018-03-16%20kl.%2017.05.41.png?dl=0 < > > https://www.dropbox.com/s/vjtsy4agfauwol7/Sk%C3% > > A6rmbillede%202018-03-16%20kl.%2017.05.41.png?dl=0> > > > > > > How do I get the extensions back? > > > > > > > > Michael > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ludovic.thebault at laposte.net Fri Mar 16 12:54:57 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 16 Mar 2018 17:54:57 +0100 Subject: App rejected because of location permission modal alert! In-Reply-To: References: <006801d3bb0b$06645770$132d0650$@net> <006f01d3bb0f$5315af70$f9410e50$@net> <1A39BE90-662F-4164-ACB8-7A765503860C@laposte.net> Message-ID: > Le 16 mars 2018 ? 17:52, panagiotis merakos via use-livecode a ?crit : > > Hi Ludovic, > > For changing the location-related description in the plist, see comment 11 > in this report: > > http://quality.livecode.com/show_bug.cgi?id=19780 > > Best, > Panos > ? Thanks ! From jacque at hyperactivesw.com Fri Mar 16 12:58:52 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 16 Mar 2018 11:58:52 -0500 Subject: App rejected because of camera permission modal alert! In-Reply-To: References: <006801d3bb0b$06645770$132d0650$@net> <006f01d3bb0f$5315af70$f9410e50$@net> Message-ID: <1622fbff0f8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> You can put customized copies of the manifest into the Copy Files pane of the standalone settings and it will override the default. I think it should work with plist files too. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 16, 2018 11:43:41 AM Ludovic THEBAULT via use-livecode wrote: . PS : I hope a future version of livecode will save all changes to plist files and android.xml manifests to keep them with each update From rdimola at evergreeninfo.net Fri Mar 16 13:09:38 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 16 Mar 2018 13:09:38 -0400 Subject: App rejected because of camera permission modal alert! In-Reply-To: References: <006801d3bb0b$06645770$132d0650$@net> <006f01d3bb0f$5315af70$f9410e50$@net> Message-ID: <007201d3bd49$9399aa60$baccff20$@net> No problem William. Congrats! I filed a QCC report on this http://quality.livecode.com/show_bug.cgi?id=21083 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From: William de Smet [mailto:williamdesmet at gmail.com] Sent: Friday, March 16, 2018 5:35 AM To: Ralph DiMola Subject: Re: App rejected because of camera permission modal alert! Thanks Ralph! This worked. Apple approved my app is now available in the App Store: https://itunes.apple.com/us/app/fotopuzzel-voor-ipad/id1358293879?l=nl greetings, William 2018-03-13 22:07 GMT+01:00 Ralph DiMola : Hey William, OK, I see the problem. This will require you to modify the plist files in the LiveCode app bundle. 1) Go to the Applications folder 2) Right click on the LC app version you are using and select "Show Package Contents" 3) Navigate to the "Tools/Runtime/iOS" folder 4) Right click on all the device/simulator folders one at a time and select "Get Info" 5) At the bottom click on the "Read only" to the right of your account name and select "Read & Write" 6) Repeat 5 for all device/simulator folders 7) In each of the device/simulator folders edit the setting.plist file. 8) To edit... right click the setting.plist file and select "Open With" and then "Other..." and select "TextEdit.app". 9) You will get a warning that the file is locked. Choose the Unlock option. 10) Change the for the key to be more specific to your application. You might be able to make this generic enough for all your applications. If not then you will have to change this for each app before submitting it for review. 11) repeat 8-10 for setting.plist in each of the device/simulator folders. 12) Fire up LC and make an iOS app and submit it. I would suggest you submit a QCC Bug Report. This looks like it could be a problem for any app that uses the camera. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From: William de Smet [mailto:williamdesmet at gmail.com] Sent: Tuesday, March 13, 2018 4:41 PM To: rdimola at evergreeninfo.net Subject: Re: App rejected because of camera permission modal alert! Hi Ralph, Yes I did. It is just a standard modal alert that shows. Apple says: We noticed that your app requests the user?s consent to access their camera but does not clarify the use of this feature in the permission modal alert. https://developer.apple.com/library/content/qa/qa1937/_index.html groeten, William 2018-03-13 21:36 GMT+01:00 Ralph DiMola : William, Did you tic the various Camera options(as needed) to "Required" in the iOS standalone setting? 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 de Smet via use-livecode Sent: Tuesday, March 13, 2018 4:22 PM To: How to use LiveCode Cc: William de Smet Subject: App rejected because of camera permission modal alert! Hi there, My new app 'FotoPuzzel' is rejected by Apple because the app needs camera permission. I did not clarify the use of this feature in the modal alert? How do I change this? Can I change this? I just use MobilePickPhoto "camera" The standard modal alert says: FotoPuzzel would like to access the camera This application requires access to the device's camera. Apple's response: ----- We noticed that your app requests the user?s consent to access their camera but does not clarify the use of this feature in the permission modal alert. Please see attached screenshots for details. Next Steps To resolve this issue, please revise the permission modal alert to specify why the app is requesting access to the user's camera. ---- Any advice on this? LC 8.1.8 greetings, William _______________________________________________ use-livecode mailing list use-livecode at 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 Fri Mar 16 13:43:11 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 16 Mar 2018 13:43:11 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> <1F77A54A-AD9D-4805-97A7-D1230E5D13DD@all-auctions.com> Message-ID: <7F1C3863-6A0A-4F3B-BFB2-CA9EBE97F229@all-auctions.com> Hi Mike, I am in a testing phase right now for deployment to others later, so disabling safari for myself isn?t going to accomplish much. I will look into setting the headers directly. Thanks, Rick > On Mar 16, 2018, at 11:31 AM, Mike Bonner via use-livecode wrote: > > Yeah, thats what I was talking about, but I never tried it with safari i'm > afraid. Sounds like something funky with safari, though i'm not sure why my > method wouldn't work unless safari is smart enough now to recognize an > inline link and NOT treat it as a new URL to cache. > > If this is only for your personal use, you can disable caching on safari as > described here: https://www.technipages.com/apple-safari-completely- > disable-cache > If you have safari 11, check here instead to disable cache: > https://stackoverflow.com/questions/46324675/how-do- > i-disable-cache-in-safari-11-0 > > If this is for an app being shipped though thats not a solution. You said > firefox works fine, so i'm guessing you don't have some type of caching > proxy between you and the server. Either way, from what I've been reading > just now, rather than using meta tags, you're more likely to get the > desired result if you set the headers directly. One way to do this would > be with an .htaccess file. > https://stackoverflow.com/questions/11532636/how-to-prevent-http-file-caching-in-apache-httpd-mamp > You'd need to add .lc to the filesmatch so that they're not cached. > > Hopefully the correct module is installed. If it isn't, while I've never > done it, I believe you can set the headers to return using lc in your > server script (assuming you're using lc.) I know php can. If you're using > something other than apache of course, ignore the above. > > On Fri, Mar 16, 2018 at 8:53 AM, Rick Harrison via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Mike, >> >> I am finding that Safari is not honoring >> the meta tag to turn off caching. I thought >> I would give your method a try. I?m not >> sure I am doing it right though because >> that isn?t working either. >> >> (Firefox does everything properly.) >> >> I was thinking from your description that >> it would look something like: >> >> http://www.yourwebsite.com/coolpage.lc#48432 > coolpage.lc#48432> >> >> Is the above example of what you are discussing >> correct? If not could you please post an example? >> >> Thanks, >> >> Rick >> >>> On Mar 16, 2018, at 9:31 AM, Mike Bonner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Another way around the cache problem is to use the #2 trick at the end of >>> the url. Send each request with a pound and different number at the end >> of >>> the url and it'll be seen as a new request thus doing an end run around >> the >>> cache. Since it designates an inline anchor position on the page, it >>> should have zero affect on the way the url functions. (unless things >> have >>> changed, the associated anchor doesn't need to exist on the page) >>> >>> Thanks for the neat trick Charles. :) >>> >>> On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Wow....I'm impressed....thats quite a hack Charles..I will study all >> this >>>> see how far I get..... >>>> >>>> Thank you gentlemen....you are Rockstars!! >>>> >>>> On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> Maybe not 100% reliable but .... >>>>> >>>>> https://stackoverflow.com/questions/1341089/using-meta- >>>>> tags-to-turn-off-caching-in-all-browsers >>>>> >>>>> Regards Lagi >>>>> >>>>> On 16 March 2018 at 09:48, Charles Warwick via use-livecode >>>>> wrote: >>>>>> Hi Tom, >>>>>> >>>>>> If the site you are trying to contact has CORS enabled appropriately, >>>>> then you can do something like this... >>>>>> >>>>>> With the LiveCode browser widget, you can call JavaScript functions >>>> from >>>>> LC script and have the JavaScript functions call LC handlers in return. >>>>> JavaScript has the capability to perform asynchronous HTTP requests. >>>>>> >>>>>> You can create a HTML page that you automatically load up in the >>>> browser >>>>> widget that has a small JavaScript function which you can call from LC >>>> with >>>>> ?do in widget?. All this function needs to do is issue an >> asynchronous >>>>> HTTP call to the URL passed to it as a parameter and when it receives >> the >>>>> data, return it back to your LC script by calling a nominated LC >> handler >>>>> and passing the returned data as a parameter. >>>>>> >>>>>> The HTML page would look something like this: >>>>>> >>>>>> >>>>>> >>>>>> Javascript Async Test >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> You can either load that from a file into the browser widget?s URL or >>>>> set its htmlText property accordingly... >>>>>> >>>>>> Then in LC, make sure you register the httpRequestComplete handler so >>>>> that the widget can call it: >>>>>> >>>>>> set the javascriptHandlers of widget ?browser? to >> ?httpRequestComplete? >>>>>> >>>>>> After that, add a httpRequestComplete handler to the card script to >>>>> handle the returned data: >>>>>> >>>>>> on httpRequestComplete pUrl, pData >>>>>> ? pUrl will be the URL requested >>>>>> ? pData will be the data returned from the URL requested >>>>>> end httpRequestComplete >>>>>> >>>>>> Lastly, make your async requests.... >>>>>> >>>>>> do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? >>>>>> >>>>>> Since the JavaScript in the browser widget is issuing the requests and >>>>> sending the data back to LC, it doesn?t need to display anything >> related >>>> to >>>>> it in the browser widget itself - it can be a blank canvas. >>>>>> >>>>>> Just be aware that the browser widget can cache URLs and there is no >>>>> easy way (that I know of?) in LC to clear the browser?s cache... so if >>>> you >>>>> see very quick responses on a second or subsequent request to the same >>>> URL, >>>>> it is likely pulling it all from the browser?s cache. >>>>>> >>>>>> Cheers, >>>>>> >>>>>> Charles >>>>>> >>>>>>>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Great hints there Mike .... thanks alot. Luckily I'm desktop only >>>>> right >>>>>>>> now. >>>>>>>> >>>>>>>> It shouldn't be too long before I sit down to make something that I >>>> can >>>>>>>> rely on and reuse in future projects. >>>>>>>> >>>>>>>> Might turn out I will have to hire someone to help which is cool >> too. >>>>>>>> >>>>>>>> It only has to be very simple..and does not need to match >> performance >>>>> of >>>>>>>> Tsnet. >>>>>>>> >>>>>>>> Anything more than 1 would be a great start. LOL. >>>>>>>> >>>>>>>> I will look into the libURL library and then try to guess which way >> I >>>>>>>> should go my first attempt to hack this. >>>>>>>> >>>>>>>> I'll keep you guys posted on the progress..I think I need a name for >>>>> this >>>>>>>> little project. >>>>>>>> >>>>>>>> Thanks you >>>>>>>> >>>>>>>> Tom >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ludovic.thebault at laposte.net Fri Mar 16 14:18:27 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 16 Mar 2018 19:18:27 +0100 Subject: App rejected because of camera permission modal alert! In-Reply-To: <1622fbff0f8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <006801d3bb0b$06645770$132d0650$@net> <006f01d3bb0f$5315af70$f9410e50$@net> <1622fbff0f8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <5048C8FB-EA3D-40C5-97AC-B7CCEF074BC2@laposte.net> > Le 16 mars 2018 ? 17:58, J. Landman Gay via use-livecode a ?crit : > > You can put customized copies of the manifest into the Copy Files pane of the standalone settings and it will override the default. I think it should work with plist files too. Good to know ! Thanks From iowahengst at mac.com Fri Mar 16 16:21:45 2018 From: iowahengst at mac.com (Randy Hengst) Date: Fri, 16 Mar 2018 15:21:45 -0500 Subject: Sound delay In-Reply-To: References: Message-ID: <712EC975-00FD-4BFA-9C16-DA0D965DE901@mac.com> Hi William, I haven?t messed with this for quite a while, but the sound delay isn?t new. On iOS I found that the second sound played without delay? even when it was not a repeat of the first sound. Is that what you?ve seen? My workaround was to record a few seconds of silence and play that sound on openStack. play specialFolderPath("engine") &"/"& "Silence.wav" I?ve not used mp3 files in LiveCode, so don?t really if you?re seeing the same thing I did with .wav files. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Mar 15, 2018, at 9:55 AM, William de Smet via use-livecode wrote: > > Hi there, > > Why is there a short delay when playing a sound for the first time? > And how do I solve this? > > play specialFolderPath("engine") & slash & "sounds/pop.mp3" > > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Fri Mar 16 18:01:23 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Sat, 17 Mar 2018 08:01:23 +1000 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> <1F77A54A-AD9D-4805-97A7-D1230E5D13DD@all-auctions.com> Message-ID: <6B35714F-CECE-4100-86EC-A08C4C609E3E@techstrategies.com.au> Just remember the browser widget in LiveCode uses CEF (Chromium Embedded Framework) on all platforms. It doesn?t need to work on Safari or Firefox. > On 17 Mar 2018, at 1:40 am, Tom Glod via use-livecode wrote: > > this solution has to work flawlessly in production on all 3 desktop > platforms. > > I'm giving a shot to modifying LibURL..... I wish I knew why the limit is > in there to begin with, that would help to know if I am wasting my time or > not. > > Realistically if it was as easy as just hacking that code, someone would > have done it already. > > Its fun anyways....I have to solve this.......even if I speed it up just a > little bit ...... > > Its not an emergency situation so its a fun problem to think about until > its solved. > > some good ideas from you guys.... thanks everyone > > On Fri, Mar 16, 2018 at 11:31 AM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Yeah, thats what I was talking about, but I never tried it with safari i'm >> afraid. Sounds like something funky with safari, though i'm not sure why my >> method wouldn't work unless safari is smart enough now to recognize an >> inline link and NOT treat it as a new URL to cache. >> >> If this is only for your personal use, you can disable caching on safari as >> described here: https://www.technipages.com/apple-safari-completely- >> disable-cache >> If you have safari 11, check here instead to disable cache: >> https://stackoverflow.com/questions/46324675/how-do- >> i-disable-cache-in-safari-11-0 >> >> If this is for an app being shipped though thats not a solution. You said >> firefox works fine, so i'm guessing you don't have some type of caching >> proxy between you and the server. Either way, from what I've been reading >> just now, rather than using meta tags, you're more likely to get the >> desired result if you set the headers directly. One way to do this would >> be with an .htaccess file. >> https://stackoverflow.com/questions/11532636/how-to- >> prevent-http-file-caching-in-apache-httpd-mamp >> You'd need to add .lc to the filesmatch so that they're not cached. >> >> Hopefully the correct module is installed. If it isn't, while I've never >> done it, I believe you can set the headers to return using lc in your >> server script (assuming you're using lc.) I know php can. If you're using >> something other than apache of course, ignore the above. >> >> On Fri, Mar 16, 2018 at 8:53 AM, Rick Harrison via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Mike, >>> >>> I am finding that Safari is not honoring >>> the meta tag to turn off caching. I thought >>> I would give your method a try. I?m not >>> sure I am doing it right though because >>> that isn?t working either. >>> >>> (Firefox does everything properly.) >>> >>> I was thinking from your description that >>> it would look something like: >>> >>> http://www.yourwebsite.com/coolpage.lc#48432 < >> http://www.yourwebsite.com/ >>> coolpage.lc#48432> >>> >>> Is the above example of what you are discussing >>> correct? If not could you please post an example? >>> >>> Thanks, >>> >>> Rick >>> >>>> On Mar 16, 2018, at 9:31 AM, Mike Bonner via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Another way around the cache problem is to use the #2 trick at the end >> of >>>> the url. Send each request with a pound and different number at the >> end >>> of >>>> the url and it'll be seen as a new request thus doing an end run around >>> the >>>> cache. Since it designates an inline anchor position on the page, it >>>> should have zero affect on the way the url functions. (unless things >>> have >>>> changed, the associated anchor doesn't need to exist on the page) >>>> >>>> Thanks for the neat trick Charles. :) >>>> >>>> On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> Wow....I'm impressed....thats quite a hack Charles..I will study all >>> this >>>>> see how far I get..... >>>>> >>>>> Thank you gentlemen....you are Rockstars!! >>>>> >>>>> On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>> Maybe not 100% reliable but .... >>>>>> >>>>>> https://stackoverflow.com/questions/1341089/using-meta- >>>>>> tags-to-turn-off-caching-in-all-browsers >>>>>> >>>>>> Regards Lagi >>>>>> >>>>>> On 16 March 2018 at 09:48, Charles Warwick via use-livecode >>>>>> wrote: >>>>>>> Hi Tom, >>>>>>> >>>>>>> If the site you are trying to contact has CORS enabled >> appropriately, >>>>>> then you can do something like this... >>>>>>> >>>>>>> With the LiveCode browser widget, you can call JavaScript functions >>>>> from >>>>>> LC script and have the JavaScript functions call LC handlers in >> return. >>>>>> JavaScript has the capability to perform asynchronous HTTP requests. >>>>>>> >>>>>>> You can create a HTML page that you automatically load up in the >>>>> browser >>>>>> widget that has a small JavaScript function which you can call from >> LC >>>>> with >>>>>> ?do in widget?. All this function needs to do is issue an >>> asynchronous >>>>>> HTTP call to the URL passed to it as a parameter and when it receives >>> the >>>>>> data, return it back to your LC script by calling a nominated LC >>> handler >>>>>> and passing the returned data as a parameter. >>>>>>> >>>>>>> The HTML page would look something like this: >>>>>>> >>>>>>> >>>>>>> >>>>>>> Javascript Async Test >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> You can either load that from a file into the browser widget?s URL >> or >>>>>> set its htmlText property accordingly... >>>>>>> >>>>>>> Then in LC, make sure you register the httpRequestComplete handler >> so >>>>>> that the widget can call it: >>>>>>> >>>>>>> set the javascriptHandlers of widget ?browser? to >>> ?httpRequestComplete? >>>>>>> >>>>>>> After that, add a httpRequestComplete handler to the card script to >>>>>> handle the returned data: >>>>>>> >>>>>>> on httpRequestComplete pUrl, pData >>>>>>> ? pUrl will be the URL requested >>>>>>> ? pData will be the data returned from the URL requested >>>>>>> end httpRequestComplete >>>>>>> >>>>>>> Lastly, make your async requests.... >>>>>>> >>>>>>> do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? >>>>>>> >>>>>>> Since the JavaScript in the browser widget is issuing the requests >> and >>>>>> sending the data back to LC, it doesn?t need to display anything >>> related >>>>> to >>>>>> it in the browser widget itself - it can be a blank canvas. >>>>>>> >>>>>>> Just be aware that the browser widget can cache URLs and there is no >>>>>> easy way (that I know of?) in LC to clear the browser?s cache... so >> if >>>>> you >>>>>> see very quick responses on a second or subsequent request to the >> same >>>>> URL, >>>>>> it is likely pulling it all from the browser?s cache. >>>>>>> >>>>>>> Cheers, >>>>>>> >>>>>>> Charles >>>>>>> >>>>>>>>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>>> >>>>>>>>> Great hints there Mike .... thanks alot. Luckily I'm desktop only >>>>>> right >>>>>>>>> now. >>>>>>>>> >>>>>>>>> It shouldn't be too long before I sit down to make something that >> I >>>>> can >>>>>>>>> rely on and reuse in future projects. >>>>>>>>> >>>>>>>>> Might turn out I will have to hire someone to help which is cool >>> too. >>>>>>>>> >>>>>>>>> It only has to be very simple..and does not need to match >>> performance >>>>>> of >>>>>>>>> Tsnet. >>>>>>>>> >>>>>>>>> Anything more than 1 would be a great start. LOL. >>>>>>>>> >>>>>>>>> I will look into the libURL library and then try to guess which >> way >>> I >>>>>>>>> should go my first attempt to hack this. >>>>>>>>> >>>>>>>>> I'll keep you guys posted on the progress..I think I need a name >> for >>>>>> this >>>>>>>>> little project. >>>>>>>>> >>>>>>>>> Thanks you >>>>>>>>> >>>>>>>>> Tom >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 16 18:34:53 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 16 Mar 2018 23:34:53 +0100 Subject: [OT] InstaMaker Wine App for Mac OS X to create Windows Installers on Mac OS X Message-ID: <9C4F9F92-533B-4635-BDB3-61341C3D041F@m-r-d.de> Hi, i?ve just uploaded an InstaMaker Wine app which allows you to run the Windows version of InstaMaker on Mac OS X. With this it should be possible to create a Windows Installer under Mac OS X. Tried it here successful under HighSierra. The download file is about 260MB and the unzipped app is nearly 600MB. But that?s seems to be quite normal for a wine app. The app needs some time to open, about 5 seconds or so, but that?s still quicker than starting Parallels. So again, if there is someone who wants to give it a try, then you?ll find it here https://dl.qck.nu//?dl=InstaMakerWine.zip Hope this is of use for the one or the other. Regards, Matthias From brahma at hindu.org Sat Mar 17 00:39:25 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 17 Mar 2018 04:39:25 +0000 Subject: mouseDown and mouseUp; Being Called Outside the Group Message-ID: <2234E3E5-C2B6-4D6A-A63D-D78277089E44@hindu.org> I think this a regression in 8.1.9 A behavior, assigned to group, has mouseDown and mouseUp handlers The behavior is getting mouseDown and mouseUp handlers, ever when called by a behavior another group that has "pass mouseDown" The two groups not intersecting BR From ambassador at fourthworld.com Sat Mar 17 03:28:13 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 17 Mar 2018 00:28:13 -0700 Subject: mouseDown and mouseUp; Being Called Outside the Group In-Reply-To: <2234E3E5-C2B6-4D6A-A63D-D78277089E44@hindu.org> References: <2234E3E5-C2B6-4D6A-A63D-D78277089E44@hindu.org> Message-ID: <4d383d21-e29d-b8e8-a687-805404a0fc56@fourthworld.com> Sannyasin Brahmanathaswami wrote: > I think this a regression in 8.1.9 > > A behavior, assigned to group, has mouseDown and mouseUp handlers > > The behavior is getting mouseDown and mouseUp handlers, ever when > called by a behavior another group that has "pass mouseDown" > > The two groups not intersecting Does either group have its backgroundBehavior property set? -- Richard Gaskin Fourth World Systems From matthias_livecode_150811 at m-r-d.de Sat Mar 17 04:58:59 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 17 Mar 2018 09:58:59 +0100 Subject: Solution for signing Windows .exe,.dll and so on under Mac OS X Message-ID: Hi, i am not sure, if you all alread knew about it. But for me it was totally new. Today i was able to successfully signing a Windows .exe file under Mac OS X. See the steps below. If the URLs are not readable, go here to download a short pdf containing the instructions. https://dl.qck.nu//?dl=Singing_Windows_files_on_MacOSX.pdf Why are url in this list email always shown twice? Is there a trick to avoid that? Any way. Regards, Matthias How to signcode Windows apps under Mac OS X using osslsigncode 1. If not already installed, install Homebrew using the Terminal ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2. install osslsigncode using HomeBrew, enter the following into the Terminal brew install osslsigncode After successful installation you should be able to sign your Windows .exe under Mac OS X See examples below for signing YOURAPP.exe with a p12/pfx certificate SHA256 osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha2 -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe SHA1 osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha1 -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe Dual signing osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha1 -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha2 -nest -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe With my Comode certificate i am using the timestamp server url http://timestamp.comodoca.com/rfc3161 From preid at reidit.co.uk Sat Mar 17 13:14:36 2018 From: preid at reidit.co.uk (Peter Reid) Date: Sat, 17 Mar 2018 17:14:36 +0000 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: References: Message-ID: <6DE66FAC-C1BC-4F32-8186-B76D769D791C@reidit.co.uk> I know it's possible and I know it's simple really, but I can't remember it/figure it out! I have a sub-stack that contains an image. I want the user to be able to drag the corners and edges of the sub-stack window to make the window and its image larger or smaller, but the window and image must maintain their original aspect ratio ? no stretching, no empty borders etc. I've tried the following in the card script: global gImageRatio on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight propSizeImage "coinSet", gImageRatio pass resizeStack end resizeStack on propSizeImage pImageName, @pImageRatio put the width of this stack into propWidth set the width of image pImageName to propWidth put propWidth div pImageRatio into propHeight put the width of image pImageName into tWidth put the height of image pImageName into tHeight if propHeight > tHeight then put tHeight into propH put tHeight * pImageRatio into propW else if propHeight < tHeight then put propHeight into propH put propH * pImageRatio into propW else put tWidth into propW put tHeight into propH end if set the height of image pImageName to propH set the width of image pImageName to propW set the height of this stack to propH set the width of this stack to propW set the topLeft of image pImageName to 0,0 end propSizeImage with the following initialisation in the stack script: global gImageRatio on preOpenStack put the width of image "CoinSet" / the height of image "CoinSet" into gImageRatio end preOpenStack I'm probably missing something obvious, but can anyone help please?! Thanks Peter -- Peter Reid Loughborough, UK From brahma at hindu.org Sat Mar 17 15:07:26 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 17 Mar 2018 19:07:26 +0000 Subject: Installed 9.0 RC1 - Backdrop on by faulf Message-ID: I read the threadson installing 9.0.RC1 and went ahead and removed old perferences before booting him up. My whole monitor was gray. thinking in was a bug, rebooted Livecode. Same thing, hmm ?stopped to think about it, when to backdrop, it was on by default. BR From brahma at hindu.org Sat Mar 17 15:46:30 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 17 Mar 2018 19:46:30 +0000 Subject: 9.0RC1 Scrolling on Sub-Groups Message-ID: <379B0BF3-7AF1-4409-A46F-7987E112F216@hindu.org> Look like an exciting release. Scrolling is everything on mobile apps. I am having to hire out develop on HTML5 for this one reason. Hopefully we can integrate with the browser widget. But I don't do HTML5 ?I see those in release notes DataGrid 2: Edit Mode and Swipe Actions Create mobile scroller when reopening a Data Grid Does this mean that we get performance on DataGrid 2? On sub-group, template subgroup, used create a row, that, many be 100 rows long, or 31 day (a month in a calendar) I stay away from such groups. I simply draw controls out on an order that appear as a group? but are not. But this is painful. For some who are using DataGrid2 on mobile, perhaps you can give us an update? BR From jacque at hyperactivesw.com Sat Mar 17 15:55:02 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 17 Mar 2018 14:55:02 -0500 Subject: Installed 9.0 RC1 - Backdrop on by faulf In-Reply-To: References: Message-ID: <6aa334b6-29b3-d07b-232e-0cb455b7dc37@hyperactivesw.com> On 3/17/18 2:07 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > I read the threadson installing 9.0.RC1 and went ahead and removed old perferences before booting him up. > > My whole monitor was gray. thinking in was a bug, rebooted Livecode. Same thing, hmm ?stopped to think about it, when to backdrop, it was on by default. That's the new normal. It makes me feel like I'm in a box, but I guess new users like it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 17 16:30:53 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 17 Mar 2018 15:30:53 -0500 Subject: Guessing game Message-ID: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> I was just reading the release notes for 9.0rc1 and came across this entry: Additional forms of create command Create in now works correctly You can now create in as well as in Any guesses? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ali.lloyd at livecode.com Sat Mar 17 16:47:46 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Sat, 17 Mar 2018 20:47:46 +0000 Subject: Guessing game In-Reply-To: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> Message-ID: Oops, looks like we need to escape < and > in release notes! https://raw.githubusercontent.com/livecode/livecode/develop/docs/notes/feature-create-in.md On Sat, Mar 17, 2018 at 8:30 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I was just reading the release notes for 9.0rc1 and came across this entry: > > Additional forms of create command > Create in now works correctly > You can now create in as well as in > > Any guesses? > > -- > 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 jacque at hyperactivesw.com Sat Mar 17 18:04:47 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 17 Mar 2018 17:04:47 -0500 Subject: Guessing game In-Reply-To: References: <662cf2ec-d8c6-8d29-02c0-6533a33ac05d@hyperactivesw.com> Message-ID: <497d87c1-6167-f75a-0d97-1912b8d16a4b@hyperactivesw.com> Enlightenment! But not as create-ive. I was thinking more along the lines of: You can now create in as well as in I don't really need documentation to do that though. On 3/17/18 3:47 PM, Ali Lloyd via use-livecode wrote: > Oops, looks like we need to escape < and > in release notes! > https://raw.githubusercontent.com/livecode/livecode/develop/docs/notes/feature-create-in.md > > On Sat, Mar 17, 2018 at 8:30 PM J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I was just reading the release notes for 9.0rc1 and came across this entry: >> >> Additional forms of create command >> Create in now works correctly >> You can now create in as well as in >> >> Any guesses? >> >> -- >> 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 brahma at hindu.org Sat Mar 17 22:51:02 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 18 Mar 2018 02:51:02 +0000 Subject: mouseDown and mouseUp; Being Called Outside the Group In-Reply-To: <4d383d21-e29d-b8e8-a687-805404a0fc56@fourthworld.com> References: <2234E3E5-C2B6-4D6A-A63D-D78277089E44@hindu.org> <4d383d21-e29d-b8e8-a687-805404a0fc56@fourthworld.com> Message-ID: right, the backgroundBehavior it set to "true" Isn't the bug? On 3/16/18, 9:28 PM, "use-livecode on behalf of Richard Gaskin via use-livecode" wrote: Sannyasin Brahmanathaswami wrote: > I think this a regression in 8.1.9 > > A behavior, assigned to group, has mouseDown and mouseUp handlers > > The behavior is getting mouseDown and mouseUp handlers, ever when > called by a behavior another group that has "pass mouseDown" > > The two groups not intersecting Does either group have its backgroundBehavior property set? From ambassador at fourthworld.com Sat Mar 17 23:01:57 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 17 Mar 2018 20:01:57 -0700 Subject: mouseDown and mouseUp; Being Called Outside the Group In-Reply-To: References: Message-ID: <3c6be1a2-df8d-75f1-1acb-29bb517f5e55@fourthworld.com> Sounds like it's working as advertised. Remember, backgrounds are distinguished from groups by being behind the card in the message path. Try turning off the backgroundBehavior and see if that does what you're looking for. -- Richard Gaskin Fourth World Systems Sannyasin Brahmanathaswami wrote: > right, the backgroundBehavior it set to "true" > > Isn't the bug? > > On 3/16/18, 9:28 PM, "use-livecode on behalf of Richard Gaskin wrote: > > Sannyasin Brahmanathaswami wrote: > > I think this a regression in 8.1.9 > > > > A behavior, assigned to group, has mouseDown and mouseUp > > handlers > > > > The behavior is getting mouseDown and mouseUp handlers, ever > > when called by a behavior another group that has "pass > > mouseDown" > > > > The two groups not intersecting > > Does either group have its backgroundBehavior property set? From jacque at hyperactivesw.com Sun Mar 18 02:04:19 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Mar 2018 01:04:19 -0500 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <6DE66FAC-C1BC-4F32-8186-B76D769D791C@reidit.co.uk> References: <6DE66FAC-C1BC-4F32-8186-B76D769D791C@reidit.co.uk> Message-ID: <82c5cec5-1b64-6690-60e0-dfce7a1784b7@hyperactivesw.com> On 3/17/18 12:14 PM, Peter Reid via use-livecode wrote: > I have a sub-stack that contains an image. I want the user to be able > to drag the corners and edges of the sub-stack window to make the window > and its image larger or smaller, but the window and image must maintain > their original aspect ratio ? no stretching, no empty borders etc. I wish we had a way to determine when a stack resize is finished. The best I could do is run a "send" loop to check the mouse state. Maybe someone else knows a better way. It doesn't seem possible to change the stack size within a resizeStack handler, which makes sense, so the adjustment has to be done afterward. I think this sort of does what you want, but there's a "snap" at the end when the stack adjusts to the new image size. It accomodates images of any orientation. constant kImgName = "coinSet" on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight put the formattedWidth of img kImgName into tFWidth put the formattedHeight of img kImgName into tFHeight if tFHeight > tFWidth then resizeToHeight tFHeight,tFWidth else resizeToWidth tFHeight,tFWidth end if checkResizeDone end resizeStack on resizeToHeight tOrigImgHeight,tOrigImgWidth put the height of this cd/tOrigImgHeight into tRatio put (tOrigImgWidth * tRatio) into tNewWidth put (tOrigImgHeight * tRatio) into tNewHeight set the rect of img kImgName to 0,0,tNewWidth,tNewHeight end resizeToHeight on resizeToWidth tOrigImgHeight,tOrigImgWidth put the width of this cd into tW put tW/tOrigImgWidth into tRatio put (tOrigImgWidth * tRatio) into tNewWidth put (tOrigImgHeight * tRatio) into tNewHeight set the rect of img kImgName to 0,0,tNewWidth,tNewHeight end resizeToWidth on checkResizeDone if the mouse is up then set the rect of this stack to \ (globalLoc(the topleft of img kImgName) &comma& globalLoc(the bottomright of img kImgName)) else send "checkResizeDone" to me in 100 milliseconds end if end checkResizeDone -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Sun Mar 18 02:13:55 2018 From: hh at hyperhh.de (hh) Date: Sun, 18 Mar 2018 07:13:55 +0100 Subject: Stupid Question Again - Proportional Scaling Message-ID: For proportional resizing a stack window hold the shiftkey down when resizing. From hh at hyperhh.de Sun Mar 18 02:26:05 2018 From: hh at hyperhh.de (hh) Date: Sun, 18 Mar 2018 07:26:05 +0100 Subject: Stupid Question Again - Proportional Scaling Message-ID: <5BE02282-3168-480E-8675-F45458671AE9@hyperhh.de> [Sorry lost above half of my answer.] You could try the following with user's interaction: For proportional resizing a stack window hold the shiftkey down when resizing. And in card's script add on resizestack w,h set rect of img 1 to (0,0,w,h) end resizestack From jacque at hyperactivesw.com Sun Mar 18 03:11:10 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Mar 2018 02:11:10 -0500 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <5BE02282-3168-480E-8675-F45458671AE9@hyperhh.de> References: <5BE02282-3168-480E-8675-F45458671AE9@hyperhh.de> Message-ID: On 3/18/18 1:26 AM, hh via use-livecode wrote: > [Sorry lost above half of my answer.] > > You could try the following with user's interaction: > > For proportional resizing a stack window > hold the shiftkey down when resizing. > > And in card's script add > > on resizestack w,h > set rect of img 1 to (0,0,w,h) > end resizestack If Peter doesn't mind instructing his users to use the shift key, this would be a good solution. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From livfoss at mac.com Sun Mar 18 07:44:47 2018 From: livfoss at mac.com (Graham Samuel) Date: Sun, 18 Mar 2018 12:44:47 +0100 Subject: A poor man's app updater Message-ID: I?ve written before about trying to include within a desktop app a check for updates, and a user-driven update action: I?ve looked a bit at Trevor?s incorporation of such a scheme in Levure, and independently at Sparkle (only for Macs), but I have never reached an encapsulated solution that works without leaving my LiveCode comfort zone. I just thought people might like to know what I?ve actually done to solve the problem - it?s primitive beyond belief to anyone who is happy to go outside the LCCZ, but it?s all I can do with very limited resources of intellect and time. I?d love to hear of a better solution (there must be one). The app in question (only desktop right now) is a classic splash screen design, with the splash providing access to a licensing gateway and a script library, and everything else in another mainstack (let?s call it the Working Stack), which is not compiled but rather included as a file in the installed package as a template - a copy is made in a writeable area for working purposes when the program starts up for the first time. The app is installed via a web site, so there is a server we can use for stuff such as installers. This server includes a tiny text file which records the latest version number of the app. When the app is initialised, it compares a version number built in to the Working Stack with the version number in the file on the server - of course if the program isn?t connected to the internet, this doesn?t take place. If the comparison shows that there is a more recent version, the user is warned via a dialog and asked whether to ignore for now, ignore this particular update permanently, or to install the update. The ?ignore this version? option updates a property in the Working Stack so the same warning isn?t repeated next time. Now, here is the primitive bit: if the user selects the update option, he/she is invited to carry out the following sequence: - quit the current version (actually this can of course be done automatically via an ?OK? button); - delete the current version using the facilities of the OS (just trash it from the Applications folder on a Mac, or use the Control Panel on Windows): there is no reliable way of doing this from within an LC standalone, AFAIK; - download and run a special ?Uninstall Helper? program that gets rid of the Working Stack in the writeable area, plus preference files and the like - I don?t see any way of making this happen automatically, since logically it needs to be done **after** the main program is deleted; - use the information given at the time of purchase to download the appropriate installer from the server; - reinstall the program and input the registration data from the original purchase. Clunky ain?t in it, but so far I have not thought of a better solution. Graham From preid at reidit.co.uk Sun Mar 18 11:13:03 2018 From: preid at reidit.co.uk (Peter Reid) Date: Sun, 18 Mar 2018 15:13:03 +0000 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: References: Message-ID: <0653C980-A7C9-4C56-96DA-0929E5631D13@reidit.co.uk> Hi Jacqueline & hh Thanks for the feedback. After I sent my query I came across a relevant response in the forum: https://forums.livecode.com/viewtopic.php?t=30385 In particular MaxV's response which is very similar to yours Jacqueline. When I tried this I too realised that I'd need a "send" to tidy-up afterwards! Here's my complete code (all in the stack script): local tAdjustingStack on resizeStack if not tAdjustingStack then put the top of image "myImage" into tTop put the left of image "myImage" into tLeft put the realSize of image "MyImage" into tSize put the startsizeStack of image "myImage" into tSS set the width of image "myImage" to (item 1 of tSize * the width of this stack / item 1 of tSS ) set the height of image "myImage" to (item 2 of tSize * the height of this stack / item 2 of tSS ) if the width of image "myImage" > the height of image "myImage" then set the width of image "myImage" to (item 1 of tSize / item 2 of tSize * the height of image "myImage") else set the height of image "myImage" to (item 2 of tSize / item 1 of tSize * the width of image "myImage") end if set the top of image "myImage" to tTop set the left of image "myImage" to tLeft end if pass resizeStack end resizeStack on tidyUpAfterwards put the topLeft of this stack into tTL if the width of this stack <> the width of image "myImage" then lock screen put true into tAdjustingStack set the width of this stack to the width of image "myImage" set the topLeft of this stack to tTL end if if the height of this stack <> the height of image "myImage" then lock screen put true into tAdjustingStack set the height of this stack to the height of image "myImage" set the topLeft of this stack to tTL end if unlock screen put false into tAdjustingStack send "tidyUpAfterwards" to me in 5 ticks end tidyUpAfterwards on preOpenStack put false into tAdjustingStack set the realsize of image "myImage" to (the width of image "myImage", the height of image "myImage") set the startSizeStack of image "myImage" to (the width of this stack, the height of this stack) send "tidyUpAfterwards" to me in 5 ticks end preOpenStack It's a pity that this proved a bit more convoluted than perhaps it should have been. Thanks again. Peter -- Peter Reid 71 Leconfield Road, Loughborough, Leics. LE11 3SP, UK Tel: +44 (0)1509 268843 Mobile/Cell: 07778 632533 Email: peter at reidit.net > Message: 1 > Date: Sat, 17 Mar 2018 17:14:36 +0000 > From: Peter Reid > To: use-livecode at lists.runrev.com > Subject: Stupid Question Again - Proportional Scaling > Message-ID: <6DE66FAC-C1BC-4F32-8186-B76D769D791C at reidit.co.uk> > Content-Type: text/plain; charset=utf-8 > > I know it's possible and I know it's simple really, but I can't remember it/figure it out! > > I have a sub-stack that contains an image. I want the user to be able to drag the corners and edges of the sub-stack window to make the window and its image larger or smaller, but the window and image must maintain their original aspect ratio ? no stretching, no empty borders etc. I've tried the following in the card script: > > global gImageRatio > > on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight > propSizeImage "coinSet", gImageRatio > pass resizeStack > end resizeStack > > on propSizeImage pImageName, @pImageRatio > put the width of this stack into propWidth > set the width of image pImageName to propWidth > put propWidth div pImageRatio into propHeight > put the width of image pImageName into tWidth > put the height of image pImageName into tHeight > if propHeight > tHeight then > put tHeight into propH > put tHeight * pImageRatio into propW > else if propHeight < tHeight then > put propHeight into propH > put propH * pImageRatio into propW > else > put tWidth into propW > put tHeight into propH > end if > set the height of image pImageName to propH > set the width of image pImageName to propW > set the height of this stack to propH > set the width of this stack to propW > set the topLeft of image pImageName to 0,0 > end propSizeImage > > with the following initialisation in the stack script: > > global gImageRatio > > on preOpenStack > put the width of image "CoinSet" / the height of image "CoinSet" into gImageRatio > end preOpenStack > > I'm probably missing something obvious, but can anyone help please?! > > Thanks > > Peter > -- > Peter Reid > Loughborough, UK > > ------------------------------ > > Message: 10 > Date: Sun, 18 Mar 2018 01:04:19 -0500 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Stupid Question Again - Proportional Scaling > Message-ID: <82c5cec5-1b64-6690-60e0-dfce7a1784b7 at hyperactivesw.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > On 3/17/18 12:14 PM, Peter Reid via use-livecode wrote: >> I have a sub-stack that contains an image. I want the user to be able >> to drag the corners and edges of the sub-stack window to make the window >> and its image larger or smaller, but the window and image must maintain >> their original aspect ratio ? no stretching, no empty borders etc. > > > I wish we had a way to determine when a stack resize is finished. The > best I could do is run a "send" loop to check the mouse state. Maybe > someone else knows a better way. It doesn't seem possible to change the > stack size within a resizeStack handler, which makes sense, so the > adjustment has to be done afterward. > > I think this sort of does what you want, but there's a "snap" at the end > when the stack adjusts to the new image size. It accomodates images of > any orientation. > > > constant kImgName = "coinSet" > > on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight > put the formattedWidth of img kImgName into tFWidth > put the formattedHeight of img kImgName into tFHeight > if tFHeight > tFWidth then > resizeToHeight tFHeight,tFWidth > else > resizeToWidth tFHeight,tFWidth > end if > checkResizeDone > end resizeStack > > on resizeToHeight tOrigImgHeight,tOrigImgWidth > put the height of this cd/tOrigImgHeight into tRatio > put (tOrigImgWidth * tRatio) into tNewWidth > put (tOrigImgHeight * tRatio) into tNewHeight > set the rect of img kImgName to 0,0,tNewWidth,tNewHeight > end resizeToHeight > > on resizeToWidth tOrigImgHeight,tOrigImgWidth > put the width of this cd into tW > put tW/tOrigImgWidth into tRatio > put (tOrigImgWidth * tRatio) into tNewWidth > put (tOrigImgHeight * tRatio) into tNewHeight > set the rect of img kImgName to 0,0,tNewWidth,tNewHeight > end resizeToWidth > > on checkResizeDone > if the mouse is up then > set the rect of this stack to \ > (globalLoc(the topleft of img kImgName) &comma& globalLoc(the > bottomright of img kImgName)) > else > send "checkResizeDone" to me in 100 milliseconds > end if > end checkResizeDone > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > ------------------------------ > > Message: 11 > Date: Sun, 18 Mar 2018 07:13:55 +0100 > From: hh > To: use-livecode at lists.runrev.com > Subject: Re: Stupid Question Again - Proportional Scaling > Message-ID: > Content-Type: text/plain; charset=us-ascii > > For proportional resizing a stack window > hold the shiftkey down when resizing. > > ------------------------------ > > Message: 12 > Date: Sun, 18 Mar 2018 07:26:05 +0100 > From: hh > To: use-livecode at lists.runrev.com > Subject: Re: Stupid Question Again - Proportional Scaling > Message-ID: <5BE02282-3168-480E-8675-F45458671AE9 at hyperhh.de> > Content-Type: text/plain; charset=us-ascii > > [Sorry lost above half of my answer.] > > You could try the following with user's interaction: > > For proportional resizing a stack window > hold the shiftkey down when resizing. > > And in card's script add > > on resizestack w,h > set rect of img 1 to (0,0,w,h) > end resizestack > > ------------------------------ > > Message: 13 > Date: Sun, 18 Mar 2018 02:11:10 -0500 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Stupid Question Again - Proportional Scaling > Message-ID: > Content-Type: text/plain; charset=utf-8; format=flowed > > On 3/18/18 1:26 AM, hh via use-livecode wrote: >> [Sorry lost above half of my answer.] >> >> You could try the following with user's interaction: >> >> For proportional resizing a stack window >> hold the shiftkey down when resizing. >> >> And in card's script add >> >> on resizestack w,h >> set rect of img 1 to (0,0,w,h) >> end resizestack > > If Peter doesn't mind instructing his users to use the shift key, this > would be a good solution. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Sun Mar 18 12:57:02 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 18 Mar 2018 09:57:02 -0700 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <0653C980-A7C9-4C56-96DA-0929E5631D13@reidit.co.uk> References: <0653C980-A7C9-4C56-96DA-0929E5631D13@reidit.co.uk> Message-ID: <0fd346e8-b636-b192-5c75-955743ab7a51@fourthworld.com> Peter Reid wrote: >> I have a sub-stack that contains an image. I want the user to be >> able to drag the corners and edges of the sub-stack window to make >> the window and its image larger or smaller, but the window and >> image must maintain their original aspect ratio ? no stretching, >> no empty borders etc. ... > It's a pity that this proved a bit more convoluted than perhaps it > should have been. How often do we see apps that constrain window resizing? There are probably a few, and now one more. But it's not common, and apparently what few OS APIs may be provided for such hooks aren't easy to access or at least often used, or we might see more of it. LC tends to provide easy access to common UI objects and behaviors that the OSes make easy to use. When we pursue and edge case is where things get tricky. If your solution is working well for what you need then it's probably not worth revisiting the design. But one thing I've learned from my customers is that they sometimes resize windows for reasons I didn't anticipate. As designers, we tend to think of resizing a window as something we do to view the window's content. In that use case, if the content is square there's certainly no harm, and perhaps some benefit, in constraining the user's resize action to keep the window square as well. But I've found sometimes users resize windows to remove visual clutter from their desktop. This can result in a window with empty space along at least two edges if the content within it has no sensible way to make full use of the window's content region. Yet in some cases, I have to ask: why not let the user define their own preferred rect for the window, and I'll do my job of making the interior fit as usably and attractively as I can within whatever the user wants to do. Of course I have no idea what you're building, and there may be some excellent reasons to constrain the user's resize action. But if maintaining the image within the window to maximally fit the window's rect while maintaining its proportions is the goal, a suitably neutral color filling the card would seem to suffice as at least as well as whatever clutter may be behind the window outside of its bounds, no? Certainly simpler to write. :) When I find myself working hard against the grain of what OSes suggest for common UI elements, sometimes it helps me pause and reconsider *why* I'm doing that, to see if there's a more with-the-grain approach the maintains consistency for the user 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 jacque at hyperactivesw.com Sun Mar 18 13:25:00 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Mar 2018 12:25:00 -0500 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <0fd346e8-b636-b192-5c75-955743ab7a51@fourthworld.com> References: <0653C980-A7C9-4C56-96DA-0929E5631D13@reidit.co.uk> <0fd346e8-b636-b192-5c75-955743ab7a51@fourthworld.com> Message-ID: <1623a2499e0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I think he wants to use window resizing as an automatic zoom, like a magnifying glass. Google Maps does this with + and - buttons but doesn't resize the window content to fit. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 18, 2018 11:58:55 AM Richard Gaskin via use-livecode wrote: But if maintaining the image within the window to maximally fit the window's rect while maintaining its proportions is the goal, a suitably neutral color filling the card would seem to suffice as at least as well as whatever clutter may be behind the window outside of its bounds, no? From ambassador at fourthworld.com Sun Mar 18 13:41:52 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 18 Mar 2018 10:41:52 -0700 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <1623a2499e0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1623a2499e0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <506a8932-06fe-fc46-b25b-822c67c55809@fourthworld.com> Exactly. The contents of the window can respond to the resizeStack message to be maximized within the window's content region without necessarily constraining the resize of the window's shape itself. -- Richard Gaskin Fourth World Systems J. Landman Gay wrote: > I think he wants to use window resizing as an automatic zoom, like > a magnifying glass. Google Maps does this with + and - buttons but > doesn't resize the window content to fit. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > On March 18, 2018 11:58:55 AM Richard Gaskin via use-livecode wrote: > > But if maintaining the image within the window to maximally fit > the window's rect while maintaining its proportions is the goal, > a suitably neutral color fil From hh at hyperhh.de Sun Mar 18 14:29:26 2018 From: hh at hyperhh.de (hh) Date: Sun, 18 Mar 2018 19:29:26 +0100 Subject: Stupid Question Again - Proportional Scaling Message-ID: <455B1FAC-9D27-4215-872F-F0919C49ADA4@hyperhh.de> @Peter You could try the following (doesn't need a shiftkey down). Put the following into the stack's script and drag anywhere the image to resize it and the stack proportionally (topLeft fixed). -- 1. Don't use any resize stack handler -- 2. set resizable of the stack to FALSE local l0, t0, ew, eh on mouseDown put the long id of the target into tgt if not tgt begins with "image " then exit mouseDown put the left of this stack into l0 put the top of this stack into t0 put the formattedWidth of tgt into ew put the formattedHeight of tgt into eh put the right of tgt - the clickH into dx setRects dx,tgt end mouseDown on setRects dx,tgt lock screen; lock messages put dx+the mouseH into w0; put eh/ew * w0 into h0 set the rect of this stack to (l0,t0,l0+w0,t0+h0) set the rect of tgt to (0,0,w0,h0) if the mouse is down --> TMHO, polling the mouse is here OK then send "setRects dx,tgt" to me in 8 millisecs --> 8-16 millisecs end setRects From jacque at hyperactivesw.com Sun Mar 18 14:53:52 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Mar 2018 13:53:52 -0500 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <506a8932-06fe-fc46-b25b-822c67c55809@fourthworld.com> References: <1623a2499e0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <506a8932-06fe-fc46-b25b-822c67c55809@fourthworld.com> Message-ID: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> On 3/18/18 12:41 PM, Richard Gaskin via use-livecode wrote: > Exactly.? The contents of the window can respond to the resizeStack > message to be maximized within the window's content region without > necessarily constraining the resize of the window's shape itself. > Sure, but aesthetically it's ugly. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Mar 18 14:55:45 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Mar 2018 13:55:45 -0500 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <455B1FAC-9D27-4215-872F-F0919C49ADA4@hyperhh.de> References: <455B1FAC-9D27-4215-872F-F0919C49ADA4@hyperhh.de> Message-ID: <5efd87e6-923e-f239-9784-27d5c8875191@hyperactivesw.com> Very nice. :) On 3/18/18 1:29 PM, hh via use-livecode wrote: > @Peter > You could try the following (doesn't need a shiftkey down). > Put the following into the stack's script and drag anywhere the > image to resize it and the stack proportionally (topLeft fixed). > > -- 1. Don't use any resize stack handler > -- 2. set resizable of the stack to FALSE > > local l0, t0, ew, eh > > on mouseDown > put the long id of the target into tgt > if not tgt begins with "image " then exit mouseDown > put the left of this stack into l0 > put the top of this stack into t0 > put the formattedWidth of tgt into ew > put the formattedHeight of tgt into eh > put the right of tgt - the clickH into dx > setRects dx,tgt > end mouseDown > > on setRects dx,tgt > lock screen; lock messages > put dx+the mouseH into w0; put eh/ew * w0 into h0 > set the rect of this stack to (l0,t0,l0+w0,t0+h0) > set the rect of tgt to (0,0,w0,h0) > if the mouse is down --> TMHO, polling the mouse is here OK > then send "setRects dx,tgt" to me in 8 millisecs --> 8-16 millisecs > > > > end setRects -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Sun Mar 18 15:09:35 2018 From: hh at hyperhh.de (hh) Date: Sun, 18 Mar 2018 20:09:35 +0100 Subject: Stupid Question Again - Proportional Scaling Message-ID: Never tried to script that. It's *eventually* simple -- as always with LC. Here again a little bit optimised, changing the size also by the scrollWheel: -- 1. Don't use a resizestack handler -- 2. Set resizable of the stack to FALSE local l0, t0, ff on mouseDown put the long id of the target into tgt if not tgt begins with "image " then exit mouseDown put the left of this stack into l0 put the top of this stack into t0 -- if the image is always the same then ff can be computed once put the formattedHeight of tgt/the formattedWidth of tgt into ff put the right of tgt - the clickH into dx setRects dx,tgt end mouseDown on setRects dx,tgt if setRects is in the pendingmessages then exit setRects lock screen; lock messages put dx+the mouseH into w0 put ff*w0 into h0 set the rect of this stack to (l0,t0,l0+w0,t0+h0) set the rect of tgt to (0,0,w0,h0) if the mouse is down --> TMHO, polling the mouse is here OK then send "setRects dx,tgt" to me in 8 millisecs --> 8-16 millisecs end setRects on rawkeydown k put the long id of the target into tgt if not tgt begins with "image " then pass rawkeydown lock screen; lock messages put the left of this stack into l0 put the top of this stack into t0 switch k case 65308; put 16 into d; break -- scrollwheel backward case 65309; put -16 into d; break -- scrollwheel forward end switch put d+the width of tgt into w0 -- if the image is always the same then this becomes: put w0*ff into h0 put w0*the formattedHeight of tgt/the formattedWidth of tgt into h0 set the rect of this stack to (l0,t0,l0+w0,t0+h0) set the rect of tgt to (0,0,w0,h0) end rawkeydown From jacque at hyperactivesw.com Sun Mar 18 15:57:11 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Mar 2018 14:57:11 -0500 Subject: A poor man's app updater In-Reply-To: References: Message-ID: <0818e589-36b8-632d-68d1-2bbb004defcc@hyperactivesw.com> On 3/18/18 6:44 AM, Graham Samuel via use-livecode wrote: > Now, here is the primitive bit: if the user selects the update option, he/she is invited to carry out the following sequence: > > - quit the current version (actually this can of course be done automatically via an ?OK? button); I'd automate this. The fewer steps the user needs to follow, the better. > - delete the current version using the facilities of the OS (just trash it from the Applications folder on a Mac, or use the Control Panel on Windows): there is no reliable way of doing this from within an LC standalone, AFAIK; I think you'd benefit from distributing some type of installer. When the user clicks the "OK" button, launch the URL of your web site where they can download it. Matthias' LC installer is ready (and the signing version is close to ready) so you could use that while staying within the LC environment. It does all the work for you. Users know how to use installers and many Windows users don't understand anything else. There are more users than you think who don't know how to find a file or where apps are stored on their drive. The OS and/or the installer will manage older versions so you don't have to. > - download and run a special ?Uninstall Helper? program that gets rid of the Working Stack in the writeable area, plus preference files and the like - I don?t see any way of making this happen automatically, since logically it needs to be done **after** the main program is deleted; Instead of a helper, I'd put some logic into your app itself. The working stack would have a custom property with its current version number. The standalone would check on launch if the working stack exists, and if so, if its custom version property matches the one it expects. If not, overwrite the existing one with the new one. The new one could either be downloaded from the internet on demand, or stored as a binary in a custom property of the standalone. Either way, overwriting is just a matter of putting the binary content into the existing stack file path on disk. > - use the information given at the time of purchase to download the appropriate installer from the server; > > - reinstall the program and input the registration data from the original purchase. So, it sounds like you are already using an installer. If so, they're mostly done. I wouldn't remove the user registration file or preferences; unless it's changed there's no reason to make the user find their registration info again (and many will lose or misplace it, which will increase support requests.) The short summary: The user only has to click "OK", the app quits, and the user is taken to a web site to download the update installer. Once they launch that and run the install, everything else is automatic. On first launch, the app replaces any necessary files. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Sun Mar 18 16:36:43 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 18 Mar 2018 13:36:43 -0700 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> References: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> Message-ID: <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> J. Landman Gay wrote: > On 3/18/18 12:41 PM, Richard Gaskin via use-livecode wrote: >> Exactly. The contents of the window can respond to the resizeStack >> message to be maximized within the window's content region without >> necessarily constraining the resize of the window's shape itself. >> > > Sure, but aesthetically it's ugly. That's a pretty sweeping dismissal of the countless apps that handle this problem that way. Some feel that many multi-window apps are ugly, in a world increasingly migrating to less fidgety UIs that keep everything in one window separated by panes (consider Premier vs iMovie). Personally, I'm disinclined to consider any solution "ugly" until I've seen the context of use. With this challenge of displaying an image in a window, if the common solution is truly ugly you've chosen the wrong neutral color. ;) Otherwise it's simply a design decision, as attractive or unattractive as you make it. Inventing novel interaction models that break from user expectations is not without some risk of its own. I won't go so far as to say it's necessarily ugly, but whenever I find myself considering a seldom-seen against-the-grain solution I first look at how others solve this and consider the necessity of inventing new ways of doing things as common as resizing windows. But in some rare cases, rare solutions may be the perfect fit. HH's code is very nice - does the job well, resizing very smoothly on my Ubuntu box. If it's what's needed, by all means use it. Without seeing the full app design, I have no opinion of whether any proposed solution could be considered attractive or otherwise. I'm just providing options for consideration. -- 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 benr_mc at cogapp.com Sun Mar 18 10:39:19 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sun, 18 Mar 2018 14:39:19 +0000 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> Message-ID: <7f8a9a46-d1e8-bab2-04de-36935074f10b@cogapp.com> I think this depends on the base URL. If it's with a simple URL, there's no reason why an appended '#' parameter should cause a browser to request it fresh; as Mike says, it indicates scrolling to an anchor in the page. So it's perfectly reasonable for a smart browser - or a caching layer on the server, or in a proxy somewhere between you and the server - to use a cached version of that page ignoring the '#' suffix. With a simple URL, the better choice is to use "?" to append a parameter (I usually use 'the milliseconds' to guarantee that it's unique). Neither the browser nor any caching layer on the chain between the user agent and the source system should recognise it as the same URL, so this should force a fresh load. You can just use e.g. put "?" & the milliseconds after tURL or to be more explicit, name the parameter something e.g. put "?nocache=" & the milliseconds after tURL or put "?uniqueid=" & the milliseconds after tURL The only downside of using "?" is that if the URL may already includes parameters starting with "?" (which is what I mean by "not a simple URL"), you need to test for that and use "&" instead of "?" to indicate that this is an additional parameter; and if this is a dynamic request, which uses the 'query parameters' in the URL to decide what to return, you need to be sure that adding your parameter won't affect it! On 16/03/2018 13:31, Mike Bonner via use-livecode wrote: > Another way around the cache problem is to use the #2 trick at the end of > the url. Send each request with a pound and different number at the end of > the url and it'll be seen as a new request thus doing an end run around the > cache. Since it designates an inline anchor position on the page, it > should have zero affect on the way the url functions. (unless things have > changed, the associated anchor doesn't need to exist on the page) > > Thanks for the neat trick Charles. :) > > On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Wow....I'm impressed....thats quite a hack Charles..I will study all this >> see how far I get..... >> >> Thank you gentlemen....you are Rockstars!! >> >> On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Maybe not 100% reliable but .... >>> >>> https://stackoverflow.com/questions/1341089/using-meta- >>> tags-to-turn-off-caching-in-all-browsers >>> >>> Regards Lagi >>> >>> On 16 March 2018 at 09:48, Charles Warwick via use-livecode >>> wrote: >>>> Hi Tom, >>>> >>>> If the site you are trying to contact has CORS enabled appropriately, >>> then you can do something like this... >>>> >>>> With the LiveCode browser widget, you can call JavaScript functions >> from >>> LC script and have the JavaScript functions call LC handlers in return. >>> JavaScript has the capability to perform asynchronous HTTP requests. >>>> >>>> You can create a HTML page that you automatically load up in the >> browser >>> widget that has a small JavaScript function which you can call from LC >> with >>> ?do in widget?. All this function needs to do is issue an asynchronous >>> HTTP call to the URL passed to it as a parameter and when it receives the >>> data, return it back to your LC script by calling a nominated LC handler >>> and passing the returned data as a parameter. >>>> >>>> The HTML page would look something like this: >>>> >>>> >>>> >>>> Javascript Async Test >>>> >>>> >>>> >>>> >>>> >>>> >>>> You can either load that from a file into the browser widget?s URL or >>> set its htmlText property accordingly... >>>> >>>> Then in LC, make sure you register the httpRequestComplete handler so >>> that the widget can call it: >>>> >>>> set the javascriptHandlers of widget ?browser? to ?httpRequestComplete? >>>> >>>> After that, add a httpRequestComplete handler to the card script to >>> handle the returned data: >>>> >>>> on httpRequestComplete pUrl, pData >>>> ? pUrl will be the URL requested >>>> ? pData will be the data returned from the URL requested >>>> end httpRequestComplete >>>> >>>> Lastly, make your async requests.... >>>> >>>> do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? >>>> >>>> Since the JavaScript in the browser widget is issuing the requests and >>> sending the data back to LC, it doesn?t need to display anything related >> to >>> it in the browser widget itself - it can be a blank canvas. >>>> >>>> Just be aware that the browser widget can cache URLs and there is no >>> easy way (that I know of?) in LC to clear the browser?s cache... so if >> you >>> see very quick responses on a second or subsequent request to the same >> URL, >>> it is likely pulling it all from the browser?s cache. >>>> >>>> Cheers, >>>> >>>> Charles >>>> >>>>>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Great hints there Mike .... thanks alot. Luckily I'm desktop only >>> right >>>>>> now. >>>>>> >>>>>> It shouldn't be too long before I sit down to make something that I >> can >>>>>> rely on and reuse in future projects. >>>>>> >>>>>> Might turn out I will have to hire someone to help which is cool too. >>>>>> >>>>>> It only has to be very simple..and does not need to match performance >>> of >>>>>> Tsnet. >>>>>> >>>>>> Anything more than 1 would be a great start. LOL. >>>>>> >>>>>> I will look into the libURL library and then try to guess which way I >>>>>> should go my first attempt to hack this. >>>>>> >>>>>> I'll keep you guys posted on the progress..I think I need a name for >>> this >>>>>> little project. >>>>>> >>>>>> Thanks you >>>>>> >>>>>> Tom >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From htorrado at networkdreams.es Sun Mar 18 22:08:16 2018 From: htorrado at networkdreams.es (Heriberto Torrado) Date: Sun, 18 Mar 2018 22:08:16 -0400 Subject: Dinamyc variables. In-Reply-To: <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> References: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> Message-ID: <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> Dear Livecode programmers, I am trying to create a new variable with the name of a dynamically generated card. Please note that I would like to create a new variable, not to put the name of the card inside the variable. I would like to have something like this (PseudoCode) "Get the name of this card and create a variable with the name of the card." I searched the forum and the dictionary but I cannot find how to do that. Best regards/ Saludos cordiales/ Cordialement Heriberto Torrado ?Chief Technology Officer (CTO) ?Director de inform?tica Directeur informatique *NetDreams S.C.* http://www.networkdreams.net From prothero at earthlearningsolutions.org Sun Mar 18 22:27:25 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sun, 18 Mar 2018 19:27:25 -0700 Subject: Dinamyc variables. In-Reply-To: <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> References: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> Message-ID: Can you use value(cdname) ? Haven?t tried it, tho. Bill William Prothero http://es.earthednet.org > On Mar 18, 2018, at 7:08 PM, Heriberto Torrado via use-livecode wrote: > > > Dear Livecode programmers, > > I am trying to create a new variable with the name of a dynamically generated card. > Please note that I would like to create a new variable, not to put the name of the card inside the variable. > > I would like to have something like this (PseudoCode) > > "Get the name of this card and create a variable with the name of the card." > > I searched the forum and the dictionary but I cannot find how to do that. > > Best regards/ Saludos cordiales/ Cordialement > > Heriberto Torrado > ?Chief Technology Officer (CTO) > ?Director de inform?tica > Directeur informatique > > *NetDreams S.C.* > http://www.networkdreams.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 monte at appisle.net Sun Mar 18 22:35:32 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 19 Mar 2018 13:35:32 +1100 Subject: Dinamyc variables. In-Reply-To: <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> References: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> Message-ID: <45521889-880C-4F39-8F87-7059C7A703E8@appisle.net> > On 19 Mar 2018, at 1:08 pm, Heriberto Torrado via use-livecode wrote: > I am trying to create a new variable with the name of a dynamically generated card. > Please note that I would like to create a new variable, not to put the name of the card inside the variable. This seems a little strange. Are you sure you aren?t suffering from an X/Y problem here. Perhaps explain what it is you are wanting to do with the variable? Cheers Monte From charles at techstrategies.com.au Sun Mar 18 22:59:21 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Mon, 19 Mar 2018 12:59:21 +1000 Subject: tsNet woes In-Reply-To: References: Message-ID: Hi Dan, LC 8.1.9 has the latest version of tsNet at present. If this is something you are still experiencing, are you able to share the code with me so I can see if I can replicate it? Regards, Charles > On 14 Mar 2018, at 12:37 am, Dan Friedman via use-livecode wrote: > > Charles, > > I misspoke? I?m not on 8.1.5, I?m using 8.1.9. Is there another version you would recommend? > > -Dan > > > Hi Dan, > > If tsNetIsSyncBlocked() is always returning true then a connection must be stalled. > > The latest version of tsNet defaults to timing out stalled connections after 30 seconds. If you want to stay with LC 8.1.5 then just add the following code in your application?s startup: > > tsNetSetTimeouts 60,0,300000,60000,30,1000 > > The last two parameters of this command mean timeout the connection in 30 seconds if less than 1000 bytes per second are transferred over this period. > > You can adjust those values to suit your application. > > Regards, > > Charles > > >> On Mon, Mar 12, 2018 at 7:11 PM, Dan Friedman via use-livecode < >> >>> Greetings! >>> >>> I have an app I am working on and it?s working perfectly on my Mac and in >>> the iOS simulator. However, on an Android device, once I do a couple of >>> get urls, tsNet stops functioning. I get a variety of results: >>> >>> Previous request not completed >>> Sync request already in progress (most common) >>> tsNet is not initialized >>> >>> Also, tsNetIsSyncBlocked() always returns true. >>> >>> I am using LC Indy 8.1.5. Any thoughts or advise? >>> >>> -Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From charles at techstrategies.com.au Sun Mar 18 23:07:19 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Mon, 19 Mar 2018 13:07:19 +1000 Subject: tsNetSmtpSync (with attachment In-Reply-To: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> Message-ID: <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> Hi, That does seem odd... Is there any chance you might have some anti-virus software running that might be getting in the way? Regards, Charles > On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode wrote: > > Hallo all, > > try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) > > I tried the sample stack "Mail v1.2" from > https://downloads.techstrategies.com.au/tsnet/LCMail.livecode > > I get an error when I try to send with an attachment (PDF document): > > Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) > returned from server > > > Without the attachment the email is send. > > Windows 7, LC 8.1.9 > > > Any ideas? > > Best > G?nter > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sun Mar 18 23:54:13 2018 From: tom at makeshyft.com (Tom Glod) Date: Sun, 18 Mar 2018 23:54:13 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: <7f8a9a46-d1e8-bab2-04de-36935074f10b@cogapp.com> References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> <7f8a9a46-d1e8-bab2-04de-36935074f10b@cogapp.com> Message-ID: Yup, realized that when I thought about and tried mikes suggestion Yes using a ? works just the same as # but may be safer in some way.. I'm just completing demo stack for this .....works flawlessly. Thanks to everyone who chimed in here to help me find solution...hopefully i can make it easier on others to publish a demo stack. On Sun, Mar 18, 2018 at 10:39 AM, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > I think this depends on the base URL. If it's with a simple URL, there's > no reason why an appended '#' parameter should cause a browser to request > it fresh; as Mike says, it indicates scrolling to an anchor in the page. So > it's perfectly reasonable for a smart browser - or a caching layer on the > server, or in a proxy somewhere between you and the server - to use a > cached version of that page ignoring the '#' suffix. > > With a simple URL, the better choice is to use "?" to append a parameter > (I usually use 'the milliseconds' to guarantee that it's unique). Neither > the browser nor any caching layer on the chain between the user agent and > the source system should recognise it as the same URL, so this should force > a fresh load. You can just use e.g. > put "?" & the milliseconds after tURL > > or to be more explicit, name the parameter something e.g. > put "?nocache=" & the milliseconds after tURL > or > > put "?uniqueid=" & the milliseconds after tURL > > The only downside of using "?" is that if the URL may already includes > parameters starting with "?" (which is what I mean by "not a simple URL"), > you need to test for that and use "&" instead of "?" to indicate that this > is an additional parameter; and if this is a dynamic request, which uses > the 'query parameters' in the URL to decide what to return, you need to be > sure that adding your parameter won't affect it! > > > On 16/03/2018 13:31, Mike Bonner via use-livecode wrote: > >> Another way around the cache problem is to use the #2 trick at the end of >> the url. Send each request with a pound and different number at the end >> of >> the url and it'll be seen as a new request thus doing an end run around >> the >> cache. Since it designates an inline anchor position on the page, it >> should have zero affect on the way the url functions. (unless things have >> changed, the associated anchor doesn't need to exist on the page) >> >> Thanks for the neat trick Charles. :) >> >> On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Wow....I'm impressed....thats quite a hack Charles..I will study all this >>> see how far I get..... >>> >>> Thank you gentlemen....you are Rockstars!! >>> >>> On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Maybe not 100% reliable but .... >>>> >>>> https://stackoverflow.com/questions/1341089/using-meta- >>>> tags-to-turn-off-caching-in-all-browsers >>>> >>>> Regards Lagi >>>> >>>> On 16 March 2018 at 09:48, Charles Warwick via use-livecode >>>> wrote: >>>> >>>>> Hi Tom, >>>>> >>>>> If the site you are trying to contact has CORS enabled appropriately, >>>>> >>>> then you can do something like this... >>>> >>>>> >>>>> With the LiveCode browser widget, you can call JavaScript functions >>>>> >>>> from >>> >>>> LC script and have the JavaScript functions call LC handlers in return. >>>> JavaScript has the capability to perform asynchronous HTTP requests. >>>> >>>>> >>>>> You can create a HTML page that you automatically load up in the >>>>> >>>> browser >>> >>>> widget that has a small JavaScript function which you can call from LC >>>> >>> with >>> >>>> ?do in widget?. All this function needs to do is issue an asynchronous >>>> HTTP call to the URL passed to it as a parameter and when it receives >>>> the >>>> data, return it back to your LC script by calling a nominated LC handler >>>> and passing the returned data as a parameter. >>>> >>>>> >>>>> The HTML page would look something like this: >>>>> >>>>> >>>>> >>>>> Javascript Async Test >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> You can either load that from a file into the browser widget?s URL or >>>>> >>>> set its htmlText property accordingly... >>>> >>>>> >>>>> Then in LC, make sure you register the httpRequestComplete handler so >>>>> >>>> that the widget can call it: >>>> >>>>> >>>>> set the javascriptHandlers of widget ?browser? to ?httpRequestComplete? >>>>> >>>>> After that, add a httpRequestComplete handler to the card script to >>>>> >>>> handle the returned data: >>>> >>>>> >>>>> on httpRequestComplete pUrl, pData >>>>> ? pUrl will be the URL requested >>>>> ? pData will be the data returned from the URL requested >>>>> end httpRequestComplete >>>>> >>>>> Lastly, make your async requests.... >>>>> >>>>> do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? >>>>> >>>>> Since the JavaScript in the browser widget is issuing the requests and >>>>> >>>> sending the data back to LC, it doesn?t need to display anything related >>>> >>> to >>> >>>> it in the browser widget itself - it can be a blank canvas. >>>> >>>>> >>>>> Just be aware that the browser widget can cache URLs and there is no >>>>> >>>> easy way (that I know of?) in LC to clear the browser?s cache... so if >>>> >>> you >>> >>>> see very quick responses on a second or subsequent request to the same >>>> >>> URL, >>> >>>> it is likely pulling it all from the browser?s cache. >>>> >>>>> >>>>> Cheers, >>>>> >>>>> Charles >>>>> >>>>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < >>>>>>> >>>>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> >>>>>>> Great hints there Mike .... thanks alot. Luckily I'm desktop only >>>>>>> >>>>>> right >>>> >>>>> now. >>>>>>> >>>>>>> It shouldn't be too long before I sit down to make something that I >>>>>>> >>>>>> can >>> >>>> rely on and reuse in future projects. >>>>>>> >>>>>>> Might turn out I will have to hire someone to help which is cool too. >>>>>>> >>>>>>> It only has to be very simple..and does not need to match performance >>>>>>> >>>>>> of >>>> >>>>> Tsnet. >>>>>>> >>>>>>> Anything more than 1 would be a great start. LOL. >>>>>>> >>>>>>> I will look into the libURL library and then try to guess which way I >>>>>>> should go my first attempt to hack this. >>>>>>> >>>>>>> I'll keep you guys posted on the progress..I think I need a name for >>>>>>> >>>>>> this >>>> >>>>> little project. >>>>>>> >>>>>>> Thanks you >>>>>>> >>>>>>> Tom >>>>>>> >>>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> >>>> subscription preferences: >>>> >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Mon Mar 19 01:11:16 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 19 Mar 2018 05:11:16 +0000 Subject: LC 9 and Icon Families In-Reply-To: References: Message-ID: I finally got around to setting up an account and uploaded my tool. It works pretty good as a plugin, but I need to top level it once per session for the navigation to work (grid card). Thanks, Brian On Thu, Mar 15, 2018 at 4:35 AM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > @Brian > Please add your tool also to "Sample Stacks". > This was reworked in the last year and works really fine here. > And it is *very* fast for searching and downloading a stack. > > Such wonderful stacks go (somehow) lost in the list or the forum. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Mon Mar 19 01:53:27 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 19 Mar 2018 01:53:27 -0400 Subject: Not sure what to do.....can I run this by you guys? In-Reply-To: References: <44D2D0F2-05B0-48C9-BC52-B06E3FDCD2C3@techstrategies.com.au> <920C2E80-3739-43DD-8DB5-D64928EDF423@techstrategies.com.au> <7f8a9a46-d1e8-bab2-04de-36935074f10b@cogapp.com> Message-ID: Hi everyone here is the github repo for the stack demonstrating the solution. May not work on all cases but can for many. Seems to work very well for my needs. 10 requests ...no problem. have not done more. https://github.com/makeshyft-tom-g/lc-single-domain-asynchronous-http On Sun, Mar 18, 2018 at 11:54 PM, Tom Glod wrote: > Yup, realized that when I thought about and tried mikes suggestion > > Yes using a ? works just the same as # but may be safer in some way.. > > I'm just completing demo stack for this .....works flawlessly. > > Thanks to everyone who chimed in here to help me find solution...hopefully > i can make it easier on others to publish a demo stack. > > > > > On Sun, Mar 18, 2018 at 10:39 AM, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I think this depends on the base URL. If it's with a simple URL, there's >> no reason why an appended '#' parameter should cause a browser to request >> it fresh; as Mike says, it indicates scrolling to an anchor in the page. So >> it's perfectly reasonable for a smart browser - or a caching layer on the >> server, or in a proxy somewhere between you and the server - to use a >> cached version of that page ignoring the '#' suffix. >> >> With a simple URL, the better choice is to use "?" to append a parameter >> (I usually use 'the milliseconds' to guarantee that it's unique). Neither >> the browser nor any caching layer on the chain between the user agent and >> the source system should recognise it as the same URL, so this should force >> a fresh load. You can just use e.g. >> put "?" & the milliseconds after tURL >> >> or to be more explicit, name the parameter something e.g. >> put "?nocache=" & the milliseconds after tURL >> or >> >> put "?uniqueid=" & the milliseconds after tURL >> >> The only downside of using "?" is that if the URL may already includes >> parameters starting with "?" (which is what I mean by "not a simple URL"), >> you need to test for that and use "&" instead of "?" to indicate that this >> is an additional parameter; and if this is a dynamic request, which uses >> the 'query parameters' in the URL to decide what to return, you need to be >> sure that adding your parameter won't affect it! >> >> >> On 16/03/2018 13:31, Mike Bonner via use-livecode wrote: >> >>> Another way around the cache problem is to use the #2 trick at the end of >>> the url. Send each request with a pound and different number at the end >>> of >>> the url and it'll be seen as a new request thus doing an end run around >>> the >>> cache. Since it designates an inline anchor position on the page, it >>> should have zero affect on the way the url functions. (unless things >>> have >>> changed, the associated anchor doesn't need to exist on the page) >>> >>> Thanks for the neat trick Charles. :) >>> >>> On Fri, Mar 16, 2018 at 7:24 AM, Tom Glod via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> Wow....I'm impressed....thats quite a hack Charles..I will study all this >>>> see how far I get..... >>>> >>>> Thank you gentlemen....you are Rockstars!! >>>> >>>> On Fri, Mar 16, 2018 at 7:13 AM, Lagi Pittas via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Maybe not 100% reliable but .... >>>>> >>>>> https://stackoverflow.com/questions/1341089/using-meta- >>>>> tags-to-turn-off-caching-in-all-browsers >>>>> >>>>> Regards Lagi >>>>> >>>>> On 16 March 2018 at 09:48, Charles Warwick via use-livecode >>>>> wrote: >>>>> >>>>>> Hi Tom, >>>>>> >>>>>> If the site you are trying to contact has CORS enabled appropriately, >>>>>> >>>>> then you can do something like this... >>>>> >>>>>> >>>>>> With the LiveCode browser widget, you can call JavaScript functions >>>>>> >>>>> from >>>> >>>>> LC script and have the JavaScript functions call LC handlers in return. >>>>> JavaScript has the capability to perform asynchronous HTTP requests. >>>>> >>>>>> >>>>>> You can create a HTML page that you automatically load up in the >>>>>> >>>>> browser >>>> >>>>> widget that has a small JavaScript function which you can call from LC >>>>> >>>> with >>>> >>>>> ?do in widget?. All this function needs to do is issue an >>>>> asynchronous >>>>> HTTP call to the URL passed to it as a parameter and when it receives >>>>> the >>>>> data, return it back to your LC script by calling a nominated LC >>>>> handler >>>>> and passing the returned data as a parameter. >>>>> >>>>>> >>>>>> The HTML page would look something like this: >>>>>> >>>>>> >>>>>> >>>>>> Javascript Async Test >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> You can either load that from a file into the browser widget?s URL or >>>>>> >>>>> set its htmlText property accordingly... >>>>> >>>>>> >>>>>> Then in LC, make sure you register the httpRequestComplete handler so >>>>>> >>>>> that the widget can call it: >>>>> >>>>>> >>>>>> set the javascriptHandlers of widget ?browser? to >>>>>> ?httpRequestComplete? >>>>>> >>>>>> After that, add a httpRequestComplete handler to the card script to >>>>>> >>>>> handle the returned data: >>>>> >>>>>> >>>>>> on httpRequestComplete pUrl, pData >>>>>> ? pUrl will be the URL requested >>>>>> ? pData will be the data returned from the URL requested >>>>>> end httpRequestComplete >>>>>> >>>>>> Lastly, make your async requests.... >>>>>> >>>>>> do (?httpGetAsync(?http://www.livecode.com?);? in widget ?browser? >>>>>> >>>>>> Since the JavaScript in the browser widget is issuing the requests and >>>>>> >>>>> sending the data back to LC, it doesn?t need to display anything >>>>> related >>>>> >>>> to >>>> >>>>> it in the browser widget itself - it can be a blank canvas. >>>>> >>>>>> >>>>>> Just be aware that the browser widget can cache URLs and there is no >>>>>> >>>>> easy way (that I know of?) in LC to clear the browser?s cache... so if >>>>> >>>> you >>>> >>>>> see very quick responses on a second or subsequent request to the same >>>>> >>>> URL, >>>> >>>>> it is likely pulling it all from the browser?s cache. >>>>> >>>>>> >>>>>> Cheers, >>>>>> >>>>>> Charles >>>>>> >>>>>> On 16 Mar 2018, at 1:35 pm, Tom Glod via use-livecode < >>>>>>>> >>>>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>> >>>>>>>> Great hints there Mike .... thanks alot. Luckily I'm desktop only >>>>>>>> >>>>>>> right >>>>> >>>>>> now. >>>>>>>> >>>>>>>> It shouldn't be too long before I sit down to make something that I >>>>>>>> >>>>>>> can >>>> >>>>> rely on and reuse in future projects. >>>>>>>> >>>>>>>> Might turn out I will have to hire someone to help which is cool >>>>>>>> too. >>>>>>>> >>>>>>>> It only has to be very simple..and does not need to match >>>>>>>> performance >>>>>>>> >>>>>>> of >>>>> >>>>>> Tsnet. >>>>>>>> >>>>>>>> Anything more than 1 would be a great start. LOL. >>>>>>>> >>>>>>>> I will look into the libURL library and then try to guess which way >>>>>>>> I >>>>>>>> should go my first attempt to hack this. >>>>>>>> >>>>>>>> I'll keep you guys posted on the progress..I think I need a name for >>>>>>>> >>>>>>> this >>>>> >>>>>> little project. >>>>>>>> >>>>>>>> Thanks you >>>>>>>> >>>>>>>> Tom >>>>>>>> >>>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> >>>>> subscription preferences: >>>>> >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From dvglasgow at gmail.com Mon Mar 19 07:27:11 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Mon, 19 Mar 2018 11:27:11 +0000 Subject: What LC or OS incantation do I use to involve the onscreen keyboard on a Win 10 tablet? In-Reply-To: References: Message-ID: <2E28CDCC-8527-45B5-95FF-F02337F185EE@gmail.com> Colleagues in Livecode, I just purchased a Win 10 ?convertible? tablet from Lidl solely for quick Win testing LC. The upside is that it is astonishing value for money (?169). The downside is that the on screen keyboard isn?t automatically invoked when no keyboard is attached and the cursor enters a field. I can access the KB from the task bar, but who wants to do that all the time? It also doesn?t seem to move things about to avoid the KB overlaying the field in question. I have seen a few complaints online that seem to suggest that this is how it works in Win 10. I have a hard time believing that because it is so spectacularly stupid and irritating. Some apps seem to have worked around this problem, and I hope that someone on this list has also done so. Any advice? If I have to roll my own KB + field avoidance+ text entry system I will, but surely that shouldn?t be necessary? Best wishes, David Glasgow From panos.merakos at livecode.com Mon Mar 19 08:16:37 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 19 Mar 2018 12:16:37 +0000 Subject: [ANN] This Week in LiveCode 121 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #121 here: https://goo.gl/dV8FiJ This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From klaus at major-k.de Mon Mar 19 08:30:43 2018 From: klaus at major-k.de (Klaus major-k) Date: Mon, 19 Mar 2018 13:30:43 +0100 Subject: Dinamyc variables. In-Reply-To: <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> References: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> Message-ID: <84395505-5EFE-4BCA-B6AC-524623554806@major-k.de> Hola Heriberto, > Am 19.03.2018 um 03:08 schrieb Heriberto Torrado via use-livecode : > > Dear Livecode programmers, > > I am trying to create a new variable with the name of a dynamically generated card. > Please note that I would like to create a new variable, not to put the name of the card inside the variable. > I would like to have something like this (PseudoCode) > "Get the name of this card and create a variable with the name of the card." > I searched the forum and the dictionary but I cannot find how to do that. this is a case for DO! :-) ... put the short name of this cd into tCardName do ("put empty into " & tCardName) ... Et voila, an empty variable with the name of your card. If you need to create MORE than one variable from strings, just create an array with the string(s) as keys. ... put the short name of this cd into tCardName put empty into tArray[tCardName] ... > Best regards/ Saludos cordiales/ Cordialement > > Heriberto Torrado Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From richmondmathewson at gmail.com Mon Mar 19 08:33:42 2018 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 19 Mar 2018 14:33:42 +0200 Subject: What LC or OS incantation do I use to involve the onscreen keyboard on a Win 10 tablet? In-Reply-To: <2E28CDCC-8527-45B5-95FF-F02337F185EE@gmail.com> References: <2E28CDCC-8527-45B5-95FF-F02337F185EE@gmail.com> Message-ID: <8b94adf0-f7df-1ba2-879b-fd41a7386e8d@gmail.com> I thought my buying USB Microscopes in LIDL was an all-time low . . . Mind you, a friend of mine bought a kilt there. On 19.03.2018 13:27, David V Glasgow via use-livecode wrote: > Colleagues in Livecode, > > I just purchased a Win 10 ?convertible? tablet from Lidl solely for quick Win testing LC. The upside is that it is astonishing value for money (?169). > > The downside is that the on screen keyboard isn?t automatically invoked when no keyboard is attached and the cursor enters a field. I can access the KB from the task bar, but who wants to do that all the time? It also doesn?t seem to move things about to avoid the KB overlaying the field in question. Right click (hold and release) in the textField, and select show touch keyboard icon. Fairly inconvenient! Here's some horrible Visual BASIC: Sub Keyboard() On Error GoTo ErrorHandler Call ShellEx("C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe") ProcedureExit: Exit Sub ErrorHandler: MsgBox "Error" & ": " & Err.Number & vbCrLf & "Description: " _ & Err.Description, vbExclamation, "Module1.Keyboard" Resume ProcedureExit End Sub https://borncity.com/win/2015/08/24/windows10-upgrade-on-screen-keyboardtouchscreen-fix/ > > I have seen a few complaints online that seem to suggest that this is how it works in Win 10. I have a hard time believing that because it is so spectacularly stupid and irritating. I don't, frankly. > Some apps seem to have worked around this problem, and I hope that someone on this list has also done so. > > Any advice? If I have to roll my own KB + field avoidance+ text entry system I will, but surely that shouldn?t be necessary? > > Best wishes, > > David Glasgow > > _______________________________________________ > Best of luck, Richmond. From matthias_livecode_150811 at m-r-d.de Mon Mar 19 10:33:06 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 19 Mar 2018 15:33:06 +0100 Subject: Solution for signing Windows .exe,.dll and so on under Mac OS X In-Reply-To: References: Message-ID: Hi, i?ve just noticed that the link to the PDF file was not correct. You?ll find the step by step instructions here https://dl.qck.nu//?dl=Signing_Windows_files_on_MacOSX.pdf I am sorry for the confusion. Regards, Matthias Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 17.03.2018 um 09:58 schrieb Matthias Rebbe >: > > Hi, > i am not sure, if you all alread knew about it. But for me it was totally new. > > > Today i was able to successfully signing a Windows .exe file under Mac OS X. > > See the steps below. > > If the URLs are not readable, go here to download a short pdf containing the instructions. > > https://dl.qck.nu//?dl=Singing_Windows_files_on_MacOSX.pdf > > Why are url in this list email always shown twice? Is there a trick to avoid that? > > Any way. > > Regards, > > Matthias > > > > How to signcode Windows apps under Mac OS X using osslsigncode > > 1. If not already installed, install Homebrew using the Terminal > ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )" > > 2. install osslsigncode using HomeBrew, enter the following into the Terminal > brew install osslsigncode > > After successful installation you should be able to sign your Windows .exe under Mac OS X > > See examples below for signing YOURAPP.exe with a p12/pfx certificate > > SHA256 > osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha2 -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe > > SHA1 > osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha1 -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe > > Dual signing > osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha1 -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe > osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha2 -nest -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe > > > > With my Comode certificate i am using the timestamp server url http://timestamp.comodoca.com/rfc3161 > > > From bobsneidar at iotecdigital.com Mon Mar 19 11:43:06 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 19 Mar 2018 15:43:06 +0000 Subject: Dinamyc variables. In-Reply-To: <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> References: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> Message-ID: <1CF3B9F1-24E1-4817-AC07-933CF70CFFFC@iotecdigital.com> This is what Macro Substitution was created for, but LC doesn't have that function. Say you have an accounting app where you can load different companies. The names of the tables and support files on disk are serialized with a 2 digit number representing the company number. In Foxpro when you load a new company, you *could* reference the files using macro substitution: open file &tCompanyPath&tModule&tCompanynum Of course there are ways around this. Someone pointed out using an array, which is a variable containing other variables in essence. > On Mar 18, 2018, at 19:08 , Heriberto Torrado via use-livecode wrote: > > [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] > > Dear Livecode programmers, > > I am trying to create a new variable with the name of a dynamically > generated card. > Please note that I would like to create a new variable, not to put the > name of the card inside the variable. > > I would like to have something like this (PseudoCode) > > "Get the name of this card and create a variable with the name of the card." > > I searched the forum and the dictionary but I cannot find how to do that. > > Best regards/ Saludos cordiales/ Cordialement > > Heriberto Torrado > ?Chief Technology Officer (CTO) > ?Director de inform?tica > Directeur informatique > > *NetDreams S.C.* > http://www.networkdreams.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 bobsneidar at iotecdigital.com Mon Mar 19 11:45:23 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 19 Mar 2018 15:45:23 +0000 Subject: tsNetSmtpSync (with attachment In-Reply-To: <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> Message-ID: Sounds like the receiver is blocking attachments. Many mail gateways do this, either because the extension is not allowed, or the attachment is too big. Bob S > On Mar 18, 2018, at 20:07 , Charles Warwick via use-livecode wrote: > > [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] > > Hi, > > That does seem odd... Is there any chance you might have some anti-virus software running that might be getting in the way? > > Regards, > > Charles > >> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode wrote: >> >> Hallo all, >> >> try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) >> >> I tried the sample stack "Mail v1.2" from >> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >> >> I get an error when I try to send with an attachment (PDF document): >> >> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) >> returned from server >> >> >> Without the attachment the email is send. >> >> Windows 7, LC 8.1.9 >> >> >> Any ideas? >> >> Best >> G?nter >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 19 11:50:24 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 19 Mar 2018 15:50:24 +0000 Subject: Stupid Question Again - Proportional Scaling In-Reply-To: <0fd346e8-b636-b192-5c75-955743ab7a51@fourthworld.com> References: <0653C980-A7C9-4C56-96DA-0929E5631D13@reidit.co.uk> <0fd346e8-b636-b192-5c75-955743ab7a51@fourthworld.com> Message-ID: > On Mar 18, 2018, at 09:57 , Richard Gaskin via use-livecode wrote: > > How often do we see apps that constrain window resizing? This is common I think for apps which have a set of fields displaying data, tables etc. Maybe there are some panes and tabs, but to reduce the window to less than x,y would require the contents to be scrollable. We have an app whose window settings get corrupted if Windows Display has a scale factor set over 100%. Another app will simply refuse to run if the resolution of the current monitor is below a minimum. A lot of times developers don't want to deal with window geometry. Their solution is to tell you, "Don't do that" when it comes to window sizing, or they don't allow you to do it at all. Bob S From bobsneidar at iotecdigital.com Mon Mar 19 11:54:37 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 19 Mar 2018 15:54:37 +0000 Subject: Sound delay In-Reply-To: <712EC975-00FD-4BFA-9C16-DA0D965DE901@mac.com> References: <712EC975-00FD-4BFA-9C16-DA0D965DE901@mac.com> Message-ID: Hey, that's what I suggested! Bob S > On Mar 16, 2018, at 13:21 , Randy Hengst via use-livecode wrote: > > Hi William, > > I haven?t messed with this for quite a while, but the sound delay isn?t new. On iOS I found that the second sound played without delay? even when it was not a repeat of the first sound. Is that what you?ve seen? > > My workaround was to record a few seconds of silence and play that sound on openStack. > play specialFolderPath("engine") &"/"& "Silence.wav" > > I?ve not used mp3 files in LiveCode, so don?t really if you?re seeing the same thing I did with .wav files. > > be well, > randy > > Randy Hengst From paul at researchware.com Mon Mar 19 12:15:40 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 19 Mar 2018 12:15:40 -0400 Subject: Mouse wheel scrolling support... Message-ID: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> Does anyone have any code for supporting scrolling fields by use of a mouse wheel that they would care to post or email me? A search showed that this has been discussed in the past and seems to be possible by creating an appropriate handler in LC, but my Google skills failed me in finding an example of such a handler. Thank you to anyone in advance, Paul Dupuis Researchware From bonnmike at gmail.com Mon Mar 19 12:29:56 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 19 Mar 2018 10:29:56 -0600 Subject: Dinamyc variables. In-Reply-To: <1CF3B9F1-24E1-4817-AC07-933CF70CFFFC@iotecdigital.com> References: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> <1CF3B9F1-24E1-4817-AC07-933CF70CFFFC@iotecdigital.com> Message-ID: Use an array instead... put empty into tCardArrayA[the short name of this card] Newly created cards where you don't specify the card name on creation, will have a card name set to the id of the card. (like "card id 1002") On Mon, Mar 19, 2018 at 9:43 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > This is what Macro Substitution was created for, but LC doesn't have that > function. Say you have an accounting app where you can load different > companies. The names of the tables and support files on disk are serialized > with a 2 digit number representing the company number. In Foxpro when you > load a new company, you *could* reference the files using macro > substitution: > > open file &tCompanyPath&tModule&tCompanynum > > Of course there are ways around this. Someone pointed out using an array, > which is a variable containing other variables in essence. > > > On Mar 18, 2018, at 19:08 , Heriberto Torrado via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > [This message was identified as a phishing scam. Learn about phishing at > http://aka.ms/LearnAboutPhishing] > > > > Dear Livecode programmers, > > > > I am trying to create a new variable with the name of a dynamically > > generated card. > > Please note that I would like to create a new variable, not to put the > > name of the card inside the variable. > > > > I would like to have something like this (PseudoCode) > > > > "Get the name of this card and create a variable with the name of the > card." > > > > I searched the forum and the dictionary but I cannot find how to do that. > > > > Best regards/ Saludos cordiales/ Cordialement > > > > Heriberto Torrado > > ?Chief Technology Officer (CTO) > > ?Director de inform?tica > > Directeur informatique > > > > *NetDreams S.C.* > > http://www.networkdreams.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 revdev at pdslabs.net Mon Mar 19 13:06:01 2018 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 19 Mar 2018 10:06:01 -0700 Subject: Dinamyc variables. In-Reply-To: References: <57fabc42-27ca-a7e2-4d85-1915140d580c@hyperactivesw.com> <46471471-c526-ddcd-02d5-e830f7e42506@fourthworld.com> <385990ad-cec2-3ca0-d878-47f46db3b0b0@networkdreams.es> <1CF3B9F1-24E1-4817-AC07-933CF70CFFFC@iotecdigital.com> Message-ID: On 3/19/18 9:29 AM, Mike Bonner via use-livecode wrote: > Use an array instead... > put empty into tCardArrayA[the short name of this card] > Newly created cards where you don't specify the card name on creation, will > have a card name set to the id of the card. (like "card id 1002") And the array approach allows the card names to contain spaces (consist of multiple words), where the "do" approach does not. Phil Davis > > On Mon, Mar 19, 2018 at 9:43 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> This is what Macro Substitution was created for, but LC doesn't have that >> function. Say you have an accounting app where you can load different >> companies. The names of the tables and support files on disk are serialized >> with a 2 digit number representing the company number. In Foxpro when you >> load a new company, you *could* reference the files using macro >> substitution: >> >> open file &tCompanyPath&tModule&tCompanynum >> >> Of course there are ways around this. Someone pointed out using an array, >> which is a variable containing other variables in essence. >> >>> On Mar 18, 2018, at 19:08 , Heriberto Torrado via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> [This message was identified as a phishing scam. Learn about phishing at >> http://aka.ms/LearnAboutPhishing] >>> Dear Livecode programmers, >>> >>> I am trying to create a new variable with the name of a dynamically >>> generated card. >>> Please note that I would like to create a new variable, not to put the >>> name of the card inside the variable. >>> >>> I would like to have something like this (PseudoCode) >>> >>> "Get the name of this card and create a variable with the name of the >> card." >>> I searched the forum and the dictionary but I cannot find how to do that. >>> >>> Best regards/ Saludos cordiales/ Cordialement >>> >>> Heriberto Torrado >>> ?Chief Technology Officer (CTO) >>> ?Director de inform?tica >>> Directeur informatique >>> >>> *NetDreams S.C.* >>> http://www.networkdreams.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 -- Phil Davis From dunbarx at aol.com Mon Mar 19 13:23:32 2018 From: dunbarx at aol.com (dunbarx) Date: Mon, 19 Mar 2018 10:23:32 -0700 (MST) Subject: Mouse wheel scrolling support... In-Reply-To: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> Message-ID: <1521480212963-0.post@n4.nabble.com> Paul. What beyond trapping the "scrollBarDrag" message were you looking for? Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From paul at researchware.com Mon Mar 19 13:32:55 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 19 Mar 2018 13:32:55 -0400 Subject: Mouse wheel scrolling support... In-Reply-To: <1521480212963-0.post@n4.nabble.com> References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> <1521480212963-0.post@n4.nabble.com> Message-ID: <0847db03-bfaa-d3d4-ff38-b0ed57657c24@researchware.com> On 3/19/2018 1:23 PM, dunbarx via use-livecode wrote: > Paul. > > What beyond trapping the "scrollBarDrag" message were you looking for? > Is that the event message LiveCode generates when a mouse with a mouse wheel is turned? I can find no documentation on mouse wheel support in the scrollbardrag dictionary entry. I also do not have a mouse with a mouse wheel, so I am sort of looking for a proven, known approach that works. In my specific case, I am looking to not only scroll a field (in one context) but in another window enable a scroller/slider to be moved by a mouse wheel and another a scrolling group. From revdev at pdslabs.net Mon Mar 19 13:37:52 2018 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 19 Mar 2018 10:37:52 -0700 Subject: height of title bar Message-ID: <6d86c270-c074-4658-d790-92b7e2728d2a@pdslabs.net> Is there a way in LC to discover the height of a window's title bar? I tried comparing item 2 of the card's globalLoc(topleft of this card) to item 2 of the stack's topleft, but they are the same. I tried comparing the stack's topleft with no decorations to the same but with decorations. No joy. Same. Any other ideas? Thanks - Phil -- Phil Davis From paul at researchware.com Mon Mar 19 13:46:45 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 19 Mar 2018 13:46:45 -0400 Subject: height of title bar In-Reply-To: <6d86c270-c074-4658-d790-92b7e2728d2a@pdslabs.net> References: <6d86c270-c074-4658-d790-92b7e2728d2a@pdslabs.net> Message-ID: <20147a73-3dc8-0331-7ae2-4ed2416d43fc@researchware.com> On 3/19/2018 1:37 PM, Phil Davis via use-livecode wrote: > Is there a way in LC to discover the height of a window's title bar? > > I tried comparing item 2 of the card's globalLoc(topleft of this card) > to item 2 of the stack's topleft, but they are the same. > > I tried comparing the stack's topleft with no decorations to the same > but with decorations. No joy. Same. > > Any other ideas? > > Thanks - > Phil > See the use of the 'effective' keyword in the dictionary under the rectangle property. Essentially the 'effective rect of window X' minus the 'rect of window x' give you the height of the title bar for teh top coordinates and the size of the border for left, right, and bottom coordinates. From revdev at pdslabs.net Mon Mar 19 13:53:54 2018 From: revdev at pdslabs.net (Phil Davis) Date: Mon, 19 Mar 2018 10:53:54 -0700 Subject: height of title bar In-Reply-To: <20147a73-3dc8-0331-7ae2-4ed2416d43fc@researchware.com> References: <6d86c270-c074-4658-d790-92b7e2728d2a@pdslabs.net> <20147a73-3dc8-0331-7ae2-4ed2416d43fc@researchware.com> Message-ID: Thank you Paul! It does indeed work as you said. Phil On 3/19/18 10:46 AM, Paul Dupuis via use-livecode wrote: > On 3/19/2018 1:37 PM, Phil Davis via use-livecode wrote: >> Is there a way in LC to discover the height of a window's title bar? >> >> I tried comparing item 2 of the card's globalLoc(topleft of this card) >> to item 2 of the stack's topleft, but they are the same. >> >> I tried comparing the stack's topleft with no decorations to the same >> but with decorations. No joy. Same. >> >> Any other ideas? >> >> Thanks - >> Phil >> > See the use of the 'effective' keyword in the dictionary under the > rectangle property. Essentially the 'effective rect of window X' minus > the 'rect of window x' give you the height of the title bar for teh top > coordinates and the size of the border for left, right, and bottom > coordinates. > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Mon Mar 19 14:49:23 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 19 Mar 2018 13:49:23 -0500 Subject: Mouse wheel scrolling support... In-Reply-To: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> Message-ID: On 3/19/18 11:15 AM, Paul Dupuis via use-livecode wrote: > Does anyone have any code for supporting scrolling fields by use of a > mouse wheel that they would care to post or email me? From my cribbed collection: on rawKeyDown pKeyNumber if pKeyNumber is 65308 then put 15 into tScrollInc -- increaseScroll, scroll wheel down else if pKeyNumber is 65309 then put -15 into tScrollInc -- decreaseScroll, scroll wheel up if tScrollInc is empty then pass rawKeyDown set the vScroll of me to (the vScroll of me + tScrollInc) end rawKeyDown -- both vertical and horizontal: on rawKeyDown pKey switch pKey case 65309 set the vScroll of me to the vScroll of me - 30 break case 65308 set the vScroll of me to the vScroll of me + 30 break case 65311 set the hScroll of me to the hScroll of me - 30 break case 65310 set the hScroll of me to the hScroll of me +30 break default pass rawKeyDown end switch end rawKeyDown -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Mon Mar 19 14:49:43 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 19 Mar 2018 19:49:43 +0100 Subject: Solution for signing Windows .exe,.dll and so on under Mac OS X In-Reply-To: References: Message-ID: The url for the pdf download links to my server (dl.qck.nu), in case you are concerned about the domain name. That domain is used to provide several services using LC server. So nothing harmful. Matthias Rebbe Tel +49 5741 310000 ?https://matthiasrebbe.eu ? > Am 19.03.2018 um 15:33 schrieb Matthias Rebbe via use-livecode >: > > Hi, > > i?ve just noticed that the link to the PDF file was not correct. > > You?ll find the step by step instructions here > > https://dl.qck.nu//?dl=Signing_Windows_files_on_MacOSX.pdf > > > I am sorry for the confusion. > > Regards, > Matthias > > Matthias Rebbe > Tel +49 5741 310000 > ?https://matthiasrebbe.eu >? > >> Am 17.03.2018 um 09:58 schrieb Matthias Rebbe >>: >> >> Hi, >> i am not sure, if you all alread knew about it. But for me it was totally new. >> >> >> Today i was able to successfully signing a Windows .exe file under Mac OS X. >> >> See the steps below. >> >> If the URLs are not readable, go here to download a short pdf containing the instructions. >> >> https://dl.qck.nu//?dl=Singing_Windows_files_on_MacOSX.pdf > >> >> Why are url in this list email always shown twice? Is there a trick to avoid that? >> >> Any way. >> >> Regards, >> >> Matthias >> >> >> >> How to signcode Windows apps under Mac OS X using osslsigncode >> >> 1. If not already installed, install Homebrew using the Terminal >> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >)" >> >> 2. install osslsigncode using HomeBrew, enter the following into the Terminal >> brew install osslsigncode >> >> After successful installation you should be able to sign your Windows .exe under Mac OS X >> >> See examples below for signing YOURAPP.exe with a p12/pfx certificate >> >> SHA256 >> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha2 -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe >> >> SHA1 >> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha1 -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe >> >> Dual signing >> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha1 -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe >> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h sha2 -nest -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe >> >> >> >> With my Comode certificate i am using the timestamp server url http://timestamp.comodoca.com/rfc3161 > >> >> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 19 15:18:32 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 19 Mar 2018 21:18:32 +0200 Subject: Mouse wheel scrolling support... In-Reply-To: References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> Message-ID: <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> At the risk of sounding both naive and stupid I have just pasted a large text into a field with a vertical scrollBar in a field in a stack in LC 7.1.4 on Mac OS 10.7.5. With the "blobby thing" that passes for a scroll wheel on my A1152 Apple mouse I am able to scroll up and down in the field with no trouble at all. So, would be glad if you could explain in a bit more detail what you mean by "supporting scrolling fields by use of a mouse wheel". Richmond. On 19/3/2018 8:49 pm, J. Landman Gay via use-livecode wrote: > On 3/19/18 11:15 AM, Paul Dupuis via use-livecode wrote: >> Does anyone have any code for supporting scrolling fields by use of a >> mouse wheel that they would care to post or email me? > > From my cribbed collection: > > on rawKeyDown pKeyNumber > if pKeyNumber is 65308 then put 15 into tScrollInc -- > increaseScroll, scroll wheel down > else if pKeyNumber is 65309 then put -15 into tScrollInc -- > decreaseScroll, scroll wheel up > if tScrollInc is empty then pass rawKeyDown > set the vScroll of me to (the vScroll of me + tScrollInc) > end rawKeyDown > > -- both vertical and horizontal: > > on rawKeyDown pKey > switch pKey > case 65309 > set the vScroll of me to the vScroll of me - 30 > break > case 65308 > set the vScroll of me to the vScroll of me + 30 > break > case 65311 > set the hScroll of me to the hScroll of me - 30 > break > case 65310 > set the hScroll of me to the hScroll of me +30 > break > default > pass rawKeyDown > end switch > end rawKeyDown From paul at researchware.com Mon Mar 19 16:11:18 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 19 Mar 2018 16:11:18 -0400 Subject: Mouse wheel scrolling support... In-Reply-To: References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> Message-ID: Thank you! Exactly what I was looking for. On 3/19/2018 2:49 PM, J. Landman Gay via use-livecode wrote: > On 3/19/18 11:15 AM, Paul Dupuis via use-livecode wrote: >> Does anyone have any code for supporting scrolling fields by use of a >> mouse wheel that they would care to post or email me? > > From my cribbed collection: > > on rawKeyDown pKeyNumber > ? if pKeyNumber is 65308 then put 15 into tScrollInc -- > increaseScroll, scroll wheel down > ? else if pKeyNumber is 65309 then put -15 into tScrollInc -- > decreaseScroll, scroll wheel up > ? if tScrollInc is empty then pass rawKeyDown > ? set the vScroll of me to (the vScroll of me + tScrollInc) > end rawKeyDown > > -- both vertical and horizontal: > > on rawKeyDown pKey > ? switch pKey > ??? case 65309 > ????? set the vScroll of me to the vScroll of me - 30 > ????? break > ??? case 65308 > ????? set the vScroll of me to the vScroll of me + 30 > ????? break > ??? case 65311 > ????? set the hScroll of me to the hScroll of me - 30 > ????? break > ??? case 65310 > ????? set the hScroll of me to the hScroll of me +30 > ????? break > ??? default > ????? pass rawKeyDown > ? end switch > end rawKeyDown From paul at researchware.com Mon Mar 19 16:19:28 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 19 Mar 2018 16:19:28 -0400 Subject: Mouse wheel scrolling support... In-Reply-To: <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> Message-ID: <78db8e0e-ee2a-047d-3087-a01d973c99b9@researchware.com> On 3/19/2018 3:18 PM, Richmond Mathewson via use-livecode wrote: > At the risk of sounding both naive and stupid I have just pasted a > large text into a field > with a vertical scrollBar in a field in a stack in LC 7.1.4 on Mac OS > 10.7.5. > > With the "blobby thing" that passes for a scroll wheel on my A1152 > Apple mouse > I am able to scroll up and down in the field with no trouble at all. > > So, would be glad if you could explain in a bit more detail what you mean > by "supporting scrolling fields by use of a mouse wheel". There are user interface conventions/guidelines for mice with mouse wheels (typically a wheel between the 2 mouse buttons you can spin forward or backwards with a finger). If a scrollable user interface object has the focus and you spin the wheel, the user interface object (field, scrolling pane, slide, whatever) should "scroll" without you having to point to it or click on it. I am unfamiliar with the A1152 Apple mouse (although I just googled a picture of it). I don't know is the "scroll ball" of that mouse is supposed to act like a "scroll wheel". Here is a typical HP (windows) 2-button mouse with a scroll wheel for comparison: https://lh3.googleusercontent.com/V8SoWc38ieyPF1NWe42050HkHEuamfAFk4dXP7yqNZsoFhUvjh6iA3FoBovbAROR7tmX4q69=w640-h400-e365 I don't know if that information helps, but there it is. From livfoss at mac.com Mon Mar 19 19:00:29 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 20 Mar 2018 00:00:29 +0100 Subject: A poor man's app updater In-Reply-To: <0818e589-36b8-632d-68d1-2bbb004defcc@hyperactivesw.com> References: <0818e589-36b8-632d-68d1-2bbb004defcc@hyperactivesw.com> Message-ID: <1BF77F3D-400A-41DF-A212-11F2029C8475@mac.com> Thanks, Jacque, as usual your ideas are excellent. I?ll see what I can do to follow your advice and report back. As ever, it?s one of those deployment things that I would imagine affects everyone who publishes an app that isn?t distributed via some app store, but it doesn?t seem a popular topic. Graham BTW, I certainly use installers, and they?re code-signed too, to simplify matters for users. > On 18 Mar 2018, at 20:57, J. Landman Gay via use-livecode wrote: > > On 3/18/18 6:44 AM, Graham Samuel via use-livecode wrote: >> Now, here is the primitive bit: if the user selects the update option, he/she is invited to carry out the following sequence: >> - quit the current version (actually this can of course be done automatically via an ?OK? button); > > I'd automate this. The fewer steps the user needs to follow, the better. > >> - delete the current version using the facilities of the OS (just trash it from the Applications folder on a Mac, or use the Control Panel on Windows): there is no reliable way of doing this from within an LC standalone, AFAIK; > > I think you'd benefit from distributing some type of installer. When the user clicks the "OK" button, launch the URL of your web site where they can download it. Matthias' LC installer is ready (and the signing version is close to ready) so you could use that while staying within the LC environment. It does all the work for you. > > Users know how to use installers and many Windows users don't understand anything else. There are more users than you think who don't know how to find a file or where apps are stored on their drive. The OS and/or the installer will manage older versions so you don't have to. > >> - download and run a special ?Uninstall Helper? program that gets rid of the Working Stack in the writeable area, plus preference files and the like - I don?t see any way of making this happen automatically, since logically it needs to be done **after** the main program is deleted; > > Instead of a helper, I'd put some logic into your app itself. The working stack would have a custom property with its current version number. The standalone would check on launch if the working stack exists, and if so, if its custom version property matches the one it expects. If not, overwrite the existing one with the new one. The new one could either be downloaded from the internet on demand, or stored as a binary in a custom property of the standalone. Either way, overwriting is just a matter of putting the binary content into the existing stack file path on disk. > >> - use the information given at the time of purchase to download the appropriate installer from the server; >> - reinstall the program and input the registration data from the original purchase. > > So, it sounds like you are already using an installer. If so, they're mostly done. I wouldn't remove the user registration file or preferences; unless it's changed there's no reason to make the user find their registration info again (and many will lose or misplace it, which will increase support requests.) > > The short summary: The user only has to click "OK", the app quits, and the user is taken to a web site to download the update installer. Once they launch that and run the install, everything else is automatic. On first launch, the app replaces any necessary files. > > > -- > 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 prothero at earthlearningsolutions.org Mon Mar 19 20:51:26 2018 From: prothero at earthlearningsolutions.org (ELS prothero) Date: Mon, 19 Mar 2018 17:51:26 -0700 Subject: New stack window has 2 title bars In-Reply-To: <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> Message-ID: <0304FAC9-6F4F-474E-B189-7CEF2D3E52A0@earthlearningsolutions.org> Folks: I?m setting up my app, which involves moving from a splash stack to a setup stack, then to one I?m using for an index to the application. The first stack opens fine and there is a single title bar, but when that setup stack opens a third stack, it has two title bars. Each time I open a new stack, I make sure the calling stack is closed and removed from memory. To go to a new stack: set the destroystack of myCallingStack to TRUE go stack newStackPath ?includes full path to the stack, in IDE send ?close ?&myCallingStack to my newStackName in 1 second ?closes the calling stack The splash stack opens the setup stack with only a single title bar, but when the setup stack calls the index stack, I get two title bars at the top of the new window that opens. Probably something stupid I?m doing, but ????? What?s going on? Bill William Prothero, PhD Professor Emeritus University of California, Santa Barbara http://earthlearningsolutions.org From merakosp at gmail.com Tue Mar 20 12:54:31 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 20 Mar 2018 16:54:31 +0000 Subject: New stack window has 2 title bars In-Reply-To: <0304FAC9-6F4F-474E-B189-7CEF2D3E52A0@earthlearningsolutions.org> References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> <0304FAC9-6F4F-474E-B189-7CEF2D3E52A0@earthlearningsolutions.org> Message-ID: Hi Bill, See this report: http://quality.livecode.com/show_bug.cgi?id=19276 This happens because of a new feature in MacOS Sierra (you can have tabbed windows), which LC does not fully support yet. Best, Panos -- On Tue, Mar 20, 2018 at 12:51 AM, ELS prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks: > > I?m setting up my app, which involves moving from a splash stack to a > setup stack, then to one I?m using for an index to the application. The > first stack opens fine and there is a single title bar, but when that setup > stack opens a third stack, it has two title bars. Each time I open a new > stack, I make sure the calling stack is closed and removed from memory. To > go to a new stack: > > set the destroystack of myCallingStack to TRUE > go stack newStackPath ?includes full path to the stack, in IDE > send ?close ?&myCallingStack to my newStackName in 1 second ?closes the > calling stack > > The splash stack opens the setup stack with only a single title bar, but > when the setup stack calls the index stack, I get two title bars at the top > of the new window that opens. Probably something stupid I?m doing, but ????? > What?s going on? > > Bill > > > William Prothero, PhD > Professor Emeritus > University of California, Santa Barbara > http://earthlearningsolutions.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 earthlearningsolutions.org Tue Mar 20 13:28:13 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Tue, 20 Mar 2018 10:28:13 -0700 Subject: New stack window has 2 title bars In-Reply-To: References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> <0304FAC9-6F4F-474E-B189-7CEF2D3E52A0@earthlearningsolutions.org> Message-ID: <95DF6809-DC51-47F6-9514-2C786CFF6052@earthlearningsolutions.org> Tnx, Panos. I?ll try to love with it until it gets fixed. Or, is,there a workaround? Bill William Prothero http://earthlearningsolutions.org > On Mar 20, 2018, at 9:54 AM, panagiotis merakos via use-livecode wrote: > > Hi Bill, > See this report: > > http://quality.livecode.com/show_bug.cgi?id=19276 > > This happens because of a new feature in MacOS Sierra (you can have tabbed > windows), which LC does not fully support yet. > > Best, > Panos > -- > > On Tue, Mar 20, 2018 at 12:51 AM, ELS prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Folks: >> >> I?m setting up my app, which involves moving from a splash stack to a >> setup stack, then to one I?m using for an index to the application. The >> first stack opens fine and there is a single title bar, but when that setup >> stack opens a third stack, it has two title bars. Each time I open a new >> stack, I make sure the calling stack is closed and removed from memory. To >> go to a new stack: >> >> set the destroystack of myCallingStack to TRUE >> go stack newStackPath ?includes full path to the stack, in IDE >> send ?close ?&myCallingStack to my newStackName in 1 second ?closes the >> calling stack >> >> The splash stack opens the setup stack with only a single title bar, but >> when the setup stack calls the index stack, I get two title bars at the top >> of the new window that opens. Probably something stupid I?m doing, but ????? >> What?s going on? >> >> Bill >> >> >> William Prothero, PhD >> Professor Emeritus >> University of California, Santa Barbara >> http://earthlearningsolutions.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 merakosp at gmail.com Tue Mar 20 13:40:25 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 20 Mar 2018 17:40:25 +0000 Subject: New stack window has 2 title bars In-Reply-To: <95DF6809-DC51-47F6-9514-2C786CFF6052@earthlearningsolutions.org> References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> <0304FAC9-6F4F-474E-B189-7CEF2D3E52A0@earthlearningsolutions.org> <95DF6809-DC51-47F6-9514-2C786CFF6052@earthlearningsolutions.org> Message-ID: Hi Bill, Pressing cmd+Shift+T should remove the extra tab, according to the bug report. Best, Panos -- On Tue, Mar 20, 2018 at 5:28 PM, prothero--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Tnx, Panos. I?ll try to love with it until it gets fixed. Or, is,there a > workaround? > Bill > > William Prothero > http://earthlearningsolutions.org > > > On Mar 20, 2018, at 9:54 AM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Bill, > > See this report: > > > > http://quality.livecode.com/show_bug.cgi?id=19276 > > > > This happens because of a new feature in MacOS Sierra (you can have > tabbed > > windows), which LC does not fully support yet. > > > > Best, > > Panos > > -- > > > > On Tue, Mar 20, 2018 at 12:51 AM, ELS prothero via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Folks: > >> > >> I?m setting up my app, which involves moving from a splash stack to a > >> setup stack, then to one I?m using for an index to the application. The > >> first stack opens fine and there is a single title bar, but when that > setup > >> stack opens a third stack, it has two title bars. Each time I open a new > >> stack, I make sure the calling stack is closed and removed from memory. > To > >> go to a new stack: > >> > >> set the destroystack of myCallingStack to TRUE > >> go stack newStackPath ?includes full path to the stack, in IDE > >> send ?close ?&myCallingStack to my newStackName in 1 second ?closes the > >> calling stack > >> > >> The splash stack opens the setup stack with only a single title bar, but > >> when the setup stack calls the index stack, I get two title bars at the > top > >> of the new window that opens. Probably something stupid I?m doing, but > ????? > >> What?s going on? > >> > >> Bill > >> > >> > >> William Prothero, PhD > >> Professor Emeritus > >> University of California, Santa Barbara > >> http://earthlearningsolutions.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 prothero at earthlearningsolutions.org Tue Mar 20 14:01:45 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Tue, 20 Mar 2018 11:01:45 -0700 Subject: New stack window has 2 title bars In-Reply-To: References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> <0304FAC9-6F4F-474E-B189-7CEF2D3E52A0@earthlearningsolutions.org> <95DF6809-DC51-47F6-9514-2C786CFF6052@earthlearningsolutions.org> Message-ID: <22D2EEF5-8735-43B8-873C-146D79F09A63@earthlearningsolutions.org> Can I do this in lingo? Bill William Prothero http://earthlearningsolutions.org > On Mar 20, 2018, at 10:40 AM, panagiotis merakos via use-livecode wrote: > > Hi Bill, > > Pressing cmd+Shift+T should remove the extra tab, according to the bug > report. > > Best, > Panos > -- > > On Tue, Mar 20, 2018 at 5:28 PM, prothero--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Tnx, Panos. I?ll try to love with it until it gets fixed. Or, is,there a >> workaround? >> Bill >> >> William Prothero >> http://earthlearningsolutions.org >> >>> On Mar 20, 2018, at 9:54 AM, panagiotis merakos via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi Bill, >>> See this report: >>> >>> http://quality.livecode.com/show_bug.cgi?id=19276 >>> >>> This happens because of a new feature in MacOS Sierra (you can have >> tabbed >>> windows), which LC does not fully support yet. >>> >>> Best, >>> Panos >>> -- >>> >>> On Tue, Mar 20, 2018 at 12:51 AM, ELS prothero via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Folks: >>>> >>>> I?m setting up my app, which involves moving from a splash stack to a >>>> setup stack, then to one I?m using for an index to the application. The >>>> first stack opens fine and there is a single title bar, but when that >> setup >>>> stack opens a third stack, it has two title bars. Each time I open a new >>>> stack, I make sure the calling stack is closed and removed from memory. >> To >>>> go to a new stack: >>>> >>>> set the destroystack of myCallingStack to TRUE >>>> go stack newStackPath ?includes full path to the stack, in IDE >>>> send ?close ?&myCallingStack to my newStackName in 1 second ?closes the >>>> calling stack >>>> >>>> The splash stack opens the setup stack with only a single title bar, but >>>> when the setup stack calls the index stack, I get two title bars at the >> top >>>> of the new window that opens. Probably something stupid I?m doing, but >> ????? >>>> What?s going on? >>>> >>>> Bill >>>> >>>> >>>> William Prothero, PhD >>>> Professor Emeritus >>>> University of California, Santa Barbara >>>> http://earthlearningsolutions.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 >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue Mar 20 14:21:39 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 20 Mar 2018 18:21:39 +0000 Subject: New stack window has 2 title bars In-Reply-To: <22D2EEF5-8735-43B8-873C-146D79F09A63@earthlearningsolutions.org> References: <99c3d90b-2b61-477c-45ce-b356b03afd2a@researchware.com> <3aec26aa-e288-bcec-19ee-96d60172fb1e@gmail.com> <0304FAC9-6F4F-474E-B189-7CEF2D3E52A0@earthlearningsolutions.org> <95DF6809-DC51-47F6-9514-2C786CFF6052@earthlearningsolutions.org> <22D2EEF5-8735-43B8-873C-146D79F09A63@earthlearningsolutions.org> Message-ID: I assume this shortcut should apply to all Mac apps. Best, Panos -- On Tue, Mar 20, 2018 at 6:01 PM, prothero--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Can I do this in lingo? > Bill > > William Prothero > http://earthlearningsolutions.org > > > On Mar 20, 2018, at 10:40 AM, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Bill, > > > > Pressing cmd+Shift+T should remove the extra tab, according to the bug > > report. > > > > Best, > > Panos > > -- > > > > On Tue, Mar 20, 2018 at 5:28 PM, prothero--- via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Tnx, Panos. I?ll try to love with it until it gets fixed. Or, is,there a > >> workaround? > >> Bill > >> > >> William Prothero > >> http://earthlearningsolutions.org > >> > >>> On Mar 20, 2018, at 9:54 AM, panagiotis merakos via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Hi Bill, > >>> See this report: > >>> > >>> http://quality.livecode.com/show_bug.cgi?id=19276 > >>> > >>> This happens because of a new feature in MacOS Sierra (you can have > >> tabbed > >>> windows), which LC does not fully support yet. > >>> > >>> Best, > >>> Panos > >>> -- > >>> > >>> On Tue, Mar 20, 2018 at 12:51 AM, ELS prothero via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> Folks: > >>>> > >>>> I?m setting up my app, which involves moving from a splash stack to a > >>>> setup stack, then to one I?m using for an index to the application. > The > >>>> first stack opens fine and there is a single title bar, but when that > >> setup > >>>> stack opens a third stack, it has two title bars. Each time I open a > new > >>>> stack, I make sure the calling stack is closed and removed from > memory. > >> To > >>>> go to a new stack: > >>>> > >>>> set the destroystack of myCallingStack to TRUE > >>>> go stack newStackPath ?includes full path to the stack, in IDE > >>>> send ?close ?&myCallingStack to my newStackName in 1 second ?closes > the > >>>> calling stack > >>>> > >>>> The splash stack opens the setup stack with only a single title bar, > but > >>>> when the setup stack calls the index stack, I get two title bars at > the > >> top > >>>> of the new window that opens. Probably something stupid I?m doing, but > >> ????? > >>>> What?s going on? > >>>> > >>>> Bill > >>>> > >>>> > >>>> William Prothero, PhD > >>>> Professor Emeritus > >>>> University of California, Santa Barbara > >>>> http://earthlearningsolutions.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 > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gWolfgang at gaich.de Tue Mar 20 15:24:05 2018 From: gWolfgang at gaich.de (G.W.Gaich) Date: Tue, 20 Mar 2018 20:24:05 +0100 Subject: tsNetSmtpSync (with attachment In-Reply-To: <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> Message-ID: Hello Charles, thank you for your reply. I have the same result if I disable the anti-virus software. I testet it on another machine (windows 10). I get that error: tsneterr: (56) Failure when receiving data from the peer My Mailserver: smtp.1und1.de Port is 587 Authentification Method is password, normal Encryption is STARTTLS With Thunderbird I can send emails with attachments Best G?nter Am 19.03.2018 um 04:07 schrieb Charles Warwick via use-livecode: > Hi, > > That does seem odd... Is there any chance you might have some anti-virus software running that might be getting in the way? > > Regards, > > Charles > >> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode wrote: >> >> Hallo all, >> >> try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) >> >> I tried the sample stack "Mail v1.2" from >> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >> >> I get an error when I try to send with an attachment (PDF document): >> >> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) >> returned from server >> >> >> Without the attachment the email is send. >> >> Windows 7, LC 8.1.9 >> >> >> Any ideas? >> >> Best >> G?nter >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gWolfgang at gaich.de Tue Mar 20 15:26:33 2018 From: gWolfgang at gaich.de (G.W.Gaich) Date: Tue, 20 Mar 2018 20:26:33 +0100 Subject: tsNetSmtpSync (with attachment In-Reply-To: References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> Message-ID: <8ac42cf2-65bd-429e-2c77-dd5dc1cd4d81@gaich.de> Hello Bob, thank you for your reply. With Thunderbird I send emails with attachments everyday to that server. Best G?nter Am 19.03.2018 um 16:45 schrieb Bob Sneidar via use-livecode: > Sounds like the receiver is blocking attachments. Many mail gateways do this, either because the extension is not allowed, or the attachment is too big. > > Bob S > > >> On Mar 18, 2018, at 20:07 , Charles Warwick via use-livecode wrote: >> >> [This message was identified as a phishing scam. Learn about phishing at http://aka.ms/LearnAboutPhishing] >> >> Hi, >> >> That does seem odd... Is there any chance you might have some anti-virus software running that might be getting in the way? >> >> Regards, >> >> Charles >> >>> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode wrote: >>> >>> Hallo all, >>> >>> try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) >>> >>> I tried the sample stack "Mail v1.2" from >>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>> >>> I get an error when I try to send with an attachment (PDF document): >>> >>> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) >>> returned from server >>> >>> >>> Without the attachment the email is send. >>> >>> Windows 7, LC 8.1.9 >>> >>> >>> Any ideas? >>> >>> Best >>> G?nter >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Tue Mar 20 18:39:53 2018 From: waprothero at gmail.com (William Prothero) Date: Tue, 20 Mar 2018 15:39:53 -0700 Subject: Smooth transition between stacks In-Reply-To: <1BF77F3D-400A-41DF-A212-11F2029C8475@mac.com> References: <0818e589-36b8-632d-68d1-2bbb004defcc@hyperactivesw.com> <1BF77F3D-400A-41DF-A212-11F2029C8475@mac.com> Message-ID: Folks: This seems like it should be very easy, but I?m struggling. I want, simply, to transition between stacks in a visually nice and clean way. I?m testing this out in the IDE, in livecode version 9.0.0 (Rc1) and I?m on Mac OS 10.13.3. I think I have a reasonable transition, but I want to close and remove the splash stack from memory. I can?t get it to do this. However, now I?m thinking that the splash stack will contain all of the code, and shouldn?t be purged. The project will have stacks for individual functions in the ?Resources? folder. How should I transition from one stack to another, and get the calling stack to leave memory when it?s launched the destination stack? My code won?t do it. The splash stack has code like: on mouseUp put the short name of this stack into splashStackName put splashStackName into appParams["splashStackName"] put the filename of this stack into fName set the itemdelimiter to "/" delete the last item of fName put "AppSetup-D3.livecode" into appSetupStackFileName put "AppSetup-D3" into appSetupStackName put appSetupStackName into appParams["appSetupStackName"] put fName&"/"&appSetupStackFileName into stTarget wait for 0 seconds with messages go invisible to stack stTarget send "doStackSetup "&splashStackName to stack appSetupStackName end mouseUp ??The destination stack has this handler to initialize it. on doStackSetup originStackName put appParams["appSetupStackName"] into thisStack set the rect of stack thisStack to the rect of stack originStackName wait for 0 seconds with messages show stack thisStack send "doCloseThisStack "&stackName to me in 1 second set the lockscreen to false end doStackSetup on doCloseThisStack breakpoint put "Start Earth Explorer" into stackName set the destroyStack of stack stackName to true close stack stackName end doCloseThisStack In the destination stack named appSetupStackName, I run code that accesses a database for configuration parameters. I don?t want the user to be required to click a button to initiate this process. I start it on an opencard handler. I?ve fiddled with this way more time than I should have to. Does anyone have a nicely visual way of seamlessly going to another stack without screen flashing, windows jumping around, etc. I want the destination stack to just open in the same rect as the source stack. I know that the opencard handler runs before the above mouseup code finishes. Thanks for any advice. Bill From waprothero at gmail.com Tue Mar 20 18:47:02 2018 From: waprothero at gmail.com (William Prothero) Date: Tue, 20 Mar 2018 15:47:02 -0700 Subject: Smooth transition between stacks In-Reply-To: References: <0818e589-36b8-632d-68d1-2bbb004defcc@hyperactivesw.com> <1BF77F3D-400A-41DF-A212-11F2029C8475@mac.com> Message-ID: <903F81E7-4056-4B79-BFC2-9ED74C264149@gmail.com> Folks: I got it to remove the calling stack and have a clean transition. However, for a splash stack configuration with all of the stacks that do the main app functions, should I even try to delete the splash stack? Is it needed to run the application? Best, Bill > On Mar 20, 2018, at 3:39 PM, William Prothero via use-livecode wrote: > > Folks: > This seems like it should be very easy, but I?m struggling. > > I want, simply, to transition between stacks in a visually nice and clean way. I?m testing this out in the IDE, in livecode version 9.0.0 (Rc1) and I?m on Mac OS 10.13.3. I think I have a reasonable transition, but I want to close and remove the splash stack from memory. I can?t get it to do this. However, now I?m thinking that the splash stack will contain all of the code, and shouldn?t be purged. The project will have stacks for individual functions in the ?Resources? folder. > > How should I transition from one stack to another, and get the calling stack to leave memory when it?s launched the destination stack? My code won?t do it. > > The splash stack has code like: > > on mouseUp > > put the short name of this stack into splashStackName > > put splashStackName into appParams["splashStackName"] > > put the filename of this stack into fName > > set the itemdelimiter to "/" > > delete the last item of fName > > put "AppSetup-D3.livecode" into appSetupStackFileName > > put "AppSetup-D3" into appSetupStackName > > put appSetupStackName into appParams["appSetupStackName"] > > put fName&"/"&appSetupStackFileName into stTarget > > wait for 0 seconds with messages > > go invisible to stack stTarget > > send "doStackSetup "&splashStackName to stack appSetupStackName > > end mouseUp > > > ??The destination stack has this handler to initialize it. > on doStackSetup originStackName > > put appParams["appSetupStackName"] into thisStack > > set the rect of stack thisStack to the rect of stack originStackName > > wait for 0 seconds with messages > > show stack thisStack > > send "doCloseThisStack "&stackName to me in 1 second > > set the lockscreen to false > > end doStackSetup > > > on doCloseThisStack > > breakpoint > > put "Start Earth Explorer" into stackName > > set the destroyStack of stack stackName to true > > close stack stackName > > end doCloseThisStack > > > > In the destination stack named appSetupStackName, I run code that accesses a database for configuration parameters. I don?t want the user to be required to click a button to initiate this process. I start it on an opencard handler. > > I?ve fiddled with this way more time than I should have to. Does anyone have a nicely visual way of seamlessly going to another stack without screen flashing, windows jumping around, etc. I want the destination stack to just open in the same rect as the source stack. > > I know that the opencard handler runs before the above mouseup code finishes. > > Thanks for any advice. > Bill > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Mar 20 19:39:35 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 20 Mar 2018 19:39:35 -0400 Subject: Smooth transition between stacks In-Reply-To: <903F81E7-4056-4B79-BFC2-9ED74C264149@gmail.com> References: <0818e589-36b8-632d-68d1-2bbb004defcc@hyperactivesw.com> <1BF77F3D-400A-41DF-A212-11F2029C8475@mac.com> <903F81E7-4056-4B79-BFC2-9ED74C264149@gmail.com> Message-ID: <007601d3c0a4$b7dd4ea0$2797ebe0$@net> My understanding is that the first stack has the engine, inclusions.... and needs to be in memory. 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 via use-livecode Sent: Tuesday, March 20, 2018 6:47 PM To: Use-livecode Use-livecode Cc: William Prothero Subject: Re: Smooth transition between stacks Folks: I got it to remove the calling stack and have a clean transition. However, for a splash stack configuration with all of the stacks that do the main app functions, should I even try to delete the splash stack? Is it needed to run the application? Best, Bill > On Mar 20, 2018, at 3:39 PM, William Prothero via use-livecode wrote: > > Folks: > This seems like it should be very easy, but I?m struggling. > > I want, simply, to transition between stacks in a visually nice and clean way. I?m testing this out in the IDE, in livecode version 9.0.0 (Rc1) and I?m on Mac OS 10.13.3. I think I have a reasonable transition, but I want to close and remove the splash stack from memory. I can?t get it to do this. However, now I?m thinking that the splash stack will contain all of the code, and shouldn?t be purged. The project will have stacks for individual functions in the ?Resources? folder. > > How should I transition from one stack to another, and get the calling stack to leave memory when it?s launched the destination stack? My code won?t do it. > > The splash stack has code like: > > on mouseUp > > put the short name of this stack into splashStackName > > put splashStackName into appParams["splashStackName"] > > put the filename of this stack into fName > > set the itemdelimiter to "/" > > delete the last item of fName > > put "AppSetup-D3.livecode" into appSetupStackFileName > > put "AppSetup-D3" into appSetupStackName > > put appSetupStackName into appParams["appSetupStackName"] > > put fName&"/"&appSetupStackFileName into stTarget > > wait for 0 seconds with messages > > go invisible to stack stTarget > > send "doStackSetup "&splashStackName to stack appSetupStackName > > end mouseUp > > > ??The destination stack has this handler to initialize it. > on doStackSetup originStackName > > put appParams["appSetupStackName"] into thisStack > > set the rect of stack thisStack to the rect of stack originStackName > > wait for 0 seconds with messages > > show stack thisStack > > send "doCloseThisStack "&stackName to me in 1 second > > set the lockscreen to false > > end doStackSetup > > > on doCloseThisStack > > breakpoint > > put "Start Earth Explorer" into stackName > > set the destroyStack of stack stackName to true > > close stack stackName > > end doCloseThisStack > > > > In the destination stack named appSetupStackName, I run code that accesses a database for configuration parameters. I don?t want the user to be required to click a button to initiate this process. I start it on an opencard handler. > > I?ve fiddled with this way more time than I should have to. Does anyone have a nicely visual way of seamlessly going to another stack without screen flashing, windows jumping around, etc. I want the destination stack to just open in the same rect as the source stack. > > I know that the opencard handler runs before the above mouseup code finishes. > > Thanks for any advice. > Bill > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 20 21:56:07 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Mar 2018 20:56:07 -0500 Subject: Smooth transition between stacks In-Reply-To: <903F81E7-4056-4B79-BFC2-9ED74C264149@gmail.com> References: <0818e589-36b8-632d-68d1-2bbb004defcc@hyperactivesw.com> <1BF77F3D-400A-41DF-A212-11F2029C8475@mac.com> <903F81E7-4056-4B79-BFC2-9ED74C264149@gmail.com> Message-ID: <162464542d8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> If the splash stack will become the standalone then you can't delete it, since it will contain the LC engine and any scripts that need to run. If you could delete it, the app would quit without warning. You can use "go stack x in this window" if you want the destination stack to occupy the same window frame. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 20, 2018 5:48:57 PM William Prothero via use-livecode wrote: Folks: I got it to remove the calling stack and have a clean transition. However, for a splash stack configuration with all of the stacks that do the main app functions, should I even try to delete the splash stack? Is it needed to run the application? From charles at techstrategies.com.au Wed Mar 21 04:34:14 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Wed, 21 Mar 2018 18:34:14 +1000 Subject: tsNetSmtpSync (with attachment In-Reply-To: References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> Message-ID: <67B1D835-DF92-4357-A1EF-744784F87C23@techstrategies.com.au> Can you please download the following stack: https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode Open it while you have your LCMail stack open, click the ?start debug? button in the above stack, try send an e-mail with an attachment and then click ?stop debug? to stop the timer in the debug field. That should generate some debug information about your SMTP connection. If you can post the results of that (minus any private details) it might help us to work out what is going on. Regards, Charles > On 21 Mar 2018, at 5:24 am, G.W.Gaich via use-livecode wrote: > > Hello Charles, > > thank you for your reply. > > I have the same result if I disable the anti-virus software. > > I testet it on another machine (windows 10). I get that error: > > > tsneterr: (56) Failure when receiving data from the peer > > My Mailserver: > smtp.1und1.de > Port is 587 > Authentification Method is password, normal > Encryption is STARTTLS > > > With Thunderbird I can send emails with attachments > > Best > G?nter > >> Am 19.03.2018 um 04:07 schrieb Charles Warwick via use-livecode: >> Hi, >> >> That does seem odd... Is there any chance you might have some anti-virus software running that might be getting in the way? >> >> Regards, >> >> Charles >> >>> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode wrote: >>> >>> Hallo all, >>> >>> try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) >>> >>> I tried the sample stack "Mail v1.2" from >>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>> >>> I get an error when I try to send with an attachment (PDF document): >>> >>> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) >>> returned from server >>> >>> >>> Without the attachment the email is send. >>> >>> Windows 7, LC 8.1.9 >>> >>> >>> Any ideas? >>> >>> Best >>> G?nter >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dvglasgow at gmail.com Wed Mar 21 11:47:39 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Wed, 21 Mar 2018 15:47:39 +0000 Subject: What LC or OS incantation do I use to involve the onscreen keyboard on a Win 10 tablet? In-Reply-To: <8b94adf0-f7df-1ba2-879b-fd41a7386e8d@gmail.com> References: <2E28CDCC-8527-45B5-95FF-F02337F185EE@gmail.com> <8b94adf0-f7df-1ba2-879b-fd41a7386e8d@gmail.com> Message-ID: Thanks, Richmond, but as far as I can establish there is no way of detecting whether there is a physical keyboard attached to a Windows detachable keyboard device. Quite a few Win programmers have discussed the issue, but no reliable solutions posted. So I have come up with something that seems to work, and I would appreciate any predictable fail scenarios. My app has a brief set up screen - select from pop up, select radio button, click start. If that is achieved and is associated with > n mousemove messages, I?m assuming a mouse/trackpad is present, and therefore we are not running as a tablet, (either in tablet mode, or Win 10 touch screen without tablet mode). I can then enable tooltips and not invoke an onscreen keyboard. (and vice versa) I think I?d have to wait a while before the Glasgow Tartan appears in Aldi - but if it does?.. Best wishes, David Glasgow > On 19 Mar 2018, at 12:33 pm, Richmond via use-livecode wrote: > > I thought my buying USB Microscopes in LIDL was an all-time low . . . > > Mind you, a friend of mine bought a kilt there. > > > On 19.03.2018 13:27, David V Glasgow via use-livecode wrote: >> Colleagues in Livecode, >> >> I just purchased a Win 10 ?convertible? tablet from Lidl solely for quick Win testing LC. The upside is that it is astonishing value for money (?169). >> >> The downside is that the on screen keyboard isn?t automatically invoked when no keyboard is attached and the cursor enters a field. I can access the KB from the task bar, but who wants to do that all the time? It also doesn?t seem to move things about to avoid the KB overlaying the field in question. > > Right click (hold and release) in the textField, and select show touch keyboard icon. > > Fairly inconvenient! > > Here's some horrible Visual BASIC: > > Sub Keyboard() > On Error GoTo ErrorHandler > > Call ShellEx("C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe") > > ProcedureExit: > Exit Sub > > ErrorHandler: > MsgBox "Error" & ": " & Err.Number & vbCrLf & "Description: " _ > & Err.Description, vbExclamation, "Module1.Keyboard" > Resume ProcedureExit > > End Sub > > https://borncity.com/win/2015/08/24/windows10-upgrade-on-screen-keyboardtouchscreen-fix/ >> >> I have seen a few complaints online that seem to suggest that this is how it works in Win 10. I have a hard time believing that because it is so spectacularly stupid and irritating. > I don't, frankly. > >> Some apps seem to have worked around this problem, and I hope that someone on this list has also done so. >> >> Any advice? If I have to roll my own KB + field avoidance+ text entry system I will, but surely that shouldn?t be necessary? >> >> Best wishes, >> >> David Glasgow >> >> _______________________________________________ >> > > 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 gWolfgang at gaich.de Wed Mar 21 11:57:59 2018 From: gWolfgang at gaich.de (G.W.Gaich) Date: Wed, 21 Mar 2018 16:57:59 +0100 Subject: tsNetSmtpSync (with attachment In-Reply-To: <67B1D835-DF92-4357-A1EF-744784F87C23@techstrategies.com.au> References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> <67B1D835-DF92-4357-A1EF-744784F87C23@techstrategies.com.au> Message-ID: <86aee757-f378-5d6f-e113-3f82ef67469c@gaich.de> Hi Charles, here the output of debug_liburl.livecode: 1521647487 1521647488 Rebuilt URL to: smtp://smtp.1und1.de:587/ Connection 1 seems to be dead! Closing connection 1 schannel: shutting down SSL/TLS connection with smtp.1und1.de port 587 schannel: clear security context handle ? Trying 212.227.15.183... TCP_NODELAY set Connected to smtp.1und1.de (212.227.15.183) port 587 (#2) 1521647498 220 kundenserver.de (mreue105) Nemesis ESMTP Service ready EHLO gyLittleAcer 250-kundenserver.de Hello gyLittleAcer [130.180.10.154] 250-AUTH LOGIN PLAIN 250-SIZE 69920427 250 STARTTLS STARTTLS 220 OK schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 1/3) schannel: re-using existing credential handle schannel: incremented credential handle refcount = 2 schannel: sending initial handshake data: sending 210 bytes... schannel: sent initial handshake data: sent 210 bytes schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3) schannel: failed to receive handshake, need more data schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3) schannel: encrypted data got 1460 schannel: encrypted data buffer: offset 1460 length 4096 schannel: encrypted data length: 1368 schannel: encrypted data buffer: offset 1368 length 4096 schannel: received incomplete message, need more data schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3) schannel: encrypted data got 1460 schannel: encrypted data buffer: offset 2828 length 4096 schannel: received incomplete message, need more data schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3) schannel: encrypted data got 1268 schannel: encrypted data buffer: offset 4096 length 4096 schannel: received incomplete message, need more data schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3) schannel: encrypted data got 747 schannel: encrypted data buffer: offset 4843 length 5120 schannel: sending next handshake data: sending 126 bytes... schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3) schannel: encrypted data got 51 schannel: encrypted data buffer: offset 51 length 5120 schannel: SSL/TLS handshake complete schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 3/3) EHLO gyLittleAcer schannel: client wants to read 16384 bytes schannel: encdata_buffer resized 17408 schannel: encrypted data buffer: offset 0 length 17408 schannel: encrypted data got 127 schannel: encrypted data buffer: offset 127 length 17408 schannel: decrypted data length: 98 schannel: decrypted data added: 98 schannel: decrypted data cached: offset 98 length 16384 schannel: encrypted data buffer: offset 0 length 17408 schannel: decrypted data buffer: offset 98 length 16384 schannel: schannel_recv cleanup schannel: decrypted data returned 98 schannel: decrypted data buffer: offset 0 length 16384 250-kundenserver.de Hello gyLittleAcer [130.180.10.154] 250-AUTH LOGIN PLAIN 250 SIZE 69920427 AUTH LOGIN schannel: client wants to read 16384 bytes schannel: encrypted data buffer: offset 0 length 17408 schannel: encrypted data got 47 schannel: encrypted data buffer: offset 47 length 17408 schannel: decrypted data length: 18 schannel: decrypted data added: 18 schannel: decrypted data cached: offset 18 length 16384 schannel: encrypted data buffer: offset 0 length 17408 schannel: decrypted data buffer: offset 18 length 16384 schannel: schannel_recv cleanup schannel: decrypted data returned 18 schannel: decrypted data buffer: offset 0 length 16384 334 VXNlcm5hbWU6 c2VydmljZUBnYWljaC5kZQ== schannel: client wants to read 16384 bytes schannel: encrypted data buffer: offset 0 length 17408 schannel: encrypted data got 47 schannel: encrypted data buffer: offset 47 length 17408 schannel: decrypted data length: 18 schannel: decrypted data added: 18 schannel: decrypted data cached: offset 18 length 16384 schannel: encrypted data buffer: offset 0 length 17408 schannel: decrypted data buffer: offset 18 length 16384 schannel: schannel_recv cleanup schannel: decrypted data returned 18 schannel: decrypted data buffer: offset 0 length 16384 334 UGFzc3dvcmQ6 RUltMkIuLiwtbzA= schannel: client wants to read 16384 bytes schannel: encrypted data buffer: offset 0 length 17408 schannel: encrypted data got 59 schannel: encrypted data buffer: offset 59 length 17408 schannel: decrypted data length: 30 schannel: decrypted data added: 30 schannel: decrypted data cached: offset 30 length 16384 schannel: encrypted data buffer: offset 0 length 17408 schannel: decrypted data buffer: offset 30 length 16384 schannel: schannel_recv cleanup schannel: decrypted data returned 30 schannel: decrypted data buffer: offset 0 length 16384 235 Authentication succeeded MAIL FROM: SIZE=49321 schannel: client wants to read 16384 bytes schannel: encrypted data buffer: offset 0 length 17408 schannel: encrypted data got 72 schannel: encrypted data buffer: offset 72 length 17408 schannel: decrypted data length: 43 schannel: decrypted data added: 43 schannel: decrypted data cached: offset 43 length 16384 schannel: encrypted data buffer: offset 0 length 17408 schannel: decrypted data buffer: offset 43 length 16384 schannel: schannel_recv cleanup schannel: decrypted data returned 43 schannel: decrypted data buffer: offset 0 length 16384 250 Requested mail action okay, completed RCPT TO: schannel: client wants to read 16384 bytes schannel: encrypted data buffer: offset 0 length 17408 schannel: encrypted data got 37 schannel: encrypted data buffer: offset 37 length 17408 schannel: decrypted data length: 8 schannel: decrypted data added: 8 schannel: decrypted data cached: offset 8 length 16384 schannel: encrypted data buffer: offset 0 length 17408 schannel: decrypted data buffer: offset 8 length 16384 schannel: schannel_recv cleanup schannel: decrypted data returned 8 schannel: decrypted data buffer: offset 0 length 16384 250 OK DATA schannel: client wants to read 16384 bytes schannel: encrypted data buffer: offset 0 length 17408 schannel: encrypted data got 75 schannel: encrypted data buffer: offset 75 length 17408 schannel: decrypted data length: 46 schannel: decrypted data added: 46 schannel: decrypted data cached: offset 46 length 16384 schannel: encrypted data buffer: offset 0 length 17408 schannel: decrypted data buffer: offset 46 length 16384 schannel: schannel_recv cleanup schannel: decrypted data returned 46 schannel: decrypted data buffer: offset 0 length 16384 354 Start mail input; end with . We are completely uploaded and fine schannel: client wants to read 16384 bytes schannel: encrypted data buffer: offset 0 length 17408 schannel: encrypted data got 63 schannel: encrypted data buffer: offset 63 length 17408 schannel: decrypted data length: 34 schannel: decrypted data added: 34 schannel: decrypted data cached: offset 34 length 16384 schannel: encrypted data buffer: offset 0 length 17408 schannel: decrypted data buffer: offset 34 length 16384 schannel: schannel_recv cleanup schannel: decrypted data returned 34 schannel: decrypted data buffer: offset 0 length 16384 501 Syntax error - line too long Connection #2 to host smtp.1und1.de left intact 1521647499 1521647500 1521647501 1521647502 1521647503 1521647504 Am 21.03.2018 um 09:34 schrieb Charles Warwick via use-livecode: > Can you please download the following stack: > > https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode > > Open it while you have your LCMail stack open, click the ?start debug? button in the above stack, try send an e-mail with an attachment and then click ?stop debug? to stop the timer in the debug field. > > That should generate some debug information about your SMTP connection. If you can post the results of that (minus any private details) it might help us to work out what is going on. > > Regards, > > Charles > >> On 21 Mar 2018, at 5:24 am, G.W.Gaich via use-livecode wrote: >> >> Hello Charles, >> >> thank you for your reply. >> >> I have the same result if I disable the anti-virus software. >> >> I testet it on another machine (windows 10). I get that error: >> >> >> tsneterr: (56) Failure when receiving data from the peer >> >> My Mailserver: >> smtp.1und1.de >> Port is 587 >> Authentification Method is password, normal >> Encryption is STARTTLS >> >> >> With Thunderbird I can send emails with attachments >> >> Best >> G?nter >> >>> Am 19.03.2018 um 04:07 schrieb Charles Warwick via use-livecode: >>> Hi, >>> >>> That does seem odd... Is there any chance you might have some anti-virus software running that might be getting in the way? >>> >>> Regards, >>> >>> Charles >>> >>>> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode wrote: >>>> >>>> Hallo all, >>>> >>>> try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) >>>> >>>> I tried the sample stack "Mail v1.2" from >>>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>>> >>>> I get an error when I try to send with an attachment (PDF document): >>>> >>>> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) >>>> returned from server >>>> >>>> >>>> Without the attachment the email is send. >>>> >>>> Windows 7, LC 8.1.9 >>>> >>>> >>>> Any ideas? >>>> >>>> Best >>>> G?nter >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Mar 21 21:13:20 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 22 Mar 2018 01:13:20 +0000 Subject: Smooth transition between stacks In-Reply-To: <162464542d8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <0818e589-36b8-632d-68d1-2bbb004defcc@hyperactivesw.com> <1BF77F3D-400A-41DF-A212-11F2029C8475@mac.com> <903F81E7-4056-4B79-BFC2-9ED74C264149@gmail.com> <162464542d8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: hide splash stack after opening one time. BR If the splash stack will become the standalone then you can't delete it, since it will contain the LC engine and any scripts that need to run. If you could delete it, the app would quit without warning. From charles at techstrategies.com.au Thu Mar 22 00:25:41 2018 From: charles at techstrategies.com.au (Charles Warwick) Date: Thu, 22 Mar 2018 14:25:41 +1000 Subject: tsNetSmtpSync (with attachment In-Reply-To: <86aee757-f378-5d6f-e113-3f82ef67469c@gaich.de> References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> <67B1D835-DF92-4357-A1EF-744784F87C23@techstrategies.com.au> <86aee757-f378-5d6f-e113-3f82ef67469c@gaich.de> Message-ID: Hi, > On 22 Mar 2018, at 1:57 am, G.W.Gaich via use-livecode wrote: > > .... > schannel: decrypted data buffer: offset 0 length 16384 > 501 Syntax error - line too long > This gives us a clue. It looks like your mail server is not detecting the line endings in the body of the e-mail. Can you try add the following line just before the call to tsNetSmtpSync (line 38) in the mouseUp handler of the ?Send Email? button: replace LF with CRLF in tPostData And see if that makes any difference? Regards, Charles > > >> Am 21.03.2018 um 09:34 schrieb Charles Warwick via use-livecode: >> Can you please download the following stack: >> >> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode >> >> Open it while you have your LCMail stack open, click the ?start debug? button in the above stack, try send an e-mail with an attachment and then click ?stop debug? to stop the timer in the debug field. >> >> That should generate some debug information about your SMTP connection. If you can post the results of that (minus any private details) it might help us to work out what is going on. >> >> Regards, >> >> Charles >> >>> On 21 Mar 2018, at 5:24 am, G.W.Gaich via use-livecode wrote: >>> >>> Hello Charles, >>> >>> thank you for your reply. >>> >>> I have the same result if I disable the anti-virus software. >>> >>> I testet it on another machine (windows 10). I get that error: >>> >>> >>> tsneterr: (56) Failure when receiving data from the peer >>> >>> My Mailserver: >>> smtp.1und1.de >>> Port is 587 >>> Authentification Method is password, normal >>> Encryption is STARTTLS >>> >>> >>> With Thunderbird I can send emails with attachments >>> >>> Best >>> G?nter >>> >>>> Am 19.03.2018 um 04:07 schrieb Charles Warwick via use-livecode: >>>> Hi, >>>> >>>> That does seem odd... Is there any chance you might have some anti-virus software running that might be getting in the way? >>>> >>>> Regards, >>>> >>>> Charles >>>> >>>>> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode wrote: >>>>> >>>>> Hallo all, >>>>> >>>>> try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) >>>>> >>>>> I tried the sample stack "Mail v1.2" from >>>>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>>>> >>>>> I get an error when I try to send with an attachment (PDF document): >>>>> >>>>> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) >>>>> returned from server >>>>> >>>>> >>>>> Without the attachment the email is send. >>>>> >>>>> Windows 7, LC 8.1.9 >>>>> >>>>> >>>>> Any ideas? >>>>> >>>>> Best >>>>> G?nter >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gWolfgang at gaich.de Thu Mar 22 04:48:39 2018 From: gWolfgang at gaich.de (G.W.Gaich) Date: Thu, 22 Mar 2018 09:48:39 +0100 Subject: tsNetSmtpSync (with attachment In-Reply-To: References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> <67B1D835-DF92-4357-A1EF-744784F87C23@techstrategies.com.au> <86aee757-f378-5d6f-e113-3f82ef67469c@gaich.de> Message-ID: Hello Charles, thank you very much. Now it works. Am 22.03.2018 um 05:25 schrieb Charles Warwick via use-livecode: > Hi, > >> On 22 Mar 2018, at 1:57 am, G.W.Gaich via use-livecode wrote: >> >> .... >> schannel: decrypted data buffer: offset 0 length 16384 >> 501 Syntax error - line too long >> > This gives us a clue. It looks like your mail server is not detecting the line endings in the body of the e-mail. > > Can you try add the following line just before the call to tsNetSmtpSync (line 38) in the mouseUp handler of the ?Send Email? button: > > replace LF with CRLF in tPostData > > And see if that makes any difference? > > Regards, > > Charles > >> >>> Am 21.03.2018 um 09:34 schrieb Charles Warwick via use-livecode: >>> Can you please download the following stack: >>> >>> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode >>> >>> Open it while you have your LCMail stack open, click the ?start debug? button in the above stack, try send an e-mail with an attachment and then click ?stop debug? to stop the timer in the debug field. >>> >>> That should generate some debug information about your SMTP connection. If you can post the results of that (minus any private details) it might help us to work out what is going on. >>> >>> Regards, >>> >>> Charles >>> >>>> On 21 Mar 2018, at 5:24 am, G.W.Gaich via use-livecode wrote: >>>> >>>> Hello Charles, >>>> >>>> thank you for your reply. >>>> >>>> I have the same result if I disable the anti-virus software. >>>> >>>> I testet it on another machine (windows 10). I get that error: >>>> >>>> >>>> tsneterr: (56) Failure when receiving data from the peer >>>> >>>> My Mailserver: >>>> smtp.1und1.de >>>> Port is 587 >>>> Authentification Method is password, normal >>>> Encryption is STARTTLS >>>> >>>> >>>> With Thunderbird I can send emails with attachments >>>> >>>> Best >>>> G?nter >>>> >>>>> Am 19.03.2018 um 04:07 schrieb Charles Warwick via use-livecode: >>>>> Hi, >>>>> >>>>> That does seem odd... Is there any chance you might have some anti-virus software running that might be getting in the way? >>>>> >>>>> Regards, >>>>> >>>>> Charles >>>>> >>>>>> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode wrote: >>>>>> >>>>>> Hallo all, >>>>>> >>>>>> try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync) >>>>>> >>>>>> I tried the sample stack "Mail v1.2" from >>>>>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode >>>>>> >>>>>> I get an error when I try to send with an attachment (PDF document): >>>>>> >>>>>> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0) >>>>>> returned from server >>>>>> >>>>>> >>>>>> Without the attachment the email is send. >>>>>> >>>>>> Windows 7, LC 8.1.9 >>>>>> >>>>>> >>>>>> Any ideas? >>>>>> >>>>>> Best >>>>>> G?nter >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 canelasoftware.com Thu Mar 22 19:28:57 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Thu, 22 Mar 2018 16:28:57 -0700 Subject: Issues with storage of data in stack In-Reply-To: References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> Message-ID: <90F0C368-801B-45B3-85CF-12B597B61D16@canelasoftware.com> Hi Lagi, Sorry about the delayed reply. I have been on a long business trip. Your early designs are far more sophisticated than what we put together here. Super impressive history you have. LiveCode really is the champion here in that we are only using arrayEncode() and put myArrayA into url() to store the arrays. Selecting which array cluster to store might be easier to understand using a video. http://canelasoftware.com/pub/canela/liveCode_array_clustering.mp4 Once you understand how the array is structured, I think the method will be clear. We do not preallocate space. No appending. We overwrite a cluster when one or more records are saved to disk. The write happens at the end of the CRUD operation taking place. Thus, if you ?create? a single record, the record is first created in memory and then the cluster it belongs to is written to disk. I have toyed with the idea of making the write to disk feature controllable by the dev. Thus, you could define when the write is to take place. For example, you might like to write to disk after every 5 transactions or so. But, I have not found the write to affect performance in a noticeable way to need to add that feature. -Multi User- Yes, everything is processed sequentially in the cloud. There are no open sockets so you can have massive concurrent connections. All cloud calls are done via ?post?. They are handled by PHP scripts to write the request to a cache area. One or more LiveCode standalones on the other end processes the request in the order they are received. Thus, should a process go down, no data is lost. When the process comes a back up, everything continues again as normal. Scale is handled by having more than one process be available. More scaling is handled by having data stored across multiple droplets/VMs (sharding). This can keep repeating itself as needed. -File Size Limitations- The OS iNode limitations are negated by not reaching its maximum limit. We found 40,000 files would really bring the performance down. Adding clustering of arrays lowers the file count to acceptable and controllable levels. -Test Data- 100,000 records in table Record size average: 45 chars Keys in each record: last_name, first_name, date_of_birth, middle_name, student_number, gender, grade_level, active A cluster size, clusters per table, time to load all clusters from disk to RAM, time to write all clusters from RAM to disk, time to write one cluster from RAM to disk: 1, 16, 1.46 secs, 1.5 secs, 91.4 ms 2, 256, 1.52 secs, 1.5 secs, 6.7 ms 3, 4096, 2.38 secs, 1.6 secs, 0.8 ms I hope this information is helpful. Please let me know if you have any other questions. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Mar 12, 2018, at 10:31 AM, Lagi Pittas wrote: > > Hi Mark, > > Thanks for the detailed explanation but I have a few (ish) questions ... > > Hope you don't mind me asking these questions because I did have to > write my own access routines in those bad old days before I started on > Clipper/Foxpro/Delphi/Btrieve and I do enjoy learning from others on > the list and the forums - those AHA! moments when you finally get how > the Heapsort works the night before the exam. > > Many moons ago I wrote a multi-way B-TREE based on the explanation in > Wirth's Book "Algorithms + Data Structures = Programs" - in UCSD > Pascal for the Apple 2, I had a 5MB hard Drives for the bigger > companies when I was lucky, for the smaller companies I made do with 2 > 143k floppy disks and Hashing for a "large" data set- oh the memories. > I used the B-Trees if the codes were alphanumeric. I also had my > own method where I kept the index in the first X Blocks of the file > and loaded the parts in memory as they were needed - a brain dead > version of yours I suppose. I think we had about 40k of free ram to > Play with so couldn't always keep everything in RAM. I even made the > system multi-user and ran 20 Apple ][s on a network using a > proprietary Nestar/Zynar network using Ribbon Cables - it worked but > am I glad we have Ethernet! > > Anyway - I digress. I can understand the general idea of what you are > explaining but it's the low level code for writing to the > clusters/file on disk I'm not quite sure of. > Which way do you build your initial file? Is it "Sparse" or prebuilt, > or does each cluster have a "pointer" to previous or next clusters? > Do you have records "spanning" clusters or do you leave any spare > space in a cluster empty. Do you mark a "record" as deleted but don't > remove the record until it's overwritten or do what Foxpro/Dbase does > and "PACK" them with a utility routine. > I also presume you use the "AT" option in the write command to write > the clusters randomly since you don't wriite the whole in memory table > > Which brings me onto my final questions - I presume your system is > multi-user because you have a server program that receives calls and > executes them sequentially? And lastly what are the file size > limitations doing it this way - do You also virtualize the data in > memory? > > Sorry for all the question but this is the interesting stuff > > Regards Lagi From dvglasgow at gmail.com Fri Mar 23 06:18:47 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 23 Mar 2018 10:18:47 +0000 Subject: Inferring absence of physical keyboard in Win 10 'convertible' device In-Reply-To: References: <047b252f-845e-4fc7-074d-eaa3441d2a93@gaich.de> <347C1851-C529-4568-8359-B36946820ACA@techstrategies.com.au> <67B1D835-DF92-4357-A1EF-744784F87C23@techstrategies.com.au> <86aee757-f378-5d6f-e113-3f82ef67469c@gaich.de> Message-ID: <1A21DD82-8030-4AF3-960F-9BA0FCDC693B@gmail.com> I apologise in advance for the ugliness of my attempt at a solution to the above. Just a brief gratuitous update on strangeness associated with Inferring absence of physical keyboard in Win 10. The Win 10 tablet itself knows the keyboard has been detached, because the cursor disappears (although LC continues to detect the location of the invisible cursor, because tooltips are sometimes triggered). However it seems there is no flag accessible to developers. Various online recipes appear in different languages, but none appear to be accepted as foolproof. The simple kludge I came up with works fairly well. Counting mousemoves generated on a setup screen allows me to reliably determine whether the input is mouse or touch (the latter presuming keyboard absent). However, the cut off isn?t as clear as I thought it might be. This is because mousemoves appear to be generated when the pointer doesn?t actually move Opening the card containing the mousemove counter always generates 3 mousemove messages without the screen being touched in any way. Any tap generates 4 mousemoves. So open card + popup + select option + radio button + go button = 3+4+4+4+4= 18 minimum. I could reduce that a bit by zeroing the mousemove count after the popup selection. Luckily it seems impossible to do the same using a mouse-pointer with fewer than 70 mousemoves, so if the platform is Win and mousemoves <60 I present a ?It looks like you are using this device as a tablet, is that right?? dialog. A ?Yes? enables the use of on screen keyboard and numeric keypad on the main card. Also, someone using the screen as a tablet but with a mouse attached would slip through the net. However, a false positive here is not a great inconvenience. False negatives remain a possibility, though. Obviously a rather touchy, clumsy, strokey tablet user could generate another 42 mousemove events, and thus transition to the main card with no means of entering data. The built in on-screen keyboard is also pretty horrible. Often obscuring the important parts of the screen, and apparently arbitrarily invoked or not invoked. In short, Microsoft?s ?continuum? seems to be more ambitious and complicated than Apple's ?continuity?, and rather difficult to manage as a user and developer. Best Wishes, David Glasgow From heather at livecode.com Fri Mar 23 13:35:16 2018 From: heather at livecode.com (Heather Laine) Date: Fri, 23 Mar 2018 17:35:16 +0000 Subject: Just a list test Message-ID: Please ignore. Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From bobsneidar at iotecdigital.com Fri Mar 23 13:47:51 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 23 Mar 2018 17:47:51 +0000 Subject: Just a list test In-Reply-To: References: Message-ID: <3AB0E89A-F6F4-49B3-913C-5237A7EAEA44@iotecdigital.com> I can't. I'm looking right at it. ;-) Bob S > On Mar 23, 2018, at 10:35 , Heather Laine via use-livecode wrote: > > Please ignore. > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com From bobsneidar at iotecdigital.com Fri Mar 23 13:48:55 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 23 Mar 2018 17:48:55 +0000 Subject: Just a list test In-Reply-To: <3AB0E89A-F6F4-49B3-913C-5237A7EAEA44@iotecdigital.com> References: <3AB0E89A-F6F4-49B3-913C-5237A7EAEA44@iotecdigital.com> Message-ID: <244AF8E4-3795-4593-BA8F-1F09D709D075@iotecdigital.com> Oh BTW no false positive Phishing alert in the body of my email! Bob S > On Mar 23, 2018, at 10:47 , Bob Sneidar wrote: > > I can't. I'm looking right at it. ;-) > > Bob S > > >> On Mar 23, 2018, at 10:35 , Heather Laine via use-livecode wrote: >> >> Please ignore. >> >> Heather >> >> Heather Laine >> Customer Services Manager >> LiveCode Ltd >> www.livecode.com > From iphonelagi at gmail.com Fri Mar 23 14:41:36 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Fri, 23 Mar 2018 18:41:36 +0000 Subject: Issues with storage of data in stack In-Reply-To: <90F0C368-801B-45B3-85CF-12B597B61D16@canelasoftware.com> References: <0C87112A-DD32-48ED-877C-3BC942701E68@canelasoftware.com> <90F0C368-801B-45B3-85CF-12B597B61D16@canelasoftware.com> Message-ID: Hi Mark, Thanks for that - I'd forgotten I'd asked ;-) The times you gave are super impressive - who needs mysql - Im gonna see if I get anytime in the next month - snowed under as usual. I think I have got it - each cluster is in effect a file on the disk? I will understand it more when I have had time to pause the video a few times and try to implement a very simple system although to be honest a few thousand records should be ample in most of my stuff and I can archive data to a history file. Sqlite does fine for my single user systems but needing routines to change between LC dates and sqlite dates is a pain. Thanks again Lagi On 22 March 2018 at 23:28, Mark Talluto wrote: > Hi Lagi, > > Sorry about the delayed reply. I have been on a long business trip. Your > early designs are far more sophisticated than what we put together here. > Super impressive history you have. > > LiveCode really is the champion here in that we are only using arrayEncode() > and put myArrayA into url() to store the arrays. Selecting which array > cluster to store might be easier to understand using a video. > > http://canelasoftware.com/pub/canela/liveCode_array_clustering.mp4 > > Once you understand how the array is structured, I think the method will be > clear. > > We do not preallocate space. No appending. We overwrite a cluster when one > or more records are saved to disk. The write happens at the end of the CRUD > operation taking place. Thus, if you ?create? a single record, the record is > first created in memory and then the cluster it belongs to is written to > disk. I have toyed with the idea of making the write to disk feature > controllable by the dev. Thus, you could define when the write is to take > place. For example, you might like to write to disk after every 5 > transactions or so. But, I have not found the write to affect performance in > a noticeable way to need to add that feature. > > -Multi User- > Yes, everything is processed sequentially in the cloud. There are no open > sockets so you can have massive concurrent connections. All cloud calls are > done via ?post?. They are handled by PHP scripts to write the request to a > cache area. One or more LiveCode standalones on the other end processes the > request in the order they are received. Thus, should a process go down, no > data is lost. When the process comes a back up, everything continues again > as normal. Scale is handled by having more than one process be available. > More scaling is handled by having data stored across multiple droplets/VMs > (sharding). This can keep repeating itself as needed. > > -File Size Limitations- > The OS iNode limitations are negated by not reaching its maximum limit. We > found 40,000 files would really bring the performance down. Adding > clustering of arrays lowers the file count to acceptable and controllable > levels. > > -Test Data- > 100,000 records in table > Record size average: 45 chars > Keys in each record: last_name, first_name, date_of_birth, middle_name, > student_number, gender, grade_level, active > > A cluster size, clusters per table, time to load all clusters from disk to > RAM, time to write all clusters from RAM to disk, time to write one cluster > from RAM to disk: > 1, 16, 1.46 secs, 1.5 secs, 91.4 ms > 2, 256, 1.52 secs, 1.5 secs, 6.7 ms > 3, 4096, 2.38 secs, 1.6 secs, 0.8 ms > > I hope this information is helpful. Please let me know if you have any other > questions. > > Best regards, > > Mark Talluto > livecloud.io > nursenotes.net > canelasoftware.com > > > > > On Mar 12, 2018, at 10:31 AM, Lagi Pittas wrote: > > Hi Mark, > > Thanks for the detailed explanation but I have a few (ish) questions ... > > Hope you don't mind me asking these questions because I did have to > write my own access routines in those bad old days before I started on > Clipper/Foxpro/Delphi/Btrieve and I do enjoy learning from others on > the list and the forums - those AHA! moments when you finally get how > the Heapsort works the night before the exam. > > Many moons ago I wrote a multi-way B-TREE based on the explanation in > Wirth's Book "Algorithms + Data Structures = Programs" - in UCSD > Pascal for the Apple 2, I had a 5MB hard Drives for the bigger > companies when I was lucky, for the smaller companies I made do with 2 > 143k floppy disks and Hashing for a "large" data set- oh the memories. > I used the B-Trees if the codes were alphanumeric. I also had my > own method where I kept the index in the first X Blocks of the file > and loaded the parts in memory as they were needed - a brain dead > version of yours I suppose. I think we had about 40k of free ram to > Play with so couldn't always keep everything in RAM. I even made the > system multi-user and ran 20 Apple ][s on a network using a > proprietary Nestar/Zynar network using Ribbon Cables - it worked but > am I glad we have Ethernet! > > Anyway - I digress. I can understand the general idea of what you are > explaining but it's the low level code for writing to the > clusters/file on disk I'm not quite sure of. > Which way do you build your initial file? Is it "Sparse" or prebuilt, > or does each cluster have a "pointer" to previous or next clusters? > Do you have records "spanning" clusters or do you leave any spare > space in a cluster empty. Do you mark a "record" as deleted but don't > remove the record until it's overwritten or do what Foxpro/Dbase does > and "PACK" them with a utility routine. > I also presume you use the "AT" option in the write command to write > the clusters randomly since you don't wriite the whole in memory table > > Which brings me onto my final questions - I presume your system is > multi-user because you have a server program that receives calls and > executes them sequentially? And lastly what are the file size > limitations doing it this way - do You also virtualize the data in > memory? > > Sorry for all the question but this is the interesting stuff > > Regards Lagi > > From ambassador at fourthworld.com Fri Mar 23 16:23:45 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 23 Mar 2018 13:23:45 -0700 Subject: Issues with storage of data in stack In-Reply-To: References: Message-ID: <2b89bf20-c60a-7bc4-308e-371e52174f72@fourthworld.com> Lagi Pittas write: > Sqlite does fine for my single user systems but needing routines to > change between LC dates and sqlite dates is a pain. Indeed it is, or to any format not already handled. There are some requests in the bug DB for other formats: https://quality.livecode.com/show_bug.cgi?id=4636 https://quality.livecode.com/show_bug.cgi?id=19601 Most interesting is Comment #4 in bz# from Monte: https://quality.livecode.com/show_bug.cgi?id=19601#c4 Apparently he submitted a pull request last year for what seems like a very nice solution, using formatting strings: https://github.com/livecode/livecode/pull/5433 This was per this BZ request: https://quality.livecode.com/show_bug.cgi?id=18150 Not sure what happened to that. Seems like it would be a great option. -- 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 Fri Mar 23 19:50:59 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 23 Mar 2018 19:50:59 -0400 Subject: Apple iOS App Rejection because Location Usage String is too Generic In-Reply-To: <2b89bf20-c60a-7bc4-308e-371e52174f72@fourthworld.com> References: <2b89bf20-c60a-7bc4-308e-371e52174f72@fourthworld.com> Message-ID: <005b01d3c301$ce045390$6a0cfab0$@net> These keys aren't in the settings.plist file. NSLocationUsageDescription NSLocationWhenInUseUsageDescription Does anyone know where they are? I need to change them and re-submit the app. Thanks Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From martyknappster at gmail.com Fri Mar 23 21:22:39 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Fri, 23 Mar 2018 18:22:39 -0700 Subject: Checkmark for Mac & Windows Message-ID: I generate lists on the fly with the first item of each line set with a checkmark. After I construct the list under script, I just insert it into a standard LC table field. The user can then toggle the checkmark of each line off or on with a click (a script in the field takes care of that). On Mac it's just a matter of using the checkmark character (option-v) which I can type right into a script. But on Windows it does not display. I don't want to rely on a specific font in case the user does not have that installed. Is there really not an *simple* way to do this so that it works on both Mac and Windows? I?m redoing a currently Mac-only app so I can release for Windows too and don?t really want to re-work all this if there?s a simple solution that I?m missing. Thanks, Marty From brian at milby7.com Fri Mar 23 22:15:22 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 23 Mar 2018 21:15:22 -0500 Subject: Checkmark for Mac & Windows In-Reply-To: References: Message-ID: Check out "imagesource" - it may be what you need. You can do something like: *set* the imageSource of char 1 of line 1 of fld "Test" of this cd to 878 Which is a "+" sign, but you can use your own images. modTableField uses this strategy and has icons for the checked and unchecked state. You could track state with a particular character in that position if needed. Thanks, Brian On Fri, Mar 23, 2018 at 8:22 PM, Knapp Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > I generate lists on the fly with the first item of each line set with a > checkmark. After I construct the list under script, I just insert it into a > standard LC table field. The user can then toggle the checkmark of each > line off or on with a click (a script in the field takes care of that). > > On Mac it's just a matter of using the checkmark character (option-v) > which I can type right into a script. But on Windows it does not display. I > don't want to rely on a specific font in case the user does not have that > installed. Is there really not an *simple* way to do this so that it works > on both Mac and Windows? I?m redoing a currently Mac-only app so I can > release for Windows too and don?t really want to re-work all this if > there?s a simple solution that I?m missing. > > Thanks, > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Mar 23 22:19:41 2018 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 23 Mar 2018 19:19:41 -0700 Subject: Checkmark for Mac & Windows In-Reply-To: References: Message-ID: <1bd20cb1-e035-2522-ddeb-87f70a210531@pdslabs.net> One idea: - Create or find a checkmark image you like, that looks good within the textHeight of your lists - Import it into your app - make sure each line of text begins with maybe 3 spaces - use the ID of the checkmark image as the imageSource of char 1 of each line - let your (now modified) script support the same toggle action it now supports HTH - Phil Davis On 3/23/18 6:22 PM, Knapp Martin via use-livecode wrote: > I generate lists on the fly with the first item of each line set with a checkmark. After I construct the list under script, I just insert it into a standard LC table field. The user can then toggle the checkmark of each line off or on with a click (a script in the field takes care of that). > > On Mac it's just a matter of using the checkmark character (option-v) which I can type right into a script. But on Windows it does not display. I don't want to rely on a specific font in case the user does not have that installed. Is there really not an *simple* way to do this so that it works on both Mac and Windows? I?m redoing a currently Mac-only app so I can release for Windows too and don?t really want to re-work all this if there?s a simple solution that I?m missing. > > Thanks, > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode 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 chipsm at themartinz.com Sat Mar 24 00:12:35 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Fri, 23 Mar 2018 21:12:35 -0700 Subject: Checkmark for Mac & Windows In-Reply-To: <1bd20cb1-e035-2522-ddeb-87f70a210531@pdslabs.net> References: <1bd20cb1-e035-2522-ddeb-87f70a210531@pdslabs.net> Message-ID: <047d01d3c326$5775fc40$0661f4c0$@themartinz.com> Phil, can you provide a sample script? -----Original Message----- From: use-livecode On Behalf Of Phil Davis via use-livecode Sent: Friday, March 23, 2018 7:20 PM To: Knapp Martin via use-livecode Cc: Phil Davis Subject: Re: Checkmark for Mac & Windows One idea: - Create or find a checkmark image you like, that looks good within the textHeight of your lists - Import it into your app - make sure each line of text begins with maybe 3 spaces - use the ID of the checkmark image as the imageSource of char 1 of each line - let your (now modified) script support the same toggle action it now supports HTH - Phil Davis On 3/23/18 6:22 PM, Knapp Martin via use-livecode wrote: > I generate lists on the fly with the first item of each line set with a checkmark. After I construct the list under script, I just insert it into a standard LC table field. The user can then toggle the checkmark of each line off or on with a click (a script in the field takes care of that). > > On Mac it's just a matter of using the checkmark character (option-v) which I can type right into a script. But on Windows it does not display. I don't want to rely on a specific font in case the user does not have that installed. Is there really not an *simple* way to do this so that it works on both Mac and Windows? I?m redoing a currently Mac-only app so I can release for Windows too and don?t really want to re-work all this if there?s a simple solution that I?m missing. > > Thanks, > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode 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 martyknappster at gmail.com Sat Mar 24 02:13:38 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Fri, 23 Mar 2018 23:13:38 -0700 Subject: Checkmark for Mac & Windows In-Reply-To: <047d01d3c326$5775fc40$0661f4c0$@themartinz.com> References: <1bd20cb1-e035-2522-ddeb-87f70a210531@pdslabs.net> <047d01d3c326$5775fc40$0661f4c0$@themartinz.com> Message-ID: <758509A7-0287-4DFF-9D82-CD2FDC550AFE@gmail.com> Yes I was thinking I could do that and it?s easy enough. Just seems odd that such a common character can?t be easily typed in Windows. For Clarence: set the imageSource of char 1 of line 1 of fld "SomeField? to 1234 ?where 1234 is the id of the image you want to use. Marty > On Mar 23, 2018, at 9:12 PM, Clarence Martin via use-livecode wrote: > > Phil, can you provide a sample script? > > -----Original Message----- > From: use-livecode On Behalf Of Phil Davis via use-livecode > Sent: Friday, March 23, 2018 7:20 PM > To: Knapp Martin via use-livecode > Cc: Phil Davis > Subject: Re: Checkmark for Mac & Windows > > One idea: > > - Create or find a checkmark image you like, that looks good within the textHeight of your lists > - Import it into your app > - make sure each line of text begins with maybe 3 spaces > - use the ID of the checkmark image as the imageSource of char 1 of each line > - let your (now modified) script support the same toggle action it now supports > > HTH - > Phil Davis > > > On 3/23/18 6:22 PM, Knapp Martin via use-livecode wrote: >> I generate lists on the fly with the first item of each line set with a checkmark. After I construct the list under script, I just insert it into a standard LC table field. The user can then toggle the checkmark of each line off or on with a click (a script in the field takes care of that). >> >> On Mac it's just a matter of using the checkmark character (option-v) which I can type right into a script. But on Windows it does not display. I don't want to rely on a specific font in case the user does not have that installed. Is there really not an *simple* way to do this so that it works on both Mac and Windows? I?m redoing a currently Mac-only app so I can release for Windows too and don?t really want to re-work all this if there?s a simple solution that I?m missing. >> >> Thanks, >> >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 revdev at pdslabs.net Sat Mar 24 02:33:08 2018 From: revdev at pdslabs.net (Phil Davis) Date: Fri, 23 Mar 2018 23:33:08 -0700 Subject: Checkmark for Mac & Windows In-Reply-To: <758509A7-0287-4DFF-9D82-CD2FDC550AFE@gmail.com> References: <1bd20cb1-e035-2522-ddeb-87f70a210531@pdslabs.net> <047d01d3c326$5775fc40$0661f4c0$@themartinz.com> <758509A7-0287-4DFF-9D82-CD2FDC550AFE@gmail.com> Message-ID: Another approach: - find an open source font that has the character you want, plus all text looks OK - include the font (and its license) in your app - when you start your app, "start using font file tMyFontFile" - set your table field to use this font - toggle similar to the way you do now Phil On 3/23/18 11:13 PM, Knapp Martin via use-livecode wrote: > Yes I was thinking I could do that and it?s easy enough. Just seems odd that such a common character can?t be easily typed in Windows. > > For Clarence: > set the imageSource of char 1 of line 1 of fld "SomeField? to 1234 ?where 1234 is the id of the image you want to use. > > Marty > >> On Mar 23, 2018, at 9:12 PM, Clarence Martin via use-livecode wrote: >> >> Phil, can you provide a sample script? >> >> -----Original Message----- >> From: use-livecode On Behalf Of Phil Davis via use-livecode >> Sent: Friday, March 23, 2018 7:20 PM >> To: Knapp Martin via use-livecode >> Cc: Phil Davis >> Subject: Re: Checkmark for Mac & Windows >> >> One idea: >> >> - Create or find a checkmark image you like, that looks good within the textHeight of your lists >> - Import it into your app >> - make sure each line of text begins with maybe 3 spaces >> - use the ID of the checkmark image as the imageSource of char 1 of each line >> - let your (now modified) script support the same toggle action it now supports >> >> HTH - >> Phil Davis >> >> >> On 3/23/18 6:22 PM, Knapp Martin via use-livecode wrote: >>> I generate lists on the fly with the first item of each line set with a checkmark. After I construct the list under script, I just insert it into a standard LC table field. The user can then toggle the checkmark of each line off or on with a click (a script in the field takes care of that). >>> >>> On Mac it's just a matter of using the checkmark character (option-v) which I can type right into a script. But on Windows it does not display. I don't want to rely on a specific font in case the user does not have that installed. Is there really not an *simple* way to do this so that it works on both Mac and Windows? I?m redoing a currently Mac-only app so I can release for Windows too and don?t really want to re-work all this if there?s a simple solution that I?m missing. >>> >>> Thanks, >>> >>> Marty >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 -- Phil Davis From merakosp at gmail.com Sat Mar 24 02:38:06 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Sat, 24 Mar 2018 06:38:06 +0000 Subject: Apple iOS App Rejection because Location Usage String is too Generic In-Reply-To: <005b01d3c301$ce045390$6a0cfab0$@net> References: <2b89bf20-c60a-7bc4-308e-371e52174f72@fourthworld.com> <005b01d3c301$ce045390$6a0cfab0$@net> Message-ID: Hi Ralph, These are set while building the standalone. See comment 11 here https://quality.livecode.com/show_bug.cgi?id=19780 for a workaround. Best, Panos -- On Fri, Mar 23, 2018 at 11:50 PM, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > These keys aren't in the settings.plist file. > NSLocationUsageDescription > NSLocationWhenInUseUsageDescription > > Does anyone know where they are? I need to change them and re-submit the > app. > > Thanks > > 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 ludovic.thebault at laposte.net Sat Mar 24 02:43:54 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Sat, 24 Mar 2018 07:43:54 +0100 Subject: Apple iOS App Rejection because Location Usage String is too Generic In-Reply-To: References: <2b89bf20-c60a-7bc4-308e-371e52174f72@fourthworld.com> <005b01d3c301$ce045390$6a0cfab0$@net> Message-ID: <9C3C95FE-A0C4-4FBC-8F8E-489A1A8A6DAA@laposte.net> > Le 24 mars 2018 ? 07:38, panagiotis merakos via use-livecode a ?crit : > > Hi Ralph, > > These are set while building the standalone. See comment 11 here > https://quality.livecode.com/show_bug.cgi?id=19780 for a workaround. > > Best, > Panos > ? It worked for me. But i hope a next release of Livecode permit to do it into the standalone builder. Ludovic From richmondmathewson at gmail.com Sat Mar 24 11:15:10 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 24 Mar 2018 17:15:10 +0200 Subject: Online Programming Environment Message-ID: <2dc8fb76-dc89-a6c8-ad57-63aba8a098cd@gmail.com> I was "over here" just now: https://www.techsupportalert.com/content/dozens-free-online-programming-environments.htm http://www.tutorialspoint.com/codingground.htm and thought that a version of LiveCode (7.1.4 perhaps) available as an online thing might be a good 'hook'. Richmond. From ambassador at fourthworld.com Sat Mar 24 11:54:15 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Mar 2018 08:54:15 -0700 Subject: Layout metrics? Message-ID: <5ebc2135-35a9-feab-15b4-4bab0ad5ed29@fourthworld.com> In the olden days of OS vendors' Human Interface Guidelines they used to specify things like recommended spacing between controls. I can find no metrics guidelines in Apple's latest HIG. Did I miss 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 richmondmathewson at gmail.com Sat Mar 24 14:28:52 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 24 Mar 2018 20:28:52 +0200 Subject: Layout metrics? In-Reply-To: <5ebc2135-35a9-feab-15b4-4bab0ad5ed29@fourthworld.com> References: <5ebc2135-35a9-feab-15b4-4bab0ad5ed29@fourthworld.com> Message-ID: <864a94ee-96ad-5004-6e83-a245c98e7617@gmail.com> https://developer.apple.com/macos/human-interface-guidelines/buttons/image-buttons/ "*Include about 10 pixels of padding between your image edges and the button edges.* Even though the edges of an image button aren?t visible, they still define the clickable area for the button. Padding ensures that a user?s click registers even when it misses the image slightly. *Allow adequate spacing between image buttons and other controls.* Provide enough of a buffer that the user won?t inadvertently click the button?s hidden frame when attempting to click another control." Richmond. On 24/3/2018 5:54 pm, Richard Gaskin via use-livecode wrote: > In the olden days of OS vendors' Human Interface Guidelines they used > to specify things like recommended spacing between controls. > > I can find no metrics guidelines in Apple's latest HIG. > > Did I miss it? > From tom at makeshyft.com Sat Mar 24 15:05:39 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 24 Mar 2018 15:05:39 -0400 Subject: Online Programming Environment In-Reply-To: <2dc8fb76-dc89-a6c8-ad57-63aba8a098cd@gmail.com> References: <2dc8fb76-dc89-a6c8-ad57-63aba8a098cd@gmail.com> Message-ID: i can't see it being too hard to make a sandbox on the server.... its a good idea. thanks richmond. should we file this as feature request? On Sat, Mar 24, 2018 at 11:15 AM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > I was "over here" just now: > > https://www.techsupportalert.com/content/dozens-free-online- > programming-environments.htm > > http://www.tutorialspoint.com/codingground.htm > > and thought that a version of LiveCode (7.1.4 perhaps) available as an > online > thing might be a good 'hook'. > > 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 Sat Mar 24 15:48:01 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Mar 2018 12:48:01 -0700 Subject: Online Programming Environment In-Reply-To: References: Message-ID: With LC's main benefits being rapid deployment of GUI apps, this sort of CLI can be useful for some things but not a key value driver for the company. But I agree it wouldn't be hard to do. For those who want it, why not just make it? - rg Tom Glod wrote: > i can't see it being too hard to make a sandbox on the server.... > > its a good idea. thanks richmond. should we file this as feature request? > > On Sat, Mar 24, 2018 at 11:15 AM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I was "over here" just now: >> >> https://www.techsupportalert.com/content/dozens-free-online- >> programming-environments.htm >> >> http://www.tutorialspoint.com/codingground.htm >> >> and thought that a version of LiveCode (7.1.4 perhaps) available as an >> online >> thing might be a good 'hook'. >> >> Richmond. From tom at makeshyft.com Sat Mar 24 16:04:01 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 24 Mar 2018 16:04:01 -0400 Subject: Online Programming Environment In-Reply-To: References: Message-ID: I think the premise was for new users to discover it in that. I may look into it when there is more time ...... i wouldn't have much use for it myself though. On Sat, Mar 24, 2018 at 3:48 PM, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > With LC's main benefits being rapid deployment of GUI apps, this sort of > CLI can be useful for some things but not a key value driver for the > company. > > But I agree it wouldn't be hard to do. For those who want it, why not > just make it? > > - rg > > > Tom Glod wrote: > >> i can't see it being too hard to make a sandbox on the server.... >> >> its a good idea. thanks richmond. should we file this as feature request? >> >> On Sat, Mar 24, 2018 at 11:15 AM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I was "over here" just now: >>> >>> https://www.techsupportalert.com/content/dozens-free-online- >>> programming-environments.htm >>> >>> http://www.tutorialspoint.com/codingground.htm >>> >>> and thought that a version of LiveCode (7.1.4 perhaps) available as an >>> online >>> thing might be a good 'hook'. >>> >>> 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 Sat Mar 24 16:12:51 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 24 Mar 2018 13:12:51 -0700 Subject: Online Programming Environment In-Reply-To: References: Message-ID: <573311b4-9023-724c-ed9d-e50591dfc0c6@fourthworld.com> Tom Glod wrote: > I think the premise was for new users to discover it in that. I may look > into it when there is more time ...... i wouldn't have much use for it > myself though. Exactly. I've found it useful to go through the Bugzilla request queue a couple times a year and see what folks are asking for. Some really great ideas there. Many require engine engineering. Taking engine programmers off the engine to do work any scripter can do slows down development of the engine we all rely on. And if the scriptable task isn't even something we'd use, just how useful would it be to others? So many good and powerful things to do in the world, but if we really thing about it many are things we can do ourselves. When we realize that, we're able to have what we want much sooner. That is, if it's something we really want. :) -- 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 Sun Mar 25 05:22:43 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 25 Mar 2018 11:22:43 +0200 Subject: Codesigning Windows standalones under Mac OS X - a simple and free gui for osslsigncode Message-ID: Hi, a few days ago i posted some instructions for how to code sign Windows programs under Mac OS X with osslsigncode. Unfortunately osslsigncode must be run from shell and signing more than 1 at a time might be complicated. Therefore i?ve created a free little tool called WinSignHelper, which is a simple gui for osslsigncode. Just drag a folder containing your Windows standalone to the program window of WinSignHelper and it does the rest for you. It scans the folder and its subfolders for .exe and .dll files and creates and executes the needed shell commands. You?ll need a version of osslsigncode installed on your Mac. Instructions how to install osslsigncode can be found in the help of WinSignHelper. WinSignHelper supports SHA1, SHA256 and dual signatures (SHA1 and SHA256) signatures. You?ll find more information about WinSignHelper at https://winsignhelper.dermattes.de . Hope it?s useful for the one or the other of the list. Please read the quickstart guide before using it. You?ll find the quickstart guide at https://support.dermattes.de/winsignhelper or in the help section of WinSignHelper Regards, Matthias From richmondmathewson at gmail.com Sun Mar 25 06:11:16 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sun, 25 Mar 2018 13:11:16 +0300 Subject: Online Programming Environment In-Reply-To: References: Message-ID: <59a0afb8-b7ea-11cb-3aa3-7235e730f47a@gmail.com> Exactly: the key word in my posting was "hook". Obviously an online version of LiveCode would have to be a cut-down version; but it should be sufficient to generate interest in the whole shebang. I have had conversations with many people who "cannot be a*sed" to download LiveCode and install it 'just' to try it out (which, in my opinion, doesn't say very much for them); so, by having an easily accessible online version to "dangle under their noses", that lassitude/passivity may be circumvented. Richmond. On 24/3/2018 10:04 pm, Tom Glod via use-livecode wrote: > I think the premise was for new users to discover it in that. I may look > into it when there is more time ...... i wouldn't have much use for it > myself though. > > On Sat, Mar 24, 2018 at 3:48 PM, Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> With LC's main benefits being rapid deployment of GUI apps, this sort of >> CLI can be useful for some things but not a key value driver for the >> company. >> >> But I agree it wouldn't be hard to do. For those who want it, why not >> just make it? >> >> - rg >> >> >> Tom Glod wrote: >> >>> i can't see it being too hard to make a sandbox on the server.... >>> >>> its a good idea. thanks richmond. should we file this as feature request? >>> >>> On Sat, Mar 24, 2018 at 11:15 AM, Richmond Mathewson via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> I was "over here" just now: >>>> https://www.techsupportalert.com/content/dozens-free-online- >>>> programming-environments.htm >>>> >>>> http://www.tutorialspoint.com/codingground.htm >>>> >>>> and thought that a version of LiveCode (7.1.4 perhaps) available as an >>>> online >>>> thing might be a good 'hook'. >>>> >>>> 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 monte at appisle.net Sun Mar 25 17:38:46 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 26 Mar 2018 08:38:46 +1100 Subject: Issues with storage of data in stack In-Reply-To: <2b89bf20-c60a-7bc4-308e-371e52174f72@fourthworld.com> References: <2b89bf20-c60a-7bc4-308e-371e52174f72@fourthworld.com> Message-ID: > On 24 Mar 2018, at 7:23 am, Richard Gaskin via use-livecode wrote: > > Apparently he submitted a pull request last year for what seems like a very nice solution, using formatting strings: > https://github.com/livecode/livecode/pull/5433 > > This was per this BZ request: > https://quality.livecode.com/show_bug.cgi?id=18150 > > Not sure what happened to that. Seems like it would be a great option. Basically that PR is something I did on a weekend that wasn?t really on the radar. I got interested because I was doing the AWS script library so was working with ISO dates. Anyway, we had some discussion internally about whether we should expose ICU date formatting strings rather than continue with the ones described by the dateFormat (which is what I did in my PR). The advantage or ICU strings is that many languages use them so the chance of copy/paste from somewhere online doing what you want is pretty high. However because the dateFormat exists we weren?t overly sure how to proceed there and so we moved on ;-) Cheers Monte From zryip.theslug at gmail.com Sun Mar 25 18:20:51 2018 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 26 Mar 2018 00:20:51 +0200 Subject: [ANN] DGH 2.5 Beta is looking for Testers Message-ID: Dear LiveCode Users and more especially DGH Users: A new major DGH 2.5 version is coming including lot of changes and features. The list of changes would be to long if we have to be exaustive, so here is some of the improvements we have in 2.5: - widgets support in DGH template area - dg2 properties support - dg2 template actions editor (swipe, reorder) - action scripts for adding, deleting rows - action scripts for finding or searching inside the datagrid - formulae and grand total for datagrid table - custom datagrid table headers: checkboxes, multiline label, replacing sort arrow icon by SVG Icons - Possibility to change row template for any available group PDFs documentation are already available for the main new features. Some other PDF will come after the release, such as how to code the new DGH parameters for adding/updating formulae, changing find color, having the hand on custom headers, etc Each pdf will have its corresponding Lesson inside the LiveCode website. Here is the list of the pdf documentation we have, so far: How do I Create Several Columns At A Time? How Do I Change The Sort Arrow Icon Of My Datagrid? How Do I Define A Button To Be Used As An Action Script? How Do I Prepare My DataGrid Form for Search And Find Script? How Do I Use Formulae For Basic Calculation Inside My DataGrid? How Do I Use Grand Total Functions? How Do I Create A Column With A Multiline Header? How Do I Create A Custom Header With A CheckBox? How Do I Create A Column Using A SVG Icon Widget As A Sort Icon? How Do I Change The Templates For Swipe And Reorder Actions? How Do I Use Widgets In The DGH's Template Area? We need some help for testing DGH 2.5 outside of our development environment. Ideally we will happy to send a beta version to users interested to help. LiveCode 8.x or 9.x required, with or without dg2. And as we are not native English, we need also some kindly eyes and feedbacks on our documentation. If you have some interest in DGH and would like to help, feel free to drop me a note. Thanks a lot. Best Regards, -- Zryip TheSlug http://www.aslugontheroad.com From paul at researchware.com Sun Mar 25 18:32:23 2018 From: paul at researchware.com (Paul Dupuis) Date: Sun, 25 Mar 2018 18:32:23 -0400 Subject: LC9.0rc1 and pageHeights Message-ID: I notice in the dictionary entry for LC9rc1 for the pageHeights function that it is still that case that: "The computations used by the pageHeights property assume the field's borderWidth property is set to zero and its margins is set to 6." Will pageHeights ever be updated to use the fields actual borderWidth and margin properties (along with any other applicable properties - perhaps whether the field is fixedLineHeights of not???) for calculating the pageHeights? From rdimola at evergreeninfo.net Sun Mar 25 20:12:02 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 25 Mar 2018 20:12:02 -0400 Subject: Apple iOS App Rejection because Location Usage String is too Generic In-Reply-To: References: <2b89bf20-c60a-7bc4-308e-371e52174f72@fourthworld.com> <005b01d3c301$ce045390$6a0cfab0$@net> Message-ID: <000301d3c497$13df8d80$3b9ea880$@net> Panos / Ludovic, Thanks! Approved... 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 panagiotis merakos via use-livecode Sent: Saturday, March 24, 2018 2:38 AM To: How to use LiveCode Cc: panagiotis merakos Subject: Re: Apple iOS App Rejection because Location Usage String is too Generic Hi Ralph, These are set while building the standalone. See comment 11 here https://quality.livecode.com/show_bug.cgi?id=19780 for a workaround. Best, Panos -- On Fri, Mar 23, 2018 at 11:50 PM, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > These keys aren't in the settings.plist file. > NSLocationUsageDescription > NSLocationWhenInUseUsageDescription > > Does anyone know where they are? I need to change them and re-submit > the app. > > Thanks > > 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 richmondmathewson at gmail.com Mon Mar 26 06:28:32 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 26 Mar 2018 13:28:32 +0300 Subject: Keyboarding Message-ID: I use 2 BBC computers (from 1986) to teach BBC BASIC to children, as well as a variety of BBC computer emulators on Macintosh and Linux computers. The BBC keyboards are unlike the "bog normal" computer keyboard "we all know and love". An onscreen keyboard [i.e. a virtual BBC keyboard] would be of great benefit. These would be placed on a computer desktop underneatha BBC monitor window. Now, after donkey's year's of experience with onscreen keyboards with my Devawriter Pro that as such is not problematic. What IS problematic is how to "feed" a keyDown and/or a keyUp from a LiveCode standalone to another app. This is, of course, an old chestnut that keeps popping up from time to time. Richmond. From panos.merakos at livecode.com Mon Mar 26 07:31:49 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 26 Mar 2018 12:31:49 +0100 Subject: [ANN] This Week in LiveCode 122 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #122 here: https://goo.gl/7gKqQs This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From andrew at midwestcoastmedia.com Mon Mar 26 10:41:25 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Mon, 26 Mar 2018 14:41:25 +0000 Subject: mobile equivelent for suspend & resume Message-ID: <20180326144125.Horde.-5FIWD15Nyg7oMpcv_Zk7Kn@ua850258.serversignin.com> I have a mobile app that I'm looking to implement "Enable Background Execution" in now that the plist hack is no longer required. Is there a simple way to track how long the app has been in the background? Basically, I'd like to initialize the full stack if the user has been gone for a certain amount of time to make sure everything is up-to-date. I found "suspend" and "suspendStack" (with their "resume" and "resumeStack" counterparts) but they aren't supported in mobile. They do exactly what I'm trying to do in the dev desktop environment but do nothing on mobile. My app already writes some other data to a small preference file on the device when the user does a variety of activities, like moving to a previous card with the backKey on Android, so I do have a timestamp for recent activity. I just don't know how to automatically check when a user returns to determine how long they've been gone. --Andrew Bell From bobsneidar at iotecdigital.com Mon Mar 26 11:07:18 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Mar 2018 15:07:18 +0000 Subject: Checkmark for Mac & Windows In-Reply-To: References: Message-ID: What he said. I have a bullet image I use for list fields if what I am doing is too simple for a datagrid. Sometimes a list is just a list. Bob S > On Mar 23, 2018, at 19:15 , Brian Milby via use-livecode wrote: > > Check out "imagesource" - it may be what you need. You can do something > like: > > *set* the imageSource of char 1 of line 1 of fld "Test" of this cd to 878 > Which is a "+" sign, but you can use your own images. modTableField uses > this strategy and has icons for the checked and unchecked state. You could > track state with a particular character in that position if needed. > > Thanks, > Brian > > On Fri, Mar 23, 2018 at 8:22 PM, Knapp Martin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I generate lists on the fly with the first item of each line set with a >> checkmark. After I construct the list under script, I just insert it into a >> standard LC table field. The user can then toggle the checkmark of each >> line off or on with a click (a script in the field takes care of that). >> >> On Mac it's just a matter of using the checkmark character (option-v) >> which I can type right into a script. But on Windows it does not display. I >> don't want to rely on a specific font in case the user does not have that >> installed. Is there really not an *simple* way to do this so that it works >> on both Mac and Windows? I?m redoing a currently Mac-only app so I can >> release for Windows too and don?t really want to re-work all this if >> there?s a simple solution that I?m missing. >> >> Thanks, >> >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 26 11:09:29 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Mar 2018 15:09:29 +0000 Subject: Checkmark for Mac & Windows In-Reply-To: <1bd20cb1-e035-2522-ddeb-87f70a210531@pdslabs.net> References: <1bd20cb1-e035-2522-ddeb-87f70a210531@pdslabs.net> Message-ID: I use a space and a tab, then set the tabs of the field to control the distance of the list from the images. Bob S > On Mar 23, 2018, at 19:19 , Phil Davis via use-livecode wrote: > > One idea: > > - Create or find a checkmark image you like, that looks good within the textHeight of your lists > - Import it into your app > - make sure each line of text begins with maybe 3 spaces > - use the ID of the checkmark image as the imageSource of char 1 of each line > - let your (now modified) script support the same toggle action it now supports > > HTH - > Phil Davis > > > On 3/23/18 6:22 PM, Knapp Martin via use-livecode wrote: >> I generate lists on the fly with the first item of each line set with a checkmark. After I construct the list under script, I just insert it into a standard LC table field. The user can then toggle the checkmark of each line off or on with a click (a script in the field takes care of that). >> >> On Mac it's just a matter of using the checkmark character (option-v) which I can type right into a script. But on Windows it does not display. I don't want to rely on a specific font in case the user does not have that installed. Is there really not an *simple* way to do this so that it works on both Mac and Windows? I?m redoing a currently Mac-only app so I can release for Windows too and don?t really want to re-work all this if there?s a simple solution that I?m missing. >> >> Thanks, >> >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 bobsneidar at iotecdigital.com Mon Mar 26 11:11:42 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Mar 2018 15:11:42 +0000 Subject: Codesigning Windows standalones under Mac OS X - a simple and free gui for osslsigncode In-Reply-To: References: Message-ID: Very useful, thanks Matthias! Bob S > On Mar 25, 2018, at 02:22 , Matthias Rebbe via use-livecode wrote: > > Hi, > > a few days ago i posted some instructions for how to code sign Windows programs under Mac OS X with osslsigncode. Unfortunately osslsigncode must be run from shell and signing more than 1 at a time might be complicated. > > Therefore i?ve created a free little tool called WinSignHelper, which is a simple gui for osslsigncode. Just drag a folder containing your Windows standalone to the program window of WinSignHelper and it does the rest for you. It scans the folder and its subfolders for .exe and .dll files and creates and executes the needed shell commands. > You?ll need a version of osslsigncode installed on your Mac. Instructions how to install osslsigncode can be found in the help of WinSignHelper. > WinSignHelper supports SHA1, SHA256 and dual signatures (SHA1 and SHA256) signatures. > > You?ll find more information about WinSignHelper at https://winsignhelper.dermattes.de . > > Hope it?s useful for the one or the other of the list. Please read the quickstart guide before using it. You?ll find the quickstart guide at https://support.dermattes.de/winsignhelper or in the help section of WinSignHelper > > > 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 jacque at hyperactivesw.com Mon Mar 26 12:49:27 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 26 Mar 2018 11:49:27 -0500 Subject: mobile equivelent for suspend & resume In-Reply-To: <20180326144125.Horde.-5FIWD15Nyg7oMpcv_Zk7Kn@ua850258.serversignin.com> References: <20180326144125.Horde.-5FIWD15Nyg7oMpcv_Zk7Kn@ua850258.serversignin.com> Message-ID: <1626336edd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Unfortunately there is no mobile equivalent to suspend and resume. I've needed those many times for more than just tracking purposes and I haven't found a workaround. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 26, 2018 9:43:44 AM Andrew Bell via use-livecode wrote: > I have a mobile app that I'm looking to implement "Enable Background > Execution" in now that the plist hack is no longer required. Is there > a simple way to track how long the app has been in the background? > Basically, I'd like to initialize the full stack if the user has been > gone for a certain amount of time to make sure everything is up-to-date. > > I found "suspend" and "suspendStack" (with their "resume" and > "resumeStack" counterparts) but they aren't supported in mobile. They > do exactly what I'm trying to do in the dev desktop environment but do > nothing on mobile. > > My app already writes some other data to a small preference file on > the device when the user does a variety of activities, like moving to > a previous card with the backKey on Android, so I do have a timestamp > for recent activity. I just don't know how to automatically check when > a user returns to determine how long they've been gone. > > --Andrew Bell > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 26 13:13:03 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Mar 2018 10:13:03 -0700 Subject: mobile equivelent for suspend & resume In-Reply-To: <1626336edd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1626336edd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Peter Brett submitted a request for that in Feb 2016: https://quality.livecode.com/show_bug.cgi?id=16829 -- Richard Gaskin Fourth World Systems J. Landman Gay wrote: > Unfortunately there is no mobile equivalent to suspend and resume. I've > needed those many times for more than just tracking purposes and I haven't > found a workaround. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On March 26, 2018 9:43:44 AM Andrew Bell via use-livecode > wrote: > >> I have a mobile app that I'm looking to implement "Enable Background >> Execution" in now that the plist hack is no longer required. Is there >> a simple way to track how long the app has been in the background? >> Basically, I'd like to initialize the full stack if the user has been >> gone for a certain amount of time to make sure everything is up-to-date. >> >> I found "suspend" and "suspendStack" (with their "resume" and >> "resumeStack" counterparts) but they aren't supported in mobile. They >> do exactly what I'm trying to do in the dev desktop environment but do >> nothing on mobile. >> >> My app already writes some other data to a small preference file on >> the device when the user does a variety of activities, like moving to >> a previous card with the backKey on Android, so I do have a timestamp >> for recent activity. I just don't know how to automatically check when >> a user returns to determine how long they've been gone. >> >> --Andrew Bell From jacque at hyperactivesw.com Mon Mar 26 13:48:34 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 26 Mar 2018 12:48:34 -0500 Subject: mobile equivelent for suspend & resume In-Reply-To: References: <1626336edd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <162636d0d50.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The last I remember, they tried to implement those but it proved to be extraordinarily complex. Now that both mobile platforms run apps in the background though, it's Important to know when the app comes to the front. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 26, 2018 12:15:07 PM Richard Gaskin via use-livecode wrote: > Peter Brett submitted a request for that in Feb 2016: > > https://quality.livecode.com/show_bug.cgi?id=16829 > > -- > Richard Gaskin > Fourth World Systems > > > J. Landman Gay wrote: > > Unfortunately there is no mobile equivalent to suspend and resume. I've > > needed those many times for more than just tracking purposes and I haven't > > found a workaround. > > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On March 26, 2018 9:43:44 AM Andrew Bell via use-livecode > > wrote: > > >> > I have a mobile app that I'm looking to implement "Enable Background >> > Execution" in now that the plist hack is no longer required. Is there >> > a simple way to track how long the app has been in the background? >> > Basically, I'd like to initialize the full stack if the user has been >> > gone for a certain amount of time to make sure everything is up-to-date. >> > >> > I found "suspend" and "suspendStack" (with their "resume" and >> > "resumeStack" counterparts) but they aren't supported in mobile. They >> > do exactly what I'm trying to do in the dev desktop environment but do >> > nothing on mobile. >> > >> > My app already writes some other data to a small preference file on >> > the device when the user does a variety of activities, like moving to >> > a previous card with the backKey on Android, so I do have a timestamp >> > for recent activity. I just don't know how to automatically check when >> > a user returns to determine how long they've been gone. >> > >> > --Andrew Bell > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Mon Mar 26 14:12:53 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 26 Mar 2018 18:12:53 +0000 Subject: RevZilla (2.5) Message-ID: I found a stack that used to work to provide a LC interface to Bugzilla. I briefly tried to get it to work, but even after I could authenticate it just didn?t work correctly. Has anyone kept this tool up to date? Thanks, Brian From ambassador at fourthworld.com Mon Mar 26 14:25:05 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Mar 2018 11:25:05 -0700 Subject: RevZilla (2.5) In-Reply-To: References: Message-ID: Brian Milby wrote: > I found a stack that used to work to provide a LC interface to > Bugzilla. I briefly tried to get it to work, but even after I > could authenticate it just didn?t work correctly. Has anyone kept > this tool up to date? I'm guessing you're referring to this one, from Ken Ray: http://www.sonsothunder.com/devres/livecode/downloads/RevZilla2.htm IIRC last time I spoke with Ken about that there were enough changes in BZ to make updating RevZilla an unattractive task. It's old enough that I don't even think it has an explicit license, so it may not be clear to others how to proceed if they want to try to undertake that themselves. I think he'd be quite supportive of having someone else update it. His email link is available on the last line of that page. -- 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 brian at milby7.com Mon Mar 26 15:05:24 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 26 Mar 2018 19:05:24 +0000 Subject: RevZilla (2.5) In-Reply-To: References: Message-ID: I?ve looked at the code enough to know that any update by someone other than Ken would be a huge task. I was kind of hoping that someone else had already had the itch and scratched it :) It was developed without explicit variable checking so going there would be fun. But it also has a bit of code supporting legacy Mac that wouldn?t be needed. Thanks, Brian On Mon, Mar 26, 2018 at 1:25 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Brian Milby wrote: > > > I found a stack that used to work to provide a LC interface to > > Bugzilla. I briefly tried to get it to work, but even after I > > could authenticate it just didn?t work correctly. Has anyone kept > > this tool up to date? > > I'm guessing you're referring to this one, from Ken Ray: > http://www.sonsothunder.com/devres/livecode/downloads/RevZilla2.htm > > IIRC last time I spoke with Ken about that there were enough changes in > BZ to make updating RevZilla an unattractive task. > > It's old enough that I don't even think it has an explicit license, so > it may not be clear to others how to proceed if they want to try to > undertake that themselves. > > I think he'd be quite supportive of having someone else update it. His > email link is available on the last line of that page. > > -- > 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 jacque at hyperactivesw.com Mon Mar 26 15:16:11 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 26 Mar 2018 14:16:11 -0500 Subject: Codesigning Windows standalones under Mac OS X - a simple and free gui for osslsigncode In-Reply-To: References: Message-ID: <77454432-f788-4220-cda6-1efaaaf019fd@hyperactivesw.com> I've passed this info on to my client who has a Windows cert, she's very happy about it. And she is going to test the original Windows app you created too, she just hasn't got to it yet. Thanks for your work on this Matthias, it's a very nice addition to our LC toolbox. On 3/25/18 4:22 AM, Matthias Rebbe via use-livecode wrote: > Hi, > > a few days ago i posted some instructions for how to code sign Windows programs under Mac OS X with osslsigncode. Unfortunately osslsigncode must be run from shell and signing more than 1 at a time might be complicated. > > Therefore i?ve created a free little tool called WinSignHelper, which is a simple gui for osslsigncode. Just drag a folder containing your Windows standalone to the program window of WinSignHelper and it does the rest for you. It scans the folder and its subfolders for .exe and .dll files and creates and executes the needed shell commands. > You?ll need a version of osslsigncode installed on your Mac. Instructions how to install osslsigncode can be found in the help of WinSignHelper. > WinSignHelper supports SHA1, SHA256 and dual signatures (SHA1 and SHA256) signatures. > > You?ll find more information about WinSignHelper at https://winsignhelper.dermattes.de . > > Hope it?s useful for the one or the other of the list. Please read the quickstart guide before using it. You?ll find the quickstart guide at https://support.dermattes.de/winsignhelper or in the help section of WinSignHelper > > > 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 > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Mon Mar 26 15:14:49 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 26 Mar 2018 12:14:49 -0700 Subject: RevZilla (2.5) In-Reply-To: References: Message-ID: <53e65cd5-5db0-eb9e-43c2-57757b0c6aaa@fourthworld.com> Brian Milby wrote: > It was developed without explicit variable checking so going there > would be fun. Most code in our community doesn't comply with the explicVars global prop, not even the IDE. Thankfully the LC team's response was more accommodating than SuperCard's where that property premiered: the LC IDE's Script Editor now only uses that temporarily to check a script, but does not attempt to run with that property active. If it's a problem with a stack just turn it off while you're working. Over time maybe more declarations can be added (though that is indeed tedious, which is why so many of us don't bother in a language that doesn't require declaration). -- 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 ahsoftware at sonic.net Mon Mar 26 16:11:46 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 26 Mar 2018 13:11:46 -0700 Subject: RevZilla (2.5) In-Reply-To: References: Message-ID: <53134e6f-9783-9280-3d6a-61505bbdf9b4@sonic.net> On 03/26/2018 12:05 PM, Brian Milby via use-livecode wrote: > I?ve looked at the code enough to know that any update by someone other > than Ken would be a huge task. I was kind of hoping that someone else had > already had the itch and scratched it :) > > It was developed without explicit variable checking so going there would be > fun. But it also has a bit of code supporting legacy Mac that wouldn?t be > needed. I did that back in the day, but RunRev's use of bugzilla changed drastically at the point where RevZilla 2.5 stopped working. There are enough things hidden now from normal view that it would be a major task to redo it. I can dig through the archives and probably send you a version that is explicitVars-safe if that helps. It was fun while it lasted. -- Mark Wieder ahsoftware at gmail.com From terry.judd at unimelb.edu.au Mon Mar 26 21:20:45 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Tue, 27 Mar 2018 01:20:45 +0000 Subject: Question about HTML5 and accessing urls Message-ID: <2E3D4C0F-1EC9-4C2A-97F2-F1B2B19CE086@unimelb.edu.au> Hi - I?m updating a HTLM5-based simulation that we use for training assessors. It captures some usage data so that we can confirm a) that someone has attempted it and b) that they completed all the necessary elements. It was built with an older version of LC community (not sure which version) and relied on the do as javascript thing to export the data to a server via a php routine someone wrote for me. Anyway, now that the HTML5 engine handles urls internally I thought I?d do away with the do as javascript and php combo (which I not sure was completely reliable ? either that or there were a lot of assessors who said they had completed the training when they hadn?t) I thought I could switch to uploading the data to Dropbox (which is something that I?m more familiar with and doesn?t require me to pester our server administrator every time I want to check the uploaded data). I?ve just done a quick test using the community version of LC 9.0.0 (rc-1) and my own version of a dropbox library and it seems to upload and download data just fine when I use the ?test? option in the IDE to launch it in a browser. My question is, will this still work once I serve the ?app? up from a real server given that it and dropbox are occupying different domains? I seem to recall something about url access being restricted but wasn?t sure what the actual implications of that were. As an extra thing ? even though it appears to be supported, I wasn?t able to add and use LC?s JSON Library (for parsing the response from dropbox) to my basic test app as it immediately throws and exception. Any ideas on what might be going on there? I?ve switched to a script-based jsonToArray routine that I picked up from the forum (fastJson), which seems to work really well, in the meantime. Regards, Terry... From brian at milby7.com Mon Mar 26 23:35:01 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 27 Mar 2018 03:35:01 +0000 Subject: RevZilla (2.5) In-Reply-To: <53134e6f-9783-9280-3d6a-61505bbdf9b4@sonic.net> References: <53134e6f-9783-9280-3d6a-61505bbdf9b4@sonic.net> Message-ID: If I tackle it, going through the vars is probably a good way to clean up stuff no longer needed. At first I tried to define everything but gave up and restarted with the setting turned off. I think I did at least get it to authenticate but data had changed too much for anything to really work. If the code is handy, it wouldn?t hurt, but not sure if I will have time for this project. Thanks, Brian On Mon, Mar 26, 2018 at 3:12 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 03/26/2018 12:05 PM, Brian Milby via use-livecode wrote: > > I?ve looked at the code enough to know that any update by someone other > > than Ken would be a huge task. I was kind of hoping that someone else had > > already had the itch and scratched it :) > > > > It was developed without explicit variable checking so going there would > be > > fun. But it also has a bit of code supporting legacy Mac that wouldn?t be > > needed. > > I did that back in the day, but RunRev's use of bugzilla changed > drastically at the point where RevZilla 2.5 stopped working. There are > enough things hidden now from normal view that it would be a major task > to redo it. I can dig through the archives and probably send you a > version that is explicitVars-safe if that helps. It was fun while it > lasted. > > -- > Mark Wieder > ahsoftware at gmail.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 scott at elementarysoftware.com Tue Mar 27 01:36:53 2018 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Mon, 26 Mar 2018 22:36:53 -0700 Subject: [OT] Web based HyperCard Message-ID: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> This may be of interest to some of you (old) HyperCard folks. "ViperCard in an open source re-creation and re-imagination of 1987?s HyperCard.? It runs in a web browser (not Safari, apparently but Firefox seemed to work well) https://www.vipercard.net/ It is still version 0.2 but the paint tools, button, field and script window are working as you might expect. (Plus a lot of documentation!) I was amazed by what it could do and how closely it followed the old HyperCard look. ViperCard is the work of Ben Fisher, who I had the great pleasure of introducing to HyperCard back in the day? when he was 8 years old and a student in my third grade class. Way cool! Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com office 1-800-615-0867 ------------------------------------------------------ From richmondmathewson at gmail.com Tue Mar 27 04:28:54 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 27 Mar 2018 11:28:54 +0300 Subject: [OT] Web based HyperCard In-Reply-To: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> Message-ID: <727f5d4a-78e5-415f-fa65-273aee3883f8@gmail.com> Undoubtedly very clever, but I do wonder what the purpose of it is. Richmond. On 27/3/2018 8:36 am, scott--- via use-livecode wrote: > This may be of interest to some of you (old) HyperCard folks. > > "ViperCard in an open source re-creation and re-imagination of 1987?s HyperCard.? It runs in a web browser (not Safari, apparently but Firefox seemed to work well) > > https://www.vipercard.net/ > > It is still version 0.2 but the paint tools, button, field and script window are working as you might expect. (Plus a lot of documentation!) I was amazed by what it could do and how closely it followed the old HyperCard look. ViperCard is the work of Ben Fisher, who I had the great pleasure of introducing to HyperCard back in the day? when he was 8 years old and a student in my third grade class. Way cool! > > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web http://elementarysoftware.com/ > email scott at elementarysoftware.com > office 1-800-615-0867 > > ------------------------------------------------------ > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 27 08:59:06 2018 From: dunbarx at aol.com (dunbarx) Date: Tue, 27 Mar 2018 05:59:06 -0700 (MST) Subject: [OT] Web based HyperCard In-Reply-To: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> Message-ID: <1522155546678-0.post@n4.nabble.com> Could only see a black screen when opening in Safari on OS 10.9. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From colinholgate at gmail.com Tue Mar 27 09:00:39 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 27 Mar 2018 09:00:39 -0400 Subject: [OT] Web based HyperCard In-Reply-To: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> Message-ID: <9072F1F6-EF0A-4141-A547-B12343B3DBEE@gmail.com> It seems to fully work in Safari on Mac, but he hasn?t prevented the page scroll, so some things don?t work on iPad. From harrison at all-auctions.com Tue Mar 27 09:28:27 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 27 Mar 2018 09:28:27 -0400 Subject: [OT] Web based HyperCard In-Reply-To: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> Message-ID: Hi Scott, Tell us about it again once it is full color and not just B&W. Thanks, Rick > On Mar 27, 2018, at 1:36 AM, scott--- via use-livecode wrote: > > This may be of interest to some of you (old) HyperCard folks. > > "ViperCard in an open source re-creation and re-imagination of 1987?s HyperCard.? It runs in a web browser (not Safari, apparently but Firefox seemed to work well) > > https://www.vipercard.net/ > > It is still version 0.2 but the paint tools, button, field and script window are working as you might expect. (Plus a lot of documentation!) I was amazed by what it could do and how closely it followed the old HyperCard look. ViperCard is the work of Ben Fisher, who I had the great pleasure of introducing to HyperCard back in the day? when he was 8 years old and a student in my third grade class. Way cool! > > Scott Morrow > From MikeKerner at roadrunner.com Tue Mar 27 09:44:31 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 27 Mar 2018 09:44:31 -0400 Subject: gather windows Message-ID: didn't someone write a stack for gathering all windows after a multi-monitor fiasco? -- 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 merakosp at gmail.com Tue Mar 27 09:55:45 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 27 Mar 2018 14:55:45 +0100 Subject: gather windows In-Reply-To: References: Message-ID: You mean this? http://forums.livecode.com/viewtopic.php?t=30265 Best, Panos -- On Tue, Mar 27, 2018 at 2:44 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > didn't someone write a stack for gathering all windows after a > multi-monitor fiasco? > > -- > 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 MikeKerner at roadrunner.com Tue Mar 27 09:56:00 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 27 Mar 2018 09:56:00 -0400 Subject: variable xref Message-ID: Has anyone written a script to go through a stack and xref the variables? -- 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 Tue Mar 27 09:58:44 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 27 Mar 2018 09:58:44 -0400 Subject: gather windows In-Reply-To: References: Message-ID: ah yes thanks On Tue, Mar 27, 2018 at 9:55 AM, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > You mean this? > > http://forums.livecode.com/viewtopic.php?t=30265 > > Best, > Panos > -- > > On Tue, Mar 27, 2018 at 2:44 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > didn't someone write a stack for gathering all windows after a > > multi-monitor fiasco? > > > > -- > > 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 > -- 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 thatkeith at mac.com Tue Mar 27 10:06:56 2018 From: thatkeith at mac.com (Keith Martin) Date: Tue, 27 Mar 2018 15:06:56 +0100 Subject: [OT] Web based HyperCard In-Reply-To: References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> Message-ID: <0CE25B87-C0BD-45B5-8031-DF5D1C51A4F6@mac.com> On 27 Mar 2018, at 14:28, Rick Harrison via use-livecode wrote: > Tell us about it again once it is full color and not just B&W. When he has the Colorizing HC XCMD simulated? ;) But seriously, while I don't see a hard-nosed practical use for this it is an astounding feat! k From dave at applicationinsight.com Tue Mar 27 10:18:52 2018 From: dave at applicationinsight.com (Dave Kilroy) Date: Tue, 27 Mar 2018 07:18:52 -0700 (MST) Subject: invitation to an openEHR conference that'll feature a LiveCode-built app Message-ID: <1522160332204-0.post@n4.nabble.com> Apologies for cross posting... Those of you who don't use the forum please consider clicking this link: http://forums.livecode.com/viewtopic.php?f=30&t=30799&p=165512#p165512 Those of you who do use the form - you'll have already seen the thread and can move on... Kind regards Dave Kilroy ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Tue Mar 27 10:15:47 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Mar 2018 14:15:47 +0000 Subject: [OT] Web based HyperCard In-Reply-To: <727f5d4a-78e5-415f-fa65-273aee3883f8@gmail.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> <727f5d4a-78e5-415f-fa65-273aee3883f8@gmail.com> Message-ID: Imagine showing someone this, then telling them there is a fully functional application development environment very much like it. Also, nostalgia comes to mind. Bob S > On Mar 27, 2018, at 01:28 , Richmond Mathewson via use-livecode wrote: > > Undoubtedly very clever, but I do wonder what the purpose of it is. > > Richmond. From colinholgate at gmail.com Tue Mar 27 11:13:24 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 27 Mar 2018 11:13:24 -0400 Subject: [OT] Web based HyperCard In-Reply-To: <1522155546678-0.post@n4.nabble.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> <1522155546678-0.post@n4.nabble.com> Message-ID: In Safari preferences you can say to show the Develop menu. In the Develop menu there are experimental features you can enable. I have most of those turned on. > On Mar 27, 2018, at 8:59 AM, dunbarx via use-livecode wrote: > > Could only see a black screen when opening in Safari on OS 10.9. > > Craig Newman > From bodine at bodinetraininggames.com Tue Mar 27 12:18:28 2018 From: bodine at bodinetraininggames.com (tbodine) Date: Tue, 27 Mar 2018 09:18:28 -0700 (MST) Subject: [OT] Web based HyperCard In-Reply-To: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> Message-ID: <1522167508891-0.post@n4.nabble.com> Very cool! Playing with the paint features takes me back to my first Mac encounter in 1984 with MacPaint: Draw a rect. Fill it with brick pattern. Spray paint some graffiti on it. Virtual vandalism -- satisfying and harmless. Thanks for the link! Tom B. -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Tue Mar 27 12:48:57 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Mar 2018 16:48:57 +0000 Subject: [OT] Web based HyperCard In-Reply-To: <1522167508891-0.post@n4.nabble.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> <1522167508891-0.post@n4.nabble.com> Message-ID: <9D2D5FA4-3B23-4C34-8FD9-BE75FA80B014@iotecdigital.com> My first serious Hypercard app kept track of the last 24 months of responses and donations to a syndicated non-profit radio ministry to track which stations were generating responses/donations. Eventually I had it calculating a weighted formula based upon how much the station paid us or we paid them to air the program, along with responses and donations so we could determine where we were being the most effective against the money received/spent. I even had it cutting checks! Bob S > On Mar 27, 2018, at 09:18 , tbodine via use-livecode wrote: > > Very cool! Playing with the paint features takes me back to my first Mac > encounter in 1984 with MacPaint: Draw a rect. Fill it with brick pattern. > Spray paint some graffiti on it. Virtual vandalism -- satisfying and > harmless. > > Thanks for the link! > > Tom B. > > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Tue Mar 27 13:19:31 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 27 Mar 2018 10:19:31 -0700 Subject: [OT] Web based HyperCard In-Reply-To: <0CE25B87-C0BD-45B5-8031-DF5D1C51A4F6@mac.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> <0CE25B87-C0BD-45B5-8031-DF5D1C51A4F6@mac.com> Message-ID: On 03/27/2018 07:06 AM, Keith Martin via use-livecode wrote: > But seriously, while I don't see a hard-nosed practical use for this it > is an astounding feat! Better yet, it appears that this may be the Ben Fisher who has been part of the RR/LC community for a dozen or so years. I donated and forked the code. -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Tue Mar 27 13:23:02 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 27 Mar 2018 10:23:02 -0700 Subject: gather windows In-Reply-To: References: Message-ID: <8435ff6a-39c8-2307-d969-d6d13c23bf3e@fourthworld.com> Mike Kerner wrote: > didn't someone write a stack for gathering all windows after a > multi-monitor fiasco? In addition to the forum script Panos linked to, that's also built into devolution's DeskView tool, accessed by right-clicking in any open part of the tool's mini desktop: http://fourthworld.net/lc/devo-deskview.png devolution is freely available here: http://fourthworld.com/products/devolution/ -- 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 ahsoftware at sonic.net Tue Mar 27 13:23:13 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 27 Mar 2018 10:23:13 -0700 Subject: variable xref In-Reply-To: References: Message-ID: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> On 03/27/2018 06:56 AM, Mike Kerner via use-livecode wrote: > Has anyone written a script to go through a stack and xref the variables? > Yeah, but I didn't find it of much use. Unless you're using a lot of global variables or constants, why would this be useful? ..and notice that this task becomes a *lot* easier if you declare variables. -- Mark Wieder ahsoftware at gmail.com From richmondmathewson at gmail.com Tue Mar 27 14:03:41 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 27 Mar 2018 21:03:41 +0300 Subject: [OT] Web based HyperCard In-Reply-To: References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> Message-ID: <0800a44c-90c4-92ea-986d-b6c632f7a69a@gmail.com> Hence my posting about an online version of LiveCode. Richmond. On 27/3/2018 4:28 pm, Rick Harrison via use-livecode wrote: > Hi Scott, > > Tell us about it again once it is full color and not just B&W. > > Thanks, > > Rick > >> On Mar 27, 2018, at 1:36 AM, scott--- via use-livecode wrote: >> >> This may be of interest to some of you (old) HyperCard folks. >> >> "ViperCard in an open source re-creation and re-imagination of 1987?s HyperCard.? It runs in a web browser (not Safari, apparently but Firefox seemed to work well) >> >> https://www.vipercard.net/ >> >> It is still version 0.2 but the paint tools, button, field and script window are working as you might expect. (Plus a lot of documentation!) I was amazed by what it could do and how closely it followed the old HyperCard look. ViperCard is the work of Ben Fisher, who I had the great pleasure of introducing to HyperCard back in the day? when he was 8 years old and a student in my third grade class. Way cool! >> >> Scott Morrow >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Tue Mar 27 15:32:10 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 27 Mar 2018 12:32:10 -0700 Subject: OT: WebOS resurfaces for the raspberry pi !!! Message-ID: <71189276-b45d-122a-0538-e446d14e555d@sonic.net> https://blog.adafruit.com/2018/03/23/lg-releases-webos-open-source-edition-optimized-for-raspberry-pi-3-raspberry_pi-piday-raspberrypi/ -- Mark Wieder ahsoftware at gmail.com From waprothero at gmail.com Tue Mar 27 17:13:29 2018 From: waprothero at gmail.com (William Prothero) Date: Tue, 27 Mar 2018 14:13:29 -0700 Subject: Qustion abut "the stackfiles" In-Reply-To: <71189276-b45d-122a-0538-e446d14e555d@sonic.net> References: <71189276-b45d-122a-0538-e446d14e555d@sonic.net> Message-ID: <04EB4AE6-7F03-479B-823E-B8DE46C6CB81@gmail.com> Folks: I?m setting up an application with a splash stack and lots of other stacks and libraries that are loaded by the splash stack. I am using ?the stackfiles? of the splash stack to get the relative paths of the various stacks in the resources folder. I?m on LC 9.0.0(rc2), on Mac OS 10.12.3 What I?m wondering is if there are any ?gotchas? with using this method to get the relative paths to the various resource stacks. It seems like this may be the easiest way to adjust paths for the various deployment targets. Best, Bill William A. Prothero http://earthlearningsolutions.org From bobsneidar at iotecdigital.com Tue Mar 27 17:48:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Mar 2018 21:48:25 +0000 Subject: Qustion abut "the stackfiles" In-Reply-To: <04EB4AE6-7F03-479B-823E-B8DE46C6CB81@gmail.com> References: <71189276-b45d-122a-0538-e446d14e555d@sonic.net> <04EB4AE6-7F03-479B-823E-B8DE46C6CB81@gmail.com> Message-ID: This is the prescribed way to do this in a splash stack scenario. The Splash Stack becomes your executable, and all the other stacks, including the *actual* application stack end up in the right place as editable stacks. (The Executable stack is not editable so you cannot set properties that stick from session to session, or save the stacks state.) Bob S > On Mar 27, 2018, at 14:13 , William Prothero via use-livecode wrote: > > Folks: > I?m setting up an application with a splash stack and lots of other stacks and libraries that are loaded by the splash stack. I am using ?the stackfiles? of the splash stack to get the relative paths of the various stacks in the resources folder. I?m on LC 9.0.0(rc2), on Mac OS 10.12.3 > > What I?m wondering is if there are any ?gotchas? with using this method to get the relative paths to the various resource stacks. It seems like this may be the easiest way to adjust paths for the various deployment targets. > > Best, > Bill > > William A. Prothero From brahma at hindu.org Tue Mar 27 17:52:38 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 27 Mar 2018 21:52:38 +0000 Subject: Qustion abut "the stackfiles" In-Reply-To: <04EB4AE6-7F03-479B-823E-B8DE46C6CB81@gmail.com> References: <71189276-b45d-122a-0538-e446d14e555d@sonic.net> <04EB4AE6-7F03-479B-823E-B8DE46C6CB81@gmail.com> Message-ID: <288B8069-6BBC-451F-81E5-F3C00401E938@hindu.org> You the splash get "messed-up" from occasional resave. Don't tell me how, but occasionally the path (which should be relative) becomes absolute lib_calendar libraries/lib_calendar.livecodescript #which it should be becomes lib_calendary /users/brahma/documents/myapp/libraries/lib_calendar.livecodescript plus you are changing files from time to time, so the stackfiles is obsolete. We fixed this by starting with json files, which then sets the splash stackFiles on stack start up On 3/27/18, 11:13 AM, "use-livecode on behalf of William Prothero via use-livecode" wrote: Folks: I?m setting up an application with a splash stack and lots of other stacks and libraries that are loaded by the splash stack. I am using ?the stackfiles? of the splash stack to get the relative paths of the various stacks in the resources folder. I?m on LC 9.0.0(rc2), on Mac OS 10.12.3 What I?m wondering is if there are any ?gotchas? with using this method to get the relative paths to the various resource stacks. It seems like this may be the easiest way to adjust paths for the various deployment targets. Best, Bill From scott at elementarysoftware.com Wed Mar 28 00:16:24 2018 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 27 Mar 2018 21:16:24 -0700 Subject: [OT] Web based HyperCard In-Reply-To: References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> <0CE25B87-C0BD-45B5-8031-DF5D1C51A4F6@mac.com> Message-ID: <3F3862F1-9EB2-48DC-8902-0A74247F91FA@elementarysoftware.com> > On Mar 27, 2018, at 10:19 AM, Mark Wieder via use-livecode wrote: > > Better yet, it appears that this may be the Ben Fisher who has been part of the RR/LC community for a dozen or so years. He is that Ben Fisher :- ) -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) From waprothero at gmail.com Wed Mar 28 01:47:04 2018 From: waprothero at gmail.com (William Prothero) Date: Tue, 27 Mar 2018 22:47:04 -0700 Subject: Qustion abut "the stackfiles" In-Reply-To: <288B8069-6BBC-451F-81E5-F3C00401E938@hindu.org> References: <71189276-b45d-122a-0538-e446d14e555d@sonic.net> <04EB4AE6-7F03-479B-823E-B8DE46C6CB81@gmail.com> <288B8069-6BBC-451F-81E5-F3C00401E938@hindu.org> Message-ID: <20DC5C54-6B4C-45BB-A102-0746452BE630@gmail.com> Do you mean you store the stackfiles in a database, then load the locations with the splash screen? Bill > On Mar 27, 2018, at 2:52 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > You the splash get "messed-up" from occasional resave. > > Don't tell me how, but occasionally the path (which should be relative) becomes absolute > > lib_calendar libraries/lib_calendar.livecodescript #which it should be > > becomes > > lib_calendary /users/brahma/documents/myapp/libraries/lib_calendar.livecodescript > > plus you are changing files from time to time, so the stackfiles is obsolete. > > We fixed this by starting with json files, which then sets the splash stackFiles on stack start up > > On 3/27/18, 11:13 AM, "use-livecode on behalf of William Prothero via use-livecode" wrote: > > Folks: > I?m setting up an application with a splash stack and lots of other stacks and libraries that are loaded by the splash stack. I am using ?the stackfiles? of the splash stack to get the relative paths of the various stacks in the resources folder. I?m on LC 9.0.0(rc2), on Mac OS 10.12.3 > > What I?m wondering is if there are any ?gotchas? with using this method to get the relative paths to the various resource stacks. It seems like this may be the easiest way to adjust paths for the various deployment targets. > > Best, > Bill > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Wed Mar 28 01:48:08 2018 From: waprothero at gmail.com (William Prothero) Date: Tue, 27 Mar 2018 22:48:08 -0700 Subject: gather windows In-Reply-To: <8435ff6a-39c8-2307-d969-d6d13c23bf3e@fourthworld.com> References: <8435ff6a-39c8-2307-d969-d6d13c23bf3e@fourthworld.com> Message-ID: I downloaded Richard?s devolution program and it?s very handy. Thanks, Richard! Bill > On Mar 27, 2018, at 10:23 AM, Richard Gaskin via use-livecode wrote: > > Mike Kerner wrote: > > > didn't someone write a stack for gathering all windows after a > > multi-monitor fiasco? > > In addition to the forum script Panos linked to, that's also built into devolution's DeskView tool, accessed by right-clicking in any open part of the tool's mini desktop: > http://fourthworld.net/lc/devo-deskview.png > > devolution is freely available here: > http://fourthworld.com/products/devolution/ > > -- > 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 roger.e.eller at sealedair.com Wed Mar 28 07:22:15 2018 From: roger.e.eller at sealedair.com (Eller, Roger) Date: Wed, 28 Mar 2018 11:22:15 +0000 Subject: [OT] Web based HyperCard In-Reply-To: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> References: <8BB4A2A2-6642-4595-9AA6-F6EEB69D7599@elementarysoftware.com> Message-ID: That was a nice trip down memory lane. However, I would rather have a modern online script editor for LiveCode where you write a script in one tab of Chrome/Safari/Firefox/Edge , and execute/display it in another tab. No installation of any IDE! ~Roger ________________________________ From: use-livecode on behalf of scott--- via use-livecode Sent: Tuesday, March 27, 2018 1:36:53 AM To: use-livecode at lists.runrev.com Cc: scott at elementarysoftware.com Subject: [OT] Web based HyperCard This may be of interest to some of you (old) HyperCard folks. "ViperCard in an open source re-creation and re-imagination of 1987?s HyperCard.? It runs in a web browser (not Safari, apparently but Firefox seemed to work well) https://www.vipercard.net/ It is still version 0.2 but the paint tools, button, field and script window are working as you might expect. (Plus a lot of documentation!) I was amazed by what it could do and how closely it followed the old HyperCard look. ViperCard is the work of Ben Fisher, who I had the great pleasure of introducing to HyperCard back in the day? when he was 8 years old and a student in my third grade class. Way cool! Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com office 1-800-615-0867 ------------------------------------------------------ _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 28 09:36:18 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 28 Mar 2018 09:36:18 -0400 Subject: LCG Session Suggestions Message-ID: Looking for suggestions for sessions for LCG, whether advanced, beginner, or somewhere in between -- 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 Mar 28 09:45:44 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 28 Mar 2018 09:45:44 -0400 Subject: variable xref In-Reply-To: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> Message-ID: Heck no. I spend way too much time in environments that were written to make the complier-writer's job easier and have 50-100 lines of headers. It's annoying to the extreme. Nothing makes code less readable than re-using i, j, k, l, and m because you don't feel like using a readable loop counter because you'll have to fix the declaration. I want the best of both worlds, and mostly I want the machine to do the work, not me. I'm busy. On Tue, Mar 27, 2018 at 1:23 PM, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 03/27/2018 06:56 AM, Mike Kerner via use-livecode wrote: > >> Has anyone written a script to go through a stack and xref the variables? >> >> > Yeah, but I didn't find it of much use. Unless you're using a lot of > global variables or constants, why would this be useful? > > ..and notice that this task becomes a *lot* easier if you declare > variables. > > -- > Mark Wieder > ahsoftware at gmail.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 > -- 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 alex at tweedly.net Wed Mar 28 09:52:47 2018 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 28 Mar 2018 14:52:47 +0100 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> Message-ID: <3076232b-9203-f7a1-4418-81ae4793123a@tweedly.net> On 28/03/2018 14:45, Mike Kerner via use-livecode wrote: > Heck no. I spend way too much time in environments that were written to > make the complier-writer's job easier and have 50-100 lines of headers. > It's annoying to the extreme. Yeah - why are those variables declared all together, way up at the top, when it would generally be better to declare and describe them down where they are just about to be used :-) > > Nothing makes code less readable than re-using i, j, k, l, and m because > you don't feel like using a readable loop counter because you'll have to > fix the declaration. Of course, even with explicitVariable true, loop variables are auto-declared for you .... > I want the best of both worlds, and mostly I want the machine to do the > work, not me. I'm busy. And one piece of work it can do much better than me is check for typos in my code :-) -- Alex. From tom at makeshyft.com Wed Mar 28 10:10:09 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 28 Mar 2018 10:10:09 -0400 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: me too. :) On Wed, Mar 28, 2018 at 9:36 AM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Looking for suggestions for sessions for LCG, whether advanced, beginner, > or somewhere in between > > -- > 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 bobsneidar at iotecdigital.com Wed Mar 28 10:35:00 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 28 Mar 2018 14:35:00 +0000 Subject: Qustion abut "the stackfiles" In-Reply-To: <288B8069-6BBC-451F-81E5-F3C00401E938@hindu.org> References: <71189276-b45d-122a-0538-e446d14e555d@sonic.net> <04EB4AE6-7F03-479B-823E-B8DE46C6CB81@gmail.com> <288B8069-6BBC-451F-81E5-F3C00401E938@hindu.org> Message-ID: <3811B6E3-603E-4C4A-88FD-619EAD848EBD@iotecdigital.com> This doesn't matter as the stack files are saved in a place in the standalone where the executable knows where to find them. What the paths are prior to that, relative or absolute, has no effect on the executable. Bob S > On Mar 27, 2018, at 14:52 , Sannyasin Brahmanathaswami via use-livecode wrote: > > You the splash get "messed-up" from occasional resave. > > Don't tell me how, but occasionally the path (which should be relative) becomes absolute > > lib_calendar libraries/lib_calendar.livecodescript #which it should be > > becomes > > lib_calendary /users/brahma/documents/myapp/libraries/lib_calendar.livecodescript > > plus you are changing files from time to time, so the stackfiles is obsolete. > > We fixed this by starting with json files, which then sets the splash stackFiles on stack start up From bobsneidar at iotecdigital.com Wed Mar 28 10:38:45 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 28 Mar 2018 14:38:45 +0000 Subject: variable xref In-Reply-To: <3076232b-9203-f7a1-4418-81ae4793123a@tweedly.net> References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <3076232b-9203-f7a1-4418-81ae4793123a@tweedly.net> Message-ID: <7050BFAF-C69E-4CE0-B0EE-CC26EC620D18@iotecdigital.com> The C key will copy what you have selected, if you hold down the ctrl or cmd key when you type it. Similarly, the V key will put what you copied where the cursor is, and will even replace whatever you have selected! ;-) Bob S > On Mar 28, 2018, at 06:52 , Alex Tweedly via use-livecode wrote: > > And one piece of work it can do much better than me is check for typos in my code :-) > > -- Alex. From paul at researchware.com Wed Mar 28 11:28:58 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 28 Mar 2018 11:28:58 -0400 Subject: OSX printing of images issue Message-ID: I have a print subsystem for my application that prints a particular set of data by laying our the page (sizing the card to the paper, allowing for margins, etc, where the content area of the page is a single image object. The resizeQuality is set to "best" and alwaysBuffer is true When I print under Windows (8.x or 10) to a real printer or to PDF, the result appears as expected. When I print under OSX (10.9.5 and up) some of the images are messed up: Some are squished to a vertical bar a few pixels wide. Some are the right size but are just a big rectangle of black and color stripes. Some print properly. This happens whether to Preview PDF or to a real printer. This occurs under LC8.1.9 (and all the way back to at least LC 6.7.11) I have stepped through my print system in the debugger and each page appears exactly as it should (correctly layed out with a good looking image) before the "print card" command. Has anyone experienced this and have any ideas for a work-around or a fix? From bobsneidar at iotecdigital.com Wed Mar 28 11:35:31 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 28 Mar 2018 15:35:31 +0000 Subject: Make an open stack modal by script Message-ID: Hi all. I broached this subject before but in the reverse direction. I have an app that allows multiple windows (I call forms) open at the same time. For instance I can have the customer form, the sites form and the devices form open simultaneously. Changing the customer loads the sites for the new customer and selects the first site, which loads the devices at that site and loads the first device. Clearly if I am editing a device, I want to prevent the user from switching the customer or site, pulling the rug out from under the device edit session. A *GREAT* way to do this might be to make the edit window modal when the user enters the edit mode, preventing him from interacting with the other windows until the form data is saved. Unfortunately, and to my great chagrin, the mode of a window is read only. Am I going to have to use send in time to close and reopen the window modally, and reverse it when the data is saved? Bob S From paul at researchware.com Wed Mar 28 11:50:38 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 28 Mar 2018 11:50:38 -0400 Subject: Make an open stack modal by script In-Reply-To: References: Message-ID: <1557fc4e-d8d0-742d-0fa3-ff5f04cd6656@researchware.com> set the style of stack XXX to modal set the tail end of the style entry in the Dictionary for details On 3/28/2018 11:35 AM, Bob Sneidar via use-livecode wrote: > Hi all. > > I broached this subject before but in the reverse direction. I have an app that allows multiple windows (I call forms) open at the same time. For instance I can have the customer form, the sites form and the devices form open simultaneously. Changing the customer loads the sites for the new customer and selects the first site, which loads the devices at that site and loads the first device. > > Clearly if I am editing a device, I want to prevent the user from switching the customer or site, pulling the rug out from under the device edit session. A *GREAT* way to do this might be to make the edit window modal when the user enters the edit mode, preventing him from interacting with the other windows until the form data is saved. Unfortunately, and to my great chagrin, the mode of a window is read only. > > Am I going to have to use send in time to close and reopen the window modally, and reverse it when the data is saved? > > 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 bobsneidar at iotecdigital.com Wed Mar 28 12:02:13 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 28 Mar 2018 16:02:13 +0000 Subject: Make an open stack modal by script In-Reply-To: <1557fc4e-d8d0-742d-0fa3-ff5f04cd6656@researchware.com> References: <1557fc4e-d8d0-742d-0fa3-ff5f04cd6656@researchware.com> Message-ID: <601CC924-40B9-4232-A689-1080939E30B8@iotecdigital.com> Brilliant! This will make things much smoother. I was hiding all other substacks while editing, but the disappearance of the other windows was disconcerting. Bob S > On Mar 28, 2018, at 08:50 , Paul Dupuis via use-livecode wrote: > > set the style of stack XXX to modal > > set the tail end of the style entry in the Dictionary for details From MikeKerner at roadrunner.com Wed Mar 28 12:25:16 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 28 Mar 2018 12:25:16 -0400 Subject: variable xref In-Reply-To: <7050BFAF-C69E-4CE0-B0EE-CC26EC620D18@iotecdigital.com> References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <3076232b-9203-f7a1-4418-81ae4793123a@tweedly.net> <7050BFAF-C69E-4CE0-B0EE-CC26EC620D18@iotecdigital.com> Message-ID: Right. It's the beauty of LC. You choose to declare, I choose to not declare. Can you imagine how annoying it would be whenever you send a text that included jargon and your phone autocorrected it for you because it didn't know what you meant? Or when your voice assistant didn't understand you and substituted "vasectomy" when you said "vacillate"? I don't think I'd be able to take it. Thank goodness grammar checkers and spellcheckers just hilite and underline the words and phrases they aren't sure about instead of making you add them to the dictionary for every single document. From MikeKerner at roadrunner.com Wed Mar 28 12:25:49 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 28 Mar 2018 12:25:49 -0400 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: Too bad, I beat you to it. On Wed, Mar 28, 2018 at 10:10 AM, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > me too. :) > > On Wed, Mar 28, 2018 at 9:36 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Looking for suggestions for sessions for LCG, whether advanced, beginner, > > or somewhere in between > > > > -- > > 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 > -- 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 ambassador at fourthworld.com Wed Mar 28 12:51:50 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Mar 2018 09:51:50 -0700 Subject: gather windows In-Reply-To: References: Message-ID: <22a1c0c9-dbc5-41e5-d7a9-838c89d9cd3c@fourthworld.com> Thanks for the kind words, Bill. Very glad you're finding devolution useful. I haven't worked a day in the last 15 years without it. -- Richard Gaskin Fourth World Systems William Prothero wrote: > I downloaded Richard?s devolution program and it?s very handy. Thanks, > Richard! > Bill > >> On Mar 27, 2018, at 10:23 AM, Richard Gaskin wrote: >> >> Mike Kerner wrote: >> >> > didn't someone write a stack for gathering all windows after a >> > multi-monitor fiasco? >> >> In addition to the forum script Panos linked to, that's also built >> into devolution's DeskView tool, accessed by right-clicking in any >> open part of the tool's mini desktop: >> http://fourthworld.net/lc/devo-deskview.png >> >> devolution is freely available here: >> http://fourthworld.com/products/devolution/ >> >> -- >> Richard Gaskin >> Fourth World Systems From ambassador at fourthworld.com Wed Mar 28 12:57:33 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Mar 2018 09:57:33 -0700 Subject: [OT] Web based HyperCard In-Reply-To: References: Message-ID: <672588e4-c0aa-c75e-9d77-bae85038c933@fourthworld.com> Eller, Roger wrote: > That was a nice trip down memory lane. However, I would rather have > a modern online script editor for LiveCode where you write a script > in one tab of Chrome/Safari/Firefox/Edge , and > execute/display it in another tab. No installation of any IDE! There was a discussion about that here recently: http://lists.runrev.com/pipermail/use-livecode/2018-March/245987.html Scott McDonald once had a site to do that: http://thelivecodelab.com/thelab.html If one really wanted that it wouldn't be too hard to build. Scott's version was more complete, with multiple user accounts and other nice touches. But the simpler version you described could be done in an afternoon. -- 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 Mar 28 13:00:23 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Mar 2018 10:00:23 -0700 Subject: Make an open stack modal by script In-Reply-To: References: Message-ID: <28c4e71f-775e-2e79-942c-0aa99d072719@fourthworld.com> Bob Sneidar wrote: > Unfortunately, and to my great chagrin, the mode of a window is read > only. What does that mean? What exactly do you see? I can't think of any mode that prevents text entry, so maybe you've encountered a bug, or some other script is preventing editing. -- 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 tom at makeshyft.com Wed Mar 28 13:00:44 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 28 Mar 2018 13:00:44 -0400 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: lol...... thinking about studying animation and doing something with that. On Wed, Mar 28, 2018 at 12:25 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Too bad, I beat you to it. > > On Wed, Mar 28, 2018 at 10:10 AM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > me too. :) > > > > On Wed, Mar 28, 2018 at 9:36 AM, Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Looking for suggestions for sessions for LCG, whether advanced, > beginner, > > > or somewhere in between > > > > > > -- > > > 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 > > > > > > -- > 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 tom at makeshyft.com Wed Mar 28 13:03:03 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 28 Mar 2018 13:03:03 -0400 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: here is an idea for you ...3D shapes? .... On Wed, Mar 28, 2018 at 1:00 PM, Tom Glod wrote: > lol...... > > thinking about studying animation and doing something with that. > > > On Wed, Mar 28, 2018 at 12:25 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Too bad, I beat you to it. >> >> On Wed, Mar 28, 2018 at 10:10 AM, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > me too. :) >> > >> > On Wed, Mar 28, 2018 at 9:36 AM, Mike Kerner via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > >> > > Looking for suggestions for sessions for LCG, whether advanced, >> beginner, >> > > or somewhere in between >> > > >> > > -- >> > > 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 >> > >> >> >> >> -- >> 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 ambassador at fourthworld.com Wed Mar 28 13:17:23 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Mar 2018 10:17:23 -0700 Subject: How to handle BasicAuth in Browser widget? Message-ID: This forum post is an interesting problem: https://forums.livecode.com/viewtopic.php?f=7&t=30796 By what means can our stacks use the standard Basic Auth dialog when going to a page that requires it in the Browser widget? -- 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 MikeKerner at roadrunner.com Wed Mar 28 13:59:09 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 28 Mar 2018 13:59:09 -0400 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: Nope. You can have that. Have fun. On Wed, Mar 28, 2018 at 1:03 PM, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > here is an idea for you ...3D shapes? .... > > On Wed, Mar 28, 2018 at 1:00 PM, Tom Glod wrote: > > > lol...... > > > > thinking about studying animation and doing something with that. > > > > > > On Wed, Mar 28, 2018 at 12:25 PM, Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Too bad, I beat you to it. > >> > >> On Wed, Mar 28, 2018 at 10:10 AM, Tom Glod via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> > me too. :) > >> > > >> > On Wed, Mar 28, 2018 at 9:36 AM, Mike Kerner via use-livecode < > >> > use-livecode at lists.runrev.com> wrote: > >> > > >> > > Looking for suggestions for sessions for LCG, whether advanced, > >> beginner, > >> > > or somewhere in between > >> > > > >> > > -- > >> > > 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 > >> > > >> > >> > >> > >> -- > >> 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 > -- 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 roger.e.eller at sealedair.com Wed Mar 28 14:18:36 2018 From: roger.e.eller at sealedair.com (Eller, Roger) Date: Wed, 28 Mar 2018 18:18:36 +0000 Subject: [OT] Web based HyperCard In-Reply-To: <672588e4-c0aa-c75e-9d77-bae85038c933@fourthworld.com> References: , <672588e4-c0aa-c75e-9d77-bae85038c933@fourthworld.com> Message-ID: Interesting. In his FAQ, Scott mentions B4X tools as a superior alternative to LiveCode for mobile development. It does look really nice. ~Roger ________________________________ From: use-livecode on behalf of Richard Gaskin via use-livecode Sent: Wednesday, March 28, 2018 12:57:33 PM To: use-livecode at lists.runrev.com Cc: Richard Gaskin Subject: Re: [OT] Web based HyperCard Eller, Roger wrote: > That was a nice trip down memory lane. However, I would rather have > a modern online script editor for LiveCode where you write a script > in one tab of Chrome/Safari/Firefox/Edge , and > execute/display it in another tab. No installation of any IDE! There was a discussion about that here recently: http://lists.runrev.com/pipermail/use-livecode/2018-March/245987.html Scott McDonald once had a site to do that: http://thelivecodelab.com/thelab.html If one really wanted that it wouldn't be too hard to build. Scott's version was more complete, with multiple user accounts and other nice touches. But the simpler version you described could be done in an afternoon. -- 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 tom at makeshyft.com Wed Mar 28 14:22:14 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 28 Mar 2018 14:22:14 -0400 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: haahaha..... i would do it in the future ...but for this may i need something less intense ....busy time for me. .... last time i picked something that would actually be R & D for actual projects..... kinda ran out of those though. On Wed, Mar 28, 2018 at 1:59 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Nope. You can have that. Have fun. > > On Wed, Mar 28, 2018 at 1:03 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > here is an idea for you ...3D shapes? .... > > > > On Wed, Mar 28, 2018 at 1:00 PM, Tom Glod wrote: > > > > > lol...... > > > > > > thinking about studying animation and doing something with that. > > > > > > > > > On Wed, Mar 28, 2018 at 12:25 PM, Mike Kerner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > >> Too bad, I beat you to it. > > >> > > >> On Wed, Mar 28, 2018 at 10:10 AM, Tom Glod via use-livecode < > > >> use-livecode at lists.runrev.com> wrote: > > >> > > >> > me too. :) > > >> > > > >> > On Wed, Mar 28, 2018 at 9:36 AM, Mike Kerner via use-livecode < > > >> > use-livecode at lists.runrev.com> wrote: > > >> > > > >> > > Looking for suggestions for sessions for LCG, whether advanced, > > >> beginner, > > >> > > or somewhere in between > > >> > > > > >> > > -- > > >> > > 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 > > >> > > > >> > > >> > > >> > > >> -- > > >> 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 > > > > > > -- > 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 tom at makeshyft.com Wed Mar 28 14:27:05 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 28 Mar 2018 14:27:05 -0400 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: There is still a great need for Widgets tutorials. On Wed, Mar 28, 2018 at 2:22 PM, Tom Glod wrote: > haahaha..... i would do it in the future ...but for this may i need > something less intense ....busy time for me. .... last time i picked > something that would actually be R & D for actual projects..... kinda ran > out of those though. > > On Wed, Mar 28, 2018 at 1:59 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Nope. You can have that. Have fun. >> >> On Wed, Mar 28, 2018 at 1:03 PM, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > here is an idea for you ...3D shapes? .... >> > >> > On Wed, Mar 28, 2018 at 1:00 PM, Tom Glod wrote: >> > >> > > lol...... >> > > >> > > thinking about studying animation and doing something with that. >> > > >> > > >> > > On Wed, Mar 28, 2018 at 12:25 PM, Mike Kerner via use-livecode < >> > > use-livecode at lists.runrev.com> wrote: >> > > >> > >> Too bad, I beat you to it. >> > >> >> > >> On Wed, Mar 28, 2018 at 10:10 AM, Tom Glod via use-livecode < >> > >> use-livecode at lists.runrev.com> wrote: >> > >> >> > >> > me too. :) >> > >> > >> > >> > On Wed, Mar 28, 2018 at 9:36 AM, Mike Kerner via use-livecode < >> > >> > use-livecode at lists.runrev.com> wrote: >> > >> > >> > >> > > Looking for suggestions for sessions for LCG, whether advanced, >> > >> beginner, >> > >> > > or somewhere in between >> > >> > > >> > >> > > -- >> > >> > > 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 >> > >> > >> > >> >> > >> >> > >> >> > >> -- >> > >> 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 >> > >> >> >> >> -- >> 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 bobsneidar at iotecdigital.com Wed Mar 28 14:48:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 28 Mar 2018 18:48:25 +0000 Subject: Make an open stack modal by script In-Reply-To: <28c4e71f-775e-2e79-942c-0aa99d072719@fourthworld.com> References: <28c4e71f-775e-2e79-942c-0aa99d072719@fourthworld.com> Message-ID: <4E754B4B-3C7F-4BAA-A9F8-C77DCD7DCF5D@iotecdigital.com> The Property called mode is read only. The mode is set using the style keyword as was pointed out. That works a peach! I had been jumping through hoops to prevent users from accidentally switching a customer or site while editing a device record belonging to one of those two. Now I just set the style to "Modal" while editing and return it to "TopLevel" when not. Bob S > On Mar 28, 2018, at 10:00 , Richard Gaskin via use-livecode wrote: > > Bob Sneidar wrote: > > > Unfortunately, and to my great chagrin, the mode of a window is read > > only. > > What does that mean? What exactly do you see? > > I can't think of any mode that prevents text entry, so maybe you've encountered a bug, or some other script is preventing editing. > > -- > Richard Gaskin From martyknappster at gmail.com Wed Mar 28 19:13:10 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Wed, 28 Mar 2018 16:13:10 -0700 Subject: OSX printing of images issue In-Reply-To: References: Message-ID: <907848BC-56BF-455C-93C2-06E8B1D2F1AD@gmail.com> I?m curious to know what you find. I?m about to embark on updating 2 apps from LC 6.6.5 to the latest in order to get ready for Apple requiring 64 bit. Both apps are heavily printing oriented, so I hope there is an answer here. --- Marty > On Mar 28, 2018, at 8:28 AM, Paul Dupuis via use-livecode wrote: > > I have a print subsystem for my application that prints a particular set > of data by laying our the page (sizing the card to the paper, allowing > for margins, etc, where the content area of the page is a single image > object. The resizeQuality is set to "best" and alwaysBuffer is true > > When I print under Windows (8.x or 10) to a real printer or to PDF, the > result appears as expected. > > When I print under OSX (10.9.5 and up) some of the images are messed up: > Some are squished to a vertical bar a few pixels wide. Some are the > right size but are just a big rectangle of black and color stripes. Some > print properly. This happens whether to Preview PDF or to a real printer. > > This occurs under LC8.1.9 (and all the way back to at least LC 6.7.11) > > I have stepped through my print system in the debugger and each page > appears exactly as it should (correctly layed out with a good looking > image) before the "print card" command. > > Has anyone experienced this and have any ideas for a work-around or a fix? > From monte at appisle.net Wed Mar 28 19:21:53 2018 From: monte at appisle.net (Monte Goulding) Date: Thu, 29 Mar 2018 10:21:53 +1100 Subject: How to handle BasicAuth in Browser widget? In-Reply-To: References: Message-ID: <3E329344-951F-472F-A3C5-12601B8F7400@appisle.net> I think we would either need to add support for a callback or present a dialog natively. It might be possible to handle the load failed callback and check the error string then specify the username and pass in the URL though... > On 29 Mar 2018, at 4:17 am, Richard Gaskin via use-livecode wrote: > > This forum post is an interesting problem: > https://forums.livecode.com/viewtopic.php?f=7&t=30796 > > By what means can our stacks use the standard Basic Auth dialog when going to a page that requires it in the Browser widget? > > -- > 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 paul at researchware.com Wed Mar 28 19:38:37 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 28 Mar 2018 19:38:37 -0400 Subject: OSX printing of images issue In-Reply-To: <907848BC-56BF-455C-93C2-06E8B1D2F1AD@gmail.com> References: <907848BC-56BF-455C-93C2-06E8B1D2F1AD@gmail.com> Message-ID: <0b7c17cd-2da9-9310-7a6c-260d2b7522ee@researchware.com> Marty, I also hope there is an answer, but the lack of responses to my post on this list suggests either very few people are printing images or at least very few are have ever run into this issue. Some images print fine and some do not and I can not find anything consistent about the images themselves to suggest why one would be fine and one would not. In fact, in a few cases the same image has printed as a narrow black vertical bar and also on another attempt printed correctly. My next effort will be to see if I can isolate a set of images into a simplified test stack that reproduces this problem. On 3/28/2018 7:13 PM, Knapp Martin via use-livecode wrote: > I?m curious to know what you find. I?m about to embark on updating 2 apps from LC 6.6.5 to the latest in order to get ready for Apple requiring 64 bit. Both apps are heavily printing oriented, so I hope there is an answer here. > --- > Marty > > >> On Mar 28, 2018, at 8:28 AM, Paul Dupuis via use-livecode wrote: >> >> I have a print subsystem for my application that prints a particular set >> of data by laying our the page (sizing the card to the paper, allowing >> for margins, etc, where the content area of the page is a single image >> object. The resizeQuality is set to "best" and alwaysBuffer is true >> >> When I print under Windows (8.x or 10) to a real printer or to PDF, the >> result appears as expected. >> >> When I print under OSX (10.9.5 and up) some of the images are messed up: >> Some are squished to a vertical bar a few pixels wide. Some are the >> right size but are just a big rectangle of black and color stripes. Some >> print properly. This happens whether to Preview PDF or to a real printer. >> >> This occurs under LC8.1.9 (and all the way back to at least LC 6.7.11) >> >> I have stepped through my print system in the debugger and each page >> appears exactly as it should (correctly layed out with a good looking >> image) before the "print card" command. >> >> Has anyone experienced this and have any ideas for a work-around or a fix? >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Mar 28 21:06:23 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Mar 2018 01:06:23 +0000 Subject: OSX printing of images issue In-Reply-To: <0b7c17cd-2da9-9310-7a6c-260d2b7522ee@researchware.com> References: <907848BC-56BF-455C-93C2-06E8B1D2F1AD@gmail.com> <0b7c17cd-2da9-9310-7a6c-260d2b7522ee@researchware.com> Message-ID: Being an IT guy, and presently working for a Copier company, deploying copier/printers for our customers, I'd advise that you make sure the basics are covered. First, make sure the drivers are current. Don't use XPS drivers as these are problematic. If you want to test the output of a print job, print to a PDF driver first and view the results. That will give you some indication of whether or not the driver is the problem or the app itself. Also, print just the image and see what happens. Sometimes a corrupt font can cause havoc. It's divide and conquer with these sorts of things. Try a simple image dowloaded from the inter webs. See how that goes. Bob S > On Mar 28, 2018, at 16:38 , Paul Dupuis via use-livecode wrote: > > Marty, > > I also hope there is an answer, but the lack of responses to my post on > this list suggests either very few people are printing images or at > least very few are have ever run into this issue. > > Some images print fine and some do not and I can not find anything > consistent about the images themselves to suggest why one would be fine > and one would not. In fact, in a few cases the same image has printed as > a narrow black vertical bar and also on another attempt printed correctly. > > My next effort will be to see if I can isolate a set of images into a > simplified test stack that reproduces this problem. From ambassador at fourthworld.com Thu Mar 29 02:14:03 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 28 Mar 2018 23:14:03 -0700 Subject: Make an open stack modal by script In-Reply-To: <4E754B4B-3C7F-4BAA-A9F8-C77DCD7DCF5D@iotecdigital.com> References: <4E754B4B-3C7F-4BAA-A9F8-C77DCD7DCF5D@iotecdigital.com> Message-ID: Ah, yes - the *property* is read-only; I had mistakenly read that as being about the stack itself somehow being read-only. Yes, the relationship between mode, style, and the mode commands (toplevel, palette, modal, modeless) are wonderfully flexible. Mode lets us know what state the window is in at any given time. Style lets us set a mode as a default when we use open or go. The mode commands let us override that style to open a stack of any style in any mode as needed. In devolution's DeskView window I use these to allow easy toggling of modes by double-clicking the window representation within it: If that stack's style is toplevel it bring it to the front as toplevel. If the style is anything else it uses the toplevel command so I can work on it. If its mode is already toplevel but its style is not, it reopens the stack in its style. -- Richard Gaskin Fourth World Systems Bob Sneidar wrote: > The Property called mode is read only. The mode is set using the style > keyword as was pointed out. That works a peach! I had been jumping > through hoops to prevent users from accidentally switching a customer > or site while editing a device record belonging to one of those two. > Now I just set the style to "Modal" while editing and return it to > "TopLevel" when not. > > Bob S > > >> On Mar 28, 2018, at 10:00 , Richard Gaskin wrote: >> >> Bob Sneidar wrote: >> >> > Unfortunately, and to my great chagrin, the mode of a window >> > is read only. >> >> What does that mean? What exactly do you see? >> >> I can't think of any mode that prevents text entry, so maybe you've >> encountered a bug, or some other script is preventing editing. >> >> -- >> Richard Gaskin From dvglasgow at gmail.com Thu Mar 29 11:35:24 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Thu, 29 Mar 2018 16:35:24 +0100 Subject: Blurring field contents In-Reply-To: References: Message-ID: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> I want to give users options for capturing anonymised cards, and wondered about blurring text - maybe by overlaying a graphic of the text and blurring that? There is an LC tutorial about blurring images , but it seems complex for simply blurring names and addresses in a couple of fields. Any suggestions? Best Wishes, David Glasgow From tore.nilsen at me.com Thu Mar 29 11:46:24 2018 From: tore.nilsen at me.com (Tore Nilsen) Date: Thu, 29 Mar 2018 17:46:24 +0200 Subject: Blurring field contents In-Reply-To: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> Message-ID: <1A4D291B-B1FD-4C69-8F32-3127C2BA2541@me.com> Why not just hide the fields in question before exporting the snapshots and then showing them after the export is done? This way you do not have to work with the exported image. Regards Tore Nilsen > 29. mar. 2018 kl. 17:35 skrev David V Glasgow via use-livecode : > > I want to give users options for capturing anonymised cards, and wondered about blurring text - maybe by overlaying a graphic of the text and blurring that? > > There is an LC tutorial about blurring images , but it seems complex for simply blurring names and addresses in a couple of fields. > > Any suggestions? > > > Best Wishes, > David Glasgow > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 29 12:18:29 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 29 Mar 2018 10:18:29 -0600 Subject: Blurring field contents In-Reply-To: <1A4D291B-B1FD-4C69-8F32-3127C2BA2541@me.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> <1A4D291B-B1FD-4C69-8F32-3127C2BA2541@me.com> Message-ID: You could set the imagesource of the characters into the field, take the snapshot, then "set the text of field "whatever" to the text of field "whatever" to revert. Did a quicky test, and it seems to work well enough. local simageOn on mouseup lock screen if sImageOn is empty then put false into sImageOn if sImageOn then set the text of field 1 to the text of field 1 put false into sImageOn else repeat with i = 1 to the number of chars in field 1 set the imagesource of char i of field 1 to 1008 end repeat put true into sImageOn end if unlock screen end mouseup On Thu, Mar 29, 2018 at 9:46 AM, Tore Nilsen via use-livecode < use-livecode at lists.runrev.com> wrote: > Why not just hide the fields in question before exporting the snapshots > and then showing them after the export is done? This way you do not have to > work with the exported image. > > Regards > Tore Nilsen > > > 29. mar. 2018 kl. 17:35 skrev David V Glasgow via use-livecode < > use-livecode at lists.runrev.com>: > > > > I want to give users options for capturing anonymised cards, and > wondered about blurring text - maybe by overlaying a graphic of the text > and blurring that? > > > > There is an LC tutorial about blurring images < > http://lessons.livecode.com/m/4071/l/26580-vision-how-do-i-blur-an-image>, > but it seems complex for simply blurring names and addresses in a couple of > fields. > > > > Any suggestions? > > > > > > Best Wishes, > > David Glasgow > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Mar 29 12:44:00 2018 From: paul at livecode.org (Paul Hibbert) Date: Thu, 29 Mar 2018 09:44:00 -0700 Subject: Blurring field contents In-Reply-To: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> Message-ID: <8C14C881-BC8E-4345-9A6E-31FD8ACA7130@livecode.org> That tutorial is a bit outdated now that there is a ?blur? command, introduced in LC 8.0, it?s quicker and easier to use. Paul > On Mar 29, 2018, at 8:35 AM, David V Glasgow via use-livecode wrote: > > I want to give users options for capturing anonymised cards, and wondered about blurring text - maybe by overlaying a graphic of the text and blurring that? > > There is an LC tutorial about blurring images , but it seems complex for simply blurring names and addresses in a couple of fields. > > Any suggestions? > > > Best Wishes, > David Glasgow > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iphonelagi at gmail.com Thu Mar 29 12:47:52 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 29 Mar 2018 17:47:52 +0100 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: Hi Mike Two very useful sessions (for me anyway) and the ones that would produce code that everyone can use when we share the results is using FFI for Android/Java , Windows and IOS No 3 sessions Android/Java, Windows and IOS and Linux No 4 ...... nobody expects the Spanish Inquisition ... All joking apart for me at the moment in Order Android and Windows FFI would be be the most useful - for two reason. On the Android front I want to encapsulate the Java SDK calls for Star or Epson Bluetooth Receipt printers and maybe get this Eddyston/Beacons show on the road(I think others on this list might agree that would be awesome). To save time here is a library for B4J (its the java version and it is totally free - for commercial use as well), I have B4A (and B4 for IOSI) if Livecode can't do it but the "designer" if you can call it that leaves a lot to be desired. I would love to be able to code my lowlevel stuff in B4A (it's closer to the metal) but use Livecode for the GUI stuff. Now if we had a way of encapsulation Python code ........ Ali/Mark over to you? Another session would be how to encapsulate Windows DLLs using FFI - so many libraries for different languages that we could use as is. Regards Lagi On 28 March 2018 at 14:36, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Looking for suggestions for sessions for LCG, whether advanced, beginner, > or somewhere in between > > -- > 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 iphonelagi at gmail.com Thu Mar 29 12:50:41 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 29 Mar 2018 17:50:41 +0100 Subject: LCG Session Suggestions In-Reply-To: References: Message-ID: Oops forgot the link to the B4J library https://www.b4x.com/android/forum/threads/sd-bluetooth-printer.85750/ Lagi On 28 March 2018 at 14:36, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Looking for suggestions for sessions for LCG, whether advanced, beginner, > or somewhere in between > > -- > 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 mark at livecode.com Thu Mar 29 13:50:35 2018 From: mark at livecode.com (Mark Waddingham) Date: Thu, 29 Mar 2018 19:50:35 +0200 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> Message-ID: On 2018-03-28 15:45, Mike Kerner via use-livecode wrote: > Heck no. I spend way too much time in environments that were written > to > make the complier-writer's job easier and have 50-100 lines of headers. > It's annoying to the extreme. Heh - I'm not sure that the necessity to predeclare things in many languages can just be put down to 'making the compiler writer's job easier' - even if you go back 'just' 15 years, computers were nowhere near as powerful as they are today and most of the languages which exist today have a history which goes back waaaay further. If things are not pre-declared then you need at *least* two passes to compile a program. Each pass requires a linear traversal of the input to the pass. If you require the programmer to pre-declare then you can compile in a single pass in many cases (a technique called syntax-directed translation). If you don't pre-declare then the first phase has to parse all the syntax into structures without knowing how they fit together, and then you have to iterate over those structures defining the 'names' in appropriate scopes and *then* you have to iterate over those structures again to link up the uses of the names to the definitions. (You can merge the declaration and parsing phases - but not the declaration, parsing and definition phases - hence why you have a minimum of two passes in a language which does not require pre-declaration). Of course, in a dynamic environment like LiveCode where code is split up and insulated into multiple distinct much smaller texts, and you can defer action until use, pre-declaration is not really required (and indeed it is not) - you can amortize the cost of the notional passes over the time the program is running rather than having to do it all ahead of time. > Nothing makes code less readable than re-using i, j, k, l, and m > because > you don't feel like using a readable loop counter because you'll have > to > fix the declaration. I must confess I still use i, j, k etc. type variable naming - but only when I want the index and element in numeric arrays or if I'm writing code which is doing maths where the equations use such index notation: repeat with i = 1 to the number of elements in tVar -- now I can mutate the elements of tVar as it loops end repeat I'm not sure why I've got into that habit though - its not really a good one! Although I don't think it does much harm if the loops are only two or three lines long. Of course, if you happen to have an non-optimizing lower-level compiler, then re-using variables can make a huge difference to code performance as you can be more sure a register will be used (assuming the data type is appropriate) - that being said 32-bit intel architectures have never really had that issue as they have virtually no registers anyway! (Fortunately something which the 64-bit variant has fixed!). > I want the best of both worlds, and mostly I want the machine to do the > work, not me. I'm busy. Indeed, the work has to be done at some point, by somebody/thing - the balance is whether you want to pay the cost: 1) waiting for things to compile (a full recompile of the engine on Mac OS X used to take 15-20mins when I first got it; although the record was apparantly 8 hrs on the AIX box MetaCard used to have - and C/C++ *requires* predeclaration for most things). 2) over the lifetime of the execution of the program (or at the start if you use a lot of code at startup) 3) by the programmer whilst writing the code That all being said, variable analysis could be done better in all languages I think - although it isn't the easiest of problems or things to get right. Python I think might be *slightly* better than LiveCode's (its somewhere between explicitVars = true and explicitVars = false - and doesn't require declaration). On the other hand, Python doesn't have a mode where you can have bare literals (which require significant context analysis to work out whether they are variables are not unless you do all the work whilst executing the code - which is essentially what LiveCode does when explicitVars are false - so you pay for that with a performance cost and not knowing whether you've made an error before you run). I think it would be generally true to say that most programming languages are designed to keep any context-sensitive information required compile/execute them to the bare minimum - and any which is required can be collected in very fast and efficient ways. For humans this is very unintuitive though - if nothing else, humans are generally quite good at very quickly guessing at the correct context of things when there is a paucity of information - computers may have caught up a bit speed wise to allow greater contextual awareness (just because they are faster with more storage/memory) but programming languages perhaps have not... My general feeling that there is a better balance lurking - somewhere between Python and LiveCode's non-explicit-variables mode: 1) Python does not require pre-declaration of variables, and is pretty good at determining when you mis-spelt a variable - however all literals must be quoted. 2) LiveCode does not require pre-declaration (in expliciVars = false mode), and allows you to unquote literals as long as they are not also variables in the same context - but it cannot tell you if you've mis-spelt a variable. The problem here is finding that balance. Warmest Regards, Mark. P.S. We are also, of course, blessed with the fact these days that you can have readable variable names at all - I think the VMS C compiler still had an 8 char limit on identifiers until some hideously recent time. P.P.S. Even with the machines we do have today, I'm not sure what not having to predeclare things in C would do the speed of compilation of C - so in some cases we just have to live with the slight inconvenience :) -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Thu Mar 29 14:46:51 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 29 Mar 2018 11:46:51 -0700 Subject: How to handle BasicAuth in Browser widget? In-Reply-To: <3E329344-951F-472F-A3C5-12601B8F7400@appisle.net> References: <3E329344-951F-472F-A3C5-12601B8F7400@appisle.net> Message-ID: <149ea868-5ac2-f31c-103c-99da38e25182@fourthworld.com> Thanks, Monte. Any guidance on what I might tell that new user in the forums? -- Richard Gaskin Fourth World Systems Monte Goulding wrote: > I think we would either need to add support for a callback or present > a dialog natively. It might be possible to handle the load failed > callback and check the error string then specify the username and pass > in the URL though... > >> On 29 Mar 2018, at 4:17 am, Richard Gaskin wrote: >> >> This forum post is an interesting problem: >> https://forums.livecode.com/viewtopic.php?f=7&t=30796 >> >> By what means can our stacks use the standard Basic Auth dialog when >> going to a page that requires it in the Browser widget? >> -- >> Richard Gaskin From martyknappster at gmail.com Thu Mar 29 14:52:09 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Thu, 29 Mar 2018 11:52:09 -0700 Subject: Selection Handles Message-ID: <2811B06A-6229-4894-AA41-FBE6298A0A1A@gmail.com> I have an app that I'm migrating from LC 6.6.5 to 8.1.9. In it, a user creates documents that may consist of lines, boxes, text areas and images that they insert. There's been a big change between 6.6.5 and 8.1.9 in the selection handles on objects. In 6.6.5, the selection handles on lines were really tiny so I implanted a scheme - when the line is selected I overlay a small button at each end that you drag to change the length and another in the middle to grab the line to move. A side benefit of this is that no matter how "wobbly" the user is in dragging my selection handles, I've scripted it so the line stays perfectly horizontal/vertical. In LC 8.1.9 the selection handles on lines are huge in comparison, and are centered over the middle of the end point, making it trickier to align to another object (a frequent thing in my app). While I can live with it myself, for my customers I'm way less than thrilled. Often times there is the need to create several short lines in close proximity to each other. In 8.1.9 I can't use my own selection handles like I was as they end up *behind* those of LC and must exist on a layer above everything else - a change from 6.6.5. So my question is, is there any way to change the selection handle behavior - something even that is a hack? They're fine on everything else, it's just on lines that it becomes an issue for me. I?m anticipating a ?no? but thought I?d ask! Marty From bonnmike at gmail.com Thu Mar 29 15:02:16 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 29 Mar 2018 13:02:16 -0600 Subject: Selection Handles In-Reply-To: <2811B06A-6229-4894-AA41-FBE6298A0A1A@gmail.com> References: <2811B06A-6229-4894-AA41-FBE6298A0A1A@gmail.com> Message-ID: Since you already have code in place to use your homegrown selection handles, can you adjust things so that the line doesn't actually have to be "selected" to make changes? My guess is that the small button you implemented can be dragged, and then you do your magic and adjust length while constraining to horizontal or vertical. I don't see why the line would actually have to be selected to do this. On Thu, Mar 29, 2018 at 12:52 PM, Knapp Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > I have an app that I'm migrating from LC 6.6.5 to 8.1.9. In it, a user > creates documents that may consist of lines, boxes, text areas and images > that they insert. There's been a big change between 6.6.5 and 8.1.9 in the > selection handles on objects. In 6.6.5, the selection handles on lines were > really tiny so I implanted a scheme - when the line is selected I overlay a > small button at each end that you drag to change the length and another in > the middle to grab the line to move. A side benefit of this is that no > matter how "wobbly" the user is in dragging my selection handles, I've > scripted it so the line stays perfectly horizontal/vertical. > > In LC 8.1.9 the selection handles on lines are huge in comparison, and are > centered over the middle of the end point, making it trickier to align to > another object (a frequent thing in my app). While I can live with it > myself, for my customers I'm way less than thrilled. Often times there is > the need to create several short lines in close proximity to each other. > > In 8.1.9 I can't use my own selection handles like I was as they end up > *behind* those of LC and must exist on a layer above everything else - a > change from 6.6.5. > > So my question is, is there any way to change the selection handle > behavior - something even that is a hack? They're fine on everything else, > it's just on lines that it becomes an issue for me. I?m anticipating a ?no? > but thought I?d ask! > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mar 29 15:17:02 2018 From: martyknappster at gmail.com (Knapp Martin) Date: Thu, 29 Mar 2018 12:17:02 -0700 Subject: Selection Handles In-Reply-To: References: <2811B06A-6229-4894-AA41-FBE6298A0A1A@gmail.com> Message-ID: <97516B94-2442-411B-9F9D-31AFAC3FC48C@gmail.com> Thanks Mike. The app allows the user to be in standard LC edit mode to select any of the objects, either by clicking on them or dragging a selection rectangle around them. And I do have tools that allow the user to select multiple objects and then align, layer, make the same size etc. Perhaps I could implement a scheme where if the user selects only 1 line it then deselects and pops up my own selection handles, though that might be a bit ugly. > On Mar 29, 2018, at 12:02 PM, Mike Bonner via use-livecode wrote: > > Since you already have code in place to use your homegrown selection > handles, can you adjust things so that the line doesn't actually have to be > "selected" to make changes? My guess is that the small button you > implemented can be dragged, and then you do your magic and adjust length > while constraining to horizontal or vertical. I don't see why the line > would actually have to be selected to do this. > > On Thu, Mar 29, 2018 at 12:52 PM, Knapp Martin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I have an app that I'm migrating from LC 6.6.5 to 8.1.9. In it, a user >> creates documents that may consist of lines, boxes, text areas and images >> that they insert. There's been a big change between 6.6.5 and 8.1.9 in the >> selection handles on objects. In 6.6.5, the selection handles on lines were >> really tiny so I implanted a scheme - when the line is selected I overlay a >> small button at each end that you drag to change the length and another in >> the middle to grab the line to move. A side benefit of this is that no >> matter how "wobbly" the user is in dragging my selection handles, I've >> scripted it so the line stays perfectly horizontal/vertical. >> >> In LC 8.1.9 the selection handles on lines are huge in comparison, and are >> centered over the middle of the end point, making it trickier to align to >> another object (a frequent thing in my app). While I can live with it >> myself, for my customers I'm way less than thrilled. Often times there is >> the need to create several short lines in close proximity to each other. >> >> In 8.1.9 I can't use my own selection handles like I was as they end up >> *behind* those of LC and must exist on a layer above everything else - a >> change from 6.6.5. >> >> So my question is, is there any way to change the selection handle >> behavior - something even that is a hack? They're fine on everything else, >> it's just on lines that it becomes an issue for me. I?m anticipating a ?no? >> but thought I?d ask! >> >> Marty From bonnmike at gmail.com Thu Mar 29 15:23:08 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 29 Mar 2018 13:23:08 -0600 Subject: Selection Handles In-Reply-To: <97516B94-2442-411B-9F9D-31AFAC3FC48C@gmail.com> References: <2811B06A-6229-4894-AA41-FBE6298A0A1A@gmail.com> <97516B94-2442-411B-9F9D-31AFAC3FC48C@gmail.com> Message-ID: I see, yeah. And rolling your own full blown selection scheme would be a bit much. On Thu, Mar 29, 2018 at 1:17 PM, Knapp Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Mike. The app allows the user to be in standard LC edit mode to > select any of the objects, either by clicking on them or dragging a > selection rectangle around them. And I do have tools that allow the user to > select multiple objects and then align, layer, make the same size etc. > Perhaps I could implement a scheme where if the user selects only 1 line it > then deselects and pops up my own selection handles, though that might be a > bit ugly. > > > On Mar 29, 2018, at 12:02 PM, Mike Bonner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Since you already have code in place to use your homegrown selection > > handles, can you adjust things so that the line doesn't actually have to > be > > "selected" to make changes? My guess is that the small button you > > implemented can be dragged, and then you do your magic and adjust length > > while constraining to horizontal or vertical. I don't see why the line > > would actually have to be selected to do this. > > > > On Thu, Mar 29, 2018 at 12:52 PM, Knapp Martin via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I have an app that I'm migrating from LC 6.6.5 to 8.1.9. In it, a user > >> creates documents that may consist of lines, boxes, text areas and > images > >> that they insert. There's been a big change between 6.6.5 and 8.1.9 in > the > >> selection handles on objects. In 6.6.5, the selection handles on lines > were > >> really tiny so I implanted a scheme - when the line is selected I > overlay a > >> small button at each end that you drag to change the length and another > in > >> the middle to grab the line to move. A side benefit of this is that no > >> matter how "wobbly" the user is in dragging my selection handles, I've > >> scripted it so the line stays perfectly horizontal/vertical. > >> > >> In LC 8.1.9 the selection handles on lines are huge in comparison, and > are > >> centered over the middle of the end point, making it trickier to align > to > >> another object (a frequent thing in my app). While I can live with it > >> myself, for my customers I'm way less than thrilled. Often times there > is > >> the need to create several short lines in close proximity to each other. > >> > >> In 8.1.9 I can't use my own selection handles like I was as they end up > >> *behind* those of LC and must exist on a layer above everything else - a > >> change from 6.6.5. > >> > >> So my question is, is there any way to change the selection handle > >> behavior - something even that is a hack? They're fine on everything > else, > >> it's just on lines that it becomes an issue for me. I?m anticipating a > ?no? > >> but thought I?d ask! > >> > >> Marty > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Mar 29 15:32:26 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 29 Mar 2018 15:32:26 -0400 Subject: Blurring field contents In-Reply-To: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> Message-ID: <2F01B5BF-B8B5-40C6-8502-19055A3EF29F@all-auctions.com> Why do you want to blur text? I can?t stand blurry things, they always make me think there is something wrong with my eyes! (Unless of course that is the purpose of the blurry text.) ;-) Rick > On Mar 29, 2018, at 11:35 AM, David V Glasgow via use-livecode wrote: > > I want to give users options for capturing anonymised cards, and wondered about blurring text - maybe by overlaying a graphic of the text and blurring that? From paul at researchware.com Thu Mar 29 15:33:37 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 29 Mar 2018 15:33:37 -0400 Subject: OSX printing of images issue In-Reply-To: References: Message-ID: On 3/28/2018 11:28 AM, Paul Dupuis via use-livecode wrote: > I have a print subsystem for my application that prints a particular set > of data by laying our the page (sizing the card to the paper, allowing > for margins, etc, where the content area of the page is a single image > object. The resizeQuality is set to "best" and alwaysBuffer is true > > When I print under Windows (8.x or 10) to a real printer or to PDF, the > result appears as expected. > > When I print under OSX (10.9.5 and up) some of the images are messed up: > Some are squished to a vertical bar a few pixels wide. Some are the > right size but are just a big rectangle of black and color stripes. Some > print properly. This happens whether to Preview PDF or to a real printer. > > This occurs under LC8.1.9 (and all the way back to at least LC 6.7.11) > > I have stepped through my print system in the debugger and each page > appears exactly as it should (correctly layed out with a good looking > image) before the "print card" command. > > Has anyone experienced this and have any ideas for a work-around or a fix? ? I added some code to try to capture/create a test stack to report this as a bug. Before I start my "page" repeat loop, I create invisible stack "savePrinting" and set the rect of it to the rect of my print stack (already set to the paper size) During the repeat loop, just before I execute "print card", I copy this card to stack "savePrinting". And after the repeat loop, I save the savePrinting stack to the desktop and delete it. Now with this debug code in place, printing under OSX work fine. It is as it the command 'copy this card to stack "savePrinting" ' forces the objects on the card to be rendered properly when the 'print card' (the next statement) is executed. Still asking if anyone has run into to something like this under OSX? Has anyone run into issue where you are trying to print or export a card whil it is off screen or invisible and not have it render properly? Any known tricks to get LiveCode to force a render of a card's objects if it is off screen or invisible? From bobsneidar at iotecdigital.com Thu Mar 29 16:07:14 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Mar 2018 20:07:14 +0000 Subject: How to handle BasicAuth in Browser widget? In-Reply-To: <3E329344-951F-472F-A3C5-12601B8F7400@appisle.net> References: <3E329344-951F-472F-A3C5-12601B8F7400@appisle.net> Message-ID: I vote for #2 Bob S > On Mar 28, 2018, at 16:21 , Monte Goulding via use-livecode wrote: > > I think we would either need to add support for a callback or present a dialog natively. From brahma at hindu.org Thu Mar 29 16:25:36 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 29 Mar 2018 20:25:36 +0000 Subject: Livecode Json Arrays Key Sort Message-ID: <7634B9FD-AF8A-4591-825D-B6248A66C606@hindu.org> put JSONToArray(tJson) into sColArrayA It is my imagination: Or are the keys of {object set} output as hash order (as per dictionary, required sort them first) simply delimited by { 1 3 5 6 7 2 4 } but keys of an array output as numeric [{ 1 2 3 4 ]] get always 1 2 3 4 with sorting? From dvglasgow at gmail.com Thu Mar 29 16:41:48 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Thu, 29 Mar 2018 21:41:48 +0100 Subject: Blurring field contents In-Reply-To: <8C14C881-BC8E-4345-9A6E-31FD8ACA7130@livecode.org> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> <8C14C881-BC8E-4345-9A6E-31FD8ACA7130@livecode.org> Message-ID: <7DCF0A3D-BB9B-45C8-B3AB-8D484BD62B37@gmail.com> > On 29 Mar 2018, at 5:44 pm, Paul Hibbert via use-livecode wrote: > > That tutorial is a bit outdated now that there is a ?blur? command, introduced in LC 8.0, it?s quicker and easier to use. > > Paul > Ah! Thank you, Paul. That?s good to know. I am a bit Richmondesque in my attachment to older versions of LC, so I have only played a little with LC 8 To those asking why I would want to do this, the answer is to hide clinically sensitive information whilst making it clear that the field is completed. It means that clinicians can generate an anonymised snapshot of the screen to use in presentations/clinical supervision. Its a technique routinely used in walkthroughs or screencasts of clinical information displayed on screen. There was a rather nice implementation in the ScreenSteps app from Blue Mango . Thanks and best wishes, David G From ahsoftware at sonic.net Thu Mar 29 18:33:16 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 29 Mar 2018 15:33:16 -0700 Subject: Livecode Json Arrays Key Sort In-Reply-To: <7634B9FD-AF8A-4591-825D-B6248A66C606@hindu.org> References: <7634B9FD-AF8A-4591-825D-B6248A66C606@hindu.org> Message-ID: <9fc7f4f1-d000-6e3c-503f-b38275b8236d@sonic.net> On 03/29/2018 01:25 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > put JSONToArray(tJson) into sColArrayA > > > > It is my imagination: > > > > Or are the keys of {object set} output as hash order (as per dictionary, required sort them first) > https://quality.livecode.com/show_bug.cgi?id=19698 ...maybe it's worth prodding Mark Waddingham (comment #10) that *now* would be a good time to fix this. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Thu Mar 29 20:17:14 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 30 Mar 2018 00:17:14 +0000 Subject: Livecode Json Arrays Key Sort In-Reply-To: <9fc7f4f1-d000-6e3c-503f-b38275b8236d@sonic.net> References: <7634B9FD-AF8A-4591-825D-B6248A66C606@hindu.org> <9fc7f4f1-d000-6e3c-503f-b38275b8236d@sonic.net> Message-ID: The fix is probably as easy as exposing the list type to LCS. Mark mentioned that at the last LCG last year. Since the parser already uses the list type and the engine has a list type internally it shouldn?t be that hard. On Thu, Mar 29, 2018 at 5:34 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 03/29/2018 01:25 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > put JSONToArray(tJson) into sColArrayA > > > > > > > > It is my imagination: > > > > > > > > Or are the keys of {object set} output as hash order (as per > dictionary, required sort them first) > > > > https://quality.livecode.com/show_bug.cgi?id=19698 > ...maybe it's worth prodding Mark Waddingham (comment #10) that *now* > would be a good time to fix this. > > -- > Mark Wieder > ahsoftware at gmail.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 scott at elementarysoftware.com Thu Mar 29 23:48:58 2018 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Thu, 29 Mar 2018 20:48:58 -0700 Subject: Blurring field contents In-Reply-To: <7DCF0A3D-BB9B-45C8-B3AB-8D484BD62B37@gmail.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> <8C14C881-BC8E-4345-9A6E-31FD8ACA7130@livecode.org> <7DCF0A3D-BB9B-45C8-B3AB-8D484BD62B37@gmail.com> Message-ID: <98C17AC0-6E4A-4733-94C9-025E764BB463@elementarysoftware.com> If blurring turns out to be too problematic you might consider just replacing text with bullets or Lorem Ipsum. -- Scott Morrow > On Mar 29, 2018, at 1:41 PM, David V Glasgow via use-livecode wrote: > > > >> On 29 Mar 2018, at 5:44 pm, Paul Hibbert via use-livecode wrote: >> >> That tutorial is a bit outdated now that there is a ?blur? command, introduced in LC 8.0, it?s quicker and easier to use. >> >> Paul >> > > Ah! Thank you, Paul. That?s good to know. I am a bit Richmondesque in my attachment to older versions of LC, so I have only played a little with LC 8 > > To those asking why I would want to do this, the answer is to hide clinically sensitive information whilst making it clear that the field is completed. It means that clinicians can generate an anonymised snapshot of the screen to use in presentations/clinical supervision. Its a technique routinely used in walkthroughs or screencasts of clinical information displayed on screen. There was a rather nice implementation in the ScreenSteps app from Blue Mango . > > Thanks and best wishes, > > David G > _______________________________________________ > use-livecode mailing list > use-livecode at 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 canelasoftware.com Fri Mar 30 00:14:10 2018 From: mark at canelasoftware.com (Mark Talluto) Date: Thu, 29 Mar 2018 21:14:10 -0700 Subject: OSX printing of images issue In-Reply-To: References: Message-ID: <146581DC-0FF7-42B2-85F5-D3BBDD708C8D@canelasoftware.com> I will ask one of my co-workers to get in contact with you tomorrow. She writes printing code all the time. Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com > On Mar 29, 2018, at 12:33 PM, Paul Dupuis via use-livecode wrote: > > Still asking if anyone has run into to something like this under OSX? > Has anyone run into issue where you are trying to print or export a card > whil it is off screen or invisible and not have it render properly? Any > known tricks to get LiveCode to force a render of a card's objects if it > is off screen or invisible? From MikeKerner at roadrunner.com Fri Mar 30 00:34:17 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 30 Mar 2018 00:34:17 -0400 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> Message-ID: I don't want to pretend to be an expert on the topic of writing compilers, since I only ever wrote two, both under the watchful obsession of a professor, and my lex and parse code were not optimal in either case. In general, they were some of the easiest pieces of large code I ever wrote because the grammars were so rigid and rule-based. Building forgiveness into them would have made the poor developer's life easier, even thought that meant adding a third pass to try to ascertain context instead of blindly aborting when something didn't exactly fit the formula. I agree that unquoted literals are not ideal. I think they should be deprecated, and I think they should have been removed in 1986, so add that to the LC10 list. They have always made reading scripts more difficult. Readability and approachability are two things that have set xtalk apart. Unquoted literals detract from that. From devin_asay at byu.edu Fri Mar 30 10:04:41 2018 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 30 Mar 2018 14:04:41 +0000 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> Message-ID: On Mar 29, 2018, at 10:34 PM, Mike Kerner via use-livecode wrote: > > I don't want to pretend to be an expert on the topic of writing compilers, > since I only ever wrote two, both under the watchful obsession of a > professor, and my lex and parse code were not optimal in either case. In > general, they were some of the easiest pieces of large code I ever wrote > because the grammars were so rigid and rule-based. Building forgiveness > into them would have made the poor developer's life easier, even thought > that meant adding a third pass to try to ascertain context instead of > blindly aborting when something didn't exactly fit the formula. > > I agree that unquoted literals are not ideal. I think they should be > deprecated, and I think they should have been removed in 1986, so add that > to the LC10 list. They have always made reading scripts more difficult. > Readability and approachability are two things that have set xtalk apart. > Unquoted literals detract from that. +1 Devin Asay Director Office of Digital Humanities Brigham Young University From harrison at all-auctions.com Fri Mar 30 10:05:42 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 30 Mar 2018 10:05:42 -0400 Subject: Blurring field contents In-Reply-To: <98C17AC0-6E4A-4733-94C9-025E764BB463@elementarysoftware.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> <8C14C881-BC8E-4345-9A6E-31FD8ACA7130@livecode.org> <7DCF0A3D-BB9B-45C8-B3AB-8D484BD62B37@gmail.com> <98C17AC0-6E4A-4733-94C9-025E764BB463@elementarysoftware.com> Message-ID: <5C4F15C4-53A4-482B-88B7-50910ADFF459@all-auctions.com> You could also make up bogus text data to show instead of using real data. Rick > On Mar 29, 2018, at 11:48 PM, scott--- via use-livecode wrote: > > If blurring turns out to be too problematic you might consider just replacing text with bullets or Lorem Ipsum. > > -- > Scott Morrow From bobsneidar at iotecdigital.com Fri Mar 30 10:35:37 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Mar 2018 14:35:37 +0000 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> Message-ID: <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> I agree. The goal was to make computing as english like as possible, but the take away to that great experiment is that one can only go so far. People interpret what a person may mean. Computers do not have that luxury. Still xTalk is a magnificient accomplishment. Bob S > On Mar 29, 2018, at 21:34 , Mike Kerner via use-livecode wrote: > > I agree that unquoted literals are not ideal. I think they should be > deprecated, and I think they should have been removed in 1986, so add that > to the LC10 list. They have always made reading scripts more difficult. > Readability and approachability are two things that have set xtalk apart. > Unquoted literals detract from that. From jacque at hyperactivesw.com Fri Mar 30 11:40:57 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Mar 2018 10:40:57 -0500 Subject: Blurring field contents In-Reply-To: <5C4F15C4-53A4-482B-88B7-50910ADFF459@all-auctions.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> <8C14C881-BC8E-4345-9A6E-31FD8ACA7130@livecode.org> <7DCF0A3D-BB9B-45C8-B3AB-8D484BD62B37@gmail.com> <98C17AC0-6E4A-4733-94C9-025E764BB463@elementarysoftware.com> <5C4F15C4-53A4-482B-88B7-50910ADFF459@all-auctions.com> Message-ID: <1627791a340.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Or make a generic "blur" image in a graphics program and overlay it on the fields when needed. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 30, 2018 9:07:48 AM Rick Harrison via use-livecode wrote: > You could also make up bogus text data to show instead of using real data. > > Rick > > > On Mar 29, 2018, at 11:48 PM, scott--- via use-livecode > wrote: > > > > If blurring turns out to be too problematic you might consider just > replacing text with bullets or Lorem Ipsum. > > > > -- > > Scott Morrow > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Mar 30 11:43:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Mar 2018 15:43:03 +0000 Subject: Blurring field contents In-Reply-To: <1627791a340.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <72056917-8AD9-402B-9A92-9AE36E4FABBA@gmail.com> <8C14C881-BC8E-4345-9A6E-31FD8ACA7130@livecode.org> <7DCF0A3D-BB9B-45C8-B3AB-8D484BD62B37@gmail.com> <98C17AC0-6E4A-4733-94C9-025E764BB463@elementarysoftware.com> <5C4F15C4-53A4-482B-88B7-50910ADFF459@all-auctions.com> <1627791a340.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <484E9F53-5622-43E6-BC3A-BA398778DFBE@iotecdigital.com> Or cover the hidden fields with graphics of daisies. :-) Bob S > On Mar 30, 2018, at 08:40 , J. Landman Gay via use-livecode wrote: > > Or make a generic "blur" image in a graphics program and overlay it on the fields when needed. From tom at makeshyft.com Fri Mar 30 11:43:13 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 30 Mar 2018 11:43:13 -0400 Subject: do. command. safety. ? Message-ID: Dear Geniuses Sometimes.... late at night just before falling asleep I think about the dangers of the do command. Is it possible to inject code into this mechanism through malware? I do not have enough understanding of operating systems and their processes ...and the livecode engine....to be able to know if its a reasonable question or not. Thanks for any input on this. From bobsneidar at iotecdigital.com Fri Mar 30 11:49:56 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Mar 2018 15:49:56 +0000 Subject: do. command. safety. ? In-Reply-To: References: Message-ID: <2AE95AEC-4F79-4647-B0AD-8B46FBE1520F@iotecdigital.com> Any shell command that can do anything dangerous is typically protected by the host OS. You could not for example install software in a way that would bypass UAC in Windows. You *could* conceivably delete all the files in a folder I suppose, but you couldn't copy files to a protected location. Essentially anything the end user is capable of doing, LC can do, but this is not unique. You can say that about any application. If the IT department has given complete write access to everything to all their users (a common practice I am learning as I interact with our customer IT departments) then it's not up to LC to try to protect themselves from themselves. HTH Bob S > On Mar 30, 2018, at 08:43 , Tom Glod via use-livecode wrote: > > Dear Geniuses > > Sometimes.... late at night just before falling asleep I think about the > dangers of the do command. Is it possible to inject code into this > mechanism through malware? > > I do not have enough understanding of operating systems and their processes > ...and the livecode engine....to be able to know if its a reasonable > question or not. > > Thanks for any input on this. From mark at livecode.com Fri Mar 30 11:56:51 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 30 Mar 2018 16:56:51 +0100 Subject: variable xref In-Reply-To: <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> Message-ID: <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> An important question to ask here is 'what do we mean by English-like'? I'd suggest that the language doesn't matter - so 'natural language like' would perhaps be a better term but even then is that really what we mean? There's no inherent difference (formally at least) between a programming language and a natural language - at least from the way they are written (letters, punctuation, grammar, vocabulary) and perhaps not even in terms of interpretation (what a phrase in a language means - they are either declarations/definition of things, providing context or instructing actions). The difference comes at the point we consider the 'machine' which the language is instructing - human or computer. From this (very narrow) point of view, human machines (the brain) are perhaps just a great deal better 'engineered' to process language quickly and have a much greater capacity for storing, recalling and processing contextual information which means ambiguities can be resolved with a much greater degree of precision and fault tolerance. So we are perhaps talking about constructing language(s) which allows a computer to be instructed more like we would a human - i.e. not having to define every single thing in mind numbing detail, knowing that the receiver has enough competence and knowledge to infer and fill in the gaps correctly and then carrying out those actions with a high degree of accuracy (although computers are probably already better for accuracy in many domains - they just need their hand held throughout!) or at least have the ability to shout when things really don't 'compute'. In this vein I'm not sure syntax is so important. I don't think the experiment as you put it has yet ended - computers and their software development have just not caught up yet which is, in part, probably at least related to performance of computer machines for these kinds of tasks. Warmest Regards, Mark. Sent from my iPhone > On 30 Mar 2018, at 15:35, Bob Sneidar via use-livecode wrote: > > I agree. The goal was to make computing as english like as possible, but the take away to that great experiment is that one can only go so far. People interpret what a person may mean. Computers do not have that luxury. Still xTalk is a magnificient accomplishment. > > Bob S > > >> On Mar 29, 2018, at 21:34 , Mike Kerner via use-livecode wrote: >> >> I agree that unquoted literals are not ideal. I think they should be >> deprecated, and I think they should have been removed in 1986, so add that >> to the LC10 list. They have always made reading scripts more difficult. >> Readability and approachability are two things that have set xtalk apart. >> Unquoted literals detract from 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 mark at livecode.com Fri Mar 30 12:02:59 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 30 Mar 2018 17:02:59 +0100 Subject: do. command. safety. ? In-Reply-To: References: Message-ID: Using do safely is the same as making database queries safe, or URL requests. You 'just' need to make sure that any input from outside is sanitized to ensure that it doesn't change the meaning of the expression you are 'doing'. For example, don't interpolate strings directly in the script using quotes, use a local var instead: put user input into tVar1 do "put tVar1 into x" -- safe Rather than do "put " && quote & user input & quote && "into x" -- not safe Warmest Regards, Mark. Sent from my iPhone > On 30 Mar 2018, at 16:43, Tom Glod via use-livecode wrote: > > Dear Geniuses > > Sometimes.... late at night just before falling asleep I think about the > dangers of the do command. Is it possible to inject code into this > mechanism through malware? > > I do not have enough understanding of operating systems and their processes > ...and the livecode engine....to be able to know if its a reasonable > question or not. > > Thanks for any input on 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 ahsoftware at sonic.net Fri Mar 30 12:27:02 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 30 Mar 2018 09:27:02 -0700 Subject: variable xref In-Reply-To: <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> Message-ID: On 03/30/2018 08:56 AM, Mark Waddingham via use-livecode wrote: > I'd suggest that the language doesn't matter - so 'natural language like' would perhaps be a better term but even then is that really what we mean? A good question to ask here might be "what are the pain points of the language as it now exists?" Since I always use strict variable checking I don't have to worry about unquoted literals because the compiler will always give me an error. For me the pain of having to put quotes around literals is muchly offset by the security of having the compiler keep me out of trouble. Mostly. YMMV. On the other hand, there are certain keywords that I think really should be constants and not unquoted literals. I find it a pain to have to put quotes around color names. If I want to set a text color to black, I find it awkward to have to set it to "black". > So we are perhaps talking about constructing language(s) which allows a computer to be instructed more like we would a human - i.e. not having to define every single thing in mind numbing detail, knowing that the receiver has enough competence and knowledge to infer and fill in the gaps correctly and then carrying out those actions with a high degree of accuracy (although computers are probably already better for accuracy in many domains - they just need their hand held throughout!) or at least have the ability to shout when things really don't 'compute'. In this vein I'm not sure syntax is so important. I'm still not ready to have computers drive cars. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Mar 30 12:42:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Mar 2018 16:42:40 +0000 Subject: variable xref In-Reply-To: <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> Message-ID: <525A29EA-2D60-4DFE-9F43-99F668C35500@iotecdigital.com> I think we are not seeing the elephant in the room here. Programming languages work because a great deal of effort has been exherted defining what we MEAN when we SAY something to the computer. In fact the whole process of writing software is precicely that of removing all ambiguity. It's true that on the surface it appears that we can tell the computer what we want and it can interpret what we mean, but only because under the hood someone wrote code that says in effect, given all these inputs, produce this output. That process is after all at it's heart a binary one. The fact that we are not constantly aware of this is why some men are able to believe that "artificial" intelligence means "actual" intelligence. The only intelligence a computer can posess is that of the developer and the end user. Anything else is an illusion. A grand one I grant, but still it's only the old smoke and mirrors of the ancient sorcerers. The "magic" is making sure no one sees what the sorcerer is actually doing while his subjects are distracted by something else. Let the flaming begin! ;-) Bob S > On Mar 30, 2018, at 08:56 , Mark Waddingham via use-livecode wrote: > > An important question to ask here is 'what do we mean by English-like'? > > I'd suggest that the language doesn't matter - so 'natural language like' would perhaps be a better term but even then is that really what we mean? > > There's no inherent difference (formally at least) between a programming language and a natural language - at least from the way they are written (letters, punctuation, grammar, vocabulary) and perhaps not even in terms of interpretation (what a phrase in a language means - they are either declarations/definition of things, providing context or instructing actions). > > The difference comes at the point we consider the 'machine' which the language is instructing - human or computer. > > From this (very narrow) point of view, human machines (the brain) are perhaps just a great deal better 'engineered' to process language quickly and have a much greater capacity for storing, recalling and processing contextual information which means ambiguities can be resolved with a much greater degree of precision and fault tolerance. > > So we are perhaps talking about constructing language(s) which allows a computer to be instructed more like we would a human - i.e. not having to define every single thing in mind numbing detail, knowing that the receiver has enough competence and knowledge to infer and fill in the gaps correctly and then carrying out those actions with a high degree of accuracy (although computers are probably already better for accuracy in many domains - they just need their hand held throughout!) or at least have the ability to shout when things really don't 'compute'. In this vein I'm not sure syntax is so important. > > I don't think the experiment as you put it has yet ended - computers and their software development have just not caught up yet which is, in part, probably at least related to performance of computer machines for these kinds of tasks. > > Warmest Regards, > > Mark. From tom at makeshyft.com Fri Mar 30 12:49:20 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 30 Mar 2018 12:49:20 -0400 Subject: do. command. safety. ? In-Reply-To: References: Message-ID: Valid point Bob. Thank You. Useful info, Thanks Mark..... I was doing it the right way sometimes. the wrong way other times. thank you. On Fri, Mar 30, 2018 at 12:02 PM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > Using do safely is the same as making database queries safe, or URL > requests. > > You 'just' need to make sure that any input from outside is sanitized to > ensure that it doesn't change the meaning of the expression you are 'doing'. > > For example, don't interpolate strings directly in the script using > quotes, use a local var instead: > > put user input into tVar1 > do "put tVar1 into x" -- safe > > Rather than > > do "put " && quote & user input & quote && "into x" -- not safe > > Warmest Regards, > > Mark. > > Sent from my iPhone > > > On 30 Mar 2018, at 16:43, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Dear Geniuses > > > > Sometimes.... late at night just before falling asleep I think about the > > dangers of the do command. Is it possible to inject code into this > > mechanism through malware? > > > > I do not have enough understanding of operating systems and their > processes > > ...and the livecode engine....to be able to know if its a reasonable > > question or not. > > > > Thanks for any input on 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 mark at livecode.com Fri Mar 30 12:51:48 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 30 Mar 2018 17:51:48 +0100 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> Message-ID: That's pretty much my point of view - the compiler should keep you out of trouble but not get in the way. Colours are the same case as left in the context of textAlign. If we reserved all lowercase alphabetic identifiers, so your vars had to contain an uppercase letter or non letter character then that would 'solve' that problem at the expense of freedom of the coder. (But only for natural languages which have casing!). So really what we want is 'reserved in context' - the problem there though is the context - in many cases that can only be known at runtime. In terms of computers driving cars then we let computers monitor and interpret sensors for humans in nuclear power stations. We let them 'drive' very large aircraft and provide simulated feedback and sensor interpretation there to pilots. Same for trains, trams, vehicles in factories and warehouses... So why not cars? ;) Although that being said - I do have a slight issue with computers driving cars at this point in time - but only because they have to deal with humans driving cars and those pesky pedestrians with free will... Warmest Regards, Mark. Sent from my iPhone > On 30 Mar 2018, at 17:27, Mark Wieder via use-livecode wrote: > >> On 03/30/2018 08:56 AM, Mark Waddingham via use-livecode wrote: >> >> I'd suggest that the language doesn't matter - so 'natural language like' would perhaps be a better term but even then is that really what we mean? > > A good question to ask here might be "what are the pain points of the language as it now exists?" > > Since I always use strict variable checking I don't have to worry about unquoted literals because the compiler will always give me an error. For me the pain of having to put quotes around literals is muchly offset by the security of having the compiler keep me out of trouble. Mostly. YMMV. > > On the other hand, there are certain keywords that I think really should be constants and not unquoted literals. I find it a pain to have to put quotes around color names. If I want to set a text color to black, I find it awkward to have to set it to "black". > >> So we are perhaps talking about constructing language(s) which allows a computer to be instructed more like we would a human - i.e. not having to define every single thing in mind numbing detail, knowing that the receiver has enough competence and knowledge to infer and fill in the gaps correctly and then carrying out those actions with a high degree of accuracy (although computers are probably already better for accuracy in many domains - they just need their hand held throughout!) or at least have the ability to shout when things really don't 'compute'. In this vein I'm not sure syntax is so important. > > I'm still not ready to have computers drive cars. > -- > Mark Wieder > ahsoftware at gmail.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 bobsneidar at iotecdigital.com Fri Mar 30 12:52:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Mar 2018 16:52:25 +0000 Subject: do. command. safety. ? In-Reply-To: References: Message-ID: Ah I saw command in the subject and thought you were talking about shell commands. Bob S > On Mar 30, 2018, at 09:49 , Tom Glod via use-livecode wrote: > > Valid point Bob. Thank You. > > Useful info, Thanks Mark..... I was doing it the right way sometimes. the > wrong way other times. thank you. From tom at makeshyft.com Fri Mar 30 12:53:49 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 30 Mar 2018 12:53:49 -0400 Subject: do. command. safety. ? In-Reply-To: References: Message-ID: your point still applies about not being responsible that the user has allowed malware onto their system. On Fri, Mar 30, 2018 at 12:52 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Ah I saw command in the subject and thought you were talking about shell > commands. > > Bob S > > > > On Mar 30, 2018, at 09:49 , Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Valid point Bob. Thank You. > > > > Useful info, Thanks Mark..... I was doing it the right way sometimes. the > > wrong way other times. 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 jacque at hyperactivesw.com Fri Mar 30 13:09:44 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Mar 2018 12:09:44 -0500 Subject: do. command. safety. ? In-Reply-To: References: Message-ID: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> These look the same to me. Both versions place content into a variable. Is the difference because of how the engine evaluates the input somehow? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 30, 2018 11:04:54 AM Mark Waddingham via use-livecode wrote: > Using do safely is the same as making database queries safe, or URL requests. > > You 'just' need to make sure that any input from outside is sanitized to > ensure that it doesn't change the meaning of the expression you are 'doing'. > > For example, don't interpolate strings directly in the script using quotes, > use a local var instead: > > put user input into tVar1 > do "put tVar1 into x" -- safe > > Rather than > > do "put " && quote & user input & quote && "into x" -- not safe > > Warmest Regards, > > Mark. > > Sent from my iPhone > > > On 30 Mar 2018, at 16:43, Tom Glod via use-livecode > wrote: > > > > Dear Geniuses > > > > Sometimes.... late at night just before falling asleep I think about the > > dangers of the do command. Is it possible to inject code into this > > mechanism through malware? > > > > I do not have enough understanding of operating systems and their processes > > ...and the livecode engine....to be able to know if its a reasonable > > question or not. > > > > Thanks for any input on 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 mark at livecode.com Fri Mar 30 13:15:32 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 30 Mar 2018 18:15:32 +0100 Subject: do. command. safety. ? In-Reply-To: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Think about the string that can be constructed in the quoted version - user input could be "; ...;put " where ... is any code you would like... Sent from my iPhone > On 30 Mar 2018, at 18:09, J. Landman Gay via use-livecode wrote: > > These look the same to me. Both versions place content into a variable. Is the difference because of how the engine evaluates the input somehow? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On March 30, 2018 11:04:54 AM Mark Waddingham via use-livecode wrote: >> >> Using do safely is the same as making database queries safe, or URL requests. >> >> You 'just' need to make sure that any input from outside is sanitized to ensure that it doesn't change the meaning of the expression you are 'doing'. >> >> For example, don't interpolate strings directly in the script using quotes, use a local var instead: >> >> put user input into tVar1 >> do "put tVar1 into x" -- safe >> >> Rather than >> >> do "put " && quote & user input & quote && "into x" -- not safe >> >> Warmest Regards, >> >> Mark. >> >> Sent from my iPhone >> >> > On 30 Mar 2018, at 16:43, Tom Glod via use-livecode wrote: >> > >> > Dear Geniuses >> > >> > Sometimes.... late at night just before falling asleep I think about the >> > dangers of the do command. Is it possible to inject code into this >> > mechanism through malware? >> > >> > I do not have enough understanding of operating systems and their processes >> > ...and the livecode engine....to be able to know if its a reasonable >> > question or not. >> > >> > Thanks for any input on 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 bobsneidar at iotecdigital.com Fri Mar 30 13:16:48 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Mar 2018 17:16:48 +0000 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> Message-ID: We have computers automate these processes, but always with a human ready to intervene. The computer will act based upon the inputs it receives. If the inputs go wrong, you may have an exceptional diagnostic routine running to detect it and act accordingly, but only a human can make a judgement at "runtime" if you will. The value to using computers in these instances is that computers can react much more quickly, and given all the corrects inputs, and assuming it is functioning correctly, will always make the right "decision" based upon a predetermined set of parameters. A human can be slow. A human can make mistakes. A human can become malicious. A computer cannot. A computer can however, lack all the inputs to make what we would call a right decision. Take the classic arguement of a person walking a dog. The dog breaks away right in front of an oncoming car with no time to stop. Does the car swerve to avoid the living mammal right in front of it and hit the dog owner instead? How could you program a computer to make that distinction? If computers are going to drive cars, then it needs to be done all at once. A switch gets thrown and now no one's car will work unless the computer is driving it. Also, I think it would be better if auto driving cars were restricted to places without crossing traffic, like highways/freeways. A car leaving a freeway would have to come to a stop and the driver should have to take control to proceed on streets. Ideally self driving cars should never be based entirely upon optics. For this sort of thing to be really as safe as can be managed, every car would need to have beacons at the corners and maybe along the sides, and the cars would need to be in communication with all the other cars within a certain distance of it. People however would not accept this because there would be the potential to track people without them knowing it's being done. (Of course that is likely happening now but that's another discussion). Bob S > On Mar 30, 2018, at 09:51 , Mark Waddingham via use-livecode wrote: > > In terms of computers driving cars then we let computers monitor and interpret sensors for humans in nuclear power stations. We let them 'drive' very large aircraft and provide simulated feedback and sensor interpretation there to pilots. Same for trains, trams, vehicles in factories and warehouses... So why not cars? ;) From bobsneidar at iotecdigital.com Fri Mar 30 13:18:58 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Mar 2018 17:18:58 +0000 Subject: do. command. safety. ? In-Reply-To: References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <37FC6D1A-855D-4115-9731-C1660AD7BCE8@iotecdigital.com> Couldn't the same be said about tVar? I suppose you mean that you could check the user input before doing it. Bob S > On Mar 30, 2018, at 10:15 , Mark Waddingham via use-livecode wrote: > > Think about the string that can be constructed in the quoted version - user input could be "; ...;put " where ... is any code you would like... From mikeythek at gmail.com Fri Mar 30 13:53:42 2018 From: mikeythek at gmail.com (Mikey) Date: Fri, 30 Mar 2018 13:53:42 -0400 Subject: variable xref In-Reply-To: References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> Message-ID: <3C20DCD0-D487-47D9-9C40-049581B16390@gmail.com> When I was thinking about unquoted literals I was thinking about string literals, something like put one into counter Or put one into two Numeric literals don?t offend the senses: put 1 into counter In the case of property assignments I could be persuaded either way: that there is a global constant left that means ?left? (making it a reserved word), that in the context of certain properties, certain string values are constants and not containers (not as ideal since there is then also going to have to be a warning to the user that their container called ?left? is not going to work in the context of the property), that we?re going to have to quote ?left? (also not ideal), or that we?re going to allow unquoted string literals in property assignments (but then we are back to the parser/lexer really should error check assignments for some properties so someone doesn?t set the align to tpo unless tpo had previously been used and/or assigned a value, and therefore appears in the symbol table). The last one gets us back to having the parser/lex doing some spellchecking or symbol lookup. Deprecating ?features? is often the right thing to do because it cleans up kluges that are no long necessary, and clarity and simplicity and order are restored. Yes, that means that some code will be affected and have to be reworked. It?s either that or n00bs need a separate note in the dictionary for every kluge, the same way that non-native English speakers get to fight through every exception in spelling and punctuation. I sometimes mention the running joke in 4D, ?The Tao?, a collection of all the things that are counterintuitive that you have to work around. From jacque at hyperactivesw.com Fri Mar 30 14:24:47 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Mar 2018 13:24:47 -0500 Subject: do. command. safety. ? In-Reply-To: References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Well yes, but as Bob mentioned, wouldn't a variable do the same thing? put ";delete hard drive;put " into x do x vs: do "put " && quote & ";delete hard drive;put " & quote && "into x" This actually came up way back in MetaCard where it was pointed out that the engine was about as secure as it gets as long as you validate all user input when using "do" or (I think) "value". In the first example above, input needs to be examined before the "do" command is issued. So I think there's a line or two missing in there somewhere. ;) On 3/30/18 12:15 PM, Mark Waddingham via use-livecode wrote: > Think about the string that can be constructed in the quoted version - user input could be "; ...;put " where ... is any code you would like... > > Sent from my iPhone > >> On 30 Mar 2018, at 18:09, J. Landman Gay via use-livecode wrote: >> >> These look the same to me. Both versions place content into a variable. Is the difference because of how the engine evaluates the input somehow? >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >>> On March 30, 2018 11:04:54 AM Mark Waddingham via use-livecode wrote: >>> >>> Using do safely is the same as making database queries safe, or URL requests. >>> >>> You 'just' need to make sure that any input from outside is sanitized to ensure that it doesn't change the meaning of the expression you are 'doing'. >>> >>> For example, don't interpolate strings directly in the script using quotes, use a local var instead: >>> >>> put user input into tVar1 >>> do "put tVar1 into x" -- safe >>> >>> Rather than >>> >>> do "put " && quote & user input & quote && "into x" -- not safe >>> >>> Warmest Regards, >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>>> On 30 Mar 2018, at 16:43, Tom Glod via use-livecode wrote: >>>> >>>> Dear Geniuses >>>> >>>> Sometimes.... late at night just before falling asleep I think about the >>>> dangers of the do command. Is it possible to inject code into this >>>> mechanism through malware? >>>> >>>> I do not have enough understanding of operating systems and their processes >>>> ...and the livecode engine....to be able to know if its a reasonable >>>> question or not. >>>> >>>> Thanks for any input on this. >>>> _______________________________________________ -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Mar 30 16:23:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Mar 2018 20:23:38 +0000 Subject: variable xref In-Reply-To: <3C20DCD0-D487-47D9-9C40-049581B16390@gmail.com> References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> <3C20DCD0-D487-47D9-9C40-049581B16390@gmail.com> Message-ID: Hence my original statement about the xTalk language trying to be English like. (Back then I don't think Hypercard was multi-language). Bob S > On Mar 30, 2018, at 10:53 , Mikey via use-livecode wrote: > > When I was thinking about unquoted literals I was thinking about string literals, something like > put one into counter > Or > put one into two > > Numeric literals don?t offend the senses: > put 1 into counter From ambassador at fourthworld.com Fri Mar 30 18:02:35 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 30 Mar 2018 15:02:35 -0700 Subject: do. command. safety. ? In-Reply-To: References: Message-ID: <4786c6c9-50ba-e043-36c3-213a6437c018@fourthworld.com> Tom Glod wrote: > Sometimes.... late at night just before falling asleep I think about > the dangers of the do command. Is it possible to inject code into > this mechanism through malware? Mark's discussion handled the security aspect well. The only thing I could add would be to examine each case and determine if "do" is even needed at all there. In addition to the risk of inviting arbitrary code execution, it's usually slower than any more direct alternative. And its use is often dependent on concatenated expressions, making code more cumbersome to both write and read. We used to use "do" a lot in HC, where we had to rely on it often to circumvent limitations with concatenated object references, variables with names that could not be known in advance, and others. LC has much more intelligent handling of concatenated object expressions, and with arrays we can handle any number of variables where we need the variable name determined on the fly. In LC "do" is still sometimes useful, but far less often. I can't remember the last time I needed to use, probably a couple years ago. -- 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 Mar 30 17:43:57 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 30 Mar 2018 14:43:57 -0700 Subject: variable xref In-Reply-To: References: Message-ID: <241744bd-bf42-1cd8-68e7-3e0e1d085fff@fourthworld.com> Mark Wieder wrote: > A good question to ask here might be "what are the pain points of the > language as it now exists?" For me performance is a pain point. If I can demonstrate LC is at least on par with other scripting languages I get a foot in the door. But in server work performance counts a lot. So the question I've been wondering is: what exactly did the PHP team do in their v7 to boost its speed so far beyond v5, blowing pretty much every other scripting language out of the water, and is there anything among those optimizations that can be applied to LC? If LC were even close to being as fast as PHP7, it would so destroy Rails it would open many doors.... -- 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 Fri Mar 30 20:03:11 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 30 Mar 2018 20:03:11 -0400 Subject: Browser Widget Document Download In-Reply-To: <241744bd-bf42-1cd8-68e7-3e0e1d085fff@fourthworld.com> References: <241744bd-bf42-1cd8-68e7-3e0e1d085fff@fourthworld.com> Message-ID: <002d01d3c883$ac198160$044c8420$@net> I have a url(that does not directly reference a file) that on iOS displays a PDF in the iOS native PDF viewer and on Android Downloads the PDF as Android has no native PDF viewer. I would like to download the PDF at all times. Testing in the IDE... When I set the widget to the url the PDF displays. When I put the url into a var "put url (tURL) into MyVar" I see some html/javascript in MyVar but no PDF. What I would like to do is download the PDF on both mobile platforms. Is this even possible with LC? Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From mark at livecode.com Fri Mar 30 20:06:37 2018 From: mark at livecode.com (Mark Waddingham) Date: Sat, 31 Mar 2018 01:06:37 +0100 Subject: do. command. safety. ? In-Reply-To: References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: The user input was indirected through a variable in the safe version - not made part of the do string... That's the critical difference. The unsafe version allows user input to change the do'd code, the safe version only changes the content of a variable the do string uses. Warmest Regards, Mark. Sent from my iPhone > On 30 Mar 2018, at 19:24, J. Landman Gay via use-livecode wrote: > > Well yes, but as Bob mentioned, wouldn't a variable do the same thing? > > put ";delete hard drive;put " into x > do x > > vs: > > do "put " && quote & ";delete hard drive;put " & quote && "into x" > > This actually came up way back in MetaCard where it was pointed out that the engine was about as secure as it gets as long as you validate all user input when using "do" or (I think) "value". In the first example above, input needs to be examined before the "do" command is issued. So I think there's a line or two missing in there somewhere. ;) > > >> On 3/30/18 12:15 PM, Mark Waddingham via use-livecode wrote: >> Think about the string that can be constructed in the quoted version - user input could be "; ...;put " where ... is any code you would like... >> Sent from my iPhone >>> On 30 Mar 2018, at 18:09, J. Landman Gay via use-livecode wrote: >>> >>> These look the same to me. Both versions place content into a variable. Is the difference because of how the engine evaluates the input somehow? >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>>> On March 30, 2018 11:04:54 AM Mark Waddingham via use-livecode wrote: >>>> >>>> Using do safely is the same as making database queries safe, or URL requests. >>>> >>>> You 'just' need to make sure that any input from outside is sanitized to ensure that it doesn't change the meaning of the expression you are 'doing'. >>>> >>>> For example, don't interpolate strings directly in the script using quotes, use a local var instead: >>>> >>>> put user input into tVar1 >>>> do "put tVar1 into x" -- safe >>>> >>>> Rather than >>>> >>>> do "put " && quote & user input & quote && "into x" -- not safe >>>> >>>> Warmest Regards, >>>> >>>> Mark. >>>> >>>> Sent from my iPhone >>>> >>>>> On 30 Mar 2018, at 16:43, Tom Glod via use-livecode wrote: >>>>> >>>>> Dear Geniuses >>>>> >>>>> Sometimes.... late at night just before falling asleep I think about the >>>>> dangers of the do command. Is it possible to inject code into this >>>>> mechanism through malware? >>>>> >>>>> I do not have enough understanding of operating systems and their processes >>>>> ...and the livecode engine....to be able to know if its a reasonable >>>>> question or not. >>>>> >>>>> Thanks for any input on this. >>>>> _______________________________________________ > > > -- > 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 richmondmathewson at gmail.com Sat Mar 31 04:06:11 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Sat, 31 Mar 2018 11:06:11 +0300 Subject: Multiple Windows Message-ID: <9c25bf41-3fc7-4c93-3afd-109444a4bc55@gmail.com> I know the idea of being able to display different cards from one stack in different windows is something that has exercised many people for a long time. I had a fantasy that ran like this: [pseudoCode] show card 6 of stack "Stack1" in stack "subStack1" How daft is that? Richmond. From harrison at all-auctions.com Fri Mar 30 23:01:29 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 30 Mar 2018 23:01:29 -0400 Subject: variable xref In-Reply-To: <3C20DCD0-D487-47D9-9C40-049581B16390@gmail.com> References: <8dda7f96-8f66-9322-d05c-36d1cbcf443c@sonic.net> <40EB0561-7C32-4650-A42A-3604DA33782A@iotecdigital.com> <0B85520C-3B0F-42EE-8CE9-9977330B4542@livecode.com> <3C20DCD0-D487-47D9-9C40-049581B16390@gmail.com> Message-ID: Whenever you deprecate code you may be destroying someone?s life?s coding work. There should always be at least a rock solid migration utility offered that will make any such deprecations completely smooth, and painless for anyone who has to make the changes. Just my 2 cents for the day. ;-) Rick > On Mar 30, 2018, at 1:53 PM, Mikey via use-livecode wrote: > > Deprecating ?features? is often the right thing to do because it cleans up kluges that are no long necessary, and clarity and simplicity and order are restored. Yes, that means that some code will be affected and have to be reworked. From tfabacher at gmail.com Sat Mar 31 10:34:46 2018 From: tfabacher at gmail.com (Todd Fabacher) Date: Sat, 31 Mar 2018 10:34:46 -0400 Subject: Intel CPU for Android Devices Message-ID: I am running into a problem where the Android device uses Intel CPU and NOT Arm. It does not rum from the store on the device. Has anyone installed and run a LiveCode Android App on an Intel device. I have an 11am meeting on Monday, so any answer on the holiday weekend would be much appreciated. Thanks, Todd From dunbarx at aol.com Sat Mar 31 11:25:13 2018 From: dunbarx at aol.com (dunbarx) Date: Sat, 31 Mar 2018 08:25:13 -0700 (MST) Subject: Multiple Windows In-Reply-To: <9c25bf41-3fc7-4c93-3afd-109444a4bc55@gmail.com> References: <9c25bf41-3fc7-4c93-3afd-109444a4bc55@gmail.com> Message-ID: <1522509913950-0.post@n4.nabble.com> Richmond. I saw your construction of two stacks displayed in a "frame", so it appeared that two cards were simultaneously present in a single "stack". I see what you are after; the goal being be able to navigate in each card separately. Why only two? Anyway, I have never needed such a feature, but certainly see that others might. I often open substacks (or other stacks) on screen, generally for a particular purpose ancillary to the working stack, and close them when done. They are in that case just a high-powered dialog box, used basically in the same way. I remember when HC allowed up to 16 open stacks, as opposed to just one. A major enhancement. A multi-visible-card stack would be useful for multimedia displays, and likely for other purposes. It sounds like a major effort, though, addressing the foundations of the program itself. Can't wait to see what comes back... Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From jacque at hyperactivesw.com Sat Mar 31 12:11:42 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 31 Mar 2018 11:11:42 -0500 Subject: Intel CPU for Android Devices In-Reply-To: References: Message-ID: <1627cd42648.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I don't have a solution, but the Play Store lets you set incompatible versions or devices. Those won't show up in searches, or if the user gets there some other way there's a banner saying the app is incompatible with the device. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 31, 2018 9:36:37 AM Todd Fabacher via use-livecode wrote: > I am running into a problem where the Android device uses Intel CPU and NOT > Arm. It does not rum from the store on the device. Has anyone installed and > run a LiveCode Android App on an Intel device. > > I have an 11am meeting on Monday, so any answer on the holiday weekend > would be much appreciated. > > Thanks, > > Todd > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Mar 31 13:00:20 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 31 Mar 2018 17:00:20 +0000 Subject: Browser Widget Document Download Message-ID: When I set the widget to the url the PDF displays. When I put the url into a var "put url (tURL) into MyVar" I see some html/javascript in MyVar but no PDF. What I would like to do is download the PDF on both mobile platforms. Is this even possible with LC? BR: can you send the URL? Typically, (probably you know this already, but FWIW) this shows a PDF in a iFrame, some javascript "widget" . If you how source in the browser, (with PDF open) can you can find a "direct" url for the PDF? From jacque at hyperactivesw.com Sat Mar 31 15:03:10 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 31 Mar 2018 14:03:10 -0500 Subject: do. command. safety. ? In-Reply-To: References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> At the risk of appearing to be obtuse...I tried both versions of the "do" and got the same results. In each case, the variable was populated but no code was executed. In a test stack with one field and one button, I entered ";set the backcolor of btn 1 to blue;put ". In the button script I tried both versions of your example (substituting "fld 1" for "user input".) I also tried it without the semicolons and extra "put " at the end. In each case the variable x contained "set the backcolor of btn 1 to blue" and the button did not change color. I am quite sure you are right, but could you provide an example where the embedded command would actually execute? On 3/30/18 7:06 PM, Mark Waddingham via use-livecode wrote: > The user input was indirected through a variable in the safe version - not made part of the do string... That's the critical difference. > > The unsafe version allows user input to change the do'd code, the safe version only changes the content of a variable the do string uses. > > Warmest Regards, > > Mark. > > Sent from my iPhone > >> On 30 Mar 2018, at 19:24, J. Landman Gay via use-livecode wrote: >> >> Well yes, but as Bob mentioned, wouldn't a variable do the same thing? >> >> put ";delete hard drive;put " into x >> do x >> >> vs: >> >> do "put " && quote & ";delete hard drive;put " & quote && "into x" >> >> This actually came up way back in MetaCard where it was pointed out that the engine was about as secure as it gets as long as you validate all user input when using "do" or (I think) "value". In the first example above, input needs to be examined before the "do" command is issued. So I think there's a line or two missing in there somewhere. ;) >> >> >>> On 3/30/18 12:15 PM, Mark Waddingham via use-livecode wrote: >>> Think about the string that can be constructed in the quoted version - user input could be "; ...;put " where ... is any code you would like... >>> Sent from my iPhone >>>> On 30 Mar 2018, at 18:09, J. Landman Gay via use-livecode wrote: >>>> >>>> These look the same to me. Both versions place content into a variable. Is the difference because of how the engine evaluates the input somehow? >>>> >>>> -- >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>>> On March 30, 2018 11:04:54 AM Mark Waddingham via use-livecode wrote: >>>>> >>>>> Using do safely is the same as making database queries safe, or URL requests. >>>>> >>>>> You 'just' need to make sure that any input from outside is sanitized to ensure that it doesn't change the meaning of the expression you are 'doing'. >>>>> >>>>> For example, don't interpolate strings directly in the script using quotes, use a local var instead: >>>>> >>>>> put user input into tVar1 >>>>> do "put tVar1 into x" -- safe >>>>> >>>>> Rather than >>>>> >>>>> do "put " && quote & user input & quote && "into x" -- not safe >>>>> >>>>> Warmest Regards, >>>>> >>>>> Mark. >>>>> >>>>> Sent from my iPhone >>>>> >>>>>> On 30 Mar 2018, at 16:43, Tom Glod via use-livecode wrote: >>>>>> >>>>>> Dear Geniuses >>>>>> >>>>>> Sometimes.... late at night just before falling asleep I think about the >>>>>> dangers of the do command. Is it possible to inject code into this >>>>>> mechanism through malware? >>>>>> >>>>>> I do not have enough understanding of operating systems and their processes >>>>>> ...and the livecode engine....to be able to know if its a reasonable >>>>>> question or not. >>>>>> >>>>>> Thanks for any input on this. >>>>>> _______________________________________________ >> >> >> -- >> 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 jacque at hyperactivesw.com Sat Mar 31 15:16:50 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 31 Mar 2018 14:16:50 -0500 Subject: do. command. safety. ? In-Reply-To: <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> Message-ID: <2f500cba-0365-b35d-3aa3-0e0ca88ebc0d@hyperactivesw.com> BTW, I know this works and is dangerous: do It's the insertions that don't seem to be affected. On 3/31/18 2:03 PM, J. Landman Gay via use-livecode wrote: > At the risk of appearing to be obtuse...I tried both versions of the > "do" and got the same results. In each case, the variable was populated > but no code was executed. In a test stack with one field and one button, > I entered ";set the backcolor of btn 1 to blue;put ". In the button > script I tried both versions of your example (substituting "fld 1" for > "user input".) I also tried it without the semicolons and extra "put " > at the end. > > In each case the variable x contained "set the backcolor of btn 1 to > blue" and the button did not change color. > > I am quite sure you are right, but could you provide an example where > the embedded command would actually execute? > > On 3/30/18 7:06 PM, Mark Waddingham via use-livecode wrote: >> The user input was indirected through a variable in the safe version - >> not made part of the do string... That's the critical difference. >> >> The unsafe version allows user input to change the do'd code, the safe >> version only changes the content of a variable the do string uses. >> >> Warmest Regards, >> >> Mark. >> >> Sent from my iPhone >> >>> On 30 Mar 2018, at 19:24, J. Landman Gay via use-livecode >>> wrote: >>> >>> Well yes, but as Bob mentioned, wouldn't a variable do the same thing? >>> >>> ? put ";delete hard drive;put " into x >>> ? do x >>> >>> vs: >>> >>> ? do "put " && quote & ";delete hard drive;put " & quote && "into x" >>> >>> This actually came up way back in MetaCard where it was pointed out >>> that the engine was about as secure as it gets as long as you >>> validate all user input when using "do" or (I think) "value". In the >>> first example above, input needs to be examined before the "do" >>> command is issued. So I think there's a line or two missing in there >>> somewhere. ;) >>> >>> >>>> On 3/30/18 12:15 PM, Mark Waddingham via use-livecode wrote: >>>> Think about the string that can be constructed in the quoted version >>>> - user input could be "; ...;put " where ... is any code you would >>>> like... >>>> Sent from my iPhone >>>>> On 30 Mar 2018, at 18:09, J. Landman Gay via use-livecode >>>>> wrote: >>>>> >>>>> These look the same to me. Both versions place content into a >>>>> variable. Is the difference because of how the engine evaluates the >>>>> input somehow? >>>>> >>>>> -- >>>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>>> HyperActive Software | http://www.hyperactivesw.com >>>>>> On March 30, 2018 11:04:54 AM Mark Waddingham via use-livecode >>>>>> wrote: >>>>>> >>>>>> Using do safely is the same as making database queries safe, or >>>>>> URL requests. >>>>>> >>>>>> You 'just' need to make sure that any input from outside is >>>>>> sanitized to ensure that it doesn't change the meaning of the >>>>>> expression you are 'doing'. >>>>>> >>>>>> For example, don't interpolate strings directly in the script >>>>>> using quotes, use a local var instead: >>>>>> >>>>>> put user input into tVar1 >>>>>> do "put tVar1 into x" -- safe >>>>>> >>>>>> Rather than >>>>>> >>>>>> do "put " && quote & user input & quote && "into x" -- not safe >>>>>> >>>>>> Warmest Regards, >>>>>> >>>>>> Mark. >>>>>> >>>>>> Sent from my iPhone >>>>>> >>>>>>> On 30 Mar 2018, at 16:43, Tom Glod via use-livecode >>>>>>> wrote: >>>>>>> >>>>>>> Dear Geniuses >>>>>>> >>>>>>> Sometimes.... late at night just before falling asleep I think >>>>>>> about the >>>>>>> dangers of the do command.? Is it possible to inject code into this >>>>>>> mechanism through malware? >>>>>>> >>>>>>> I do not have enough understanding of operating systems and their >>>>>>> processes >>>>>>> ...and the livecode engine....to be able to know if its a reasonable >>>>>>> question or not. >>>>>>> >>>>>>> Thanks for any input on this. >>>>>>> _______________________________________________ >>> >>> >>> -- >>> 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 dochawk at gmail.com Sat Mar 31 16:08:14 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 31 Mar 2018 13:08:14 -0700 Subject: do. command. safety. ? In-Reply-To: References: Message-ID: On Fri, Mar 30, 2018 at 9:02 AM, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > > do "put " && quote & user input & quote && "into x" -- not safe > Thus, do "initiate global thermonuclear war" :) Was shazam the statistical package that actually implemented that (only partially, we hoped!) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From rdimola at evergreeninfo.net Sat Mar 31 16:19:37 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 31 Mar 2018 16:19:37 -0400 Subject: Intel CPU for Android Devices In-Reply-To: References: Message-ID: <001901d3c92d$9a452390$cecf6ab0$@net> I have an old Samsung Galaxy Tab 3 10.1 the has an Intel Atom processor and it runs LC 8.1.9/9.0(rc)1 apps. The apps are a bit slow but do run(I wonder if there's emulating going on?). I have not installed from the store. I side-load using adb. Is the app visible on the PlayStore to the devices? If so does it download/install? If it installs does it even start 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 Todd Fabacher via use-livecode Sent: Saturday, March 31, 2018 10:35 AM To: Use-livecode Use-livecode Cc: Todd Fabacher Subject: Intel CPU for Android Devices I am running into a problem where the Android device uses Intel CPU and NOT Arm. It does not rum from the store on the device. Has anyone installed and run a LiveCode Android App on an Intel device. I have an 11am meeting on Monday, so any answer on the holiday weekend would be much appreciated. Thanks, Todd _______________________________________________ use-livecode mailing list use-livecode at 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 Mar 31 16:27:51 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 31 Mar 2018 16:27:51 -0400 Subject: Browser Widget Document Download In-Reply-To: References: Message-ID: <001a01d3c92e$c093b2e0$41bb18a0$@net> Hey BR, The link is going to a content management system(Adobe I think) http://www.gasb.org/cs/ContentServer?c=Document_C&cid=1176169676825&d=&pagen ame=GASB%2FDocument_C%2FDocumentPage The file name is buried in the html but not the path. It's in an iFrame but it gets rendered by some unknown SW on iOS. On Android it just start silently start downloading while displaying a white page. What I would like to do is control where the PDF is being downloaded to and force a download on iOS. I'm guessing(with great disappointment) that this would require a change to the browser widget. 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 Sannyasin Brahmanathaswami via use-livecode Sent: Saturday, March 31, 2018 1:00 PM To: Ralph DiMola via use-livecode Cc: Sannyasin Brahmanathaswami Subject: Re: Browser Widget Document Download When I set the widget to the url the PDF displays. When I put the url into a var "put url (tURL) into MyVar" I see some html/javascript in MyVar but no PDF. What I would like to do is download the PDF on both mobile platforms. Is this even possible with LC? BR: can you send the URL? Typically, (probably you know this already, but FWIW) this shows a PDF in a iFrame, some javascript "widget" . If you how source in the browser, (with PDF open) can you can find a "direct" url for the PDF? _______________________________________________ use-livecode mailing list use-livecode at 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.net Sat Mar 31 22:10:11 2018 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 1 Apr 2018 03:10:11 +0100 Subject: do. command. safety. ? In-Reply-To: <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> References: <16277e2ebd8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> Message-ID: The question is exactly what did you type into the field ? It's unclear whether the quotes in your email are part of the email, or part of the field content. Here's a case that definitely shows the difference: button "Button" on mouseup ? localtVar, tX ? do"put "&& quote& thetextoffld1& quote&& "into tx" ? put"now tx="&& tX &CRaftermsg end mouseup and button "safe" on mouseup ? localtVar, tX ? putfld1intotVar ? do"put tVar into tX" ? put"now tx="&& tX &CRaftermsg end mouseup and into the field I typed 1+2+3" into tt;set the backcolor of btn 1 to blue;put " Clicking button 'safe' gives now tx= 1+2+3" into tt;set the backcolor of btn 1 to blue;put " after the msg box; and repeated clicks there produce extra lines all the same. Clicking button 'button' gives now tx= in the msgbox, and the button color changes. So the embedded command within the field is being executed. -- Alex. On 31/03/2018 20:03, J. Landman Gay via use-livecode wrote: > At the risk of appearing to be obtuse...I tried both versions of the > "do" and got the same results. In each case, the variable was > populated but no code was executed. In a test stack with one field and > one button, I entered ";set the backcolor of btn 1 to blue;put ". In > the button script I tried both versions of your example (substituting > "fld 1" for "user input".) I also tried it without the semicolons and > extra "put " at the end. > > In each case the variable x contained "set the backcolor of btn 1 to > blue" and the button did not change color. > > I am quite sure you are right, but could you provide an example where > the embedded command would actually execute? > > On 3/30/18 7:06 PM, Mark Waddingham via use-livecode wrote: >> The user input was indirected through a variable in the safe version >> - not made part of the do string... That's the critical difference. >> >> The unsafe version allows user input to change the do'd code, the >> safe version only changes the content of a variable the do string uses. >> >> Warmest Regards, >> >> Mark. >> >> Sent from my iPhone >> >>> On 30 Mar 2018, at 19:24, J. Landman Gay via use-livecode >>> wrote: >>> >>> Well yes, but as Bob mentioned, wouldn't a variable do the same thing? >>> >>> ? put ";delete hard drive;put " into x >>> ? do x >>> >>> vs: >>> >>> ? do "put " && quote & ";delete hard drive;put " & quote && "into x" >>> >>> This actually came up way back in MetaCard where it was pointed out >>> that the engine was about as secure as it gets as long as you >>> validate all user input when using "do" or (I think) "value". In the >>> first example above, input needs to be examined before the "do" >>> command is issued. So I think there's a line or two missing in there >>> somewhere. ;) >>> >>> >>>> On 3/30/18 12:15 PM, Mark Waddingham via use-livecode wrote: >>>> Think about the string that can be constructed in the quoted >>>> version - user input could be "; ...;put " where ... is any code >>>> you would like... >>>> Sent from my iPhone >>>>> On 30 Mar 2018, at 18:09, J. Landman Gay via use-livecode >>>>> wrote: >>>>> >>>>> These look the same to me. Both versions place content into a >>>>> variable. Is the difference because of how the engine evaluates >>>>> the input somehow? >>>>> >>>>> -- >>>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>>> HyperActive Software | http://www.hyperactivesw.com >>>>>> On March 30, 2018 11:04:54 AM Mark Waddingham via use-livecode >>>>>> wrote: >>>>>> >>>>>> Using do safely is the same as making database queries safe, or >>>>>> URL requests. >>>>>> >>>>>> You 'just' need to make sure that any input from outside is >>>>>> sanitized to ensure that it doesn't change the meaning of the >>>>>> expression you are 'doing'. >>>>>> >>>>>> For example, don't interpolate strings directly in the script >>>>>> using quotes, use a local var instead: >>>>>> >>>>>> put user input into tVar1 >>>>>> do "put tVar1 into x" -- safe >>>>>> >>>>>> Rather than >>>>>> >>>>>> do "put " && quote & user input & quote && "into x" -- not safe >>>>>> >>>>>> Warmest Regards, >>>>>> >>>>>> Mark. >>>>>> >>>>>> Sent from my iPhone >>>>>> >>>>>>> On 30 Mar 2018, at 16:43, Tom Glod via use-livecode >>>>>>> wrote: >>>>>>> >>>>>>> Dear Geniuses >>>>>>> >>>>>>> Sometimes.... late at night just before falling asleep I think >>>>>>> about the >>>>>>> dangers of the do command.? Is it possible to inject code into this >>>>>>> mechanism through malware? >>>>>>> >>>>>>> I do not have enough understanding of operating systems and >>>>>>> their processes >>>>>>> ...and the livecode engine....to be able to know if its a >>>>>>> reasonable >>>>>>> question or not. >>>>>>> >>>>>>> Thanks for any input on this. >>>>>>> _______________________________________________ >>> >>> >>> -- >>> 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 ambassador at fourthworld.com Sat Mar 31 22:35:01 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 31 Mar 2018 19:35:01 -0700 Subject: Multiple Windows In-Reply-To: <9c25bf41-3fc7-4c93-3afd-109444a4bc55@gmail.com> References: <9c25bf41-3fc7-4c93-3afd-109444a4bc55@gmail.com> Message-ID: <8c232d2f-a3ca-a327-99cf-10b057881afd@fourthworld.com> Richmond Mathewson wrote: > I know the idea of being able to display different cards from one > stack in different windows is something that has exercised many > people for a long time. > > I had a fantasy that ran like this: > > [pseudoCode] > > show card 6 of stack "Stack1" in stack "subStack1" > > How daft is that? No more daft than Gain Momentum, a powerful xTalk I worked with back in the day that had an object type called Viewers that did exactly what you describe. https://quality.livecode.com/show_bug.cgi?id=2786 -- 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 Mar 31 22:57:16 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 31 Mar 2018 19:57:16 -0700 Subject: do. command. safety. ? In-Reply-To: <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> References: <19ce6b08-9519-5039-5e98-cdbbb857f402@hyperactivesw.com> Message-ID: <0595c95d-f0b2-fece-65e6-8b2cfa37933f@fourthworld.com> Jacque wrote: > could you provide an example where the embedded command would actually > execute? A variant of Mark's example which executes when passed to fooEvil but not when pass to fooGood: on mouseUp put "into x ""e&";answer GOTCHA &cr& word 1 of the params #" \ into tUserInput fooGood tUserInput fooEvil tUserInput end mouseUp on fooGood pUserInput do "put pUserInput into x" end fooGood on fooEvil pUserInput do "put " "e& pUserInput "e&" into x" end fooEvil -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com