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 on

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

2020-05-09 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 fo

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!

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: LiveCode server IDE

2020-10-12 Thread Keith Clarke via use-livecode
for > LC builder 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 K

Re: LiveCode server IDE

2020-10-13 Thread Keith Clarke via use-livecode
;t had a bad patch 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: > >

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

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

2020-10-14 Thread Keith Clarke via use-livecode
ss_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...?

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

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?

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 pBut

Re: Query large CSV file as a data source?

2020-11-03 Thread Keith Clarke via use-livecode
le for 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 nee

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

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

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

2020-12-30 Thread Keith Clarke via use-livecode
put pArray[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 C

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

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 v

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

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 propert

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

Re: Show Tree widget row contents on hover?

2021-04-23 Thread Keith Clarke via use-livecode
hat you are 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.

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 but

Re: Dynamic scripted nested array keys?

2021-04-24 Thread Keith Clarke via use-livecode
widget, but this is if >>> 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 curr

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

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

2021-05-11 Thread Keith Clarke via use-livecode
eateDate 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

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

2021-05-11 Thread Keith Clarke via use-livecode
ith the 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 &

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, use-livecod

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: Spurious characters from html files - text encoding issues?

2021-05-17 Thread Keith Clarke via use-livecode
ething reasonably > modern, 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

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

2021-05-21 Thread Keith Clarke via use-livecode
ng the process when you load them back in > to process; and then 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

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 t

Re: How to scale the content of the Browser Widget

2021-07-13 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: 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 "\u00a0”

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 d

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

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 var

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 da

Re: PDF Viewer widget - how to enable interaction?

2021-12-09 Thread Keith Clarke via use-livecode
t 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

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 tTree

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

2021-12-20 Thread Keith Clarke via use-livecode
ecause the last line > 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 concatenati

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

2021-12-21 Thread Keith Clarke via use-livecode
tLevel[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

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 go

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

2021-12-21 Thread Keith Clarke via use-livecode
sn’t obvious. >> >> 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 otherw

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 currentDestinatio

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

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

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

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

Re: Browser widget - follow redirects setting?

2022-01-27 Thread Keith Clarke via use-livecode
he login 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 >> : >>

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 service

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 si

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 with

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 manual

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

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 charac

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

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

LiveCode server as OAuth2 client for APIs?

2023-12-06 Thread Keith Clarke via use-livecode
Hi folks, Does anyone have experience of using OAuth2 with LiveCode server, to log into third-party data sources for API access? I am experimenting with a web based utility app that runs on LiveCode server & RevIgniter and I need to be able to log into a Salesforce.com

Re: LiveCode server as OAuth2 client for APIs?

2023-12-07 Thread Keith Clarke via use-livecode
er, your message has prompted me to change the > rigFormOpen() function so that you can override the > current URL with the value of an optional action > attribute included in the second parameter. > So, if you like, you can download the modified > version of the form helper at: &

LiveCode server IDE - the current state of the art?

2018-07-19 Thread Keith Clarke via use-livecode
Hi folks, I’m attempting to engage with LiveCode Server after a couple of years since I last played - when the approach was to roll your own IDE (i.e. pick a text editor) and optionally use the RevIgnitor framework. I’d be obliged if anyone could please update me on the current state of the art

Re: LiveCode server IDE - the current state of the art?

2018-07-20 Thread Keith Clarke via use-livecode
ut Atom for small changes, but falling back to emacs > when there are larger or complex changes to do). > > Only problem I've run into with this approach is that sometimes I will > edit and test a file (or a number of files)? locally, and forget to > upload one or some :-(? So I

OAuth2 Library troubleshooting

2018-07-20 Thread Keith Clarke via use-livecode
Hi folks, I’m trying to access the Salesforce.com REST API from LiveCode via their UserAgent flow https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_user_agent_oauth_flow.htm

Re: OAuth2 Library troubleshooting

2018-07-20 Thread Keith Clarke via use-livecode
fJkZEqxbjaFbberKGk > 3 > 8v8AnYrvChG4qJbQo8&refresh_token=5Aep8614iLM.Dq661ePDmPEgaAW9Oh_L3JKkDpB4xR > 4 > eb54_pZfVti1dPEk8aimw4Hr9ne7VXXVSIQ%3D%3D&expires_in=7200&state=mystate > > I hope this helps > > Sean Cole > Pi Digital > >> On 20 Jul 2018, at 17:11, Ke

Re: LiveCode server IDE - the current state of the art?

2018-07-22 Thread Keith Clarke via use-livecode
" & tFile) into tt > else > put ("libraryscripts/" & tFile) into tt > end if > start using stack tt > end repeat > > put "user/scripts/siteConfig.lc" into tt > if there is a file tt then > start using stack tt > siteCon

Example of Livecode function settings array syntax?

2018-07-24 Thread Keith Clarke via use-livecode
Hi folks, I’m trying to add username & password to the pSettings parameter in the tsNetPost function but have no clue on the correct syntax for settings parameter arrays. Unfortunately, the documentation is not helpful in this regard for the infrequent user - no brief syntax description, code e

Re: Example of Livecode function settings array syntax?

2018-07-24 Thread Keith Clarke via use-livecode
56-how-to-upload-a-file-using-FTP > > The same method works for all tsNet functions that accept a settings > parameter. > > Please let me know if that answers your question, > > Regards, > > Charles > >> On 24 Jul 2018, at 6:15 pm, Keith Clarke via use-livecode &g

OT: On-Rev cPanel (port 2083) access blocked by BT Smart Hub router?

2018-07-27 Thread Keith Clarke via use-livecode
Hi folks, Apologies for OT thread - but I’m hoping there may be a UK-based fellow on-rev hosting user, with BT Broadband + Smart Hub, who can confirm whether any router tweaks are needed to access port 2083 (for on-rev cPanel), which seems to be blocked from any device on my home network (BT Bro

Re: OT: On-Rev cPanel (port 2083) access blocked by BT Smart Hub router?

2018-07-27 Thread Keith Clarke via use-livecode
> > On 07/27/2018 09:06 AM, Keith Clarke via use-livecode wrote: >> Hi folks, >> Apologies for OT thread - but I’m hoping there may be a UK-based fellow >> on-rev hosting user, with BT Broadband + Smart Hub, who can confirm whether >> any router tweaks are need

LiveCode Server on CentOS 6?

2018-07-28 Thread Keith Clarke via use-livecode
Hi Folks, Is anyone running LS Server on CentOS 6? I notice that only version 7 is officially supported and not being a Linux expert, I’d like to know if this server OS would need to be upgraded before attempting anything with LC server on it. TIA Keith __

Re: LiveCode Server on CentOS 6?

2018-07-29 Thread Keith Clarke via use-livecode
So, it looks like server migration / rebuild will need to be on the critical path or it’s a dead-end for experimenting with LC Server for this particular project. Thanks Keith > On 29 Jul 2018, at 08:06, Warren Samples via use-livecode > wrote: > > On 07/28/2018 05:39 AM, Kei

Re: LiveCode Server on CentOS 6?

2018-07-29 Thread Keith Clarke via use-livecode
> First question (an admittedly ignorant one, but I haven't spent much time in > the CentOS community): Why does their package manager not automatically keep > system components current? CentOS 6 is not the latest version (and will be unsupported from 2020), so I guess there are dependencies

Re: LiveCode Server on CentOS 6?

2018-07-31 Thread Keith Clarke via use-livecode
Thanks Martin (& Brian). It transpires that the VPS in question only has CentOS 6 OS option, even if recreated - so the OS is a given for the short term, pending replacement / upgrade discussions with the hosting provider, which are not my call. One option to get underway might be to deploy an

Re: LiveCode Server on CentOS 6?

2018-07-31 Thread Keith Clarke via use-livecode
Thanks Richard & Brian for digging into this. Lacking the Linux knowledge I tried working backwards from LC Server 9.0, trying 8.0 and 7.14 with no joy (internal server 500 error codes) - though whether the issues are down to glibc version dependencies is beyond me. Earlier versions have less/n

How to get LiveCode to return 'Today' & 'Now'?

2018-08-09 Thread Keith Clarke via use-livecode
Hi folks, Please can anyone share the magic syntax to put today into tDate put now into the tTime I haven’t found a magic keyword to seed the docs or Google. Thanks Keith ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit th

Re: How to get LiveCode to return 'Today' & 'Now'?

2018-08-09 Thread Keith Clarke via use-livecode
Thanks Brian (& Tore) - a brain-fade meant I clearly forgot ‘the obvious’ syntax :-) Best, Keith > On 9 Aug 2018, at 14:57, Brian Milby via use-livecode > wrote: > > the date > the time > > Thanks, > Brian > On Aug 9, 2018, 8:56 AM -0500, Keith Clarke via

How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
Folks, I’m trying to filter a list of comma-delimited values to include only the lines that contain a string - somewhere in any of the items. What’s wrong with this syntax - it’s currently returning no lines when I can see tString in the second line of the variable? filter lines of tList with "

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
use-livecode > wrote: > > On 08/13/2018 08:32 AM, Keith Clarke via use-livecode wrote: >> Folks, >> I’m trying to filter a list of comma-delimited values to include only the >> lines that contain a string - somewhere in any of the items. >> What’s wrong with th

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
Indeed, especially when anything regexy should be viewed from a safe distance - ideally from behind the couch …in a tin-foil hat! > On 13 Aug 2018, at 16:54, Mark Wieder via use-livecode > wrote: > > On 08/13/2018 08:51 AM, Keith Clarke via use-livecode wrote: >> Thanks Ma

Re: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
and in the middle of > attempting to explain it, the author loses his mind. It was pretty funny. > > Bob S > > >> On Aug 13, 2018, at 09:01 , Keith Clarke via use-livecode >> wrote: >> >> Indeed, especially when anything regexy should be viewed from a safe

Word counter crashing LiveCode?

2018-08-25 Thread Keith Clarke via use-livecode
Folks, I’m working on a simple utility to count the most popular words in a text file but my current code runs for a while & then causes LiveCode to crash. It runs fine when I merely extract a list of unique words that are not in a ‘NoiseWords’ list but when I attempt to add a word count as the

Re: Word counter crashing LiveCode?

2018-08-25 Thread Keith Clarke via use-livecode
Thanks Alex & Paul - that’s working nicely now. It has also introduced me to: A unicode text subtlety that I’d missed since I last dabbled with LiveCode pre-7 Arrays, with a useful worked example, which are clearly more efficient for this kind of process but a learning curve that I’d been avoidin

How to get word offset all instances of a string in a chunk of text?

2018-08-30 Thread Keith Clarke via use-livecode
Folks, Is there a single-pass mechanism or more efficient way of returning the wordOffset of each instance of ‘the’ in ‘the quick brown fox jumped over the lazy dog’ than to use two passes through the text? Pass-1. Count the instances of ‘the’ into an array and then Pass-2. Repeat for the count o

Re: How to get word offset all instances of a string in a chunk of text?

2018-08-31 Thread Keith Clarke via use-livecode
Thanks Alex, HH & Jim for all the help & ideas. Just to close out the thread with a solution for future reference, the code below now extracts from a text source a list of unique words, cleaned up against a noise-word list, with word frequency, word & and a comma-delimited string of the word nu

Re: Searching for a word when it's more than one word

2018-09-01 Thread Keith Clarke via use-livecode
Very interesting Steve, your use case is actually very close to what I’m trying to achieve, which is to identify keywords and phrases within a corpus of text - think prioritised ’tag cloud’ metadata. My original plan (as a non-programmer) was to identify the most popular unique words within the

How to find true words that start with a capital letter?

2018-10-26 Thread Keith Clarke via use-livecode
Folks, What is the most efficient way to search for trueWords starting with a capital letter? Is there anything more direct than something like... repeat for each true word tWord in tContainer If char 1 of tWord is among the codePoints of tUnicodeLetters // a variable containing A-Z

Re: How to find true words that start with a capital letter?

2018-10-28 Thread Keith Clarke via use-livecode
really just ASCII ? > > if so, you could do > >put char 1 of tWord into temp >if 65 <= temp AND temp <= 90 then ... > > Alex. > > > > On 26/10/2018 12:21, Keith Clarke via use-livecode wrote: >> Folks, >> What is the most efficient

How to find the offset of the last instance of a repeating character in a string?

2018-10-29 Thread Keith Clarke via use-livecode
Folks, Is there a simple way to find the offset of a character from the ‘right’ end of a string, rather than the beginning - or alternatively get a list of all occurrences? I’m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ‘/‘ character

Re: How to find the offset of the last instance of a repeating character in a string?

2018-10-29 Thread Keith Clarke via use-livecode
Perfect, thanks Devin - I was hoping to see ‘offsets’ in the docs under ‘offset’, so this will do nicely! :-) Best, Keith > On 29 Oct 2018, at 15:49, Devin Asay via use-livecode > wrote: > > On Oct 29, 2018, at 9:32 AM, Keith Clarke via use-livecode > wrote: >> &g

How best to check if string contains any of a list of substrings?

2018-11-01 Thread Keith Clarke via use-livecode
Folks, What is the most efficient way to test whether a variable containing a string such as “my test phrase” contains one of several variable substrings, such as “est” OR “phr” OR... ? So far I’ve tried (without luck) approaches that simplify into... put “my test phrase” into myTestPhrase put

Re: How best to check if string contains any of a list of substrings?

2018-11-01 Thread Keith Clarke via use-livecode
> - but I'm not brave enough to go there :-) > > Are you expecting reallylarge strings to search ? Or really many phrases to > search for ? > > "beware optimizing something that is just plain fast enough already" > > Alex. > > On 01/11/2018 09:41, K

Do javascript function in browser widget?

2018-11-06 Thread Keith Clarke via use-livecode
Folks, I’ve found a few examples of simple inline script injection to the browser widget, such as do "document.body.style.background = ‘red';" in widget "Browser” Is it possible to inject a multi-line javascript function - with variables definition, loops, etc - in this fashion or would the fu

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

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&t=29018 > >

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

  1   2   >