Re: How to update a css file when using the Browser widget

2018-11-04 Thread Phil Davis via use-livecode
Hi James, Maybe putting a parameter after the URL for the reload would make the widget think it's worthy of a complete reload. like so: https://my.big.site.com?12345 Haven't tried it, just thought of it. Phil Davis On 11/3/18 9:55 PM, James Hale via use-livecode wrote: Further exploring

Re: How to update a css file when using the Browser widget

2018-11-04 Thread hh via use-livecode
To disable caching of an input css file (or js script file) this works with every browser: Either change the file name of the input file or add a counter value (or timestamp) to the filename, for example ___ use-livecode mailing list

Re: How to update a css file when using the Browser widget

2018-11-04 Thread hh via use-livecode
> James H. wrote: > Context: I want to be able to change the font-size displayed > in the browser. The pages being displayed all use the same > external css. I thought that by changing the font-size > definition with the css and saving it back to disk, a reload > of the page would use the new

Re: How to update a css file when using the Browser widget

2018-11-04 Thread James Hale via use-livecode
@brian - yes I am on a Mac. I wondered if it was webkit too. However Safari performs as expected. I load the page in Safari, then change the css and then reload the page in Safari (using the reload button in the address field) and the page reloads using the modified css. @Phil - no joy with

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

2018-11-04 Thread Geoff Canyon via use-livecode
Alex, good catch! The code below and at https://github.com/gcanyon/alloffsets now puts a stop character after the string to prevent the error you found. I also added a "with overlaps" option. I think this is correct, and about as efficient as possible, but thanks to anyone who finds a bug or a

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

2018-11-04 Thread Geoff Canyon via use-livecode
On Sun, Nov 4, 2018 at 4:34 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 11/4/18 10:40 AM, Geoff Canyon via use-livecode wrote: > > I also added a "with overlaps" option. > > My problem with the pWithOverlaps parameter is that is requires a priori > knowledge of

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

2018-11-04 Thread Mark Wieder via use-livecode
On 11/4/18 6:49 PM, Geoff Canyon via use-livecode wrote: I'm not sure I agree that it would be so unlikely to know that overlaps won't occur (or that it's unreasonable to not want them). If I'm looking for every instance of "romeo" in romeo and juliet, then obviously I'm not expecting, nor do I

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

2018-11-04 Thread Brian Milby via use-livecode
Logic matches my solution. I also validated my solution using just the offset function. Speed hit for with overlap is similar. One possible optimization: put kList is not empty into pWithOverlaps If with overlaps was requested but the source delimiter did not contain any overlaps, then the

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

2018-11-04 Thread Mark Wieder via use-livecode
On 11/4/18 10:40 AM, Geoff Canyon via use-livecode wrote: I also added a "with overlaps" option. My problem with the pWithOverlaps parameter is that is requires a priori knowledge of the data being consumed. If you already know there are overlaps then you'd set the parameter to true. If you

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

2018-11-04 Thread Brian Milby via use-livecode
My updated solution always looks for overlap but if none are found it uses optimized versions of the search (private functions instead of inside the main function). I special case for no overlap and a single overlap in the delimiter. It is about the same speed as Geoff’s. Thanks, Brian On Nov

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

2018-11-04 Thread Bob Sneidar via use-livecode
Simply add 1 to the last offset pointer. If after the first iteration you return 1, then set the charsToSkip to 2 instead of offset + len(searchString) if you take my meaning. Bob S > On Nov 2, 2018, at 17:43 , Geoff Canyon via use-livecode > wrote: > > I like that, changing it. Now

Re: Sorting datagrid column with a tricj?

2018-11-04 Thread Bob Sneidar via use-livecode
Thanks Trevor. I perused the lessons and the documentation but could not find anything that might aid me in this. I will have a look at that lesson! Bob S > On Nov 2, 2018, at 15:49 , Trevor DeVore via use-livecode > wrote: > > On Fri, Nov 2, 2018 at 5:16 PM Bob Sneidar via use-livecode <

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

2018-11-04 Thread Mark Wieder via use-livecode
On 11/4/18 4:45 PM, Brian Milby via use-livecode wrote: My updated solution always looks for overlap but if none are found it uses optimized versions of the search (private functions instead of inside the main function). I special case for no overlap and a single overlap in the delimiter. It

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

2018-11-04 Thread Brian Milby via use-livecode
I’m working on an update to the stack now. Moving buttons to the left side to make it easier to add more. Thanks, Brian On Nov 4, 2018, 10:02 PM -0600, Mark Wieder via use-livecode , wrote: > On 11/4/18 4:45 PM, Brian Milby via use-livecode wrote: > > My updated solution always looks for

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

2018-11-04 Thread Brian Milby via use-livecode
Here's an image of the stack in my fork of the repo: https://github.com/bwmilby/alloffsets/blob/bwm/bwm/stack_allOffsets_card_id_1018.png On Sun, Nov 4, 2018 at 10:07 PM Brian Milby wrote: > I’m working on an update to the stack now. Moving buttons to the left side > to make it easier to add