skysight-inc/HackerNews huggingface dataset:
I'm not familiar with RoR, but with rocket, to know which requirements needs to be met in order for a handler to run, you just look at the function definition while in other web framework you usually need to know which middlewares are present etc.

Here are couple of examples (didn't test them, but they should illustrate the point):

// Simple with admin user.

#[get("/admin")]
fn admin(user: AdminUser) -> String {
// Request is made as admin user.
format!("Allowed.")
}

#[get("/admin"), rank = 2]
fn admin(user: User) -> String {
// Request is made as a normal user.
format!("Not allowed!")
}

#[get("/admin"), rank = 3]
fn admin(user: AnonymousUser) -> String {
// Request is made as a anonymous user.
format!("Please login.")
}

// More flexable, with permissions.

#[get("/article/<id>/edit")]
fn aritcle_edit(permission: PermissionEditContent, article_id: u64) -> String {
// Request is made with a user that has the correct permission.
format!("Allowed.")
}

#[get("/article/<id>/edit"), rank = 2]
fn aritcle_edit(article_id: u64) -> String {
// Request is made with a user that doesn't have the correct permission.
format!("Not allowed!")
}

// Or in single handler.

#[get("/article/<id>/edit")]
fn aritcle_edit(permission: Option<PermissionEditContent>, article_id: u64) -> String {
if permissions.is_some() {
format!("Allowed.")
} else {
format!("Not allowed!")
}
}

This is just one of the nice things that rocket brings. To know more, the guide is really good source: https://rocket.rs/v0.4/guide/.
I still remember them and printing (very loud) TrueType fonts documents with TextMaker from DOS.
Stupid question here, but I have tried to google it a couple times and not found the exact answers I want.

When setting up a server on VPS what exact 'dashboards'/'control panels' are available?

Like op, I want to keep an eye on things manually in one place, similar to what I get pre-set up in cpanel shared hosting. Disk space usage, total traffic used that month, tracking server load, pages visited, and by what IPs, etc.(ideally without using google analytics script tag on page)

I wan't to analyse the performance of my webapp really, relative to the amount of people signed up.

I am going to be using LEMP stack.
I keep hearing that, and yet it doesn't happen. Did anyone ever actually demonstrate that PoS (either one) can give the same network safety guarantees as PoW.
Good read: Reflections of trusting trust https://www.ece.cmu.edu/~ganger/712.fall02/papers/p761-thomp...

That said, this requires you to be clever and I don't think anybody can be forced to be clever with a court order, or at least what you describe offers plausible deniability
CPanel and Plesk are probably your best options but you'll be paying a pretty penny for them
I can relate to that. However, you have to realise that you literally want to have everything - both the comfort and safety AND a fullfilling life. This conflict within people has probably been going on from the beginning of time (it's greatly depicted in "The Revolutionary Road", a film by Sam Mendes (director of American Beauty)). I think that in the end, unless you're very lucky, you need to give up one or the other to some extent. Personally, I think I'd be more comfortable living my next 30 years as an at least somewhat free pauper, than spending my days in a comfortable, but depressing gilded cage - but that's a choice that everyone needs to make for themselves.
The Game Engine Black Book: Doom
There's a wonderful quote from Douglas Adams on that:

> Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
What, why and how about Linux/kernel network sysctl parameters
Why do many programmers not know the fundamental algorithms like array sorting?
Air plane auto-pilots keep the plane on a specified course; they don't do obstacle avoidance. Planes aren't even programmed to avoid mountains, let alone buildings.
Writing a smart compiler for such a special application would have probably cost more time. This unit was specifically used (from what I can gather) for matrix multiplications, so the average Sega programmer didn't actually touch the code it was running.
So are you saying that evil murderers are not responsible for their evil murders because they didn’t have a choice but their evil parents are responsible, some how?
As a native speaker, I agree.
"
In recent years, it has become clear that the web is not living up to the high hopes we had for it.
...
These worries are justified. In recent years, we’ve seen governments engage in state-sponsored trolling to quash dissent and attack opposition. We’ve seen hacking and foreign interference distort politics and undermine elections. And we’ve seen how the spread of fake news on social media can trigger chaos, confusion and lethal violence."

1. The web is one of mankind's greatest inventions: a mirror of society in a cyber world. It has greatly surpassed all expectations, and is The Highlight of the 20th and 21st centuries.

2. Fake news, hacking, foreign interference: nothing new under the sun. Democracy has major flaws which all governments take advantage of.

I understand where mr. Tim Berners-Lee comes from, but it feels so simplistic, even naive to propose something which various governments will not even read or comment on.

The true battle lies in changing society.
Without overhauling democracy, we'll still be faced with voting issues. Without overhauling the press, we'll still get mass disinformation.
And so on...
The price of the Manhattan Project (2013)
Still have mine in the loft somewhere, that and the ribbon cable to attach it to my TRS-80. Being able to print out program listings and annotate them revolutionised debugging for me.

The "O" character and "0" number looked very similar, so we used to use a hack to print "0", followed by a backspace escape code, and then a slash. That produced a slashed zero.
You should check out our blog post related to finding the optimal learning rate, batch size, and momentum setting:

https://www.myrtle.ai/2018/09/24/how-to-train-your-resnet-5/
Index funds usually halved in value during the financial crisis. They still have exposure to whole-market crises, even if single sector or company crises don't touch them much.
This is being done

http://www.finra.org/investors/dangerous-game-using-your-por...
Throwing away the manual to my Epson printers was a difficult thing to do but marked a milestone in a nerds life in that era
You are looking at this the wrong way. This is a great way of locating font pirates.
It's not just sentiment classification. Many of these NLP methods overfit to the minutiae of the particular SOTA data set and data type.

Language identification, NER, POS tagging, parsing, tokenization… you name it. Solved in theory, trouble in practice.

Using the algos on a concrete project, with a concrete "upstream" goal, is the only way to assess the gap between SOTA and your needs. Don't blindly trust these 90+% scores.
What the relation b/w Mozilla and Mr.Robot ? Could you please enlighten.
You can have comfort, safety and fullfilling life. There is absolutely no contradition between the three - unless your value system defines fullfiling as lack of safety. Comfortable does not imply depressing. Pointless and empty and without something to do implies depressing.

Maybe one reason for problems with loneliness and what not are these dichotomies - people believe they have to choose between two extremes and expect others to choose between two extremes - not allowing for harmony between multiple needs and wishes.

For example, the parent feels need to pretend to be obsessive careerist type. Had he did not pretended so, his peers would put him into familly men bracket and he woild be taken less seriously and his work life would suffer. He needs both, but had to choose only one, because we collectively don't allow for those compromises.
I can't get over the fact he basically invents a DLP-like spatial light modulator in a thought experiment 15 years before the real thing, but then immediately dismisses it as useless. That's nuts!

Or maybe it was sarcasm that didn't make it through to the transcript?
Singularity

The only OS and language (Sing#) for the future. Everything else is severely limited and broken, and not scalable.
Pony took over some features, Distributed Pascal was also nice, but Singularity had so much more.
There is some relationship between motivation and enthusiasm. I think enthusiasm is the single most important thing.

Naively, you could state that showing enthusiasm is an expression of internal motivation. But enthusiasm can be faked, while I'm not sure you can fake motivation.

The remaining question is: is it possible to have motivation to do creative work without having an enthusiasm?

(and of course, how to build both things consciously. Is convincing yourself to "doing meaningful work" exactly that?)
Ask HN: How does your business use customer feedback?
I notice a lot of companies actively collect feedback from customers. I am curious what process do they follow, if they use it to understand what customers want so they can build the most impactful features, and if they are doing it all manually or using something like Trello for that?

The reason I ask is I’m thinking of doing something with feedback myself and I’m not too sure what most companies are doing with theirs. Anything you could share with me would be huge.
Now that this is through I'm sure the rest of the five eyes nations will at least try and follow suit.

Our left-leaning party voted for this fucking bullshit too, remember. Jacinda Ardern probably isn't going to save you.
Flew through France with a refillable bottle no problem. Where about a is it an issue? Want to make sure my expensive bottle isn’t donated to security.
TL;DR Tim Bernes-Lee wants governments and companies to sign a "Contract for the Web" document outlining a set of principles about the Internet.

"Berners-Lee said the full terms of the contract would be agreed in the coming months, with the objective to finalize it in May 2019 - the 50/50 moment when more than half of the world's population will be online for the first time."

https://www.reuters.com/article/us-portugal-websummit-berner...
Interesting data point on “worth” of beauty. In estimating your earning potential...

If, on the traditional 1-10 beauty scale, you’re:

1-2, multiply X by 0.3

3-4, multiply X by 0.8

5-6, multiply X by 2.5

7-8, multiply X by 4.5

9-10, multiply X by 8

And...

None of this applies if you appear male. If you appear male, god help you.

In who are these men?

There’s different types, obviously, but the most common tipper is single/divorced/unhappily married man in his 40s-50s, who is too depressed/anxious/unattractive to be able to get any affection from women in real life.
I'm in a similar tough spot, I'm the technical founder and am about to leave the company for health reasons. The difference between my case and what's described here, is that my salary isn't too bad (for Dutch standards) and that the investors are best described as angel investors.

The fact that they are angels makes everything more personal though. And with the current market, getting someone with my set of skills to replace me at a decent rate is going to be near impossible. It's a really tough spot, but in the end mental health is most important.
Typefaces are an incredibly labor-intensive product to produce.

The exact same can be said about programming, often multiplied tenfold by the number of engineers.

But the software industry has long understood the zero-cost of duplication, and counting on scale to build up massive revenue. Writing a good mobile game is heavily labor-intensive but you can sell it only for $4.99 if you do it a million times.

More specialised software costs more not necessarily because it's somehow more expensive to make but because the experts are willing to pay more because they receive more value out of the expert software. And usually there are cheaper options for small players who only need parts of the functionality. So the sellers understand that ideally you would only charge each customer as much as they're willing and able to spend because each time you would still charge something instead of being left without revenue at all.

There's revenue in market segments. A marketing studio can afford to pay $10k for a font for a $500k advertisement campaign. An application developer or a personal website owner could pay a onetime $20 for a specific font if he's a design enthusiast but wouldn't pay $100 and rather go with some open, free font. If font licenses cost too much they are not even on the radar for spending except in the high-end cases only. I've never considered buying a font myself but it might become an option with sufficient selection of fonts at a reasonable price.
Create interactive tables from JSON on the command-line
At least in case of LastPass you shouldn't buy the marketing statements. Not only isn't it really a binary blob that they are storing, they don't really care about protecting it from themselves either. https://palant.de/2018/07/09/is-your-lastpass-data-really-sa...
Thanks! I don’t know why I thought email addresses on HN were public for a minute there. Fixed!
Good to see actionable and realistic advice for women posted on HN.
> The result is $1.59 royalty and $0.77 profit per book sold.

That's brutal. I mean I get it that production and distribution is costly (books are heavy), but only taking a 77 cent profit on one year of work seems insane.

What does the breakdown usually look like for e-books?
Which party is more likely to shame people for asking help? Such as asking for more social security benefits?

I mean it sounds good on paper to say "if you're not successful then that means you're just lazy" but there are several factors preventing people from getting help. There are several layers to the problem from a culture of being too proud to ask, a culture of exceptionalism, a culture of individualism, etc. All of these tendencies which resonates more with being a Republican than not.

Note that I am not saying these are bad traits, just that they would contribute to a result of increased loneliness.
I think they were saying the autopilot only kick in if the pilots fail to acknowledge it.
Camgirls tend to drink a lot. Drinking
is another common thing to tip for,
and it makes camming easier. My friend
once told me that she used to get on
cam, black out, and wake up every
morning with a thousand dollars.

Gee. Let's all stop and think about that one for a moment.

I mean really. Just pause for a second.
I loved that printer. Did so much with it and was the first time I really did a bunch of stuff with ESC sequences. Bidirectional printing was cool and getting it to print graphics by driving the print head directly felt like magic. Anyone who programmed that printer will be instantly at home with Epson (and compatible) thermal printers and more.
> so we used to use a hack to print "0", followed by a backspace escape code, and then a slash. That produced a slashed zero.

That's awesome. Thanks for sharing, because as somebody who grow up with windows 3.1 being the earliest OS, these stories are great.
You may find helpful people/info at one or more of:

https://electronics.stackexchange.com/

https://arduino.stackexchange.com/

https://raspberrypi.stackexchange.com/

https://www.reddit.com/r/electronics/

http://www.reddit.com/r/hwstartups/

http://www.reddit.com/r/AskElectronics/

https://hackaday.com/

https://forum.nutsvolts.com/

https://circuitcellar.com/

https://www.eetimes.com/

https://makezine.com/

You might also find this book interesting:

https://www.amazon.com/Hardware-Hacker-Adventures-Making-Bre...
If you look at the night sky you'll see more dark areas than points of light, but you still use those points of light and the contrast to define what brightness and darkness is. That would hold even if there was just one visible star besides the sun in the whole universe.

> I probably already engage in acts that future generations will consider evil

It's nothing to do with new insights coming about. If for example you reap the benefits of wars of aggressions and don't speak out against wars of aggression, what future generations think of it doesn't matter.

When you see a homeless person sleeping in the cold, and you put a warm blanket over them and they don't wake up and nobody sees it, was it a good deed? I would say yes. It will even remain a good deed if you yourself forget about it.

So why would that be different for bad deeds? It can only be bad for reasons that are present at the time. If someone is getting deceived it's hard to blame them. But if someone is ignorant because they made many little choices to remain ignorant, it's different. If someone couldn't have possibly known because of scientific discoveries made later, it'd be silly to "blame" them. But that's hardly relevant to the Holocaust.

And nobody "statistically" does x murders and y good deeds each year. We do nothing statistically, we just do what we ourselves actually do.

> Of course, the terrible things I heard from the Nuremberg Trials, about the six million Jews and the people from other races who were killed, were facts that shocked me deeply. But I wasn't able to see the connection with my own past. I was satisfied that I wasn't personally to blame and that I hadn't known about those things. I wasn't aware of the extent. But one day I went past the memorial plaque which had been put up for Sophie Scholl in Franz Josef Strasse, and I saw that she was born the same year as me, and she was executed the same year I started working for Hitler. And at that moment I actually sensed that it was no excuse to be young, and that it would have been possible to find things out.

-- Traudl Junge

While we might "pity" people in the past for not knowing many things, moral judgement has to do with the options someone has. Even if the majority is using their options badly, that doesn't mean those options didn't exist, just like there being less stars wouldn't make the rest of the night sky brighter.

> The sad truth is that most evil is done by people who never make up their minds to be good or evil.

-- Hannah Arendt
This reminds me of TAOS (http://www.uruk.org/emu/Taos.html), an operating system designed for the Transputer parallel computing architecture and later extended to heterogeneous parallel architectures.
wait, how can the distributor take 40% and production 57%?

why isn't there a competitor that takes a lower percentage? say 10% for both.

are the economics of book selling so atrocious for the authors in general? how can one accept .77ct profit on $54 of sale?

it's probably just me not being accustomed to the book selling ripoff, but still feels like a monumental, epic-level ripoff.
As a taxi service, it indeed won't be much different. But once the technology is well established, I presume there would be options for leasing. Having the option to just go wherever I want, even longer distances, would be amazing.
>Here are all the numbers. When I upload the PDF on Amazon, a minimal price is automatically calculated. In the case of the DOOM, Amazon sets the minimal price at $51.35. There is a slider which authors can use in order to add their "share" on top of Amazon price. I have added $3.88 which Amazon also takes a cut on. The result is $1.59 royalty and $0.77 profit per book sold.

I didn't understand this part either. Wouldn't charging $59.99 sustainably increase the author's profit?
And more often then not they flag you through before you can even slow down. They’re just really interested in trucks. Hawaii also does a checkpoint when leaving.
Tìm hiểu về thuốc Nivalin
URL signature expired
Is there a way I can give Fabien some extra cash for this, outside of the usual flow? I don't think those percentages are fair.
Chromium - and with that I assume Chrome - has a reader mode, you just need to enable it on startup. They call it 'DOM distiller' instead of 'reading mode' but it does more or less the same thing. It can be enabled using the command line parameter '--enable-dom-distiller', just add it to $CHROMIUM_FLAGS (which I assume is called $CHROME_FLAGS when using the Google-branded product...?) and choose 'Distill Page' in the menu to see what it does.

https://wiki.archlinux.org/index.php/Chromium/Tips_and_trick...

https://chromium.googlesource.com/chromium/dom-distiller
I am baffled at the amount how much the author makes from each book. 31$ production costs seem high but since it's 427 full-colored pages it seems reasonable. However, how come Amazon takes 22$ dollars on top of that? There is no way it's that expensive to distribute the book, there must be some other services involved?

Although the pricing seems weird, the pie chart shown on the page is even more so. How it's possible that Amazon is most of the pie with 40% percentage?
Google's neural network takes a step closer to predicting disease using DNA
And now the airlines and airports want private security. Go figure.
Yes, books are not a great way to make an income for most people.

Kindle sells at either 30% to 70% royalties, usually at $2.99/book or less.
> In the case of the DOOM, Amazon sets the minimal price at $51.35.

I have trouble understanding this
Only if the book would sustainable sell volume at that price point.
I had the same question, so i looked it up. From Wikipedia:

> They are good, reliable workhorses ideal for use in situations where low printing cost is more important than quality.

https://en.wikipedia.org/wiki/Dot_matrix_printing#Flatbed_do...
Great content about linux network however not 100% accurate but fair enough for learning
Could be nice to have a list of chapters.
MK the same man behind mt. gox?
Create React App and Create React Native App have both been very productive and mature tools to get things rolling fast.
Meanwhile I'm relatively happy in my current, non-abusive world of HN!

Doesn’t what you wrote also apply to HN?
These days, we accelerate DSP tasks using GPUs :)
> I'm glad that high-end devices exist.

High-end (on specs) doesn't necessarily imply iPhone prices though...
Not really.

Java AOT compilers to native code have been available since early 2000's, as long as companies are willing to pay for them.

However there have been very little attempts to support Java on game consoles, apart from ajile's attempt [0].

Targeting game consoles is similar to bare metal programming, even when a thin OS is present and doesn't bound well with a programming model that abstracts what the hardware is capable of.

As for iOS support, there are a couple of options like CodenameOne, GluonVM and RoboVM.

And for UWP only CodenameOne.

So there isn't really an option that would make sense from business point of view.

Hence why porting the game engine into a programming language that is available out of the box in all SDKs was a much more pragmatic option.

[0] https://www.geek.com/games/new-development-kit-brings-java-t...
20 years of Open Erlang
That's not how I would read it. Instead, the article fell between the gaps between two different disciplines. The computer science guys wanted a tech fix - reasonably enough, that's kind of what computer science is about. The health policy guys' reaction is harder to understand: they didn't want to publish it because they feared the consequences of publicity, rather than because of flaws in the methods. That's almost never a legitimate reason to reject a paper.
They also work with carbon paper, so they're popular for use cases where they want a stack of guaranteed-identical copies in one go (e.g. doctors offices still seem to have them quite often. print prescription, doctor signs it, copy for the records can be pulled off)
I think the generally understanding is that psychopaths are born, sociopaths are made.
Ask HN: Activemerchant in other programming language?
Are there active merchant like projects in other programming language?