skysight-inc/HackerNews huggingface dataset:
Your English is very, very good. And thank you for not being offended by me snapping at you.

> It is my opinion that fake news and such are an important problem and it's prevailing in Chinese social media. I do believe freedom in press is great but freedom with no regulation would be very dangerous.

I agree with that, but of course, it then depends on what the regulations are.

> I'd feel terrible about those people, of course, but ONLY IF THOSE CLAIMS ARE TRUE.

Fair enough. Even if we may disagree about what is or isn't happening, I'd rather we agree on that and not the rest, than the other way around.

> Why would Chinese government even care about put muslims in Xinjiang into concentration camps? What would they gain from that?

To practice things that can be extended to the wider population maybe?

http://www.spiegel.de/international/world/china-s-xinjiang-p...

What would anyone gain from making all that up?

> Re-educations are just a way of making extremists less extreme.

How come people just disappear and nobody knows what happens to them?

Okay, so you don't think that's what's happening, but can you say how many people have been re-educated? How long does it take on average, how many are currently detained, how many have been released? Have there been any injuries or deaths? Are these questions even raised, much less answered? You don't owe me an answer to any of that, but that's why I think what I think.

> I do bring up "Western media" a lot because I am so frustrated with them bull-shitting about China and that they successfully influenced people's opinions with tons of single sided stories and disinformation.

I don't like what many major media are doing in general, so I don't really disagree. But saying it's all biased and therefore made up, could also be used against anything the Chinese or any other government says.
How to Be Successful Without Hurting Men’s Feelings
UAC is a bad example - it's more like a walled garden where the wall consists entirely of gates, and when you approach any, it asks you if you want to open that. Hardly discreet.

In any case, this was in the context of app stores. What I meant is the ability to go flip a switch that enables sideloading, as you can do with Android or Win10 Store apps, if you know that one exists - on the assumption that if you do, you also know the risks. On Win10 specifically, this is stashed away in the system settings page titled "For developers", which comes with a bunch of warnings, so it's not something you can turn on by accident.
What is he up to now?
But GDPR says I can delete my data, I’m confused
Snake AI – A neural network and neuro-evolution experiment
I had a very very similar experience. I saw the craziest code in my entire career while debugging performance issues. Even though they were using a PHP MVC framework, they were pulling every record from a db table to iterate over to find the record using PHP string compare functions. I still can't believe it. The dev shop I worked for back then was even in the habit of hiring multiple teams for the same project in the hopes one actually completed it and it was still cheaper.
When I was a rookie programmer 12 years ago, I was assigned a task to optimise a routine. It took current vehicle speed as input, performed integration and calculated total distance traveled. I made a mistake that was let through code review and was caught by an automated test. My calculations were off by 1% which accumulated to a larger amount in 10 minutes. After that incident we never had another bug for 5 years in that module. Does this make the tests invalid? Our does this improve confidence in our code?
Top IAS coaching centres in Chennai
You can make your career as by taking best coaching for IAS entrance exams from this trusted Top UPSC coaching centre in Chennai.

https://blog.oureducation.in/best-tnpsc-coaching-centers-in-chennai
Or, as I like to joke, you can't tell a purely functional program ran because it had no side effects.
Key to sustainable focus
Battle of the Frontiers, First Battles of the World War One
I think it will help the blind, and people with seizures, so I hope it gets figured out. I do some driving for people with visual impairment, and I enjoy helping, but this would be best.
> Nobody appreciates the fact that the only reason human beings generally enjoy a good life is because they possess a resource that cannot be found anywhere else or reproduced by any means.

You still got a monopoly on your own needs, which form the basis of the economy. You can choose to work for yourself (or be part of a coop) and not need jobs. After automation it will be businesses that will suffer because their customers will be gone.
I took over a Perl project where every SQL call was an exec to a java program which would make the query.

The largest madness was a J2EE mess where persistence was achieved by taking your current object, sending a message bean to the server, it would touch the database and return the result which was being polled for (making it synchronous). The amazing thing is that the client and the server were the same J2EE instance. So Class A could have just called Class B. Instead it was A -> turn it into a message bean -> send it to the "server" (same machine) -> unwrap it into A again -> transform it into B -> message bean it back to client -> unwrap into B.

Literally three months of 8 people ripping all of that out and replacing it with A.transform() // returns B

Oh, and at the same time, none of this was in source control. It was being worked on by 12 people up until that point. They didn't know who had the current files which were in production. So my first job was taking everyone's files and seeing which ones would compile into the classes being used in production, then checking those into source control. Up until then, they just kept mental track of who is working on which files.
OAuth Proxy
The sad truth is we as developers have enabled management to do away with even the formality of a PIP.

Monthly personal goals, sprints, burndown charts. Management has you agreeing to meet specific targets and performance goals. I can only see it getting worse in businesses that are happy to churn staff.

The surveys are insidious and just a way to gauge if there are people to hunt out and get rid of. Never answer one truthfully - tick the boxes and move on unless you have your exit already planned.

And we need more people to say just give me more pay - too much talk of work/life balance and employee perks. Where's the value of employee perks to my wife and kids? They'd rather more money to do things as a family.
Food Follows Function, or why your avocados are probably Hass
India Art n Design – web series
I knew some nurses who worked in nursing homes. If you want a good nursing home, try to get the insider info on how many nurses work per shit, how many patients are there, and how many of these patients need nurses hourly for taking readings, giving pills, etc.

Nurses are overworked in these places, and the owners of nursing homes make money only by hiring not enough nurses. I know of a nurse, who used to not take readings, but filled them out based on yesterday readings. This, because she had so much work to do on her own.
> wouldn't they be better off writing an essay rather than a narrative?

There's an interesting quote by Eliezer Yudkowsky, who is best known for writing the fan-fiction Harry Potter and the Methods of Rationality.

"Nonfiction conveys knowledge and fiction conveys experience. If you want to understand a proof of Bayes’s Rule, I can use diagrams. If I want you to feel what it is to use Bayesian reasoning, I have to write a story in which some character is doing that."

https://intelligence.org/2016/03/02/john-horgan-interviews-e...

It's interesting to note that he wrote HPMoR with a specific purpose in mind, namely to teach the specific skills of "rational" thinking he wrote about on the LessWrong site.

In his case it seems he saw fiction as something complementary to his essays, a means of conveying "experience", a simulation of living through situations in which the concepts could be used.

This is, of course, far from the only use of fiction, but I think it at least provides a specific example of a way in which fiction can be used to convey something in a way that cannot be (easily) done using dry prose (even if you are considering it purely from a practical standpoint without any reference to artistic merit).
On Windows, kernel32.dll is basically the Windows equivalent of libc - it's still a userspace library that wraps syscalls, and you're not supposed to use them directly.

But I don't see why it's a problem, either. What's the actual benefit of Go invoking syscalls directly on Linux? That it doesn't depend on glibc? But that is only an advantage because glibc is not guaranteed to be there on Linux, the way e.g. kernel32 is on Windows. If it were, there'd be no reason to not use it.
Code that is easy to change is changed until it's no longer easy to change.

Also: Well-designed components are easy to replace. Eventually, they will be replaced by ones that are not so easy to replace. -- Sustrik's Law

Edit: Added Sustrick's Law
> if your MVP takes 12months to build, it's probably too big

This piece of conventional wisdom keeps getting trotted out as gospel. 12 months doesn’t get you much when you have a wife and kids to support and they make demands of what little time you have between working and sleeping.
I don't know a lot about fusion, however «no radioactive bioproducts» seems to be off. I just read Wikipedia, and the deuterium-tritium reaction produces neutrons. Radiation seems to be not as bad as for fission reactions, however it is NOT radiation-free.
Ah ok. Well, if it feels like 'plowing', read something else. If it seems too long, read something else. If you don't think it's super-funny, read something else. Life's too short. I was going to suggest A Sentimental Journey, which is more like a....continuous narrative, but maybe you'd think that long-winded too. But like I said, the less that happens, the funnier it gets. And people who like a movie don't complain about it being too long! I can understand someone not liking/appreciating the humour, which is craziness on a grand scale, but to hear anyone (much less someone who writes for the Guardian) found it difficult is a surprise.
Even assuming it can be specified precisely enough, they would have to ensure their own product always fell within the footprint, and if the rival product deviated even slightly from it - but not enough to taste significantly different - they would be fine.

But of course to work to do all this would be fantastically expensive in practice, which is a whole other major problem,
The sticking point is whether you can be compelled to proactively lie by an NSL (when an NSL is actually a gag order, preventing you from talking about NSLs), given freedom-of-speech in the US. But quite a few people agree with you that courts probably wouldn't care about this level of pedantry[1].

[1]: https://www.schneier.com/blog/archives/2015/03/australia_out...
Ashwin Ramdas's satirical video on Blue Apron is worth watching: https://www.youtube.com/watch?v=TDMfDwDUxKE
This is exactly why BSD and illumos based operating systems ship libc, the kernel and userland (/usr) as one coherent whole. Perhaps now, reading the LWN article, people who are comfortable with GNU/Linux will start to realize it's high time to outgrow it and move on to one of the BSD or illumos based systems. The longer you wait, the harder the transition will be and besides, it's good to go out of one's comfort zone.
I believe I did cover your scenario when said there was an exception if the site is about design. If showcasing art, design or a specific personality is the objective then usability might have to take secobd fiddle, and that’s fine.
The thing no one told me is the number of requirements folk, like ux, ba's that don't understand their role in agile development and responsibilities in getting solid requirements across to developers
Actually I discourage my colleague to use unsigned especially because they can overflow.
The problem with overflow is that most of the time it is a program bug if there is an overflow that wasn't intended.

Using signed arithmetic means that you can actually trap on overflow and catch these bugs (using fuzzing for instance).

Chandler explained it nicely in his CPPCon 2016 talk "Garbage In, Garbage Out: Arguing about Undefined Behavior...". I encourage to watch the full talk but here is one relevant example:

https://youtu.be/yG1OZ69H_-o?t=2006

And here he mentions how Google experimented with this internally: https://youtu.be/yG1OZ69H_-o?t=2249
How to Change Price Decimal Separator for Arabic Store in Magento 2
gcc mandel.c -o mandel 95.84s user 3.99s system 71% cpu 2:18.88 total

thought it was just my notebook :) think it is the longest my machine spent on just 41 lines of code to compile
The Thing About Rabbit Holes
Save Money Expert
Social Network – Guest Blogging Site
> Making signed overflow/underflow trapping behavior would also be acceptable.

You can just add the right compiler flag if this is the right tradeoff for you application (it isn't for everyone).
Just watched this on YouTube. So interesting! Thanks!
I once had to look at a client’s code to determine if/how we’d go about taking over their application. Their only developer threatened to quit and this is when they realised it would be best to outsource this and reduce the bus factor.

It was a huge folder (not repo - and there were zip files of different “versions” of the code in there). The main monster was a huge Visual Studio solution with hundreds of targets, one would be an application for entering some data, the other was for entering data from a hardware device (a scale if I remember right), etc.

The main source of truth was an MSSQL database to which all these apps would connect as root. There is no backend as such to ensure access control & consistency, and any misbehaving app could essentially trash the entire DB.

Database credentials were hardcoded in every app’s main entrypoint, with earlier “versions” of the credentials commented out below.

I thought that surely these must be either staging DBs or at the very least there would be network-level access control meaning the DB wasn’t accessible from outside... but no - I managed to connect to their production DB as root from a random, untrusted location. I do not know if MSSQL uses encryption by default but I would bet good money there was none and they were essentially connecting to their DB as root, over plaintext, from hundreds of different locations across the country without any kind of VPN.

In terms of code you obviously have your standard & expected “spaghetti monster” with UI & business logic scattered everywhere. What struck me the most was an empty exception handler around the main entrypoint.

In the same folder there was also source for an iOS app. Didn’t look at it but I don’t see any valid reason why this should be in the same place as the Windows apps.

Thankfully I no longer work there and even if I were I had no major C# experience (which gives me a very convenient excuse not to touch this mess).
Bad code is a relative term. It might look awful but the design might be decent and of course it works or it wouldn't qualify.

I'm maintaining two semi-large applications right now that I wish I had the time to fix.

The bad stuff is basically no documentation, no attempt at pep8 compliance, written before decorators existed in python and very dependent on Python 2 syntax.

But it works and it's actually a very good distributed monitoring system that was ahead of its time. Closed source but it would remind people of prometheus if it was released, yet it was several years ahead of that product.
What will take EOS to the Moon?
The first thing I see is this: https://i.imgur.com/jFJRaoB.png

Very cringe worthy indeed.
I worked in investment banking as a quant. Once had the misfortune of working with a regulator-approved custom built market risk system from the 90s. It had code in every language you can imagine, from cryptic Perl, to Java, to C. The thing worked, but development cycles were a year long, primarily to allow for regression testing. It was a monster to debug, as very few people have the brain space to simultaneously comprehend that many moving parts.
On all other platforms, they're an implementation detail behind the system libraries.

Yes and this is by design, out of necessity, taught by experience. Commercial customers back in the day paid lots and lots of money, so solutions had to be found and they had to work.
1Password is promoted by the HIBP itself, a.k.a Troy Hunt. I would not use it.
Strip Marble Mosaic Backsplash Tile
Software Quality Assurance (QA) and Testing Services – SISAR BV
Red Brick Marble and Mosaic Bathroom
There’s Netatmo Home Coach.
Uber is a transportation marketplace. If they’re successful in cornering the market all transportation is arranged through them but they employ zero drivers, and therefore would be wildly profitable. That’s why they’re all about market share at any cost.
An annular lake is a circular lake caused by the impact of a meteor: https://en.wikipedia.org/wiki/Annular_lake
That’s devastating. I hope you recover as much as possible.
Well, I can solve most CS problems easily but have a hard time functioning as a developer.

Most CS questions are a bunch of concepts that you rarely use in practice. Most development work is implementing your ideas in a way that works with other peoples code and the framework thats used.
Google's One of Official Twitter Account Hacked – Scammers Promoted BTC Giveaway
I'd recommend a look at this book http://blough.ece.gatech.edu/3020/focs.pdf .It will show you what you've been missing in the preface and the first chapter. An interesting point by the authors was that this was the way they felt CS should be taught, with the fundamentals and all presented side-by-side with the code. But when you think about it(from mathematics for example) we need accountants who use mathematics effectively without having to understanding Fermat's last theorem...
I don't know. The company is based in rural Austria and so it took company quite some time to find another engineer that will took on this project (me). I have never met him or have any other contact with him.
Can either you or your parent poster say what "short lived" and "longer-lived" would be roughly?
I don't think they're failing because of a lack of competitive advantage. People just don't really like the service. My group of friends used the term "Blue Apron Anxiety" to describe the feeling you get when a new BA box was sitting on your doorstep and you still haven't cooked any of the meals from the last batch. If they did, competitive advantage could've been established (e.g. economies of scale). Besides, companies sometimes succeed with products that don't really afford themselves to competitive advantages (e.g. Facebook or Spotify) until they're big enough to be deeply entrenched.
But what you need to do to bad bosses is fire them, or leave them. That's hardly what a school teaches you to do in case you end up with a bad teacher.
There are no technical reasons. The issue is that the kernel and glibc are not one coherent whole because they were always developed by two unrelated groups. glibc wasn't even designed for Linux, but for the GNU kernel.

The end result is that the users of GNU/Linux will always draw the short end of the stick.
There is a lot of evidence that second-hand smoking is harmful. [1] is a summary on this topic from 2006 and cites 194 papers.

To describe the science on second-hand smoking to be anything other than solid is to simply lie about our knowledge on the health effects of smoking. To add to this, there is also significant evidence that SIDS is strongly correlated with parents who are smokers (and thus appears to be likely caused by smoking while pregnant, and second-hand smoke during infancy).

[1]: https://www.ncbi.nlm.nih.gov/books/NBK44330/
> In the same folder there was also source for an iOS app

A true monorepo
I’m going to disagree with all the positive comments in this thread. I feel like they’re all “feel good” comments instead of being realistic. CS 50 is a freshman level introductory CS class. It’s not a theory class, it’s not a class teaching you how to implement sort behind the scenes.

I would agree that an algorithms class does not equate to success as a software developer, but if you’re having issues with an intro class, there are certainly gaps in your knowledge. They might not reflect in your current job but may reflect in the future. I’d recommend actually brushing up on your fundamentals.
Cheap Filter --> Expensive Filter --> Fan

You put the filters on the intake, so that the airflow helps making a seal instead of creating leaks.

You put the cheap filter first everything that it catches will not clog the expansive one.
Hey! I love the idea but I just registered to HN to tell you that my 5yo would actually be too scared of your caracters to enjoy!

Also the universe feels strongly masculine and won't bring girls in CS.
Here in .dk-land we have several Blue Apron style businesses.

The most prominent one started out more than two decades ago by as a kind of subscription service -- every week you'd get a bag containing the produce of the season, along with weird stuff like Hokkaido pumpkins that most people had no idea what to do with.

These days they ship recipes along with the exact quantities of ingredients that you'll need for cooking. Often ingredients that are hard to come by in grocery stores. It's time saving and usually delicious.

Anyway, my point is, they bootstrapped their business, pivoted a bit here and there, and built it to be profitable. So it's certainly doable.
Thx, I wasn't aware about this feature yet!
Yeah, and Uber's founder's name is Travis Kalanick. How does spitting out random facts about Uber at all address his comment that Uber doesn't have a sustainable competitive advantage.
8 Killer SEO Strategies for Getting Higher Search Engine Ranking
Every motorcyclist knows this, yet, driving a motorcycle is so awesome.

The danger are other cars on the road. I've been thinking about creating computer vision tech to spot inattentive drivers, it's something I think motorcyclists could really benefit from (myself included)
> Even better, on Alpha, glibc's syscall cannot call system calls with 6 or more arguments

That's just generic kernel ABI: syscalls can have at most 6 arguments: https://elixir.bootlin.com/linux/latest/source/include/asm-g...
I mean, we have that kind of thing in software too, when it comes to e.g. memory usage or runtime (in a sense, anywhere we start hitting physical reality, really).

What should we make these buffer sizes? There's not really a right answer, but there are definitely some wrong ones. Make it big enough to handle the expected use cases and pad a bit extra. Works exactly like a tolerance in physical engineering.
Australia's My Health Record opt-out postponed to 31 Jan 2019
Religious flamewar is not allowed on HN. Please don't post like this again.
A few weeks ago I had to reproduce one of the recent papers on deep learning theory. It had ~3000 lines of code over around 10 files, but when I just removed stale and unused calls and spaghetti (just like static analysis does), it reduced to ~1000 lines with identical functionality.

Original code also computed the most time-consuming routine twice to thrice each run and had many many typos, e. g. "calculte_infomration". Imagine this, but in every second function/variable.

However, it worked.
To have that be part of the common world. Just like I wouldn't want Wikipedia to show a different version of the world to every visitor.
I think I compared the baseline models (lowest price 13" dual-core ones), and those had been very very close. The top models might be a different story, but the price gap there might be even bigger.