skysight-inc/HackerNews huggingface dataset:
The browser portion of the application does not need to be served from the internet. Dapps (decentralized apps), if they are well designed, do not require anything other than a copy of the HTML/JavaScript and access to a copy of the Ethereum Foundation blockchain (better yet: access to node receiving new transactions - but that's not necessary for historical reads). In fact, this application doesn't even have a website where it is hosted - that's unnecessary from a strictly technical point of view.

If you're okay with high latency (i.e. you are primarily reading from blocks, not writing new transactions, which is probably an accurate profile for the /consumption/ of censored data), then a full copy of the Ethereum Foundation blockchain could be carried on a $40 microSD card and carried (or flown, or dropped), well, anywhere.
Why is the name of this project so obnoxious
Using Haversine distance increases it to only 13ms. I'm not sure why your Python implementation is so slow? In the real world, things like haversine are implemented as C extensions, so I wrote one for Ruby as a comparison and it runs in 3.8ms for 16k points. https://gist.github.com/jamatthews/d910a2b39c87a871264dd31d1...

The Ruby GIS libaries already have C implementations for haversine but I just wanted to show how easy it is to hook out to a C function for math heavy stuff.
What the “Rule of 40” Means at the Early Stage
Business Advice Braindump
It's free money by definition. It's a bad idea because it will serve as a sedative.
I've been working on https://luckyframework.org and I can say that meta programming is extremely powerful and much easier for me to use than either Ruby or Elixir.

You can see a bit of what the macro system enables here: https://robots.thoughtbot.com/lucky-an-experimental-new-web-...

It generates a bunch of query methods and type specific querying. Without the macro system this would have been impossible.
> to actually phone them for pre-death interviews seems a bit macabre

I would take it as the opposite: if you get that call, it means you lived a life notable enough to merit an obit in the New York Times. That's actually pretty flattering!
Anecdotally, I have been on the receiving end of 'free' food and shelter from a friend or family member on several occasions (as an adult fully capable of working, but un- or under-employed). The benefits to my mental health were immediate and lasting, which in turn benefited those around me. I had free time and energy to further my education, write songs, produce videos, and try out some business ideas. I was also glad to take up more of the yuckier household chores, so those who were earning more wouldn't have to.

In the end, I found that yes, it was easier to be 'more lazy', but that allowing myself to didn't make me happier (more contented, perhaps, but not by much in the long run). I realized I would ultimately be better off bringing in more money doing something that matched well with my higher abilities.

As a man, it didn't fully occur to me until I read your comment how closely my experience matched that of housewives of the past-- many of whom, as it turned out, very much wanted to do more sophisticated and lucrative work once they had the chance.
Yeah, but the reference coolers are apparently not very good. Yesterday evening, my friend was pondering if he could remove the reference cooler and install an aftermarket CPU cooler.
That doesn’t sound right to me. Speaking as someone with mild Libertarian tendencies, UBI seems pretty contra to Libertarian ideals. Not the UBI itself, but the taxation required to fund it. Can you give references to any well-known Libertarian thinkers who are on board with UBI?
Sorry to hear it's a bother to you. The Scala implementation of GraphQL is called Sangria, so we thought we'd continue the theme. It also has the perk of providing some fun design opportunities.
Currency exchange with low fees
> We are not preserving the status quo right now, the rich are getting richer.

The status quo is that some people are rich and some are poor. To maintain it means the same people (more-or-less) stay rich and the same people stay poor.

> There is also the point that 1000 years ago the poor didn't know that they could kill kings

What? People did not know about death?
Damn PagerDuty
Your comment is hilarious.

I wanted to post a serious reply but your paragraph containing: "had conflicts with [...] Japan [...] fought a war with Russia" is technically true but overall ridiculous.

You do know that Japan invaded them and that the USSR was almost planning the same thing, right?

I can't take your reasoning seriously when it has gaps the size of the Grand Canyon...
Does "all user input prefilled" include file uploads?
Does C++ need a universal package manager?
The average American male dies at 76. You should probably have done your end of life planning several decades before your 90’s.

http://www.npr.org/sections/health-shots/2016/12/08/50466760...

Of course average means a fair number will die before 76.

https://www.cnbc.com/2017/10/03/former-intel-ceo-paul-otelli...

http://deadline.com/2017/03/bill-paxton-dies-obituary-twiste...
It also shows how deeply "it compiles and runs without bugs, it's awesome" is ingrained into software developers.

I could write a 100-page essay on all the ways the web-version of messenger fails in subtle and not so-subtle ways, and how it cannot keep the pace of development with the mobile version.

The dev team hasn't received bug reports though. Must be nice.
That’s because the chart is simply misleading: they collected information on how long the participants slept, and then put the „probability of developing diseases“ next to it.

That’s a fallacy, because most people are in the 7 to 9 hour range, thus the overall probability is lower. The other ranges are usually people with non-nominal lifestyles, which can also very likely impact disease probability.

You can’t just turn around a graph like a mathematical equation... unless it’s sensationalism.
My interpretation of this "problem" is that it's a radically efficient solution to the problem of generating content in absence of outside reinforcement.

Said another way: If we gave a human the task of: [make a painting of a bridge] using a handful of examples of bridges as inspiration, and they did a 1-1 copy of one of them, it would be the most efficient result. However there is generally a culturally implied task of [the new painting should not be a direct replication of one of the examples].

So this "problem" with GAN's is a novelty requirement which is not explicitly built in to the generation chain.
Sure, rich people will invest, and then get (hopefully more) money back and then spend it, subjecting it to same sales tax. And the tax on estates is higher than sales tax (over $5MM), so that’s hardly a dodge.

I still really don’t understand the argument, and I still sort of suspect that it’s fallacious, though I’d enjoy being proven wrong.

It seems to me that given a sales tax, a flat and identical percentage of every individual’s spending will go to the sales tax. If a person is “rich” but it doesn’t translate into spending or their estate, then what does that mean?
> Apparently devs don't understand what a type constructor is.

No, they don't. No, they don't care.
https://en.wikipedia.org/wiki/Rumble_in_the_Bronx

After failing to confront Keung, the bikers trash Elaine's supermarket, during which two of Angelo's men are captured by White Tiger's men, who turn up at the supermarket in search of Angelo. Angelo's colleagues are unaware of his diamond heist and one is executed in a tree-shredder; his remains given back to the other gangsters as a warning to return the multimillion-dollar goods.
I wrote about this exact topic last week at https://nickjanetakis.com/blog/server-side-templates-vs-rest....

The TL;DR is, the classic web development model still works amazingly well today and you can get real-time aspects by sprinkling in Javascript where needed.
Work in this area is interesting but to me seems like pharma money as the focus is on messing with things that suck money for a long time and then end in cancer. Or put another way what happens to the carbs that are blocked from getting processed. Knowing which cell types are the most resistant to this intervention may have lots of value, but a new block buster drug would be a crime. So suck it up and learn to truly get into a ketogenic state then see where in the world you are. There is little research on multiyear ketogenic cohorts. Fasting which has many comparators to ketosis has been in most cultures for years. A general theme here is insulin sensitivity or better put lack there of. I do not see how this pathway disrupting mechanism helps to return insulin sensitivity for a person eating the diets recommended by pretty much all governments globally.
Nope, it wouldn't. People get used to useless stacktraces and incomprehnsible warnings filling the screen with rubbish, and dismiss them out of hand.

Elm's and Reason's approach let even the experienced dev get to the root of the problem immediately.
That morning/evening chart at the end is kind of worthless in how vague it is. I mean, it's very low-resolution approximation of a normal distribution, without telling me anything about what it means to be a morning or evening person, or what distinguishes "moderate" from "extreme".
The Github page may not be of much interest unless you're trying to get started, so let me say a couple words about our subscription implementation that's in the 1.4 release candidate.

The idea with GraphQL subscriptions is that a client can submit a document that is run in response to an event on the server, which pushes the result of that document to the client. So if you had a UI showing new orders, you might have a subscription that looked like:

subscription {
orderPlaced {
id
customer { id tableNumber }
}
}

When an order is placed you can publish an event to this subscription field either manually, or setup pubsub relationships in the schema itself.

Here's the challenge: Suppose loading the customer of an order requires a DB lookup. If you have 100 people who all submit that subscription, and you run each of those subscriptions independently, you're going to end up with 100 individual database lookups for the same customer.

De-duping documents can help; if the documents are identical and the context you're executing them in is identical, you can just execute it once and push the values out. The problem is if you have authentication or authorization rules in the document then you can't really do that, each document needs to be executed individually within the context of whoever submitted it.

One of the main features of our subscription implementation however is that the batch dataloading mechanisms we have to avoid N+1 queries within a single document can also work with sets of documents. When an order is placed we take the full set of documents triggered by that event and run them as a batch, so any redundant DB lookups can get coalesced into a single query.

Elixir itself has been a huge help here. We can achieve this batched document storage and execution without any external dependencies like Redis and, because we integrate easily with Phoenix PubSub (other backends possible) we get cluster support for free also without any external dependencies. Add in linear scaling with the number of CPUs and it's really been a fantastic platform to build this on.
Approaching (almost) Any NLP Problem on Kaggle
Zercurity – Monitor your infrastructure for policy non-compliance, in real-time
Sure, but I presume that doesn't include installation time.
It's funny to see people talking about how noisy parentheses/braces are when a regular ReasonML program before adopting a more Javascript-y syntax looked like a combination of random punctuation.

Same goes for a lot of Haskell code.
wonder if gans could be used to help with adversarial attacks. build an adversarial attack generator and train your DNN as the discriminator
OSM Puerto Rico Emerges Stronger and Ready to Help Rebuild
Google May Block Cryptocurrency Miners in Chrome
Attacking Native Compiled Software Applications
Well at least he got off free.

>Walker was accused of violating the Terrorism Act because he possessed information “likely to be useful to a person committing or preparing an act of terrorism.”

What a dumb law. I guess they could prosecute you for reading Wikipedia on that basis.

More concise write up here: http://www.bbc.co.uk/news/uk-england-bristol-41751193

The "possessed information" by the way was The Anarchist Cookbook, available from £24 from Amazon.co.uk https://www.amazon.co.uk/Anarchist-Cookbook-William-Powell/d...
I get that vibe from Inform 7: the famous Dijkstra’s algorithm reads like English, but I'd have no idea how to write such a program.
I don't know.

If the main goal of Reason is to get a OCaml that is easy to use for JS devs, they nailed it.

I'm a JavaScript developer and I think the new version is easier to grasp.

Also, the Reason peeps are really nice and some of them are on a team of a FB product and not on the "Reason team", which gives them more insight of the day-to-day JavaScript problems, so I don't think they just do their thing and don't want any complains.

As far as I know Reason compiles to OCaml and back again, so there is probably no big barrier in using stuff written in Reason with OCaml, if you like that language more.

I even read about a few devs who started with Reason and switched to OCaml later.
I can give one concrete example of where it definitely is causal.

There was a short BBC documentary series about sleep a few years ago, and one of the episodes focused on a man who slept for ten hours a day and still felt drowsy and without energy. After going through a sleep clinic with all kinds of tests, the conclusion was that he should try to sleep only six hours.

The basic issue was that because he spent ten hours a day in bed, trying to catch up on what he thought was a lack of sleeping causing his tiredness, his body never got tired enough to enter deep sleep. Because he missed his deep sleep cycles, his sleep did not recover his energy properly. So this was a vicious cycle.

After a few weeks of forcing himself to wake up after six hours of sleep his problems were basically solved.

So the thing to remember is that duration of sleep tells you nothing about the quality of sleep.

EDIT: While we're here, I've had a lot of sleeping problems in the past, so here some other tips that I remember from this series, and from my sister who studied chronobiology (the science of internal clocks in biological systems, including sleep cycles):

- Note emphasized enough by this article: the deep sleep cycle is necessary for cleaning your brain from neurodegenerating toxins[0]. Getting that stage three deep sleep is essential for your mental health!

- Don't use alcohol to induce sleepiness: yes, it makes you fall asleep faster, but it also prevents you from the deep sleep. You end up not being refreshed afterwards.

- Train your brain to associate your bed with sleeping. If you can't sleep, leave the bed, do something that's not so stimulating that it keeps you awake like reading a book (avoid that mobile phone at all cost) until you feel sleepy enough to go back. This article singles out teenagers here, which is ridiculous: adults are just as guilty of doing this to themselves.

- Because of the previous point, make sure you don't use your laptop/phone in bed, nor have a TV in the bedroom.

- The reason warm baths can help with falling sleep: a fast drop from a high core temperature to a low temperature triggers drowsiness. So what the bath does is heath you up until you are warm. If you then leave that bath and enter a cold bed that needs to be warmed up this triggers a sleep response. Hot milk probably gives a similar trigger, but I'm sure about that one.

- Fasting can help with jet lag. Specifically: don't eat for at least sixteen hours (drinking water is fine), then eat your first meal at breakfast (tangent: "break fast"). This resets the body clock.

[0] https://www.nih.gov/news-events/news-releases/brain-may-flus...
Securing a Web Hidden Service
Typically in a neural network, you train a single network against a single loss function that is known in advance. For example, an autoencoder is (usually) a neural network that has a chokepoint somewhere, and is trained to reconstruct the input image. Since there is a chokepoint (a layer that is significantly smaller than the input), it learns to compress the input and reconstruct it. Sort of like a lossy image compression. To train it, and tell how well it does, we can just measure the output against the input (difference between then reconstructed image and original input image). This tells us how well the network does, and gives us a well known loss function we can use in advance.

But what if we don't have a loss function? Or we don't know it? (for example, how do we even measure "what makes a face a celebrity-like face?") In that case we can train it against another network that is itself trained to differentiate between a "real" input and a "fake" input. The new network takes an image as input, and outputs a probability that the input is real or fake. We don't know the loss function, but by alternating which batch of images this network gets (fake or real), we can tell how well it does (it should estimate the real oens are real, and the fake ones fake). By training these two networks in tandem, we can use the information from the new network (the discriminator) to tell the old network (the generator) how to generate new, better images. This way we don't really need to know the loss function in advance, between the discriminator serves as our loss function.

That is the general idea. In practice, it's fairly non-trivial to get these two networks to work together nicely... often one will get much better than the other, which prevents the other from learning.

In this particular paper, they are using a technique to expand the size of the images to much larger than you would normally be able to.
Verisign is just a company located in the USA. Does it then follow that any company located in the USA is 'controlled by the USG'? That seems like a bit of a stretch, to say the least. There is nothing else there. Your reference to history is irrelevant today.

Also, I really don't understand what this has to do with DNSSEC? Without DNSSEC anyone can forge responses. With DNSSEC you limit that to the zone administrator.
have you checked out nim? if you're a pythonista you might find it more similar to what you're used to
Thank you for your input!

You are right in that I have no deep desire to move ( beyond a desire for more development projects and higher compensation ). I enjoy my job, and the industry it is in, I enjoy my colleagues and the company. I couldn't ask for a better group of people to be surrounded by.

>> I'd definitely bring up comp change, but first determine if a transition is possible

That is a very good point which I hadn't given much thought to!

Although I'm not sure there is much chance of doing more development orientated work with they way things are structured. The team I am a part of, it's sole purpose is to support the marketing teams and their objectives.

The development projects have been initiated and lead by me, a team of one. To make small tools to speed up internal processes, and to replace and migrate 10+ year old partner facing service ( it was shambles, functionally and legally ).

Management have acknowledged the advantage and benefit of what I have done, and they have allowed some flexibility when doing it, but as these types of things are outside of the core purpose of my role they likely wont support them too much. Certainly not higher up the chain I would think.

I will arrange a meeting with my direct manager in the coming weeks, nothing bad can come of it.
I have little faith in negotiating larger compensation, as it stands I believe I earn the same as my manager ( HR let it slip 2 years ago ). Budgets, raises and bonus' are all tightly controlled...

Thank you again!
It also neglects to mention the entirely different lifestyle in Spain, different attitude towards work, not to mention the siesta, which one would think worth noting in a sleep related article :)
Jennings CJ4000 4000g x 0.5g Digital Scale https://www.amazon.com/dp/B004C3CAB8/ref=cm_sw_r_cp_api_gAi9...
I still remember something like 25 years ago the revolution of clockless circuits published in SciAm..
Leaving Spain (and thus, the EU) is going to have severe consequences financially and in other ways (families that have someone working in another EU country who would suddenly not be a Schengen member etc.).

Yes, the UK followed this democratic way and voted themselves out of the EU and you could argue that Catalonia should be able to do the same but as with Brexit, it would mean that close to half of the population is going to see their life affected in a way that they never wanted.

The argument that the people should be allowed to decide i these matters is often made and it's easy to view the opposite stance as condescending but there are many philosophical and pragmatic arguments against direct democracy and I think these are situations where they apply.
Hey! Good questions.

A) Absinthe 1.4 provides first class support for GraphQL Subscriptions, which give you the ability to push data to clients based on subscription documents they submit, triggered by events within the system. GraphQL Mutations are the way you push changes at the server, and Absinthe provides tools when building your schema to indicate a mapping of mutation fields to interested subscription fields.

B) This significantly depends on your underlying datastore. GraphQL (and consequently Absinthe) is entirely agnostic about how, where, or in what you're storing and managing your data. This may seem like a non answer but the point really is that you're entirely free to pick whatever approach works best for your data and your means of storage.

C) A significant portion of this answer is the same as B, although there are some conventions within the GraphQL community that help here. The Relay connection pattern uses opaque cursor values alongside each item returned in a page, and you can encode in these cursors whatever information you need to provide a coherent pagination experience.

D) I'm a big fan. Phoenix has actually done some really amazing stuff with an ORSWOT CRDT in order to track channel presence within a cluster. We're in the middle of looking at how to integrate that with subscriptions. More generally, I think when you can work your problem into the feature set of a CRDT they can be immensely powerful.

All in all though I think you may be ascribing to GraphQL or Absinthe a stronger role in the management of the data than it has. If you want to use CRDTs then you just articulate one in your schema and push it to clients and let them push diffs at you. Same could be said for much fo B, C, D. Absinthe doesn't manage the _state_ of your application your clients. Rather, it provides a way for your to communicate that state in whatever way you choose.
The problem may be you. He closed the first customer.
Crystal really does feel like Ruby without the annoying parts, plus the macro system feels like a _better_ meta programming facility.

On the other hand I've read reports that sufficiently large codebases begin to hit machine memory limits for the compiler because they have to scan and construct every possible union type in the codebase. Not sure what there is to do about that other than bisecting the codebase into shared libraries over time.
>Also, given their problem domain, I'm doubtful of the fit of OOP (vs functional). But regarding Crystal, it is nice to see a potential performant Ruby replacement.

Part of their problem domain was to easily port their code from Ruby, which would presumably be OOP.
Show HN: HackerNews for EVs and Solar