15,501 karma · joined Jan 22, 2011 (15y ago) · 3,183 submissions
comment 7y ago · link · parent
For example, my browser sends:
This is line one...
...and this is line two
as a string ("This is line one...\n...and this is line two") and the websocketd receives that, and passes along This is line one...\\n...andthis is line two\n
to the STDIN.It knows that the message is one thing, so the newlines aren't the same as the end of message, right?
It'd also be nice to use EOF as the indicator to flush STDOUT to the client, so the program can also emit newlines without needing to escape them first.
All that being said, this is nifty. I think I can use this for some low-volume ideas I have on an internal app. The newline handling isn't a problem because I'm not replacing anything that already exists.
comment 7y ago · link · parent
> The greatest movie critics probably can't direct or write for crap
They may know a lot about how a film is made. It does not follow that they could sit in the director's chair, or write a decent screenplay. (And yet, they could still be great at critiquing films!)
This is a valid point. Just knowing how something is made doesn't necessarily mean you know how to make it. It's the difference between a designer and an implementer. Or architect and builder.
comment 7y ago · link · parent
I know what I'm in for (lots of zooming and panning). For some sites, it's the only way to reach certain features that the site didn't include in their mobile version.
comment 7y ago · link · parent
> Everyone is responsible for their actions. And some people have a long way to go to before they've healed their traumas. But pretending that some are evil and others are not isn't solving the problem.
It's not a rationalization of child-killing. It's a partial explanation as to why some people do that. There's no value judgement being made, just a clinical evaluation of causes and effects.
People who commit terrible crimes are responsible for their actions. But it's far too convenient to just label them as evil and move on. Something made them evil. Something wired their brain that way. We are not the authors of our own personalities.
Don't misunderstand me. I'm not claiming that all people are redeemable. Some aren't. There are cases where the only rational (and ethical!) thing to do is separate the perpetrator from the rest of civil society, for our own protection.
But we do ourselves a big favor if we allow ourselves to question and study the origin of these behaviors. And if we allow ourselves to advance the study of rehabilitation and reform.
Just as it is morally correct to protect the society at-large from predators, it is also, I think, a moral requirement to find better ways at fixing broken people. Just like we do with cancer, AIDS, or any other ailment. Expand that to include mental disorders. The brain is another organ.
Right now we suck at verifiably correcting for psychological disorders. (Hell, we can't even agree on what constitutes one). Because we're bad at it, we take the safe approach of caging dangerous people. That's fine. It's the best we can do with our current state of knowledge. But we should strive to learn more, so that we can make more accurate decisions on who should remain caged and who is eligible for reform.
comment 7y ago · link · parent
But I'm still a bit confused on it. How is Foxconn being paid? In dollars or in yuan? If the dollar is strong, shouldn't the BOM and manufacturing costs decline in lockstep with the Chinese buyers' purchasing power (relative to USD)?
comment 7y ago · link · parent
I have used the latest models and don't see any improvements worth upgrading for. FaceID is cool, but not enough on its own to convince me to upgrade.
In previous cycles, my update from 3GS to 4S was a no-brainer (retina, massive speed improvement), as was the upgrade from 4S to 6S (lightning port, LTE, massive speed improvement, larger screen).
Once I got my battery swapped, the phone was as good as new.
And I still have a headphone jack.
comment 7y ago · link · parent
For a cavity, I could see a DDS diagnosing it and also determining that their Certified Carries Tech can handle it on their own. They pass the work off and move to the next patient.
To keep things safe, require a dentist to be available if the need arises.
comment 7y ago · link · parent
But that’s wrong. Having a massive address space makes it trivial to keep routable blocks contiguous no matter how many IPs they contain.
comment 7y ago · link · parent
It seems odd to me that IPs can still be used to (semi-)reliably determine a client's geographical location.
With the immensely larger address space that comes with IPv6, does that give the Internet a chance to completely sever the link between geography and IP address? Or do we still have issues with aggregating routes in a space-efficient way?
comment 7y ago · link · parent
When I shoot my revolver, I will load empty shells in a couple random spots, spin it, and close it. This immediately exposes any flinching or anticipating I'm doing. I squeeze the trigger, the gun moves slightly downward and no round is fired.
Do that a couple times and you learn to remain neutral pretty quick.
It's not as easy on a magazine-loaded pistol. I imagine you'd need to get some purpose-made dead rounds. And the randomization is harder.
comment 7y ago · link · parent
1) Cops show up and and say, "Hey, that was a bait package. Can we get it back?"
2) Same as 1), plus USPS/FedEx/UPS would be unable to locate the tracking number.
3) Cops pull you over, thinking you're a porch pirate. You tell them where you live, and they regret the error, and ask for their bait package back.
(But these scenarios probably wouldn't happen in the first place. I assume that the chosen bait locations were done with the knowledge of the residents.)
comment 7y ago · link · parent
I get what you're saying, and I don't mean to be sanctimonious. But there are lots of aspects in life where I trade annoyance for doing what I think is right in the larger scheme of things. I recycle aluminum cans even when it would be easier to chuck them in the nearest bin. I used to toss cigarette butts out the window instead of having them stink up the car's ashtray.
Yeah, my examples might seem a bit dramatic compared to one's choice of browser. Look at them as analogies and not comparable badness.
For me, it's worth whatever edge cases annoy me to know that I'm not working for Google for free. Their incentives don't align with mine. For the most part, Mozilla's do.
If Mozilla falls, then we're right back to where we were in 2001. A single company dictating the standards of the web. That horrifies me.
comment 7y ago · link · parent
For all of you that have a "last 10%" problem with Firefox (i.e. "I'd use Firefox if only it had X or Y feature"), please consider if that's worth contributing to the monoculture of rendering engines, and worth extending Google's monopoly on Internet standards.
comment 8y ago · link · parent
The EpiPen is designed to be used with minimal training. A diabetic who injects themselves regularly with insulin is presumed to have the skill to do it without screwing it up.
comment 8y ago · link · parent
The most bizarre part is Newsweek. I've known for a while that it isn't what it once was. What I didn't know was how much it had fallen. Similar to when I see "Polaroid" branded products, where it's obvious the name is the only thing left of that company.