skysight-inc/HackerNews huggingface dataset:
As an interviewer at Amazon, the brain teaser style questions aren't loved or taken very seriously.

There's always some of that, sure, but usually it's a problem with a bunch of ways to solve it, not just one. Some are better than others. And it's nice if you get the best one. But that's not what I personally care much about- it's how you communicate it, how your pseudocode looks, how well you've thought through the problem, how well you can explain the solution.

There's also usually interviews focused on design. The problem may be easy, but the challenge is in how you'll solve it to handle (m|b|tr)illions of inputs.
Sounds like the actor model. Erlang? Elixir? Not really sure where you're going with this :P
Read through the OWASP top ten web app vulnerabilities, and make sure you are--at least--familiar with them. https://www.owasp.org/index.php/Top_10-2017_Top_10 You're not paranoid: highly motivated criminals smarter than you are plotting against you trying to crack your systems.
> Windows Powershell also has a pipeline where objects are exchanged, but it also somehow failed to become a huge success.

I believe it is a huge success in the crowd it was aimed for. (non-trivial size Windows admins)
“The Linux of social media” – How LiveJournal pioneered, then lost, blogging
> The thing is, it's neither "bad" nor "good", it's just history. And in that context, the Janissaries are quite an interesting case because their history is filled with very extreme ups and downs.

History as is being interesting does not mean you cant make it sound better or worst then it was.

> Yes, they started out as a "slave soldier" unit in the thousands, made up of forced converts. But their efficiency on the battlefield quickly made them a very renowned unit, so renowned that over time even Muslim families tried to get their children to be recruited.

It is kidnapping out of original family that lost a son. The fact that kidnapped kid becomes valued soldier due to training and ideologization in isolation from original family and culture does not changes anything on that.

The unit leadership having a lot of power later on still changes nothing on loss of the original family, the boy being kidnapped and brainwashed/forced to be soldier.
LBO?
Browser automation – Auth forwarding with Cookies
"The face book (which was an actual paper book at that time)"

I love that line.
The Pure Function Pipeline Data Flow

https://github.com/linpengcheng/PurefunctionPipelineDataflow

Using the input and output characteristics of pure functions, pure functions are used as pipelines. Dataflow is formed by a series of pure functions in series. A dataflow code block as a function, equivalent to an integrated circuit element (or board)。 A complete integrated system is formed by serial or parallel dataflow.

data-flow is current-flow, function is chip, thread macro (->>, -> etc.) is a wire, and the entire system is an integrated circuit that is energized.
Real-time animation transforming how movies are made
Or, don't split between primitives vs objects.

I think it's a mistake to make thet distinction in many language's design.
Fair enough. I'm a little surprised at the response. I didn't expect many people here aren't already intimately familiar with pipes, and for those that aren't *nix users, I'm not sure the content is of interest.

I guess being honest around here is the wrong thing.
How much of the typical application server authorization logic can we put into the database? Is it possible to setup authorization on a cell-level?
Example: All users may change their own passwords, but only team admins may change the passwords of other users in their team.
/dev/null behaves like an empty file, which is (or used to be?) a valid executable.

Cf http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html or https://twitter.com/rob_pike/status/966896123548872705
Not all of it was correct. My parents' generation "learned" to avoid eating fats to not become overweight. My grandmother knew that you shouldn't eat fresh bread before it cooled down (unhealthy or so).

We researched the latter recently and found out, that this idea was spread after the war so that the children would not eat too much of the freshly baken bread, because it tasted better. No health implications at all.
Show HN: UserBit – Create Personas, Sitemaps and user research on one platform
The puzzle is not some inherent problem within the one you’re actually solving, it only arises because of limitations of any type system you choose to work with.
Leveraged Buy Out. You use the value of the company you are acquiring to guarantee junk bonds that you sell to raise the money to buy the company.

Barbarians at the Gate is a popular book that goes into the details while telling the story of a large LBO.
Cool, the pipe command must be one of the most essential things in Unix/Linux based systems.

I would have loved to see some awesome pipe examples though.
>The least these programs could do is symlink fo a single binary directory so i can run them from anywhere.

Yes, and scoop does exactly that! Everything is added to the path, and if you do like how it’s added to the path, you can easily modify the JSON manifest and submit a PR. The community is thoughtful and considerate but generally against bloat.

Scoop also adds shortcuts to the Start Menu.

There are some proposals on the table (and have been for a while, without much support) to do more customizations like context menu modifications, but some applications (like VS Code) at least give some instructions for adding that yourself when you run the install.
Can't they just keep re-injecting the patient with more virii as the immune system depletes it? Cancer patient's immune systems aren't exactly super strong.
You pretty much argued the opposite of your point.

Asking algo and whiteboard questions completely ignores the "extensive experience across many years". I can spend years gaining deep expertise in an area, and that means absolutely nothing. All that matters is I practiced for 2 months white boarding algo questions under time pressure.

Or to put it another way. Spent 5 years getting a PhD? Who gives a f*ck. Can you code a DP problem in 20 minutes? You're hired!
What are the U.S. fastest growing companies in 2018?
There are many fun and fascinating similarities to find when comparing the Ottoman Janissaries and the Roman Praetorian Guard.

Both were established as elite divisions, handpicked for loyalty to the ruler, and stationed near the capital to discourage power grabs and revolutions.

Over time they both (figuratively) grew fat and lazy and came to understand and abuse the power that they held.

They both turned into “king makers” for the empire, it being impossible to take the throne without their support. Some sordid tales here on both sides.

Then, after years of havoc and instability in their respective empires, a strong emperor claims the throne without their help and then removes them from any position of power.
The core critique - that everything is stringly typed - still holds pretty well though.

>The receiving and sending processes must use a stream of bytes. Any object more complex than a byte cannot be sent until the object is first transmuted into a string of bytes that the receiving end knows how to reassemble. This means that you can’t
send an object and the code for the class definition necessary to implement the object. You can’t send pointers into another process’s address space. You can’t send file handles or tcp connections or permissions to access particular files or resources.
Have you ever tried to uninstall Chocolatey? When I tried doing that for the first time, it was a terror so I never looked back.
I've not used my XPS 13 long enough to really have a great feel for it but I'd estimate somewhere in the 5 to 9 hour range for light CPU/disk load (ie: mostly typing in a text editor, sometimes compiling and executing, maybe some web activity). Definitely not 19 hours. Your x220 battery life is impressive.

Sadly, due to the form factor being super slim, there's no way to add-on or swap-in a bigger battery so it's not like you can improve upon the XPS with post-purchase mods/changes.

It sounds like you aren't so concerned about performance as much as form factor and battery life. I'm not sure I have a great solution for you, the XPS might not be a good fit, but you might have a look at some of the Intel-based Chromebooks where you can load your own UEFI firmware and then boot directly to Linux. Some chromebooks have enough storage to be useful, sometimes have high resolution screens, and use rather low power consumption CPUs so they might fit your bill. It's a bit DIY but if you're into that kind of thing it might be worth your effort.

https://mrchromebox.tech/#devices
Take a First Look at Louis Vuitton's $995 USD Horizon Earphones
Why it make it a string enum then?

You can do that in any typed language too.
Knowing whether something just links in a C library and adds a wrapper, and how thick that wrapper around it is useful in knowing how ergonomic the API will be, and how easy it is to cross target.

For example, if you want to run on musl with a statically linked libc, then a library which is just a wrapper around a C shared library which depends on glibc is a non starter.
Rent GPU servers for deep machine learning, blockchain and mining
That has still zero impact on families that did not wanted their boys to become soldiers and lost them anyway. Nor on boys that did not wanted to be soldiers, but were forced to become ones anyway - regardless of whether particular boy later made peace with being lifetime soldier or not.

It is different institution then slavery. Differences are important. There was constant fear of slave revolt so those were kept away from what could make them dangerous. Those differences nor political power does not make it less forced nor somehow good.
Quite. We sat down as a team and spoke about sustainability to the one guy who was working late regularly. And pointed out when he wasn't quite grasping it that we weren't going to allow code he had written on his own into the codebase.

You might think it's a sprint. You're wrong.
We need to be wary of narratives of economic catastrophe
Clojure: The Pure Function Pipeline Data Flow

https://github.com/linpengcheng/PurefunctionPipelineDataflow
The Vietnamese parliament is called the Diet but I don’t think it’s etymologically related.
> a slave or a Kul often enjoyed more social benefits and even better opportunities than an ordinary subject (as opposed to oppression)

Presumably ordinary subjects were not castrated.

EDIT: Apparently this is not true.
None of it is refuted in article.
Rent seeking always involves charging for a service you provide. That’s not the qualifier. Rent seeking here would be to provide cheap/free fuel until capturing enough of the market, then raising the prices to above market price. Not saying they succeeded. But to me it looks like they tried.
I gained maybe 100lb over a 4 year period while in college. I went from 200lb to 300lb. I drank nothing but water that whole time.

After I graduated I cut how much I was eating and stopped snacking between meals. Lost 80lb in 6months... it was crazy and scary.
deliberate intent

https://www.dictionary.com/browse/lie
What if keepalive is used and multiple packages are downloaded? Surely that is at least plausible deniability.
MacOs is layered on a UNIX-like OS. You can use pipes in your command windows.
Yes, there is a strong connection between pipes and functional programming, they all transform what passes through them and should not retain state when implemented properly.
Because the Agile Manifesto.
I guess the differentiating factor is the instant availability. You can go to a library pick out one book, and unless it's exceptional you'll only be able to read it for some amount of time before you feel like you need to do something else. With the internet, the "something else" can still be the internet.

And with a book, if you're truly binging on it, then youll be done in several days at most for the longer books. And, chances are, you won't be going back to the library for another book right away and, if you do, the next one probably won't be as bingeworthy.

I guess I can see the analogy but it's still like comparing nicotine to caffeine.
I think the linked Rootkovska tweet (or more specifically, her own thread/replies to it) actually gracefully acknowledges that Xen is not magically free of attack surfaces.

She's also written some fairly long-form articles about Xen security and the (sometimes significant) room for improvement, including, for example, this Black Hat talk (from 2008!) about breaking Xen: https://invisiblethingslab.com/resources/bh08/part3.pdf

I don't disagree with the rest of your comment :) I just have the impression that any discussion about Qubes+Xen is less "dismissal" and more that supporting a variety of hypervisors is "a small matter of programming" (where "small" is used to mean "absolutely not small").
> The thing is, it's neither "bad" nor "good", it's just history. And in that context, the Janissaries are quite an interesting case because their history is filled with very extreme ups and downs.

Let me guess, your country / nation luckily never had anything to do with the Ottoman empire?
As long as it does not exit you can still catch it through /proc/
Netflix are a Media company.

They leverage some damn impressive technology, but their business is about delivering media for end user consumption, much like any of the TV companies during most of the 20th century, for example.
? I know that this is a GenodeOS topic, but the GP wondered about seL4 which has some parts in GPLv2 and other BSD (2-clause).

IMHO the reason that few use seL4 is that it isn't ready: AFAIK seL4 isn't able to use efficiently multiple core with power savings, which is mandatory for usage in phones (and phones can use complex CPU with big and little cores).
Consul – Open Government and E-Participation Web Software
Why are you linking to the same github project over and over again?
I'm Dealing with Imposter Syndrome and Stress
People up-voting this only to read later and find out what Proton is. I thought WINE was the Windows Emulation Layer on Linux. Although, of course, Wine Is Not an Emulator.
> You can’t send pointers into another process’s address space.

Thank goodness.
Show HN: MTR.css – Hong Kong MTR Station Colors in CSS Variables
Thanks for explaining this. I have been using Pharo, and it is really easy to pick up where I left off with something when starting up the saved image. I dabbled with Objective-C back in the day (I bought an Amiga instead of a NeXT machine!), but left the C world for other languages (J, python, etc.). Is Objective-C going to be buried in the OS by users adopting Swift?
So, when colour television was the cutting edge of technology, the TV companies were tech companies?
Guilt by association is a farce of justice.

Good thing associations never get improperly labled, implied or documented. /s
If bots were not discouraged on news.yc, I would have implemented a bot for this long ago. Code-block quotes are so atrocious, esp. on mobile devices.
Rubbish. I have every version of the nosh toolset packages from version 1.22 to 1.39 side by side in a single Debian repository.
>there are infinite parallel universes

Let me know when you've observed one.
I'm not sure I agree with this. Function composition is more directly comparable to pipes, whereas I tend to think of monads as collapsing structure (i.e. `join :: m (m a) -> m a`)
Outcome Bias: What you miss when you judge decisions by their outcomes
How to Implement Inter-Thread Communication in Java
> ... women will still go for men who are "bold" enough to deviate from the script and seize the day.

There will be lots of ways to signal the kind of "boldness" you (and women) want, while still staying well within the 'script'. So hopefully this won't be a big issue in practice. (Though it's hard to say since we don't even have broadly-acknowledged 'scripts' yet!)
Could Consciousness Forge the Universe?
To be fair, the same critisim could be used for a socket? I think the issue is that some people want pipes to be something magical that connects their software, not a dumb connection between them.
I'm starting to develop whitepaper for a new blockchain project. It is identity proof system based on six degrees of separation idea.

I'm excited because I believe it can bring us to a more peaceful world.

Wikipedia:
https://en.wikipedia.org/wiki/Six_degrees_of_separation

My first article on personal motivation (mission):
https://medium.com/swlh/identity-proof-with-six-handshakes-s...

Would be happy to hear your thoughts!
> what Proton is. I thought WINE was the Windows Emulation Layer on Linux

Proton is just a fork of WINE[0], with a gaming focus and some Steam-specific compatibility additions.

[0] https://github.com/ValveSoftware/Proton/
In the case of Nomad, you run it as cluster of three. But if one of my app servers went down in the middle of the night, when I was using Nomad, the next day I might notice a degradation of performance but everything still ran.

The server going down was never really the issue though honestly. The issue was usually a process taking more CPU/Memory than expected in that case Nomad could intelligently schedule jobs based on available resources across the fleet of app servers.

These days with AWS, I don’t use Nomad, I just use CloudWatch and for the processes that aren’t Lambda based, I use autoscaling groups with the appropriate metrics for scaling in and out.

That also means if a server goes wonky, I can just take it out of the group for troubleshooting later and another instance will automatically be launched.
How many companies can you point at that don't rely on IT?

If relying on IT makes you a tech company, then basically everybody is. If what you provide is technology, then maybe you're a tech company, if what you do is provide a banking service, you're a bank. Try running a bank without using modern technology to the limit ...
Pipes are awesome. Even in more general programming the pipes and filters pattern is very important and yet a lot of devs still don't know it.
Sloppy OPSEC gave researchers an inside look at the exploit industry
Now you’re reinventing Nomad....
And it works great! I'm using it to run Windows-only games on Linux without issues. (I'm not playing extremely demanding titles, though.)
> When would it exit though? Would it exit successfully at the end of the input stream?

A process that attempts to read from a closed pipe receives SIGPIPE. The default disposition for SIGPIPE is to terminate the program (similar to SIGTERM or SIGINT). So yeah, assuming that the previous program in the pipeline closes its stdout at some point (either explicitly, or implicitly by just exiting), then our program would die of SIGPIPE the when it tries to read() from stdin and the pipe's buffer has been depleted.

However, our program could also set SIGPIPE to ignored and ignore the EPIPE errors that read() would return in that case. In that case, it could run indefinitely. But at this point, you're way past normal behavior.
The new feature to use proton with arbitrary executables is a godsend. No more struggling with wine prefixes, we can let Steam handle it.

I intend to use it with ebook DRM crackers, mod managers for Beat Saber and ESO, maybe even non-Steam VR titles, like the Vive store. Maybe some of the crappy desktop clients for enterprise webapps that I need for work too.
>Ark is much better in its Proton version (the native client looks like a game from 10 years ago)

Huh, I never considered the possibility that an Unreal engine game would have such a difference depending on the operating system. Does anyone know why this is a problem for Ark, but not other games? I know Ark is particularly janky in general.
https://en.m.wikipedia.org/wiki/Named_pipe
There isn't too much activity on this book [1] but I definitely think that more documentation about async programming in Rust is needed. Just recently I wanted to do something in async Rust and it's just such a PITA. I'm writing Rust since 3-4 years now and async throws me back to those first days where I didn't know how to cope with the error messages. Hopefully async/await syntax will improve this experience, but even then I think that documentation is needed. The futures crate is severely underdocumented. I'd love to have an example snippet next to each combinator etc.

[1]: https://github.com/rust-lang/async-book/commits/master
They also both rely on very generic data types as input and output. Which is why I was surprised to see the warning about avoiding columnar data. Tabular data is a basic way of expressing data and their relationships.
Icaros Keeps advancing
QUIC and missing APIs
do you have recommendations for CO2 sensors?
I've seen an idea of a generic utility that does this on moreutils' main page[1]. Search for 'connect'.

[1] https://joeyh.name/code/moreutils/
Learn functional programming, one tab at a time
It's a good topic for an update to the existing article to explain the limitations better. A sentence or two would do.
"a month resulted in neurological improvements in healthy trial participants that were comparable to those taking stimulants such as methylphenidate (Ritalin) or nicotine."

I was pretty excited to read this headline, but the details don't make sense to me. They only did this on people without ADD?

I don't understand why they didn't test this on people who have ADHD. "Healthy trial participants" would never be taking stimulants such as methylphenidate (Ritalin), so how do they compare how a healthy person changes from Ritalin.
>The clusters look strange to me as well - I don’t see any expected names aside from Plato and Aristotle for classics.

What names did you expect? A lot of them look part for the course.
It is precisely because humans aren't good at keeping a lot of context in their heads that it is a good idea to keep that context together on screen.

In this example it is not clear whether the reader may need to see the content of multiple functions simultaneously to understand what's going on. Or it may depend on the circumstances whether they do. So if you have to make the choice between inlining or not there will always be pros and cons.

An optimal solution gives you the best of both worlds: have an IDE that lets you inline-expand function calls (read-only), optionally replacing parameters with arguments, and simple commands to 1) actually inline the code to make locally unique changes, 2) edit the function in-place to make global changes.
Yeah, more specifically:

- DXVK, a translation layer for DX10/11 to Vulkan

- ESync

- Wine

- Proper overlay support within Steam
Here's a counterargument to that: a developer wants to do exactly what's done in those 10 LOCs, but there's no function encapsulating that so the dev in question can't intuitively, or through the documentation, find a reusable piece of code that will save him/her 9 LOCs. So the dev goes ahead and writes the exact same logic one more time. And because it's almost impossible to find an identical piece of logic in a large codebase, you now you have 4 places where that logic is being used and will likely never be replaced with a single function call.

Had you put that logic into a nice little function the first time, maybe with a bit of documentation, it would be reusable, better tested (because more people use it) and will save 9 LOCs every single time that logic will be used.

But, hey, I'm a noob so what do I know.
Show HN: MTR.CSS – Hong Kong MTR Station Colors as CSS Variables
I'm having a hard time remembering a time where I felt pressured to stay for dinner

If back before I was married I'd worked at a place that offered free dinner and snacks I'm convinced I would have happily and voluntarily stayed at the office until late basically every night. So as such I'm really glad I never did.
I wonder why they don't use the word "influential" then, if that's what they mean.

To me, the word important has a distinct prescriptive ring to it. As in "this book is important, therefore you should go read it". The word imfluential is more descriptive and does not have such connotations.