Re: Browser Widget/HTML5/LC Integration

2017-01-30 Thread Alex Tweedly via use-livecode
On 29/01/2017 19:22, Richard Gaskin via use-livecode wrote: HTML model: Natural Flow HTML has something we don't: "natural flow", a set of conventions for object placement that are implied and do not need to be specified in order to get some form of reasonably

Re: Changes to use-livecode list.

2017-01-06 Thread Alex Tweedly via use-livecode
epted") it just fine :-) Thanks again Peter (and Heather, and everyone else) Alex On 06/01/2017 14:27, Peter TB Brett via use-livecode wrote: On 06/01/2017 12:29, Alex Tweedly via use-livecode wrote: Now that's impossible - all emails in the thread appear from the same address, and nee

Changes to use-livecode list.

2017-01-06 Thread Alex Tweedly via use-livecode
I know Heather has just made some changes to try to solve the 'bounce' problem. But I think in doing so a new problem has arisen. It used to be that email from the list showed up as 'from' : someu...@theiraddress.com 'reply-to' : use-livecode@lists.runrev.com They now show up as

Re: Line numbers for soft-wrapped styled text?

2017-03-26 Thread Alex Tweedly via use-livecode
On 26/03/2017 02:25, Mark Wieder via use-livecode wrote: On 03/25/2017 04:00 PM, Alex Tweedly via use-livecode wrote: Never done it, but I had a quick play Hmmm... nice approach. And clever use of spacebelow. If you have a way of determining which line(s) are being changed, then you

Re: Line numbers for soft-wrapped styled text?

2017-03-30 Thread Alex Tweedly via use-livecode
On 29/03/2017 19:20, Jim Lambert via use-livecode wrote: Now that I think about it, I’ve overcomplicated things. You don’t need two fields at all. Just set the liststyle of the field that contains your editable text to ‘decimal’. Then the lines will be automatically numbered and outdented.

Re: Line numbers for soft-wrapped styled text?

2017-03-28 Thread Alex Tweedly via use-livecode
On 28/03/2017 22:11, hh via use-livecode wrote: Hi Alex, below you will find a tested binary search for the visible lines which uses item 4 of the formattedRect for the topLine and item 2 of the formattedRect for the bottomLine. That's great - thank you. However, I do have a couple of

Re: Line numbers for soft-wrapped styled text?

2017-03-28 Thread Alex Tweedly via use-livecode
- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Alex Tweedly via use-livecode Sent: Tuesday, March 28, 2017 4:13 PM To: use-livecode@lists.runrev.com Cc: Alex Tweedly Subject: Re: Line numbers for soft-wrapped styled text? There is a bit of a problem I encountered tr

Re: Line numbers for soft-wrapped styled text?

2017-03-28 Thread Alex Tweedly via use-livecode
There is a bit of a problem I encountered trying to code this up. I'm not 100% sure yet if it's a bug, though I think it must be. Comments anyone ? If I set the 'spacebelow' of the last (Nth) line of a field, and get the formattedheight of the field, that includes the spacebelow value just

Re: Line numbers for soft-wrapped styled text?

2017-03-27 Thread Alex Tweedly via use-livecode
What a cool idea ! In fact, could you not simply do set the liststyle of line 1 to -1 of fld "mytextfield" to "decimal" and then unset the liststyle whenever needed (e.g. when the field is subject to copy, save, etc.) -- Alex. On 27/03/2017 20:32, Richard Gaskin via use-livecode wrote:

Re: Line numbers for soft-wrapped styled text?

2017-03-25 Thread Alex Tweedly via use-livecode
Never done it, but I had a quick play and found a way to do it - but whether it would count as "efficiently" or not is debatable :-( It does about 4 lines of text per millisecond on my elderly MacBook Pro (with LC 9.0.0 DP6) If you have a way of determining which line(s) are being

Re: Line numbers for soft-wrapped styled text?

2017-03-25 Thread Alex Tweedly via use-livecode
Hi. That works for "simple" fields which may contain soft-wrapped lines - but it doesn't account for styled text (e.g. where different lines may be different font sizes (or even mixed sizes), or where paragraph spacing has been set, or all the complex kinds of text we can now do. but

Re: Cheesed off by 32xxx

2017-04-01 Thread Alex Tweedly via use-livecode
I'd create maybe 200 buttons, and change their labels, positions and meanings whenever the vscroll of the menu changes. Something (very vaguely) like on scrollHasChanged put the vScroll of grp "sectionMenu" into temp put temp div 23 into startLine repeat with i = 1 to 200 put

Re: OT (?): Bookmarking GPS coords

2017-04-09 Thread Alex Tweedly via use-livecode
r else pay for an Enterprise license, or else put it in the App Store. If you want to create the stack I'd be happy to build it in Android for you, and show you how to do it yourself if you like. It isn't difficult. On 4/8/17 7:58 PM, Alex Tweedly via use-livecode wrote: It would be the most trivial ap

Re: OT (?): Bookmarking GPS coords

2017-04-09 Thread Alex Tweedly via use-livecode
8/17 7:58 PM, Alex Tweedly via use-livecode wrote: It would be the most trivial app to write in LC - ask the postcode - download the list of addresses in that postcode, and put it into a selection control - have a button that takes current location and stores it for the selected address [walk

Re: OT (?): Bookmarking GPS coords

2017-04-10 Thread Alex Tweedly via use-livecode
mz files ... thanks !! -- Alex. On 11/04/2017 00:12, Kay C Lan via use-livecode wrote: On Sun, Apr 9, 2017 at 10:58 AM, Alex Tweedly via use-livecode <use-livecode@lists.runrev.com> wrote: I'm looking for any help or suggestions for existing apps that can do (something like) what I want to do

Re: Line numbers for soft-wrapped styled text?

2017-04-02 Thread Alex Tweedly via use-livecode
Sure, here it is. I couldn't resist doing some simple benchmarks, just to verify my intuition. Very glad I did. OK - here's the theory : we're using variations of binary search to find the lowest numbered line that is visible, and then again to find the highest numbered line. So at each

Re: Line numbers for soft-wrapped styled text?

2017-04-01 Thread Alex Tweedly via use-livecode
Conclusion : I give up :-) We have three 'completed' approaches to the line numbering problem: 1. Jim Lambert's use of decimal-numbered-list style within the field (has the limitation of not allowing the user's text to include list styles, and some aesthetic constraints - but if you can live

revBrowser

2017-04-05 Thread Alex Tweedly via use-livecode
The dictionary says There is a sample stack for revBrowser at the following location in the LiveCode folder: Resources/Examples/Browser Samper.rev. This stack demonstrates, with many examples, how to use browser objects in an application. Anyone know where it can be found ? -- Alex.

Re: revBrowser

2017-04-05 Thread Alex Tweedly via use-livecode
On 05/04/2017 15:34, Mark Waddingham via use-livecode wrote: It is inside the app bundle on Mac - Contents/Tools/Resources/... - on windows it will be in Program Files in the LiveCode folder. There probably is somewhere in the IDE that links to it, but I can't remember where off the top of

OT (?): Bookmarking GPS coords

2017-04-08 Thread Alex Tweedly via use-livecode
I'm looking for any help or suggestions for existing apps that can do (something like) what I want to do - could even be a clever way to use a feature I've not found in Google maps, or pple maps, or ... I have a reasonable number (i.e. 10 - 200 !!) - not a small number where I would be

Re: OT (?): Bookmarking GPS coords

2017-04-12 Thread Alex Tweedly via use-livecode
On 11/04/2017 01:40, jonathandly...@gmail.com wrote: Rather than travel physically, could you just move in the map, and program it to record your click locations in a map? Indeed. Earlier I talked about a 'desktop app' and a 'mobile app'. The 'desktop app' is exactly what you describe -

Re: OT (?): Bookmarking GPS coords

2017-04-12 Thread Alex Tweedly via use-livecode
, if it helps I could save the relevant card to a new stack and send you a copy, I’m pretty sure it would work on Android too, I just haven’t tested that. It wouldn’t be difficult to adapt it for your needs. Paul On 12 Apr 2017, at 16:45, Alex Tweedly via use-livecode <use-livecode@lists.runrev.

Re: Downloads - Immodest Proposal

2017-04-13 Thread Alex Tweedly via use-livecode
On 13/04/2017 02:49, Curry Kenworthy via use-livecode wrote: (I was going to joke around a bit for those who are familiar with the original "Modest Proposal" in literature, but I'm not sure if that work is still popular these days so I decided not to.) Just as well you didn't, that would

Re: Weirdness with filter (maybe?)

2017-04-20 Thread Alex Tweedly via use-livecode
I think it should be filter lines of MyList with (charStringX & TAB & *) i.e. get lines containing this string X followed by TAB followed by anything Alex On 20/04/2017 09:22, Quentin Long via use-livecode wrote: I have a return-delimited list. Each line of this list consists of [some text]

Re: Initializing the segmented control

2017-04-18 Thread Alex Tweedly via use-livecode
On 18/04/2017 12:32, Mike Kerner via use-livecode wrote: cool! And, you might be surprised by how well written the widgets are. Have you tried the browser widget ? You might be surprised by how well written it isn't. Paul H. said the other day there were 30 active bugs on it. I ran into a

Re: Resize Images in on-rev folder via lc script?

2017-03-12 Thread Alex Tweedly via use-livecode
Yes, it is possible - here's the relevant section of the .lc file I used to use to do it. (it's from my script-only library that I use on both LCServer and desktop/IDE, hence the 'lockscreen's I would use this by uploading the file (usually to a folder called 'originals' or something like

revHTTP

2017-07-31 Thread Alex Tweedly via use-livecode
Does anyone have a copy of (or a currently working link to) Andre's revHTTP ? Thanks Alex P.S. I'm thinking of making a script-only stack that is a UI-free Simple HTTP server - and then suggesting to Livecode Ltd that the HTML5 deployment guide recommend it rather than the Python

Build a simple app on Android

2017-07-30 Thread Alex Tweedly via use-livecode
I'm trying to build a VERY simple app, and try it on Android. It is very simple - one Button (B_, and one field (F); click on the button, it downloads a URL and puts the content into the field. The script for the button consists of : on mouseUp pMouseButton localt putemptyintofld"F"

Re: httpd library and missed opportunity.

2017-08-01 Thread Alex Tweedly via use-livecode
On 02/08/2017 01:42, Monte Goulding via use-livecode wrote: On 2 Aug 2017, at 10:36 am, Alex Tweedly via use-livecode <use-livecode@lists.runrev.com> wrote: The 'test' button is handy - but it's not the only way. In fact, I rarely use it - I build my standalones, then try it out on

Re: httpd library and missed opportunity.

2017-08-01 Thread Alex Tweedly via use-livecode
g inexact). Alex. On 02/08/2017 01:13, Monte Goulding via use-livecode wrote: On 2 Aug 2017, at 7:16 am, Alex Tweedly via use-livecode <use-livecode@lists.runrev.com> wrote: python -m SimpleHTTPServer 8080 This will let you access your standalone by opening your web browser an

Re: revHTTP

2017-08-01 Thread Alex Tweedly via use-livecode
because the docs are spread in release notes. I wish there was a more comprehensive documentation effort going on. om om andre On Mon, Jul 31, 2017 at 4:22 PM, Alex Tweedly via use-livecode <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> wrote: Does

Re: revHTTP

2017-08-01 Thread Alex Tweedly via use-livecode
On 31/07/2017 21:18, Monte Goulding via use-livecode wrote: Hi Alex You could use the new httpd library that is already included in LiveCode 9 for this. Indeed this is what it was created for. We build a standalone with all our tests and serve it with the library. Yep - found it, and now

httpd library and missed opportunity.

2017-08-01 Thread Alex Tweedly via use-livecode
[ started a new thread, so I can't rant without tainting the other thread ] I started out on the 'find a rev/livecode solution for a simple HTTP server" for one small reason : the LC 9.0 Dictionary Guide, under "HTML5 Deployment" says Testing your HTML5 app with a local web server Some

Re: revHTTP

2017-08-01 Thread Alex Tweedly via use-livecode
I have to admit, I had the same complaint as Andre - I didn't see anything about it in the dictionary. OK, now that I've looked harder, I see them :-) But I had no idea there was library documentation within the "API" drop-down. Brings up another question - I see there's a 'getopt' library

Re: String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Alex Tweedly via use-livecode
. On 14/08/2017 17:25, Mike Kerner via use-livecode wrote: So you don't like & ? Always make me think of K - and brings me out in a cold sweat :-) On Mon, Aug 14, 2017 at 12:00 PM, Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: On 08/14/2017 03:28 AM, Alex Twe

Re: common code patterns

2017-08-10 Thread Alex Tweedly via use-livecode
Sticking with that style, why not do repeat with i=1 to paramcount()-1 put param(i)&"," after theValue end repeat put param(paramcount()) after theValue Shorter, faster, and just plain tidier :-) or, to change style, is there a reason not to do put param(1) into isLeft put

Re: Parent of Target

2017-08-10 Thread Alex Tweedly via use-livecode
On 10/08/2017 18:44, Richard Gaskin via use-livecode wrote: Mark Wieder wrote: I do use getter and setter routines regularly. I think your function is useful, but won't by itself get at the question of "who changed that?", and for that question there are at least two possible methods:

Re: common code patterns

2017-08-11 Thread Alex Tweedly via use-livecode
On 11/08/2017 23:17, Monte Goulding via use-livecode wrote: On 11 Aug 2017, at 9:40 am, Alex Tweedly via use-livecode <use-livecode@lists.runrev.com> wrote: repeat with i=1 to paramcount()-1 put param(i)&"," after theValue end repeat put param(paramcou

Re: common code patterns

2017-08-11 Thread Alex Tweedly via use-livecode
On 11/08/2017 16:26, Mark Wieder via use-livecode wrote: case 2: iterating through a cr-separated list and needing to modify lines (note: this is even more extreme if I need to delete lines): put tBreaks into tNewBreaks put 1 into tLine repeat for each line tBreak in tBreaks put item 1 of

String delimiters [WAS Re: common code patterns]

2017-08-14 Thread Alex Tweedly via use-livecode
While we (i.e. you) are thinking about string delimiters, could we PLEASE have some decent way to do multi-line strings. Whether it's like Python's triple-quote, or Perl's heredoc, or just some way to do them without either escaped '\n's or non-embedded CRs. Thanks Alex. On

Finding errors in a standalone

2017-07-13 Thread Alex Tweedly via use-livecode
After all these years, I'm finally trying to build a non-trivial standalone (pretty much everything I've done up till now has been either used from the IDE or from 'stackrunner' or similar). The app runs fine in the IDE, but when I run as a standalone, it gives me a dialog box - title is

Re: Finding errors in a standalone

2017-07-13 Thread Alex Tweedly via use-livecode
On 14/07/2017 01:38, Dr. Hawkins wrote: On Thu, Jul 13, 2017 at 5:19 PM, Alex Tweedly via use-livecode <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> wrote: I suspect it's failing when I call tsNetInit - but it does that whether I "sear

Re: Finding errors in a standalone

2017-07-14 Thread Alex Tweedly via use-livecode
On 14/07/2017 04:40, J. Landman Gay via use-livecode wrote: Being ignorant of almost everything about internet connection details, I've never called tsNetInit. I just include the internet library in my standalone and it works. I'm gussing it initializes itself when the library loads. What

Re: Finding errors in a standalone

2017-07-14 Thread Alex Tweedly via use-livecode
On 14/07/2017 04:48, Mark Wieder via use-livecode wrote: Well, you already have a license for PowerDebug, which will enable to to debug running standalone apps in the same subnet (include the library when you build, launch the IDE, then launch the app: breakpoints, errors, etc will be

Re: Image Metadata Enhancement Request

2017-07-09 Thread Alex Tweedly via use-livecode
Fascinating. That's the code I wrote and released 10 years ago, and now it's found its way onto github without my help. -- Alex. On 09/07/2017 16:27, Mark Waddingham via use-livecode wrote: There's a livecodescript library which manipulates exif data:

Re: Image Metadata Enhancement Request

2017-07-09 Thread Alex Tweedly via use-livecode
' to 'byte' - hopefully the same ones you added to bring it up to date. -- Alex. On 09/07/2017 21:35, Mark Wieder via use-livecode wrote: On 07/09/2017 12:24 PM, Alex Tweedly via use-livecode wrote: Fascinating. That's the code I wrote and released 10 years ago, and now it's found its way o

Re: Header Widget troubles and orientationchange examples?

2017-07-11 Thread Alex Tweedly via use-livecode
On 11/07/2017 17:42, JOHN PATTEN via use-livecode wrote: Hi All, I am trying to do some simple navigation with the header widget. ... I have changed the action name to Back and Next. However Back works fine, but Next does not. If i reset the action to “new item” the next button then works.

Re: Augmented Earth now on the App Store!

2017-07-11 Thread Alex Tweedly via use-livecode
On 11/07/2017 19:18, prothero--- via use-livecode wrote: If a person has logged in, and wants to change their password, I don't see why they would be required to enter their old password, but they must know it, or,they wouldn't have been able to log in. That's done to prevent someone else

Re: Augmented Earth now on the App Store!

2017-07-11 Thread Alex Tweedly via use-livecode
On 11/07/2017 19:18, prothero--- via use-livecode wrote: Jonathon, Re password changing. If someone has forgotten their password, what most sites do is send a reset link to a registered email. For even better security, a code is sent to the user's message system, which must be received and

Re: [ANN] Release 8.1.6 RC-1

2017-07-11 Thread Alex Tweedly via use-livecode
On 11/07/2017 23:07, Kevin Miller via use-livecode wrote: Is it something perhaps you could get used to? We are working hard to attract new users to the platform. This has come up again and again in user testing. This evening we tested this new handler list on new users for the first time. It

Re: Group does not exist after "copy to this card"

2017-07-08 Thread Alex Tweedly via use-livecode
I have "not a clue", but it looks like no-one else had any good ideas, so instead I'll make a couple of suggestions :-) Try either of the following and see if it tells you anything. command sivasiva_Share put sConfigA["shareControl"] into tShareControl put the name of the last control

Re: Finding errors in a standalone

2017-07-14 Thread Alex Tweedly via use-livecode
both JSON Library and mergJSON-x86_64 not realizing there is also an entry for "mergJSON". Fixed that - and all seems to be happy for now. Thanks again to everyone who helped. Alex. On 14/07/2017 21:21, J. Landman Gay via use-livecode wrote: On 7/14/17 9:31 AM, Alex Tweedly via use-livecode wro

Re: Weird variable thing in 8.1.5

2017-07-16 Thread Alex Tweedly via use-livecode
On 16/07/2017 18:49, Jonathan Lynch via use-livecode wrote: In 14 years with LC I have never used that option. You should try it :-) Can be a bit of a pain to add all the local variable declarations - BUT every so often it will help you discover a typo in a variable name, and suddenly

Re: Ethereal Breakpoints

2017-07-24 Thread Alex Tweedly via use-livecode
On 24/07/2017 22:37, Monte Goulding via use-livecode wrote: There are some cases where breakpoints are deliberately ignored. Any breakpoints when there is modal stack open and in resizeStack and moveStack handlers. You know, I really wish it could be (even) more helpful : in particular,

Re: synonyms

2017-06-29 Thread Alex Tweedly via use-livecode
On 29/06/2017 19:11, Bob Sneidar via use-livecode wrote: That's possible in R, Python, CSS, and others, but not natively in LC. I suppose lots of things are possible in other languages. Are we trying to be just like all the other languages? No. What we should be trying to do is pick out

Re: synonyms

2017-06-28 Thread Alex Tweedly via use-livecode
On 28/06/2017 15:27, Paul Dupuis via use-livecode wrote: Your solution illustrate more so than mine how easy it is to make handler and functions that use name/value pairs if someone prefers that model. The xtalk language really doesn't need any extensions or enhancements to enable this. I

Array assignment / initialization [was Re: synonyms]

2017-06-28 Thread Alex Tweedly via use-livecode
On 28/06/2017 16:55, Richard Gaskin via use-livecode wrote: Fully agreed, as I wrote in my post introducing this arg format to the discussion a couple days ago: And as much as I like it in R, I'm not sure I would advocate it in an xTalk as any sort of necessity. It might be ideal

Re: synonyms

2017-06-29 Thread Alex Tweedly via use-livecode
some day. -- Alex. But again, you either do the work first (and build the array to send) or you do the work after (and break up the name value pairs after the fact.) It just seems simpler to me to use arrays from the start. On Thu, Jun 29, 2017 at 10:31 AM, Alex Tweedly via use-liv

Re: synonyms

2017-06-29 Thread Alex Tweedly via use-livecode
On 29/06/2017 17:17, Mike Bonner via use-livecode wrote: The thing about passing in as an array is.. its just a different form of name value pairs, so it sidesteps the whole issue. alue pairs. Not quite - there's a crucial difference. Using an array for name/value pairs, you can pass in an

Re: synonyms

2017-06-29 Thread Alex Tweedly via use-livecode
Mark, are you trying to allow mixing of positional and named actual parameters ? In your example, is "This is a chart" the actual parameter for the first or second positional parameter ? Would it not be less confusing to expect (as Python does) that non-named parameters must come first in

Re: synonyms

2017-06-29 Thread Alex Tweedly via use-livecode
Yeah, so do I - that's why it's important to me :-). But you can't do that using the "parameters as strings" techniques described by Mike Bpnner and Paul Dupuis - i.e. DoSomething "type=chart", "size=100" or DoSomething "type=chart, size=100" Also, you can use the technique of using

Re: synonyms

2017-06-29 Thread Alex Tweedly via use-livecode
t sure what you mean by "pass by parameters" but I pass arrays by parameters all the time. If you mean: function getSomeInfo @aMyArray -- do some stuff return true end getSomeInfo That works fine. Bob S On Jun 28, 2017, at 15:14 , Alex Tweedly via use-livecode <use-liv

Re: Verbosity and Lines of code

2017-06-30 Thread Alex Tweedly via use-livecode
That doesn't generalize to more than two levels (without many extra lines of code) - you essentially have to number or label the repeat loops, and check in many places whether the 'exitMe" variable has been set to a higher level or not. And it's pretty fragile if additional levels of repeat

Re: Verbosity and Lines of code

2017-06-30 Thread Alex Tweedly via use-livecode
On 30/06/2017 17:32, Bob Sneidar via use-livecode wrote: What WILL save time (and I think it's on the list of future V9 features) is script editor "clairvoyance" or AutoFill as it's called. Imagine all your text variables starting with vtx (autofill usually requires a minimum of characters

Re: Array assignment / initialization [was Re: synonyms]

2017-06-29 Thread Alex Tweedly via use-livecode
On 28/06/2017 23:32, Alex Tweedly via use-livecode wrote: Yes, it would be nice if we had an easier (terser) way to assign to an array. Maybe something like Python / Perl use to assign to a dictionary. put { "name": "my chart", "width": 100, "label"

Re: synonyms

2017-06-27 Thread Alex Tweedly via use-livecode
On 27/06/2017 19:19, Richard Gaskin via use-livecode wrote: I don't know when OL will be available or how it'll work. I only know one thing it won't support, based on an earlier conversation with Mark Waddingham: R-style arguments (similar in many respects to CSS values). In R, things

Re: OT (?): Bookmarking GPS coords

2017-04-21 Thread Alex Tweedly via use-livecode
I was working on a Mobile app to allow a user to set the location of a named address within a UK Postcode. For various reasons, I'm not able to spend much time on it - and I discovered that although the process of starting to develop an Android app looks reasonable, there are many details

Re: User IP Address from LC Server?

2017-04-27 Thread Alex Tweedly via use-livecode
$_SERVER["REMOTE_ADDR"] will give you the IP addr of the host issuing the URL request Probably the same as "user who has logged in " ... but without checking if the URL request has come from someone logged in :-_) -- Alex. On 28/04/2017 01:21, Rick Harrison via use-livecode wrote: After

Re: Taking quotes on building LC external for RethinkDB

2017-08-04 Thread Alex Tweedly via use-livecode
I have to admit that rethinkdb sounds really interesting - I hadn't heard of it until your posting. Might be worth a crowdfunding / donation request to spread the cost; while I don't have a *need* for it, it might be a worthy target for (a small amount) of my optional spending of my 'pocket

Re: Build a simple app on HTML5 [WAS: Re: Build a simple app on Android]

2017-07-30 Thread Alex Tweedly via use-livecode
Thanks Herman. I guess I'll have to wait ... the "same domain" limitation makes it unfeasible for me to use it for now. Alex. btw - while looking at that entry in the release notes (for dp8), I noticed the paragraph above it. Any guess what this is trying to say ? Additional forms of

Re: Build a simple app on HTML5 [WAS: Re: Build a simple app on Android]

2017-07-30 Thread Alex Tweedly via use-livecode
Yes, I've been using the python server as described in the deployment guide, and it's very handy. But the real app (the one this was condensed out of) actually wants to download files from a server (that I can't add the app itself to), so for now I'm kind of stuck. Hmmm - maybe I can modify

Re: controlNames deprecated??

2017-07-28 Thread Alex Tweedly via use-livecode
It's under item 4 of "enter a bug" ( http://quality.livecode.com/enter_bug.cgi ) It insists on you filling in this in order - so once you fill in the "I can see this in ..." (choose IDE vs Desktop vs ...) , it will then present you with a box for OS, then for version, then for --

Build a simple app on HTML5 [WAS: Re: Build a simple app on Android]

2017-07-30 Thread Alex Tweedly via use-livecode
e-livecode wrote: Hi Alex, Check the internet permission in the android standalone settings. Best, Panos On 30 Jul 2017 13:01, "Alex Tweedly via use-livecode" < use-livecode@lists.runrev.com> wrote: I'm trying to build a VERY simple app, and try it on Android. It is very simple

Re: Mark in a kilt...

2017-07-31 Thread Alex Tweedly via use-livecode
Agreed. I'd feel much less self-conscious wearing a kilt and shirt than I would wearing a suit & tie :-) Alex. On 01/08/2017 00:45, Jonathan Lynch via use-livecode wrote: Excellent! Sent from my iPhone On Jul 31, 2017, at 6:44 PM, Colin Holgate via use-livecode

Re: Using Find with Shell on Mac

2017-08-09 Thread Alex Tweedly via use-livecode
On 10/08/2017 01:10, Alex Tweedly via use-livecode wrote: You should put quotes around the "*.livecode", because find ~/ -iname "*.livecode" -print will do what I think you want to do. Whereas if you do, find ~/ -iname *.livecode -print the *.livecode is seen

Re: Using Find with Shell on Mac

2017-08-09 Thread Alex Tweedly via use-livecode
You should put quotes around the "*.livecode", because find ~/ -iname "*.livecode" -print will do what I think you want to do. Whereas if you do, find ~/ -iname *.livecode -print the *.livecode is seen by, and interpreted by, shell - and so expands to the livecode files in your home

Re: Taking quotes on building LC external for RethinkDB

2017-08-06 Thread Alex Tweedly via use-livecode
On 07/08/2017 00:39, Richard Gaskin via use-livecode wrote: Hello Tom - ReThinkDB seems like a good project. I'm assuming this is for client-server over the Internet, yes? If so, do you plan on connecting the DB directly to the open Internet, or use a middleware supplying a REST API for

Re: keeping keys of an array in the order they came in?

2017-08-19 Thread Alex Tweedly via use-livecode
Hmmm - you haven't mentioned how much data you're working with. Using lineoffset() to check for duplicated keys will make you (relatively) slow on large data sets, since it is O(n**2). Since you know that item 2 is not empty, you must also know that the whole line is not empty :-), so you

LIvecode quit unexpectedly errors.

2017-05-03 Thread Alex Tweedly via use-livecode
Sorry, I should know this but I guess I've been very lucky so far :-) I have just started (first time in 12 years or so of using LC/Rev) getting crashes. How do I report these ? Obviously, open a bug in QCC - but what file(s) do I need to include to help find the problem ? Thanks

Seeking recommendations / suggestions for use of library stacks.

2017-05-13 Thread Alex Tweedly via use-livecode
I'm starting to make more use of library stacks (partly because I'm trying to switch away from revIgniter to a CGI-based solution to allow me to do more work & debugging in the IDE). And now I'm looking for best-practice and/or suggestions for how to use library stacks. The

Re: Seeking recommendations / suggestions for use of library stacks.

2017-05-15 Thread Alex Tweedly via use-livecode
Thanks Ali, that's a nice idea. But just in case anyone else does the same as me (i.e. copy/paste it without looking too hard :-) : there should NOT be an 'else' clause in there right now it will either set the variable OR do the initialization, when in fact it should do BOTH or

[OT] on-rev MySQL warnings - does it matter.

2017-05-09 Thread Alex Tweedly via use-livecode
Hope this isn't too off-topic but I'm pretty ignorant about MySQL ... on my account on on-rev (specifically, sage), if I use cPanel and go into phpMyAdmin, I get a warning message : Your PHP MySQL library version 5.1.73 differs from your MySQL server version 5.6.35. This may cause

Re: Instantiaing Grouped Controls - Templates - Responsive

2017-06-12 Thread Alex Tweedly via use-livecode
On 12/06/2017 18:30, Sannyasin Brahmanathaswami via use-livecode wrote: 2) I like everything you are describing but I don't get this: "resizeControl" is never triggered if the resizeStack is "dormant" that was my last "problem" … so, how are we "trigger" the resizeStack to "fire" when any

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Alex Tweedly via use-livecode
Why not just use Sublime Text editor, with Levure to allow you to use an external editor? (or plug in to that system to allow other external editors to be used) Other than the fact that I can't get the 'linter' to work (and I know that'll just be me doing something stupid and wrong :-), it

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Alex Tweedly via use-livecode
You're right, not a good solution for newcomers. However, I think there's a (perhaps minority) class of newcomers - more or less, those who come as experienced developers in another language / IDE - for whom a good setup would include ST + linter + just enough of Levure to provide the

Re: Inconsistent comma requirements

2017-06-24 Thread Alex Tweedly via use-livecode
On 24/06/2017 16:37, Richard Gaskin via use-livecode wrote: Two questions: How many of you have never before known that commas are optional between definition arguments? For those who've known about this, were you confused to discover that this only works for definitions but not calls?

Re: Feature Race: Pick Your Project

2017-06-24 Thread Alex Tweedly via use-livecode
So the Feature Race lets me choose between "Hosting debugger" and Datagrid 2. Hmpphhh! I have a hard time voting for, or funding, Hosting debugger. I already paid for that, back in 2009. It was a feature described in, and mostly present in, the first release of on-rev. It was a significant

Levure wiki / documentation

2017-06-26 Thread Alex Tweedly via use-livecode
I've got as far as building my app with within the framework, and reading much of the docs. I've found some things that I believe should change in the wiki - both - just obvious bugs / typos / cleanup and - things I think I know how to correct, but not 100% sure, and would like

Re: English Like?

2017-05-24 Thread Alex Tweedly via use-livecode
constant kRectLeft = 1, kRectTop = 2, kRectRight = 3, kRectBottom = 4 (or whatever ... haven't looked it up :-) Alex. On 24/05/2017 18:27, Mark Wieder via use-livecode wrote: The one that's always bugged me is put item 2 of the rect of someObject into tVar Rects have a defined order of

Re: English Like?

2017-05-24 Thread Alex Tweedly via use-livecode
HpD On 24/05/2017 20:35, Mark Wieder via use-livecode wrote: On 05/24/2017 12:25 PM, Alex Tweedly via use-livecode wrote: constant kRectLeft = 1, kRectTop = 2, kRectRight = 3, kRectBottom = 4 (or whatever ... haven't looked it up :-) Exactly the point. I'd have to store this somewhere, and

Re: Instantiaing Grouped Controls - Templates - Responsive

2017-06-08 Thread Alex Tweedly via use-livecode
On 08/06/2017 20:20, Richard Gaskin via use-livecode wrote: In general I try to "go to TOWN": Touch Only What's Needed. If I don't need to create an object I probably won't, adjusting an existing object instead. It only saves one step, but its a savings just the same. If you're committed

Re: Instantiaing Grouped Controls - Templates - Responsive

2017-06-08 Thread Alex Tweedly via use-livecode
On 08/06/2017 22:37, Richard Gaskin via use-livecode wrote: Alex Tweedly wrote: > On 08/06/2017 20:20, Richard Gaskin via use-livecode wrote: >> If you're committed to a script-only stack there's no decision to >> make: every control must be instantiated dynamically, because a >> script-only

Re: Price of LiveCode Global

2017-06-09 Thread Alex Tweedly via use-livecode
$299 -> £234 + VAT = £280.80 I'll pay the other £1.20 for you :-) -- Alex. On 09/06/2017 15:37, Kaveh Bazargan via use-livecode wrote: How does $299 convert to £282? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: Instantiaing Grouped Controls - Templates - Responsive

2017-06-09 Thread Alex Tweedly via use-livecode
On 09/06/2017 00:40, Richard Gaskin via use-livecode wrote: I don't understand. A script-only stack contain no objects, so even if you later copy them, they still need to be dynamically instantiated at some point, no? Like a Zen koan: how can there be a binary object where there is no

Re: [OT] We should have our own competition

2017-06-16 Thread Alex Tweedly via use-livecode
That's not unique to WoW. In fact, it used to be considered by many to be *the* right way to do mouse/scrollbars. I'm pretty sure it was the default on very early Sun Micro systems, copied from Apollo : left click in scrollbar would 'warp' to the mouse position, right button would scroll 1

Re: LC Global - my experience

2017-06-17 Thread Alex Tweedly via use-livecode
I agree. Even though I am in Scotland (in fact, in Edinburgh) other circumstances would have prevented me from attending in person - so the ability to (almost immediately) use the replay of the webinar is really great - and the quality of the recording is so much better than we've seen in

Re: I need help with building standalones ! :-)

2017-06-14 Thread Alex Tweedly via use-livecode
://quality.livecode.com/show_bug.cgi?id=19429 Best, Panos -- On Wed, Jun 14, 2017 at 1:59 PM, Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: I went back to an earlier version (8.1.2 community) and everything works as expected. Bug 19865 submitted. -- Alex. On 13/06/2017 23:57

Re: LCGlobal

2017-06-14 Thread Alex Tweedly via use-livecode
https://livecode.com/global/#sessions (much more than 1 hour for tomorrow :-) On 14/06/2017 14:16, Mike Kerner via use-livecode wrote: Do we have a schedule? I don't seem to have one. I know we have a session, tomorrow, but I don't know if that's just 1 hour or what.

Re: I need help with building standalones ! :-)

2017-06-14 Thread Alex Tweedly via use-livecode
I went back to an earlier version (8.1.2 community) and everything works as expected. Bug 19865 submitted. -- Alex. On 13/06/2017 23:57, Alex Tweedly via use-livecode wrote: Normally I don't build standalones - I simply either run the stack in the IDE, or via stackrunner, so I'm

I need help with building standalones ! :-)

2017-06-13 Thread Alex Tweedly via use-livecode
Normally I don't build standalones - I simply either run the stack in the IDE, or via stackrunner, so I'm in 'unknown territory' here :-) The app works fine in the IDE, but when I build a standalone, when I do (full code below) put revOpenDatabase(:sqlite",tFileName) into temp I get

  1   2   3   4   5   >