Re: Really OT, but i need the help of native English speakers

2022-10-31 Thread Keith Clarke via use-livecode
Hi Mathias, "Persona" often just means "role" or maybe "actor" from a development perspective, if that helps. So, their asking for the role you play in your use cases for their services. I'm guessing the list will include personas such as developer, seller, buyer, sysadmin, end-user. Hope that

Re: RegEx to convert standard date to sql date

2022-09-30 Thread Keith Clarke via use-livecode
If it's always this standard string 'tDate' why not avoid Regex and just set the delimiters of tDate to "/" and then put item 3 of tDate & item 2 of tDate and put item 1 of tDate? Best, Keith > On 30 Sep 2022, at 18:13, Bob Sneidar via use-livecode > wrote: > > I'm trying to convert a date

Re: HTML font size in percentages

2022-05-20 Thread Keith Clarke via use-livecode
Hi Jaque, A lot will depend: 1) Whether the changes in font size within the nested HTML tags have been set locally or ‘more properly' as relative to the root font size of the page in ‘rem’, where 1 rem = 100% of the root font-size). 2) you want a global font-size adjustment or more granular. If

Re: CSV to TSV (was Re: Tools & techniques for one-off consolidation of multiple 'similar' CSV files?)

2022-04-05 Thread Keith Clarke via use-livecode
descript > > Alex. > > On 05/04/2022 17:02, Keith Clarke via use-livecode wrote: >> Hi folks, >> Thanks all for the responses and ideas on consolidating multiple CSV files >> into - much appreciated. >> >> Ben - Thank you for sharing your working recipe.

Re: CSV to TSV (was Re: Tools & techniques for one-off consolidation of multiple 'similar' CSV files?)

2022-04-05 Thread Keith Clarke via use-livecode
This code sits early in the process of preparing CSV file data (from files that I didn’t create, so their content is unknown) into TSV text for onward processing. So, the logic here is attempting to address the very concerns that you raise, albeit in reverse order i.e. - remove any tab

CSV to TSV (was Re: Tools & techniques for one-off consolidation of multiple 'similar' CSV files?)

2022-04-05 Thread Keith Clarke via use-livecode
Hi folks, Thanks all for the responses and ideas on consolidating multiple CSV files into - much appreciated. Ben - Thank you for sharing your working recipe. This lifted my spirits as it showed I was on the right path (very nearly!) and you moved me on a big step from where I was stuck. My

Tools & techniques for one-off consolidation of multiple 'similar' CSV files?

2022-04-04 Thread Keith Clarke via use-livecode
Hi folks, I need to consolidate a couple of hundred CSV files of varying sizes (dozens to hundreds of rows) and column structures (some shared columns but many unique), into a single superset dataset that comprises all data from all files. There are too many files and columns to attempt a

Re: Getting Webpage Information

2022-03-27 Thread Keith Clarke via use-livecode
Hi Rick, Maybe try 'put the text of widget "youtBrowserName" into field "yourFieldName" ' to get the plain text? If you need the html source, try '...the htmlText' of widget... Best, Keith > On 27 Mar 2022, at 19:01, Rick Harrison via use-livecode > wrote: > > I have been playing around

Re: How to access scripts on a modal card that is stuck / not visible?

2022-03-18 Thread Keith Clarke via use-livecode
Thanks all for the hints and tips. I was able to access the guilty scripts from the message bar using edit script of Thanks Jaque! As this is just for a personal utility, I’ve made the Browser widget (which is only used for login) act as a rough and ready ‘modal dialogue’... - Browser widget

How to access scripts on a modal card that is stuck / not visible?

2022-03-18 Thread Keith Clarke via use-livecode
Hi folks, Experimenting with OAuth, I built a “Login” card containing a Browser widget that allows me to access OAuth to log onto an online service. Once authorised, the script on the Browser Widget finished with 'go card “Home”’ where I’m building out some utilities to work with the web

Re: Browser widget - follow redirects setting?

2022-01-27 Thread Keith Clarke via use-livecode
page. > The only thing i noticed is, that the URL of the widget kept to be the URL of > the account page although the login page was opened/displayed. > > Regards, > Matthias > >> Am 26.01.2022 um 12:24 schrieb Keith Clarke via use-livecode >> : >> >> Hi fol

Browser widget - follow redirects setting?

2022-01-26 Thread Keith Clarke via use-livecode
Hi folks, Is there any hidden / undocumented setting for the Browser widget that will allow it to follow redirects? Using launch URL tURL opens the default browser on my machine and - if I’m not logged into the server - redirects to a login page, the address of which I can see in the browser’s

PDW widget: get the rect of the hilitedRange

2022-01-10 Thread Keith Clarke via use-livecode
Hi folks, Please can anyone advise how to get the rendered rectangle of highlighted text in the PDF widget…? I can successfully get the first word from the page text using something like: put pPageNum into tHilitedArray["from"]["page”] // = 1 put pPageNum into tHilitedArray["to"]["page”] // = 1

Re: PDF Viewer widget: expected experience from set the currentDestination?

2022-01-05 Thread Keith Clarke via use-livecode
scripted to work - so I think I’ll need to start looking elsewhere, outside of LC for a mechanism to access PDF text & links. Please tell me I’m wrong and am missing something obvious? Best, Keith > On 23 Dec 2021, at 09:13, Keith Clarke via use-livecode > wrote: > > Thanks

Re: PDF Viewer widget: expected experience from set the currentDestination?

2021-12-23 Thread Keith Clarke via use-livecode
urrentDestination of widget “pdf" to tDest > > Cheers > > Monte > >> On 23 Dec 2021, at 4:24 am, Keith Clarke via use-livecode >> wrote: >> >> Hi folks, >> Please can anyone share the response/experience to be expected in the PDF >>

PDF Viewer widget: expected experience from set the currentDestination?

2021-12-22 Thread Keith Clarke via use-livecode
Hi folks, Please can anyone share the response/experience to be expected in the PDF Viewer widget after a successful call to set the currentDestination? I have the widget successfully changing currentPage when set but I was hoping to see some visual feedback with on a change of

Re: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-21 Thread Keith Clarke via use-livecode
t; >> https://github.com/bwmilby/DocEditorPlus/blob/master/DocEditorPlus_Scripts/stack_DocEditorPlus_widget_id_1008.livecodescript >> >> You should not need to use a case statement. In my case the value was HTML >> in one case but plain text otherwise. >> >> It is

Re: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-21 Thread Keith Clarke via use-livecode
Thanks for the response & resource link, Brian - much appreciated. It’s good to know that I wasn’t barking up the wrong tree (view!), regarding the need to handle the returned hilitedElement array comma-delimited keys list. I’m new to arrays (and indeed most development concepts), so it was a

Re: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-21 Thread Keith Clarke via use-livecode
l[2]][tLevel[3]] into field "Test" break end switch end hiliteChanged I’m sure the experienced developers here would find cleaner ways to achieve this but this hack works and I can get back to evaluating the data accessible from the PDF widget! :) Best, Keith > On 20 Dec

Re: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-20 Thread Keith Clarke via use-livecode
> contains an unspecified "put". Without a destination for the "put" it will go > automatically to the message box. If you want to work with it, you'd need to > put the value into a variable. > > What's the purpose of the concatenation, and what do you want to do

How to get a hilitedElement value from a Tree View's arrayData?

2021-12-20 Thread Keith Clarke via use-livecode
Hi folks, I’m struggling to access the value from a Tree View widget’s data array as the hilitedElement changes - though I think my issue is more about working with arrays than the Tree View widget. The following test script (on the Tree widget) successfully gets the Tree’s arrayData into

Re: PDF Viewer widget - how to enable interaction?

2021-12-09 Thread Keith Clarke via use-livecode
set the currentDestination of me to pAction > end if > end linkClicked > >> On 9 Dec 2021, at 2:01 am, Keith Clarke via use-livecode >> wrote: >> >> Hi folks, >> Can anyone share any experiences with the PDF Viewer widget that’s available >> via the old

Re: JSON to Datagrid

2021-12-08 Thread Keith Clarke via use-livecode
Hi Skip, I don’t use Datagrids but have used a two-step process to get JSON into the Tree widget and a similar process may provide a direction of travel to test…? 1. JSON-to-array https://lessons.livecode.com/m/4071/l/1303394-how-to-read-in-data-from-a-json-file 2. Setting the array data of

PDF Viewer widget - how to enable interaction?

2021-12-08 Thread Keith Clarke via use-livecode
Hi folks, Can anyone share any experiences with the PDF Viewer widget that’s available via the old Business Edition or Pro Pack subscription? I’m testing this on LC 9.6.5 with a Pro subscription on Mac 11.6. Following the PDF guide https://livecode.com/resources/guide/ I’ve been able to load

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-02 Thread Keith Clarke via use-livecode
I came to Livecode from lightweight website hackery - cobbling together HTML & CSS as a non-coder (using W3schools guidance for every live of javascript). I was (and still am) relieved by the higher-level English-like language of Livecode. None of the (dozens of) utilities I’ve created for my

Re: Text encoding.

2021-09-02 Thread Keith Clarke via use-livecode
I may be wrong but I thought Mac’s ‘Plain Text’ just meant it’s a ‘text.txt’ MIME type file, which could be encoded as ASCII, UTF-8, UTF-16 or UTF-32, rather than a 'text.rtf’ rich text MIME type file, with the embedded markup for styling, such as bold, italic, etc. The '’ at the start of the

Re: Storing json - mergeJSON, textdecode and "\u00a0”

2021-08-26 Thread Keith Clarke via use-livecode
Not sure if it’s related but I had issues recently with processing JSON on Mac with PHP and attempts to force encoding/decoding of the JSON didn’t work. It was an encoding issue caused by the JSON strings being served into HTML pages that lacked an explicit UTF-8 tag. Adding '> replace

Re: How to scale the content of the Browser Widget

2021-07-14 Thread Keith Clarke via use-livecode
An idea extending Ralph's suggestion to use html, along with styling to do the heavy lifting rather than JavaScript. A div with a background image might do the trick... Image title ...where: ... 'vh' is viewport height units (as percentage) and '2rem' leaves some space for the image title,

Re: Browser Widget Issue

2021-05-25 Thread Keith Clarke via use-livecode
Hi David, Pass on the framework, but regarding the page… FWIW from the message box, I was able to set the url of widget ‘Browser’ to "https://obs.ninja” (apparently empty...) but then put the htmltext of widget “Browser” to see that there is indeed some content. So, it’s not scripting itself

Re: Spurious characters from html files - text encoding issues?

2021-05-21 Thread Keith Clarke via use-livecode
hen doing the same again - possibly to a different format - > when you output the CSV, should see you clear. > > HTH, > > Ben > > > On 17/05/2021 15:58, Keith Clarke via use-livecode wrote: >> Thanks Ben, that’s really interesting. It never occurred to me t

Re: Spurious characters from html files - text encoding issues?

2021-05-17 Thread Keith Clarke via use-livecode
, then again UTF-8 is a good default. If it's something much older, you > might need to use "CP1252" or similar. > > HTH, > > Ben > > > On 17/05/2021 09:28, Keith Clarke via use-livecode wrote: >> Hi folks, >> I’m using LiveCode to summarise tex

Spurious characters from html files - text encoding issues?

2021-05-17 Thread Keith Clarke via use-livecode
Hi folks, I’m using LiveCode to summarise text from HTML documents into csv summary files and am noticing that when I extract strings from html documents stored on disk - rather than visiting the sites via the browser widget & grabbing the HTML text - weird characters being inserted in place of

Re: use-livecode Digest, Vol 212, Issue 13

2021-05-11 Thread Keith Clarke via use-livecode
I will do when I attempt to climb that new learning curve! Best, Keith > On 12 May 2021, at 06:17, Brian K. Duck via use-livecode > wrote: > > Can you share more about your standalone settings to make this happen? > > Sent from my iPad, > Brian > >> On May 11, 2021, at 12:03 PM,

Re: LiveCode convert seconds to dateItems - year is out by 19?

2021-05-11 Thread Keith Clarke via use-livecode
he base date on the mac vs the base date of > live code? > > I believe the base date on a mac is 1970, not sure what it is in live code? > > Terry > >> On 11 May 2021, at 13:59, Keith Clarke via use-livecode >> wrote: >> >> Thanks Martin & Alex

Re: LiveCode convert seconds to dateItems - year is out by 19?

2021-05-11 Thread Keith Clarke via use-livecode
ur tCreateDate variable from. Maybe there was a > miscalculation there. > > Martin > >> On May 11, 2021, at 6:44 AM, Keith Clarke via use-livecode >> wrote: >> >> Hi folks, >> What am I doing wrong with convert tCreateDate from seconds to dateItems… >&g

LiveCode convert seconds to dateItems - year is out by 19?

2021-05-11 Thread Keith Clarke via use-livecode
Hi folks, What am I doing wrong with convert tCreateDate from seconds to dateItems… I’m pulling the long files of files I created yesterday on a Mac and attempting to convert the creation date. Whatever date type I choose, LiveCode reckons yesterday was in the year 2040. Did I oversleep?

Re: Dynamic scripted nested array keys?

2021-04-24 Thread Keith Clarke via use-livecode
;> the path ends in an array instead of the content of an array element >>> else >>> put item 1 of pPath into tKey -- get the key of element in the >>> currnet path >>> delete item 1 of pPath-- remove it from the current path, >>> so the

Dynamic scripted nested array keys?

2021-04-24 Thread Keith Clarke via use-livecode
Hi folks, Inspired by Jaque’s (working - thank you!) response to my question “Show Tree widget row contents on hover” I’ve isolated the final piece of that puzzle that leaves me baffled. Specifically, can LiveCode accept a dynamically built key for a nested multi-dimensional array? Copy the

Re: Show Tree widget row contents on hover?

2021-04-23 Thread Keith Clarke via use-livecode
re trying to do. Are you trying to put the items of >> a list into a tree view widget? >> >> put the arrayData of widget "Tree View" into tDataA >> put item 1 of tList into tDataA [1] >> put item 2 of tList into tDataA [2] >> -- etc... >> set

Re: Show Tree widget row contents on hover?

2021-04-23 Thread Keith Clarke via use-livecode
res the user to click on the inspect icon of the truncated array > element element to display the full element. > > I agree that it would be nice to do this with a hover. > > Henry > >> On Apr 23, 2021, at 9:10 AM, Keith Clarke via use-livecode >> wrote: >> &g

Show Tree widget row contents on hover?

2021-04-23 Thread Keith Clarke via use-livecode
Hi folks, I’m experimenting with a tree widget and indentation means that row content gets truncated, so I’m wondering if there is any simple way to show the current row’s content in a tooltip on hover? The dictionary doesn’t mention any mouse-related messages and the highlightedElement

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
found > something that works for your situation. > > Sent from my iPhone > >> On Jan 21, 2021, at 9:38 AM, Keith Clarke via use-livecode >> wrote: >> >> Thanks Brian. I looked at matchChunk in the dictionary & it seems to return >> a boolean, rat

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
ntil char <> tab. :) Best, Keith > On 21 Jan 2021, at 14:03, Brian Milby via use-livecode > wrote: > > You could also use matchChunk with a regular expression that excludes the tab > character. > > Sent from my iPhone > >> On Jan 21, 2021, at 7:14 AM,

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
Ah yes indeed, I’d forgotten I could test with 'put not(tab)’ in the message box - that certainly proves the syntax was wrong! :-) Best, Keith > On 21 Jan 2021, at 10:49, Dick Kriesel via use-livecode > wrote: > > > >> On Jan 21, 2021, at 2:34 AM, Keith Clarke via us

Re: How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
021, at 10:25, Dick Kriesel via use-livecode > wrote: > > >> On Jan 21, 2021, at 1:30 AM, Keith Clarke via use-livecode >> mailto:use-livecode@lists.runrev.com>> wrote: >> >> Please can anyone advise on the correct syntax for trying to find the firs

How to find the offset of the first character in a string that's not a tab?

2021-01-21 Thread Keith Clarke via use-livecode
Hi folks, Please can anyone advise on the correct syntax for trying to find the first non-tab character offset in a string, as 'offset(not(tab), tString)’ seems to be returning strange results - i.e. a number but not the correct one? Best, Keith

Re: How to render a two-dimensional array correctly with empty/missing 'cell' elements?

2020-12-30 Thread Keith Clarke via use-livecode
ray[I] & "," after tPrintLine >end repeat ># insert a return after each row we have written to tPrintLine >put return after tPrintLine > end repeat > return tPrintLine > end displayArray > > Alex > > On 30/12/2020 13:48, Keith Clarke via

How to render a two-dimensional array correctly with empty/missing 'cell' elements?

2020-12-30 Thread Keith Clarke via use-livecode
Hi folks, I’m using LiveCode to parse a set of xml files with varying subsets of tags (dmarc reports) into a CSV file. The utility iterates through the files in the folder and the lines of the files, to identify unique opening tags and their content, all of which get parsed into an array: -

Re: filter

2020-11-19 Thread Keith Clarke via use-livecode
The chronicles of regex - a potential blockbuster there, Bob! :-) Best, Keith > On 19 Nov 2020, at 16:49, Bob Sneidar via use-livecode > wrote: > > No one escapes the lair of the Regex Demon. Except for maybe Riddick. > > Bob S > > > On Nov 19, 2020, at 8:

Re: filter

2020-11-19 Thread Keith Clarke via use-livecode
Ha, yes I understand that desire - and Mark’s one-character escape trick beats my hack to bypass the lair of the regex demon! :D Best, Keith > On 19 Nov 2020, at 15:51, Klaus major-k via use-livecode > wrote: > > Hi Keith, > >> Am 19.11.2020 um 16:38 schrieb Keith Cl

Re: filter

2020-11-19 Thread Keith Clarke via use-livecode
Hi Klaus, Maybe iterate the lines - untested... repeat for each line l in fld 1 if and( offset( “[“, l) > 0 , offset(“]”, l) > 0 ) then put line l of fld 1 into tList end repeat put tList Best, Keith > On 19 Nov 2020, at 15:19, Klaus major-k via use-livecode > wrote: > > Hi all, > > I

Re: Query large CSV file as a data source?

2020-11-03 Thread Keith Clarke via use-livecode
r 1 lines > > > Just a thought. > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 03.11.2020 um 13:14 schrieb Keith Clarke via use-livecode >> : >> >> Hi folks, >> I’ve a 3GB CSV file with 18M rows from which I need

Query large CSV file as a data source?

2020-11-03 Thread Keith Clarke via use-livecode
Hi folks, I’ve a 3GB CSV file with 18M rows from which I need to create a subset CSV file for the rows containing tString. The following script results in LiveCode becoming unresponsive, so I’m wondering if I’m missing an obvious trick or what alternative approach I might take... on mouseUp

Re: How to divide card with/in 3 vertical lines?

2020-10-28 Thread Keith Clarke via use-livecode
Are you able to use 'CardWidth*4/3' to get 1.33 recurring? Best, Keith > On 28 Oct 2020, at 20:16, William de Smet via use-livecode > wrote: > > Hi Scott, > > Line 3 should be at loc 768,384 but is now at loc 770,384 (stack 1024x768). > This is because 'cardWidth/1.33' is not precise enough?

Re: Correct use of string A 'is in' string B?

2020-10-14 Thread Keith Clarke via use-livecode
a particular reason why I spotted > this. I think we have all been there at one time or another. > > Best regards > Tore > >> 14. okt. 2020 kl. 13:22 skrev Keith Clarke via use-livecode >> : >> >> Oh, dear - that's embarrassing! Thanks Tore - time to take a bre

Re: Correct use of string A 'is in' string B?

2020-10-14 Thread Keith Clarke via use-livecode
ccess_code. May this be the reason for your problems? > > Best regards > Tore Nilsen > >> 14. okt. 2020 kl. 13:00 skrev Keith Clarke via use-livecode >> : >> >> Hi folks, >> Am I misreading the docs and abusing the 'is in' logic or syntax here...? >> >&

Correct use of string A 'is in' string B?

2020-10-14 Thread Keith Clarke via use-livecode
Hi folks, Am I misreading the docs and abusing the 'is in' logic or syntax here...? In my test case, the browser widget URL takes the form (truncated) https://somewhere.com/callback.lc#access_token=0123456789;... This is visible in the field "ResponseURL" but the if statement is not firing.

Re: LiveCode server IDE

2020-10-13 Thread Keith Clarke via use-livecode
h a few years ago with email problems, I > would probably never have strayed, but it's kind of good to know that hostM > is there as an alternate source in case I need it :-) > > Alex. > > On 12/10/2020 15:49, Keith Clarke via use-livecode wrote: > >> Thanks for the

Re: LiveCode server IDE

2020-10-12 Thread Keith Clarke via use-livecode
and html(when Dreamweaver is just to much). > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of Keith Clarke via use-

LiveCode server IDE

2020-10-12 Thread Keith Clarke via use-livecode
Hi folks, What is the current state of the art regarding LiveCode server IDE - searching around, this seems down to personal preference of text editor plus FTP? I'm Mac-based and looking to experiment with web services. Thanks and regards, Keith Sent from my iPad

Re: Basic question about behaviors

2020-08-26 Thread Keith Clarke via use-livecode
Certainly best to avoid any made backwards. > On 26 Aug 2020, at 15:20, Martin Koob via use-livecode > wrote: > > Is there a rule regarding puns? > > Martin > >> On Aug 26, 2020, at 9:30 AM, Paul Pystcat via use-livecode >> wrote: >> >> ROFL >> >> THAT was gouda! >> >> (I know, I know!

Re: Recommended (simple) Linux distro for Livecode server home dev/test?

2020-05-10 Thread Keith Clarke via use-livecode
Great, thanks - to all who responded - nothing quite like a shortlist of one to ease decision-making! :) Time to have a play... Best, Keith.. >> On 9 May 2020, at 20:01, Richard Gaskin via use-livecode >> wrote: >> >> Keith Clarke wrote: >> Hi folks, >> Which distro(s) would you recommend

Recommended (simple) Linux distro for Livecode server home dev/test?

2020-05-09 Thread Keith Clarke via use-livecode
Hi folks, Which distro(s) would you recommend for a Linux newbie as the easiest way to repurpose an old PC, Mac Laptop or Mini to host Livecode Server for lightweight ‘LAMP/LAML' dev/test dabbling? I’ve never had a Linux desktop machine and server-wise, never had to delve below C-Panel & WHM

Re: Making my book free until the end of May

2020-03-18 Thread Keith Clarke via use-livecode
Hi Andre, I wasn’t aware that you’d written that book - but a spooky coincidence, as last weekend I’d just started revisiting RevIgniter for LiveCode server and as a hobbyist, was struggling to get my head around MVC & mapping to (limited knowledge of) LiveCode concepts. So, good timing and I

Re: Can the Browser widget access dev tools?

2020-03-13 Thread Keith Clarke via use-livecode
and you can’t set it to stay > up and stay throttled. Send a feature request to google. > > All the best > > Sean Cole > Pi Digital > > >> On 13 Mar 2020, at 10:55, Keith Clarke via use-livecode >> wrote: >> >> Hi folks, >> I understand

Can the Browser widget access dev tools?

2020-03-13 Thread Keith Clarke via use-livecode
Hi folks, I understand that the browser widget uses the platform’s default browser engine. The (default?) feature set seems to be limited - e.g. no right-click (on Mac). There don’t seem to be obvious entries in the dictionary concerning developer tools/menu/option. Please can anyone confirm

Re: View XML file in Tree View widget - worth the effort?

2019-06-05 Thread Keith Clarke via use-livecode
snippet from Trevor DeVore converts between XML and LiveCode arrays: >> https://gist.github.com/trevordevore/5584753 >> >> On Tue, 4 Jun 2019 at 18:57, Keith Clarke via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>> Hi folks, >>>

Re: View XML file in Tree View widget - worth the effort?

2019-06-05 Thread Keith Clarke via use-livecode
rts between XML and LiveCode arrays: > https://gist.github.com/trevordevore/5584753 > > On Tue, 4 Jun 2019 at 18:57, Keith Clarke via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Hi folks, >> Is parsing an XML file into a LiveCode TreeView widget a sensibl

View XML file in Tree View widget - worth the effort?

2019-06-04 Thread Keith Clarke via use-livecode
Hi folks, Is parsing an XML file into a LiveCode TreeView widget a sensible (and easy) approach to render it more human-readable to understand it’s structure & content, etc., for potential onward processing / transformation? If so, can anyone please share the current state of the art for

Re: LC Server on OSX Mojave - Local host & sites

2019-04-05 Thread Keith Clarke via use-livecode
Thanks Bob - those articles are much more recent than those I was referencing, so it looks like I have a weekend of experimentation lined up! Best Keith > On 4 Apr 2019, at 11:29, bob--- via use-livecode > wrote: > > There are changes in how things work in 10.14.x of Mac OS. When I setup my

Re: LC Server on OSX Mojave - Local host & sites

2019-04-03 Thread Keith Clarke via use-livecode
d this is >> why you purchased MAMP PRO, to use it as a live server, then we >> can offer you a refund.” >> >> That has put me back to square one. >> >> If anyone can work through the SSL problem and get it working under >> macOS 10.14.4 Mojave, I would be happy to

LC Server on OSX Mojave - Local host & sites

2019-04-02 Thread Keith Clarke via use-livecode
Hi Folks, Is there a recipe more recent than the LC Server on OSX lesson that covers the Mohave Apache environment setup to recognise Sites URLs in localhost - now that Apple has hidden point & click web sharing facilities? I have localhost working but get "The requested URL

Re: Feature request: merge function!

2019-01-18 Thread Keith Clarke via use-livecode
I don’t know the setting but might a line or two of preprocessing allow LC to replace the (specific) strings in the template with curly brackets into ones with square brackets for processing? Best, Keith > On 18 Jan 2019, at 09:33, Richard Gaskin via use-livecode > wrote: > > David Bovill

Re: Livecode Server GoDaddy

2019-01-02 Thread Keith Clarke via use-livecode
; -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of Keith Clarke via use-livecode > Sent: Wednesday, January 02, 2019 2:48 PM > To: How to use LiveCode > Cc: Keith Clarke > Subject: Re: Livecode Server GoDaddy > > Ra

Re: Livecode Server GoDaddy

2019-01-02 Thread Keith Clarke via use-livecode
Ralph, I gave up on getting LCS running on a GoDaddy VPS back in the summer as it was too old at CentOS 6 with dependencies on glibc failing - I was getting 500 errors IIRC. Good luck! Keith > On 2 Jan 2019, at 19:42, Ralph DiMola via use-livecode > wrote: > > I keep getting 500 errors. I

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
e name of your library > initialisation handler to “rigRunInitialteslibConfig”. > > > Ralf > > > >> On 30. Nov 2018, at 18:26, Keith Clarke via use-livecode >> wrote: >> >> Thanks Ralf. Renaming the library got past that library load error. Howe

Re: Setting hidden of lines very slow

2018-11-30 Thread Keith Clarke via use-livecode
In jQuery it’d be something like $j(‘div #id’).text(); selecting the field’s enclosing div by ID or class. Best, Keith > On 30 Nov 2018, at 17:43, Bob Sneidar via use-livecode > wrote: > > And how much would the Javascript training and certification cost be to learn > how to do it? ;-) >

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
uld work as expected. > There is a naming convention for library files, i.e. > camel case is not allowed, but it seems this is not > mentioned in the user guide. > Sorry for the hassle. Will fix that. > > > Ralf > >> On 30. Nov 2018, at 15:23, Keith Clarke via use-livec

Re: Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
to 4 and check the > log file in case something goes wrong. > > > Ralf > >> On 30. Nov 2018, at 10:32, Keith Clarke via use-livecode >> wrote: >> >> Folks, >> I’m struggling to get my head around revIgniter / MVC concepts and map basic >&g

Re: LiveCode equivalent to 'cron' for automated background functions?

2018-11-30 Thread Keith Clarke via use-livecode
Thanks Andre - good call. Following others’ reminders of the single-threaded nature of LCS, I’m trying to rethink data flows as on-demand, to avoid all background tasks. Best, Keith > On 30 Nov 2018, at 12:10, Andre Alves Garzia via use-livecode > wrote: > > Keith, > > >> The examples in

Troubleshooting revIgniter library functions

2018-11-30 Thread Keith Clarke via use-livecode
Folks, I’m struggling to get my head around revIgniter / MVC concepts and map basic LC desktop concepts to the right places in LCS + revIgniter. (I’m still searching for a 'Rosetta Stone’ to translate between these two worlds!) My use case is to share public FAQs from specific pages

Re: LiveCode equivalent to 'cron' for automated background functions?

2018-11-29 Thread Keith Clarke via use-livecode
Thanks for the really useful responses Richard, Alex & Tom - great to know the art of the possible. I think most of my current use cases will be supported by send with time, as they’re more lightweight ’tick-over’ activities than big batch jobs. Best, Keith > On 28 Nov 2018, at 21:51, Richard

Re: LiveCode equivalent to 'cron' for automated background functions?

2018-11-28 Thread Keith Clarke via use-livecode
>> get the secondary process part working. >> >> On Wed, Nov 28, 2018 at 11:15 AM Keith Clarke via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>> Folks, >>> Please can anyone steer me towards the dictionary keyword equivalent

LiveCode equivalent to 'cron' for automated background functions?

2018-11-28 Thread Keith Clarke via use-livecode
Folks, Please can anyone steer me towards the dictionary keyword equivalent to ‘cron' jobs for initiating time-based background functions, along the lines of… on TimeAt pHour pMinute pSecond do stuff end TimeAt Thanks Keith ___ use-livecode

Re: LiveCode server with revIgniter - new controller pages get 404 errors?

2018-11-28 Thread Keith Clarke via use-livecode
g late. Glad you found > the source of the issue, and thanks for the > suggestion to improve the docs, changed > the user guide accordingly. > > > Thanks again > > Ralf > > >> On 28. Nov 2018, at 11:03, Keith Clarke via use-livecode >> wrote: >> &g

Re: LiveCode server with revIgniter - new controller pages get 404 errors?

2018-11-28 Thread Keith Clarke via use-livecode
Fixed shared for future reference…. This issue was down to me missing the need for a required change to system/application/config/config.lc when using .htaccess to hide the index.lc page from the URIs structure. This setting is clearly documented within the config.lc file, in the 'Index

LiveCode server with revIgniter - new controller pages get 404 errors?

2018-11-27 Thread Keith Clarke via use-livecode
Folks, Can anyone using LC Server with revIgniter share any tips on why new controller pages might throw 404 errors, even if they contains the content from the (working) welcome.lc controller or blog.lc example from the revIgniter docs…? https://revigniter.com/userGuide/general/controllers.html

Re: How to extract an entire element from an HTML file?

2018-11-26 Thread Keith Clarke via use-livecode
to creating a library wrapper - indeed, I’ll have to Google what one is! :-) Best, Keith > On 26 Nov 2018, at 13:42, Trevor DeVore via use-livecode > wrote: > > On Mon, Nov 26, 2018 at 3:30 AM Keith Clarke via use-livecode < > use-livecode@lists.runrev.com> wrote: >

Re: How to extract an entire element from an HTML file?

2018-11-26 Thread Keith Clarke via use-livecode
; On 25 Nov 2018, at 13:55, Paul Dupuis via use-livecode > wrote: > > You could do this with revXML (see teh dictionary), but it is not a > single call. > > > On 11/25/2018 7:12 AM, Keith Clarke via use-livecode wrote: >> Folks, >> Can anyone please guide me t

How to extract an entire element from an HTML file?

2018-11-25 Thread Keith Clarke via use-livecode
Folks, Can anyone please guide me towards an LiveCode feature(s) that might provide the equivalent to the javascript jQuery library’s "jQuery(‘.class’).html();" mechanism that allows one to select an entire element’s content (including nested elements) from the page DOM? I have experimented

Re: LiveCode Server syntax to call function in CGI folder

2018-11-23 Thread Keith Clarke via use-livecode
our main script. > > Regards, > > Matthias > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > >> Am 23.11.2018 um 21:21 schrieb Keith Clarke via use-livecode >> : >> >

LiveCode Server syntax to call function in CGI folder

2018-11-23 Thread Keith Clarke via use-livecode
Folks, Can anyone please steer me to any docs explaining the (relative?) path syntax needed to traverse from a public file 'public_html/index.lc' to more private resources in 'public_html/CGI’ folder, to: 1: Require CGI/myFile.lc? 2: Call myFunction() in CGI/myFile.lc? The LC Server

Re: How to diagnose browser widget JS handlers failing silently?

2018-11-23 Thread Keith Clarke via use-livecode
Thanks for the response, Herman. In the error state I’m getting, the LC JShandler script parameters are empty and so far, I’m having no luck with getting toString(); to stringify javascript objects such that LC doesn’t fail silently. Indeed, your test scripts fail in my situation - so I’m

How to diagnose browser widget JS handlers failing silently?

2018-11-14 Thread Keith Clarke via use-livecode
Folks, Is there any way to see the raw message that arrive in LC from javascripts in a browser widget? I’m getting silent failures on some JSHandlers and would like to determine whether it’s JS failing to send (unlikely as they’re variations on working themes) or LC rejecting the inbound

Re: LiveCoders from London, lets meet!

2018-11-09 Thread Keith Clarke via use-livecode
Andre, I’m based near London and would be happy to meet in Town & buy you a beer. :-) Best, Keith > On 9 Nov 2018, at 17:04, Andre Alves Garzia via use-livecode > wrote: > > Hey Friends, > > Who here is from London or nearby and would be interested in regular meetups? > We could meet once a

Re: Where is the declarative border color setting in the property

2018-11-09 Thread Keith Clarke via use-livecode
D’Oh - of course, in LC the basic 'border fill' = CSS ‘border: color' (as shown in the clearly 'not-quite-idiot-proof' tool-tip!). Thanks! Sorry to waste your time - I’m jumping between LC, Javascript and CSS and my Babel Fish has clearly fallen asleep or out…

Re: Where is the declarative border color setting in the property

2018-11-09 Thread Keith Clarke via use-livecode
Thanks Bernd. That’s exactly what I was expecting, but see neither - 'Border fill' is the only Border color property I see in the list?!? Could I have accidentally set something to hide this? Best, Keith > On 9 Nov 2018, at 11:13, Niggemann, Bernd via use-livecode > wrote: > > Keith, > >

Where is the declarative border color setting in the property inspector?

2018-11-09 Thread Keith Clarke via use-livecode
Folks, Am I missing something - has border color been removed from the Property Inspector’s ‘colors’ tab or has one always had to code this? Thanks, Keith ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Do javascript function in browser widget?

2018-11-06 Thread Keith Clarke via use-livecode
Thanks for the link, Herman - some interesting use cases there …once I’ve got the connectivity in place. :-) Best, Keith > On 6 Nov 2018, at 10:42, hh via use-livecode > wrote: > > Browser widget usage examples: > http://forums.livecode.com/viewtopic.php?f=93=29018 > >

Re: Do javascript function in browser widget?

2018-11-06 Thread Keith Clarke via use-livecode
Thanks Andre for the detailed response and HTTPD library steer - that’s new to me so I shall review with interest. :-) I’m not in control of the pages, so that may be more useful than my first experiments - which were to download the page content into LC, add some markup and load the HTML text

  1   2   >