skysight-inc/HackerNews huggingface dataset:
I've been using Nix at a startup for about a year now. For us, the value is easy and exact replication of an application's execution environment. Setting up a development environment for a new hire is just a matter of cloning the repository and running nix-build. (Though for some apps, there's also a third step: run a script to set up the database.) Once an app works in the dev environment, it just works in staging or production.

That's not to say that we never have configuration issues, but mostly they come from weirdness in 3-party packages. For example, recent versions of `node-pg` (postgresql bindings for node) have an implicit dependency: if you want to use the native library instead of the pure-Javascript implementation, you must also install `pg-native` alongside pg. That's just in the README, though, there's no peerDependency declared in pg's package.json file, so npm2nix can't generate the appropriate nix expressions.

Using nix definitely gives you the sense of swimming upstream, because the rest of the world doesn't understand this stuff and doesn't care. But for us, it's been worth it.
Only if the user is providing borrowed strings in the first place, in which case, there's not much choice. If the user can provide an owned string, it'll just use that, no copy.
Note: Buck works only on Mac OS X and Linux. Windows is not supported - you lost me there
Why not hard-code the operator precedence into the BNF? Like the K&R book does it.
Convenience makes hypocrites of us all, as John Naughton wrote recently.

“We have our beliefs, our morals, our instincts. We have our dislike of douchebags, our mistrust of bad behaviour. We have all that. But in the end it turns out that if something’s 10% cheaper and 5% faster, we’ll give it all up quicker than we can order a sandwich.”

Convenience, in other words, makes hypocrites of us all. It explains why we may moan about surveillance but continue to use Gmail and Facebook; why we shudder in distaste at what goes on in the Chinese factories that make Apple products yet continue to enjoy our iPhones; and why we are horrified by lethal fires we read about in Bangladeshi sweatshops and yet pounce gleefully on T-shirt bargains in retail outlets whenever we can find them.

Interestingly, our addiction to convenience has recently received a powerful boost from another regrettable human failing – our craving for instant gratification . We’ve gone from being satisfied with “3 to 5 working days” delivery estimate to next-day delivery.

http://www.theguardian.com/commentisfree/2014/dec/28/uber-am...
It is not impossible. Maybe we can stop talking in absolutes about this issue.

We have an open office setup because a) we're small enough that it's not an issue (6 people) and b) we can't afford the alternative. Offices are expensive, compared to the alternative.

I agree with the article about placement, but I strongly disagree with this constant sentiment that open offices suck. I agree that as we grow we'll need to be able to put space between people, and maybe the cost will become easier to tackle. But for a small company like ours, I find space division is just as often an annoyance as an issue.
How to turn your old PC into a modern media center with Kodibuntu
Identical to article just posted by same user: https://news.ycombinator.com/item?id=9599439
I left a comment on OP several days ago pointing that out; still hasn't appeared nor has it been fixed. Apparently they don't care about being correct.
If that's the plan, won't it make much more sense to start from open-source android and move from there ?
Can someone explain why this comment is being down voted? I think the author makes a valid point.

When I choose my iPhone, my MacBook Air, my Martin acoustic guitar, etc, I didn't need a salesman to explain to me how great these products were. I went into the store and tried them out for myself. No one ever had to convince me to purchase the product. The product did that by itself.

On the other hand, if someone has to convince me to purchase a product I was never looking to purchase, or over a competitors, the product probably wasn't that great in the first place.
On OSX, theres "USB Overdrive" in case you want to get your gamepad to work. Took me a bit to figure that out.
https://news.ycombinator.com/item?id=8203494
Thank you! This is the best explanation I've been able to find for how to use From, instead of Into.

One thing that's useful about From is that you can implement From<SomePublicStruct> for YourPrivateStruct, but the compiler complains about Into<YourPrivateStruct> for SomePublicStruct.

SomePublicStruct could be (i32, i32) and YourPrivateStruct could be MyPoint, for example.

Making YourPrivateStruct public (with pub struct) fixes things, but that's not always what you want.
Your guess would be way off. I am neither of those things. Simply a person looking to share his experience. I have much better things to do with my time besides fabricating elaborate stories on the public Internet. Not trying to be defensive, but just saying that not everything on the Internet is rubbish.

I do however respect your opinion and view as an individual. That's your right, of course.
FPGA Add-On Boards Support Raspberry Pi, BeagleBone Black
You ask about _literature_ specifically: Depends on what you're teaching. I think novels like Cement and How the Steel was Tempered are hard sells in the classroom. And Quiet Flows the Don is so long.

Having said that, a well-designed cultural studies course in literature, painting, sculpture, film, and propaganda would be amazing, and I think would be intellectually stimulating.

Maybe like this: http://registrar.princeton.edu/course-offerings/course_detai...
One starting point would be a public dialogue about the topic.
I would give up all the free lunches and massages in the world to not work in an open office.
There seem to be a number of places where you've changed hyphens to em-dashes. (E.g.: "This argument is independent of whether we specify program control explicitly, as in Algol—like languages, or implicitly, as in Planner—Conniver-like languages.") It's a bit confusing to read. Would you possibly mind fixing this? Thank you!
Ask HN: How did you overcome depression caused by work/career?
I felt constantly inadequate when I was socializing, in meetings or engaging in few activities. I also noticed that I sometimes felt uncontrollable anger/anxiety and would lash out at people close to me. This bothered me a lot and I consulted couple of psychiatrists. Both concluded that I suffer from depression and gave me medication. The medication helped me a lot and I felt much better ever since. After 4 months, I discontinued the medication and I started to see those feelings come back. The effects of the medication are wearing off.
I will go back to taking antidepressants but I would like to ask the hacker news community if you have recommendations as alternatives to medication for long term impact and to avoid the side-effects of antidepressants.
Can someone shed some light on why they would now allow android but not native app(aka not JS based)? It seems strange.
Show HN: Basic template for DOM manipulation via a chrome extension click event
That's no different from having a C++ function that takes a std::string, or overloads for const std::string& and std::string&&, instead of only accepting one. Only you have to go out of your way to have Into<String> to do it. And we're talking about an API to make queries to send remotely.
>gradually tweaking that to be faster

Do elaborate please!
From the bottom of the article: "This sponsored post is a paid advertisement. If you want to sponsor an article on Lawyerist for your product or service, learn more about advertising on Lawyerist."
Awesome, I've been wanting something like this for a while.
You get the privilege of changing the color of the top bar at a certain karma level.
The scope you've got actually has an ADC which samples at 1G Sa/s :) rather than 100M Sa/s
Pfft, trust Microsoft to push nonportable code.
I didn't know both of these facts! Thanks!
It's nice that the article provides solutions other than "just get private offices for everyone". I work in a small research lab and there are only two tiny rooms for about 12 people, so strategies like these are about all we have.
[author here]

Because I'm also sending a lot more info on things I had to cut from the talk for time (eg. samples of test code). I haven't finished or polished the stuff that I knew early I had to cut, so it's coming out as I can finish it.

Sorry it was unclear, I'll improve the text on that pgae.
I agree that the GPL is a little weak.

Notably, when it was first conceived, memories were much smaller, and it was difficult to ask embedding the sources in the same memory as the binary.

But nowadays, this could be a requirement, even bypassing the internet distribution requirement.

Nowadays, physical devices could have all their design files and source code embedded into them and easily accessible for ulterior maintainance.
This is a good point. The metadata about time online might well be enough to pinpoint who is talking to who, over a long enough time. One option to avoid this is to get rid of status indicators, though that is inelegant and means the message would have to sit on the server at least until it expired. I'm not too concerned with the messages sitting on the server, because if the message passes through the server, then they could be storing it either way, and I'm already trusting that they will do that responsibly. Well, at the very least, trusting them to do that responsibly as long as there is no algorithm for faster large prime factorization, and the message is unreadable to them anyway. Expiration timers could be deliberately very short, which would reduce server load. I would personally allow the expiration timer to be user-set, because I believe the average security conscious person is going to want the timer to be short, unless there is a reason for the message to hang around.

Of course, this doesn't completely address the issue. It would still be theoretically possible to check for connections to the server, and determine online/offline status just from whether the messages are going out immediately after being sent in. Even generating fake data might not be enough to completely reduce that theoretically possible to the realm of technically impossible. It's still a risk to keep in mind. You can also never truly rule out that the service itself is compromised by an entity who wants your (meta or otherwise) data. You're safest disposing of your identity regularly, to disconnect previous conversations from new ones, if you're concerned about metadata analysis, which is considerably less elegant of a solution.

Of course, if your identity is anonymous, you don't truly have to worry about the metadata analysis, unless the person on the other end is compromised by a malicious agent, and knows details about you that could deanonymize you....
>>China has anywhere from 69 to 85 million vacant homes (approx. same population as India)

I am not sure I understand this calculation. India's population is more than a billion
I read a lot of hate for open offices on Hacker News, but I don't think it's as simple as "open offices are bad." Last year my startup moved into our first office and I did an informal survey of the team (who had previously been working from their respective homes) about whether they'd prefer their main desks to be in private offices or an open room, and the winner was the open office.

My point isn't that open offices are better. But some people clearly prefer them, and I think this community would benefit from a more nuanced discussion about when an open office is better vs. when private rooms are better.

This article takes a step in that direction by pointing out that some open layouts are better than others, but the author also makes it pretty clear that he never thinks an open office is a good thing. The world is rarely so black and white.
Well, it's not implicit. It's explicit both inside the function body (".into()") and in the function signature (where "into" alerts the user that something may be going on). You can also avoid the copy by just supplying String in the first place, in which case it gets moved (avoiding the allocation), not copied.
What's the P?
How to Use Twitter for Business and Marketing
Oh, I think I see — you're generously sharing your language-design expertise by guiding us towards working on things whose potential you can see, potential that a less experienced or talented person might miss?
Evidence That the Tech Bubble Is at a Peak (2014)
Glad to hear that you've managed to get Nix adopted at your workplace. Gives me hope for the future.
Looks like the stargate icon
The land was granted to new settlers in exchange for promist to cultivate it. I suppose that the builders did not build their houses in exchange for anything beside money, and have no additional limiting clauses, and are free to do with their buildings what they will.

If they do, though, it's high time to check if these additional clauses are honored.
There a few classics like this from the 70's when the unions had immense power in the UK and there was lots of over employment in what was then public companies. Examples I remember were a false wall in the back of a British Steel factory which was setup with rows of bunk beds on the quiet so that only 1 in 3 had to do any work. The rest were paid to sleep. Also had employees on the books with the rather blatant names of D. Duck and M. Mouse.
Show HN: Finder, inspired by Tinder, for Facebook
There is an apkjs IRC channel on mozilla [1] so they might cross-compile Android apps via emscripten to asm.js. Couldn't get any info from moz when I asked around in that channel.

[1] http://search.mibbit.com/networks/Mozilla/%23apkjs
What demented mind invented this? It's not posted on April 1st so I'm not sure it's meant as a joke. Also it's on msdn.com.

Tilde and minus look just alike and make reading the code much harder if used together. "Look there's a --i oh no, it's actually -~i or is it ~-i or ~~i?"
Why Do Ben 10s Divorce Sugar Mamas?
Bitcoin and the Blockchain: Worth Embracing? [audio]
>Buildings take time to build, do I have to make that clear?

That largely depends on how quickly you want to build. Chinese companies can build whole skycrapers within weeks.
http://www.theverge.com/2015/5/14/8608039/building-timelapse...
I think the thing is in addition to all instances of the variable called a your search will also stop on any word that contains a. Now of course you can search for " a " in whatever way your editor prefer but programmers who write such variable names might easily write a=10 one time and a = 10 the next and before you know it you have an interesting regex there in your search.

I think he was contrasting it to an ide that will automatically find out which as "a"s are references to the same. ("Find usages" in most Java ides I think."
8 different types of programmers
The general public can't do anything to improve privacy. They have no viable options. It's up to us, the hackers and entrepreneurs, to create new viable options.
Criteria for Selecting a Docker Image Distribution Method
Engine stopping at speed/failing to start could also be a faulty crankshaft position sensor. I've heard of that a few times on e.g. Chevy bigblocks. The automatic transmission on the Chevys just slip into neutral though, so you don't get the kick. I imagine you take half a year out of the stall speed converter lifetime every time that kick happens.

But the big difference is that your failure was very noticable, so you wouldn't be surprised you lost power steering and ABS.
I really can't figure out why so many people read The Old New Thing, or perhaps more accurately, feel compelled to comment in the comment section. This post is perfectly typical of the level of technical comprehension necessary to enjoy the blog. You are routinely expected to (after explanation at least) be able to understand COM, or the details of the Windows message pump, or how C++'s deallocation interacts with Windows process shutdown, or how threading interacts with destructors, or as in this case, get the joke without having it explained for you, but the comment sections are always populated by dozens of people who are just lost as can be. I don't know how they get there in such quantity, or why they seem to collectively stay. (Do they get to the blog via google searches and stick around because they think it's a place to complain about Windows? It's certainly at least one popular pasttime....)

I'm grateful that Raymond Chen seems to have a lot of patience for it, because The Old New Thing is a unique gem and would be irreplaceable if shut down, so I'm glad he keeps at it. May his patience stay strong.
L’Oreal Goes After 3D Printed Human Skin to Test Beauty Products
I prefer to think of it as a pivot from "Marxism" branding to "disruption of incumbent rent-seekers".
This is a premature conclusion. There was no measurement of IQ before and after infection, so no such conclusion can be made.

There could be other, unknown, factors that happen to affect BOTH: a person's IQ and their likelihood to be infected, along with severity of infection. For example some genetic, environmental, or other variable that affects your IQ as well as infection-resistance.

It very well might be true, that infection does have the ability to lower IQ. But this study does not prove it.

I wish scientists would be more straightforward about conclusions. The title of the article should read: "Study finds that individuals who have suffered infection have a lower IQ than the general population" or something along those lines. Much different than saying that "infection lowers IQ".

This is beginner-level confusion of causation and correlation.
Hugo ( http://gohugo.io ) is pretty swell. It builds static sites a lot faster than Jekyll and has built-in support for disqus comments.
Why Eyes Are So Alluring
Thanks for your feedback. I was really interested in the slides - but not on a newsletter subscription.
It's just regular unreadable code. ~ and - are both prefix operators: bitwise complement and negation, respectively. With two's-complement arithmetic, "complement then negate" adds one while "negate then complement" subtracts one.
Any time. I myself checked in with IRC as I posted. :) Like I said, these traits are really new, and so they don't have great docs yet...
http://blog.jedchristiansen.com/pmarcaarchive/ask-pmarca-why...

"Private"
I know, i can't say that I follow my own advice all the time.

If you do just one thing: play hands separated at least for a while.
Thanks. It should be understandable that young people do not have enough patience to get what they want by way of voting or talking to MLA/MPs.
> but I've never seen the layouts advocated here

I work in one right now as a sysadmin and I absolutely hate it. The very first image you see up there? The 8 desks just rammed against each other? I work in one of those.

I absolutely despise it to the point where I'm most often sitting in the server room at a table against a wall more than I'm at my own desk.
> You are free to build your own hardware.

No, no you are not.

The physical problems notwithstanding (you happen to have a semiconductor fab in your basement?), too many things are covered by patents.
Women with this Gene are more Likely to Cheat on their Partners
It's an awful experience - not long after passing my driving test, the fuel pump in my car failed. Within a second or two of the engine cutting out, I had very little control of the car - steering took significant physical effort (far beyond not having power steering), and I basically had to stand on the brakes to even begin slowing down. I ended up steering into a kurb and throwing the handbrake on before stopping as I was close to rolling down a hill in traffic.
This has already been discussed on HN[1].
There have been some minor updates to the paper,
here is the diff:

< are the gear-based computers of Vergis, Steiglitz, Dickinson , and
> are the gear-based computers of Vergis, Steiglitz, and Dickinson , and

< (called Steiner vertices) other than the pegs themselves. Garey,
> (called Steiner vertices) other than the points themselves. Garey,

< spacetimes cannot be globally hyperbolic; that is to say, they must
> spacetimes cannot be globally hyperbolic; for example, they could

< a polynomial number of bits (or qubits) around that curve. Bacon
> a polynomial number of bits (or qubits) around that CTC. Bacon

< I thank Al Aho, Pioter Drubetskoy, Daniel Gottesman, David Poulin,
< John Preskill, and others who I have undoubtedly forgotten for
< enlightening conversations about the subject of this article. I
< especially thank Dave Bacon, Dan Christensen, and Antony Valentini
< for critiquing a draft, and Lane Hemaspaandra for pestering me to
< finish the damn thing.
> I thank Al Aho, Pioter Drubetskoy, Daniel Gottesman, Klas Markstrom,
> David Poulin, John Preskill, and others who I have undoubtedly
> forgotten for enlightening conversations about the subject of this
> article. I especially thank Dave Bacon, Dan Christensen, and Antony
> Valentini for critiquing a draft, and Lane Hemaspaandra for pestering
> me to finish the damn thing.

[1] https://news.ycombinator.com/item?id=8942220
Should basketball teams pay the same salary to their players, based on their 'experience'?
This sounds like a good change. Hopefully it would bring in a really good experience, not just a clone of the Android One series that compromises on hardware because of price.

Quoting from the email, "This will be the phone that you want to use, and will use every day." For this to be true, these are some of the key things for Mozilla to focus on:

* The responsiveness of the UI.

* A good camera (at least 5MP).

* A decent amount of memory to hold multiple apps (in dormant mode) and reduce startup times of recently used apps.

Running Android apps may be a good interim strategy while apps targeted and optimized for Firefox phones are developed. But this assumes that the phones can run them well. Otherwise it would just backfire completely, leaving Firefox phones as useless devices.

I can't wait for a well performing Firefox phone that's widely available (even if that means costing a few hundred dollars or equivalent)! It'd be great if Firefox can come to fourth place or (gasp) third place in the mobile OS wars.
Yes...sadly, the code highlighting plugin I'm using is not very good. I'll try to find a better one: thanks for the feedback.
Land is a boom waiting to go bust. Unfortunately, most naysayers are currently basking in seriously ridiculous amount of cash :P
Different people may prefer different setups (the grey), but science is pretty black and white on the issue, open offices increase sick days http://blogs.wsj.com/atwork/2014/02/25/study-open-offices-ar...
The compass isn't updating for me in iphone 6. Or is that one of the premium features?
The correction seems to be there now.
The School of Life (youtube autoplay)
This is a nice collection of introductory videos to philosophical topics. I found the short bios of philosophers (for example Albert Camus [1]) especially entertaining.

Unfortunately the only good link to this collection is the Youtube channel and it has annoying autoplay.

[1] https://www.youtube.com/watch?v=jQOfbObFOCw
Before worrying about unwritten rules, new users should really read the rules that have been written down - see the "Guidelines" and "FAQ" links at the bottom of the page.

Following the guidelines about what's appropriate to post and being civil in your comments are probably the most important requirements for being a part of the HN community.
Not in the same situation, but aerobic exercise helps. Try something new and you REALLY like.