skysight-inc/HackerNews huggingface dataset:
If you liked this article, PLEASE, PLEASE just take 10 minutes to look at the manpages for ssh(1) and ssh_config(5). SSH options are nothing we need to research about, we humans made it and we wrote documentation for it. The manpages are also exhaustive, definitive, and valid for the exact version you have installed.

Please, instead of making more 'how to use SSH'-articles popular, read the manpages yourself.

Reading the datasheets and documentation of the stuff you work with is an important characteristic of an capable engineer.
Not to language bash, but situations like this are why I avoid "enterprise" patterns and abstractions. Not that they aren't ever useful, but they're often implemented before they are needed, or not needed at all in practical terms. Some C# and Java tend to be some of the worst examples I've encountered. Even if the languages themselves can have much simpler implementations.
India Crosses 500 Mn Internet Connections as Rural Users Surge
> Individual plants can even communicate with each other and let others know of the pain it experiences.

The way cows, dogs, pigs, cats, sheep and horses express pain is very similar to humans: screaming and squirming or trembling, trying to escape, sweating, increased pulse and blood pressure, etc.

Responding to damaging stimuli is not necessarily the same, and I'm therefore not convinced that plants can "feel pain"; but perhaps neither are you? Surely you'd have a harder time grabbing a red hot iron bar and poking a puppy than poking a turnip with it? (There's a reason the killing is done behind closed doors[1].)

> The Mirror Test is far from perfect, but it does demonstrate that some individuals of some species are indeed capable identifying themselves as individuals in a group, indicating at least rudimentary sentience.

What about the individuals that fail it? I expect tiny infants to be able to fail the mirror test. That wouldn't make it ok to eat them, of course? Same argument for blind people; and of course the kind of people who, when they wake up after they've been drugged and strapped firmly to a chair in front a mirror, don't consider investigating a sticker on their shoulder as a first priority (because that's how that test works, right?).

Also pigs seem to be able to understand mirrors anyway:

> They found that pigs:

> • have excellent long-term memories

> • are whizzes with mazes and other tests requiring location of objects

> • can comprehend a simple symbolic language and can learn complex combinations of symbols for actions and objects

> • love to play and engage in mock fighting with each other, similar to play in dogs and other mammals

> • live in complex social communities where they keep track of individuals and learn from one another

> • cooperate with one another

> • can manipulate a joystick to move an on-screen cursor, a capacity they share with chimpanzees

> • can use a mirror to find hidden food

> • exhibit a form of empathy when witnessing the same emotion in another individual

Source: https://www.seeker.com/iq-tests-suggest-pigs-are-smart-as-do...

> In other words: if pain to the living being that you are consuming for food is a concern, then you should stick to eating fruit and things that are already dead.

I think it should even extend beyond personal diet to preventing others from inflicting pain on the living, just like slavery was not considered a personal choice by abolitionists.

[1]: https://www.peta.org/videos/glass-walls-2/
Something like this town? https://www.youtube.com/watch?v=pcVGqtmd2wM
It was implemented 9 years ago but it could be argued that it was invented in the 1970s

https://youtu.be/eEBOvqMfPoI?t=859
Maybe you can move here? https://www.youtube.com/watch?v=pcVGqtmd2wM
Simple Sugars Wipe Out Beneficial Gut Bugs
That's what the towels are for.
McDonald's corporate makes a lot of money on real estate. But every franchise is making it purely on those "occasional" burgers. It is that revenue that pays for the real estate.
This is not true at all.

This:

#include<stdio.h>
main()
{
int sum; int x; sum=0;
for(x=1;x<=50;++x)
{
sum = sum + x;
}
printf(" 1+2+...+50=%d\n",sum);
}

Is more cognitive load and error prone than this:

(println (reduce + (range 1 50)))

This is mostly what experienced FP advocates tell you. Btw. you can transpile the latter to the former.
Thanks zozbot123
As far as I know, that's exactly what the law in many (most?) places says. In the US, multiple states - most recently California, after a case regarding delivery drivers - apply the ABC Test[1], and the IRS has its own classification as well.

I mean, it's not that the contractor can't get paid less, it's that they can't be contractors at all, even if the employer claims so.

[1] https://www.law.cornell.edu/wex/abc_test
I hate the way Popular Science loads all this garbage in a failed attempt to get people to deactivate their ad blockers. Awful UX.
I think that the example given is a great example of code that will be around for a while... as mentioned, the logic was in 3 files and needed heavy refactoring. That refactoring has happened and the logic is well documented. In this case it isn't going anywhere.

That said, I mostly agree... I tend to favor a discoverable code base, where the directory structure is organized over features... for example a given feature may have a few controls, some actions, state logic, api client for foreign system, etc... any of the above. I organize by the feature, not the type of files/components of those features.

I tend to favor using abstractions only when they are simple enough, or make the related code much more simplified and understandable. The exception to this is needed complexity, such as an enterprise product that needs to support being deployed on oracle, sql server, etc.

Simple, replaceable code is often better. That said, when you have a broadly used produce and a piece of functionality that is well used, moderately complex and unlikely to dramatically change, this level of detail isn't a bad thing.
Indian cabinet approves India's first manned space mission
Do you want to get rid of how-tos? Both references and how-tos are needed. They serve different purposes.
Would the log-sum-exp trick have helped by any chance? https://en.wikipedia.org/wiki/LogSumExp
Security check no more a hassle Body scanners to be installed at airports
Python Tutorials and Courses
To make sure I understand, these attacks only work if someone get hold of your hardware wallet (either before or after it's delivered)? So they are stil safe if you buy it directly from the vendor (and trust your delivery service etc.)?
Ceding control is fine if you like the way your collaborator does things, but what if you can't trust them ? What if they have consistently done things the wrong way ?
I have a couple of bullet journals that I use occasionally, but I prefer doing all of the typical journaling things in Trello for a number of reasons. One of the big ones, though, is security: I don't have to worry about my journal getting stolen so I can write anything I want and have financial and other personal information included.

Among the downsides: it's not as free-form (no doodling) and I think there are advantages inherent in the physicality of bullet journals.
What if the mutilated cow (in the slaughterhouse) could save my life? Cows that are ill treated before they dead actually produce worse meat. So I think it's provable that tortured cow meat is bad for me.

Now I know you weren't referring to that.

As far as animal experimentation goes, it's pretty much illegal to do torturous experimentation on animals.

Getting IRB approval is difficult for anything besides normal life for an animal. Yes you can inject drugs into it etc., but pain to the animal plays a very large role in if you'll be allowed to do it.

* My wife is a cancer biologist who maintains and works with mouse models.

> If you replace the animals with humans (eating vs experiments) there is no question which one is more wrong.

Consent is the only issue here. What you're talking about isn't really ethics, more disgust.
ES6 – ECMAScript 6: Classes and Inheritance – FrontNet
Ya, all this talk of how to get a good deal... There is no such thing at a new car dealership. Wait until the car has 20,000 miles on it. Get it for way, way less.
> Reading the datasheets and documentation of the stuff you work with is an important characteristic of an capable engineer.

I completely agree with this statement, but that doesn't nullify the value of "how to use x" articles. Man-pages are great because:

- they're (mostly) ubiquitous

- they're plaintext, meaning their format is more robust and accessible (e.g. I can read man over SSH without ever encountering issues)

and these are great pros, but in certain relevant aspects they're grossly inferior to articles like this:

- man-pages must be exhaustive, and thus don't have the luxury of focusing on the most common use-cases up front. These are often relegated to the "Examples" section only, or omitted altogether

- screenshots. Even for terminal apps, screenshots are incredibly helpful, and in this particular article they're also used to demonstrate the use of applications your SSH connection will interact with (e.g. browser proxy/network settings)

- (related to the above) contextual information that would otherwise be off-topic/inappropriate in a man-page. How-to articles can cover multiple apps that interact with eachother as one topic; i.e. a how-to article can focus on a use case rather than a single app.
If you're saying they should have solved a distributed problem with a distributed language like Erlang, I'd probably agree.
Ignoring whether this is a great engineering accomplishment or not:

> In addition, the big data cloud that is created as the result of the information collected from the ORA app, the ORA shopping site and the Tmall e-shop opens the way to the development of multiple scenarios for offline sales

I don't see that much discussion about this trend, but I consider it a threat to security as well as just plain bad UX. All these UX gimmicks and "features" I already loathe in web apps, I really don't want them in my car. Pay to unlock, tracking, remote control, AI. Sure, it's comfort, but what is the price? At this point I prefer a 90's car where you just turn the key and it works or don't.

Is this just "get-off-my-lawn" thinking?
I'm just gonna quote RMS here[0]:

> And then I heard that somebody at Carnegie Mellon University had a copy of that software. So I was visiting there later, so I went to his office and I said, “Hi, I'm from MIT. Could I have a copy of the printer source code?” And he said “No, I promised not to give you a copy.” [Laughter] I was stunned. I was so — I was angry, and I had no idea how I could do justice to it. All I could think of was to turn around on my heel and walk out of his room. Maybe I slammed the door. [Laughter] And I thought about it later on, because I realized that I was seeing not just an isolated jerk, but a social phenomenon that was important and affected a lot of people.

> This was — for me — I was lucky, I only got a taste of it, but other people had to live in this all the time. So I thought about it at length. See, he had promised to refuse to cooperate with us — his colleagues at MIT. He had betrayed us. But he didn't just do it to us. Chances are he did it to you too. [Pointing at member of audience.] And I think, mostly likely, he did it to you too. [Pointing at another member of audience.] [Laughter] And he probably did it to you as well. [Pointing to third member of audience.] He probably did it to most of the people here in this room — except a few, maybe, who weren't born yet in 1980. Because he had promised to refuse to cooperate with just about the entire population of the Planet Earth. He had signed a non-disclosure agreement.

> Now, this was my first, direct encounter with a non-disclosure agreement, and it taught me an important lesson — a lesson that's important because most programmers never learn it. You see, this was my first encounter with a non-disclosure agreement, and I was the victim. I, and my whole lab, were the victims. And the lesson it taught me was that non-disclosure agreements have victims. They're not innocent. They're not harmless. Most programmers first encounter a non-disclosure agreement when they're invited to sign one. And there's always some temptation — some goody they're going to get if they sign. So, they make up excuses. They say, “Well, he's never going to get a copy no matter what, so why shouldn't I join the conspiracy to deprive him?” They say, “This is the way it's always done. Who am I to go against it?” They say, “If I don't sign this, someone else will.” Various excuses to gag their consciences.

[0]: https://www.gnu.org/philosophy/rms-nyu-2001-transcript.html
Well parts of it yes but not 100%:

https://github.com/apache/kafka/tree/trunk/clients/src/main/...
By all means, feel free to improve that comment :)
It's OK, not misleading at all, and the abstract spells out what they're studying and the motivation behind it clearly.

A "developer" is just someone who writes software and not necessarily a "professional developer" with years of experience in a particular kind of job like what you have in mind.

Moreover, I would even expect that the vast majority of "professional software engineers" who make a living strictly writing software without any particular domain in focus, might actually fare worse in floating point gotchas than scientific domain workers who are "software engineering dilettantes" but nonetheless do computation as their job.
The Quantum Quest
I can't see how #4 is possible without #1
Then you or they don't have #1 covered.
Async-Ray v.3.1.0 new feature: chaining methods in an easy way
Async-Ray 3.1.0 introduces a new feature to chain Async methods, without looking weird.
Chaining documentation
https://github.com/rpgeeganage/async-ray#chaining
Sample 1
https://github.com/rpgeeganage/async-ray/blob/master/examples/chain_sample_1.ts
Sample 2
https://github.com/rpgeeganage/async-ray/blob/master/examples/chain_sample_2.ts
Ask HN: Rust experts – please advise
Hi HackerNews community,

This is my first post here so please forgive me if below looks silly.

A few weeks back I have written a tool in rust. I am on holiday now and have some time to add improvements. Since I'm not expert in this language I'd love to get some feedback on where I can improve the code to make it more idiomatic and generally better. I use this tool on my servers to filter away all logs I know can be ignored so I can focus on logs that potentially require my attention.

https://github.com/grzegorzk/logmap
While your point is valid it applies to a single tool. Often the combination of multiple tools and Unix knowledge is what provides a simple solution to common problems. Not everybody has the broad knowledge to come up with these themselves so tutorial articles are a valid and helpful complement to man pages in my point of view.
I'm in the UK and our rules are different, we don't have anything directly equivalent to HIPAA (I suspect because we don't currently have the huge number of private hospitals/doctors the US has) in fact even finding out the exact standards you'd have to comply with for the UK is a challenge.

GDPR is good in that regard as the standards are high and apply to more than just electronic storage/interchange.
Ask HN: What's it like to be a programmer at a government agency?
What does your work day look like ? Do you have project managers ? Do you work on exciting things ? I'm curious to know (Especially if you work at NASA !)
Google suggests that was the https://en.wikipedia.org/wiki/Metcalf_sniper_attack in 2013 -- AT&T lines were cut and a "team of gunmen" fired shots into several PG&E transformers, causing substantial damage.
> I've seen horrible inheritance/convoluted refactors done in pursuit of DRY.

Everything in moderation, including moderation itself.
Vancouver to offer opioid pills in latest effort to prevent overdose deaths
The point was that this was not an advantage of ULID over UUID. You need 2.7 * 10^18 v4 UUIDs for a 50% collision chance.
Microsoft Announces a Public Preview of Python Support for Azure Functions
By choosing the right names for a function or class a lot of jumping around can be prevented. Most IDEs also have a feature (including key combination) to show the documentation of the method/function. The only reason that remains is when you doubt the correctness of the method and need to look at its definition.
Calling subs and typing in Perl 6
A tilt of the head facilitates social engagement
I feel intent should matter, is the intent to show the tattoo art? or to make a likeness recognizeable? Mike Tyson has a tattoo on his head, is the intent to convey a likeness of Tyson? or to sell the tattoo as a brand in itself(t shirts and such as a logo)? I mean is it fair use?
Google code is in archive mode, but the tgz is still there.
And this code has huge advantages over MPI, if you read the paper. It's statically proven deadlock free, and it optimizes bad protocol specs to use async.
It's almost on the level of ATS or Pony, just not memory-safe and type-safe, and structs, unions and objects cannot be passed to parallel functions without some custom serialization.
Yes the lesson of juggling is picking things up and starting again and again. Then as soon as you master n objects the jump in difficulty to n+1 objects is exponential and even when you get it perfect your audience will be bored of it after 15 seconds.
This reaction is so stereotypical, so ubiquitous that I wonder people bother to type it out: why not link https://xkcd.com/1357/ and save
keystrokes?

This reaction is also false.

Facebook is part	of the
state!

Why? Organisations like FB organise large-scale information flow, in particular
regarding controversial political issues. The majority of citizens receive the information regarding political decisions (e.g. who should be president) filtered and structured via FB. Hence organisations
like Facebook are currently part of the the state! They are public infrastructure, and should
be subject to democratic control.
A school run that is less than 5 km round trip? Can't it be done on foot?
Why don't I ever get to see wild stuff in person? Immediately reminded me of 'the Norway spiral'

http://blogs.discovermagazine.com/badastronomy/2010/01/20/up...

https://www.wikiwand.com/en/2009_Norwegian_spiral_anomaly
Indonesia's Government Pulled the Plug of First Media, Internux and Jasnita
I'm with you on this. I know it's just an example to get people in the right mindset, but suggesting that a actual programmer would start there is ridiculous.
It seems to me that people have trouble with being bored. So they need to fill their time being 'productive'. Instead of drawing fancy headers for 'Wednesday' or 'Spanish' you could also just doodle for the heck of it. No, no, no, you are not allowed to just draw for the sake of drawing, you must be working on your productivity.

That is all fine of course, but I think you'd be a lot happier just drawing for fun and being smart and efficient about handling your todos as many have stated here, through basic lists on any piece of paper.
> But from the startup founder perspective, you can't let yourself be paralyzed by the fear that everything will go horribly wrong.

Some middle ground here is definitely needed.

Even for startups, things going "horribly wrong" can kill people (medical devices, biochemistry, robotics, transportation) or send people to jail (accounting, banking).

And if you think your web startup doesn't deal with "dangerous" things, I suggest googling for "life-threatening grindr security flaw".

There's never a good reason to ignore security.
New You for New Technical Writing Year
I like this idea and will try to apply it to our code. Why do you prefer it over splitting the code out in a different method? Is it so you can read everything in one glance? If so, an ‘inline’ feature could be added to IDEs to show definitions inline.

Also, when using applicative or Monadic style programming there is little reason not to split things of in small separate functions and chain them together in the right order.
"Valve", not "Value"!!
Another important factor was blatant disregard for other country’s intellectual property - something the US now criticizes China for. A well researched book that covers how the UK and later the US “borrowed” technology from other countries to fuel their economic development is “Kicking away the ladder”.
Not OP, but that's very helpful, I would appreciate more details about your process.
> It doesn't take into account: 1. Re-exports (Rotterdam is the largest port in Europe)

At some point during Ceausescu’s later years Romania (my country) was one of the largest exporters of bananas in the world, as Romania was trading with many African countries using barter: we give you tractors and Romanian-built replicas of the AK-47, you give us bananas. Those bananas were later re-sold by the Romanian Government for much needed foreign currency.
Simple: dogecoin.
How to activate australian open tennis on roku
That is an impressive dirty-tricks story. Ken Feld adamantly did not want his late father outed as gay. That's not surprising, I guess. And he wanted to protect the reputation of Ringling Bros. Also not surprising.

But the lengths he went to!
I think a lot of Clojure developers have worked with gnarly codebases before, probably for the bulk of their careers. It's a common reason for using Clojure in personal projects, and seeking out Clojure work.

There are numerous ways to find satisfaction in work. I'd merely extend the reasons you list to include an enjoyment of the tooling and software you're working with. Might as well try to tick all the boxes.
Enpass 6 password manager with multiple vaults and 3rd party audit
> Only problem is that dutch vegetables have no taste

The expression “like Dutch tomatoes” has become an insult for vegetables being sold on the local market exactly for the reason you mention.
Eating, Hacked: When Tech Took Over Food
American-style democracy aka managed democracy aka inverted totalitarianism
Of course they loose some money on the gift cards, but I highly doubt it's anywhere close to 18% of the value for most retailers. I was not able to find a public source on any numbers here, but I asked a friend working at a large 8-letter games store and he mentioned figures in the range of 5%.

Furthermore I am not speaking of the recently launched game store, but the UE Marketplace that sells assets targeted at developers.
As mentioned in a reply to a sibling of yours, I am not aware that Steam or other large game distribution platforms are competing in this market.
Hence I am not sure why their rates are relevant here.
If you get in much deeper than just a couple of functions, I highly recommend using Middy. It acts as a ‘sort of’ middleware, which makes it much easier to write reusable stuff and comes with its own often-used middleware, such as converting the body from JSON to an object.

https://github.com/middyjs/middy

We have over 40 functions on our main product and it’s been working really well.
> Many languages don't have an IDE. Many are not suitable for one (especially ones closer to Lisp on expressiveness spectrum).

This is a minor point of your comment, but I'd like to refute it: Lispers actually often cite IDE integration as one of the great features of Lisp. It may have lost pace a bit with some of the very best modern ones, but Lisps have had "modern" IDEs since about the 70s or 80s, with stuff like jumping to function definitions, finding usages of a function, looking up the docs etc. Even better, this is usually a part of the language runtime (predating most other language servers by quite a bit), so it can even apply to dynamic uses.
Ice house discovered under London street