skysight-inc/HackerNews huggingface dataset:
what if your output is more than 2000 bytes?

The announcement says that "curl will inspect the beginning of each download", and I think that comparison just turns off the check after at least 2000 bytes have already been output (see a few lines below the change you quoted, where outs->bytes is incremented by the amount of bytes that were output).

what if your output is binary but doesn’t contain a byte 0?

I guess curl will incorrectly recognize the binary as text.

what if your output is a normal UTF-8 string but contains a byte 0?

I guess curl will incorrectly recognize the text as binary, and you can use `-o -` to override that and output to the terminal anyway.
In many (most) parts of the world the legal system for enforcing contracts isn't all that reliable and trustworthy.

An Etheruem-based contract is a big improvement over a traditional contract enforceable only by a slow, corrupt court.

Pretty much all technology increases the surface area for fraud. However, the benefits usually outweigh that increase. Blockchains are no different. But the benefit is likely to accrue more to people in less developed countries.
Like with everything the PostgreSQL project creates, the documentation feels comprehensive, authoritative and solid. It's always my first port of call if I have a question.

The one thing I'd like to see is more examples. Sometimes a quick demo of a function is all that's required for basic use.
The journal choice is still not fully voluntary. Each field has certain flagship journals, and you are going to publish in them because they have large impact on the prospects for future career. The journals are flagships for historical reasons --- it takes time for a journal accumulate credibility and attract high-quality papers. If the flagships in your field happen to be owned by Elsevier, the you are going to be squeezed. Granted, the existence of arXiv and others alleviates the open access issue, but not the issue of crazy profit margins of the publishers.
When you are set in the between waking-and-dreaming state the reality becomes malleable and artificial, meditation allows this midway state filled with mental scenarios coming to surface at lower focus level. The condition is best described here(the focusing and persistence of hypnagogic process):
"In his book, Zen and the Brain, James H. Austin cites speculation that regular meditation develops a specialized skill of "freezing the hypnagogic process at later and later stages" of the onset of sleep, initially in the alpha wave stage and later in theta.[44]" https://en.wikipedia.org/wiki/Hypnagogia
It means that a UTF-8 string can contain the "NUL" character, which is a single null byte. While valid UTF-8, it is still an unprintable character, making it "binary" for most intents and purposes.
This is already going on in the crypto world, see https://www.iacr.org/misc/us-immigration-ban.html
The Email Charter: A campaign to solve email overload
This community is so fast to say Mars is possible. Mention any problem and it will start with the belief it's solvable and figure out how: "We can do it!"

Mention the idea of lowering the population on Earth to allow more resources per person or consuming less to pollute less and it's "It's against human nature" and "Absolutely impossible" and "Fusion or fission will make that unnecessary, we should grow forever."

I wish people here looked at reducing growth and consumption here -- changing mental models from growth to "enough" -- as something as attainable as terraforming another planet, or even with enthusiasm.
This, absolutely. It's pretty dreadful.
This seems like a first principle. You find this in every organization which has served it's purpose. Lawmakers, developers, activist groups
If you look at the way economies are currently run, they are, in a lot of ways, at odds with what economists think are the best way to run them (I think this can be easily explained by the fact that often what economists think are good ideas are not politically very popular). A fresh start might enable some of those things to be tested out.

In terms of social organisation, the thing is that we don't really know for sure. You have to do experiments and see how things work. You can't say, before the fact, that it definitely will or won't work. Being able to experiment is really important for progress, but it's really hard to do within established systems.
Jasmine
https://jasmine.github.io/2.0/introduction.html
Documentation could be structured in a much better way making it the things you need easier to find.
I always end up searching the whole page
The Hottest Guide for Cultivating Black Pepper
Let's say that you suddely start caring once your library drops subscriptions to journals that you need.
But then you need php on the server, don't you?

This is literally a self-contained file...
I liked your hn nick :)
What do you mean by "users feel safe"?

IMO, reddit is a thing because it is topic oriented instead of user/ego oriented. It really is the modern day Usenet.

The two long term problems they have though is moneytising and bad/illegal content (moderation).
> 1. It is not sensible to check more than a small chunk of data

You could just check the first X bytes. Also, I'm guessing curl doesn't print out to the terminal if the data is more than 2000 bytes anyway?

> 2. Then the check yields a false negative, which is not a problem.

the binary will be printed on the screen, that's a problem

> 3. Then your UTF-8 string is unprintable, and the check will yield a true positive.

How is it that the zero byte is part of UTF-8 then?
Show HN: Kinesis Streams Fan-Out via Kinesis Analytics (made with Serverless)
Amazon whole food acquisition shows how much they are serious about AR tech
"not good enough quality"

I agree ... scanning through the images, I can't find an instance of a trace passing between pins on through-hole parts with 0.1" centers. This is critical on a milled board because you can only make a two-sided PCB.
> I guess curl will incorrectly recognize the binary as text.

This doesn't sound like a really good test.
I found Microsoft's Office JS API docs to be terrible and borderline unusable.
That's the right starting point. I was in-house counsel at a large tech company and worked in biglaw before that. Most companies let law firms specify how work is done. But most lawyers will accommodate if a client says "this is the tool that we require all of our lawyers to use for [project management] [billing/invoice management] [contract generation/status tracking] [etc]".
A NUL byte can't print in a terminal or show in an editor, so treating it as binary is a sensible thing to do when you are asking cURL to print it to your terminal. It is no longer text if a NUL byte is present (unless you use UTF-16/32, in which case, WHY?!).

I assume that you also inserted a NUL byte into your somefile.txt to make grep treat it as binary.

cURL behaves predictably now as well as before. It will warn you if you try to print unprintable data to your terminal, but can be told to ignore it, and won't affect output redirects.
Tutorial I wrote about getting started with translating a Django App
You can use the desktop/classic version from a mobile device.
> I just looked at the commit and I was surprised at how nice the code is!

Most programs detect binary files like this. Here's git's version of the same function: https://github.com/git/git/blob/master/xdiff-interface.c#L19...
> if the bytes in the file are randomly distributed

This is rarely true I believe, but binary files should often use the 0 byte because it sounds "practical" to use (going with the instinct here). So I'm guessing this test is "good enough"
I thought they changed it to prevent buggy scripts from executing rm with empty variables? That's not necessarily the fault of the user.
The real world is not filled with adversarial examples. Further, NN often does not think it's doing great when providing off the wall examples. Further this is a car, with GPS, where simply stopping is a completely viable option 99% of the time.

The truth is people really really stuck a driving, but it's easy enough that the vast majority of mistakes don't result in any problems.
I think they've been trying to change that recently; they've been focusing more on content creators - people like Shitty_Watercolour who are known Reddit-wide for the original content they post. As you noted, they launched a new type of profile which basically turns it into a subreddit, which they're pushing as a way for content creators to post their works easily.[0] The feature is still being developed but is now available to more people.

To me that feature just looks like a way to add RSS/ RSS-like functionality to links a user wants to share or posts a user has participated in... it can be used for self-promotional purposes, but it doesn't have to be.
You can trick isatty, but only if you're very, very set on doing so. It requires allocating a psuedo-TTY, and attaching it.

cURL already use isatty checks elsewhere, such as to determine if progress info should be printed (will only show if you're not outputting to tty).
If you are into things like that, check out Jai, an experimental language being developed by Jonathan Blow (of Braid and The Witness fame).

https://www.youtube.com/playlist?list=PLmV5I2fxaiCKfxMBrNsU1...
> Musk is doing SOMETHING, at least.

Me sitting in a corner and drinking is doing something. Me burning down my house is doing something. Neither actions are productive.

Is Elon doing something productive? With cheap rockets, arguably yes. With colonizing Mars... it's less clear.

> The technology that SpaceX develops can and will be used for much more than just Elon's particular vision of Mars colony.

Like what?

> Oh, why Mars, why not Moon, or Ceres, or O'Neill cylinders, or lets colonize the Sahara desert first, or lets solve world hunger and poverty (which is a 100% political problem, not technological, BTW)

It's hard to solve political problems, because everyone knows how bad people can be. It's easy to dream about solving engineering problems. People have been doing it for
millenia. We just build a bigger / better / faster / cooler thing than what we have right now! See? It's easy!

I find it instructive that most of the "pro" arguments are based on dreams and hope. Most of the "con" arguments are "Have you seen how freaking difficult it is?"

Dreams won't feed you in the cold, dark, airless, nights on Mars.
-o- seems like a terrible idea in a curl alias. Why do you want cURL to print binary data to your terminal? The check disables if you're redirecting output (> or |).
Mention the idea of lowering the population on Earth to allow more resources per person or consuming less to pollute less and it's "It's against human nature" and "Absolutely impossible" and "Fusion or fission will make that unnecessary, we should grow forever."

Eugenics is edgy and the idea deserves an edgy death.

I hate to give a glib dismissal, but what else is there to say on that topic? No one can do it short of becoming the next AI overlord empire. It's like wishing for anti-gravity. It'd be quite convenient, but how?

We've also seen how well China's "one child per family" mandate worked out, so we even have evidence that it doesn't seem to work.

I almost don't want to entertain the question due to the trainwreck of a thread that might ensue, but I've been pleasantly surprised by HN before. I think prompting can make the difference. So:

If we all promise to be very substantive, how might it be possible to implement "population control"?

This is probably the ultimate test of self-control, too. Can intellectualism prevail over the urge to strike down an idea? Let's find out.

You'll need to be very substantive in your response if you're to have any hope of thoughtful conversation, so please don't put in a halfhearted effort into the opportunity of your choosing. Everyone's listening -- what do you propose?
Yeah.

And Apple just rejected my app because it has a 'register free trial' link. Which is actually free, actually a trial, no CC info asked, no in-app purchase.

Their response was "if you offering something - you should be using in-app purchases".

Oh. OK.
>Actually no - politics in democratic systems should transcend this immature behaviour.

We actually agree on that. My point was that it is my observation politics in general suffers from the above problem, not just Trump supporters.
>Snowden and Assange often seem to get lumped together but there's a world of difference in personal character, and also in mission

Is there actually?
You can render React server-side on first page load, though, and there will be no lag waiting for the page to render and initialize. I think that most people don't do it because there is extra work involved, but IMO if you're a huge site like Reddit, there's no excuse for not doing so, it seems like laziness.
I lived off handouts for a year while I writing up my research results. Finished it and got a job through a friend. When I got my first paycheck, I went to an ATM and took out a $100. I was so disorientated about actually having some money in the bank that, when I removed my bank card, I left my money behind. I walked about 15 meters before I realised what I had done. I naively returned to the bank and went inside to explain what had happened. (I mean did I really expect the teller to believe me or be able to do anything about it?) There were two young guys at the bank's information desk handing in the money. I said "That's mine", took it and walked away. I wanted to give them a reward, but thought their good deed would have to be its own reward.
> When Nature releases an article, they put a lot of work into formatting it for publication so it looks nice. That final product does and should belong to them.

Don't you think that this is of very little added value? Nature could publish the submitted articles as is, and nobody would care. The only value the journal has is the supposed prestige of getting an article published there, which has ridiculous early career effects.
Sure, but that's exactly what a pseudo-TTY is supposed to do, pretend it is a TTY when actually it is a pipe so isatty will return true.

So that's not so much tricking isatty as much as using the system in the way it is intended. If you do that without the required background information then you have only yourself to blame.
That's actually fair, I haven't invested in any ICOs because I agree most of them are bad investments long term.
NL is shameful in this respect. What's even worse is that the general public totally bought the line that this would reduce crime. Instead, people are now somewhat routinely booked for not being able to identify themselves even though that's the only thing they are doing wrong at that moment.
Personally, I use a combination of Tensorflow and Appex frameworks. I find Theano simply lacking in features.
I don't know the reasons, but it is getting really annoying. I book a flight in Delta, from a browser on my laptop and it kept saying "Download our apps, it will be such a better experience!"

I do not want to have to download a different apps for each vendor, that's why we invented browsers. If the your browser experience sucks, fix it, don't push your mobile apps on people!
OK, I see what you're saying. I think you have the same issue with "real" programming languages too. If you compare some very concise Clojure or Scala code with the equivalent in Java, it can be quite hard to understand if you're not very familiar with the language. But I wouldn't necessarily say it's "incredibly bad practice". A Scala programmer can write concise and elegant code that to another Scala programmer is actually faster to understand because of that conciseness. Whereas the same code written with for loops and class method calls and all the boilerplate in Java would take more studying to filter out the low level constructions.

It's about the level of abstraction. And yeah if you don't understand the notation or syntax at the level of abstraction you're studying, it will be very hard.

(FWIW I find Scala code quite hard to understand sometimes, but I also find the more I know about the language, the more comprehensible it gets).
It's sexy! It's cool! Space ships! SOLAR FREAKING ROADWAYS!

Oh, wrong thread...

Dreams are nice. Dreams don't feed people.

But they do give people reason for hope. Which is why it's easier to concentrate on "OMFG we colonize Mars!", than the engineering realities of:

* climate change could very well destroy modern human civilization. Fixing that will involve convincing rich, powerful, people that they're wrong. And, spending lots of money which they'd rather spend on pretty toys or lining their pockets

* feeding the planet is easy (from an engineering point of view). Getting the food to people involves dealing with psycho warlords, or corrupt politicians

Etc. etc...

It's easier to dream about "OMFG MARS!" than to go through the decade-long daily grind of fixing problems at home.
I can see that we should want to into space, also think it should be on the list of thing to work on now (we are plenty rich enough to tackle other problems in parallel), and trust this paper in its technical aspects (it requires lots of work, but not to the extent that _I_ would say it is unachievable).

However, I think this paper is glaring a bit over the psychological aspects. The crew compartment of the spaceship is 17 meters diameter (max) and, judging from figure 13, about 15 meters high. That's around 3000 cubic meters. A hundred passengers would have about 30 cubic meters each, or the equivalent of a 3 by 4 meter room; less personal space if, as promised, "the crew compartment or the occupant compartment is set up so that you can do zero-gravity games—you can float around. There will be movies, lecture halls, cabins, and a restaurant."

There also would be a fair bit of noise and vibrations, I guess (I didn't read about windows in the spaceship, but I hope there will be, as those likely will be way better, psychologically, than cameras showing the same view)

On top of that, your companions would be self-selected among those wanting to leave earth behind and, I expect, fairly anxious about the future.

So, I seriously doubt "It will be really fun to go. You are going to have a great time!"
I have to agree. curling binary to shell is awkward, but nothing that can't be fixed with a `reset`.

Changing behavior of something that is as popular as curl to protect edge cases is strange, to say the least.
I don't understand how governments have the authority to make private companies (journal publishers) give-away their product for free. --- It's rightly owned by the publishers.

Are you American? I ask because this comment reflects a particularly American notion of property as an immutable, "God-given" right. In this thinking, governments exist to protect private property, not define it.

As someone else pointed out, the concept of intellectual property only exists in law that is inherently mutable. And whether the government can take away someone's property by redefining it as not property -- that's a question over which Americans once fought a bloody civil war.
r/Machine Learning
For Haskell, Atom is near unusable. Input lag reaches double digit seconds, and crashes are frequent. Sublime is a tad better, but background processes for both are not managed well. Base editor vs editor, Sublime is the clear winner for general editing (not dependent on background processes/hooks) in terms of performance mainly due to io cycle time - mostly electrons' fault.

Vim and emacs are the solution most of my colleagues use, my experience with bindings in those editors is poor, but I'm switching slowly.
This would be a great idea! Some of the local subreddits already have some commerce going on.
Aren't general adversarial networks designed to solve this?
> Chinese immigration does not treat you as a potential criminal aiming to overstay your visa by default.

There are probably reasons for that, apparently an estimated 3% of the US population is illegal aliens. I wonder what the number is for China.

https://en.wikipedia.org/wiki/Illegal_immigration_to_the_Uni...
The article says "egg-shaped cocoon" half a dozen times. Does it really mean "elliptical"? It would seem odd for one end of the gas cloud that forms binary systems to be larger on one end. If so, they don't explain why or how.
Looking for a NUL byte is the standard test that is also widely used by other tools such as grep or diff.
You should not forget that governments are above money and law. They could essentially change IP property laws. It is about academic freedom which EU citizens deserve to have. You raised some good points about the publishing of new articles, however currently the peer review is already done by public organizations. And I believe that presentation is not that difficult. In the end I think it will boil down to publishers retrieving subsidies.
On reading the title earlier this morning I thought "great, a few features I use probably removed but a few cool features I'll grow fond of will get added", didn't expect to feel so negative after reading the article.

From the list of JS libraries they're using alone, I'm guessing it's going to get even fatter and laggier than it already was :(

Can anyone give us an overview of lagginess vs the current generation network tab? I really don't care what's behind the UI (and really, React for this? Grmbl) or structured search, I just want a listview of requests that appears in under a second
To this day I have no idea where the EVP factories are defined (the symbols aren't in the tree)... I suspect that they are probably automatically generated, but I haven't found a separate script that does it, so it might be some CPP stuff in some well-hidden file.
TensorFlow is better for deployment. Pytorch is better for research. Theano/Keras is simpler to use and a little faster than TensorFlow
Server and cloud storage as a local disk in the Finder
Especially since there will always be another group of investors that are currently on Step 1.

If Reddit's experience starts sucking once they try to monetize, there will be no shortage of people who are going to offer a superior (i.e. non-monetized) experience with the intent of somehow monetizing The Right Way in the future. Wash, rinse, repeat.
https://cr.yp.to/bib/20050504-copyediting.txt
One time at a trade-show/conference I set up a few APs that appeared to offer free wi-fi. It was a walled garden with a custom DNS set up so that any attempt to browse the Internet resulted in a beautiful web page extolling our start-up, products and proving directions to our booth.

But I completely agree with you - if you're getting a free connection, look for the attached strings.
> all attempts to really monetize Reddit in the past have failed because of massive backlash from the users I wonder what the plan is.

Exactly this. Reddit has been around long enough that I don't foresee any experimentation that could yield this type of commercial turnaround.
The fact that it's tax payer funded is extremely relevant. It's not 100% their research. I pay for research whetherI want it or not - it should at least come with the string attached that I don't have to pay to read the results.
> Assange comes off as a real machiavellian style asshole with vanity and manipulation seeming to him at least as important as his cause.

Did you get all that from the short clip of Assange talking Russia and Clinton...?

If I understand correctly the damning part (of Risk) is when he makes weird allegations against the women he is accused of rapeing...
Amazon's next patent - "Effective faraday cages for large retail spaces"

It's illegal to jam or otherwise interfere with other's radio transmissions but it's not illegal to block them from your premises.
> I think many journals are now charging more than £1k for accepting papers for open access

How about papers in the public domain?
I was under the impression that they would force open access for free.