Better HN
topnewbestaskshowjobs
Log inSign up

codezero

10,627 karma · joined Dec 8, 2010 (15y ago) · 4,013 submissions

I am a meat popsicle.
Submissions

comment 13y ago · link · parent

It might be on purpose for domains, versus paths within a domain.

comment 13y ago · link · parent

Thanks, good point. Do you have the link to another thread so I can upvote that?

comment 13y ago · link · parent

This is a good observation. You're probably right. Routine and habit and the actual experience of those routines and habits do have intrinsic value in the way you go about executing them :)

comment 13y ago · link · parent

This seems like a little detail that there's no harm in including, especially since you focus so much on macros, and this is kind of macro 101.

comment 13y ago · link · parent

I am a bit rusty, but isn't it always better to individually parenthesize macro variables in the expression?

  #define CHECK(X, Y) \
  do { printf("Performing Assertion\n"); assert((X - Y) != 0); \
  printf("Assertion passed\n"); } while (0)
Here, assert((X - Y) != 0) should be assert(((X) - (Y)) != 0)

It's OK when you are doing subtraction, but if you were doing something like division or multiplication, you could screw with the order of operations if you don't do this.

comment 13y ago · link · parent

This is pretty clever, but is this much better than the existing Bluetooth proximity unlock utilities?

The iPhone app that this pairs with costs $3.99 by the way.

If you use Mac OS, Proximity is similar to BlueProximity, there are probably other solutions that don't require an iOS app and accomplish the same thing without the magical novelty, all the same, I think it's neat and if the app weren't $4 I would try it out.

comment 13y ago · link · parent

Is it just as easy to get removed, in case you need to get an MRI?

comment 13y ago · link · parent

They'll spot this, so it's not worth it, it will only add to their suspicion. It's OK to 'shop it if you are removing stuff very obviously, but to hide/alter info they want will just cause trouble.

comment 13y ago · link · parent

It's up to you at this point. I think it's a bit unusual that they won't accept it after being redacted. You can try just sending it redacted anyways. Leaving name/address/dob/photo seems reasonable. If it's sufficiently high resolution, I can't see that they will be terribly bothered.

For reference, by the way, I work at Quora, and have done a lot of work relating to enforcing real names on the site. We have asked for photo ID, but specifically ask for details to be redacted. The only things that will escalate something to this level of scrutiny are multiple red flags that signal a suspicion of abuse.

I imagine that because there is a financial transaction involved, DigitalOcean has different procedures and looks for different red flags.

comment 13y ago · link · parent

Can you edit this to include Ask HN: in the beginning?

comment 13y ago · link · parent

This isn't terribly uncommon. You should ask if you can redact certain information from the ID. They probably don't do this often and when they do it's because there is some significant signal that means that the cost of asking you for this generally excessive information, outweighs possibly losing you as a customer because of some inherent risk they see on their side.

If you trust them with your credit card number, then I don't see why you shouldn't trust them with your identification as long as you are sure this is not a phishing scam of some sort. All the same, I'd still see if they would let you redact anything you are uncomfortable sharing (like the license # or address) Chances are that they just want to make sure you are definitely who you say you are, which a solid, scanned ID will help to confirm.

As a slightly unrelated aside: bartenders ask for your ID, so do some vendors when using a debit/credit card, so this is not completely crazy, obviously they don't explicitly store it in digital form, which is probably where your concern comes from.

comment 13y ago · link · parent

Get a lawyer.

comment 13y ago · link · parent

Ah, I advocate deriding content, but it's very easy to slip from content to the person :)

comment 13y ago · link · parent

Extremist is a relative definition though.

When reacting to people and teasing/making fun of them or deriding them, keep this in mind: http://en.wikipedia.org/wiki/Allport's_Scale

3645.

Google Search extends deep into apps with KitKat(readwrite.com ↗)

1 points · by codezero · 13y ago · discuss

comment 13y ago · link · parent

Derision is an alternative form of extremism. If the target is an extremist, they will use it as an example of their point of view being dismissed and suppressed. If they are being sarcastic, it will rile them into persisting.

comment 13y ago · link · parent

Thank you, Poe's Law.

comment 13y ago · link · parent

Thanks :)

comment 13y ago · link · parent

This is great! Obviously if it had a different, whizbang name, it may have caught on, right? :)

comment 13y ago · link · parent

I really miss finger. It was quite a novelty.

comment 13y ago · link · parent

I'm guessing he ran it on Quora to see if it would gain any traction, and since it did, either submitted it to Gamasutra or was asked by them to publish it there.

Since it's his answer, he can reproduce it anywhere he wants without crediting Quora as a source (since he's the source here), though it'd be sweet if he gave Quora a nod :)

comment 13y ago · link · parent

Pretty nifty. One of the things traceroute also does is to deal with broken routers that don't send the proper replies, as well as a number of other edge cases, but this is a cool toy and will probably work in most average cases.

see also:

http://cluepon.net/ras/traceroute.pdf and http://blog.cachefly.com/2012/02/15/understanding-traceroute...

3653.

'Cannonball' speed record broken – New York to LA in less than 29 hours(cnn.com ↗)

50 points · by codezero · 13y ago · 53 comments

comment 13y ago · link · parent

Yep, I agree this is generally bad practice and is prone to error conditions, but I am mainly addressing the article since it is claiming that this should never be done because of the possible catastrophic consequences, and I just don't think that scenario is likely enough to mount a campaign to abolish this practice :)

comment 13y ago · link · parent

If you detect an antagonistic or uncivil comment or commenter (an exercise to the reader), add an interstitial that displays the "In Comments" section of the guidelines with the editable comment before they are finally allowed to submit the comment.

comment 13y ago · link · parent

Assuming the probability that you drop connection is evenly distributed amongst all characters, even if there is no payload and this is all that is executed then there's barely a 1% chance of the truncation happening in the way you describe.

Considering that there is usually a sizable payload and the probability of a dropped connection is not evenly distributed and is probably very low, the scenario gets even less likely.

Yes, it's possible, but it's also possible to rm -rf / because you typed a path wrong and I bet the probability of human error is much higher than the probability of this shell trick screwing you over. People have rm -rf /'d their systems, but even this isn't a good reason to advocate for say, removing rm entirely or not allowing people to type into the shell :P

comment 13y ago · link · parent

It's not a discrete one or the other choice here. I think it's very unrealistic to believe that for the average person this is a dangerous security risk in practical terms.

The number of times people might do this is probably well below 100 and there are much more risky day to day security faux pas than this.

comment 13y ago · link · parent

Counterpoint to the author: have you ever heard of anyone ever having anything catastrophic happen because of this, ever? Have you ever heard of anyone even having it fail with garbage?

I haven't.

comment 13y ago · link · parent

This keeps coming up on Hacker News, and while I'm sure the people on Hacker News know this is bad, they probably still do it anyways because it's never had an adverse effect for them.

Speaking for myself, this has never caused a problem for me, and I'll probably keep doing it because it's convenient and that convenience is more valuable weighed against the potential bad things that could happen. Most likely is the case that the package just doesn't execute. The probability that it ends up on rm or something destructive is probably very low, and if someone is actively trying to MITM you, they will find a way if you are smart enough not to run scripts from wget, most people aren't the target of this kind of very specific attack.

Like Apple's TouchID – it may not really be secure, but it's very convenient, and that will often be enough to make it mainstream.

1
121122123
134