skysight-inc/HackerNews huggingface dataset:
Your response pretty aptly demonstrates the problem in the original article.

If you write to a temp file and then use rename, you need to pick a suitable temporary name (without a race condition) that other programs will ignore, and now you've probably created a garbage file if the program crashes before you get to the rename. You also need to make sure you've preserved the permissions in the original file, and hope that nobody else is using the same trick to update the same file.

There are API's and standard tricks for these things too. But it's difficult to be sure that you've covered all the corner cases and impossible to be sure that everyone else has covered all the corner places.

This all adds complexity compared to having a simple, standard, guaranteed way to atomically update a file and makes it less likely that most programs will do it right.
I feel like TypeScript could make JS a decent language if Microsoft starts going more ambitious with it - they really need to do a Dart style integration - official package manager, build system, full es5 transpiler, std lib polyfill included.

So far they have been conservative and focused only on typing but they could offer insane value if they started offering a full language expirience like Dart
Why are toothpaste and shampoo "relatively useless"? I believe there are many health benefits to using them.

I don't know for sure, however, because I've never tried going without them for long ... let me know how that goes.
Obviously I don't think so, but just saying "they behead people!" seems a bit disingenuous.
Don't know why you're downvoted. Everything you said is correct.

Additionally, in Linux, you can get asynchronous fdatasync(2) with sync_file_range(2).

aio(7) is weird. It really only works with direct I/O (which is necessary much less often than people think it is), and IIRC aio_fsync(2) isn't implemented on Linux, but that doesn't matter so much because generally direct I/O implies synchronous I/O (but not always). See http://lse.sourceforge.net/io/aio.html
If that is bugging you, try choosing places where your managers will be older than you. problem solved.
Cross-Platform Full-Stack Deployment
So I found another source which contradicts at least my first glance impression of yours. Here is something that might be more instructive[0], federal spending only, not including state and local spending. To be fair to Reagan, he didn't control state and local government spending.

Interpreting it is still somewhat difficult, but it looks like there was a peak of spending towards the start 80's. Definitely, other than after the 2008 crisis, federal spending did not increase as much as your other plot suggests.

Once again, this demonstrates the sin that is plotting multiple plots ontop of each other, can yield misleading impressions.

[0]http://www.usgovernmentspending.com/spending_chart_1900_2020...
Score Voting and Approval Voting are clearly the best alternative systems for single-winner elections (for multi-winner elections, many people support some form of Proportional Representation).

The problem is that FairVote, which advocates IRV (apparently because it's a useful steeping stone to the their REAL goal of STV), is run by a professional liar named Rob Richie, and he disseminates a massive amount of false and misleading information about voting systems. E.g.

https://sites.google.com/a/electology.org/www/fact-check
The concept was proven before w/ RMS in OpenVMS:

https://en.wikipedia.org/wiki/Files-11

It could work. Just best to have hybrids with different types of files, including those bypassing RDBMS function, so one can select proper reliability vs performance tradeoffs. SQLite might have cross-platform, FS-type API's too that I don't know about. Not sure if it's already there or be an extra development.
This submission title is link-baitey, not the original title, and wrong (I had parsed this as meaning 10k ft altitude, there doesn't seem to be any mention of this 10k number anywhere in the article).

I sympathize with the submitter that the article's title ("Yes, the jet-powered hoverboard is real, and yes, the creator has crashed it") is useless, but the slug in the URL isn't awful (franky-zapata-racing-jet-powered-flying-hoverboard-interview). So how about Interview with Flyboard Air creator Franky Zapata.
Sony A6300 camera has facial recognition for up to 8 faces, not just detection
GoDaddy CTO and Cloud VP Heads to Google
>Kids need boundaries, they need restrictions, they need discipline. Do they complain about it? Sure, they do. But they crave it, because without it there is no guidance to show them what is right and what is wrong.

This approach just taught me to be paranoid, skilled at lying, and good at maintaining appearances.
For toothpaste they were already using other things. And shampoo does not have health benefits. Maybe it makes you smell a bit better, but rural Indians don't care too much about BO even now.

ex for toothpaste: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3545237/
There are two things that continually surprise me about life in the modern, Internet-enabled age... two things that I would never have dreamed would happen, if you'd asked the 1996 version of me what American life would be like in 2016.

One is our increasing indulgence in irrationality, to the extent that we almost celebrate it. I would never have guessed that hard-right social conservatism would still be a dominant force in American politics, much less a booming business. So I got that wrong, and I'm willing to admit that happened because I didn't take the time to understand those who thought differently from myself, or how their social motivations, family backgrounds, and economic pressures are different from my own. So, my bad.

The other is the continuing notion that it's somehow desirable, much less necessary, to cram everyone into a few high-density cities on either coast. From a 1990s perspective, it appeared that the growing availability of fast Internet connections and the rise of online social, technical, and business networking resources was finally going to liberate us from crowded, noisy, polluted urban prisons with endless traffic jams, out-of-control taxes, and multi-kilobuck rents.

It should have become both possible and desirable to do anything from anywhere, from the middle of flyover territory to the north coast of Alaska to the freaking International Space Station. Instead, we just get more of the same complaints. Rent is too damn high, there's too much traffic, and man, San Francisco/Seattle/Austin/New York used to be cool until all these techies/hippies/yuppies/homeless people/Republicans showed up and ruined it.

I'm not willing to concede that my worldview is wrong about this. This time, it's everyone else who's being stupid and needs to get a clue.

Just leave.
Incidentally, the guy behind Zesty.ca lives across the street from me in Berkeley. I co-founded the Center for Election Science. It was a complete coincidence. We moved here from SF a few years ago, and one day I was walking by his house and recognized him sitting on the steps, from a picture on his site. From like 20 feet away. It's a small world.
Sounds like you meant something closer to "equilibrating" instead of synchronizing, at least that makes more sense for me as a scientist.
I apologize, I missed your comment earlier. In my experience (before the tolls were in place on 520 to mess with things), the morning commute was heavy from Seattle->Microsoft exit. There was a lot less traffic going from Kirkland->Seattle. Once the tolls were in place, people went to the I90 bridge and amplified this. Over the several years I was driving in every day, backups on 520 from Seattle->eastside in the morning seemed to be an every day thing; on the commute home, the worst part was the 5 north -> 520 merge. Everyone going south on 5 wants to take the university exit, so they're all stopping in the left lane trying to merge in, while everyone from 5 north wants to get on the bridge and wants to merge into the left hand lane. Once you got past that little knot, it was usually clear sailing until you got on 405. I could see everyone sitting on 520 westbound waiting for the neck down from three to two lanes before speed picked up.
Yes, "having one's cake and eating it too" is appealing in general, and I don't blame Singaporeans for wanting that. As the Lee Dynasty comes under heavier public criticism in coming decades for its authoritarian manner, I won't be one of the critics, so long as free and fair elections are still held. If Singaporeans want change, they'll eventually have to vote for it.
Self-promotion, obviously.
Rename isn't quite an atomic replacement. If you crash before the rename, the new file hangs around. (Hence unwanted .part files.)

O_APPEND isn't airtight on all systems. On some older UNIX systems, multiple writers created with "open()" (not "dup()") do not share a file position. NTFS doesn't do append correctly.

How do you guarantee that, after a crash, the end of the file is at the end of some write? By updating the file size after the write. The file size update can be deferred during heavy write traffic, but you should always get a file size that ends at a write boundary.

"fsync" synchs the whole file, not just one I/O, which can take a while. Databases such as MySQL's InnoDB, which puts multiple tables in one file, can have independent I/O going on in different parts of a file.

aio(7) has the right mechanism, a callback/signal on completion. But it's not clear if the file system guarantees the data is safely on disk when the completion signal comes in.

The original article complains that UNIX/Linux file system semantics aren't well enough defined for database safety. He's right. They're close, but not quite there, because behavior after a crash is unspecified.
So what is a tonne in British pounds?
So as I've recently submitted my ParaWing concept to ApplyHN this is of course of interest! Quite a development and I'm glad to see it getting some attention. Skepticism is important as is being open minded.

Bottom line: It works.
Caveat: It's dangerous as shit

Okay so this is the quote that got me:

>It’s a logic system inside the board that helps stabilize the machine. It’s extremely hard to stabilize, so yes it’s not only my balance. For example, we use like the same kind of electronics like you use on a drone to stabilize. The problem is to create the algorithms, the right algorithms, to combine the intelligence in the board and in your brain. So we spent about four months to make that work.

That's why the ParaWing is such an important development in designing an airfoil and method that will allow the flight stability algorithims to have a wide range of viable parameters. All this computing power they've developed and deployed as a proof of concept is really, really impressive. It's almost as though a 'down-grade' version could be applied to the ParaWing for stability flight management.

Now, talking about those power sources - look at the numbers. 250 HP each? On something with zero lift? It's staring me right in the face. Put one or two of these on a ParaWing with the stability controls and now we're talking seriously revolutionary.

Sweeeeeeeeeeeeet.
"Don't make me think" by Steve Krug is a great place to start.

https://www.amazon.com/gp/aw/d/0321965515/
> I'll also suggest using archive.org since they already have quite a collection of CPU and general IC documentation.

Is there a central page or portal at archive.org for this kind of info? I tried searching, but only found many, many specific presentations and similar info.
I strongly suspect that Uber has (or will, depending on a particular market's maturity) smooth the curve on surge pricing.

I think most customers are initially averse to ever paying more than 1x, but once you've gotten used to paying 1.1x or 1.2x, you realize it's still typically much cheaper than a taxi. It's ultimately in everyone's interests for prices to adjust quickly and smoothly to demand.
The SDK was good. He's complaining about English docs, which is pretty valid if you look at the Genesis and Nintendo's docs. Especially considering they had to outline brand new 3d functionality, while the sprite/blit engines on all the 2d consoles were pretty similar (here's an address in RAM/VRAM, blit it to this position, vscroll this far, load this tile from this address, etc).
Justin Trudeau gives reporter quick lesson on quantum computing
San Francisco has a cop problem
> - No (at all powerful) notion of transactions. Mutation without transactions is extraordinarily primitive.

There is nothing that prevents you from implementing these in userland. Does not belong in the kernel, since the kernel can't know what are your atoms that must be atomically committed. Research how databases do it.

> - No multiple FS roots to indicate boundary across which data will never be synchronized. (This is also good for how to spread data across multiple devices, a low-level concern.)

You can check what device a file belong to with stat(2). It's the st_dev member. You can also check it from the shell with the stat command.

> - Overall pushes people to maintain their own structure within files rather than use FS's trees.

And that's entirely ok. Hierarchies are not for databases. Database-y problems are not the problems that the POSIX fs solves.

> - Block size, locality out of control.

I actually heard that Unix filesystems have traditionally been quite good at preserving locality. That's why I don't know of any defrag tool for e.g. ext3.

Overall, if the FS does not solve your problems, implement your own abstraction. That's perfectly ok.
I don't have research about 2x audio to cite but I think there are datapoints that the authors didn't consider when they wrote "Doubling the speed [...] makes it just about impossible to follow the meaning."

Consider that most of us can read text at a normal unhurried speed of 200wpm to 300wpm. We also hear this "inner voice" as we read the written words. This subvocalization is therefore "sounding out" the words at ~300wpm in our head.

However, many people speak out loud at only ~100wpm. For many of us, accelerating speech from 1x to 3x is simply making the speaker sound out the words at 300wpm. Since that's the same as our subvocalization wpm, the meaning is not impossible to follow. Most humans can't move their mouths fast enough to talk at 300wpm -- but with digital technology -- they don't have to.

Spoken recordings at 100wpm is mind-numbingly slow and it would just make my mind wander.

I think the authors should have surveyed a hundred youtube users that always take advantage of the 2x speed option. They would have been surprised to learn that people can follow the meaning of the words at 200wpm very easily.
1. Breaking rules

When the article starts out with the story of Youtube, you read about the lists the moderators working off of to keep certain materials out of Youtube. And something was missing on the list. Any guess?

Yes, copyrighted material. I knew a guy who used to work at a competitor of Youtube. That startup was started by a Hollywood veteran (naturally), meaning he was very conscious of respecting copyrights. Youtube didn't care about copyrights, which started the upward spiral of more viewers, more uploads, and more viewers.

The end story is that Youtube took off, being bought off at a billion and making the founders rich.

Mixed feelings about this. Break rules to beat others in the game, and you end up winning. And most will agree this is not cool. And yet, because of rule breakers (some, not all), our world is advancing.

A comment I read in a comment section, that I saw that was funny.
"When someone else cheats, it's adultery. When I cheat, it's romance"

After this this story, I've come up with following:
"When someone else break rules, it's cheating. When I break rules, it's innovation"

2. No chance for moderation

And then there's the other part in the world of moderation, in which certain stories are not even given a chance for moderators to review.

NYT (New York Times) has abundant and quality comments on news articles. However, if you hang out there long enough, you will notice a trend.

Certain stories that don't help the goal of NYT don't get comments section at all. And if a story's comment section gets filled up with comments that seem to be hurting the agenda of that particular article, the comments section closes rather quickly.

And then there's Fox News. They don't even allow any way to post comments.

This kind of social engineering has been going on since humans became social animals, but with technology in the mix, those in power get more powerful.
SQLite stores data on disk in a file.
I know that YC has a standard RSPA... but I'm also fairly certain that their template is not used universally by all YC companies (eg. Quora, who probably already had other RSPA docs [1]). Therefore, the standard YC RSPA cannot probably be deemed binding after the fact. (IANAL)

[1] http://techcrunch.com/2014/05/11/quora-y-combinator/
Considering the slow-ish PC market, the report is more likely to be true.
Berlin used to have a lot more inhabitants, about 1 million more around around 1940 than now. Not all of the living areas from back then still exist, but it means there are some reserves. In addition to that, while there's obviously some pressure against just moving outward, it's in the middle of flat, mostly unused, land. Not comparable to SF's space constrained situation.

(Oh, and I do miss Berlin)
Ask HN: Is my website better?
Hi HN!

I made a website. It's been getting some traffic with the help of promo & ads, but most of that traffic doesn't seem to "stick". Getting it the level of its biggest competitor seems to be impossible at this point. However...

When looked at from a UI, UX and content perspective. Which one do you think is better?

Competitor: http://www.bestgore.com
Me: https://sickoo.com

My opinion is biased, so I don't really trust it in this case. Help? :)
This seems like a trending topic. Some related materials:

* The dark side of Guardian comments

https://news.ycombinator.com/item?id=11478361

* Why has the Guardian declared war on internet freedom?

http://www.spiked-online.com/newsite/article/why-has-the-gua...

* The New Man of 4chan

https://news.ycombinator.com/item?id=11510758
No ... I don't think you would need roles and permissions for the task project but since you were enthusiastic about the user and groups I thought I'd pass along a solution for a comprehensive (but external) user management system.

EDIT: I also should have mentioned that we're updating our original system to be compliant with the specification and open sourcing [1] the code that's not custom to our application.

[1] https://github.com/PennState/scim
https://news.ycombinator.com/item?id=11510918
A non-sexist guide to interacting with the opposite sex would, by definition, be useless.
Average users cannot be bothered with the plethora of custom options available. They "just want it to work" and not apply thoughts to how to navigate an unfamiliar UI.

I'd be quite confident in saying if there was a Windows 7/10 style UI for GNU/Linux, you'd have people more comfortable with making the switch. Ubuntu Linux has made strides in locking things down and simplifying the UI for average (non-power) users.

The first big step to making Linux the desktop platform of choice will involve simplification by a large margin, i.e., appealing to the lowest common denominator and then building up from there.

Most Linux desktops simply don't have that.
https://news.ycombinator.com/item?id=11510918 (also contains the video)
> Sometimes it certainly is high, but why inherently? Surely it depends on the particular problem you are interested in solving?

Even the simplest "real world" programs do things like: communication with a database, string manipulation, calling library functions which can fail.

> As someone who actually does formally prove things about algorithms significantly larger than that from to time, I believe you’re exaggerating here.

I wrote a master's thesis that touched the subject and it's what I put in an introduction as an illustration of the field's difficulty (I believe it was not taken from air ;). I don't know the field now but ca. 10 years ago program's proofs were mainly refinements of high level axioms to executable code so there was no separate "proof" step of a finished program, but still the added complexity of proving the refinement steps was huge.
Okay, but switching to a better issue tracker (for your needs) seems considerably more practical than solving data interchange between issue trackers.
> A school district is a system of assigning kids to schools via address.

I think I'm aware of this, and it is often not what the parent's want used as a determinate. If someone says they have moved somewhere to get their kids in a "good" school district then the system has failed.

> In California, the schools are funded equally based on property tax collected at the state level. Schools are funded based on how many students are sitting in class, not on where they are located.

Except for districts where local property tax portion exceeds the funding formula levels since the property tax is kept local to the district. Also, CA schools are funded on more than property taxes such as having an income tax share.
It's only a problem in the US. The Commonwealth ton is only 1.6% larger than the tonne, so the distinction is usually insignificant. Most of the world has no knowledge of either the short or long ton.

Likewise, confusion between "mills" (millimetres) and "mils" (thousandths of an inch) are an exclusively American problem.

The American adherence to customary units is a constant annoyance for electronics engineers - an 0603 resistor could measure 0.6mm x 0.3mm or ~1.5mm x ~0.76mm
H1B non advanced degree notifications went out
Er, yes, that's the point.
One of my favourites: http://historyofphilosophy.net
In my school district, school was only required until 16. Some did leave school then. Everyone who remained had some sort of motivation, because it was voluntary.
Hah that reminds me of the pornstar before and after (google it) you see pop up on Buzzfeed like sites every now and then.

Anyway, this is probably quite close to the truth.

I mean I've had conversations for years in high school about the ugliest and nerdies guys in my class. We'd basically be going over 'why he wouldn't just do x, y and z, because he'd go from a 2 to a 6 with a basic change in apparel, clothing, perfume, haircut, and to a 7 within a year by working out'. I mean that's what most of the 7s do in this world. I'm no different, really, just a normal dude who brushes his teeth, showers, mimics a casual hip style and gets a haircut at a hip place once a month. I barely pay attention to my looks, but I definitely make sure to get the basics right.

Of course once a year, an ugly person would become 'beautiful' over the summer vacation and would return to school with a new look, confirming the notion. Nothing changed about them in those 2 months, except the cut of the hair, the pieces of clothing, the paint and smell. A lot of the time it was just kids 'maturing' their style for the first time at age 15. Isn't everyone familiar with that story?

I mean, take all of those makeover shows where they transform someone who's just horrible... usually the only 'big' thing they do is find a person with horrible teeth and fix that, which isn't a trivial thing... but that's not applicable to most people, perhaps a tiny bit of whitening is needed which I don't think costs much anymore these days. But other than that, it's all just a few hundred bucks of clothing, a $30 haircut, $30 perfume. Add 2x 60 minute workout sessions and a decent diet and you're pretty much there.

I think most people who haven't put in any effort, can get a change that's at least somewhere on this spectrum: http://static.businessinsider.com/image/527bdb6969beddec59df...