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

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

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

2018-11-01 Thread Keith Clarke via use-livecode
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, Keith Clarke via use-livecode wrote: &

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

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

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

2018-10-28 Thread Keith Clarke via use-livecode
? Or is it 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 th

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

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

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

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

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: How to filter a list with a variable anywhere in a line

2018-08-13 Thread Keith Clarke via use-livecode
d 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 >

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

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

2018-08-13 Thread Keith Clarke via use-livecode
ivecode > 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 this sy

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

Re: LiveCode Server on CentOS 6?

2018-08-01 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

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

Re: LiveCode Server on CentOS 6?

2018-07-29 Thread Keith Clarke via use-livecode
ooks 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, Keith Clarke

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

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

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

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

  1   2   >