Re: Windows standalone puzzle

2013-08-29 Thread Peter M. Brigham
Yeah, I started out using an ellipsis but then I ran into the Mac/Windows font 
inconsistencies in another context. It took me a month of intermittent 
experimenting to discover how to use a option/alt keystroke to insert ® and 
— into the Windows field. So in trying to solve the menu-building problem I 
moved to using all low-ASCII characters.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Aug 28, 2013, at 8:22 PM, Peter Haworth wrote:

 Glad you got it working.
 
 Just a nitpick but you want to consider using numToChar(133) instead of
 so you only take up 1 char instead of 3.  Of course nothing's ever
 that simple 'cause then you'd have to use ISOToMac as well when on a Mac..
 
 Pete
 lcSQL Software http://www.lcsql.com
 
 
 On Wed, Aug 28, 2013 at 9:40 AM, Peter M. Brigham pmb...@gmail.com wrote:
 
 Inventive approaches, thank you. I continued to have trouble with using
 any function at all to trim the lines in a Windows standalone though
 everything I tried worked in the Mac IDE. It started working fine in the
 standalone when I put the identical code into the calling handlers. I still
 don't understand this, but I've got it working now.
 
 Re scalability, it's just for a short list of text snippets for a popup
 button, max length = 20 or so.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 On Aug 28, 2013, at 3:54 AM, Geoff Canyon wrote:
 
 On Mon, Aug 19, 2013 at 9:43 PM, Peter M. Brigham pmb...@gmail.com
 wrote:
 
 function shorten tList
  repeat with n = 1 to the number of lines of tList
 put line n of tList into lineText
 if length(lineText)  75 then next repeat
 put empty into tBefore
 put empty into tAfter
 if char 43 of line n of tList = space then
put space into tBefore
 end if
 if char -25 of line n of tList = space then
put space into tAfter
 end if
 put tBefore  ...  tAfter into char 43 to -25 of of line n of
 tList
 -- 3 periods, not a numtochar(201)
  end repeat
  return tList
 end shorten
 
 
 
 Just saw this because of wonky spam filters. You can get identical
 results
 to the above (without the errors) with:
 
 function shorten2 tList
  repeat for each line L in tList
 if length(L)  75 then
put L  cr after R
 else
put (char 1 to 42 of L)  char (2 - offset( ,char 43 of L)) to
 (-2 + offset( ,char -25 of L)) of  ...   (char -24 to -1 of L)  cr
 after R
 end if
  end repeat
  return R
 end shorten2
 
 That returns variable-length shortened lines, as does the original. If
 there isn't a special reason for that, then this is even simpler, and has
 the shortening parameters as variables. Just call it with 75 and 43 to
 get
 similar to the original.
 
 function trimLines tList, trimTo, elipseAfter
  repeat for each line L in tList
 if length(L) = trimTo then put L  cr after R else put (char 1 to
 elipseAfter of L)  ...  (char (elipseAfter - trimTo + 3) to -1 of L)
 
 cr after R
  end repeat
  return R
 end trimLines
 
 Both of these scale roughly linearly. For menus it's not likely to be a
 factor, but on 3500 lines the original takes about a second on my
 machine,
 and each of these take about a hundredth of a second.
 
 gc
 ___
 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: Windows standalone puzzle

2013-08-29 Thread Peter M. Brigham
Yes, exactly. I simply took the code out of the function handler and used it in 
place of the function call in the mousedown handler in the button script, and 
it worked fine. This happened with two quite different functions that 
accomplished the same result: both of the approaches worked in the Mac IDE, but 
in both cases the function calls failed in the Windows standalone but moving 
the code into the calling handler worked fine. Makes no sense to me. The 
function handlers were in the stack script, though, not in the button, I didn't 
think to test that aspect of it. But the functions were clearly in the message 
path -- it worked fine on my MacBook.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Aug 29, 2013, at 12:53 AM, Geoff Canyon wrote:

 Do you mean that the code is no longer in a function at all, it's just part 
 of some build the menu routine, and that works, but if it's a function, 
 even in the same object, it's no good? That is odd. 
 
 gc
 
 Sent from my iPad
 
 On Aug 28, 2013, at 11:40 AM, Peter M. Brigham pmb...@gmail.com wrote:
 
 It started working fine in the standalone when I put the identical code into 
 the calling handlers.
 
 ___
 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: Windows standalone puzzle

2013-08-29 Thread Peter Haworth
At someone's suggestion on the list, I ended up using the hellip; html tag
and setting the htmltext to avoid the Mac/Windows issue, but I was putting
the data into a scrolling list field not a menu.  Not sure if menus accept
htmltext, would be interesting to check that out.

Pete
lcSQL Software http://www.lcsql.com


On Thu, Aug 29, 2013 at 4:38 AM, Peter M. Brigham pmb...@gmail.com wrote:

 Yeah, I started out using an ellipsis but then I ran into the Mac/Windows
 font inconsistencies in another context. It took me a month of intermittent
 experimenting to discover how to use a option/alt keystroke to insert ®
 and — into the Windows field. So in trying to solve the menu-building
 problem I moved to using all low-ASCII characters.

 -- Peter

 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig

 On Aug 28, 2013, at 8:22 PM, Peter Haworth wrote:

  Glad you got it working.
 
  Just a nitpick but you want to consider using numToChar(133) instead of
  so you only take up 1 char instead of 3.  Of course nothing's ever
  that simple 'cause then you'd have to use ISOToMac as well when on a
 Mac..
 
  Pete
  lcSQL Software http://www.lcsql.com
 
 
  On Wed, Aug 28, 2013 at 9:40 AM, Peter M. Brigham pmb...@gmail.com
 wrote:
 
  Inventive approaches, thank you. I continued to have trouble with using
  any function at all to trim the lines in a Windows standalone though
  everything I tried worked in the Mac IDE. It started working fine in the
  standalone when I put the identical code into the calling handlers. I
 still
  don't understand this, but I've got it working now.
 
  Re scalability, it's just for a short list of text snippets for a popup
  button, max length = 20 or so.
 
  -- Peter
 
  Peter M. Brigham
  pmb...@gmail.com
  http://home.comcast.net/~pmbrig
 
  On Aug 28, 2013, at 3:54 AM, Geoff Canyon wrote:
 
  On Mon, Aug 19, 2013 at 9:43 PM, Peter M. Brigham pmb...@gmail.com
  wrote:
 
  function shorten tList
   repeat with n = 1 to the number of lines of tList
  put line n of tList into lineText
  if length(lineText)  75 then next repeat
  put empty into tBefore
  put empty into tAfter
  if char 43 of line n of tList = space then
 put space into tBefore
  end if
  if char -25 of line n of tList = space then
 put space into tAfter
  end if
  put tBefore  ...  tAfter into char 43 to -25 of of line n of
  tList
  -- 3 periods, not a numtochar(201)
   end repeat
   return tList
  end shorten
 
 
 
  Just saw this because of wonky spam filters. You can get identical
  results
  to the above (without the errors) with:
 
  function shorten2 tList
   repeat for each line L in tList
  if length(L)  75 then
 put L  cr after R
  else
 put (char 1 to 42 of L)  char (2 - offset( ,char 43 of L)) to
  (-2 + offset( ,char -25 of L)) of  ...   (char -24 to -1 of L) 
 cr
  after R
  end if
   end repeat
   return R
  end shorten2
 
  That returns variable-length shortened lines, as does the original. If
  there isn't a special reason for that, then this is even simpler, and
 has
  the shortening parameters as variables. Just call it with 75 and 43 to
  get
  similar to the original.
 
  function trimLines tList, trimTo, elipseAfter
   repeat for each line L in tList
  if length(L) = trimTo then put L  cr after R else put (char 1 to
  elipseAfter of L)  ...  (char (elipseAfter - trimTo + 3) to -1 of
 L)
  
  cr after R
   end repeat
   return R
  end trimLines
 
  Both of these scale roughly linearly. For menus it's not likely to be a
  factor, but on 3500 lines the original takes about a second on my
  machine,
  and each of these take about a hundredth of a second.
 
  gc
  ___
  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

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

Re: Windows standalone puzzle

2013-08-28 Thread Geoff Canyon
On Mon, Aug 19, 2013 at 9:43 PM, Peter M. Brigham pmb...@gmail.com wrote:

 function shorten tList
repeat with n = 1 to the number of lines of tList
   put line n of tList into lineText
   if length(lineText)  75 then next repeat
   put empty into tBefore
   put empty into tAfter
   if char 43 of line n of tList = space then
  put space into tBefore
   end if
   if char -25 of line n of tList = space then
  put space into tAfter
   end if
   put tBefore  ...  tAfter into char 43 to -25 of of line n of
 tList
   -- 3 periods, not a numtochar(201)
end repeat
return tList
 end shorten



Just saw this because of wonky spam filters. You can get identical results
to the above (without the errors) with:

function shorten2 tList
   repeat for each line L in tList
  if length(L)  75 then
 put L  cr after R
  else
 put (char 1 to 42 of L)  char (2 - offset( ,char 43 of L)) to
(-2 + offset( ,char -25 of L)) of  ...   (char -24 to -1 of L)  cr
after R
  end if
   end repeat
   return R
end shorten2

That returns variable-length shortened lines, as does the original. If
there isn't a special reason for that, then this is even simpler, and has
the shortening parameters as variables. Just call it with 75 and 43 to get
similar to the original.

function trimLines tList, trimTo, elipseAfter
   repeat for each line L in tList
  if length(L) = trimTo then put L  cr after R else put (char 1 to
elipseAfter of L)  ...  (char (elipseAfter - trimTo + 3) to -1 of L) 
cr after R
   end repeat
   return R
end trimLines

Both of these scale roughly linearly. For menus it's not likely to be a
factor, but on 3500 lines the original takes about a second on my machine,
and each of these take about a hundredth of a second.

gc
___
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: Windows standalone puzzle

2013-08-28 Thread Peter M. Brigham
Inventive approaches, thank you. I continued to have trouble with using any 
function at all to trim the lines in a Windows standalone though everything I 
tried worked in the Mac IDE. It started working fine in the standalone when I 
put the identical code into the calling handlers. I still don't understand 
this, but I've got it working now.

Re scalability, it's just for a short list of text snippets for a popup button, 
max length = 20 or so.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Aug 28, 2013, at 3:54 AM, Geoff Canyon wrote:

 On Mon, Aug 19, 2013 at 9:43 PM, Peter M. Brigham pmb...@gmail.com wrote:
 
 function shorten tList
   repeat with n = 1 to the number of lines of tList
  put line n of tList into lineText
  if length(lineText)  75 then next repeat
  put empty into tBefore
  put empty into tAfter
  if char 43 of line n of tList = space then
 put space into tBefore
  end if
  if char -25 of line n of tList = space then
 put space into tAfter
  end if
  put tBefore  ...  tAfter into char 43 to -25 of of line n of
 tList
  -- 3 periods, not a numtochar(201)
   end repeat
   return tList
 end shorten
 
 
 
 Just saw this because of wonky spam filters. You can get identical results
 to the above (without the errors) with:
 
 function shorten2 tList
   repeat for each line L in tList
  if length(L)  75 then
 put L  cr after R
  else
 put (char 1 to 42 of L)  char (2 - offset( ,char 43 of L)) to
 (-2 + offset( ,char -25 of L)) of  ...   (char -24 to -1 of L)  cr
 after R
  end if
   end repeat
   return R
 end shorten2
 
 That returns variable-length shortened lines, as does the original. If
 there isn't a special reason for that, then this is even simpler, and has
 the shortening parameters as variables. Just call it with 75 and 43 to get
 similar to the original.
 
 function trimLines tList, trimTo, elipseAfter
   repeat for each line L in tList
  if length(L) = trimTo then put L  cr after R else put (char 1 to
 elipseAfter of L)  ...  (char (elipseAfter - trimTo + 3) to -1 of L) 
 cr after R
   end repeat
   return R
 end trimLines
 
 Both of these scale roughly linearly. For menus it's not likely to be a
 factor, but on 3500 lines the original takes about a second on my machine,
 and each of these take about a hundredth of a second.
 
 gc
 ___
 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: Windows standalone puzzle

2013-08-28 Thread Peter Haworth
Glad you got it working.

Just a nitpick but you want to consider using numToChar(133) instead of
so you only take up 1 char instead of 3.  Of course nothing's ever
that simple 'cause then you'd have to use ISOToMac as well when on a Mac..

Pete
lcSQL Software http://www.lcsql.com


On Wed, Aug 28, 2013 at 9:40 AM, Peter M. Brigham pmb...@gmail.com wrote:

 Inventive approaches, thank you. I continued to have trouble with using
 any function at all to trim the lines in a Windows standalone though
 everything I tried worked in the Mac IDE. It started working fine in the
 standalone when I put the identical code into the calling handlers. I still
 don't understand this, but I've got it working now.

 Re scalability, it's just for a short list of text snippets for a popup
 button, max length = 20 or so.

 -- Peter

 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig

 On Aug 28, 2013, at 3:54 AM, Geoff Canyon wrote:

  On Mon, Aug 19, 2013 at 9:43 PM, Peter M. Brigham pmb...@gmail.com
 wrote:
 
  function shorten tList
repeat with n = 1 to the number of lines of tList
   put line n of tList into lineText
   if length(lineText)  75 then next repeat
   put empty into tBefore
   put empty into tAfter
   if char 43 of line n of tList = space then
  put space into tBefore
   end if
   if char -25 of line n of tList = space then
  put space into tAfter
   end if
   put tBefore  ...  tAfter into char 43 to -25 of of line n of
  tList
   -- 3 periods, not a numtochar(201)
end repeat
return tList
  end shorten
 
 
 
  Just saw this because of wonky spam filters. You can get identical
 results
  to the above (without the errors) with:
 
  function shorten2 tList
repeat for each line L in tList
   if length(L)  75 then
  put L  cr after R
   else
  put (char 1 to 42 of L)  char (2 - offset( ,char 43 of L)) to
  (-2 + offset( ,char -25 of L)) of  ...   (char -24 to -1 of L)  cr
  after R
   end if
end repeat
return R
  end shorten2
 
  That returns variable-length shortened lines, as does the original. If
  there isn't a special reason for that, then this is even simpler, and has
  the shortening parameters as variables. Just call it with 75 and 43 to
 get
  similar to the original.
 
  function trimLines tList, trimTo, elipseAfter
repeat for each line L in tList
   if length(L) = trimTo then put L  cr after R else put (char 1 to
  elipseAfter of L)  ...  (char (elipseAfter - trimTo + 3) to -1 of L)
 
  cr after R
end repeat
return R
  end trimLines
 
  Both of these scale roughly linearly. For menus it's not likely to be a
  factor, but on 3500 lines the original takes about a second on my
 machine,
  and each of these take about a hundredth of a second.
 
  gc
  ___
  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: Windows standalone puzzle

2013-08-28 Thread Geoff Canyon
Do you mean that the code is no longer in a function at all, it's just part of 
some build the menu routine, and that works, but if it's a function, even in 
the same object, it's no good? That is odd. 

gc

Sent from my iPad

On Aug 28, 2013, at 11:40 AM, Peter M. Brigham pmb...@gmail.com wrote:

 It started working fine in the standalone when I put the identical code into 
 the calling handlers.

___
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: Windows standalone puzzle

2013-08-28 Thread Geoff Canyon
I thought about writing the function to accept a parameter for the ellipsis 
chunk but I went with expediency instead :-/

Sent from my iPad

On Aug 28, 2013, at 7:22 PM, Peter Haworth p...@lcsql.com wrote:

 you want to consider using numToChar(133) instead

___
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 - Re: Windows standalone puzzle

2013-08-22 Thread Alex Tweedly

On 22/08/2013 01:03, Roger Eller wrote:

If they can edit what we see in a journalist presentation of the facts,
have they not in a way, erased some of the truth?

Yes in some strict sense. But any video shoot (or still photo) does that 
anyway - the eye can handle very wide variations in light intensity, but 
photo/video can't, so the cameraman attempts to capture as much of the 
important detail as she can. But 'auto light level' (or AWB, or any 
other adjustment) will vary the detail captured. Not so much 'erase the 
truth' as 'try to convey as much as the tools allow', and I'd see 'flash 
suppression' (if it could be done properly) as a similar attempt to 
allow more people to watch a particular clip.


But Tim is right - it's a cost issue rather than a technical one; and 
although a TV station might be able to do this and help promote their 
greater community concern for disabled folks, the affected target is 
probably too small to cost-justify it. Thirty years ago you  wouldn't 
have seen on your TV screens BSL (or ASL) signers or real-time 
subtitling - maybe this will come some day.


Thanks
-- Alex.


___
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 - Re: Windows standalone puzzle

2013-08-22 Thread Curry Kenworthy


 I'm afraid you're not getting 'truth' via broadcasts

Everything on TV is always true. Talking heads are infallible and edits 
only enhance the facts. Anything omitted was never worth knowing. Polls 
and statistics can never mislead. If you doubt this, you will develop a 
bad rash and be placed on some watch lists, and animals will run away 
from you.


Best wishes,

Curry K.


___
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 - Re: Windows standalone puzzle

2013-08-22 Thread Kay C Lan
On Thu, Aug 22, 2013 at 3:58 PM, Alex Tweedly a...@tweedly.net wrote:

  I'd see 'flash suppression' (if it could be done properly) as a similar
 attempt to allow more people to watch a particular clip.


Where I live they've used 'flash suppression' for longer than I can
remember. My kids have never seen or ever likely to see a stray penis
across a football pitch. The TV stations here seem to have flash
suppression down to a fine art;-) But I do seem to remember a SuperBowl not
long back that got all controversial because of a flash that wasn't
suppressed, so maybe in the States they need to upgrade their software.
___
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: Windows standalone puzzle

2013-08-21 Thread Alex Tweedly

On 20/08/2013 16:52, Richard Gaskin wrote:

This is why I love this community:

...
Collectively, there's nothing we can't solve. :)

--
 Richard Gaskin
I've often thought that if I had *any* technical question, I could ask 
this list and there would be someone who knew (or at least had a very 
good idea of) the answer. So here goes ... :-)


Every night when I watch the news on TV, they say something like Here's 
(John Smith) at the news conference held this afternoon. Warning - this 
report contains some flash photography.


Now I know why they give this warning - that repeated rapid flashing 
from still cameras can cause problems for nystagmus, epilepsy and 
various other disease sufferers.


What I don't know is why they don't just digitally edit out the 
flashing. Surely this must be (relatively) easy Digital Video Processing 
- you detect a non-trivial part (10% threshold??) of the frame which 
increases in light level for a single frame (assuming anything between 
20 and 60 fps) and then returns to its original levels.


OK - I know almost nothing about DVP, but if they can overlay a 
touchdown line on a football field, or change a Coke to Pepsi can, or 
all those other marvels, surely it can't be that hard to eliminate 95% 
of the flashing - and wouldn't that would be enough to reduce it below 
the trigger point for most vulnerable viewers. It needn't even be done 
in real time - it could be left as a warning for any live showing, and 
then automatically removed by program and checked by a human editor 
before subsequent showings.


-- Alex.


___
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 - Re: Windows standalone puzzle

2013-08-21 Thread Roger Eller
If they can edit what we see in a journalist presentation of the facts,
have they not in a way, erased some of the truth?

~Roger
On Aug 21, 2013 7:41 PM, Alex Tweedly a...@tweedly.net wrote:

 On 20/08/2013 16:52, Richard Gaskin wrote:

 This is why I love this community:

 ...
 Collectively, there's nothing we can't solve. :)

 --
  Richard Gaskin

 I've often thought that if I had *any* technical question, I could ask
 this list and there would be someone who knew (or at least had a very good
 idea of) the answer. So here goes ... :-)

 Every night when I watch the news on TV, they say something like Here's
 (John Smith) at the news conference held this afternoon. Warning - this
 report contains some flash photography.

 Now I know why they give this warning - that repeated rapid flashing from
 still cameras can cause problems for nystagmus, epilepsy and various other
 disease sufferers.

 What I don't know is why they don't just digitally edit out the flashing.
 Surely this must be (relatively) easy Digital Video Processing - you detect
 a non-trivial part (10% threshold??) of the frame which increases in light
 level for a single frame (assuming anything between 20 and 60 fps) and then
 returns to its original levels.

 OK - I know almost nothing about DVP, but if they can overlay a touchdown
 line on a football field, or change a Coke to Pepsi can, or all those other
 marvels, surely it can't be that hard to eliminate 95% of the flashing -
 and wouldn't that would be enough to reduce it below the trigger point for
 most vulnerable viewers. It needn't even be done in real time - it could be
 left as a warning for any live showing, and then automatically removed by
 program and checked by a human editor before subsequent showings.

 -- Alex.


 __**_
 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-livecodehttp://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: Windows standalone puzzle

2013-08-20 Thread Curry Kenworthy


I see an of of in line -5. Also be sure of your cr's and your file paths!

Best wishes,

Curry K.


___
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: Windows standalone puzzle

2013-08-20 Thread Peter M. Brigham
D'oh! headslap Should work now. The only remaining puzzle is why it worked on 
the Mac but not in the Windows standalone. Maybe the Mac understands stuttering 
better….

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Aug 20, 2013, at 4:38 AM, Curry Kenworthy wrote:

 
 I see an of of in line -5. Also be sure of your cr's and your file paths!
 
 Best wishes,
 
 Curry K.
 
 
 ___
 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: Windows standalone puzzle

2013-08-20 Thread Richard Gaskin

Curry Kenworthy wrote:


I see an of of in line -5. Also be sure of your cr's and your file paths!


Good catch!  I'd looked at Peter's code and completely missed that.

This is why I love this community:

When you need to optimize a routine into a three-line solution using 
arrays, Alex Tweedly will be the guy to deliver it.


When you need new ways of thinking about complex data structures, Dick 
Kriesel is your man.


When you need geometry, we all turn to Jim Hurley.

And when you need a pair of eyes able to see the finest of details, 
Curry's got your back.


Collectively, there's nothing we can't solve. :)

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: Windows standalone puzzle

2013-08-20 Thread Devin Asay

On Aug 20, 2013, at 9:52 AM, Richard Gaskin wrote:

 Curry Kenworthy wrote:
 
 I see an of of in line -5. Also be sure of your cr's and your file paths!
 
 Good catch!  I'd looked at Peter's code and completely missed that.
 
 This is why I love this community:
 
 When you need to optimize a routine into a three-line solution using arrays, 
 Alex Tweedly will be the guy to deliver it.
 
 When you need new ways of thinking about complex data structures, Dick 
 Kriesel is your man.
 
 When you need geometry, we all turn to Jim Hurley.
 
 And when you need a pair of eyes able to see the finest of details, Curry's 
 got your back.
 
And if we want rigorous benchmarking of scripting techniques, Richard's our guy.

Credit where credit's due.

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.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


Re: Windows standalone puzzle

2013-08-20 Thread Peter M. Brigham
Amen. I don't put this into words often enough, but I love this list. I learn 
from it constantly and the camaraderie and collaboration is wonderful. 
Sometimes it's discovering a new way to approach an old problem, sometimes it's 
unearthing a little corner of LC that I had not discovered, sometimes it's just 
a fresh pair of eyes to catch a silly mistake. Thank you all for your various 
and wonderful contributions!

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Aug 20, 2013, at 12:15 PM, Devin Asay wrote:

 
 On Aug 20, 2013, at 9:52 AM, Richard Gaskin wrote:
 
 Curry Kenworthy wrote:
 
 I see an of of in line -5. Also be sure of your cr's and your file paths!
 
 Good catch!  I'd looked at Peter's code and completely missed that.
 
 This is why I love this community:
 
 When you need to optimize a routine into a three-line solution using arrays, 
 Alex Tweedly will be the guy to deliver it.
 
 When you need new ways of thinking about complex data structures, Dick 
 Kriesel is your man.
 
 When you need geometry, we all turn to Jim Hurley.
 
 And when you need a pair of eyes able to see the finest of details, Curry's 
 got your back.
 
 And if we want rigorous benchmarking of scripting techniques, Richard's our 
 guy.
 
 Credit where credit's due.
 
 Devin
 
 Devin Asay
 Learn to code with LiveCode University
 http://university.livecode.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