Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?

Comment I had this problem with heat maps (Score 1) 28

I programmed some heat maps once.
Grey-scale is no problem: you map the data range into 0-255 and you get nice grey scales.
Color was tricky.
If you just ramp the RGB values from red to green to blue, you don't get smooth color gradients.
Instead, you get all red up to the 1/3 point, and then all green from 1/3 to 2/3, and then all blue.
Right where the colors change over there are thin strips where one color shades into the next.
I had to twiddle the mapping function to stretch out those strips of shading in order to get a smooth color gradient across the entire data range.

Comment It's easier to think than to do it (Score 1) 126

I was helping my son with his math homework.
It was factoring polynomials: stuff like x^2 + 5x + 6 -> (x+2)(x+3)
He basically had the mechanics down.
He looked at the next problem, and picked up his pencil to start grinding his way into it.
Without thinking, I slapped my hand down on the place where he was about to start writing, and said, "No! It's easier to think than to do it."
And he thought, and he wrote down the answer.

Comment Blister packaging (Score 3, Interesting) 498

The UK used to sell acetaminophen (AKA Tylenol) in bottles (like in the US).
Some people committed suicide by OD'ing on the pills.
So they changed from bottles to blister packs.
Now if you want to off yourself that way, you have to sit there and pop out ~50 pills, one by one.
It reduced those sucides by something like 30%.

That's a lot of lives saved, with a pretty low barrier.

Comment Re:just FYI (Score 1) 77

Heh...if this is the drug I'm thinking of... ...ATP inhibitor...imbalance in the proton gradient...

What it does is leak protons across the mitochondrial membrane, which is tantamount to creating an internal short circuit in a battery.
You know, like those Lithiuum-ion batteries that sometimes spontaneously combust.

One of the first things the FDA did after it was established was get this stuff off the market.

Comment My 5-year rule (Score 4, Interesting) 958

The first time I had to make real decisions for myself was when I started living on my own in my early twenties.
I was aware that there studies on diet and health, and that there were dietary recommendations based on those studies.
I also knew that those recommendations had change over time.
So I decided that I wasn't going to turn my life upside-down over this stuff until the recommendations stopped changing for at least--I picked a number--five years.
Even at the time, I knew that this was mostly a self-serving rationalization for me to just keep eating the foods I liked.

As the years went by, I watched with growing astonishment as the fads (in science!) came and went; diets swirling around them like groupies, or celebrities.
Nothing has ever stayed settled for more than five years in a row.
I've never been called on my original committment/rationalization.
It's been over 30 years now.

Comment Job postings are cheap (Score 2) 38

Long ago, I worked for a little company in one state, that bought a big company in another state (don't ask), and the big company had a union shop. At some point they were trying to negotiate something with the union, and they weren't getting what they wanted, so the next week they advertise 300 job openings in the local city paper, like they were going to move the entire shop in-state and just cut the union loose.

Nothing ever came of it.

FORTUNE'S FUN FACTS TO KNOW AND TELL: A guinea pig is not from Guinea but a rodent from South America.