Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #105151

Re: Apple told to warn against charging phone in bath after man's electrocution

From Snit <usenet@gallopinginsanity.com>
Newsgroups comp.os.linux.advocacy, comp.sys.mac.system, alt.comp.os.windows-10, alt.cellular-phone-tech
Subject Re: Apple told to warn against charging phone in bath after man's electrocution
Date 2017-04-23 12:10 -0700
Message-ID <D5224A40.A0F80%usenet@gallopinginsanity.com> (permalink)
References (19 earlier) <D517EC19.9F314%usenet@gallopinginsanity.com> <op.yy3xg2kajs98qf@red.lan> <rMNKA.6920$7Y5.5504@fx13.iad> <D520FD6D.A0CE5%usenet@gallopinginsanity.com> <Ls6LA.24161$lA5.8681@fx11.iad>

Cross-posted to 4 groups.

Show all headers | View raw


On 4/23/17, 11:34 AM, in article Ls6LA.24161$lA5.8681@fx11.iad, "Mark Lloyd"
<not@mail.invalid> wrote:

> On 04/22/2017 02:30 PM, Snit wrote:
> 
> [snip]
> 
>>> brightness = red * .299 + green * .587 + blue * .114
>>> 
>>> The constants have to do with the perception of brightness.
>> 
>> I used something similar to that when working on this "challenge" that Owl
>> presented in COLA:
>> 
>>     <https://youtu.be/kucxFEbB97g>
>> 
>> The main challenge was just having the terminal color be selected to match
>> the background (why, who knows, but he wanted that) but I also wanted to
>> make sure the text could be read. Used a calculated brightness level to
>> decide if the text should be black or white.
> 
> My first use of that formula was with a INPUT box where you could type
> the name of a standard color. If the JS code recognized it, it would
> change the background of that input box to the selected color. I needed
> a way to keep the text readable (it would set the text color to black or
> white, depending on background brightness).

Do you know what level you set to determine black or white? I used 200 as my
split but that was based on just eye-balling it and absolutely no "real"
knowledge.

> I later used it to determine readability of randomly selected color
> combinations (http://notstupid.us/dtc_help.php/color_example and use the
> "change colors" button).

Ah... if I get back to fiddling with my program I might try to do something
like that. Did fiddle briefly but it was outside what the "challenged" asked
and it is not like I had any real use for the tool. :)

-- 
Personal attacks from those who troll show their own insecurity. They cannot
use reason to show the message to be wrong so they try to feel somehow
superior by attacking the messenger.

They cling to their attacks and ignore the message time and time again.

<https://youtu.be/H4NW-Cqh308>

Back to comp.sys.mac.system | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Apple told to warn against charging phone in bath after man's electrocution "James Wilkinson Sword" <imvalid@somewear.com> - 2017-04-22 18:28 +0100
  Re: Apple told to warn against charging phone in bath after man's electrocution Snit <usenet@gallopinginsanity.com> - 2017-04-22 10:46 -0700
  Re: Apple told to warn against charging phone in bath after man's electrocution Mark Lloyd <not@mail.invalid> - 2017-04-22 14:01 -0500
    Re: Apple told to warn against charging phone in bath after man's electrocution "James Wilkinson Sword" <imvalid@somewear.com> - 2017-04-22 20:26 +0100
    Re: Apple told to warn against charging phone in bath after man's electrocution Snit <usenet@gallopinginsanity.com> - 2017-04-22 12:30 -0700
      Re: Apple told to warn against charging phone in bath after man's electrocution "James Wilkinson Sword" <imvalid@somewear.com> - 2017-04-22 21:26 +0100
        Re: Apple told to warn against charging phone in bath after man's electrocution Snit <usenet@gallopinginsanity.com> - 2017-04-22 15:24 -0700
      Re: Apple told to warn against charging phone in bath after man's electrocution Mark Lloyd <not@mail.invalid> - 2017-04-23 13:34 -0500
        Re: Apple told to warn against charging phone in bath after man's electrocution Snit <usenet@gallopinginsanity.com> - 2017-04-23 12:10 -0700
    Re: Apple told to warn against charging phone in bath after man's electrocution Snit <usenet@gallopinginsanity.com> - 2017-04-22 12:55 -0700
    Re: W3C/WCAG 2.0 Relative Luminance ( perceived ). Mark Lloyd <not@mail.invalid> - 2017-04-23 13:45 -0500
      Re: W3C/WCAG 2.0 Relative Luminance ( perceived ). Snit <usenet@gallopinginsanity.com> - 2017-04-23 12:21 -0700

csiph-web