Re: Optimization can be tricky

2018-06-12 Thread Alex Tweedly via use-livecode
I don't know if these are good ideas or BAD ideas and without some suitable data, not sure if I could find out - so I'll throw the ideas over and let you decide if they are worth trying :-) 1. Two ideas combined  - avoid scanning for the "item 1" of each line  - use the (hopefully optimi

Re: UTF8 on LC server

2018-05-31 Thread Alex Tweedly via use-livecode
On 01/06/2018 01:17, Mike Bonner via use-livecode wrote: on-rev host is 7.0.1 you can get it with version() Hmmm - I get 7.1.0 (on sage). And that might just be the problem with Unicode handling I think it improved in LC v 8 upwards,  but that's an area I know nothing about. You can,

Re: UTF8 on LC server

2018-05-31 Thread Alex Tweedly via use-livecode
Hi Tim, which version of LC engine are you using on the LC Server ? ( and which version on the desktop? ) Alex. On 01/06/2018 00:33, Tim Selander via use-livecode wrote: Thanks, Warren. Yes, I've got that header set up, and UTF8 is working fine, pages look great. But LC server is not handl

Re: PDF

2018-05-12 Thread Alex Tweedly via use-livecode
On 12/05/2018 21:08, Richard Gaskin via use-livecode wrote: Per Postel's Law, reduce the stockpile of PDFs littering humanity's infosphere by generating none except in the increasingly rare cases where no other format is a better choice. Good advice to improve the world :-). But unfortunat

Re: Has Anyone Got A Directory \"Walker\" Available

2018-05-06 Thread Alex Tweedly via use-livecode
I doubt if it would work out faster. A quick test of  time ls -lR > null gives 166 ms vs. the 179 I get from the non-recursive tree walker - so by the time you gather that output, and re-format back to something more usable, I think you'd probably come out the same or slower. Alex. On 06/0

Re: Has Anyone Got A Directory "Walker" Available

2018-05-06 Thread Alex Tweedly via use-livecode
On 06/05/2018 20:12, Richard Gaskin via use-livecode wrote: Ah, that makes sense.  It's not so much the recursion per se, but the more general advantage of inline processing vs handler calls. Exactly. In the test case below you know how many levels deep you're going, which seems a good fit f

Re: Has Anyone Got A Directory "Walker" Available

2018-05-05 Thread Alex Tweedly via use-livecode
On 05/05/2018 01:29, Richard Gaskin via use-livecode wrote: How does recursion impair performance so significantly? In general, there's significant work involved in a function or handler call and return - you need to establish a new context for locals, copy or calculate, parameters, etc.  My c

Re: Has Anyone Got A Directory "Walker" Available

2018-05-03 Thread Alex Tweedly via use-livecode
Thanks Ben - that's pretty similar to what I use. Avoiding recursion is (almost) always a good idea, if it can be done without jumping through hoops; for a file walker I timed it (a couple of years ago) at somewhere between 20 and 35% faster. And it's so much easier to add a good progress indi

Re: Scott Rossi and TactileMedia

2018-04-29 Thread Alex Tweedly via use-livecode
Hi Todd, can you say if you have any plans to produce versions of your widgets for non-mobile platforms ? Thanks, Alex. On 29/04/2018 20:09, Todd Fabacher via use-livecode wrote: Scott was such a talented innovator and I loved the work he did. At Digital Pomegranate we were customers and

Re: Hex to Decimal 2s Complement

2018-04-27 Thread Alex Tweedly via use-livecode
I should know this - but don't any more :-) So there may be a corner case to fix up - but in general, something like *put*thetextoffld"F"intotemp* put*baseconvert(temp,16,10) intot1* if* t1 > 32767*then* *put*t1-65536intot1* end* *if* should do it. -- Alex. On 27/04/2018 10:27, Camm via use-l

Re: Q on Accessing multi-dimension arrays.

2018-04-26 Thread Alex Tweedly via use-livecode
Thanks Brian, Bernd, and everyone else. When I first saw it (in the form described in Brian's email), I thought - hmmm, not sure when anyone would use that. Then I saw an example using split (as described in Bernd's email), and thought - maybe I can use that some day. :-) Well - the day has

Q on Accessing multi-dimension arrays.

2018-04-26 Thread Alex Tweedly via use-livecode
I have a (vague) memory that there is some way to do this ... but can't remember and haven't had any luck searching for it I have a multi-dimension array, say created by put "answer" into tArray["firstkey"]["secondkey"] Is there some way or format to specify the array elements using th

Re: Title Case

2018-04-21 Thread Alex Tweedly via use-livecode
Or maybe put toupper(char 1 of tolower( trueword i of tTitle) ) into trueword i of tTitle or put toupper(char 1 of trueword i of tTitle) & \ tolower(char 2 to -1 of trueword i of tTitle) into trueword i of tTitle -- Alex. On 21/04/2018 04:54, Mike Bonner via use-livecode wrote: Somethi

Re: Search a multidimensional array

2018-04-20 Thread Alex Tweedly via use-livecode
On 20/04/2018 20:15, Richard Gaskin via use-livecode wrote: This is an interesting problem, Andrew.  Thanks for posting it. Indeed! One modest performance gain available easily may be to change this:   repeat for each element tThisItem in tInventoryArray if tThisItem["description"]

Re: [Ann] xaLib - library to extract data from an array.

2018-04-18 Thread Alex Tweedly via use-livecode
Well, it's only a case of "I expect ..." so we shouldn't trust my intuition until we've benchmarked it a bit :-) Having said that - we will still be using script to iterate over the keys/elements of the array, so there is likely to be some cost there - even before we allow sqlite to index some

Re: [Ann] xaLib - library to extract data from an array.

2018-04-18 Thread Alex Tweedly via use-livecode
ave to. Any SQL database would work but memory makes it so much faster, so long as the array size is not humongous. Bob S On Apr 18, 2018, at 07:00 , Alex Tweedly via use-livecode wrote: So, I was tempted too :-) But I decide there was no need for the complexity of xquery, and it was bette

[Ann] xaLib - library to extract data from an array.

2018-04-18 Thread Alex Tweedly via use-livecode
Bob Sneidar and Richard Gaskin said : > Essentially it's for finding things in an array. You might say I could > do the same thing by iterating through all the elements of an array, > but what if I wanted to do multiple queries? It's easier for me to > write SQL queries than it is to code

Re: Posting to LiveCode Server

2018-04-18 Thread Alex Tweedly via use-livecode
Not quite sure what you're trying to do ... or why you use such a complicated URL in the client code. Changing it to simply *get URL "https://api01.triviamatic.tv/round_create.lc"; * will work fine, as will *post*emptyto"https://api01.triviamatic.tv/round_create.lc"; -- Alex. On 18/04/201

Re: AW: How to get the line break char?

2018-04-18 Thread Alex Tweedly via use-livecode
put the number of chars in line 1 of tVar into temp put char temp+1 of tVar into tLineBreakChar (and beware of single-line data :-) -- Alex. On 18/04/2018 13:57, Tiemo Hollmann TB via use-livecode wrote: Yes, thats what I said. I am looking for an alternative to examine the line break if it

Re: Mobile Native Essentials Widget Pack

2018-04-12 Thread Alex Tweedly via use-livecode
rly a version of LiveCode. The widget pack requires 9.0 dp 11 or later. I'll investigate the store "update" issue, sounds like a glitch. Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com On 12 Apr 2018, at 00:56, Alex Tweedly via use-livecod

Re: Mobile Native Essentials Widget Pack

2018-04-11 Thread Alex Tweedly via use-livecode
On 11/04/2018 23:01, Mark Talluto via use-livecode wrote: $49 for the amount of work that went into making these widgets is quite affordable. Yes, these are listed as v .5. They could have labeled them as v 1.0. Well, actually, they did :-) Since I know I'm going to buy them anyway, I went a

Re: Mobile Native Essentials Widget Pack

2018-04-11 Thread Alex Tweedly via use-livecode
I agree these look great, and because I know Digital Pomegranate I can have lots of faith in them - so I will buy them (whenever I next want to do a mobile project). But - I have one (or maybe two) "objections" 1. I don't think items should go on sale on the store with *no* documentation avai

Re: do. command. safety. ?

2018-03-31 Thread Alex Tweedly via use-livecode
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

Re: variable xref

2018-03-28 Thread Alex Tweedly via use-livecode
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 t

[Completely OT] Withdrawal symptoms from Slashdot

2018-03-03 Thread Alex Tweedly via use-livecode
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 wh

Re: Another server question (mixing node.js and LC)

2018-03-01 Thread Alex Tweedly via use-livecode
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?

Bug? or unexpected feature ??

2018-02-20 Thread Alex Tweedly via use-livecode
This is on LC Server (various versions). My main script is simply " start using stack temp1 hereweare Inside the sub-directory "folder1/folder2" I have a script-only stack "my_script.livecode", which says script "mine" command hereweare   put "here we are inside folder1/folder2/" end here

Re: Good pinch-to-zoom in image object?

2018-01-27 Thread Alex Tweedly via use-livecode
On 27/01/2018 22:51, Richard Gaskin via use-livecode wrote: All this has me wondering:  Have you ever seen a mobile app that displays images but *doesn't* support pinch-to-zoom? Ummm - on IOS I can think of  (I've just re-tested these to be certain): Facebook WhatsApp kind of ... Instagram    

Re: non-blocking http ... will tsnet end up in community?

2017-12-19 Thread Alex Tweedly via use-livecode
I think that, unfortunately, it's not going to be possible. I am 99% sure that I remember, either in the initial announcement or closely related to it, that Kevin mentioned that they (Livecode Ltd) pay a per-user (i.e. per-licence) fee to the third party for each tsNet - which means they have

Re: RESTful PUT error

2017-12-15 Thread Alex Tweedly via use-livecode
On 15/12/2017 17:19, Andrew Bell via use-livecode wrote: They also tested updating the phone value themselves via API, and were successful. I'd ask them for the sample code they used to do this update, and see if that gives us a clue. -- Alex. ___

Re: Revigniter Sessions

2017-12-15 Thread Alex Tweedly via use-livecode
Hold on - you guys are getting confused - or maybe you're just getting me confused :-) :-) On the server side, Tom wants to use revIgniter session support - that should be just fine. revIgniter (or indeed LC Server) doesn't know, or care, if you are using a standard browser, a revBrowser insi

Re: rename folder not working?

2017-12-14 Thread Alex Tweedly via use-livecode
Write yourself (or check if the Master Library already has) a little function  ensureFolderExists pPathName which will iterate down the elements of the path, checking htey exist, or creating if need be. (I *know* I have one somewhere - but it would be faster to re-write than to find :-) T

Re: LC Server style survey: co-mingle code w/HTML?

2017-12-09 Thread Alex Tweedly via use-livecode
On 08/12/2017 17:28, Mark Waddingham via use-livecode wrote: On 2017-12-07 19:52, Richard Gaskin via use-livecode wrote: Would it be possible/practical to extend the merge function to at least allow things like control structures with non-LC stuff in between them? A LC Server script is an alter

Re: LC Server style survey: co-mingle code w/HTML?

2017-12-06 Thread Alex Tweedly via use-livecode
On 06/12/2017 19:14, Richard Gaskin via use-livecode wrote: There's a difference in terms of the primary execution object, and how that effects the flow of both execution and the workflow. It seems I'm unable to articulate it clearly enough, but no worries. The bottom line is that LC Server

Re: Livecode Content Management System

2017-12-04 Thread Alex Tweedly via use-livecode
So many interesting, thoughtful and thought-provoking responses - I am overwhelmed. Thank you. I can't reply to each of them - flooding the list with 24 responses would be somewhat anti-social :-), so I'll arbitrarily pick the most recent (as I type) and respond to it, with responses to variou

Re: Livecode Content Management System

2017-12-01 Thread Alex Tweedly via use-livecode
On 01/12/2017 02:47, Alejandro Tejada via use-livecode wrote: Could your LCMS import (and use) templates and themes from other CMS platforms like Joomla or WordPress? Unlikely. Wordpress themes are written in PHP (or, if you like, HTML with a lot of embedded PHP), so it's hard to see how I cou

Livecode Content Management System

2017-11-30 Thread Alex Tweedly via use-livecode
Hi folks, I'm looking for (initial) interest, previous experience, comments, etc. Every few [ = 4 to 8] months for the last few [= 2 to 3] years, I've been either building a new website for someone, or making significant changes/enhancements to an existing one. Almost every time, unless the c

Re: RESTful PUT error

2017-11-27 Thread Alex Tweedly via use-livecode
"programming pattern" I (sometimes) do something like this - so that each and every line of additional output looks and feels the same, e.g. put "something" & CR after tVariable put "something else" & CR after tVariable etc. i.e. every line finishes with   "  & CR after tVariable " so that ca

Re: ArrayToJSON in LCServer ?

2017-11-26 Thread Alex Tweedly via use-livecode
The mergJSON external is already included in LCServer - mergJSONEncode and mergJSONDecode work fine; it's just the convenience functions (arrayToJSON and JSONToArray) which are missing. They are very short, and can be found in the dictionary entries for those main functions, and then simply cop

Re: Rant on my favourite topics : LC server with a side-dish of on-rev :-)

2017-11-20 Thread Alex Tweedly via use-livecode
Matthias said (quoting the LC FAQs): Another difference is you do not require your code be distributed under GPL. But with community version of LcServer you have to do so "in case your server code is an integral part of making your LC based software work". But that (as far as I can see) is said

Re: Rant on my favourite topics : LC server with a side-dish of on-rev :-)

2017-11-18 Thread Alex Tweedly via use-livecode
e ArrayToJSON() function? Did you already try it out using it on LcServer? Regards, Matthias Am 18.11.2017 um 00:53 schrieb Alex Tweedly via use-livecode mailto:use-livecode@lists.runrev.com>>: This is a bit of a rant, so if you're not in the mood, switch off now :-) I will (when I

Re: Rant on my favourite topics : LC server with a side-dish of on-rev :-)

2017-11-18 Thread Alex Tweedly via use-livecode
er.com/userGuide/general/extensions.html Ralf On 18. Nov 2017, at 00:53, Alex Tweedly via use-livecode wrote: But - still need to solve the problem of my database interactions - which I want to do through revIgniter, rather than through my little utility script for doing the actual upload.

Rant on my favourite topics : LC server with a side-dish of on-rev :-)

2017-11-17 Thread Alex Tweedly via use-livecode
This is a bit of a rant, so if you're not in the mood, switch off now :-) I will (when I've calmed down and organised myself :-) submit bug reports. So, normally, I don't have much time for my favourite hobby of scripting in LC, which lately has been mostly LCServer for a couple of simple webs

ArrayToJSON in LCServer ?

2017-11-17 Thread Alex Tweedly via use-livecode
It looks as though arrayToJSON() isn't included in LCServer  (*). That can't be right - can it ? Must be something I need to do - but what ? (*) The dictionary for the array <-> JSON functions don't mention OS or Platforms. My simple test script could be much simpler ... file "/home/ua886

OT : need help understanding why my web page isn't behaving right :-)

2017-11-07 Thread Alex Tweedly via use-livecode
I just discovered a problem with one of my web pages - but can't figure out just where it's coming from. Anyone know their way around chrome tools and able to help ? If you load the page    https://www.kilmelford.com/igniter.lc/basic/Services the links in the body of the page (to "Netherlor

Re: The coming of SVG

2017-11-07 Thread Alex Tweedly via use-livecode
On 07/11/2017 19:02, J. Landman Gay via use-livecode wrote: I believe the objection to using "vector" is because the object isn't going to contain only vector graphics. Eventually it will be a representation of many different image formats, a sort of catch-all that will replace all the existing

Re: Markdown ultra-lite

2017-11-06 Thread Alex Tweedly via use-livecode
Yeah, that's a really good suggestion. I had thought of it - but the purist in me was reluctant to add a "magic character sequence" without any escape mechanism. And the limitation of "no whitespace" made it tricky to limit the context of the replace. However - the fact that you made the sugg

Re: Markdown ultra-lite

2017-11-05 Thread Alex Tweedly via use-livecode
few more features added in the next week or so, so I'll post the final version (or a link to it) when I think I'm done. -- Alex. On 05/11/2017 20:40, Kay C Lan via use-livecode wrote: On Sun, Nov 5, 2017 at 1:39 AM, Alex Tweedly via use-livecode wrote: (*) I read about Markdown; it wa

Re: Markdown ultra-lite

2017-11-04 Thread Alex Tweedly via use-livecode
On 04/11/2017 13:21, James At The Hale via use-livecode wrote: You are aware of mergMarkdownToXHTML function from the mergmarkdown library, no? In a word: "No." :-( In a sentence:  No, of course not; if I had known Monte had already done this in a thorough way, I wouldn't have wasted (*) a co

Markdown ultra-lite

2017-11-03 Thread Alex Tweedly via use-livecode
I wanted to find a LC implementation of markdown, so I could easily use markdown files on a website, and have them be converted to html for output. I really wanted it completely in LC, so I could just include it without worrying about installing, or checking for, any other languages, scripts, e

Re: how to split a list in two directions?

2017-10-27 Thread Alex Tweedly via use-livecode
Not a one-liner, but I'd be wiling to guess that   repeat for each line L in theData   put item 2 of L into A1[item 1 of L]   put item 1 of L into A2[item 2 of L]   end repeat will be as quick as any other method. -- Alex. On 27/10/2017 14:05, Tiemo Hollmann TB via use-livecode wro

Re: Atkinson dither algorithm

2017-10-16 Thread Alex Tweedly via use-livecode
On 17/10/2017 00:21, Alex Tweedly via use-livecode wrote: Sorry about the horrible formatting on the last post... I'll try to find my Forum password and post the modified version there I haven't tackled the second half (i.e. the actual dithering bit yet - maybe tomorrow).

Re: Atkinson dither algorithm

2017-10-16 Thread Alex Tweedly via use-livecode
On 16/10/2017 19:37, Alejandro Tejada via use-livecode wrote: Hi Bob, Bob Sneidar wrote: I didn't post any code I don't think, but I will certainly take some credit for having done so! ;-) In fact, you are not late! :-D But I am too late - the file is called "...Final Version ..." :-) :-) Le

Re: is a date

2017-10-15 Thread Alex Tweedly via use-livecode
Or   x is a date and x is not an integer  ? -- Alex. On 15/10/2017 21:37, J. Landman Gay via use-livecode wrote: You know, after all the dicussion here, I'm not sure any of the options are better than "x is a date". The one exception may be that any integer is considered a date. To get around

Re: IPad Mini reports "not supported

2017-09-24 Thread Alex Tweedly via use-livecode
According to the Compatibility list in the App store, you are also not compatible with the 12.9-inch Pro, any iPad Air and just simply "IPad". No idea why - but maybe that list will help you see whether it's splash screen sizes or resolution sizes, or what -- Alex. P.S. I had to remove t

Re: Constraining an input field's contents to be a single line.

2017-09-21 Thread Alex Tweedly via use-livecode
On 21/09/2017 16:14, Richard Gaskin via use-livecode wrote: Alex Tweedly wrote: > I do not currently have "mobile text field objects" - all I have > are just standard LC fields, so returninfield is all I need for > the 'return' part of the problem - no need for 'inputReturnKey'. If this is just

Re: Constraining an input field's contents to be a single line.

2017-09-20 Thread Alex Tweedly via use-livecode
bile, but it sounds like it should work -  thanks. Alex. On Wed, Sep 20, 2017 at 3:40 PM, Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: Thanks for the prompt Mike. Short answer - don't know yet, though I suspect I'm going to have to find out. I do n

Re: Constraining an input field's contents to be a single line.

2017-09-20 Thread Alex Tweedly via use-livecode
using LC fields in an app targeted for mobiles, or do I really need to use mobile text fields ? Thanks Alex. On 20/09/2017 17:01, Mike Kerner via use-livecode wrote: did that work, alex? On Mon, Sep 18, 2017 at 4:41 PM, Mike Kerner wrote: If you have a mobile text field object, then have you lo

Re: SivaSiva iOS App Approved - Android Issues/AcceleratedRendering issues

2017-09-19 Thread Alex Tweedly via use-livecode
Sorry - that was meant to go direct, not via the list. My deepest apologies. Alex On 19/09/2017 23:36, Alex Tweedly wrote: On 19/09/2017 18:46, Sannyasin Brahmanathaswami via use-livecode wrote: Accolades don't help me, I prefer Ruthless Critique (some of my brothers here have already issu

Re: SivaSiva iOS App Approved - Android Issues/AcceleratedRendering issues

2017-09-19 Thread Alex Tweedly via use-livecode
On 19/09/2017 18:46, Sannyasin Brahmanathaswami via use-livecode wrote: Accolades don't help me, I prefer Ruthless Critique (some of my brothers here have already issued scathing reviews good line :-) Picky about punctuation in "App News", 10Aug2017, it has button (right on iOS le

Constraining an input field's contents to be a single line.

2017-09-18 Thread Alex Tweedly via use-livecode
I'm sure there must be an easy way I'm missing . he said in hope :-) I want a field to contain a single line of data - i.. no CRs. I've done the easy bit (a handler for returninfield). I can even do the moderate bit -  a 'pastekey' handler, and check for CRs in the clipboard - but that doe

Re: I just posted an Augmented Earth sample stack on LiveCode share

2017-09-06 Thread Alex Tweedly via use-livecode
Thanks Jonathan, looks interesting - thank you for sharing it. I have some problems (MacOS 10.10, Mcbook Pro, LC 9.0DP8 Business) - will email them to you directly. But (perhaps) more generally interesting for the list - I then tried to download the iPad version, and ran into "This app is not

Re: remote debugging just stopped being available.

2017-09-04 Thread Alex Tweedly via use-livecode
17 00:09, Monte Goulding via use-livecode wrote: On 5 Sep 2017, at 9:03 am, Alex Tweedly via use-livecode wrote: I'm sure I've seen this question on the list ... but just can't find the right search term to find it :-) I've been using the remote debugger (on Android, with 9.0.0DP8

remote debugging just stopped being available.

2017-09-04 Thread Alex Tweedly via use-livecode
I'm sure I've seen this question on the list ... but just can't find the right search term to find it :-) I've been using the remote debugger (on Android, with 9.0.0DP8 Business), for the last day or so. And then tonight it just suddenly, for no reason I can think of, stopped asking me if I

Re: TSNet error 6

2017-09-01 Thread Alex Tweedly via use-livecode
On 01/09/2017 21:41, J. Landman Gay via use-livecode wrote: If the web site has a static IP and the Android app uses that instead of a domain name, will that fix it? The app is communicating with a database on the web server. I think the answer is "it will stop you getting a tsnet error (

Re: Subject: Re: LC and OneSignal

2017-09-01 Thread Alex Tweedly via use-livecode
On 01/09/2017 22:44, AndyP via use-livecode wrote: Enhancement Requests added to the Quality Center for Sample Stacks Good ideas ! But I think there are a few more things that need to be done to make this more useful. If I was sure enough about them, I'd just add as enhancement requests -

Re: slow listserv

2017-08-28 Thread Alex Tweedly via use-livecode
I won't fact check it - but I can google-check it :-) Takes between 3 and 22 minutes for light to travel from Earth to Mars - so most of the time, Mark is correct, email can get there and back within 40 minutes. Alex. On 29/08/2017 00:22, Bob Sneidar via use-livecode wrote: Someone fact c

Re: Search Values of Array in "One Go"

2017-08-26 Thread Alex Tweedly via use-livecode
I think regex (or multiple string comparisons) is too limited a way to go. I would want to be able to do numeric comparisons, range comparisons, etc. e.g. x is a number, x<25, 24 < x < 33, etc. -- Alex. On 26/08/2017 05:05, Brian Milby via use-livecode wrote: tElement isn't the part that woul

Re: Search Values of Array in "One Go"

2017-08-23 Thread Alex Tweedly via use-livecode
On 24/08/2017 01:04, Sannyasin Brahmanathaswami via use-livecode wrote: 2) "create an in-memory SQLite Database." this is news! Where do we find docs on this? right now the SQLite data base is in specialFolderPath("documents")/jnanam.sqlite how do you "create in memory? According to

Re: Search Values of Array in "One Go"

2017-08-23 Thread Alex Tweedly via use-livecode
On 23/08/2017 20:07, Sannyasin Brahmanathaswami via use-livecode wrote: Bob, Mike, thanks…"use the dbase" good thought ... So then it comes down to whether doing a query semi-complex query that looks at 50,000 records and uses %like% against 3 columns is faster than iterating loops on a 10

Re: Search Values of Array in "One Go"

2017-08-23 Thread Alex Tweedly via use-livecode
I'm not going to disagree with the other replies Plan A. use your database Plan B. create an in-memory SQLite database. Plan C. use an array, kind of like you are doing. And *only* if there are good reasons for not doing Plans A or B, then : C1. Instead of repeat for each key x in

CouchDB, DayBed, etc.

2017-08-23 Thread Alex Tweedly via use-livecode
Just a quick thank you to Greg for the info on his Daybed library, and for the Udemy course on CouchDB. I found the course fascinating - and I watched it first so I had the overview before watching the Daybed specific talk in Livecode Global. (And I have to admit I watched it all on 1.5x speed

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 ca

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

2017-08-14 Thread Alex Tweedly via use-livecode
/2017 17:25, Mike Kerner via use-livecode wrote: So you don't like &CR& ? Always make me think of K&R - 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,

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 14/08/2017

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 wrote: repeat with i=1 to paramcount()-1 put param(i)&"," after theValue end repeat put param(paramcount()) after theValue Shorter, faster,

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 tBr

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

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 param(2

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 by

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 direc

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 c

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 mo

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 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 2 or 3 platforms (OK, t

Re: httpd library and missed opportunity.

2017-08-01 Thread Alex Tweedly via use-livecode
there or not is becoming 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 wrote: python -m SimpleHTTPServer 8080 This will let you access your standalone by opening your web browser and visiting http://lo

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 br

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 play

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

2017-08-01 Thread Alex Tweedly via use-livecode
ng up to date with the recent libraries in LC 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 mailto:use-livecode@lists.runrev.com>> wrote:

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 wrote: I bet Kevin and M

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 SimpleHTTPS

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 Si

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 create

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

2017-07-30 Thread Alex Tweedly via use-livecode
kos via use-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

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

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

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

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 yo

Re: Finding errors in a standalone

2017-07-14 Thread Alex Tweedly via use-livecode
ad ticked 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 u

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

<    1   2   3   4   5   6   >