skysight-inc/HackerNews huggingface dataset:
As a foreigner, when I read reddit I feel exactly the same way about left-wing politics. Reading subreddits such as /r/politics or /r/worldnews feels like people are so caught up in their bubble that they refuse to see anything other than what they have already decided upon.
Edit: I'm sure the same applies to right wing subreddits, but I don't run into explicitly right wing ones too often.

I think that this is not really an algorithm's or any specific platform's fault. It's a fault of ourselves, because we buy into this stuff so heavily. The only way around it is to teach people to keep an open mind.
If you promote it as such, or 'free belt with every dress' then sure. You can't market it using the phrase 'buy one get one free' though.
> . I use cheesy pre-rendering for this: "$(CHROME) --headless --disable-gpu --dump-dom". It means more bytes :( but having all the HTML/SVG load at once is better for linking to a section, hitting the back button, etc. You don't lose the scroll position.

this is an excellent tip! thanks for the awesome technique.
The Japanese Plan to Win WWII with Fleas and Flies
Which provides exactly no protection against hardware backdoors.

HCSEC had 30 staff in 2015. Are they claiming to have done a line-by-line audit of all Huawei's code by now?
It’s not everything. See muscle hypertrophy: https://en.m.wikipedia.org/wiki/Muscle_hypertrophy
I've been using Kotlin lately, and while I do enjoy it, I'm not sure that it actually makes me more productive compared to Java. I haven't yet used coroutines, but if anything in Kotlin is a killer feature, I suspect coroutines are it. The lack of a decent way to write concurrent/async programs lead Java programmers to use over-complicated solutions like Rx.

Rx is cool and definitely a good solution for some cases, but if what you really want is just to talk to your database without blocking the thread, then it's way overkill. Just give me async/await like C#.

I'm a bit concerned about Kotlin code tending towards being overly concise and clever, especially with the IntelliJ refactoring suggestions that constantly pop up to entice me to make my code a few characters shorter. Of course, "my IDE told me to do it" is no excuse, it's my responsibility to write clear code.

One of the things I like about Go is the tendency to write straight forward code that reads easily from top to bottom. Java has a bit of this tendency too (if you forego the kind of all too common libraries that require you to instantiate 14 objects to do even the simplest things). Java has already become much less noisy with type inference for local variables.

Java code doesn't have to look like this, Java programmers are doing it to themselves:

HttpURLConnection httpConnection = (HttpURLConnection) new URL(url).openConnection();
httpConnection.setRequestMethod("POST");
> Most Misra software is embedded without dynamic allocation though

True, but I've seen enough MISRA code bases plagued with the "Christmas tree" layout even if dynamic memory allocation isn't allowed. This was just a generic example most people can relate to.
> In practice, back-end team tend to strive on "technical purity" and would ask the front-end team to take any hacks/workarounds necessary to deliver "compelling" user-experience.

The key is to design the DTOs (which API endpoints are based on) starting from the API consumer perspective. Business logic on backend is responsible to deal with mapping of DTOs to the domain models and in turn to data access layer models.

This results in most DTOs being "flat" and easy to consume by client.
Up until 2009 in Norway, it was illegal to advertise products with unrelated additions ("tilgift"). Not strictly related, as here it's the same product. But this made it illegal to do promotions like "buy our car, get a free iPad", "buy this coke, get a chance to win prices". I think consumers wanted the law gone, as it looks like we missed out on deals other countries had. But it makes it harder to compare and tricks our brains.
IMHO any action should not be centered around combing history to formulate a constant moral (istic) judgement on past behavior.

Sure, the most egregious cases of outspoken chauvinism should be addresses - preferably if they relate to something occurring today - but constant nitpick and blanket attack simply select for people with axes to grind who are motivated to quarrel.

Propositive criticisms like "this attitude/prejudice/whatever, today is an obstacle now and we should work to remove it if we care about an inclusive society also in our industry and workplace." would be much more effective (IMHO.)
Anyone try the workman layout?

https://workmanlayout.org/
IntelliJ IDEA is wonderful (and a bit, if not unreasonably, slow).
Huawei already has an OS for IoT applications: https://en.wikipedia.org/wiki/LiteOS
> This betrays an incredible lack of foresight.

No, this is an agreement to build an acceptable way forward for both sides by addressing issues (real or perceived).

> You're making this about the US when it doesn't have to be.

The whole campaign against Huawei has been launched and is led by the US.

This is where the noise comes from and this has made dealing with China more difficult for the UK because of that noise in the media.
Not only that, they also heavily benefit from the R&D done at other companies. Add in generous subsidies from their parent government and you have a very attractive commercial offering, certainly.

Indeed, this kind of money is rarely invested without a known, outsized, expected return and, in this, I seriously doubt Huawei and their owners are lacking in intelligence. I mean, who do we think they are - Winnie-the-Pooh?
When comparing it also makes you realize how much Amazon Prime "free shipping" is a joke sometimes since they just roll the cost into the product.

"Why am I paying for prime?"
> fast typists... keep their hands fixed on one position, instead of moving them over the keyboard

Interesting, I'm a fairly fast typist (exact speed varies on test, but I'm in the 80-120 range) who uses mostly my pointer and middle fingers on each hand, and my hands move all over the keyboard as I'm typing, especially my right hand.
How is Freenet different from Tor?
> and yet people will defend their spending saying that they are "saving" money

I've never seen Prime as a purely money-saving scheme. It possibly does save me a bit overall (but not every month, for sure) on the things I genuinely want next day, but I also get the convenience of weekend delivery which either isn't available or is very expensive without Prime (from Amazon or other options), or certain drop-site delivery locations that don't seem to be available & cost-less without Prime. There is also the utility value of not needing to think about delivery as much.

> designed to get you to spend money at Amazon.

That much is certainly true. But it doesn't have to cost you more that way than it would anyway.

> You just need to do the sums.

Shopping around can be time-consuming, especially as every other retailer is pulling similar tricks so you have to make an effort to see through their crack as well. Though I do sometimes double-check and find the Amazon price the same once delivery is accounted for in both cases. Sometimes there is a saving to be made. Sometimes that saving has a convenience cost.

> Another common defence we will see when people respond to this is "Oh I know it doesn't save me money, it's the convenience".

Is paying for convenience inherently wrong in your world view?

IMO, spending time and/or cognitive effort to save money has to be weighed against what-ever else you might be doing with that time/effort (going out for a run, playing with the cat, doing some work, just enjoying doing nothing really, ...) otherwise you are guilty of exactly the same sort of false economy.
I'm sorry but dropping some "bile" comment about someones life choices doesn't make you Mark Twain. I feel I was perfectly entitled have a pop at you. Perhaps you had some kind of deeper commentary in mind but nothing you said indicated anything other than the cliched distain for people born in a rough period in time, of a certain skin colour, who have decided to get off the consumerist treadmill.

And for what it's worth. I'm a home owning millennial with a car and a child but I love that people are willing to experiment outside of this norm.
I demonstrated that the paper shows a long term trend based on the data from a weather station.

I also showed you that the operators of the weather station explicitly say that the data should not be used to interpret long term trends.

All you have done is launch ad hominem attacks, you have not addressed the issue itself in any of your posts.
But why is that a problem. So you get access to a big community and lots of libraries.

Are you working in an environment where you can't run a JVM at all for some technical reason? Maybe very constrained? But then you wouldn't be able to take many libraries regardless of platform. And in fact Kotlin also has Kotlin/Native which generates small(ish) native binaries.

There is also SubstrateVM which can create standalone, statically linked, natively pre-compiled binaries from Java/Kotlin programs. It even has an ARM backend.
This has happened with the ETSI DMR spec. Several key technologies needed to implement it require patent licences from Motorola. On the plus side, ETSI requires patent disclosures, and those are on their website.

MPEG is similarly encumbered.
The shady economics of a non-functioning close button of an annoying "Subscribe to newsletter" popup. Bottom line: it works but also sends a negative subliminal signal to the visitors that a given business is desperate. Just something for website owners to have in mind.
Same journey for me. I went from using AZERTY without touch typing to QGMLWY with touch typing (http://mkweb.bcgsc.ca/carpalx/?full_optimization). I practised with https://thetypingcat.com/ and zty.pe. It took ~3 months@30m/day to get to 60wpm, then I made the switch and it took about a week to get comfortable using it everyday.

Some takeways:

- the keyboard layout doesn't matter that much, what matters most is touch typing vs not touch typing

- I still cannot touch type with azerty. The touch typing skill does not transfer to the other layout surprisingly. On mobile I use qwerty, but I don't type that much on mobile.

- On OSx, I use this horror of a script: https://github.com/pinouchon/keybest/blob/master/rewrite_c/a.... It works fine, except that some password inputs use the mapping, some don't, which is slightly annoying. On ubuntu, I use XKB. I made it work through days of digging the documentation, XKB is the most confusing thing ever.

- The QGMLWY mapping preserves ctrl-x, c, v, z so cutting and pasting is not an issue

- I re-learned ctrl+letter and cmd+letter hotkeys. I like them better with the new layout.

- I created a custom layer called 'gamma' for coding with the modifier on the 'm' key: with the following layers: "top: #[({<>})]^ middle: ;=:"'/_-! bottom: ~?$\&+*.,". For coding this is invaluable. For example, to type underscore, my fingers don't move, it's just simultaneous pinky+index while staying in home-row position. On traditional layouts or not-so traditional layouts (qwerty, dvorak, colemak), modifiers are all over the place and don't take into account special character frequency.

- I also have a 'alpha' layer for movement that I do use. I moved the shift and tab keys. I also tried moving backspace and enter keys but ended up keeping their original positions.

- One added benefit with messing so much with the keyboard is that when I need a new hotkey or a special mapping for a game (where the default bindings are stupid), I can jump to my script and create a special mapping for that game.

- One big downside is that whenever I switch OS, I have to redo my keyboard setup otherwise I cannot use the keyboard

- Like others have mentioned, a neural interface would be better
> most of them have a “Pabst”

I just went looking this up and am none the wiser, please explain?
Thanks, I'll definitely look into Freakonomics. I agree it's pretty hard to find info on this topic from an academic perspective, and it's really unfortunate, as I believe it is important for the wider public to understand these tactics and why they work.
Blockchain Has Made It to the Artsy, and People Are Lovin’ It
Ancient Brain
Thankfully in some European country food must be sold with a clear indication of the "real" cost per KG
Outrage culture is a cancer.

You can find offense in literally any statement. Try to think of any statement that can't be twisted into offense.

The fact that it can now (thanks to both SJWs and Alt-Right) be weaponized is perhaps only second to the complete archiving of everyone's personal data, as the worst thing about the Internet.

"Boycotts" consist not of refusing to buy something from a company, but systematically harassing every element in a company's supply chain until they just give in and do what you want to stop the drama.

"Witch-hunts" ruin lives and have driven people to suicide.

Some people say, "well you shouldn't say things if you don't want the response", and I think TFA shows a great example of that not being the case at all. You could be (from your perspective) talking or sharing with friends, and offend someone (as established above, this is impossible not to do) and now you are off to the races!

Others claim it is a powerful tool to stop racists and bigots. I would say that a nuclear bomb would also stop racists and bigots, but like this cancer, it will also destroy everyone else in the process.

People should be called out on this shit, even if they are doing it for a noble reason.
Both the article and most of the comments here don't seem to touch the elephant in the room: There's no reliable scientific evidence for Dvorak or any other keyboard being any better.

Here's an article covering the flimsy evidence:
https://www.economist.com/finance-and-economics/1999/04/01/t...

Is there a place for better keyboard layouts? Maybe. Show me properly controlled studies and I'll take it seriously.
Boost Your Engineering Career with Magic Marks
I just checked, and MISRA 2012 seems to allow goto again under certain preconditions (you have to have a label declared in the same function and it has to be in the same block). So actually you can do proper error handling again.

Still single return statement, which usually makes for more spaghetti.
> Lots of comments of how innocent China is being hard done by, really have a look at what China has done to exploit developing nations

Those is glass houses...
"It's very hard to find good, well-mannered people with moral integrity. At least it is for me. And based on everything I see around me, those people are just rare. Most people tolerate each other, instead of actively wanting to be friends/whatever with each other. I don't fully understand why that is. But is just is. I'm curious to see other's thoughts on this subject, though."

So much of this, I feel that 100%. And people who are like-minded to me feel the same. I think I have 6-7 people/friends like that, it took me time to find them, and I said many times no to "regular ok" people who are not ok to me. Additionally (don't take it too seriously) people who say they don't like people in general (like me :D ) are the ones who I like and who "do have a bar" at all.

To me it seems like most people are not in "real friendships " just accidentally sharing similar background in a space and time so they benefit some of the pros of having a "regular" relationship (eg. friendship).
> Not really secret.

A freemason friend of mine once explained to me that they're described as "a secret society" not because they try to hide their existence, but because they have secrets. i.e. shared secrets that they use as a means to authenticate to one another their membership and status.

To me, this seems like an alternative and valid interpretation of the term to the one that you have inferred.
I run one most of the time (IKEv2). I'm in the UK, and do it on principle to stop my ISP storing details of every domain I visit on behalf of government agencies. If I were in the US I'd do it to prevent my ISP selling that data on.

(I also thought about setting something up for others, but this is currently 100% vapourware: http://digitalsnorkel.net/)
>Closer to the risks of taking a medication than a street drug.

Which street drugs? The comparison reminds of making the distinction between "natural" and "chemical" drugs. Sounds nice if you want to convey an image but not a sensible generalization. You will find quite a lot of street drugs that are less dangerous then some types of medication and vice versa.
That VPN may not be as secure as you think
> They called it "secret" because ...

My understanding was that it was because they have secrets - handshakes, codes etc. - not because people don't know they exist.
Greece does this, and it's a lifesaver. No more ballparking the math, I buy the cheapest shampoo and toothpaste per liter very easily.
Decline of the world’s largest king penguin colony at Ile aux Cochons, Crozet
How to Run Your Python Scripts
Actually you can do that without goto's, by using do {} while loop and break:

FILE *fh;
char *buf = NULL;
char *rv = NULL;

do {
fh = fopen(...);
if (!fh) {
report_error();
break;
}

if (fail(fseek(fh, end))) {
report_error();
break;
}

long int sz = ftell(fh);
if (sz <= 0) {
report_error();
break;
}

buf = malloc(sz);
if (!buf) {
report_error();
break;
}
if (failed(fread(fh, buf))) {
report_error();
break;
}

rv = buf;
buf = NULL;
} while(false);

if (fh)
fclose(fh);

if (buf)
free(buf);

return rv;
Is that too much? How much is it worth to us to have at least a chance at oversight for peace officers? I think if it saves one life, it's worth it.
> Apple lets you selectively disable and enable parts of SIP.

Can you cite a source for that?
Most obviously IntelliJ itself. I read a lot of praise for Visual Studio Code these days and then when people describe what they're so in love with it for, they're describing basic features IntelliJ had years ago. It's quite clear a lot of VSCode users have come from Atom or Sublime or just console text editors and have never really encountered a proper IDE before.

VisualVM is very helpful. You can attach to any running Java program on your system and get graphs of CPU, memory usage with garbage collection information, you can take a snapshot of what every thread is doing with reliable stack traces, you can take a heap dump and then query it with the "Object Graph Query Language" or visualise it with tables and charts to understand where your memory is being used. You can do deep CPU profiling or lightweight CPU sampling. It understands mixed language programs and can show you the heap and stack in ways that make sense for not just Java and Kotlin but Ruby, JavaScript, etc.

https://visualvm.github.io/graal.html

Of course all these features work transparently over the network too.

Then there's Mission Control. It's a profiling system so fast and low overhead you're intended to keep it running all the time even in production. You can connect it to a live server and profile without disturbing users.

Then there are ultra-low-pause garbage collectors like ZGC, Shenandoah. Whilst Golang offers such a thing too, it comes with the major caveat that it has a very simplistic design that creates enormous CPU and memory overheads. The Java ultra-low-pause time GCs have more sophisticated designs that impose much lower overheads on running applications.

Then there's SubstrateVM, which can turn Java programs into standalone native executables of small size, without any JVM dependency. This comes with some caveats: execution speed is slower and you can't do dynamic classloading, which quite a few advanced frameworks do require. You also have to tell it in config files what you want to reflect, so it doesn't throw away code accessed only reflectively. Also the garbage collector is fairly middle of the road and not so sophisticated as what you get in HotSpot. After all the regular JVM is large because it's giving you a lot of stuff. But it can be very useful for command line tools.

Talking of which, check out the combination of PicoCLI, Apache SSHD and JLine. They integrate together well to enable you to easily and rapidly create interactive shells for your program, accessible via SSH. There are of course many other powerful libraries available.

Finally you may like to explore things like the Chronon time-travelling debugger, which records what your app does so you can step forwards and backwards through a debugging session.
> But plain text storage, with a good toolset, is arguably the best approach for vast amounts of textual data.

I find it way easier to manage data in a database than in flat files. I'd be interested to hear your argument that plain text is best, and what scenarios does it apply to?
The truth is we have always had propaganda all around us and gossip/rumor was even bigger pre-internet. Now we are absolutely flooded and I am not advocating against fighting it, I am just advocating against blocking or expecting some ultimate source as the truth.

Critical thinking can be helped by educating and making it clear that news is like advertising today, it is mostly marketing. Like on commercials when you have the fine print or pharma meds when you have to list side effects. News should also present all sides and ones that don't should be seen as biased fully.

Most people know marketing is inflated truth or lies, the same needs to be reflected of news and media. Facts and information can help decipher if it is real or not, even if people aren't paying attention or care about facts. Even small stuff like Youtube saying a certain video is marketing, unconfirmed or from a source funded by a foreign government, that is all helpful. Same way people see content in a TV ad or in a tabloid, and know not to think it is real. Now there will always be people that believe fake things, there are still people that buy goods from the phone from telemarketers, but ultimately most people know to raise their level of critical thinking and expect a higher level of trust in those areas.

A big problem is when people automatically trust a source too much or it feeds into their confirmation bias, sometimes you can't change that but you shouldn't block all content or have a corruptible institution to manage it, because the people that can develop critical thinking stop relying on those skills and now you have a bigger problem.

The 'truth' needs to be broadcast from many sources not a single source, the oceans of information need to be mostly fact based/correct with more quantity and quality than the tabloid fake news.

"Get your facts first, then you can distort them as you please." --Mark Twain
Show HN: N1ED – the most advanced JavaScript page builder for developers
You are paying for it so you don't get charged for the shipping again. It's very, very shady.