skysight-inc/HackerNews huggingface dataset:
Two years ago I got on the NYC subway, the 3 train, headed to work near Columbus Circle, and after a few recent arguments (people stepping on my feet, accidentally dumping water on me) I'd resolved to be more zen during the crowded morning rush hour. I'd just read this article (http://www.dailymail.co.uk/news/article-2960791/Commuter-swe...) that morning about a guy who said FU to a commuter, only to be interviewed by him later that day, and I said, I have to be more tolerant on the subway.

Anyway, I sat in the last seat reading a book when, at Chambers St, a large middle-aged white woman sat down next to me and elbowed me in the stomach -- hard. Dude on her right immediately got up, wanting no part of it, and she slid over, taking up both seats, then proceeded to mutter profanity at me. "F'ng a----. Motherf----er." etc etc.

Not even sure why she was mad at me, I guess she wanted more room, but I was on the end and I'm relatively skinny (32" waist, FWIW) so I'm not sure what the beef was. Just crazy, I guess.

Normally I would angrily confront a stranger who just punched me in the stomach and started swearing at me for no good reason but I thought, "Hey, I just resolved a few hours ago to be zen on the subway, am I going to break my new resolution on the first day?"

Fast-forward through the rest of the subway ride, I said and did nothing while she kept muttering profanity (and staring right at me). We got off at the same stop but I grabbed a beverage while she went her way.

Five minutes later I entered the lobby of my office and there she was. She turned around, saw me, and went white. as. a. ghost. I was worried I'd have to call 911.

Turns out she was a contractor who had just started at my company that week, and her direct boss was a good friend of mine.

My friend didn't fire her (right away, anyway) b/c she needed the help and just found the story funny but they did end up terminating her two months later because (surprise surprise) she had an anger problem. They actually waited for her to leave for the day, then called her and told her not to come back in b/c they were afraid of what she'd do in person.

Moral of the story: don't get into commute rage fights. They're not worth it! And you never know who you're getting into a fight with. Be nice to people on the subway.
There are some cases where you not only care about the exact time (unix timestamps are fine for this) but also the timezone in which it was specified. I work on an app where users specify "people in california should see this at 3pm PDT" and get confused when they reload the page and it has been switched to "6pm EDT".

As an aside, moment-timezone it a godsend for dealing with timezone discrepancies. I would pay money for it.
I think it's because team management in tech, despite acknowledgement of the results of these studies, hasn't actually integrated the results meaningfully, so we're not really better off 2 years later.
You have failed to establish this.
I've been coding JavaScript and PHP for 6 years. I know the advanced topics of both languages. I'm in the office on a Saturday right now asking the question I'm always asking, "Where does this go?" I wish I knew the answer so I can go home -- the really important part of coding can't be learned in a day, a month, 12 weeks at a bootcamp, or after 6 years.
I should have made myself clearer: I was not proposing GarageBand as an alternative to professional-grade DAWs, but rather as the "Instagram for music" GP refered to in its last sentence.
It is not good enough. All the major browsers that I tried do not properly handle the timezone offset, as I discovered a few days ago (I put a more complete answer about this in a stackoverflow answer, but I don't know if putting the link would count as self-promotion so I will leave it out)

In short, the ES5 specs [1] say that

The implementation of ECMAScript should not try to determine whether the
exact time was subject to daylight saving time, but just whether daylight
saving time would have been in effect if the current daylight saving time
algorithm had been used at the time. This avoids complications such as
taking into account the years that the locale observed daylight saving time year round.

This means that if your country handled daylight saving differently in the past, converting the timestamp to string may give you a wrong answer (this would be the case of a number of european countries during WWII).

The spec has been improved starting with ES6 [2], but to my knowledge no browser has fixed the issue:

An implementation dependent algorithm using best available information on
time zones to determine the local daylight saving time adjustment
DaylightSavingTA(t), measured in milliseconds. An implementation of
ECMAScript is expected to make its best effort to determine the local
daylight saving time adjustment.

NOTE It is recommended that implementations use the
time zone information of the IANA Time Zone Database
http://www.iana.org/time-zones/.

A solution is to use a JS library that has its own timezone database.

[1] http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.8
[2] http://www.ecma-international.org/ecma-262/6.0/#sec-daylight...
https://github.com/AquiGorka/webrtc-connect-experiments
Or just turn them off and enjoy more beautiful night skies, less blue spectrum light interrupting your sleep, healthier wildlife, and reduced energy usage with most likely no negative effects.

https://www.theguardian.com/society/2015/jul/29/turning-off-...
Yep. I am aiming at doing it via audio.
There is nothing arbitrary about it - different geographical regions have different living costs and different market rates.

I've worked with many Indian devs over the past 10 years or so, and have become good friends with a few. One of those is freelancing for US and EU clients - he is earning far more than he would be paid by a local company, and gets to choose which jobs he takes on, as well as his working hours.

He is of course very happy with this, and very far from being 'exploited'.
Having spent much of my youth waking up and staring across the Straits every day, I question your use of 'only' in this thought.

They may 'only' be 12 or so miles across, but the amount of concrete and fill that would be needed to dam the straits would dwarf anything even the Chinese could manage up with for another couple of hundred years, I imagine.

This idea looks a lot more plausible on paper than it would in person.
If you use a lowly PHP MVC framework, you'll get I18N pretty much for free. It's just a customised echo / print statement. Same for any Django, Rails app. So if what you're using is more difficult than that I'd question what you're using to build your app. Admittedly React is pretty far behind for doing I18N. i18next [0], seems quite promising for that.

The app I built had no need for languages for the first 3-4 years. Then suddenly a foreign client comes in (ours is translated into Spanish, Portuguese, Russian and Chinese) and you've got a ton of code written.

[0]: https://www.i18next.com/#
Fires Aren’t the Only Threat to the California Dream
LTS would be a ton less necessary if people took backwards compat as seriously as some do.

Rich Hickey has a great talk here
https://www.youtube.com/watch?v=oyLBGkS5ICk

That said, doesn't work at all levels, but in general it's not nearly common enough in the ecosystem to keep compat consistent. When I think of libraries I love to use, I think mostly of libraries where compat is very well maintained.

Package management systems tend to be working against you here. Bumping major versions for "good" reasons makes it so that your biggest library users just get stuck, because they have so much code in the old paradigm. Real compat changes deserve new names/namespaces, so that you can progressively upgrade.
Not everything we produce needs to be valued by how much they contribute to industrial/scientific civilization. I specify that because loss of much of STEM won't lead to collapse of civilization, it will only set us back to the dark ages. We'll begin again. Same as we'd do if all art disappeared.
No, I'm from the UK.

I have worked with many Indian and Chinese devs on the past, so I have some knowledge of the outsourcing industry.
The problem is that this is an ad hoc solution. What I'm talking about would be some formalization of visualization (I guess kinda like grammar of graphics without the statistical aspect) so you can visualize just about anything.
I think you will really find the website humans of new york to be interesting if you are into NYC and looking at people.
This video series is amazing and I wish it existed long ago.
5 Steps to migrating your module from Bower to NPM/Yarn
When you say GTFO, what is it exactly that you mean? Have you seen anyone fired or punished for underperformance?
I’m self taught, and I would have killed to have had resources like that in early days. I always got glimpses of what I wanted to understand, but it seemed like a lot of technique and very little “why” much of the time.
Like in rails github the most commented issue is thankyou
Market rates seem very relevant to me. People with the same skills but living in different geographical regions are of course willing to work for differing amounts.
I've had great success with Meteor. I started with v1.2, and it was quite painful to develop in. However, with improvements start within 1.3 and onward, every release has gotten better. Meteor 1.6 has the same concepts as Meteor 1.0, however it is extremely different and is up to date with standards of the Node/JS ecosystem.

I think it's important to know it's application and use-case. I use it for a hybrid iOS/Android app, and Meteor + Cordova has been fantastic in terms of developer productivity for a small/medium-sized app. As a startup, I wouldn't consider anything else right now for new projects. React Native has a higher learning overhead, and with other architectures you always have to deal with user registration & authentication, something Meteor supplies out of the box.

In terms of performance, it is important to understand the core concepts of Meteor. This is not easy. The reactivity layer and publish concepts make it extremely easy to overpublish data, reckoning your Meteor app completely useless. Afaik, something like Kadira is required for Meteor apps, as it will quickly tell you when something is wrong. If a Meteor app is correctly designed, it should rarely have performance issues.

I've wanted to integrate Redux into my Meteor app, however there are a lot of moving parts getting both working together, so I'm opting for smaller container components. React performance is tricky in any case, and Meteor + React is no exception. This combo makes it a bit difficult to diagnose performance issues on the rendering layer. I would love to migrate to VueJS, however the it would require a complete re-write, just as I'm getting comfy with React. I would highly recommend VueJS + Meteor + Vuex over Meteor + React for new projects, so you don't deal with diagnosing rendering performance problems with Meteor's reactivity layer.

You can definitely run your own React stack that is decoupled. For a larger app, I would recommend going this route, due to the big build system of Meteor. Once your app gets a bit too large, the builds still take forever. You can offset it by using something like React Storybook with hot module reloads, but if you have a high number of users or a requirement to not use Mongo, you are better moving the other way. Meteor Development Group is moving out of the built-in reactivity layer that it is known for, and into GraphQL. I'm not planning to move to this new architecture anytime soon, and will run with Meteor's reactivity layer for the foreseeable future. I'm concerned once the reactivity layer loses focus and development, that Meteor may start to fade away. GraphQL has a high learning overhead IMO and presents it's own sets of issues. Perhaps those will be worked out over time.

My 2c. Without Meteor I wouldn't have a real-time web app as nice as I do now with both iOS and Android builds, up and running as quickly and easily as I have. It's been a godsend.
Of course it doesn't, but Android already does the aggregation for me so that I don't miss important notifications from other apps. It's just a better way of working.
Show HN: Record Linkage Resources
Linear Logic
Seems like a lot of meaningless verbiage without much substance. Is it meant to be read as poetry?
There is no disrespect. I don't disrespect hardworking people trying to make the world better. This is just what I've found after writing software for decades. It's a viewpoint that I'm willing to change, but also one I think others should entertain so that all our software gets better and stays current.

Also, as I said in the original comment, I only lean on apt for a minority of things. Most stuff gets upgraded right away and you know what? I find and fix or communicate bugs because I'm on the bleeding edge. And I frankly do not see how my using apt invalidates my views on LTS. In the ruby world upgrading is almost never a pain because most of us keep current and test our codebases. I shouldn't be maintaining packages myself, and I do think that if the people behind Debian / Ubuntu / rando packages available took my worldview it would be easier to always be on the latest version and upgrading shit wouldn't be this giant headache all the time.

Common, glibc should break or break something every release. This is insanity.
Yes, add translation keys at a minimum now, no one wants to spend time in the future trying to i18n a product after the event, especially one that is constantly being worked on and improved and your playing catch up. It should literally cost you nothing to do as you go along.
I know, and I totally understand the situation and your choice.

How is the collaboration with The Guardian Project and F-Droid announced in [1] going?

Don't you think Copperhead might become a really niche choice given how expensive Pixels (vs Nexus) are?

[1] https://guardianproject.info/2016/03/28/copperhead-guardian-...
Plutonium implosion bomb.[1]

[1] https://en.wikipedia.org/wiki/Fat_Man
Do you live in NYC? Spend actual time in the subway? How long?
Most student loans come from the federal government, and the rates are fixed regardless of risk. So what you and parent are really suggesting is increasing interest rates on student loans, which I totally support. Getting the government out of the student loan business so that the rates can be determined by markets would seem a good first step.
Who and why?
That's why I hate the word "smart" and probably shouldn't write comments first thing in the morning.

I believe "smart" and "intelligent" are two different things: one is having knowledge, and the other is being able to act wisely with that knowledge.

A person can memorize an encyclopedia, but if unable to do anything useful with that knowledge, can be smart but not intelligent.

No one is infallible; everyone makes mistakes. Being able to learn from them and not repeat them is what's harder for most people.
For an ex-pat who wants to live in relative luxury, sure. Otherwise it is difficult to see how you can justify this claim?

Have you by chance never been to a developing country? Honestly, how cheap some things are would shock you; for example, you can eat like a king in the heart of any Indian city for 1-2 dollars!
I wouldnt go as far as comparing them to borland

Remember that the community edition is open source

They are an open company and do offer a lot completly for free

Borland was .. a very traditional closed company
This is the law in the us right now
I wouldn't go after the ice cream man, but here's a couple of people I would (and have) contacted: locksmiths, plumbers, lawn maintenance teams, roofing companies, solar panel companies and the list goes on and on.

Then I would either talk to a worker directly if it looks like a decent opportunity. I'm not going to wave down a guy off the roof, but if he happens to be fiddling with something near his van and I naturally walk past, then sure.

If not, then I just call the number they have later. I'm not pitching them right away with "do you need any software developed?". All I do is ask them about their business. My goal here is to get a feel for how they are doing financially without directly asking.

Then I'll guide the call into casually offering them services that could help them grow. Sometimes it's a new website or setting up a landing page. There's honestly a TON of things that almost every business could benefit from and you can comfortably charge $2,000 to $20,000 for these things with monthly retainers on top. That's not even counting custom software gigs that come later.
I was a top provider on vWorker (back when it was still called RentACoder) from 2001-2010... consistently in the top 100 for pretty much the whole decade. Never had any trouble getting projects or getting paid. Stopped working on vWorker in 2010 when I decided to head back to school for my masters. So its been a while since I was on there.

It was a great place to start off my career, but sustaining it as a business was always a challenge. Sad to know that it has deteriorated to this point now.
Dem here, but I haven't seen a whole lot of priority given by my party to opioids. Back pre-Trump there was much more attention being given to Transgender kids and sexual assault of college women.

When people are despised and neglected, they tend to notice.
Sounds like you want something like Trello. I prefer GitHub, and it can be used for non-software issue tracking, but if there's a preference for something more obviously non software, look to Trello or similar things.
I think you could do a bare minimum and be ready to do more work to finalize it later if there's demand. If you think there's a good chance there won't ever be demand, then maybe it's not even worth this.

I think the bare minimum would be gettext style string marking, which is generally gettext("english string") in the source; other string marking techniques may provide a better localization, but this one is easier. Also, try to follow general guidelines for creating strings so they're likely to be localizable. Gettext's guidelines[1] are decent. You don't actually need to use gettext -- you can make a 1 line function or macro that just passes through the english text as is for now. Even if you don't mark strings, at least thinking about string guidelines will help for the future.

If you ever decide to come localize in the future, at least you won't have to markup all the strings, and hopefully you won't have done a lot of "string math" which is painful to unwind. You'll still have a big amount of work to test and fix any strings that were missed, but you'll be a lot farther ahead.

[1] https://www.gnu.org/software/gettext/manual/html_node/Prepar...
What should the priority be?
> It's about being your own boss.

Actually, being a freelancer is about multiplying the number of bosses you have. And reducing the number of rights you have to just one: the right to walk away.

Source: 26 years as a freelancer. One who would never get work through a rent-seeking, blood-sucking platform like Freelancer or Upwork.
I just think you have a choice of one or neither of these, but not both:

1. Internet connected.
2. Code and forget.

Choose one or none, but not both.

Selling medical equipment that gets hacked by wannacry is not acceptable. It isn't even theoretically possible to promise that the OS won't drop support for things since you may rely on something that is later exploitable. Realistically speaking, unless you're writing code for something crazy like VR, there is a great chance that with tests you can update the code to match the new OS in a week or two.
Flexible array members, designated initializers, compound literals, anonymous structs and unions, and many of the library features are pretty great. They more than pull their weight.

I am glad the C11 committee put more weight on implementibility for C++ compilers than C99 did. Variable-length arrays in particular feel like the C99 committee decided to poke the C++ committee in the eye with a stick. (Given how the C++ world treated C at the time, though, I understand the temptation.) That said, if being compilable as C++ were a hard requirement for C features the world would be a poorer place.
> Most states don't have any restrictions on municipal broadband:

Well, they don't until municipalities actually try to start a program. Witness Tennesse a couple of years ago: https://arstechnica.com/tech-policy/2016/03/tennessee-kills-...
Interpreters are more flexible; I'd expect that any compiled language could also be interpreted. I'd expect that at least some languages where the canonical implementation is an interpreter could also have an ahead-of-time compiler implementation, but that some of those languages would have at least sections of the program that need to be just-in-time compiled (or even recompiled) at runtime. That would pose extra difficulty in making a compiled implementation of the language.
Really great visualizations of search algorithms - would love to have brief description of technique used for actual graphics/audio output (only 600LOC but my C is craptastic so..)
Can't wait for part 4, I've been following this series very closely and really appreciate the details the author has included. Way more in-depth than the typical "build your own blockchain" submission.
What he means is that we only really have intuition for 1, 2, and 2.5D visuals, but many areas of mathematics don’t map into low dimensions very well, or do but lose essential properties in the process. Building a low dimensional projection of he problem might prime intuition, but it will also introduce fundamental biases as well.

For example, learning geography by flat map projections only. No matter what projection you use there is a trade off, and you end up instilling both the pro and the con of that trade off as intuition.
It's good enough (and correct) to store unix timestamps. For displaying the date - your comment applies...

Unix timestamp refers unambiguously to single point in time. Interpretation of this point in time in different timezones is complicated but it's outside of it.
It can be entertaining to get out and see the people in a place.
The difference being that aircraft throttles are not modal and are always 1 throttle = 1 engine.
It's interesting as a percentage how many artists/musicians there are.
I used to add i18n on rails apps only when needed, because it forced to create a decent yaml schema for translations (how/where to put keys in the right namespace can be hard).

Instead, Elixir/Phoenix uses gettext, you wrap strings with a gettext call, then you run a task and it generates all the files ready for translation. This means I can still use a main language and translate it if needed, without touching the codebase.
3 Backups and 2 Die in the Same Week
What do you do when a zero day comes out for nginx or openssl?

When things somehow go sideways I do the same thing: Triage the situation, including taking things offline if needed, make choices that solve the short term situation, run the tests, everything ok push live. Otherwise mitigate the issue by partially removing services (no image upload right now) and getting the rest of them live.

On the server itself I have a second copy of the repo. I install the new version of ruby in that repo and install the gems in that repo. I run the tests there and I check to make sure that Gemfile.lock hasn't changed. All good? Time to go live. Otherwise? Fix things locally first and re-push.
Orbital ATK’s S.S. Gene Cernan to Deliver Supplies to Space Station
If the US had been the first to launch a satellite, would the Soviet Union have objected to the principle that satellites can fly over foreign countries without permission?

I read this was kind of a consideration during the Eisenhower era and one reason the US didn't push so quickly to space.
(I haven't gone through both) but I think HtDP and SICP are interchangeable-ish.

From the wikipedia page: HtDP was designed as a textbook to address certain issues that some students and teachers had with SICP.