Hacker Newsnew | past | comments | ask | show | jobs | submit | codahale's commentslogin

Shamir’s is one of my favorite little crypto schemes. I’ve implemented it over GF(256) in a bunch of different languages just for fun:

Haskell: https://github.com/codahale/hs-shamir Go: https://github.com/codahale/sss Rust: https://github.com/codahale/sss.rs Java: https://github.com/codahale/shamir


I made good use of your java library a few months ago for a project at work, thank you so much !


XML parsing is notably an even larger minefield: https://www.owasp.org/index.php/XML_Security_Cheat_Sheet


I've written JSON parsers to replace platform specific JSON parsers with bug-for-bug (or at the very least misfeature-for-misfeature) parity to port code without breaking it, without too much going terribly wrong. I wouldn't even try to attempt the same for XML.

Generating a useful conservative subset of JSON that most/all JSON serializers will accept hasn't been that hard in practice IME (no trailing commas, escape all unicode, don't assume >double precision/range scalars, etc.), but I still haven't figured out how to do the same for some XML serializers (failing to serialize because it lacks 'extra' annotation tags in some cases, failing to serialize because it doesn't ignore 'extra' annotation tags in other cases...)


Those safeguards were added by Travis CI folks as one of their remediation action items: https://github.com/DatabaseCleaner/database_cleaner/pull/521


Dang, somehow I missed that. Rawk!


"You know the law: two men enter, one man leaves."


While it’s definitely the case that there are more concise domain-specific examples, as you’ve pointed out, the article’s point stands: in Clojure, a Strategy is simply passing a function as an argument to another function.


The caveat is perhaps that in Java 8, a Strategy is simply passing a function as an argument to another function too.

I'd love to see patterns struck down as obsolete with Java language updates.


+ Finding or creating suitable functional interface for passing the function


Obviously, those are monoliths in dire need of decomposition.


MongoDB doesn't track this information, unfortunately.


It looks like the latest version does: https://jira.mongodb.org/browse/SERVER-2227

The problem with MongoDB is that teams think they can get away by just setting it and forgetting it. Real companies have DBAs that monitor it and understand it and make a living through it. They're just trying to automate it using fancy ui's. That's what you get for trying to automate your DBAs.


3.1.x is a development branch and not intended for production use. When they release 3.2, MongoDB will support it.


And that 'nice' used to mean 'foolish'? http://www.etymonline.com/index.php?term=nice

And that 'fizzle' used to mean 'fart quietly'? http://www.etymonline.com/index.php?term=fizzle

And that 'wench' used to mean 'child'? http://www.etymonline.com/index.php?term=wench

And that 'meat' used to mean 'food'? http://www.etymonline.com/index.php?term=meat

Etymology is fascinating (a word which itself may be related to the Latin 'fascinum', or penis).


Taubes breezily dismisses the Hall paper, which is, methodologically speaking, pretty conclusive. If you're curious about the paper and its implications for Taubes's obesity-insulin hypothesis, I'd recommend these two blog posts by Stephan Guyenet, an obesity researcher:

http://wholehealthsource.blogspot.com/2015/08/a-new-human-tr...

http://wholehealthsource.blogspot.com/2015/08/more-thoughts-...


I wouldn't dismiss the controversy just yet. Although the obesity-insulin hypothesis ignores other hormones and factors such as leptin, glucagon, and ghrelin; as well as other factors to nutrition, like how insulin spikes contribute to muscle growth, it is pretty effective at predicting heart disease and diabetes and reduction in not just carbohydrates but also starches / free sugars is almost universally agreed to provide long term health benefits.


800-273-8255

National Suicide Prevention Lifeline

24 hours a day, 7 days a week

or www.suicidepreventionlifeline.org


International help: http://www.befrienders.org/find-a-helpline

And for HN's healthy Indian population AASRA 24/7 helpline at +91-22-27546669 or +91-22-27546667. http://www.aasra.info


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: