skysight-inc/HackerNews huggingface dataset:
The laws I had in mind when writing are US protected classes: https://en.wikipedia.org/wiki/Protected_class

By society I was thinking of Western society. Wikipedia lists equality as value in 2nd paragraph here: https://en.wikipedia.org/wiki/Western_culture

By morality I was thinking along the lines of socially accepted behaviour in the contemporary United States, and mainstream Christian morality which isn't the official state religion, but in my opinion the basics of it are taken as a given in politics, government, media, and academia.

Overall, I'm referring to mainstream anglo law, society, and morality.

> why wouldn't you want things to be optimal, depending what what they're optimizing for?

The reason is that when you express your goals, you don't fully understand what the consequences will be. There may be consequences that are totally repugnant to you. The child-story level version of this is where you get a genie which gives you your wishes in a horrible way: i.e. I wish to be the richest man in the world, and so the genie kills everyone else. I want a nice big house like my parents, and so the genie kills your parents and you inherit. Et cetera.

Telling the computer to do what you want is notoriously difficult for simple imperative programming, to the point where many people think a large fraction of the population just isn't up to it intellectually, and if you need proof of this you can search for fizz-buzz interview stories. Setting up goals or incentives for a system that behaves in a way the you can barely understand is even more difficult.
What about BTRFS? It's more lightweight. Or it's very Linux specific?

And I'm not sure you need snapshots and many of those industrial features on a watch anyway. Sometimes simplicity is actually a plus. So who said they need "one shoe fits all" to begin with? It's never a good approach.
Never meet your heroes. I was a big fan of his work before taking a class with him. He's the rockstar of the cogsci department at Berkeley but he's known as a massive ego and a poor professor.
Your `dtrt-indent-min-quality` tip has essentially solved my indentation detection issues, thanks!

I've never really been a fan of multiple cursors, Vim users tend to use macros to solve this. It's a highly valuable thing to learn and practise.
> The whole "I didn't think my vote would matter" crowd might turn out to be kind of irrelevant, more like a curiosity.

I sincerely hope so. But like I said above, it's only about 700,000 people to swing the vote to "Remain". A little more than 1% of the population/something like 2% of those that voted.
Sure, let's say an ORM is anything capable of turning normal app code into SQL statements by itself.

What do ORMs do that's magic? What are the problems? Are you not in full control of them? It's your code after all that's using them.

I really don't get how they suddenly force any issues on you that you don't create yourself. The output SQL doesn't really matter if it gets the job done, and in cases it does you still have full control to write it yourself, and even use the same ORM to save you time in executing that.
I think we may have DDOSed this site. I'm getting "Error establishing a database connection".
It's true that the article doesn't describe the initiative as imperialist in so many words, but it does portray it as such in the sense of putting "imperial or sovereign interests over the interests of the dependent states" [1]. I apologise, my use of the word "imperialist" was quite redundant as I had already used "self-interested". I further apologise for extending this tedious game of definitions but since I have now been flagged as well as downvoted, I can only assume that my original comment was desperately unclear.

[1] http://www.dictionary.com/browse/imperialism
Yes, but that library is using Haskell functions to compose SQL strings at run-time. I should have clarified that by interpolation I meant manually writing the string you send to the DBMS.
That comment puzzled me as well. I don't know what the author meant.
But the free (as in libre) software movement has done something socially that I don't think could have been accomplished with BSD.
'Britain Left' may be the eventual outcome, but we aren't there yet by a long shot. There was an advisory referendum, and the government promised to follow up on its outcome, but all that happened on that front so far is that the prime minister effectively said "yes, I promised that, but I'll resign instead. Let's find somebody else to do what I promised to do".
Agreed on all points but the "really can't break it" — it's not some crazy indestructible capsule like the SM58! :)
Different person here.

From the interview https://www.morgenweb.de/sie-konnen-es-nicht-lassen-1.262032...:

>What happens, when a refugee climbs over the fence?

>Petry: Then the police have to stop the refugee from entering German ground.

>And if he is doing it anyway?

>Petry: You want to lead me into a specific direction.

>Again: What should the policeman do in this case?

>Petry: He must stop the illegal border crossing, using his firearm if necessary. [Note: The translation "if necessary" is maybe a bit off, can't find a better phrasing. The original sounds like you'd use it in less cases than "if necessary".] That's what the law says.

>There is a law in Germany that contains a firing order for borders?

>Petry: I haven't used the word firing order. No policeman wants to shoot at a refugee. I don't want that either. But using arms is the last resort. It's crucial that we don't let it get so far, and slow the stream of refugees by making an agreement with Austria and monitoring the EU borders.

That much for the actual interview. As for the interpretation of the actual law, the police said that no policeman would shoot at a refugee, as it wouldn't be proportionate to shoot an unarmed person (proportionality is an important concept for these kind of things in Germany).

[Later she apparantly got asked whether she also "wants to shoot children and women", she just quickly answered "yes". This is against the law, as the law does explicitly forbid shooting at children.]

Not sure if that helped, tell me. :)
So does Canada.
I'm currently at a company that is not using an ORM - what has happened is that developers have written endpoints with inconsistent data formatting for similar data types, which prevents the possibility of creating abstractions cleanly on the client. It would have been nice to have a lightweight ORM, if only for object consistency.
Sounds similar to the problem of ticket prices and scalping. It absolutely sucks that families are getting displaced, but at the same time it's a correction in the market.

I'd be curious to know why family residences are more valuable as short-term rentals. My guess would be that there's just more people that want to stay in SF than there are hotels available at prices people want to pay. The tight housing market isn't helping that either. People are getting evicted and replaced by renters willing to pay more, regardless of Airbnb. There's premium on space, short or long term.

Airbnb's not helping, but I think it's more of a symptom of the bay's broken housing market than anything else. I'd wonder if regulating Airbnb rentals wouldn't have a negative effect similar to rent control. My understanding is that most economists agree that price ceilings on real estate only exacerbate the supply problem that places like SF are facing, and the best solution is to build.

On the other hand, why risk the capital to build a hotel, when you can just use the existing housing instead?
Needed. LLVM hasn't been around as long as Facebook, and for a long time initially you couldn't (or wanted to) build the Linux kernel with it.
I think I'll stick with Red.
Isn't controls on mics the worst UX because the wrong people are always messing with them?

You raise a good point about (even in the bad case) moving headphones around the signal chain---and damn as an (especially functional) programmer I'd like that to be able to tap arbitrary locations in data flow like that. Enough all these control-flow-based debugging tools!

> One button that engages a good EQ is much, much better than something like this

Well there's always overkill, but would one of those be worse than one of those and then, next in the signal chain, a 1-button EQ whose functionality is completely subsumed?
It's like trying to sell your house in 2009.

You know it used to be worth a lot more, and may be again someday, but it's uncertain. You suddenly get an offer that's higher than the current market, so you take it since you have no real confidence the market will be back to its former levels in the next decade. Yes it's a good offer for the moment, but there's still an element of fear/uncertainty driving the decision.

It's also potentially scary to Microsoft since they may have paid a price that's well above anything the market will ever see again.
I don't think commerce is more fundamental. Humans survived for hundreds of thousands of years without commerce as we know it. Even at the time of the founding, the vast majority of Americans were living on mostly self-sufficient farms. Commerce in the modern sense is enabled by government: protection of property rights, imposition of a common currency, protection against pirates on the high seas.

You can argue that government isn't necessary to enable commerce. That you could have a world that has commerce without government. But even if that were true, in the world we do have, commerce is built upon the infrastructure provided by government. Just like the road system. And the government is thus entitled to regulate commerce just like it regulates left-hand turns on roads.

Of course, this is just an argument that regulation of monetary transactions is consistent with the assumptions underlying our institutions. I have no opinion on whether money-laundering controls are a good idea or not.
I see this comment a lot on HN. It's a legitimate concern, but I'm curious about what someone can/should do to alleviate that fear for you. Pricing is....complicated...and for a side project that's still being developed, OP may not have had time to think about it yet. Would providing easy export options help? That way when pricing is announced if it's too high for you, you can easily jump ship?

Just curious, because I've had the same feedback a number of times on my side projects and I haven't figured out a good strategy to handle it yet.
It's XLR. But even then Americans and Europeans couldn't agree on where to stick the three wires.

This is the 1992 document that finally standardized "pin 2 hot" among other minutiae: http://www.aes.org/publications/standards/search.cfm?docID=1...
Yep, for years my bias has been trending to the relational method of modeling data rather than the object oriented way.

The relational model is more flexible -- you can slice data up in any number of ways, rather than through a fixed hierarchy.

The relational model was developed by Date/Codd to address the needless complexity and brittle nature applications built around network or hierarchical databases of the 60s/70s, which are in many ways analogous to today's OO relationships.
> For example, I have seen one place where if they have baskets of strawberries, and some of the strawberries are getting moldy, they will by hand separate out the non moldy ones, toss the moldy ones, and repackage the baskets.

Having worked produce in both regular chain markets, and in "gourmet natural foods" markets, I can assure you that this is a common practice.
This might sound like a pedantic correction, but IRS people I've spoken to are quite adamant about this: the people of the United States have, through their Congressional representatives, decided that they deserve a share of fellow citizens' foreign-sourced income.

The IRS has no discretion in this matter; they just deliver the bill.
So you fix brain plasticity as well. The point of the exercise is identify and revert changes, and loss of synaptic/neural plasticity with age is well known and well studied already.

As to population growth, even putting aside the point that Malthusian predictions have always been wrong, and that there is more than enough food production to feed everyone in the world going forward for even quite large increases in population:

http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3192186/

"This study explores different demographic scenarios and population projections, in order to clarify what could be the demographic consequences of a successful biomedical war on aging. A general conclusion of this study is that population changes are surprisingly slow in their response to a dramatic life extension. For example, we applied the cohort-component method of population projections to 2005 Swedish population for several scenarios of life extension and a fertility schedule observed in 2005. Even for very long 100-year projection horizon, with the most radical life extension scenario (assuming no aging at all after age 60), the total population increases by 22% only (from 9.1 to 11.0 million)."
So germans should be running to their local library, in order to digitize everything and claim new copyright?

Better the citizenry do it than corporations.
>it can serve well as a very broad introduction to some of the curious corners of cellular automata research.

This is true. It's a substantial book, well worth reading despite its flaws. The thrust of my post was that it should not be the _first_ thing you read in order to begin learning about CA.
I see the bug. If the ping times are high enough (~250ms) it will happily create circles which exceed the area of earth, and the google maps API will happily draw negative circles which exclude the user's likely location.

Really there should be a max function that shades the entire earth (or ignores it since that result really can't tell you anything).
The new music radio app that has changed the world
The Mooltipass, offline password keeper
Commercial aircraft can call their airline's maintenance department at any time for advice on problems that occur in-flight.
Virtually all commerce in modern society is intermediated by fiat money, which is a product of the state. People are free to trade goods with Monopoly money if they want to, but if they want the security and backing of the United States, including the force and authority of its agents and courts, then they use the US dollar, and are subsequently subject to US law.
The solution that provides strong security is end-to-end encryption. This is how Signal works, the product that Moxie built: https://en.wikipedia.org/wiki/Signal_(software)

Levison's follow-up project DarkMail also works in a similar way while focusing on email: https://darkmail.info/

Although I don't have a great opinion of Lavabit, I have skimmed the technical documentation for DarkMail and it does appear to solve the problem properly and to make up for the deficiencies in Lavabit. It's not backwards-compatible with existing email, while being secure, though, so it wouldn't automatically upgrade the security of webmail. It's very difficult to secure web-based email any better than the major name-brand providers already do. DarkMail will work, but it requires a new protocol layered on top of email that handles key exchange and opportunistic end-to-end encryption.
To be fair, I've never seen a large project be anything other than a giant mess. This is the nature of large projects. If it's not a giant mess, you are probably leaving user happiness (= $$$) on the table.
It is quite amazing to me that someone can seriously suggest that a scientific community with the biotechnology to control aging as a chronic medical condition would somehow lack the biotechnology to defeat inherited and infectious disease.

If you actually spend any time looking at what is going on in the labs, treatments for any and all viral infections, universal cancer therapies, ways to repair some of the cell and tissue damage that causes aging, ways to repair any and all genetic defects, and more, are all on the verge and will emerge over the next decade or two.
Exercises and Workouts – How Long Should Your Workouts Be?
you know. It occurs to me that you could actually do this without storing the password in plaintext!

All you'd have to do is iterate every potential answer into a bloom filter and store that. The math gets a little hairy around the 50 character mark as you'd have 117600 operations to do to construct the bloom filter, and it gets worse if you expect more characters.

Here's how you would construct it.

For every 3 choose n of the password, insert a value of those 3 characters ("abc") + delimit (":") + the positions (1,2,4), You can't just insert the characters because the index of characters is part of the answer.

all you'd need to do is store... a ~1MB bloom filter per client. Huh, that number was bigger than I thought it would be.

Well nevermind. Fun thought though.
Boris Johnson breaks silence to set out leadership platform
I have once written some thoughts on immortality (http://melvinmt.com/the-immortality-paradox) and I came to the conclusion that while we basically always act like we're immortal in our whole decision making and lifestyle, it is mortality that allows us to advance humanity as a whole.
Microfiche also greatly democratised pre-digital genealogical research, as it allowed massive amounts of family history data, birth and death notices in newspapers, and so on, to be copied and distributed around the world.
My experience with hibernate, entity framework, nhibernate, and lastly dapper has basically left me thinking Dapper is all you'll ever want. I can't imagine a use case where I'd rather opt for NHibernate or EF at the moment.

(I might add, Dapper in combination with C#6 even gives me enough type saftey to be happy. String interpolation and the nameof operator complements dappers DTO approach nicely)

Since you seem to have similar experiences Im curious. When would you ditch dapper for the others?
Pope Francis says Christians should apologise to gay people
I am also confused by this. I found that the absurdity of seeing death as a necessary thing to be captured really well in Nick Bostrom's The Fable of the Dragon-Tyrant
http://www.nickbostrom.com/fable/dragon.html

And it works pretty well to use it in arguments about the subject ;)
There are probably ways of solving these problems that are better than killing everybody.
I actually like this as implemented by one of my banks. The 'pick a few letters' part of the login is pulled from a list of secret question answers rather than the password itself, and is presented after successfully entering the password.

So my password manager enters my password, and then on the next screen I am asked for the (for example) 4th and 5th letters of the street I grew up on. The requested letters change and the question is pulled from a saved list of question/answer pairs.

I am not aware of how the bank deals with accessibility limitations of this system.
In 1998 C++, we can solve the problem of how to make a class non-copyable, even to code that is in its class scope.

We can create a dummy class which has a private copy constructor that is not implemented:

class noncopyable {
private:
noncopyable(const noncopyable &);
};

then simply make this a data member of a class that you don't wish to be copyable:

class whatever {
private:
noncopyable nc;
};

The default copy constructor generated by the C++ compiler performs a member-for-member copy, which involves copying nc. That is not possible, so in effect that copy constructor is defeated, not unlike by "= delete".

Alternatively use inheritance to mix this in as a trait:

class whatever : private noncopyable {
// ...
};
I agree it's a tough one, especially on a side project. As time is my most limited resource I effectively want to say "hey looks cool, come back to me when it's out of beta and you might have a customer". If I could sign up to a one time email notification for that, it would suit me fine.

Alternatively have a think about pricing plans and display them as rates for beta users, guaranteed for the first 12 months or some such.

Exports are always useful, but I'm more concerned with the time spent integrating a system only to potentially have to find and learn a new one.

Of course, none of these are reasons not to post a Show HN!
Ask HN: What happened to colllor.com?
http://colllor.com/
Makes sense to me. I get moldy strawberries so often at the local supermarket that I absolutely open the container and rumage around before I buy. If they bothered to remove the moldy ones for me, I'd appreciate it.

What's the alternative? Should they be throwing away the entire container?
It's not even wrong or bad. It's pretty much what it is in some of the SaaS cases. (those that only operate on your data)
In the world outside of that instructor's classroom, there are coding conventions which forbid certain things, with excellent reasons for doing so.

Back when ISO C++ was still staffed by people with useful ideas, they invented various more specialized, safer casts that refuse to do "off topic" conversions. These replace the "(type) expr" C casting notation.

A C++ coding convention document can cheerfully forbid C style casts; there isn't any reason to use them.
working my way through Herb Grossman's Calculus Revisited on MITs OCW. He is constantly approaching the same result from a different angle in much the same way. Best calc teacher i ever had and he passed away years ago...
Show HN: Listen to ambient sounds and music. Improve productivity and focus
You are both partially right. An ORM deals with the black magic of connections, parameters, transactions, etc. If you don't use an ORM, then you still have to deal with those semantics. But I do agree that you aren't writing an ORM.
The ridiculous thing about this, if accurate, is that Tor was (is?) primarily funded by an organization connected to State and CIA propaganda efforts. Most of them receive money from US governmemt in sone way. CIA itself uses Tor for same reason Navy created it. While FBI and NSA hate it, the CIA and State love it as a tool for protecting foreign operators or dissenters. Makes it funny they're so worried about bringing CIA in.

Anyway, the right way go do security against nation-states is creating deliverables and processes that are verified by mutually-suspicious parties. As in, with high-assurance security, you assume the people are largely malicious while focusing on vetting thd product and process throughout lifecycle. Not sure what this CIA person's role is supposed to be but it's bad INFOSEC and OPSEC if he can unilaterally do lots of damage. Shouldn't be possible.

Far as image, just like my subversion-resistant build scheme, having helpful CIA rep onboard as a check American government can trust is beneficial at least for review and testing. Have one from each major government or institution using the service acting as checks against inserted or ignored subversions. Plus non-government groups of course. That one CIA guy can compromise either service or image again makes process or trust assessment look weak.

I say let them come onboard but with non-critical access and any actions reviewed. Even if failure, it would teach important lessons.
Part of this is due to volume. A chain like Safeway needs massive volume to supply all their stores. A smaller chain can be more selective in what they buy because they need smaller amounts. Smaller chains are also more willing to deal with local farms directly for regional supply.

In PDX, I'd rank the produce quality as:

1) farmers market (unlike many cities, in Portland the vendors are the farmers)
2) Zupans - on the spendy side but quite good
3) Whole Foods
4) Fred Meyers
5) New Seasons - small local chain, but lousy buyers
6) Safeway
Money laundering is not a crime? It's required to finance certain crimes, or to cover them up.

It's not victimless.
Obviously so that you share it on Facebook...

But seriously, why not, or what instead?