Better HN
topnewbestaskshowjobs
Log inSign up

function_seven

15,501 karma · joined Jan 22, 2011 (15y ago) · 3,183 submissions

Submissions

comment 7y ago · link · parent

I don't understand why the daemon needs to client to escape newlines in the message. Can't it handle that before feeding the message to STDIN?

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

Do people hate Outbrain because Outbrain does this? Or is it due to the nature of their ads? (I'm assuming we're talking about the "Around the Web" chum boxes, right?)

comment 7y ago · link · parent

Parent made no such statement. Read it again:

> 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

What's the URL for the 301 destination? (No cheating, I want to know from memory :)

comment 7y ago · link · parent

Ha. I asked my architect to design me something modern, and all I got was some 1950s bungalow!

I said, “Walter! What is this? I wanted something new and innovative.”

“Oh. You want postmodern then!”

comment 7y ago · link · parent

I wish the "Request Desktop" option actually faked a typical screen size (say, 1280 x 800, 96dpi) and all the other attributes that would make a site think it's displaying on a desktop browser. It's frustrating to really want the desktop version, and have no way of doing that when the site is too "smart" for me.

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

You're not being charitable with your interpretation of parent's comment. You quoted the first line, then ignored this:

> 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

The US price increases aren't being attributed to the strong dollar. The letter is referring to the reasons Chinese sales are weaker than predicted. The stronger dollar is one of those reasons.

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

My thoughts exactly. The iPhone 6S is still plenty fast, does everything I need it to, has a large screen, and a headphone jack.

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

It's still possible to subdivide a broad field and allow less-skilled people to do individual parts.

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

Thanks. I had some fuzzy idea backwards in my mind: that part of the reason IP blocks are correlated to location had to do with address space constraints.

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

Does an IPv6 world prevent IP-based location sniffing?

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

That's an awesome point. The poor saps have to hand-waive around axioms within their own field. No way they're going to accept divine interventions and invisible dragons in some other line of work :)

comment 7y ago · link · parent

Because mathematicians are terrible at supernatural investigation. Not enough rules in the framework.

comment 7y ago · link · parent

> It really does mean that my poor accuracy with a large caliber handgun is from flinching.

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

You live there. You're allowed to remove items from your own porch. I think the scenarios would be:

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 think the vast majority of them do, but not all. The other common ordering is BGR.

I think G is in the middle of the pixel because it is the color our eyes are most sensitive to?

comment 7y ago · link · parent

8 colors to account for gaps.

But more colors still if you want anti-aliasing!

comment 7y ago · link · parent

So this is the highest use of the .xyz domain?

I think it is.

comment 7y ago · link · parent

Parent comment is saying as much. $60mm to put out this fire is worth it in order to eliminate a CO2 source.

comment 7y ago · link · parent

This graph is meant to show what is observable. The past is up, and distances are along the x axis.

comment 7y ago · link · parent

I imagine you could set up a scrollable div on a page, with elements within and query the position of those elements or their width. Having a custom scroll bar would flow the contained elements in different ways depending on how wide it is.

comment 7y ago · link · parent

Not parent, but I would write

    x)-2,2(
or

    x![-2,2]

comment 7y ago · link · parent

I don’t have dev tools on mobile, so it was a guess. iOS Safari also prompts for autofill on that page. I think sibling comment is right. The placeholder has “name” in it.

comment 7y ago · link · parent

I’m guessing the field name matches something your browser interprets as autofill-able?

Like <input name="fname">?

comment 7y ago · link · parent

I think Safari is another good choice. It's not Chromium or Blink-based, and so represents more diversity.

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

I use Firefox exclusively and am not happy with how the browser market is shaping up.

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 7y ago · link · parent

When they’ve already burned their reputation and need to convince portential partners that they won’t do it again.

I can’t think of any real world examples, though. So this is all hypothetical.

comment 8y ago · link · parent

This is a devil's advocate argument, but the difference is between one person who routinely uses the drug versus another who may go for years before needing to use it in an emergency situation.

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

This is the kind of story where a corkboard with photos and yarn is required to follow it. I couldn't keep up with all the interconnected players and LLCs.

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.

1
656667
107