skysight-inc/HackerNews huggingface dataset:
Shouldn't this work?

- In the parent, open a pipe. Fork.

- Parent closes the write side. Child closes the read side, clears FD_CLOEXEC on it, and execs.

- Parent does a select(2) on the pipe's read side with the desired timeout. If the child exits before the timeout, the pipe becomes "EOF readable." Either way select(2) returns on or before the timeout.

I get that this trick won't work for imposing timeouts on other syscalls (the author points to mkdir(2)) but isn't that the purvey of an RTOS?
I've also heard that Redis is incredibly well written. However, is it common for production C code to have a single file with 5,300+ lines?

https://github.com/antirez/redis/blob/4.0/src/cluster.c
The european data privacy laws have been largely ignored by the big US companies thus far, also because they were supported by the Irish gonvernment which did not really go after the endless number of complaints that were filed.
In theory the new regulation should improve things, because it's no longer just a guideline as the previous solution.
I have no problem with taxes, just with the ways they are being spent.
Companies need to separate personal data from other data as early as possible. Yes, this requires some work and rethinking of data structures, it is doable though. Why would it be impossible to do this in your opinion? Do you have a more concrete example that we can discuss?

In General, I think requiring that companies do not hold on to your personal data indefinitely is a pretty reasonable regulation. If there were exceptions e.g. for backup data it would provide a convenient loophole for companies to keep the data.

Also, if companies keep copies of their personal data lying around it increases the risk of the data being stolen or leaked into the public. We have seen that even for the largest companies it's impossible to avoid "losing" data once in a while, so making sure that this data contains the least amount of sensitive information possible is very reasonable. The regulation does not even assume that companies are malicious, it just assumes that sh*t happens and tries to mitigate potential damage to individuals.
Bruce Sterling and Jon Lebkowsky: State of the World 2017
"... back then we saw support staff (such as QA and QAE and tech writers) who worked alongside software developers;"

I've personally been working in the industry for 20 years, full time for 17. I Can't believe I just read someone asking for QA/QAE/QE. Modern dev shops should be relying on automation for test coverage, and the developers of the code should be the ones writing the tests for their code. There is a place for QE, those are Software Engineers focused on tooling around the automation for tests and such.

Relying on QE is an antiquated relic of the bad, very bad, Waterfall days. In those days release cycles were long because shipping software meant that there were releases timed to marketing and cyclical sales. Now software is shipped online. the role of QE has changed to not take crappy code a Dev wrote and validate it, but to be the one responsible for making sure Dev's are actually testing their code and that the code is being measured for quality.

The easiest way to make this obvious, go write some code, say a few files worth, and then try to add tests to it later. You need to go back and refactor, in some cases significantly, to make the code testable. Code needs to be written from the beginning as testable. I always felt bad for QA/QE folk, because they would just get handed crap and be expected to do something with it. This is no longer cool.

(btw Documentation is also a requirement for all code and should be done earlier, not later. Use your own software and try and figure out how others will use it, and document that. Tech Writers should be dealing with well understood systems...)
I should have been clearer. I'm terrified of the power corporation's have amassed through surveillance, but no one I know outside of the tech community sees a problem. Most see Google and Facebook as "benevolent overlords"[0]. How can we convince people that danger lurks in the future given their love affair with the free, life-changing services of the "benevolent?"

[0]: Quote from my roommate at Duke: "I, for one, welcome our benevolent overlords."
There are only 9 EU countries, how about others? Such as Lithuania or Cyprus?
Programming, and computer science, is inherently about information. And because information as it relates to the young is so valuable (think about how TV shows value the 18 to 35 demographic is), it's not surprising that leaders in the work of programming can skew young.

The example of Facebook immediately comes to mind. I'm sure everyone has read articles about "TheFacebook" on the Harvard Crimson's website for a good chuckle. But reading those 2004 articles give insight to how Mark Zuckerberg succeeded despite not being a better programmer or computer science thinker than others (including faculty) at Harvard. He was not only competing with an already dominant MySpace, but Harvard computing services:

http://www.thecrimson.com/article/2004/2/9/hundreds-register...

> “I’m pretty happy with the amount of people that have been to it so far,” [Zuckerberg] said. “The nature of the site is that each user’s experience improves if they can get their friends to join it.”

> But Director of Residential Computing Kevin S. Davis ’98 said that the creation of a Harvard facebook was not as far off as Zuckerberg predicted.

> “There is a project internally with computer services to create a facebook,” Davis said. “We’ve been in touch with the Undergraduate Council, and this is a very high priority for the College. We have every intention of completing the facebook by the end of the spring semester.”

Doesn't seem like that Harvard-built-and-funded Facebook got very far. I'm also struck by how mundane the work of Facebook sounded (including the low salary), as described in this old article, when you compare it to, say, Clinkle:

http://www.thecrimson.com/article/2004/3/1/facebook-expands-...

> In order to expand, Moskovitz and Zuckerberg had to write computer programs that would “parse the course catalogs and student newspapers” of the additional schools. Following Columbia, Stanford and Yale, which Zuckerberg said took about three hours each to set up, he hopes to open the site up to Boston-area schools like Boston University and MIT.

As I get older, yes, I start to appreciate the foundational concepts as the OP does. But I think that programming's seemingly youth-centered churn of knowledge is not unrelated to how personal and malleable -- i.e. how varied the goal of programming is, because of how programming is so directly related to the work of how humans consume and disseminate knowledge.
You really should use full disk encryption on all media today. If for no other reason it makes it easy to dispose of disks as you outgrow them, without worrying about erasing personal data.

Windows 10 Pro has bitlocker, Linux has LUKS, FreeBSD have Geli, and OS X has its own system.
Such a list isn't possible because of differing interpretations of reality and basic facts and differing interpretations of what even constitutes a problem.
They even send you that monthly reminder when you haven't touched your Paypal account for months. It's basically advertisement you can't turn off.
Thanks for the info. I had deduced as much, but I was asking about the legal side of things. Is there anything more concrete than "endorsed by" (which I take to mean "they said nice things about it)? I understood "Democrats opened the door to" as meaning something like perhaps a tax or legal incentive for these plans: I just wanted to know the specifics because government involvement in our healthcare system is complex enough that it could have been any of a million possible things.
Is there a way to encrypt the hdd, an option like mac on "find my phone", remote erase on windows 10 on dell.
Ask HN: Would you participate in augmented reality exercise?
This would be pretty brutal, imagine the augmented reality is displaying/you hear a serial killer chasing you up a mountain and you have to run up the mountain to escape. Part of it you climb walls and the AR shows you where to grab onto something like a game. The particular niche would be aimed for more fit/"parkour" people that can do crazy stuff like jumping gaps (running leap).

I don't know that would be a cool event I'd think.
Along the same lines, there is the awesome Python Tools for Visual Studio plug-in that turns Visual Studio into full fledged Python IDE: https://microsoft.github.io/PTVS/

It supports CPython, IronPython, IPython, IntelliSense, mixed Python/C++ debugging, remote debugging, profiling, etc. And best of all? It's also open source.
Get into a big and mature company (think: 10k+ employees) instead of a startup or an smb. When I visit my friend at his company's San Francisco r&d building I see just as many old people as young or middle aged. Many of the older folks are very well respected due to their experience. Downside is that you'll probably be using some OOP language to make incremental changes to some ancient api call.
The problem is that PayPal is probably the easiest and safest payment way for a costumer, so if you are running e.shop or other e. commerce business, you will lose a lot of costumers neglecting PayPal. I won't enter my credit card details on random sites I've found while googling for a certain product and won't buy from e.shops that don't accept PayPal.
Malcolm Gladwell should not be taken seriously.
I love reading Oleg Kiselyov articles/papers. Just a few lines of Haskell or ML and some amazing concept is unlocked. A great exercise is to port some of his code to a language of your choice.

http://okmij.org/ftp/
I started hacking with my little computer at 16 in mid 80s (it was the time computers became cheap enough where I live) then I went to study CS at university because I liked programming and it looked like a good career. In which camp does that leave me?
Dev networks that are part of my daily dose of information

- https://hashnode.com
- http://coderwall.com
- http://reddit.com/r/webdev/
- https://hackernoon.com
HR Block is free if you just file a 1040, the "professional" version is $40. If you're paying $100, either you are seeing a tax professional in person or you are vastly overpaying. Presumably you would only meet with a tax professional if your situation is significantly more complicated than most.
Gopher is way more friendly for the visually impaired than the modern web.
I agree that regular assessment sessions are crucial.

If you, like me, are vaguely afraid of facing the future, it's enormously helpful to have a todo list, and to set aside a small part of every day for tending the todo list.

It's hugely helpful to have a moment in the day when you tell yourself you're not actually going to do any work (you are off the hook), but you're going to look at your list and poke and prod it in advance of such time as you're ready to work again.

Simply forgiving yourself the need to actually take action on any given item, and focusing on organizing what you've got, is immensely freeing, and sets you up pretty nicely for the next morning.
I am more cynical. I think that reason for new-stack fetishism is incompetence combined with what I call "signaling game". Many people are unable to talk rationally about benefits and costs or solutions, so they jump anywhere where crowd goes to signal "I am passionate hacker".

If people would think for themselves, you would see much less of herd behavior and less insecurity induced posturing.
I heard that mainly from recruiters working for huge companies, so huge, that I couldn't apply directly, as they had outsourced all the recruitment so some external companies.

On the other hand I'm not from the USA, and what's worse - currently I need to have only remote job - which makes searching for a job even more hilarious.
Yeah they miss out on a lot of good talent. Most programmers in my team are older than 32 and they're amazing!
Startup founder who survived hyper-growth shares lessons for CEOs
> There is no need to wire money anymore. In the US bitcoins can be purchased instantly with a credit card via Coinbase, as easy as signing up for Paypal.

The caveats being a 3.75% surcharge and the fact that many of the big banks will not authorize bank card transactions from Coinbase. You might have luck calling up your bank and getting them to release the hold on Coinbase transactions, but that's already more trouble and more expense than paypal.
One of his points is key and seemingly goes unmentioned in these comments. The total disregard for software engineering (the field of study, that is) by developers. Even the very basics of software engineering are unknown, and if mentioned, frequently discarded if they don't fit with the zeigeist.
Windows comes to my mind....
I didn't start programming until the shockingly (!!!!) late age of 23 or so. I hated my first year computer science papers with a passion. But it's grown to be something I love, and I like to consider myself at least adopted by the culture. I owe a lot of my skills to patient, older hackers on IRC and very much consider myself part of that 'tribe'.

I also think what you fail to take into account is that peoples software skills often plateau. They'll soak up lots of stuff in the first 3 years then won't have any motivation to improve because they're good enough. I'd argue that attitude is much more an indication of skill than n number of years programming.

So in a sense I do kind of understand your bias. Our field is full of people who decided "the pay is pretty decent and they were always kind of good with computers.". But it's entirely possible to become a "hacker" at later age.

(Also as an aside, I wish more people would post controversial stuff on their main account. They're just make-believe internet points).
Nuclear weapons are big. And according to the article, the weapons and parts thereof are being trucked all over the country constantly. Presumably sending them by air would be prohibitively expensive.
> It used to be if you saw a video or a photo depicting an event you could be pretty sure that what you're looking at actually happened.

That is only true because we are in a wierd transition period. Before photography, there was no way to create an accurate snapshot of an event. Since then, it was easy to take a photo, but hard to fake one. For the first time in history we were able to make visual proof of events. Of course, since the beginning, people have been trying to fake photographs. That has been mostly detectable, but is getting better and better all the time.

(This also gives us a certain fetishism for unedited images in journalism. I understand where it comes from, but I think it is objectively wierd that certain manipulations are allowed, and others considered scandalous.)

I believe we are moving to a period, where we can no longer consider photos to proove facts. People will resist for quite some time (as they are resisting the fact that the internet allows us to copy information for free). There will be legal push-back, image editing will be scandalized... but eventually, the technology will be come so good and ubiquotious that nobody can rely on pictures anymore.

I also believe it is a good thing! We are becoming more and more nervous about our image on the internet, about private photos leaking out there, ruining our employability etc.. What happens if everybody can say: "OK Google, make a photo of Jason where he is drunk and riding a donkey" and you get a convincing fake? Eventually, we must adapt, and these worries will go away.

We will have to learn to treat pieces of information not due their origin, but only due to their content.

For a current example: You got a picture of President Trump with prosititues in Moscow? I don't care if that really happened or not - I'm not prude, and it doesn't have immediate relevance. Let him have fun. What I do care about: Does the story fit my image of him? Do I think he is capable of doing that? Does this have explaining power? Note it might as well be a painting or a blog post instead of a photo.

In my old days it seems I am going full-on postmodern...
As the Sinclair quote goes, "It is difficult to get a man to understand something, when his salary depends upon his not understanding it."

Intuit has a $3b/yr interest in thinking that return-free filing is a bad idea. I think this country would be better off if people didn't have to spend that money and the inordinate time commitment that filing taxes currently consumes. And I think that Intuit not believing this is a rationalization of the need to protect that revenue stream.

As someone who was employed by a company that was acquired by Intuit, I've been very conflicted about my own good fortune being connected with Intuit's activities in this area. About 6 months ago, I decided to divest all my Intuit stock, not because I felt it wouldn't perform well, but because I don't want to be making money off what I see as unethical behavior. Intuit is, in most respects, a very ethical company. But in this one area, I don't think they are.
> You may wish to enforce hibernation and evict FileVault keys from memory instead of traditional sleep to memory:

$ sudo pmset -a destroyfvkeyonstandby 1
$ sudo pmset -a hibernatemode 25

> If you choose to evict FileVault keys in standby mode, you should also modify your standby and power nap settings. Otherwise, your machine may wake while in standby mode and then power off due to the absence of the FileVault key. See issue #124 for more information. These settings can be changed with:

$ sudo pmset -a powernap 0
$ sudo pmset -a standby 0
$ sudo pmset -a standbydelay 0
$ sudo pmset -a autopoweroff 0

See [1] for more macOS hardening tricks.

[1] https://github.com/drduh/macOS-Security-and-Privacy-Guide#fu...
The web is like an operating system that you are locked into using. This prevents alternative operating systems such as Plan 9 from ever becoming useful, because building a web browser is such a monumental effort. Even if a decent web browser were built for Plan 9 it would defeat the purpose of using such an alternative OS because the web binds software to content.

The web has effectively killed innovation in operating systems. A clean and consistent system will be out of reach as long as this web app nonsense continues.
That would be Seattle.

And do account for the relatively shitty public transit infrastructure that is the norm here in US.

And you seem to be assuming that the offices are also right there in the city. That's not the case for many people.
> because far too many people vote against their own interest

You don't get to decide what other people's interests are, and you certainly cannot make an empirical case that the interests of all individuals would be better served by voting one way or the other. This sort of reductionism and failure to interact with people you disagree with in good faith ought to have no place on a professional forum like this.
Problem is that many devs don't take the time to develop a testing mindset (or think it's not their job).

QA is a lot more than writing automation or validating code correctness. QA are the first people to lobby on behalf of a customer when it comes to actually using the feature (ideally this is a PM's job, but I've seen few good PMs in the Bay so far).

QA also has to think holistically about security, performance, UX, on-screen text like error messages and so on. Hopefully the team has free access to other teams who specialize in this kind of work, but more often than not such resources do not exist or are unavailable. Thus it falls onto QA to fill all these small (or big) gaps.
Government 1 - Privacy 0
Viewport Units in CSS
Also remember that of all of the professional industries, ours is young and still maturing.

I believe that being an old programmer will become accepted in time. I believe that posts like these help to bring this issue to the forefront and it's good that it's being discussed.
Assuming that being old makes you wise is as much trap as assuming it makes you stupid.
Setting up the perfect Windows dev environment
Avast Antivirus 2017 Crack and License Key [Free] Download
Well, yes. For instance, Finland, where I live, has a very much simplified income tax collection procedure. Deductions for people with children have been eliminated. Deductions for mortgages are being eliminated. All this in the name of simplicity and, yes, fairness.

After all, if you can afford a mortgage, you are clearly well-off, so you should be taxed more.

(And there is a good point: Mortgage deductions distort the housing market. But rent subsidies distort it even more.)
Not for personal use in Europe.
"There are certain things that writers and critics prize, and readers don’t. So we’re obsessed with things like coherence, consistency, neatness of argument. Readers are indifferent to those things" - Malcolm Gladwell
Build and tag package release on a separate branch
The problem is not who prepares your taxes. The problem is how complicated taxes are.
Sales tax would solve that real quick.
I've found a similar thing. The best way it seems is to open a pipe and poll on it.
Is there a tldr for this?
PostCSS: Future of CSS
Sorry to hear about your troubles, man. My only suggestion is networking. Get to know people in mailing lists/meetups/groups for the tech (languages, hw, whatever) you frequent and mention that you're looking for a remote assignment.

If none of that is an option, I guess you could always try Botox :( https://newrepublic.com/article/117088/silicons-valleys-brut...
> moleskine notebook

Ok. That's a weird detail to bother hipsterbragging about.

Anyway, I have a post it on my monitor that says. "Just do the fucking thing and stop doing busywork". I have a second one that says "Successful people have better things to do than arguing on reddit/hn"

Tldr; constant visible progress, cut distractions
Poll and epoll also work.

RTOS should prefer asynchronous calls and lockfree queues instead.
The Ethics of Citation
I don't dispute that care in US is more expensive for a variety of reasons.

But your post stated that the only, or at least the biggest, reason why that difference exists between US and Mexico is because of less regulation in the latter, and more healthy private market resulting from that. I point out that a large part of that difference does have to do with standard of living. It's not true just for healthcare - the same goes for most other things. It's why people from US often retire to those countries.

> Doctors already get paid US wages. Not really sure what you were thinking when you wrote that.

Of course, but they get paid out of your insurance. You were, again, comparing that system to going to a place like Mexico, and paying out of pocket. If you were to pay out of pocket here in US for those wages, it wouldn't really be affordable.
Canada still has pricing to the penny, and if you pay with something electronic (like a card, or online transfer) you still pay the exact amount, to the penny.

It's just cash that gets rounded. This means there is no reason for shops to adjust their pricing for rounding (basically impossible anyway as GST/HST/PST tax is added later) since only a minority pay with cash. It's a good way to avoid any side effects of getting rid of the small coins.
In this context "deliberate practice" means more than just "practicing on purpose". The description here looks okay:

http://expertenough.com/1423/deliberate-practice

However in Ericsson's book he puts more emphasis on guidance by an expert teacher (who can help identify specific challenges appropriate to the learner).
The seller has to disassociate the device with their account or you have to reset the PRAM. A simple wipe and OS reinstall will not be enough. If you are doing an in-person sale you should insist that the seller login to the machine with you watching, go to the iCloud pref panel and show that Find My Mac is turned off and the system has no associated iCloud account. Since having the device still associated with their account would give you access to their pics et al this is probably a good idea for the seller as well.