10,627 karma · joined Dec 8, 2010 (15y ago) · 4,013 submissions
comment 13y ago · link · parent
#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
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
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
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
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
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
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
comment 13y ago · link · parent
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
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
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.