Re: Snapshot image density

2021-04-17 Thread David V Glasgow via use-livecode

 Thanks Richard.

> On 16 Apr 2021, at 4:17 pm, Richard Gaskin via use-livecode 
>  wrote:
> 
> David V Glasgow wrote:
> 
> > Is it right that import snapshot doesn’t offer image density options
> > as export snapshot does?
> 
> Is the metadata["density"] settable?
> 
> I haven't used it so I can't say, but given how snapshotting works I'd be 
> surprised if it lets us control the pixel density of LC's imaging buffer. My 
> hunch is that it's there to inform other programs which may be used to 
> display the image. I'd love to be wrong on that.
> 

Hmmm maybe I have just completely misunderstood. The parameters dictionary 
entry for export snapshot says:


object: Any valid object reference.
size:   The width,height of the snapshot in pixels.
metadataarray:  The metadata is an array of metadata. Currently the 
only key supported is "density" with a value in pixels per inch (ppi).

import snapshot parameters include rectDescription and stackRef, then :


objectRef:  Any valid card or control object reference.
sizeDescription:The width and height of the snapshot in pixels, 
in the form height,width.

no mention of a metadata array

> 
> > should I just export to the temp folder, immediately import, copy to
> > clipboard and proceed as before?  Or is there a more elegant route?
> 
> As of v7 or so you can also export to a variable, which can then be used to 
> set the data of an image object without the intermediary file I/O.

Thanks! That is useful to know.

> 
> 
> > are temp folders always available irrespective of the severity of
> > security restrictions which might be imposed?)
> 
> Good question. I don't know; I'd always had the impression that tmp is a sort 
> of free-for-all where sensitive data is understood to be inappropriate.  
> Maybe modern systems sandbox tmp by app?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web

Thanks for the information Richard, I will just have to try it out I guess.  
Maybe at the weekend.

Cheers

David G

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Snapshot image density

2021-04-16 Thread David V Glasgow via use-livecode

Hi Livecoders,


I have been thinking about offering snapshot image density options on an app 
which currently only offers (import) snapshot size options.  I chose import 
snapshot script variant because users’ machines may well react badly to an 
attempt to save an image (security).  However, most of the software they use 
will allow a clipboard image to be pasted into a record.

First question:  Is it right that import snapshot doesn’t offer image density 
options as export snapshot does?  If that is correct, (it is what the 
dictionary on 9.6.0 shows) question the second….should I just export to the 
temp folder, immediately import, copy to clipboard and proceed as before?  Or 
is there a more elegant route?  (I suppose there is also a question 2.5, are 
temp folders always available irrespective of the severity of security 
restrictions which might be imposed?)

The density options I want to offer are 

Screen (96 DPI)
Print  (300 DPI)
Publication (1000 DPI)

3rd (double barrelled) question… Would the correct syntax to set up for 
publication density be

'put 1000 into snapshotArray[“density”]’  

and then to actually capture…  

'export snapshot from objectref with metadata snapshotArray[“density”] to file 
“SeeSR.png" as PNG

I would investigate myself if I had the time, but sadly I also have to earn a 
living through my day job.




Best Wishes,
David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


BPD EUPD

2021-04-08 Thread David V Glasgow via use-livecode
Not going to get all professional/technical here, but this condition is 
*really* tough on those who have it.  Think social-emotional roller coaster.

It also generates challenges for those who interact with them.  What allowances 
individuals choose to take is a matter of choice, of course.  However it seems 
to me it would be useful for some consideration from list-parent.  Not a 
license to offend gratuitously, but equally I would be more than happy for 
there to be encouragement to repair off list rather than the usual threshold 
for list off-booting.

Cheers

David Glasgow

> On 8 Apr 2021, at 5:21 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> I mistakenly remembered the diagnosis, for which Sean was gracious. However, 
> the US government is unlikely to be involved since Sean is in the UK where 
> they actually have humane health care.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Star score graphic generator achievable with inks... or...?

2021-04-04 Thread David V Glasgow via use-livecode
Thanks, but Bob Sneidar was exactly right in his original post.  His solution 
works beautifully with real numbers represented as part stars.  I did look at 
the segmented widget, but I wanted to represent real numbers from averaging 
customer ratings.

The only teeny  limitation is that between each star there is a small gap in 
which ‘between stars’ scores are not displayed until the threshold of the next 
stars leftmost point is reached.

In terms of the typical web display of customer feedback, it isn’t significant.

Cheers

David G

> On 2 Apr 2021, at 11:57 pm, Martin Koob via use-livecode 
>  wrote:
> 
> Hi again
> 
> I just installed it following the instructions here
> 
> https://gist.github.com/matthewmaier/a803283ffa46a28e27fd
> 
> It seems to do the job.
> 
> Martin
> 
> 
>> On Apr 2, 2021, at 6:51 PM, Martin Koob via use-livecode 
>>  wrote:
>> 
>> Hi David
>> 
>> If I understand what you want you could use the Segmented Control Widget to 
>> get what you want.
>> 
>> https://livecode.com/livecode-widgets-the-segmented-control/
>> 
>> It just has full ratings, i.e. whole stars however  in a comment to that 
>> tutorial Paul McClernan has a link to a "Five-Star rating system LiveCode 
>> Builder Widget has 10 states (half-stars)"
>> https://github.com/PaulMcClernan/community.livecode.widget.fivestars
>> 
>> I think this would do what you need.
>> 
>> You would need to install the widget in your IDE to use it.
>> 
>> Martin
>> 
>>> On Apr 2, 2021, at 9:14 AM, David V Glasgow via use-livecode 
>>>  wrote:
>>> 
>>> Of course what you suggest is a perfect solution.  
>>> 
>>> Someone had to mail me off list and explain it using very small words.
>>> 
>>> Cheers
>>> 
>>> David G
>>> 
>>>> On 2 Apr 2021, at 10:08 am, David V Glasgow  wrote:
>>>> 
>>>> 
>>>> 
>>>>> On 1 Apr 2021, at 6:00 pm, Bob Sneidar via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> Actually I think you would have to set the width of the top group, then 
>>>>> set the left of the top group to the left of the bottom group. Simply 
>>>>> changing the right will move the group I think. Just going off memory.
>>>>> 
>>>>> Bob S
>>>>> 
>>>> 
>>>> 
>>>> Thanks,Bob,  but as I understand what you are saying, wouldn’t that only 
>>>> trade in whole stars?  The easiest way to do that would be with icon 
>>>> switching - I want to have the last star part gold and part grey, (with a  
>>>> vertical boundary through the star) if that is what is demand by the mean 
>>>> feedback score being represented.
>>>> 
>>>> I’m thinking perhaps icons will be the easiest way to go.  Maybe 10 stars 
>>>> each representing a degree of  ‘goldness’ and I will just set the stars 
>>>> Icons as required.  Duh!  Actually 11 stars, I will need a 0% gold.
>>>> 
>>>> Thanks anyway
>>>> 
>>>> Cheers
>>>> 
>>>> David G
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Star score graphic generator achievable with inks... or...?

2021-04-02 Thread David V Glasgow via use-livecode
Of course what you suggest is a perfect solution.  

Someone had to mail me off list and explain it using very small words.

Cheers

David G

> On 2 Apr 2021, at 10:08 am, David V Glasgow  wrote:
> 
> 
> 
>> On 1 Apr 2021, at 6:00 pm, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Actually I think you would have to set the width of the top group, then set 
>> the left of the top group to the left of the bottom group. Simply changing 
>> the right will move the group I think. Just going off memory.
>> 
>> Bob S
>> 
> 
> 
> Thanks,Bob,  but as I understand what you are saying, wouldn’t that only 
> trade in whole stars?  The easiest way to do that would be with icon 
> switching - I want to have the last star part gold and part grey, (with a  
> vertical boundary through the star) if that is what is demand by the mean 
> feedback score being represented.
> 
> I’m thinking perhaps icons will be the easiest way to go.  Maybe 10 stars 
> each representing a degree of  ‘goldness’ and I will just set the stars Icons 
> as required.  Duh!  Actually 11 stars, I will need a 0% gold.
> 
> Thanks anyway
> 
> Cheers
> 
> David G


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Star score graphic generator achievable with inks... or...?

2021-04-02 Thread David V Glasgow via use-livecode


> On 1 Apr 2021, at 6:00 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> Actually I think you would have to set the width of the top group, then set 
> the left of the top group to the left of the bottom group. Simply changing 
> the right will move the group I think. Just going off memory.
> 
> Bob S
> 


Thanks,Bob,  but as I understand what you are saying, wouldn’t that only trade 
in whole stars?  The easiest way to do that would be with icon switching - I 
want to have the last star part gold and part grey, (with a  vertical boundary 
through the star) if that is what is demand by the mean feedback score being 
represented.

I’m thinking perhaps icons will be the easiest way to go.  Maybe 10 stars each 
representing a degree of  ‘goldness’ and I will just set the stars Icons as 
required.  Duh!  Actually 11 stars, I will need a 0% gold.

Thanks anyway

Cheers

David G
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Star score graphic generator achievable with inks... or...?

2021-04-01 Thread David V Glasgow via use-livecode
Hi folks,

I am thinking about an app to create a 'star score' graphic for any given 
score/maximum value.

I don’t want it to be just integers up to the number of stars, but for one for 
the stars (if mean score is neither zero or the maximum) to be part golden and 
part grey.

I initially thought this would be straightforward but I am now scratching my 
head.

I was wondering whether there is an ink combination of two graphics (star and 
‘screen’) which would allow the covered part of the star to appear grey but the 
card bg  behind the screen to be unaffected.

Please assume I really don’t understand inks at all.  If that isn’t going to 
work, any other suggestions?


Best Wishes,
David G


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Resources folder on mac, and the good old days

2021-03-29 Thread David V Glasgow via use-livecode
I am following this with interest because, as I have previously lamented, I 
would like to give away apps to colleagues without the huge, incomprehensible 
headache of certificates, signing and notarising etc.

I want to make absolutely sure that I understand it correctly, that a player 
app which was enabled to run on a machine (either by user or the more formal 
method) could be designed to list and run any number of stacks distributed as 
stacks, and placed in a designated folder or sub folder.

If correct, doesn’t that:

A/  Enable distribution and updating of any LC ‘app’ simply by the prospective 
user dropping it into the correct folder?  (AKA ‘the good old days')

B/  Undermine the fundamental intention of certification in the first place?  
(Personally, I would trust Livecoders, and indeed often run posted stacks 
without a second thought, but what if Richmond* went over to the dark side?) 

Cheers

David G

* Selected not because I think he might, but because the idea is amusing
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] New Book: Development Oriented Development

2021-03-17 Thread David V Glasgow via use-livecode
Going off at a bit of a tangent, but maybe not entirely OT…

I see that Payhip state you can sell software through their platform.  

Andre, do you do that?  or any  Livecoders for that matter?  If so, how is it 
going?

Cheers

David Glasgow


> On 16 Mar 2021, at 6:26 pm, Andre Garzia via use-livecode 
>  wrote:
> 
> Dear Roland,
> 
> I haven't updated that book in a long time. What I did was switch stores to
> payhip. In that purchase URL, you'll notice that my name as an author is a
> link. If you click it, you're redirected to my payhip store at:
> 
> https://payhip.com/aagarzia
> 
> Which has the other book for sale as well.
> 
> I'll generate a preview and add it to my site.
> 
> Best
> Andre
> 
> On Tue, 16 Mar 2021 at 17:14, R.H. via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Andre
>> 
>> I have purchased your new book and downloaded the three versions (very
>> clever in three formats!).
>> 
>> https://payhip.com/b/18eH
>> 
>> With me is also your other book published first. Somewhere I read that you
>> updated that version. Can I download that somewhere as well? Or is there
>> some update price?
>> 
>> This purchasing page looks very professional and nice. But there is no link
>> to your other products or possibilities to contact you from that page.
>> Maybe a small preview would also possibly attract more readers? Anyway..
>> the price is very modest.
>> 
>> Regards, Roland
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> https://www.andregarzia.com 
> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Multidimensional array issue

2021-03-09 Thread David V Glasgow via use-livecode
 Er, I think I have just reached the fourth level of array un-enlightenment.

Wait!…. I can see the cyberverse!  SCHLOOOppp!-ting!

> On 3/8/21 5:36 PM, Bob Sneidar via use-livecode wrote:
>> Are you testing for empty, or are you testing if there is a value in an 
>> array variable? If there is no key matching your array variable, LC will 
>> return an empty string. An empty string is a value.
>> 
>> Mark is using a different method, seeing if a key of an array is itself an 
>> array. If bobtest ["value"] contains another array so that bobtest ["value"] 
>> ["anumber"] contains 1, then bobtest ["value"] is an array. If bobtest 
>> ["value"] contains 1 then it is not an array.
>> 
>> But getting the value of bobtest ["value"] ["number"] will return empty 
>> whether or not bobtest '{value"] is an array. This is why Mark is testing 
>> for an array rather than the value.
>> 
>> It seems a bit wonky, you might think, "Why not return an error?" But trust 
>> me, when you work with arrays, especially when it comes to datagrid data, 
>> this is the best course.
>> 
>> Bob S
>> 
>> 
>>> On Mar 8, 2021, at 16:25 , HENRY LOWE via use-livecode 
>>>  wrote:
>>> 
>>> Thanks Mark. There are two possible states:
>>> 
>>> tArray[“status”] holds a value and tArray[“status”][“text”] does not
>>> 
>>> or
>>> 
>>> tArray[“status”][“text”] holds a value and tArray[“status”] does not
>>> 
>>> 
>>> My code is trying to do the following:
>>> 
>>> If tArray[“status”] does not hold a value then check if 
>>> tArray[“status”][“text”] holds a value
>>> 
>>> 
>>> The crux is how one reliably determines that an array member (e.g. 
>>> tArray[“status”]) holds a value?
>>> 
>>> I would have assumed that if the array member does not hold a value then  - 
>>> if tArray[member] is empty would always return true. However that does not 
>>> appear to be the case if the array is multidimensional.
>>> 
>>> 
>>> It appears that both tArray[“status”] is an array and 
>>> tArray[“status”][“text”] is an array are true. Am I missing something about 
>>> using this syntax?
>>> 
>>> Thanks,
>>> 
>>> Henry
>>> 
>>> 
 On Mar 8, 2021, at 3:56 PM, Mark Wieder via use-livecode 
  wrote:
 
 On 3/8/21 3:46 PM, HENRY LOWE via use-livecode wrote:
 
> I have often used the form 'if tArray[“key1”] is empty' to determine 
> whether an array element hold a value but this breaks if 
> tArray[“key1”][“key2”] holds a value.
 Same here. Not that I've every liked that paradigm, just that it's been 
 that way since life crawled out of the ocean.
 
 However this should do the trick.
 
 if tArray["status"] is an array then
 put tArray["status"]["text"] into tStatus
 else
 put tArray["status"] into tStatus
 end if
 
 -- 
 Mark Wieder
 ahsoftw...@gmail.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> -- 
> Phil Davis
> 503-307-4363
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Baffling can't create variable message

2021-02-24 Thread David V Glasgow via use-livecode
h!

Why did that not occur to me?  Damn, on one of my variants I was so close, 
though...

Thanks Matthias

Cheers

David G

> On 24 Feb 2021, at 12:42 pm, matthias rebbe via use-livecode 
>  wrote:
> 
> David,
> 
> the Text is a property of button "search all". You have to use  "set the 
> text"
> 
> set the text of button "search all" to return & fld "custom" & the text of 
> button "search all"
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 24.02.2021 um 12:53 schrieb David V Glasgow via use-livecode 
>> :
>> 
>> put return & field "custom" after the text of button "Search All"
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Baffling can't create variable message

2021-02-24 Thread David V Glasgow via use-livecode
LiveCoders,

I have a pulldown menu button to which I want to append new searches that it 
does not already contain.

I have scripted this in various ways, multiple lines, single line, add 
parentheses, leave ‘em out, use extra variable/not,  in an attempt to isolate 
what I am doing wrong.  Sometimes I get a missing ‘then’ error, when it is 
clearly present.  However, in several constructions of the script, including 
the one liner below, I get

 “Can’t create a variable with that name (explicitvariables?) near text, char 
113

The script is:

if the text of button "Search All" contains field "custom" = false then put 
return & field "custom" after the text of button "Search All"


I'm doubly confused because a) in this version of the script I am not using 
variables, and b) Strict compilation mode is unchecked.

I have no idea whether this is a clue, but only commands seem to be colourised 
in the script editor.  I also noticed that the breakpoints tab reports a 
breakpoint on line 54 (which doesn’t exist), and which I have never knowingly 
set.

LC 9.6.0 MacOS 10.13.6


At this stage I would welcome someone pointing out  a palm->face rookie error 
rather than anything more sinister .  


Best Wishes,

David Glasgow



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-17 Thread David V Glasgow via use-livecode
Double [OT], but I just want to say that I have looked at HyperRESEARCH several 
times over the years, and have been hugely impressed with its features.

In fact, it is too feature rich for my needs, but it looks like a really great 
piece of work.

Cheers,

David G

> On 16 Feb 2021, at 9:43 pm, Paul Dupuis via use-livecode 
>  wrote:
> 
>  company Researchware produces called HyperRESEARCH for performing 
> qualitative data analysis.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread David V Glasgow via use-livecode
Well, my suggestion a non starter if you need to do hard sums, and you eschew 
invisibles. 

However, my thinking was this... I understood that the task was to detect when 
two rectangles r1 and r2 were within distance d of each other.   Presumably 
ether a flat bit or a pointy bit, coming in at any angle.  if each rectangle is 
centred and grouped with a rect that is bigger by d/2, any intersection of any 
two bigger rects means that the smaller corresponding r1 and r2 rects are at or 
within the desired distance d (half d measured by r1’margin over r1, and half 
by r2’margin over r2). The size of the groups is ignored, and as long as all r 
& r’ stay centred it should work, unless the rects move super quickly.

Oh.  It just occurred to me is that the bigger rects would have to have rounded 
corners.  Hmmm.  


OK, I’ll just sit back and see how it should be done.

Cheers

David G



> On 16 Feb 2021, at 5:08 pm, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 2/16/2021 6:16 AM, David V Glasgow via use-livecode wrote:
>> Being a bear of little brain, I would try placing each rect into a group 
>> centred on a larger rect, where the margin is d/2,  then test using 
>> intersect.
>> 
>> Now, where did I put that hunny?
>> 
>> 
> 
> Like the pooh reference!
> 
> Although I am not sure I follow exactly what you are suggests - AND - I need 
> to do this via math rather than visible (or invisible) objects in LC.
> 
> for rects r1,r2, I have l1,t1,r1,b2 and l2,t2,r2,b2 for their coordinates. 
> The rect min(l1,l2),min(t1,t2),max(r1,r2),max(b1,b2) is a rectangle that 
> exactly bounds both rects - this would be the rect of the group (if you 
> created them as objects and grouped them (less margins/borders).
> 
> I don't follow the part about 'centered on a larger rect where the margin is 
> d/2?
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread David V Glasgow via use-livecode
Being a bear of little brain, I would try placing each rect into a group 
centred on a larger rect, where the margin is d/2,  then test using intersect.

Now, where did I put that hunny?

Best wishes

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Roadmap

2021-02-13 Thread David V Glasgow via use-livecode


> On 13 Feb 2021, at 12:37 pm, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> I was told last year that HTML5 deployment would see upgrades maybe by
> Jan2021 LC 9.7.

Hi Sean,

I think that kind of aspirational statement, particularly in the world of 
software development, is the kind of thing to be really pleased and surprised 
about if it actually happens within 12 months of the estimate. In my book it 
certainly doesn’t qualify as a lie.  To anticipate features for a commercial 
product in development would need  a seriously strong and informed insider 
steer.  No consolation, I appreciate, but if anyone should be in a position to 
understand the particular challenges of software development, it must be other 
developers.

Which kind of reminds me about my last mail…. paying for Windows SuperCard and 
waiting for it to arrive.  I was SO wound up about that.  Weirdly now, it is a 
fond memory.


Best Wishes,
David Glasgow

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: lock screen

2021-01-22 Thread David V Glasgow via use-livecode
I once got in an unholy mess with a couple of lock screens which, of their own 
accord, had sneaked into repeat loops.

> On 22 Jan 2021, at 2:24 pm, Craig newman via use-livecode 
>  wrote:
> 
> Something else you might want to to know, though it may only be academic. 
> 
> LockScreen commands are queued. So if you lock the screen twice, you have to 
> explicitly unlock twice in order to clear the locked state.
> 
> It does not matter what happens in the flow of code in terms of screen 
> locking, whether other command or function calls are made. The queue rules 
> throughout. All is reset at idle time.
> 
> Craig
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Brian Milby via use-livecode
> Sent: Friday, January 22, 2021 6:50 AM
> To: How to use LiveCode 
> Cc: Brian Milby 
> Subject: Re: lock screen
> 
> I’m sure someone else can be more clear, but when the engine gets to an idle 
> state then locks should be cleared.  In your example, it would probably clear 
> at the end of that mouseUp handler, but aTest would completely run with the 
> screen locked.
> 
> Sent from my iPhone
> 
>> On Jan 22, 2021, at 3:57 AM, Terence Heaford via use-livecode 
>>  wrote:
>> 
>> Just looking for clarity with regard to lock screen.
>> 
>> Is there only one state for the screen, either locked or not locked and when 
>> is that state changed.
>> 
>> ---
>> on mouseUp
>> 
>> lock screen
>> 
>> aTest
>> 
>> end mouseUp
>> 
>> 
>> on aTest
>> 
>> — is the screen still locked here
>> 
>> end aTest
>> 
>> 
>> 
>> At what point is unlock screen called by livecode without me calling it 
>> directly.
>> 
>> The docs say when all pending handlers have completed but what exactly is a 
>> pending handler.
>> 
>> 
>> 
>> Thanks
>> 
>> Terry
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Cmi5 eLearning Standard in LiveCode MEETING TODAY AT 1 PM EST

2021-01-19 Thread David V Glasgow via use-livecode
I intended to comment on list, because I was impressed with Videolinkwell and 
thought folks on the list might be interested!

 I watched the videos and think your app is really cool and worthwhile.

There!  I did it again!

David G

> On 19 Jan 2021, at 5:37 pm, Martin Koob  wrote:
> 
> Hi List.
> 
> 
> I didn't mean to  spam everyone with this.  I did not notice I was conversing 
> with David G  thru the use-LiveCode list till  just now.  We can take this 
> offline.
> 
> But since you now have the links you can do a trial of my software.  Curious 
> what people think.
> 
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Cmi5 eLearning Standard in LiveCode MEETING TODAY AT 1 PM EST

2021-01-18 Thread David V Glasgow via use-livecode
VideoLinkwell looks like a great tool, Martin.  I spend a lot of time analysing 
video recorded police interviews, so I I know what a huge slog it is to 
document what happens and at which point(s) in a video.

Is there a walkthrough of features/tools?

Cheers

David G 

> On 18 Jan 2021, at 6:49 pm, Martin Koob via use-livecode 
>  wrote:
> 
> Hi
> 
> I am back to 3G.  So go on without me.  It is more frustration for you than 
> it is worth. 
> 
> I will watch the video. 
> 
> If you want to see and try my SaaS Product VideoLinkwell go to 
> VideoLinkwell.com.  
> 
> Let me know when the next meeting is.  Thanks. 
> 
> Martin
> 
> Sent from my iPhone
> 
>> On Jan 18, 2021, at 1:43 PM, David Bovill  wrote:


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] Release 9.6.2 RC-2

2021-01-14 Thread David V Glasgow via use-livecode
I paid for the Windows version of SuperCard that was advertised in MacUser for 
some considerable time in the ?mid 90s.  I waited, and waited, and waited….

> On 13 Jan 2021, at 8:00 pm, Michael Kristensen via use-livecode 
>  wrote:
> 
> Richard Gaskin wrote:
> 
>> We've been here before...
>> 
>> 68k -> PPC
>> Classic -> OS X
>> PPC -> Intel
>> 32-bit -> 64-bit
> 
> 
> More form memory-land:
> 
> Yesterday I downloaded SuperCard 4.8.1 Trail wich still is maintained.
> 
> I was able to convert some 30 years old SC stacks so they could run again (at 
> least for 30 days).
> 
> It look exactly like when I left it for Revolution and Livecode.
> 
> Richard, you might be the first person I ever emailed to, back then when we 
> had telephone modems (ky)
> 
> Michael
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


OT Re: Audioclips overlapping

2021-01-09 Thread David V Glasgow via use-livecode
Oh my!  I had a minuet generator dongle for my Sinclair Spectrum!!

So that’s how it worked!

> On 9 Jan 2021, at 3:08 pm, Richmond via use-livecode 
>  wrote:
> 
> Erm . . . not sure about this, but the word 'concatenation' just bubbled
> up in my brain.
> 
> But any concatenation would need to be done on the fly inwith LiveCode.
> 
> Having a seriously bonkers patch:
> 
> https://introcs.cs.princeton.edu/java/assignments/mozart.html
> 
> On 9.01.21 16:59, Klaus major-k via use-livecode wrote:
>> Hi Richmond,
>> 
>>> Am 09.01.2021 um 15:52 schrieb Richmond via use-livecode 
>>> :
>>> 
>>> When I try to play a succession of audioClips they overlap each other.
>>> Is there a way to ensure each clip does not start playing before the 
>>> preceding one has finished?
>> do you mean this?
>> ...
>> play ac "a_clip.wav"
>> wait until the sound is "done"
>> play ac "another_clip.aif"
>> ...
>> 
>>> Richmond Mathewson.
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Field ID clash

2021-01-02 Thread David V Glasgow via use-livecode
Using 9.6.0 on Mac 10.13.6

I duplicated a field and found a third field responded to the mouseup of the 
duplicate.  It seems the duplication generated a clash of IDs between the 
duplicate and third field.  I could just select and start again, but I was 
wondering whether there is a safe way to manually (or force automatic) change 
the ID of one pr other of the fields.  I also wondered how this might happen in 
the first place.  Is my stack OK, or might a more serious problem be 
developing? 

Any thoughts or suggestions?

Best wishes,

David Glasgow


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


OT Re: Trying to use the Segmented Control

2020-12-06 Thread David V Glasgow via use-livecode



> On 6 Dec 2020, at 10:16 am, Richmond via use-livecode 
>  wrote:
> 
> I started driving again in the United Arab Emirates on the basis of a Saudi 
> licence I had got for a bottle
> of fake Chanel number 5.


I never drive in the UAE.  Hit a camel = go to jail.

David G
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: filter

2020-11-20 Thread David V Glasgow via use-livecode
Apologies for barging in, but I am confused by regex generally and in this 
specific example by the function of the terminal ‘+’  If you are only finding 
one character, why do you need to specify 'at least one' of one char?

Cheers

David G

> On 20 Nov 2020, at 8:44 am, Klaus major-k via use-livecode 
>  wrote:
> 
>> ^ = start at beginning of line
>> \[ = a literal "[" character ("\" escapes whatever comes next)
>> + = at least one of those characters

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Question

2020-11-17 Thread David V Glasgow via use-livecode
Oooh!  For once I might make a contribution!

I had the same issue in a healthcare context.  These IT systems vary 
tremendously between services, are complex and often hard to connect with - 
either by design, or by lack of interest in supporting other software.

I found the best way to get a combo education and training/clinical app to be 
accepted was to create it with no dependencies (local or online), no attempt to 
connect with management systems, no writing of data anywhere, just the ability 
to copy and paste charts and data that nurses can incorporate into other 
reports.  Although clinical information systems are hostile to most actions, 
they have to allow pictures (like x rays and other scans) and spread sheet data 
to be pasted into the record.  Ironically, they almost all allow Word documents 
to be incorporated into the clinical record too.  Nurses don’t need to be shown 
how to do these things, because they wrestle with ugly, poorly designed 
clinical information systems on a daily basis.

In other words, you’re on the money, I think.

Cheers,

David G

> On 16 Nov 2020, at 11:28 pm, William Prothero via use-livecode 
>  wrote:
> 
> Folks,
> I’m refining an application I used to teach Plate Tectonics when I was a 
> working prof. The application’s core is access to Earth data (that scientists 
> used to develop the theory of plate tectonics) and capturing and annotating 
> plots that can be incorporated into student writing.
> 
> I am adding features that give the student (and teacher) more direction about 
> how to use the material. The final student product would be some kind of 
> short writeup with figures, that presents student results of their 
> exploration using the data in the application. The major goal is to have 
> students learn about the process of doing science and writing about their 
> results.
> 
> However, I am thinking hard about how to proceed. It seems the effort to make 
> this app work with learning management systems would be huge, something I’m 
> definitely not up for. Yet, an assignment with text and figures needs to be 
> packaged in some way that is easy for students to use, but can be transmitted 
> to the teacher (who will make comments, assign a grade, and return it to the 
> student) in some efficient way. What I’m thinking, at the simplest level, is 
> to export the text and figures of the student’s work and let the student 
> create a final product using word, Pages, google classroom, or some other 
> application I haven’t thought about  but which they would normally have 
> access to.
> 
> I’d love to have any of you teachers’ ideas and/or experience with great ways 
> to proceed.
> 
> Thanks,
> Bill
> 
> William A. Prothero
> https://earthlearningsolutions.org
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: The Most Stupid Question Ever?

2020-11-11 Thread David V Glasgow via use-livecode



> On 10 Nov 2020, at 11:14 pm, Craig newman via use-livecode 
>  wrote:
> 
> So then LC knows when the message box is about to be the target, and
> therefore acts differently than with any other container. The actual already
> executed  command "put" is left stranded, unrequited, because the next line
> in sequence, not yet executed,  has foreknowledge that the upcoming target
> is the message box, and is girding itself to access it?? 


"Spooky action at a distance"?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Getting page counts of PDFs

2020-08-23 Thread David V Glasgow via use-livecode
Livecoders,

In my day job, some of my income comes from the number of pages from  a number 
of PDF documents thatI have to read for individual cases.  I thought it would 
be fun and useful to write an LC script that would either count the pages or 
(even better) get the page count of a folder full of PDFs.

I didn’t imagine it would be too hard, because both Mac and Win OSs report page 
number instantly and accurately in the file information windows.

I discovered that in a small sample of PDFs a line… 
<< /Type /Pages /MediaBox [0 0 612 792] /Count 149 /Kids [ 1396 0 R 1397 0 R


...contained the page count, which was a bit confusing because I read that the 
Mediabox was only about page dimensions.  Then I found that some PDFs don’t 
contain that line, or at least not in the clear.

There is a general online consensus that reliably finding the page count of a 
PDF involves quite a lot of messing about and parsing, and may involve pretty 
much counting the pages.

I found some code here  with 
the following walk through:

//1.  See if there's a 'Linearization dictionary' for easy parsing.
//Mostly there isn't so ...
//2.  Locate 'startxref' at end of file
//3.  get 'xref' offset and go to xref table
//4.  depending on version the xref table may or may not be in a compressed
//stream. If it's in a compressed stream (PDF ver 1.5+) then getting the
//page number requires a LOT of code which is too convoluted to summarise
//here. Otherwise it still requires a moderate amount of code ...
//5.  parse the xref table and fill a list with object numbers and offsets
//6.  handle subsections within xref table.
//7.  read 'trailer' section at end of each xref
//8.  store 'Root' object number if found in 'trailer'
//9.  if 'Prev' xref found in 'trailer' - loop back to step 3
//10. locate Root in the object list
//11. locate 'Pages' object from Root
//12. get Count from Pages.


If this is right, how on earth do OSs do it so quickly?  Also, and more to the 
point, am I on a fools errand to do this with LC?  I haven’t seen anything that 
obviously couldn’t be done (didn’t understand the regex, but assumed with 
effort…).  However parsing huge files just doesn’t look like it would be worth 
the effort, particularly as I can select all the documents,  get info, and sum 
the pages in my head..

Cheers,

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Layers in PBrowser

2020-08-13 Thread David V Glasgow via use-livecode


> On 13 Aug 2020, at 4:16 am, Pi Digital via use-livecode 
>  wrote:
> 
> Why do I have the same discussion with you people

Hi Sean, There are no ‘you people’, there is only us, including you.  

I can’t help you with your IDE problem, but I can see that others are trying 
hard to be helpful, and that you are running on empty.  

Maybe get some sleep and revisit the issue when you are feeling refreshed?

Cheers,

David G
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: sorting lines by date

2020-07-12 Thread David V Glasgow via use-livecode
Thanks everyone & Curry.  I will play with this some more.  Looking at the 
lists I am given, most of the date columns are declared to be UTC.  I intended 
to try to detect other formats in due course, but thought I’d start with the 
common one.

Reminds me of my favourite Jake Peralta line: “Stupid rest of the world, 
writing their dates all dumb!”

Cheers, and thanks again.

David G

> On 11 Jul 2020, at 7:06 pm, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Like everything field and text related, this thread caught my eye! :)
> 
> One of my favorite areas of LiveCode, and also one of the areas I have to 
> actively keep an eye on since I rely on it a lot.
> 
> Here's an observation that might help in one way or another
> 
> David:
> 
> > http://adomain/ 27/06/2016 8:10
> 
> > set itemdel to tab
> > sort lines of field "import" datetime by the last item of each
> 
> > the order above is generated.
> > I can’t see any meaningful ordering of the lines.
> 
> I was curious and copied your content into a field where I changed the date 
> format of the dates, like so:
> 
> http://adomain/   06/27/2016 8:10
> http://adomain/   11/17/2013 22:18
> 
> And for me, over here on this side of the ocean (cue Trump rally: USA! USA!) 
> that both looks good, and works well, using your unmodified code. The lines 
> without a date also stacked up at the top, as you predicted, and as I know to 
> be the normal LC sort behavior.
> 
> I realize you need the British format, but again out of curiosity and to make 
> sure everything LC datewise is working properly, you might try your sort 
> again, with a few lines of your content and that modification.
> 
> (There is also a useSystemDate keyword that you could test.)
> 
> Regardless, be assured that ABSOLUTELY it is possible to have datetime sorts 
> working well in fields or text with tabbed columns. Have no doubts or fears 
> in that regard. I very recently delivered a client project, this year, with 
> that feature.
> 
> The only question is efficiency. It would be better and faster to get the 
> datetime sort working directly with your content.
> 
> But if not, you can also sort with a custom function, and then the sky is the 
> limit! LC sort really is powerful and flexible.
> 
> But I would like to know the outcome, so when this is resolved, thanks in 
> advance for posting again to let us know what worked!
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: sorting lines by date

2020-07-10 Thread David V Glasgow via use-livecode
Hi Tom,

That’s what I thought I was doing.  From the dictionary…

The dateTime keyword recognizes all LiveCode's date and time formats and sorts 
them in time order, rather than alphabetical or numeric order. 

Cheers,

David G

> On 10 Jul 2020, at 11:24 pm, Tom Glod via use-livecode 
>  wrote:
> 
> Hi David, you should be able to do this by specifying the sort-type. look
> up 'sort container' in the dictionary.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


sorting lines by date

2020-07-10 Thread David V Glasgow via use-livecode
Livecodeistas,

I am working with text files consisting of many thousands of lines, most of 
which are in the format URL & Tab & Date - but a few don’t have a date.

So they look like this ...

http://1.lw6.blah/b7f3bd9e6b4d728a0f6d5883ed3a5ce/5326d47f?ss=152   
17/03/2014 9:55
http://1.lw6.zdomain/storage/1/x/xk/xkwEp/encoded.mp4/7aecf5e57e34c5f9212f30d0ca16da5a/5326d454?ss=107
  
http://1.lw6.zdomain/storage/1/x/xk/xkwEp/encoded.mp4/7aecf5e57e34c5f9212f30d0ca16da5a/5326d454?ss=107
  
http://1.lw6.zdomain/storage/1/x/xk/xkwEp/encoded.mp4/7aecf5e57e34c5f9212f30d0ca16da5a/5326d454?ss=107
  
http://adomain/ 27/06/2016 8:10
http://adomain/ 27/06/2016 8:10
http://adomain/ 27/06/2016 8:10
http://adomain/ 27/06/2016 8:10
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18
http://adomain/?go=click=133=1=0=3=3841375=http%253A%252F%252Fadomain%somestuff-330835.html
 17/11/2013 22:18

I assumed I could sort the lines by date using the following:

set itemdel to tab
sort lines of field "import" datetime by the last item of each

(I know I could speed this up using a variable, but I wanted to just see the 
result first.)

I wasn’t sure what would happen to the lines with no date, but assumed they 
would pile up at the beginning or the end of the field (which would be fine).  
However, what happens is that the script runs, and the order above is 
generated.  I can’t see any meaningful ordering of the lines.

I have a horrible feeling that dates are more complicated than I imagined, 
although I am sort of hoping  there something simple I just haven’t grasped.  
If so, what?

Best wishes,

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: slow loading & navigation to card containing large field

2020-07-01 Thread David V Glasgow via use-livecode
Hmmm.  Food for thought both!  

Loading I just use 

put URL ("file:" & theFilePath) into tdata

I have always assumed that reading as binary is only for data that isn’t  text. 
 I’ll try that. If I want to display some or all of the file in a field, do I 
need to process the data read as a binary, or can I just put it into a field?

So far I have worked on the principle that users should be able to see the 
effects of their searches, etc, so have defaulted to field.  Maybe I could 
store part of the list in the field (and swap in/out out as users scroll 
through) but do the main storage and heavy lifting within a custom property?

Thanks very much for the suggestions.

Cheers,

David G

> On 1 Jul 2020, at 5:15 pm, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi David
> 
>> Am 01.07.2020 um 18:10 schrieb Richard Gaskin via use-livecode 
>> :
>> 
>> David V Glasgow wrote:
>> 
>>> Loading the plain text list of URLs from file is slowish, but more
>>> importantly, for some time gives no indication that the file is
>>> loading.
>> 
>> Are you reading the file as text or binary?
>> I would imagine reading as binary would be more efficient since it's a 
>> straight pull from disk, without the content alterations text-read does.
>> 
>> -- 
>> Richard Gaskin
> 
> and unless REALLY neccessary, store the data in a custom property instead of 
> a field.
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


slow loading & navigation to card containing large field

2020-07-01 Thread David V Glasgow via use-livecode
Hello LCers

On Mac 10.13, LC 9.6

In my stack I have a field on one card consisting of imported text, which is 
typically several thousand of internet searches/file names/URLs.

I search for a number of  keywords, which are then aggregated, and by 
navigating to another card, display summary statistics  on the content 
analysis, in the form of a bar chart displaying the top 20 found terms.  So not 
a lot of data on the charting card.

I have a fairly extreme case of 781,000 lines (80,988,686 chars) in the content 
analysis field, consisting of a web history.

I am amazed at the efficiency of the searching process, which takes a while, 
but is as fast as I could hope.  It is slower than earlier versions, but the 
memory usage stays very steady, which wasn’t the case in 8 or early 9.  I’m 
happy to swap a bit of speed for more stability.  The content analysis works 
nicely, the transition to the chart card and chart displays quite quickly.

I have 2 problems:

1/ Loading the plain text list of URLs from file is slowish, but more 
importantly, for some time gives no indication that the file is loading.  After 
selecting the file, there is a long pause before the cursor becomes the OS 
beachball, another long pause and then eventually the card and populated field 
appears.  Is there any way of letting users know that this 82MB file *is* being 
loaded, they just need to be patient?  Or am I wholly in the hands of the OS?

2/  Navigating from the chart card back to the card containing the big list of 
URLs is very slow, typically taking about a minute from the mouseup on the 
navigate button (or command from message box).  A précis of the message watcher 
shows the delay occurs between the consecutive closeBackground and cREVTable 
messages below.

mouseup 3:55:45 PM (1)

closeCard 3:55:45 PM (0)

closeBackground 3:55:45 PM (0)

cREVTable 3:56:43 PM (58144)

opencard 3:56:45 PM (22)

(In the preopenstack of the big field card, I hide a group containing 9 fields 
each containing maybe 30 words - nothing that should take much time)

Am I just asking too much of LC, or are there any suggestions about making the 
transition between cards brisker? 


Best Wishes,
David Glasgow
Consultant Forensic & Clinical Psychologist

  

  
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Fwd: Build problems with 9.6 [mostly fixed]

2020-06-23 Thread David V Glasgow via use-livecode
I never saw mail below  reach the list, and received no replies, so I am trying 
again.  

Aside from thanks to Panos, I reported  a new problem with an error “could not 
auto-detect inclusions or security categories because stack is password 
protected” when I don’t think it is password protected.  I tried setting the 
password of the stack  to empty, with no change to error.  Stack has no sub 
stacks. I suppose I could select inclusions manually, but it would be nice to 
know what is going on.

Cheers,

David G

> Begin forwarded message:
> 
> From: David V Glasgow 
> Subject: Re: Build problems with 9.6 [mostly fixed]
> Date: 20 June 2020 at 3:24:06 pm BST
> To: How to use LiveCode 
> 
> Updating to Xcode 10.1 did the trick, so it looks like something had gone 
> awry with the previous Xcode install.  I really hadn’t  appreciated that 
> there is any LC dependency on Xcode with respect to desktop builds.
> 
> Thanks for the advice Panos.
> 
> I now get a build, but with the warning “could not auto-detect inclusions or 
> security categories because stack is password protected”
> 
> This didn’t happen in 7.x or 8.x, and as far as I know, the stack is not 
> encrypted.  I have seen a discussion of the same message with a script only 
> stack, but I couldn’t see any real connection with my case.  
> 
> I tried 
> 
> set the password of stack "ISOPtex" to empty
> 
> in the message box, but still got the same message on build.
> 
> Any suggestions anyone?
> 
> Thanks David G
> 
>> On 16 Jun 2020, at 1:11 pm, panagiotis merakos via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Hello David,
>> 
>> Sorry about that, I should have mentioned that "/path/to/your/Xcode.app" is
>> a placeholder for the actual path to your Xcode.app. So for example if you
>> have installed Xcode into your Applications folder, then the above command
>> should read:
>> 
>> sudo xcode-select -s /Applications/Xcode.app
>> 
>> *>>>>>>>Launching X-Code I get an unknown error with a long field of text
>> in the console.  Want to see it? *
>> 
>> If the previous command does not make any difference, then yes please :)
>> 
>> Which version of Xcode have you installed BTW?
>> 
>> Kind regards,
>> Panos
>> --
>> 
>> On Tue, 16 Jun 2020 at 15:04, David V Glasgow via use-livecode <
>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>>> 
>>> 
>>>> On 15 Jun 2020, at 5:04 pm, panagiotis merakos via use-livecode <
>>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> wrote:
>>>> 
>>>> Hello David,
>>>> 
>>>> Where have you installed Xcode?
>>>> 
>>>> Could you try this in a terminal:
>>>> 
>>>> sudo xcode-select -s /path/to/your/Xcode.app
>>> 
>>> 
>>> In response to this I get
>>> 
>>> xcode-select: error: invalid developer directory '/path/to/your/Xcode.app'
>>> 
>>> Launching X-Code I get an unknown error with a long field of text in the
>>> console.  Want to see it?
>>> 
>>> Cheers,
>>> 
>>> David G
>>> 
>>>> 
>>>> Also, it might be worth opening Xcode first (in case you have never
>>> opened
>>>> it).
>>>> 
>>>> Kind regards,
>>>> Panos
>>>> --
>>>> 
>>>> On Mon, 15 Jun 2020 at 18:12, David V Glasgow via use-livecode <
>>>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> 
>>>> wrote:
>>>> 
>>>>> Hi Panos,
>>>>> 
>>>>> The tools appeared to install, but the error(s) still appear, and the
>>>>> standalone isn’t saved.
>>>>> 
>>>>> Best wishes,
>>>>> 
>>>>> David G
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Build problems with 9.6 [mostly fixed]

2020-06-20 Thread David V Glasgow via use-livecode
Updating to Xcode 10.1 did the trick, so it looks like something had gone awry 
with the previous Xcode install.  I really hadn’t  appreciated that there is 
any LC dependency on Xcode with respect to desktop builds.

Thanks for the advice Panos.

I now get a build, but with the warning “could not auto-detect inclusions or 
security categories because stack is password protected”

This didn’t happen in 7.x or 8.x, and as far as I know, the stack is not 
encrypted.  I have seen a discussion of the same message with a script only 
stack, but I couldn’t see any real connection with my case.  

I tried 

set the password of stack "ISOPtex" to empty

in the message box, but still got the same message on build.

Any suggestions anyone?

Thanks David G

> On 16 Jun 2020, at 1:11 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello David,
> 
> Sorry about that, I should have mentioned that "/path/to/your/Xcode.app" is
> a placeholder for the actual path to your Xcode.app. So for example if you
> have installed Xcode into your Applications folder, then the above command
> should read:
> 
> sudo xcode-select -s /Applications/Xcode.app
> 
> *>>>>>>>Launching X-Code I get an unknown error with a long field of text
> in the console.  Want to see it? *
> 
> If the previous command does not make any difference, then yes please :)
> 
> Which version of Xcode have you installed BTW?
> 
> Kind regards,
> Panos
> --
> 
> On Tue, 16 Jun 2020 at 15:04, David V Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>> 
>>> On 15 Jun 2020, at 5:04 pm, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hello David,
>>> 
>>> Where have you installed Xcode?
>>> 
>>> Could you try this in a terminal:
>>> 
>>> sudo xcode-select -s /path/to/your/Xcode.app
>> 
>> 
>> In response to this I get
>> 
>> xcode-select: error: invalid developer directory '/path/to/your/Xcode.app'
>> 
>> Launching X-Code I get an unknown error with a long field of text in the
>> console.  Want to see it?
>> 
>> Cheers,
>> 
>> David G
>> 
>>> 
>>> Also, it might be worth opening Xcode first (in case you have never
>> opened
>>> it).
>>> 
>>> Kind regards,
>>> Panos
>>> --
>>> 
>>> On Mon, 15 Jun 2020 at 18:12, David V Glasgow via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>>> Hi Panos,
>>>> 
>>>> The tools appeared to install, but the error(s) still appear, and the
>>>> standalone isn’t saved.
>>>> 
>>>> Best wishes,
>>>> 
>>>> David G
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Build problems with 9.6

2020-06-16 Thread David V Glasgow via use-livecode


> On 16 Jun 2020, at 1:11 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Sorry about that, I should have mentioned that "/path/to/your/Xcode.app" is
> a placeholder for the actual path to your Xcode.app.


Oh boy.  Feel a bit dumb now!

Currently 10.1, downloading 11 now, just in case.

response this time 

You have new mail in /var/mail/mrdglasgow

… which was a report.  I searched for ‘error’ and there were none, but 
launching Xcode resulted in the same error as before.

Is it worth trying a build with LC, or should I install Xcode 11?

Cheers

David G
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Build problems with 9.6

2020-06-16 Thread David V Glasgow via use-livecode


> On 15 Jun 2020, at 5:04 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello David,
> 
> Where have you installed Xcode?
> 
> Could you try this in a terminal:
> 
> sudo xcode-select -s /path/to/your/Xcode.app


In response to this I get

xcode-select: error: invalid developer directory '/path/to/your/Xcode.app'

Launching X-Code I get an unknown error with a long field of text in the 
console.  Want to see it? 

Cheers,

David G

> 
> Also, it might be worth opening Xcode first (in case you have never opened
> it).
> 
> Kind regards,
> Panos
> --
> 
> On Mon, 15 Jun 2020 at 18:12, David V Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Panos,
>> 
>> The tools appeared to install, but the error(s) still appear, and the
>> standalone isn’t saved.
>> 
>> Best wishes,
>> 
>> David G

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Build problems with 9.6

2020-06-15 Thread David V Glasgow via use-livecode
Hi Panos,

The tools appeared to install, but the error(s) still appear, and the 
standalone isn’t saved.

Best wishes,

David G

> On 15 Jun 2020, at 1:04 pm, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello David,
> 
> Could you try what is suggested in
> https://quality.livecode.com/show_bug.cgi?id=22740?
> 
> Kind regards,
> Panos
> --
> 
> On Mon, 15 Jun 2020 at 14:02, David V Glasgow via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Should have said, MacOS 10.13.6
>> 
>>> On 15 Jun 2020, at 11:20 am, David V Glasgow 
>> wrote:
>>> 
>>> Hi Folks,
>>> 
>>> I have been trying out 9.6 on Mac on a stack developed with 7.1.4.  I
>> made some minor tweaks to the stack and then tried to build a standalone.
>> I didn’t check change the default build settings.  It built for linux, then
>> entered a blizzard of 'stack with the same name is in memory’ alerts then
>> crashed.
>>> 
>>> I relaunched and switched off builds for Win, Mac 32 bit and Linux, so
>> building just for Mac 64 (which was all I wanted).  Build for mobile both
>> unchecked by default
>>> 
>>> This failed with the following error(s)
>>> 
>>> There was an error while saving the
>>> standalone application
>>> 
>>> Adding ad-hoc signature failed with error:
>>> /Users/mrdglasgow/Dropbox/Rev
>>> Dev/ISOtex/Forinan12/Forinan.app:
>>> replacing existing signature
>>> 
>>> Agreeing to the Xcode/iOS license requires
>>> admin privileges, please run xcodebuild -license,All and then retry this
>>> command.
>>> 
>>> /Users/mrdglasgow/Dropbox/Rev
>>> Dev/ISOtex/Forinan12/Forinan.app: the
>>> codesign_allocate helper tool cannot be
>>> found or used
>>> 
>>> Que Pasa?  This isn’t for distribution or anything, and I have never
>> tried to sign anything previously built.
>>> 
>>> Cheers,
>>> 
>>> David Glasgow
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Build problems with 9.6

2020-06-15 Thread David V Glasgow via use-livecode
Should have said, MacOS 10.13.6

> On 15 Jun 2020, at 11:20 am, David V Glasgow  wrote:
> 
> Hi Folks,
> 
> I have been trying out 9.6 on Mac on a stack developed with 7.1.4.  I made 
> some minor tweaks to the stack and then tried to build a standalone.  I 
> didn’t check change the default build settings.  It built for linux, then 
> entered a blizzard of 'stack with the same name is in memory’ alerts then 
> crashed.
> 
> I relaunched and switched off builds for Win, Mac 32 bit and Linux, so 
> building just for Mac 64 (which was all I wanted).  Build for mobile both 
> unchecked by default
> 
> This failed with the following error(s)
> 
> There was an error while saving the
> standalone application
> 
> Adding ad-hoc signature failed with error:
> /Users/mrdglasgow/Dropbox/Rev
> Dev/ISOtex/Forinan12/Forinan.app:
> replacing existing signature
> 
> Agreeing to the Xcode/iOS license requires
> admin privileges, please run xcodebuild -license,All and then retry this
> command.
> 
> /Users/mrdglasgow/Dropbox/Rev
> Dev/ISOtex/Forinan12/Forinan.app: the
> codesign_allocate helper tool cannot be
> found or used
> 
> Que Pasa?  This isn’t for distribution or anything, and I have never tried to 
> sign anything previously built.  
> 
> Cheers,
> 
> David Glasgow

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Build problems with 9.6

2020-06-15 Thread David V Glasgow via use-livecode
Hi Folks,

I have been trying out 9.6 on Mac on a stack developed with 7.1.4.  I made some 
minor tweaks to the stack and then tried to build a standalone.  I didn’t check 
change the default build settings.  It built for linux, then entered a blizzard 
of 'stack with the same name is in memory’ alerts then crashed.

I relaunched and switched off builds for Win, Mac 32 bit and Linux, so building 
just for Mac 64 (which was all I wanted).  Build for mobile both unchecked by 
default

This failed with the following error(s)

There was an error while saving the
standalone application

Adding ad-hoc signature failed with error:
/Users/mrdglasgow/Dropbox/Rev
Dev/ISOtex/Forinan12/Forinan.app:
replacing existing signature

Agreeing to the Xcode/iOS license requires
admin privileges, please run xcodebuild -license,All and then retry this
command.

/Users/mrdglasgow/Dropbox/Rev
Dev/ISOtex/Forinan12/Forinan.app: the
codesign_allocate helper tool cannot be
found or used

Que Pasa?  This isn’t for distribution or anything, and I have never tried to 
sign anything previously built.  

Cheers,

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Unicode and languages

2020-06-07 Thread David V Glasgow via use-livecode
Ha!  You beat me to it, Alex.  The only extra is that Paul might be able to 
identify very common but distinct markers to identify the language, and create 
a simple algorithm.  

Made me wonder how Google translate does it when it is set to 'detect language’

Cheers,

David G 

> On 6 Jun 2020, at 2:11 pm, Alex Tweedly via use-livecode 
>  wrote:
> 
> If you simply need to protect users in the scenario you describe, then you 
> could try a simple heuristic
> 
>  - extract the first 100 (200? - 500?) characters (or first 20 words)
> 
>  - spell check that
> 
>  - if there are more than 10 (20? - 50??) spelling errors then flag it as a 
> likely language mismatch.
>  - and if not, proceed to do the spellcheck.
> 
> Adjust the numbers until it gives protection without too many false positives.
> 
> Alex.
> 
> On 05/06/2020 18:15, Paul Dupuis via use-livecode wrote:
>> In all the added stuff the LC7 and higher Unicode engine includes, is there 
>> any way to determine the LANGUAGE of a range of text?
>> 
>> USE-CASE
>> 
>> We have a tool that helps researchers transcribe text from digital media. It 
>> is used internationally. We have added spell checking using lclSpell form 
>> Live Code Labs, a LiveCode store add-on.
>> 
>> For lclSpell, we only have Dictionaries for a small set of languages. You 
>> can build you own Dictionaries for lclSpell, but we'll still only have 
>> Dictionaries for a small subset of the languages people transcribe in. We 
>> also have people who do BOTH transcription AND translations.
>> 
>> For example, transcribing a Chinese language media recording, typing in the 
>> Simplified or Traditional Chinese characters AND then translate it to 
>> English, typing the English translation after the transcription.
>> 
>> With lclSpell (or I suspect ANY LiveCode compatible spell checker) if you 
>> try to spell check a reasonably large chunk of text that is NOT in the same 
>> language as your Dictionary, it ties up LiveCode forever, or at least such a 
>> long time and most people would force-quit. It is after all marking every 
>> word as misspelled and trying to do whatever it does to determine  that.
>> 
>> Now, you can react, that the researcher should just KNOW better than to do 
>> Spell check a text in a language that is not their loaded Dictionary! 
>> However, people are people, and will do such things and expect software to 
>> protect them from their own mistakes. Also, with mixed transcription and 
>> translation, you do want to spell check the English part and skip the 
>> Chinese (if you do not have a Chinese Dictionary)
>> 
>> So, we're looking for a way to detect the LANGUAGE of a range of text, in a 
>> LiveCode field, to be able to then determine whether it matches the current 
>> (or any available) dictionary or not and act accordingly.
>> 
>> There is a "fontLanguage" function in LC, but that seem to predate Unicode 
>> Everywhere and seem pretty useless now.
>> 
>> For example. in a new stack, with a single scrolling field, we paste in a 
>> Chinese text and then execute:
>> 
>> put the fontLanguage of (the effective textfont of char 1 to -1 of fld 1)
>> 
>> and get "ansi". Even you you set the range (char 2 to 3) that is 
>> specifically Chinese (no white space), it still returns "ansi". The textFont 
>> returns empty and the effective textFont returns "Segue UI"
>> 
>> I don't even know if language exists in the IBM Unicode engine as some 
>> exportable property a future version of LiveCode could expose.
>> 
>> Any clever ideas or thoughts on this problem are welcome.
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Any electronic document formats offering interactivity?

2020-03-19 Thread David V Glasgow via use-livecode
Thanks for responses.

I should have been clearer.  As usual.

The interactivity within LC is no problem.  The user effectively creates a 
‘dashboard’ profile representing their own assessment of multiple risk factors 
at play in a particular case.  Currently, a representation of the resultant 
profile can then be captured as static image or PDF.  To keep the dashboard as 
clean as possible, within the app, explanatory notes are hidden unless labels 
are clicked.  I was wondering if it might be possible to retain just this 
aspect of functionality.  So someone viewing previously saved profiles could 
access pop-up explanatory notes.  It seems to me that PDF could offer that, but 
1 it is hard to do and 2 many PDF viewers don’t offer the interactivity 
promised by Adobe.

I did briefly consider HTML, but wanted to deliver a single file as the output, 
and an image of the dashboard profile is essential.  

An alternative strategy I think is going to be preferable, would be to save 
locked cards to a ‘results’ stack as the output format.  I was kind of hoping 
minimally interactive profiles could be saved in a more generally accessible 
format, but it seems (once again) what is easy in LC is blimming tricky outside 
it.

Cheers,

David G

> On 19 Mar 2020, at 12:05 am, Alex Tweedly via use-livecode 
>  wrote:
> 
> Hi David,
> 
> as Richard says, there are many unknowns, or unstated constraints, etc. - so 
> anyone who would try to give a detailed answer without more details is either:
> 
>  - brave
> 
>  - foolhardy  or
> 
>  - just foolish.
> 
> 
> So here I go  you choose which of the above adjectives fits :-)
> 
> Possibly a suitable format is  HTML.
> 
> Not just any old html, but a carefully selected subset / context.
> 
> Deliver a single, self-contained file of html. CSS and a small amount of JS 
> all inline within the file.
> 
> Put in enough JS library/framework  (i.e. probably lift a minimal subset of 
> Bootstrap or similar) to provide any kinds of interactivity you need such as 
> clever tooltips, etc.), and build a LC tool to create the elements you want 
> to place.
> 
> -- Alex.
> 
> P.S. If you need images then this "single page" idea breaks - you might need 
> to make images be "in the cloud" and require Internet connectivity.
> 
> 
> On 18/03/2020 18:00, David V Glasgow via use-livecode wrote:
>> Hi folks,
>> 
>> I would like to be able to generate a document from LC consisting of a 
>> single page (effectively a copy of a card) which can offer some basic 
>> interactivity.
>> 
>> I would be pretty happy if users can create a document that would display 
>> ‘tooltip-like’ explanatory notes if summary fields are clicked.
>> 
>> I couldn’t make any sense of the interactivity offered by PDF.  I did a bit 
>> better with ePub, but the emphasis seems to be on links, animation and video 
>> etc, which is far more than I want.
>> 
>> Any advice or suggestions?
>> 
>> 
>> Best Wishes,
>> David Glasgow
>> Consultant Forensic & Clinical Psychologist
>> 
>>  <http://www.i-psych.co.uk/ <http://www.i-psych.co.uk/>> 
>> <https://twitter.com/iPsychApps <https://twitter.com/iPsychApps>>
>> 
>>  <https://twitter.com/iPsychApps <https://twitter.com/iPsychApps>> 
>> <http://uk.linkedin.com/in/davidvglasgow 
>> <http://uk.linkedin.com/in/davidvglasgow>>
>>  <http://uk.linkedin.com/in/davidvglasgow 
>> <http://uk.linkedin.com/in/davidvglasgow>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>> <http://lists.runrev.com/mailman/listinfo/use-livecode>
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> <http://lists.runrev.com/mailman/listinfo/use-livecode>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Any electronic document formats offering interactivity?

2020-03-18 Thread David V Glasgow via use-livecode
Hi folks,

I would like to be able to generate a document from LC consisting of a single 
page (effectively a copy of a card) which can offer some basic interactivity. 

I would be pretty happy if users can create a document that would display 
‘tooltip-like’ explanatory notes if summary fields are clicked.

I couldn’t make any sense of the interactivity offered by PDF.  I did a bit 
better with ePub, but the emphasis seems to be on links, animation and video 
etc, which is far more than I want.

Any advice or suggestions?


Best Wishes,
David Glasgow
Consultant Forensic & Clinical Psychologist

  

  
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [macOS] Notarization, hardened runtimes, LCB, and executables

2020-02-06 Thread David V Glasgow via use-livecode
I have to say that this fills me with despair.  I try hard to  write serious, 
useful  programs, for fellow professionals,  but I am not a developer by trade 
or training.  I have a full time job, which subsidises my time using LC

The beauty of LC (and Metacard before it)  has always been how amazingly easy 
it is to write something genuinely useful and share it with others, pretty much 
irrespective of platform.  I used to just share with colleagues via DropBox.  

Now I look at an app I have developed and realise I have neither the time or 
technical ability to navigate through certification and notarization.  

Is this the beginning of the end for enthusiast developers?


Best wishes,

David Glasgow





> On 6 Feb 2020, at 5:22 pm, Trevor DeVore via use-livecode 
>  wrote:
> 
> On Thu, Feb 6, 2020 at 10:23 AM Trevor DeVore 
> wrote:
> 
>> 
>> After packaging up the app I did a quick test to make sure the new feature
>> worked on my machine. It didn't. The error message was about some code
>> trying to execute that wasn't signed and some note about library validation
>> or something or other (I didn't write it down).
>> 
> 
> Actually, I did capture the error:
> 
> [13283] Error loading Python lib
> '/var/folders/px/g8hg_x_10697wwmdb9t3thd4gn/T/_MEIT0IjWA/Python':
> dlopen:
> dlopen(/var/folders/px/g8hg_x_10697wwmdb9t3thd4gn/T/_MEIT0IjWA/Python,
> 10): no suitable image found.  Did find:
> /var/folders/px/g8hg_x_10697wwmdb9t3thd4gn/T/_MEIT0IjWA/Python: code
> signature in
> (/var/folders/px/g8hg_x_10697wwmdb9t3thd4gn/T/_MEIT0IjWA/Python) not
> valid for use in process using Library Validation: mapped file has no
> cdhash, completely unsigned? Code has to be at least ad-hoc signed.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.com
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Parent Group of the Target

2020-01-07 Thread David V Glasgow via use-livecode
The wonderful “Owner” is the property you’re after, I think.

Hope that is useful.  If it is, possibly my first time!

Best wishes,

David Glasgow

> On 7 Jan 2020, at 3:18 pm, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> I could have sworn we passed way before, but I can't find it anywhere on the 
> list
> 
> what is the most efficient was to get the name of the "Parent Group" of the 
> target?
> 
> Do we really have to parse this?
> 
> widget id 67388 of group id 67392 of card id 8169 of stack 
> "/Users/brahmanathaswami/Documents/_Siva-Siva-App/Siva-Siva-Portal.livecode"
> 
> To get the name of "group id 67392"
> 
> ?
> 
> BR
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: CEF Browser woes! no console.

2019-10-24 Thread David V Glasgow via use-livecode



> On 24 Oct 2019, at 3:49 pm, Tom Glod via use-livecode 
>  wrote:
> 
> crap. sorry ... its http://radio.garden 

No No No No No! I have WORK to do!
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How does OSX tell what app to open when you double click a file?

2019-08-08 Thread David V Glasgow via use-livecode
Hah! The devil is in the last line. (not to mention that the criteria don’t 
seem to match what actually happens)

> On 8 Aug 2019, at 12:34 pm, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 8/6/2019 10:10 PM, Mark Waddingham via use-livecode wrote:
>> On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote:
>>> For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all
>>> had a info.plist defintion for a .xyz file extension onto a virgin OSX
>>> system out of the box and then double-clicked a .wyz file, which of
>>> the 5 would open?
>> 
>> I *think* the answer to this question probably lies here:
>> 
>> https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP3999-CH202-TP9
>>  
>> 
>> The sections on 'Application Registration' and 'Preferred Applications' are 
>> probably the most pertinent - although it isn't entirely clear how the two 
>> mechanisms co-exist: registration suggests the 'most recent' modification 
>> time wise app is stored against a file kind, but preferred applications 
>> suggests that multiple apps are stored but the newest CFBundleVersion wise 
>> is chosen.
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
> 
> Thank you again!
> 
> This section of that web page was exactly what I was looking for:
> 
> 
> Preferred Application for a Document
> 
> For individual document files (whether specified by a file-system reference 
> or a URL with scheme |file|), the criteria are as follows:
> 
> 1.
> 
>   If the user has specified an explicit binding for the document (or
>   for the entire document type to which it belongs), the preferred
>   application is the one the user has specified.
> 
> 2.
> 
>   If the document has a filename extension (or if one has been
>   specified as a parameter to |LSGetApplicationForInfo|), find all
>   applications in the Launch Services database that claim to accept
>   documents with that extension.
> 
> 3.
> 
>   If the document carries a four-character file type (or if one has
>   been specified as a parameter), find all applications that claim to
>   accept files of that type.
> 
> 4.
> 
>   If more than one application has been found as a result of steps
>   2–3, apply the following criteria in the order shown:
> 
>1.
> 
>   If the document carries a four-character creator signature (or
>   if one has been specified as a parameter), give preference to
>   any application that claims to accept documents with that
>   signature (typically the application to which the signature
>   belongs).
> 
>2.
> 
>   Give preference to native OS X applications over those that run
>   in the Classic emulation environment.
> 
>3.
> 
>   Give preference to applications residing on the boot volume over
>   those residing on other file-system volumes.
> 
>4.
> 
>   Give preference to applications residing on a local volume over
>   those residing on a remote volume.
> 
>5.
> 
>   If two or more versions of the same application have been found,
>   give preference to the one with the latest version number as
>   identified by |CFBundleVersion
>   
> |.
> 
> If two or more candidate applications remain after all of the foregoing 
> criteria have been applied, Launch Services chooses one of the remaining 
> applications in an unspecified manner.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How does OSX tell what app to open when you double click a file?

2019-08-07 Thread David V Glasgow via use-livecode
No idea if this is any help at all, but I run two versions of Apple Pages (I 
have my reasons… ;-)

I have the older version set as the default for all Pages documents, and make 
exceptions when I need to.  Interestingly, MacOS 10.13.6 gets confused 
sometimes.  Even if a document is set to open with the newer version, some 
launch the older version.  Can’t always see why.

They also always open with the older version, if that version is already open, 
irrespective of the setting in Get Info.  Except if you use “open with” 8.1, 
then the later version is launched and used.

I have also noticed that some docs are set to open with the older version with 
the text in the get info 'open with' drop down menu saying 

Pages (Default) (4.3)

Whereas others just say

Pages (4.3)

I can’t work out if there is a difference between the two, but the drop down 
menu also normally offers 

Pages (Default) (8.1) 

Which is only effective if 4.3 is not open

So this looks like a dark art not even the Apple Developers have mastered.  
Although I guess they would argue that no one in their right minds runs more 
than one version of the same app. 

Cheers,

David G

> On 7 Aug 2019, at 3:10 am, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote:
>> For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all
>> had a info.plist defintion for a .xyz file extension onto a virgin OSX
>> system out of the box and then double-clicked a .wyz file, which of
>> the 5 would open?
> 
> I *think* the answer to this question probably lies here:
> 
> https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP3999-CH202-TP9
> 
> The sections on 'Application Registration' and 'Preferred Applications' are 
> probably the most pertinent - although it isn't entirely clear how the two 
> mechanisms co-exist: registration suggests the 'most recent' modification 
> time wise app is stored against a file kind, but preferred applications 
> suggests that multiple apps are stored but the newest CFBundleVersion wise is 
> chosen.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Do variable vs field as AppleScript

2019-07-04 Thread David V Glasgow via use-livecode
Thanks, Bob, that’s what I suspected.

From the UI point of view, its just feels a bit clunky - combined with being 
uncertain about whether the speechrecognitionserver is still working or whether 
recognition has failed, and whether the human  needs to repeat the phrase or 
not.

Maybe I am conflating two issues, but I wondered whether I could get it all to 
be a bit more brisk.

Cheers,

David G

> On 3 Jul 2019, at 3:55 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> Relative to the speech recognition, and there only being several hundred 
> iterations, I would say hardly. if it added 20 milliseconds to a process that 
> takes many tens of minutes (I suspect the speech has to be uttered in real 
> time) I hardly call that a delay. 
> 
> Bob S
> 
> 
>> On Jul 3, 2019, at 03:28 , David V Glasgow via use-livecode 
>>  wrote:
>> 
>> I have a script which in the fullness of time will repeatedly (several 
>> hundred times) run a list of commands as an Applescript.  It will take a 
>> fair bit of time to loop through because each iteration involves speech 
>> recognition.
>> 
>> My question is, will there be any meaningful speed advantage to storing the 
>> AppleScript in a variable rather than field?  This doesn’t mean finishing 
>> all 340 iterations faster, because the slowdown is the human thinking about 
>> the question and giving a response.  I’m thinking about a bit more 
>> responsivity from 
>> 
>> tell application "SpeechRecognitionServer"
>>  local tresult, choicesLanguageModel, titem
>>  set choicesLanguageModel to {"false", "slightly true", "mainly true", 
>> "very true"}
>> set tPrompt to "item 6"
>>  set tresult to listen for choicesLanguageModel with prompt tPrompt 
>> giving up after 30
>>  say tresult
>>  return tresult
>> end tell
>> 
>> (I should say that the line "set tPrompt to "item 6”” looks a bit weird 
>> because it is incremented under script control, and when that happens the 
>> indent is lost.)
>> 
>> I know I could test, but if someone just knows….
>> 
>> Cheers
>> 
>> David Glasgow
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Do variable vs field as AppleScript

2019-07-03 Thread David V Glasgow via use-livecode
I have a script which in the fullness of time will repeatedly (several hundred 
times) run a list of commands as an Applescript.  It will take a fair bit of 
time to loop through because each iteration involves speech recognition.

My question is, will there be any meaningful speed advantage to storing the 
AppleScript in a variable rather than field?  This doesn’t mean finishing all 
340 iterations faster, because the slowdown is the human thinking about the 
question and giving a response.  I’m thinking about a bit more responsivity 
from 

tell application "SpeechRecognitionServer"
local tresult, choicesLanguageModel, titem
set choicesLanguageModel to {"false", "slightly true", "mainly true", 
"very true"}
set tPrompt to "item 6"
set tresult to listen for choicesLanguageModel with prompt tPrompt 
giving up after 30
say tresult
return tresult
end tell

(I should say that the line "set tPrompt to "item 6”” looks a bit weird because 
it is incremented under script control, and when that happens the indent is 
lost.)

I know I could test, but if someone just knows….

Cheers

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: teeny tiny answer dialog text on Windows

2019-06-19 Thread David V Glasgow via use-livecode
Yeah, I did wonder that, too.   On openstack (mainstack ) I set the font to 
Arial.  I will double check just in case I have contradicted that somewhere 
else, but I don’t think that is it.

Cheers,

David G

> On 19 Jun 2019, at 4:09 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> I wonder what the default font for the stack is? I know new fields will 
> "inherit" the font of the stack. Perhaps dialogs do too. When I look at one 
> of my stacks, the stack font is, "System Font Regular". If the font for the 
> stack was set to a font that only exists on the MacOS, Windows will attempt 
> to substitute for a near match, which usually does not end well. 
> 
> Bob S
> 
> 
>> On Jun 19, 2019, at 08:02 , David V Glasgow via use-livecode 
>>  wrote:
>> 
>> Hello, folks.
>> 
>> Having returned to work on an old stack I have found that whereas standalone 
>> answer dialogs look fine on Mac, on Windows (10) the text (eg. “Do you 
>> really want to quit?”) is so small it is barely legible.  (Building on Mac 
>> 10.12 and 10.13)
>> 
>> I set the font to Arial, so although I would expect some font difference, 
>> there won’t be  problem with missing font.  I also built standalones with LC 
>> 7.x and 8.x, because I seem to remember that fonts changed in some way in 
>> LC8.  No obvious difference between them, and no improvement.
>> 
>> Before I resort to setting font size via HTML in script for each dialog in 
>> turn, any suggestions for a  global fix?
>> 
>> Thanks
>> 
>> Best Wishes,
>> David Glasgow
>> Consultant Forensic & Clinical Psychologist
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

teeny tiny answer dialog text on Windows

2019-06-19 Thread David V Glasgow via use-livecode
Hello, folks.

Having returned to work on an old stack I have found that whereas standalone 
answer dialogs look fine on Mac, on Windows (10) the text (eg. “Do you really 
want to quit?”) is so small it is barely legible.  (Building on Mac 10.12 and 
10.13)

I set the font to Arial, so although I would expect some font difference, there 
won’t be  problem with missing font.  I also built standalones with LC 7.x and 
8.x, because I seem to remember that fonts changed in some way in LC8.  No 
obvious difference between them, and no improvement.

Before I resort to setting font size via HTML in script for each dialog in 
turn, any suggestions for a  global fix?

Thanks

Best Wishes,
David Glasgow
Consultant Forensic & Clinical Psychologist

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

OT Re: repeat with times

2019-05-23 Thread David V Glasgow via use-livecode
What if Yoda you are?

> On 23 May 2019, at 7:57 am, Richmond via use-livecode 
>  wrote:
> 
> If I write: The dog me bit.
> 
> It is wrong: it is not a bug, nor a regression.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Woo License Keys Manager

2019-01-30 Thread David V Glasgow via use-livecode
Does anyone use the above for managing keys on their LC apps?  If so, are you 
happy with it?  

Conversely, anyone recommend any other solutions, whether just license 
management, or complete ecommece?

Cheers,

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Displaying or identifying emoji

2019-01-24 Thread David V Glasgow via use-livecode
That’s fantastic! Thanks Ali, very helpful.  Awww.  ‚ù§Ô∏è is a heart!

Thanks again.

> On 24 Jan 2019, at 8:45 am, Ali Lloyd  wrote:
> 
> For the specific examples you have there, simply putting the strings through 
> textDecode(, "utf-8") will give you your emoji back.
> 
> On Wed, Jan 23, 2019 at 4:34 PM David V Glasgow via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> 
> > On 23 Jan 2019, at 2:15 pm, Stephen MacLean via use-livecode 
> > mailto:use-livecode@lists.runrev.com>> 
> > wrote:
> > 
> > You say you are importing them? From where? A text file or DB?
> 
> Basically, Stephen, I take what I am given.  
> 
> Could be plain text, Word, HTML , even spreadsheetn- and often I don’t know 
> any intermediate steps between the original chat record (on whatever device 
> and in whatever software was involved), and the final format I receive.  
> Usually I get a digital record, but the last one I received was a scan of a 
> fax of a Word document.
> 
> I was hoping for easy way to back translate, gobbledegook to emoji ID/code, 
> but it looks like maybe there isn’t one.  
> 
> Thanks to all who chipped in.
> 
> Cheers,
> 
> David Glasgow
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> <http://lists.runrev.com/mailman/listinfo/use-livecode>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Displaying or identifying emoji

2019-01-23 Thread David V Glasgow via use-livecode


> On 23 Jan 2019, at 2:15 pm, Stephen MacLean via use-livecode 
>  wrote:
> 
> You say you are importing them? From where? A text file or DB?

Basically, Stephen, I take what I am given.  

Could be plain text, Word, HTML , even spreadsheetn- and often I don’t know any 
intermediate steps between the original chat record (on whatever device and in 
whatever software was involved), and the final format I receive.  Usually I get 
a digital record, but the last one I received was a scan of a fax of a Word 
document.

I was hoping for easy way to back translate, gobbledegook to emoji ID/code, but 
it looks like maybe there isn’t one.  

Thanks to all who chipped in.

Cheers,

David Glasgow



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Displaying or identifying emoji

2019-01-23 Thread David V Glasgow via use-livecode
Hello folks,

I am working on imported text messages from various sources, and which have 
been through various (unknown) processes/displays before I get them.  Some 
retain emoji intact, but others render them as an odd series of characters 
(presumably having been substituted when stored in a non-unicode environment):

582 hexman555 (04/17/15 11:13:54 PM): I'll be here 😊❤️
600 hexman555 (04/17/15 11:32:15 PM): Me too ❤️
615 hexman555 (04/17/15 11:49:18 PM): Thank you ❤️💋
625 hexman555 (04/17/15 11:52:29 PM): ❤️❤️❤️

 I would like to know which emoji were being used, either by displaying them in 
the field or substituting "‚ù§Ô∏è” etc with parenthetic text describing the 
emoji.  I have tried to break emojis down, but can’t find an app that doesn’t 
display them - or rather mangles them in this way.  Similarly, I have looked at 
the ascii and hex of the component characters of the gobbledegook, but can’t 
see a pattern.

Any suggestions?


Best Wishes,
David Glasgow


  

  
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

LC Wildcard filter citation source?

2018-12-08 Thread David V Glasgow via use-livecode
Hello folks,

I am writing an academic paper on an analysis of internet predator messages 
undertaken using an LC app.  

A few of the filtered terms I used incorporated wildcards (I avoided regular 
expressions).  I need to reference a published source for the implementation of 
wildcards within LC, if such a thing exists.

Does it?

Cheers,

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Numbering lines

2018-10-29 Thread David V Glasgow via use-livecode
Thanks to everyone who helped me on this.  Apologies if I misdirected the 
discussion, but even that was very instructive.

My mouth hung open when I saw the cost of updating the progress bar every time 
through a loop.  

I guess I have become sloppy about time saving because most operations seem 
‘quick enough’ to me …and also it seems counterintuitive that adding a 
conditional line inside the loop would speed things up.  Useful information on 
arrays too.

Cheers,

David G
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Numbering lines

2018-10-28 Thread David V Glasgow via use-livecode
Thanks for this, although I’m not sure I understand.  In fact I am sure I 
don’t.I know how amazingly fast the array method is, I use it elsewhere in 
the same stack, and it is great. 

I also don’t understand the distinction between line numbering and indexing.  
If I was guessing, I would go for line numbering prepends to each line in a 
text field a number, and indexing is adding a numerical key to a database or 
array.  The former is what I described in my original post.

The reason the issue arrises is because some of the text/chat message records I 
referred to have the date and time stamps stripped out.  So in the following 
exchange…

1757Shadowknave: U gotta b there
1758What_goes_Moo: kk
1759Shadowknave: no let down?
1760What_goes_Moo: kk
1761 Shadowknave: U b there 8?
1762 What_goes_Moo: I wil

… lines 2 and 4 would be identical but for the line number I added via the 
script. And of course, the integrity of the dialogue must be maintained.

 I had believed that collapsing duplicates and alphabetising are unavoidable 
with split.  If there is an array method which doesn’t mess with the text 
message order or content, then I would be delighted.  Is that what this is 
below, but I haven’t appreciated it?

Cheers,

David G


> On 28 Oct 2018, at 1:47 pm, hh via use-livecode 
>  wrote:
> 
>> David G. wrote:
>> Thanks Geoff, I did play with Split, but one of the reasons for numbering
>> is to make any identical lines unique.  With split, for any that are not,
>> all but one is deleted.  So definitely not the result I wanted.
> 
> I am not Geoff (who played with the simple array methods I suggested).
> But your post attacks indirectly my suggested handlers below as wrong, as if
> they would not hit your question. 
> 
> My handlers (which are at least 600 times faster than your first script)
> output exactly the same what your first script outputs, seen apart from the
> optional delimiter.
> 
>> So definitely not the result I wanted.
> LOL: You mention above the "unique"-side-condition the first time...
> 
> With your new side condition from above several others (and I) know also
> how this is doable very fast, once again using arrays. And it is an
> invertible method, that is, the original text is exactly restorable.
> 
> But first post YOU your new handler, to see *all* your new side conditions,
> that is, or to see what you really want:
> Certainly not a line numbering, rather indexing a text file.
> 
> David G. wrote: [This is the first script]
> However….
> Sometimes I want to prefix each line with the line number, and do this:
> 
> put 1 into tcount 
> repeat for each line j in it 
> put tcount & j into line tcount of it 
> put tcount + 1 into tcount 
> set the thumbpos of scrollbar "filterprog" to tcount 
> end repeat 
> put it into field “numberedtext” 
> 
> I use ‘it’ because of a dim memory (superstition? Myth?) from long ago 
> that 
> it is faster than an arbitrarily named variable. Still, the whole process 
> is pretty darned slow. Any brilliant suggestions? 
>> 
>>> Geoff C. wrote:
>>> And of course if retaining the order isn't critical you could just go with:
>>> 
>>> function numberText T,D
>>>   split T by cr
>>>   combine T by cr and D
>>>   return T
>>> end numberText
>>> 
>>> function unNumberText T,D
>>>   split T by cr and D
>>>   combine T by cr
>>>   return T
>>> end unNumberText
>> 
 Hermann H. wrote:
 1. Besides removing scroll-update, which takes most of the time, you could
 try the following array-methods (which are essentially from my stack
 
 http://forums.livecode.com/viewtopic.php?p=101301#p101301
 , see there
 card "LineNums, tab "Nb2").
 
 This needs here on a medium fast machine (Mac mini, 2.5GHz) in average
 with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that):
 
 680 ms for 1 lines to add the line numbers,
 650 ms for 1 lines to remove the line numbers,
 both incl. the field update (a lot of long lines are to break).
 
 -- Add "inline line numbers" [-hh fecit, 2014]
 -- Uses separator ": " (In LC 6 use one single char, remove below needs 
 that)
 on mouseUp
  lock screen; lock messages
  put the millisecs into m1
  set cursor to watch
  put fld "IN" into T
  split T by return
  put the keys of T into K
  sort K numeric
  repeat for each line L in K
put cr & L & ": " & T[L] after S --> change separator here
  end repeat
  set text of fld "OUT" to char 2 to -1 of S
  put -1+the num of lines of S & " lines: " & \
the millisecs -m1 & " ms" into fld "timing"
 end mouseUp
 
 -- Remove "inline line numbers" [-hh fecit, 2014]
 -- Uses separator ": " (the above, in LC 6 you have to use one single char)
 on mouseUp
  lock screen; lock messages
  put the millisecs into m1
  set cursor to watch
  

Re: Numbering lines

2018-10-28 Thread David V Glasgow via use-livecode
Thanks Geoff, I did play with Split, but one of the reasons for numbering is to 
make any identical lines unique.  With split, for any that are not, all but one 
is deleted.  So definitely not the result I wanted.

I’ll sacrifice the progress bar and see where that leaves me.

Thanks folks.

> On 28 Oct 2018, at 1:32 am, Geoff Canyon via use-livecode 
>  wrote:
> 
> And of course if retaining the order isn't critical you could just go with:
> 
> function numberText T,D
>   split T by cr
>   combine T by cr and D
>   return T
> end numberText
> 
> function unNumberText T,D
>   split T by cr and D
>   combine T by cr
>   return T
> end unNumberText
> 
> On Sat, Oct 27, 2018 at 5:29 PM Geoff Canyon  wrote:
> 
>> Sorry, missed a delimiter reference:
>> 
>> function numberText T,D
>>   split T by return
>>   put "1" & D & T[1] into R
>>   repeat with K = 2 to item 2 of the extents of T
>>  put cr & K & D & T[K] after R --> change separator here
>>   end repeat
>>   return R
>> end numberText
>> 
>> On Sat, Oct 27, 2018 at 5:27 PM Geoff Canyon  wrote:
>> 
>>> Converted to functions with the text and delimiter as paramaters for ease
>>> of use:
>>> 
>>> -- Add "inline line numbers" [-hh fecit, 2014]
>>> function numberText T,D
>>>   split T by return
>>>   put "1:" && T[1] into R
>>>   repeat with K = 2 to item 2 of the extents of T
>>>  put cr & K & D & T[K] after R
>>>   end repeat
>>>   return R
>>> end numberText
>>> 
>>> -- Remove "inline line numbers" [-hh fecit, 2014]
>>> function unNumberText T,D
>>>   split T by return and D
>>>   put the keys of T into K
>>>   sort K numeric
>>>   repeat for each line L in K
>>>  put cr & T[L] after R
>>>   end repeat
>>>   return char 2 to -1 of R
>>> end unNumberText
>>> 
>>> 
>>> 
>>> On Sat, Oct 27, 2018 at 11:54 AM hh via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 1. Besides removing scroll-update, which takes most of the time, you
 could
 try the following array-methods (which are essentially from my stack
 http://forums.livecode.com/viewtopic.php?p=101301#p101301 , see there
 card "LineNums, tab "Nb2").
 
 This needs here on a medium fast machine (Mac mini, 2.5GHz) in average
 with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that):
 
 680 ms for 1 lines to add the line numbers,
 650 ms for 1 lines to remove the line numbers,
 both incl. the field update (a lot of long lines are to break).
 
 -- Add "inline line numbers" [-hh fecit, 2014]
 -- Uses separator ": " (In LC 6 use one single char, remove below needs
 that)
 on mouseUp
  lock screen; lock messages
  put the millisecs into m1
  set cursor to watch
  put fld "IN" into T
  split T by return
  put the keys of T into K
  sort K numeric
  repeat for each line L in K
put cr & L & ": " & T[L] after S --> change separator here
  end repeat
  set text of fld "OUT" to char 2 to -1 of S
  put -1+the num of lines of S & " lines: " & \
the millisecs -m1 & " ms" into fld "timing"
 end mouseUp
 
 -- Remove "inline line numbers" [-hh fecit, 2014]
 -- Uses separator ": " (the above, in LC 6 you have to use one single
 char)
 on mouseUp
  lock screen; lock messages
  put the millisecs into m1
  set cursor to watch
  put the text of fld "OUT" into S
  split S by return and ": " --> change separator here
  put the keys of S into K
  sort K numeric
  repeat for each line L in K
put cr & S[L] after T
  end repeat
  put char 2 to -1 of T into fld "IN2"
  put -1+the num of lines of T & " lines: " & \
the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld
 "timing"
 end mouseUp
 
 2. All "big" editors that show line numbers never update the whole long
 text
 ** but only a few lines more than the visible line range **. Using that,
 nearly
 every LCS method (that locks the screen (and messages)) will be fast
 enough.
 
> JLG wrote:
> Another issue may be the line that updates the scrollbar. Try
 commenting out
> that line as a test just to see if that's the problem. If so, you
 might opt
> for a spinner or progress bar instead.
> 
>> David Glasgow wrote:
>> your routine is about the same as mine - 3200 lines in 106 seconds
 (on my
>> fairly old MacBook).
>>> Mark Hsu wrote:
>>>  wrote:
>>> 
>>> I think your issue is where you say “put tcount & j into line
 tcount of it”
>>> — The line X of … call is very slow as it has to count every line
 from 1 - X.
>>> try this:
>>> 
>>> local tBuffer
>>> put 1 into tCount
>>> repeat for each line j in pText
>>> put tCount & j & lf after tBuffer
>>> add 1 to tCount
>>> set the thumbpos of scrollbar “filterprog” to tCount
>>> end repeat
>>> delete line -1 of tBuffer

Re: Numbering lines

2018-10-27 Thread David V Glasgow via use-livecode
Thanks Mark.  What you said makes sense, but when I actually  tested it, your 
routine is about the same as  mine - 3200 lines in 106 seconds (on my fairly 
old MacBook).

Cheers,

David G

> On 26 Oct 2018, at 6:41 pm, Mark Hsu via use-livecode 
>  wrote:
> 
> I think your issue is where you say “put tcount & j into line tcount of it” — 
> The line X of … call is very slow as it has to count every line from 1 - X.
> try this:
> 
> local tBuffer
> put 1 into tCount
> repeat for each line j in pText
>  put tCount & j & lf after tBuffer
>  add 1 to tCount
>  set the thumbpos of scrollbar “filterprog” to tCount
> end repeat
> delete line -1 of tBuffer
> put tBuffer into pText //If you want to update the initial variable with the 
> numbered lines
> put tBuffer into field “numberedtext"
> 
> - Mark Hsu
> 
> 
> 
>> On Oct 26, 2018, at 10:27 AM, David V Glasgow via use-livecode 
>>  wrote:
>> 
>> Hello folks
>> 
>> I am doing a content analysis of online chat and messaging.  Sometimes very 
>> large files, thousands or even hundreds of thousands of messages.  I am 
>> finding filter and find to be delightfully fast.
>> 
>> However…. Sometimes I want to prefix each line with the line number, and do 
>> this:
>> 
>> put  1 into tcount
>> repeat for each line j in it 
>> put tcount &  j into line tcount of it
>> put tcount + 1 into tcount
>> set the thumbpos of scrollbar "filterprog" to tcount
>>  end repeat
>>  put it into field  “numberedtext”
>> 
>> I use ‘it’ because of a dim memory (superstition? Myth?) from long ago that 
>> it is faster than an arbitrarily named variable.  Still, the whole process 
>> is pretty darned  slow.  Any brilliant suggestions?
>> 
>> 
>> Best Wishes,
>> David Glasgow
>> 
>> 
>> <http://www.i-psych.co.uk/> <https://twitter.com/iPsychApps>
>> 
>> <https://twitter.com/iPsychApps> <http://uk.linkedin.com/in/davidvglasgow>
>> <http://uk.linkedin.com/in/davidvglasgow>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Numbering lines

2018-10-26 Thread David V Glasgow via use-livecode
Hello folks

I am doing a content analysis of online chat and messaging.  Sometimes very 
large files, thousands or even hundreds of thousands of messages.  I am finding 
filter and find to be delightfully fast.

However…. Sometimes I want to prefix each line with the line number, and do 
this:

put  1 into tcount
 repeat for each line j in it 
  put tcount &  j into line tcount of it
  put tcount + 1 into tcount
  set the thumbpos of scrollbar "filterprog" to tcount
   end repeat
   put it into field  “numberedtext”

I use ‘it’ because of a dim memory (superstition? Myth?) from long ago that it 
is faster than an arbitrarily named variable.  Still, the whole process is 
pretty darned  slow.  Any brilliant suggestions?


Best Wishes,
David Glasgow


  

  
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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

2018-09-03 Thread David V Glasgow via use-livecode
My family was stranded for a while during a transfer at Frankfurt airport, 
while  a computer system refused to accept that ‘Glasgow’ was not a 
destination. ( At least, in that instance)

Having said that, the same error is much more commonly made by taxi drivers, 
who can’t avoid showing great disappointment, when I am just going to the local 
station.

Cheers,

David Glasgow

> On 1 Sep 2018, at 5:57 pm, Richmond Mathewson via use-livecode 
>  wrote:
> 
> That sounds remarkably like two women who are friends of my parents:
> 
> One is called "Gay" and the other one is called "Loveday". They were friends 
> at school 60 years ago
> and when they were both widowed they moved in together; although the son of 
> one of them fell out
> with his wife and now lives with them as well.
> 
> Assumptions are sometimes difficult to avoid.
> 
> Although my younger son did actually dislocate his knee jumping to 
> conclusions . . .
> 
> This was mainly because he was trying to skip a difficult bit . . .
> 
> But I digress.
> 
> Richmond.
> 
> On 1/9/2018 6:39 pm, J. Landman Gay via use-livecode wrote:
>> There is a town in Texas called West, made infamous a few years ago by a 
>> giant explosion. I don't think you can make assumptions about names of 
>> places.
>> 
>> Mark's suggestion to check for words ending in "s" will fail on many towns, 
>> though apostrophe-s may be safe.
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On September 1, 2018 5:49:30 AM Richmond Mathewson via use-livecode 
>>  wrote:
>> 
>>> I can see that the "problem", which my stack does not address, is with 2
>>> or 3 part place names:
>>> 
>>> The Rochester/Chester problem is easily dealt with.
>>> 
>>> While it should be realtively easy to have a subroutine to deal with
>>> words such as "West" (after all, there are no places just called "West"),
>>> places like a town my parents once lived in called "Haselbury Plucknett"
>>> would cause problems.
>>> 
>>> AND, places such as "Ruyton of the Eleven Towns"
>>> (https://en.wikipedia.org/wiki/Ruyton-XI-Towns)
>>> would really throw a spanner in the works.
>>> 
>>> Come to think of things . . .
>>> 
>>> Unless anyone's code can cope with "Ruyton of the Eleven Towns" it won't
>>> stand up: we could even go further and call
>>> this the "Ruyton of the Eleven Towns Test".
>>> 
>>> More muffled background noises.
>>> 
>>> Richmond.
>>> 
>>> On 1/9/2018 1:29 pm, Mark Waddingham via use-livecode wrote:
 On 2018-09-01 12:05, Richmond Mathewson via use-livecode wrote:
> Obviously, when considering names of places such as Colchester,
> Rochester and Chester one has
> to search for the longer names first and exclude them from later
> searches.
 
 The 'substring' problem (i.e. Chester being 'in' Rochester) isn't
 relevant in the above algorithm because we are 'tokenising' input and
 phrases - essentially changing the alphabet.
 
 i.e. "Rochester Chester Colchester" is turned into ABC, and we match
 A, B or C as atomic units.
 
 I should perhaps point out that the 'processText' operation probably
 needs to be a little better in practice - to at least include a 'stop'
 token for punctuation. For example:
 
 "The man walked starting from East Hartford, West Hartford could be
 seen in the distance."
 
 In the case where 'Hartford West' and 'Hartford' are the 'known' towns
 (and not 'East Hartford') - the proposed tokenization would result in:
 
 The,man,walked,starting,from,East,Hartford,West,Hartford,could,be,seen,in,the,distance
  
 
 Which means you'd get "Hartford West" and "Hartford" - when you should
 only get "Hartford" (assuming you care about the linguistic structure
 of the text, at least).
 
 Indeed, the above actually means in preprocessing the text, you can
 actually vastly reduce the number of words to search - any sequences
 of words which aren't in any pharse (or important punctuation) can be
 replaced by "*" say. So the above would become:
 
 *,East,Hartford,*,West,Hartford,*
 
 The "*" tokens block matching multi-word phrases.
 
 Warmest Regards,
 
 Mark.
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, 

Re: am I regexing by mistake?

2018-09-02 Thread David V Glasgow via use-livecode
For the record, this was my stupidity, nothing to do with escaping wildcards.  
Filter lines doesn’t treat a question mark as anything but text.  

The script I posted didn’t find 'asl?’ because I forgot to pre- and post- pend 
an asterisk before filtering.  So, connected to wildcards, but I was definitely 
barking up the wrong tree.

Cheers,

David G

> On 31 Aug 2018, at 3:35 pm, Brian Milby via use-livecode 
>  wrote:
> 
> Need to put question mark in brackets “[?]” when using wildcard filters if 
> you want to match a literal question mark. Otherwise it signifies a single 
> character match to anything.
> 
> Thanks,
> Brian
> On Aug 31, 2018, 9:12 AM -0500, David V Glasgow via use-livecode 
> , wrote:
>> Hello, folks.
>> 
>> I am undertaking keyword searches of chat logs. The keywords are stored as 
>> themed lists in fields.
>> 
>> One of the things I am interested in is finding lines where one contributor 
>> asks another about where they live, shop, go to school etc etc. So, (among 
>> other phrases) I filter for lines in the text containing the acronym “ asl ” 
>> (nowhere are quotes actually included in fields or variables, they’re just 
>> in this mail). I pad with spaces so as not to find “asleep”. I also want to 
>> find “asl?”
>> 
>> So I repeat through lines of the keyword field “location"
>> 
>> Filter lines of tsource with tpattern
>> 
>> … which works for everything except fails to match “asl?”. It occurred to me 
>> that perhaps the question mark is being interpreted as a regex symbol, so I 
>> tried changing the line in the field to read “ asl/?”, but that doesn’t find 
>> the “asl?” that I can see in the third line of the text to be searched….
>> 
>> 
>> shadownave (09/16/14 1:44:58 AM): hey care to chat
>> shadownave (09/16/14 1:45:09 AM): hey care to chat
>> what_sez_moo (09/16/14 1:45:18 AM): sure asl?
>> what_sez_moo (09/16/14 1:45:52 AM): 13 / F / Ashton here
>> shadownave (09/16/14 1:51:00 AM): 25/m/Derby
>> shadownave (09/16/14 1:51:03 AM): how r u tonight
>> what_sez_moo (09/16/14 1:51:16 AM): bored.
>> 
>> 
>> What am I doing wrong? Is this something to do with regex?
>> 
>> Oh yes, and I thought there might be invisible characters messing things up, 
>> so I exported source text as plain text from BBedit, with no improvement.
>> 
>> best wishes
>> 
>> David Glasgow
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: am I regexing by mistake?

2018-08-31 Thread David V Glasgow via use-livecode
Ah!  So its just a wildcard!  Brilliant.  Why didn’t I think of that?

 I was wrongly barking up the Regex tree, and making things more complicated 
than needed.

Thank you Brian.

Cheers

David G

> On 31 Aug 2018, at 3:35 pm, Brian Milby via use-livecode 
>  wrote:
> 
> Need to put question mark in brackets “[?]” when using wildcard filters if 
> you want to match a literal question mark. Otherwise it signifies a single 
> character match to anything.
> 
> Thanks,
> Brian
> On Aug 31, 2018, 9:12 AM -0500, David V Glasgow via use-livecode 
> , wrote:
>> Hello, folks.
>> 
>> I am undertaking keyword searches of chat logs. The keywords are stored as 
>> themed lists in fields.
>> 
>> One of the things I am interested in is finding lines where one contributor 
>> asks another about where they live, shop, go to school etc etc. So, (among 
>> other phrases) I filter for lines in the text containing the acronym “ asl ” 
>> (nowhere are quotes actually included in fields or variables, they’re just 
>> in this mail). I pad with spaces so as not to find “asleep”. I also want to 
>> find “asl?”
>> 
>> So I repeat through lines of the keyword field “location"
>> 
>> Filter lines of tsource with tpattern
>> 
>> … which works for everything except fails to match “asl?”. It occurred to me 
>> that perhaps the question mark is being interpreted as a regex symbol, so I 
>> tried changing the line in the field to read “ asl/?”, but that doesn’t find 
>> the “asl?” that I can see in the third line of the text to be searched….
>> 
>> 
>> shadownave (09/16/14 1:44:58 AM): hey care to chat
>> shadownave (09/16/14 1:45:09 AM): hey care to chat
>> what_sez_moo (09/16/14 1:45:18 AM): sure asl?
>> what_sez_moo (09/16/14 1:45:52 AM): 13 / F / Ashton here
>> shadownave (09/16/14 1:51:00 AM): 25/m/Derby
>> shadownave (09/16/14 1:51:03 AM): how r u tonight
>> what_sez_moo (09/16/14 1:51:16 AM): bored.
>> 
>> 
>> What am I doing wrong? Is this something to do with regex?
>> 
>> Oh yes, and I thought there might be invisible characters messing things up, 
>> so I exported source text as plain text from BBedit, with no improvement.
>> 
>> best wishes
>> 
>> David Glasgow
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

am I regexing by mistake?

2018-08-31 Thread David V Glasgow via use-livecode
Hello, folks.

I am undertaking keyword searches of chat logs.  The keywords are stored as 
themed lists in fields.

One of the things I am interested in is finding lines where one contributor 
asks another about where they live, shop, go to school etc etc.  So, (among 
other phrases) I filter for lines in the text containing the acronym “ asl ” 
(nowhere are quotes actually included in fields or variables, they’re just in 
this mail).  I pad with spaces so as not to find “asleep”.  I also want to find 
“asl?”  

So I repeat through lines of the keyword field “location"

Filter lines of tsource with tpattern

…  which works for everything except fails to match “asl?”.  It occurred to me 
that perhaps the question mark is being interpreted as a regex symbol, so I 
tried changing the line in the field to read “ asl/?”, but that doesn’t find 
the “asl?” that I can see in the third line of the text to be searched….


shadownave (09/16/14 1:44:58 AM): hey care to chat
shadownave (09/16/14 1:45:09 AM): hey care to chat
what_sez_moo (09/16/14 1:45:18 AM): sure asl?
what_sez_moo (09/16/14 1:45:52 AM): 13 / F / Ashton here
shadownave (09/16/14 1:51:00 AM): 25/m/Derby
shadownave (09/16/14 1:51:03 AM): how r u tonight
what_sez_moo (09/16/14 1:51:16 AM): bored.


What am I doing wrong?  Is this something to do with regex?

Oh yes, and I thought there might be invisible characters messing things up, so 
I exported source text as plain text from BBedit, with no improvement.

best wishes

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Memory related crash??

2018-08-16 Thread David V Glasgow via use-livecode
In the great tradition of answering your own question.

I just tried the identical process in LC7

Loading the text file takes memory up to a similar size as in LC 8.1.10, but 
the script runs successfully and even repeats for multiple collections of 
keywords without memory pressure rising at all, and LC memory never rises above 
300MB

Everything seems brisker, too.

Best wishes,

David G

> On 15 Aug 2018, at 5:46 pm, David V Glasgow  wrote:
> 
> but is it me?
> 
> Mac OS 10.12.6, LC 8.1.10
> 
> I have a 4 card stack which when loaded takes the LC memory to 66MB
> I then load a 25MB plain text file into a scrolling field  (which takes maybe 
> 20 seconds and shows LC as 'not responding’ in Activity Monitor).  This take 
> memory to 282MB
> I then perform the following script  Where the field “coerckey” is a list of 
> 21 keywords I need to find in the imported text.
> 
>put empty into field "foundlines"
>put empty into ttemp
>put empty into field "totaliser"
>put 1 into ttcount
>repeat for each line i in field "coerckey"
>   put i into field "currentkey"
>   put field "import" into ttemp
>   filter lines of ttemp with regex pattern i
>   put ttemp & return before field "foundlines" 
> put "•••  " & i & "   •••" & return before field "foundlines"
> filter field "foundlines" without empty
> put the number of lines of field "foundlines" -ttcount  into field 
> "coerfreq"
> put ttcount + 1 into ttcount
>end repeat
> 
> It works fine, and at a reasonable lick, but the memory balloons to 2.46 GB, 
> and is never released, even after the handler is done.  I have several other 
> similar scripts, and unsurprisingly, after two or three, LC chokes.
> 
> I read somewhere that there was a memory leak in a previous version related 
> to the filter command, although I thought that was something to do with 
> Unicode.
> 
> So is what I see down to me, or LC?
> 
> Best wishes,
> 
> David Glasgow
> 
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Memory related crash??

2018-08-15 Thread David V Glasgow via use-livecode
but is it me?

Mac OS 10.12.6, LC 8.1.10

I have a 4 card stack which when loaded takes the LC memory to 66MB
I then load a 25MB plain text file into a scrolling field  (which takes maybe 
20 seconds and shows LC as 'not responding’ in Activity Monitor).  This take 
memory to 282MB
I then perform the following script  Where the field “coerckey” is a list of 21 
keywords I need to find in the imported text.

   put empty into field "foundlines"
   put empty into ttemp
   put empty into field "totaliser"
   put 1 into ttcount
   repeat for each line i in field "coerckey"
  put i into field "currentkey"
  put field "import" into ttemp
  filter lines of ttemp with regex pattern i
  put ttemp & return before field "foundlines" 
put "•••  " & i & "   •••" & return before field "foundlines"
filter field "foundlines" without empty
put the number of lines of field "foundlines" -ttcount  into field 
"coerfreq"
put ttcount + 1 into ttcount
   end repeat

It works fine, and at a reasonable lick, but the memory balloons to 2.46 GB, 
and is never released, even after the handler is done.  I have several other 
similar scripts, and unsurprisingly, after two or three, LC chokes.

I read somewhere that there was a memory leak in a previous version related to 
the filter command, although I thought that was something to do with Unicode.

So is what I see down to me, or LC?

Best wishes,

David Glasgow


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML to text in field

2018-08-09 Thread David V Glasgow via use-livecode
D’OH!

> On 9 Aug 2018, at 2:23 pm, Klaus major-k via use-livecode 
>  wrote:
> 
> 
> "replacetext ()" is a FUNCTION and not a handler! :-)

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML to text in field

2018-08-09 Thread David V Glasgow via use-livecode
Thanks Richmond, I will mess about with your suggestions.  It's always much 
appreciated when someone takes the time to suggest a complete handler.

But …. I want more!  Can you see anything wrong with this?


replaceText (ttemp, "<*>", "|")

or have a clue about the error message? 

 “button "Import HTML": execution error at line 7 (Handler: can't find handler) 
near "replaceText", char 1”

Cheers,

David G
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

HTML to text in field

2018-08-09 Thread David V Glasgow via use-livecode
Hello folks,

I am having an interesting time (MacOS 10.13.5 LC 8.1.9) trying to load some 
HTML files (≤ 5 ish MB).  Most of them will be lists or tables, generated by 
various users on various systems.

I don’t want to retain any of the formatting, except line endings, so I would 
be happy for tables to appear as lists.  I found a little 2013 nugget from the 
estimable  Jacqueline Landman Gay

set the htmltext of the templatefield to htmlVar -- variable contains the html 
string
put the text of the templatefield into tPlainText

In some cases that works fine, but in others, it seems that HTML tables 
consisting  of maybe 20-30 thousand rows are rendered onto a single line of the 
field.  A sort of black-letters-overwritten splodge appears in the first row 
and LC cranks up to 100% of the processor and BBoD ensues.

Sometimes it never seems to recover, but other times it hands back control 
after maybe 20 minutes or so, and in those cases I can see the text if I set 
dontwrap to false.  It contains no line endings from the original table, and a 
shedload of tabs.

I have tried to operate on the HTML string in a variable before putting it into 
the field, but frankly don’t really know what property of some HTML tables 
might mean that line endings are lost.  I can only see  when I examine the 
files in an editor.  

I tried a different approach, replacing a row end with a cr, and then stripping 
out tags:

put URL ("file:" & theFilePath) into ttemp

replace "" with cr in ttemp

replaceText (ttemp, "<*>", "|")

filter lines of ttemp without empty

set the text of field "import" to ttemp


The replaceText line generates an error “button "Import HTML": execution error 
at line 7 (Handler: can't find handler) near "replaceText", char 1”  

Firstly I don’t get the error, and secondly I am worried I may be over 
complicating something which should be simple.

Advice please!

Best wishes,

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Newbie Regex confusion

2018-08-01 Thread David V Glasgow via use-livecode
Thank you both.  Wow.  Looks like it really is worth the effort!  I played 
around on regex101.com, but the problem is if you don’t know the terms for what 
you want to do, its really hard to find the appropriate symbol.

Thanks again.

> On 1 Aug 2018, at 6:24 pm, Brian Milby via use-livecode 
>  wrote:
> 
> Don’t have time to test right now but something along these lines:
> 
> \b[0-9] ?(yr|yo|year)
> 
> \b is a word break
> ? Means 0 or 1 of previous char (space)
> | is alternate separator
> 
> Thanks,
> Brian
> On Aug 1, 2018, 11:58 AM -0500, Stephen MacLean via use-livecode 
> , wrote:
>> Hi David,
>> 
>> While no expert on Regex, there are some online tools and libraries that you 
>> can use to work out the appropriate regex before putting it into your LC 
>> script.
>> 
>> Some sites I use:
>> 
>> https://www.regextester.com
>> 
>> https://regex101.com
>> 
>> https://www.rexegg.com/regex-quickstart.html
>> 
>> and
>> 
>> http://www.regexlib.com
>> 
>> which has a lot of pre-built regex codes and examples. Most work without 
>> issue when putting them into LCS.
>> 
>> You can also take a look, if you haven’t already, at an example that I made 
>> using LCS and LCB, rsIsValid: 
>> https://forums.livecode.com/viewtopic.php?t=26653
>> 
>> HTH!
>> 
>> Steve MacLean
>> 
>>> On Aug 1, 2018, at 12:34 PM, David V Glasgow via use-livecode 
>>>  wrote:
>>> 
>>> 
>>> I am just dipping my toes in the shallows of regex, and have already 
>>> stubbed my toe on a rock. Well two, actually.
>>> 
>>> I am looking to identify the lines of a field (that contain lots of words 
>>> and symbols with no particular structure or separator ) finding age related 
>>> terms, which can be in a variety of forms. I made a list of the terms that 
>>> I want to use.
>>> 
>>> First problem:
>>> 
>>> I use the following filter line
>>> 
>>> filter lines of it with regex pattern i
>>> 
>>> … where i is a keyword lifted from my list. Oddly, where i is just ordinary 
>>> characters, it works fine. However if it includes a wildcard symbol, it 
>>> chokes with “execution error at line 9 (matchChunk: error in pattern 
>>> expression), char 1”. For example, if i = child* (intending to match child, 
>>> childlike, childhood, childish etc). I know that’s a bad example, because 
>>> just ‘child' will do the trick. However, there seems to be some voodoo 
>>> needed to put a regex expression into a variable, is that right?
>>> 
>>> Second problem is the sheer brain ache from trying to work out how to 
>>> efficiently match lines containing 8 yo, 8 yr, 8yr, 8yo, 8 year and 8year, 
>>> but not 18 year, 38yo etc etc.
>>> 
>>> The simplest way would be to include all variants in the keyword list. 
>>> However, that means more sweeps through the repeat loop. And it wouldn’t 
>>> solve the problem of excluding 18 yo, 28 yo matching, unless I can 
>>> construct a regex expression which will test the absence of any number 
>>> between 1 and 9 immediately before the actual string I am finding.
>>> 
>>> Am I on a wild goose chase here?
>>> 
>>> 
>>> 
>>> 
>>> Best Wishes,
>>> David Glasgow
>>> 
>>> 
>>> <http://www.i-psych.co.uk/> <https://twitter.com/iPsychApps>
>>> 
>>> <https://twitter.com/iPsychApps> <http://uk.linkedin.com/in/davidvglasgow>
>>> <http://uk.linkedin.com/in/davidvglasgow>
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Newbie Regex confusion

2018-08-01 Thread David V Glasgow via use-livecode

I am just dipping my toes in the shallows of regex, and have already stubbed my 
toe on a rock.  Well two, actually.

I am looking to identify the lines of a field (that contain lots of words and 
symbols with no particular structure or separator ) finding age related terms, 
which can be in a variety of forms.  I made a list of the terms that I want to 
use.

First problem:

I use the following filter line

filter lines of it with regex pattern i

… where i is a keyword lifted from my list.  Oddly, where i is just ordinary 
characters, it works fine.  However if it includes a wildcard symbol, it chokes 
with “execution error at line 9 (matchChunk: error in pattern expression), char 
1”.  For example, if i = child* (intending to match child, childlike, 
childhood, childish etc).  I know that’s a bad example, because just ‘child' 
will do the trick.  However, there seems to be some voodoo needed to put a 
regex expression into a variable, is that right?

Second problem is the sheer brain ache from trying to work out how to 
efficiently  match lines containing 8 yo, 8 yr, 8yr, 8yo, 8 year and 8year, but 
not 18 year, 38yo etc etc.

The simplest way would be to include all variants in the keyword list.  
However, that means more sweeps through the repeat loop.  And it wouldn’t solve 
the problem of excluding  18 yo, 28 yo matching, unless I can construct a regex 
expression which will test the absence of any number between 1 and 9 
immediately before the actual string I am finding.  

Am I on a wild goose chase here?  




Best Wishes,
David Glasgow


  

  
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Tessellated hexagonal grid?

2018-07-01 Thread David V Glasgow via use-livecode
Most excellent!

> On 30 Jun 2018, at 1:26 am, hh via use-livecode 
>  wrote:
> 
> A simple hexagonal grid creating stack:
> http://forums.livecode.com/viewtopic.php?p=168657#p168657
> 
> You choose the number of rows and columns and, for "scaling",
> the horizontal radius and vertical radius of the circumellipses.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Tessellated hexagonal grid?

2018-06-29 Thread David V Glasgow via use-livecode
Not sure whether you really want to know or not ;-)

Richmond puts his finger on it really.  Most of the properties of a graphic 
polygon don’t relate to geometric features of the polygon itself - except when 
it is a rect.  So, as Richard says, tiling them or otherwise changing 
properties of target and adjacent hexes on the fly will involve what the Bash 
Street Kids called "hard sums”  
.
  

If I do go with hexes, I’m thinking the lazy way (my way) would be to simply 
show hidden hexes rather than allow allow true creation.  That would mean 
having a hard edge - which on the plus side would at least prevent Richmond’s 
flat earther’s falling off.

Best wishes,

David G

> On 27 Jun 2018, at 10:32 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> I would agree if I understood one word of it, or even what the problem was 
> this approach was trying to solve. 
> 
> Bob S
> 
> 
>> On Jun 27, 2018, at 08:42 , Rick Harrison via use-livecode 
>>  wrote:
>> 
>> Great resource and read.
>> 
>> Thanks!
>> 
>> Rick
>> 
>>> On Jun 27, 2018, at 5:30 AM, hh via use-livecode 
>>>  wrote:
>>> 
>>> Here a rather complete guide to the "theory" with a link
>>> to implementation guides for several programming languages,
>>> especially, close to LC, JavaScript.
>>> 
>>> https://www.redblobgames.com/grids/hexagons/
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Tessellated hexagonal grid?

2018-06-27 Thread David V Glasgow via use-livecode
Thanks for all the responses regarding hexes.  

I had already worked through the ‘redblobgames’ resources, and it was the 
prospect of trying to implement a hex system in Livecode which was the gotcha.  

The frustrating thing is that the polygon object displays a nice scaleable hex 
- and yet it seems this is not a viable route?  Why would SVG be any better?  
(thats not a lament or rhetorical question, I would be very interested to know)

Cheers

David Glasgow

> On 27 Jun 2018, at 10:30 am, hh via use-livecode 
>  wrote:
> 
> Here a rather complete guide to the "theory" with a link
> to implementation guides for several programming languages,
> especially, close to LC, JavaScript.
> 
> https://www.redblobgames.com/grids/hexagons/
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Tessellated hexagonal grid?

2018-06-25 Thread David V Glasgow via use-livecode
Quite a few old school (and a few newer) games use a tessellated hexagonal 
grid.  Remember Railway Rivals, anyone?

I just started to play around with the idea of a grid using Livecode polygons.  
Specifically, a map that can grow organically by sprouting  hexes at the edges. 
 I was surprised and disappointed to see how tricky it looks to be to do 'on 
the fly’ i.e. creating and then aligning hexes.


Has anyone else played around with this?  Any advice?  It seems to me that the 
line of least resistance is to have a huge grid of ready tessellated invisible 
hexes which can be shown as required.


Best Wishes,
David Glasgow


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Was: URGENT: MergGoogle no longer works on iOS: CLIENTS VERY UNHAPPY

2018-05-29 Thread David V Glasgow via use-livecode


> On 25 May 2018, at 5:07 pm, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> This, too, is overwhelming. A little disturbing too as it was embarked on
> by people who know very little about me or the facts behind the situation.

Morning, Sean.

There is another way of looking at this.  Many folks don’t know you well, but 
felt a connection.  We don’t need to know all the facts and details.  We 
recognised a fellow coder in distress.  We could imagine how we might feel in 
your situation, because it's a precipice we have all seen at close quarters, 
and at least imagined falling in. 

There was no greater knowledge, connection or judgement required to reach out.  
As far as I am concerned, if it makes you feel better to give the money to a 
deserving cause, that’s fine.  If you use it to help you get back on your feet, 
that’s fine too.  It would be great to see you popping up on this list in 
future, but if not, well, good luck on whatever path you take.  When you find 
yourself in the fortunate position to help out someone else struggling in the 
future (and you will), just 'pay it forward’.

Best wishes,

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Emergency Help?

2018-05-03 Thread David V Glasgow via use-livecode
Me too…

David Glasgow

> On 3 May 2018, at 12:22 pm, Peter Reid via use-livecode 
>  wrote:
> 
> Hi
> 
> What's the news about Sean, has anyone made contact with him and has he 
> accepted the help?  I'm asking as I'm about to make a donation and I'd like 
> to be sure that this will get through to him before I proceed.
> 
> Thanks
> 
> Peter
> --
> Peter Reid
> Loughborough, UK
> 
>> On 2 May 2018, at 7:37pm, use-livecode-requ...@lists.runrev.com wrote:
>> 
>> Message: 10
>> Date: Wed, 2 May 2018 19:14:10 +0100
>> From: Lagi Pittas >
>> To: How to use LiveCode > >
>> Subject: Re: URGENT: MergGoogle no longer works on iOS: CLIENTS VERY
>>  UNHAPPY
>> Message-ID:
>>  > >
>> Content-Type: text/plain; charset="UTF-8"
>> 
>> Hi All
>> 
>> I have set it up - but I want to have the money go directly to Sean
>> 
>> Ive just read that if I put seans email address in it will send him an
>> invite so he will be the only one able to withdraw funds.
>> 
>> I am waiting his acceptance but I think we can add to it without him
>> accepting -I HAVE NO WAY OF WITHDRAWING MONEY FROM THIS ACCOUNT.
>> 
>> 
>> https://www.gofundme.com/scemergency 
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Blurring field contents

2018-04-02 Thread David V Glasgow via use-livecode
Thanks for all the suggestions, but blur works really well.  I just take a 
snapshot of the field, blur the resultant image, overlay it on the confidential 
field, snapshot the entire card to clipboard and then delete the blurred image.

I had to manually include it in the standalone, though, which confused me  a 
tad.

Also, fields (or is it fonts) are different in LC8.  Two fields with identical 
content,  font (arial MS) and settings, one clips the very top of the text and 
the other doesn’t.Nudging the margin up 1 fixes the issue, but it is a bit 
confusing.

Best wishes,

David G

 

> On 30 Mar 2018, at 4:40 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> Or make a generic "blur" image in a graphics program and overlay it on the 
> fields when needed.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On March 30, 2018 9:07:48 AM Rick Harrison via use-livecode 
>  wrote:
> 
>> You could also make up bogus text data to show instead of using real data.
>> 
>> Rick
>> 
>> > On Mar 29, 2018, at 11:48 PM, scott--- via use-livecode 
>> >  wrote:
>> >
>> > If blurring turns out to be too problematic you might consider just 
>> > replacing text with bullets or Lorem Ipsum.
>> >
>> > --
>> > Scott Morrow
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Blurring field contents

2018-03-29 Thread David V Glasgow via use-livecode


> On 29 Mar 2018, at 5:44 pm, Paul Hibbert via use-livecode 
>  wrote:
> 
> That tutorial is a bit outdated now that there is a “blur” command, 
> introduced in LC 8.0, it’s quicker and easier to use.
> 
> Paul
> 

Ah! Thank you, Paul.  That’s good to know.  I am a bit Richmondesque in my 
attachment to older versions of LC, so I have only played a little with LC 8 

To those asking why I would want to do this, the answer is to hide clinically 
sensitive information whilst making it clear that the field is completed.  It 
means that clinicians can generate an anonymised snapshot of the screen to use 
in presentations/clinical supervision.  Its a technique routinely used in 
walkthroughs or screencasts of clinical information displayed on screen.  There 
was a rather nice implementation in the ScreenSteps app from Blue Mango .

Thanks and best wishes,

David G
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Blurring field contents

2018-03-29 Thread David V Glasgow via use-livecode
I want to give users options for capturing anonymised cards, and wondered about 
blurring text - maybe by overlaying a graphic of the text and blurring that?  

There is an LC tutorial about blurring images 
, but 
it seems complex for simply blurring names and addresses in a couple of fields.

Any suggestions?


Best Wishes,
David Glasgow


 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Inferring absence of physical keyboard in Win 10 'convertible' device

2018-03-23 Thread David V Glasgow via use-livecode
I apologise in advance for the ugliness of my attempt at a solution to the 
above.

Just a brief gratuitous update on strangeness associated with Inferring absence 
of physical keyboard in Win 10.  The Win 10 tablet itself knows the keyboard 
has been detached, because the cursor disappears (although LC continues to 
detect the location of the invisible cursor, because tooltips are sometimes 
triggered).  However it seems there is no flag accessible to developers.  
Various online recipes appear in different languages, but none appear to be 
accepted as foolproof.

The simple kludge I came up with works fairly well.  Counting mousemoves 
generated on a setup screen allows me to reliably determine whether the input 
is mouse or touch (the latter presuming keyboard absent).  However, the cut off 
isn’t as clear as I thought it might be.  This is because mousemoves appear to 
be generated when the pointer doesn’t actually move

Opening the card containing the mousemove counter always generates 3 mousemove 
messages without the screen being touched in any way.  Any tap generates 4 
mousemoves.  So open card + popup + select option + radio button + go button = 
3+4+4+4+4= 18 minimum.  I could reduce that a bit by zeroing the mousemove 
count after the popup selection.

Luckily it seems impossible to do the same using a mouse-pointer with fewer 
than 70 mousemoves, so if the platform is Win and mousemoves <60 I present a 
“It looks like you are using this device as a tablet, is that right?” dialog.  
A ‘Yes’ enables the use of on screen keyboard and numeric keypad on the main 
card.  Also, someone using the screen as a tablet but with a mouse attached 
would slip through the net. However, a false positive here is not a great 
inconvenience.

False negatives remain a possibility, though.  Obviously a rather touchy, 
clumsy, strokey tablet user could generate another 42 mousemove events, and 
thus transition to the main card with no means of entering data.  

The built in on-screen keyboard is also pretty horrible.  Often obscuring the 
important parts of the screen, and apparently arbitrarily invoked or not 
invoked.  In short, Microsoft’s ‘continuum’ seems to be more ambitious and 
complicated than Apple's ‘continuity’, and rather difficult  to manage as a 
user and developer.


Best Wishes,
David Glasgow


  

  
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: What LC or OS incantation do I use to involve the onscreen keyboard on a Win 10 tablet?

2018-03-21 Thread David V Glasgow via use-livecode
Thanks, Richmond, but as far as I can establish there is no way of detecting 
whether there is a physical keyboard attached to a Windows detachable keyboard 
device.  Quite a few Win programmers have discussed the issue, but no reliable 
solutions posted.

So I have come up with something that seems to work, and I would appreciate any 
predictable fail scenarios.

My app has a brief set up screen - select from pop up, select radio button, 
click start.  If that is achieved and is associated with > n mousemove 
messages, I’m assuming a mouse/trackpad is present, and therefore we are not 
running as a tablet, (either in tablet mode, or Win 10 touch screen without 
tablet mode).  I can then enable tooltips and not invoke an onscreen keyboard.  
(and vice versa)

I think I’d have to wait a while before the Glasgow Tartan appears in Aldi - 
but if it does…..

Best wishes,

David Glasgow

> On 19 Mar 2018, at 12:33 pm, Richmond via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> I thought my buying USB Microscopes in LIDL was an all-time low . . .
> 
> Mind you, a friend of mine bought a kilt there.
> 
> 
> On 19.03.2018 13:27, David V Glasgow via use-livecode wrote:
>> Colleagues in Livecode,
>> 
>> I just purchased a Win 10 ‘convertible’ tablet from Lidl 
>> <https://www.lidl.de/de/trekstor-surftab-twin-10-1/p255395> solely for quick 
>> Win testing LC.  The upside is that it is astonishing value for money (£169).
>> 
>> The downside is that the on screen keyboard isn’t automatically invoked when 
>> no keyboard is attached and the cursor enters a field.  I can access the KB 
>> from the task bar, but who wants to do that all the time?  It also doesn’t 
>> seem to move things about to avoid the KB overlaying the field in question.
> 
> Right click (hold and release) in the textField, and select show touch 
> keyboard icon.
> 
> Fairly inconvenient!
> 
> Here's some horrible Visual BASIC:
> 
> Sub Keyboard()
> On Error GoTo ErrorHandler
> 
> Call ShellEx("C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe")
> 
> ProcedureExit:
> Exit Sub
> 
> ErrorHandler:
> MsgBox "Error" & ": " & Err.Number & vbCrLf & "Description: " _
> & Err.Description, vbExclamation, "Module1.Keyboard"
> Resume ProcedureExit
> 
> End Sub
> 
> https://borncity.com/win/2015/08/24/windows10-upgrade-on-screen-keyboardtouchscreen-fix/
>> 
>> I have seen a few complaints online that seem to suggest that this is how it 
>> works in Win 10.  I have a hard time believing that because it is so 
>> spectacularly stupid and irritating.
> I don't, frankly.
> 
>> Some apps seem to have worked around this problem, and I hope that someone 
>> on this list has also done so.
>> 
>> Any advice?  If I have to roll my own KB + field avoidance+ text entry 
>> system I will, but surely that shouldn’t be necessary?
>> 
>> Best wishes,
>> 
>> David Glasgow
>> 
>> ___
>> 
> 
> Best of luck, Richmond.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

What LC or OS incantation do I use to involve the onscreen keyboard on a Win 10 tablet?

2018-03-19 Thread David V Glasgow via use-livecode

Colleagues in Livecode,

I just purchased a Win 10 ‘convertible’ tablet from Lidl 
 solely for quick 
Win testing LC.  The upside is that it is astonishing value for money (£169).

The downside is that the on screen keyboard isn’t automatically invoked when no 
keyboard is attached and the cursor enters a field.  I can access the KB from 
the task bar, but who wants to do that all the time?  It also doesn’t seem to 
move things about to avoid the KB overlaying the field in question.

I have seen a few complaints online that seem to suggest that this is how it 
works in Win 10.  I have a hard time believing that because it is so 
spectacularly stupid and irritating.  Some apps seem to have worked around this 
problem, and I hope that someone on this list has also done so.

Any advice?  If I have to roll my own KB + field avoidance+ text entry system I 
will, but surely that shouldn’t be necessary?

Best wishes,

David Glasgow

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

OT: Develop yourself?

2018-03-14 Thread David V Glasgow via use-livecode

I’ve just examined the premium pack of LiveCode goodies for me (and you) to 
enjoy.  Am I the only one unsettled by the feeling that “Develop yourself” on 
merchandise sounds like it might involve steroids, exercise, or a vacuum pump?


Best Wishes,
David Glasgow


 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Object layers

2018-01-10 Thread David V Glasgow via use-livecode

> . I continue to be amazed and thankful for the warm spirit of helpfulness and 
> friendliness in this community, freely given.
> 

Me too.  Nicely put.

David Glasgow


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Copying text in boxes to clipboard

2017-12-08 Thread David V Glasgow via use-livecode
Hello Charles,

I very often have to manipulate psychological test and subtest scores in LC 
that have to be exported in different formats.  It is difficult to be sure I 
understand what you are trying to do, but I will say that I find the following 
the approach is one that suits me:

• I store item numbers which contribute to sub scale scores in a custom 
property of a field that contains the sub scale score.  Sometimes 2 properties 
if some items are reverse scored.  Very easy then to step through any number of 
sub scale fields with a generic script which will populate each with the 
correct result.  I like to use custom properties because they are easier to 
check and change than if they are buried in a script.  

• I write several ‘harvest' routines to gather the data from scored up test and 
subtest fields, and store the results as a tab delimited  table in an ordinary 
LC field, in whatever format is required. (by ‘format’ I mean 1 case per line, 
or rows and columns for each case, not digital ‘formats’)  The contents of that 
field can then be printed, copied to the clipboard or exported as a file. 

With only 14 fields, it will be very quick once you have gone through the 
drudgery of writing the ‘data harvest’ scripts.

Am I on the right lines?

Best wishes,

David Glasgow




> On 8 Dec 2017, at 2:51 pm, Charles Szasz via use-livecode 
>  wrote:
> 
> I have 14 fields for subtest names named test1, test2, test3,..test14 and 
> another 14 fields for scores named score1, score2, score3,..score14.  They 
> are all associated with different tests. Some tests will have all 14 subtests 
> and scores while others will have only have one subtest and one score.  The 
> test names and scores are all the same length. 
> 
> I greatly appreciate your willingness to help me.  I have been dealing with 
> this problem for a month or so.  If you need more information, please let me 
> know.  
> 
> Sent from my iPad
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Finding on online shop window for apps (was Re: Awful quiet around here )

2017-11-16 Thread David V Glasgow via use-livecode
Seems like someone ?Scott Rossi worked this one out

http://www.discamus.com/nunc/how/ 

but it still involves a merchant site.  I don’t understand why that should be 
necessary.  

Best wishes,

David G


> On 16 Nov 2017, at 9:25 am, David V Glasgow  wrote:
> 
> Thanks to all on and off list responses to my questions.  I have looked at 
> all comments and suggestions, and have another question.
> 
> Instead of paying for a merchant site, wouldn’t it be possible to script a 
> desktop app to license itself via say, Paypal?  Effectively implementing  an 
> in-app purchase model on desktop?  I have seen references to Paypal being 
> used to buy digital products with embedded code, including “software”, but 
> can’t track down a clear explanation of what this involves.
> 
> Best wishes
> 
> David Glasgow

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Finding on online shop window for apps (was Re: Awful quiet around here )

2017-11-16 Thread David V Glasgow via use-livecode
Thanks to all on and off list responses to my questions.  I have looked at all 
comments and suggestions, and have another question.

Instead of paying for a merchant site, wouldn’t it be possible to script a 
desktop app to license itself via say, Paypal?  Effectively implementing  an 
in-app purchase model on desktop?  I have seen references to Paypal being used 
to buy digital products with embedded code, including “software”, but can’t 
track down a clear explanation of what this involves.

Best wishes

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Finding on online shop window for apps (was Re: Awful quiet around here )

2017-11-14 Thread David V Glasgow via use-livecode
I’ll step in to fill the eerie silence!


Over the years I have made a few niche apps which might make a few sales.  
Although I have created apps with user name generated keys, I have never got 
around to  selling online.  I just send folks evaluation copies or point them 
to a Dropbox link, and if they ask for a full version, generate a key and 
invoice via email

I finally started looking at how online sales for desktop apps might work, and 
at different services.   If I could only find an e-commerce service I could 
trust, understand and afford!

Why on earth is it so difficult to find a simple and relatively cheap shop 
window, that doesn’t require you to master webby stuff?  How does everyone else 
do it?  Is there a go-to provider?  I see that Runrev has dev facing web sales, 
but  nothing more suitable to sell standalones more widely.

Also,is there a reason the bigger online retailers shun small developers?

Best wishes,

david Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JSON import error

2017-11-03 Thread David V Glasgow via use-livecode
 From the thrid party perspective, it doesn’t matter whether the OP has an 
epiphany, or another list contributor solves the problem.  All is good 
interesting and helpful.   It’s also nice to see that even the wise ones have 
the same 'moments of discovery' that the rest of us do.

David G


> On 2 Nov 2017, at 6:57 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote:
>> https://en.wikipedia.org/wiki/Rubber_duck_debugging 
>> 
> 
> Yeah. Story of my life. I've since hit another error in the JSON import but 
> now I'm afraid to post about it. :)
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: How to meet an integer

2017-10-17 Thread David V Glasgow via use-livecode
Only a fraction improper?

> On 17 Oct 2017, at 4:16 pm, hh via use-livecode 
>  wrote:
> 
> What is your problem, Mike?
> 
>> Mike K. wrote:
>> golfclap for hh. bravo. ish.
> 
>> hhwrote:
 Mike K. wrote:
 On the first day, God created the heavens and the Earth
 On the second day, God created the oceans.
 On the third day, God put the animals on hold for a few hours,
 and did a little diving. And God said, "This is good."
>> 
>> On the fourth day, at the dawn of numbers, God created the
>> non-negative integers. And God said, "You are dates".
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


OT Toxoplasmosis (was : Send "rawKeyUp")

2017-10-17 Thread David V Glasgow via use-livecode
https://www.frontiersin.org/articles/10.3389/fpsyt.2017.00037/full 


It has been a long standing slow burner in the schizophrenia literature!

Best wishes,

David Glasgow


> On 16 Oct 2017, at 9:35 pm, Bob Sneidar via use-livecode 
>  wrote:
> 
> Toxoplasmosis is a parasitic infection spread by coming into contact with cat 
> feces and ingesting the parasite. Nowhere in the symptoms is any description 
> of mental disorder. 
> 
> Bob S
> 
> 
>> On Oct 16, 2017, at 13:22 , Alejandro Tejada via use-livecode 
>>  wrote:
>> 
>> In my experience, adult people with toxoplasmosis
>> act exactly in the same way... :-(
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread David V Glasgow via use-livecode
Yes, but I knew what he meant!

The label “Select grouped controls”  is a tad ambiguous.  When selected means 
“Select controls individually (notwithstanding the fact that they are 
grouped)”.   I admit that’s to verbose a label.  Conversely, unselected state 
selects groups rather than grouped controls.

Best wishes,

David Glasgow
> On 13 Oct 2017, at 4:38 pm, prothero--- via use-livecode 
>  wrote:
> 
> Isn’t this the opposite of what Randy said?
> Bill P
> 
> William Prothero
> http://es.earthednet.org
> 
>> On Oct 13, 2017, at 5:47 AM, dunbarx via use-livecode 
>>  wrote:
>> 
>> Just to be clear, turning OFF "Select Grouped" will allow an intact group to
>> be copied. If that feature is on (made bold), even with all the controls
>> within a group copied to another location, those copies will come over as
>> individual controls, and the group will be lost.
>> 
>> Craig Newman
>> 
>> 
>> 
>> --
>> Sent from: 
>> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: 'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread David V Glasgow via use-livecode
Thank you so much Randy! 

 It never occurred to me that select group mode would apply in this way, but of 
course it makes perfect sense!

Ah well, back to the grindstone.

Thanks again,

David G

> On 13 Oct 2017, at 1:15 pm, Randy Hengst via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> David,
> 
> They way I’ve done this is to select the whole group before copying… tuning 
> on “Select Group” rather than the individual controls. That has worked fine… 
> scripts are kept.
> 
> randy
> 
>> On Oct 13, 2017, at 5:33 AM, David V Glasgow via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Morning folks,
>> 
>> I am on Mac OS 10.12 and using LC 7.1.4
>> 
>> I have been using the IDE menu to copy large numbers of controls from one 
>> card to another card (which is a substack of a different main stack).  It 
>> all looks good, but after doing this for some time, I discovered that all 
>> groups are disappearing, along with any associated scripts.  The once 
>> grouped objects don’t disappear, so at first sight everything looks hunky 
>> dory, but actually is badly broken.
>> 
>> I have searched in the usual places, but can’t see any references to this.
>> 
>> Is this expected behaviour?  Is there any way to preserve groups in a 
>> ‘manual’ copy-paste operation?
>> 
>> 
>> Best Wishes,
>> David Glasgow
>> 
>> 
>> <http://www.i-psych.co.uk/> <https://twitter.com/iPsychApps>
>> 
>> <https://twitter.com/iPsychApps> <http://uk.linkedin.com/in/davidvglasgow>
>> <http://uk.linkedin.com/in/davidvglasgow>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

'manual' Copy and paste of multiple objects to new card ungroups grouped objects

2017-10-13 Thread David V Glasgow via use-livecode
Morning folks,

I am on Mac OS 10.12 and using LC 7.1.4

I have been using the IDE menu to copy large numbers of controls from one card 
to another card (which is a substack of a different main stack).  It all looks 
good, but after doing this for some time, I discovered that all groups are 
disappearing, along with any associated scripts.  The once grouped objects 
don’t disappear, so at first sight everything looks hunky dory, but actually is 
badly broken.

I have searched in the usual places, but can’t see any references to this.

Is this expected behaviour?  Is there any way to preserve groups in a ‘manual’ 
copy-paste operation?


Best Wishes,
David Glasgow


  

  
 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

OT Re: synonyms

2017-07-05 Thread David V Glasgow via use-livecode
My ancient Quaker father-in-law (now deceased) never gave them up. 

His first utterance to me was “What has thou done with Liss?” - a question I 
was none to keen on answering (‘Liss'= his daughter)

His language took a little getting used to, but after a while I barely noticed, 
except to enjoy it.

Cheers,

David Glasgow

> On 4 Jul 2017, at 8:55 pm, Richmond Mathewson via use-livecode 
>  wrote:
> 
> Thou hast no need at all to be pompous, just a wee bit old-fashioned.
> 
> Thou art more than welcome me to the extremely select club of language 
> nutters (current membership: 1 and a few stray Mennonites)
> who want to bring Thou, thee, they and thine back into mainstream English 
> usages.
> 
> Membership is free, and thou art not required to wear a daft uniform, change 
> thy dietary habits, take any odd vows, or
> reassess thy personal hygiene regime . . .
> 
> However, if thou usest the middle-finger in any way whatsoever thou wilt be 
> expelled forthwith, fifthwith and sixthwith!
> 
> None of our membership have become obsessive enough to remove their 
> middle-finger, Yet!
> 
> Richmond.
> 
> On 7/4/17 10:43 pm, Mark Wieder via use-livecode wrote:
>> On 07/04/2017 11:34 AM, Mark Waddingham via use-livecode wrote:
>>> It was a generic 'you' and not you 'you' :)
>>> 
>>> I think part of my brain decided on 'one' there but my fingers objected 
>>> ('when' should have been 'one').
>>> 
>>> Indeed in this instance 'one' in both places probably would have been 
>>> better, however I always feel like that sounds slightly pompous...
>> 
>> LOL
>> 
>> Yes, "one" would maybe have been more syntactically correct but made you 
>> feel pompous. "You" in both places emphasizes the lexical ambiguity. So even 
>> though the sentence would be diagrammed the same way (the bytecode 
>> implementation would be identical) they feel completely different.
>> 
>> So... aren't you glad we have synonyms? 
>> 
>> And placing the sentence in passive voice would eliminate the above problems 
>> by allowing a different creative process to take place. Thus my argument for 
>> synonyms: not that it makes much (if any) difference at the engine level, 
>> but it allows for some right-brain interaction in what would otherwise be a 
>> completely left-brain activity.
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: WannaCry [OT]

2017-05-15 Thread David V Glasgow via use-livecode

> On 13 May 2017, at 6:05 pm, Richmond Mathewson via use-livecode 
>  wrote:
> 
> What I do not understand is how organisations like the British State Health 
> System (NHS) cane be so bl**dy stupid to
> rely on Windows, without (obviously) all sorts of safeguards.


I recently finished a fixed term contract working for a pretty IT savvy NHS 
Trust.  The NHS has been forced by central government to reallocate IT (and 
other infrastructure) monies to front line services.  They are also trapped by 
legacy software with dependencies on old (and proprietary) Windows systems and 
software. Now obviously stupid, but actually historic stupidity which was in 
the 1990s disguised  as good business and standard practice.  

Not to mention the Clinical Information Systems which look and behave as if it 
is still the 1990’s.

Apart from that, everything is fine.

Best wishes,

David Glasgow
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

  1   2   >