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: 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: 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: 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: 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-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
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
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: 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: 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"

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-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

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

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: 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

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: 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: 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: 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: [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: 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
://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: 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

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: 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: 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: 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: 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: 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: 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

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

[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: User friendly functions to replace MySQL queries?

2017-05-07 Thread Alex Tweedly via use-livecode
If it's a user-friendly way to call SQL, I don't think you want revSpark, you want his DBLib. I think the current / latest is at https://github.com/Himalayan-Academy/Siva-Siva-App/wiki/aagDBLib -- Alex. On 07/05/2017 21:55, Kaveh Bazargan via use-livecode wrote: Hi all Writing MySQL

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Alex Tweedly via use-livecode
Could you have the LC Script pass a temp file name to the helper app which can then write to that file rather than stdout ? (maybe not really a "temp file", but simply a file chosen by the LC Server script based on current millisecs time or some such thing, and deleted after everything is

Re: LIvecode quit unexpectedly errors.

2017-05-04 Thread Alex Tweedly via use-livecode
On 04/05/2017 01:27, Jonathan Lynch via use-livecode wrote: Is it a new installation? No, it's 9.0.0DP6 which I've had installed and in use for a while. It's a new-ish stack that I'm having trouble with - but sadly not reliably or reproducably or even vaguely predictably. I'll send in a

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

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: 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: 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: 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: 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: 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-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: 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-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

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: 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

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: 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: 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: 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

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-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-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: 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: 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

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

<    1   2   3   4   5   6