skysight-inc/HackerNews huggingface dataset:
A close friend is T1D and says going keto/LCHF over the last year changed his life. Still on external insulin but often reporting at non-diabetic levels. I can say for myself intermittent fasting has kept me in some of the best shape of my life.
Hi there Stanley.
The others are all UNIX-based, having all the same fundamental advantages, so I don't see your point.
How about clearing all the cache? (Or at least everything created the last few months.)

I've never seen anyone suggest it, I suppose It cannot or should not be done for some reason?
A thinly veiled advert for their service, not cool.
I believe speaking of monads, monoids, functors, and homomorphism when discussing an interview question for fairly fresh programmers is definitely overthinking it.

I'm not sure what you think is so simple about your solution compared to:

sub flatten {
map { ref ? flatten( @$_ ) : $_ } @_;
}

Goodness, and Perl gets a bad reputation for the amount of punctuation in the code.

Of course if you want flatten in Haskell you have it for Tree and Forest.

import Data.Tree
tree = Node "A" [Node "B" [], Node "C" [Node "D" [], Node "E" []], Node "F" []]
main = do
print $ flatten tree

If a Perl programmer wanted to pull in a CPAN module, there are many from which to choose. Of course, it was just done in a one-line subroutine...:

http://search.cpan.org/~obradovic/List-Flatten-0.01/lib/List... (which does not handle arbitrary depths)

http://search.cpan.org/~rthompson/List-Flatten-Recursive-0.1... (which seems overly complicated)

http://search.cpan.org/~rsavage/Set-Array-0.30/lib/Set/Array... (which tries to flatten hashes as well as lists and seems, well, overly complicated... and pulls in a bunch more methods and functions)

http://search.cpan.org/~satoh/List-Enumerator-0.10/ (which seems about right, including stopping the flattening at an arbitrary depth and comes with other useful array tools)

Of course it's possible to apply the concept of flattening to hashes/dictionaries, too, so there goes the concept of keeping the original sort order.

http://search.cpan.org/~bbc/Hash-Flatten-1.19/lib/Hash/Flatt...

http://search.cpan.org/~chocolate/Hash-Fold-0.1.2/lib/Hash/F...
The IndieWeb is a people-focused alternative to the “corporate web”
You should have (+/-) one "except Exception" in your code which would be the "catch all/log error" thing.

But for how to do with errors, see the sibling comments to this one, and good libraries will give you an inheritance tree of exceptions
Ah, that makes things better
Crystal-lang v0.21 released
I went to https://support.google.com/spaces/answer/7326586 and saw this: See, save, print, and delete your content.
Like others have commented, those numbers seem to be too high for writes.

On the other hand, the Fauna numbers don't seem that impressive to me. On a mid-2011 Macbook Air, I get 2600 transactions per second (read-committed) in PostgreSQL 9.6.
Setup is as follows:

CREATE TABLE IF NOT EXISTS foo(a TEXT, b TEXT, c TEXT, d TEXT);
CREATE INDEX IF NOT EXISTS idx_foo_a ON foo(a);
CREATE INDEX IF NOT EXISTS idx_foo_b ON foo(b);
CREATE INDEX IF NOT EXISTS idx_foo_c ON foo(c);
CREATE INDEX IF NOT EXISTS idx_foo_d ON foo(d);

-- prepared statement, the inserted strings are 4 chars wide
INSERT INTO foo(a, b, c, d)
VALUES
($1, $2, $3, $4),
($5, $6, $7, $8),
($9, $10, $11, $12),
($13, $14, $15, $16);

These numbers are for one thread doing the writing.

Am I missing something?
Passwords and domain lists aren't a good answer. Explained here: https://gist.github.com/raggi/0d22757fee6eff4bb93a5731215060...
I wish we had a slow, but high bandwith alternative to the web in public hands. The problem is the infrastructure.. if there was a way to create a gnu add-hoc wifi network between every home hotspot - at least within a city, the web neutrality could be restored.
Aiseesoft Video Converter Ultimate 9.0.32 Registration Code Free
Mobile App Developers in India
Ask HN: How to extract recommendations from HN thread?
I am looking for a way to extract book/article/resource/product recommendations from HN threads. Sample thread from which recommendations are ought to be extracted: https://news.ycombinator.com/item?id=12713056 (I want to extract explicit recommendations, not just links)
7 Reasons why WordPress for Your Startup Is Not Your Best and Smartest Option:

1) Self hosting stuff is always a major time sink, especially for small companies. Backups of files and DB, server OS updates, and security are all your problems. Shared hosting has incredibly old versions of software, like PHP5 or still MySQL 5.6.

2) WordPress will never be really secure, the way it's built prevents that. You will always worry if your site is susceptible to hacking and have to keep up to date with the latest security disclosures and update your site.

3) Prebuilt themes are a trainwreck when it comes to customization. Hyperspecific CSS selectors, inline CSS in style tags and attributes, shoddy PHP in templates without any real separation of template and business logic. That matters, because you don't want your site to look quite the same as everyone elses.

4) It's 13 years old and there are newer, more modern, and secure alternatives, like Ghost, static site generators, Squarespace, or Webflow.

5) CDN integration is nowadays a must, especially if you are global. Integrating a CDN into WordPress' media upload is a PITA.

6) Translating content is a major PITA in WordPress. There are newer systems that address that. Every major translation plugin in WordPress has some minor incompatibility with another plugin, e.g. Polylang didn't work well with WP Sync DB.

7) Custom field support out of the box is laughable. WordPress isn't any fun without Advanced Custom Fields.
Securing Browsers Through Isolation versus Mitigation
I'm afraid controlled rationality has lost its cause sometime ago. Action and anger are now necessary.
Hmmm.

Yes and no. The question/answer is of degrees.

I can't point to a categorical set of submissions/comments to provide you with some perfect bouquet of HN circa 2008 vs 2012 or such.

Essentially it started out more as hackers figuring out how to hack becoming entrepreneurs or making things work - to entrepreneurs or startup founder babies figuring out what to do. So HN was more geeky initially, and the techie perspective of what startups are doing.

Now it's slightly more towards the startup side looking at the tech perspective.

This is all relative. If you compared HN crowd to the WSJ and it's consumers, this site would be far and ahead a site of techies talking tech stuff.

I hope this helps, because this is making a risky argument since it's subjective.

---------

Part of this is covered by basic theory of websites - initially a site has a simple good or utility, (information, expertise) and attracts only people in the know. They come to discuss their field.

Eventually, if the knowledge allows people to get ahead, your culture shifts, as more people come to the site. Your experts to normal concentration shifts. PG has a good article on this, he identifies what he calls midbrow arguments.
Pretty much everyone at the IC-level at Microsoft is well-aware of the systemic issues plaguing many products - lower management too - but these issues don't get fixed because of whatever decisions being made at the Director level (mostly of the "evil" kind, like how improving UI responsiveness won't raise profitability but adding video ads will, or how no-one will switch to OneDrive-for-Business simply because the desktop client actually works - it'll be because the sales team drove a hard bargain with an enterprise customer and now their poor users are stuck with it).

I like to think I did my part - I made small UI/UX improvements that I snuck into my official feature work (it all passed peer-review and testing, don't worry) - things like bad margins/padding around controls, something with the wrong color scheme, etc.
To be fair, access to the archives of donaldjtrump.com could be blocked anyway if the owners at some point decide to add a robots.txt blocking the Wayback Machine.
> as long as humans are

NO humans in easter island anymore.
Yes, it is... So it was not the "Europeans" who misspelled the word, it was the British. The Portuguese were the first to get to that part of the world from Europe, so they might have brought the word to Europe themselves.
Cloud Flares judgement of the situation is obviously compromised. I'm not saying this much thought went into Google's disclosure but they were 100℅ on point in disclosing. There is no way to purge this data from the entire net; it was important for everyone to know what happened as soon as the leak was plugged.
You've been away from HN a few days? The SHA-1 collision example uses PDFs in its demo. Hence other commenter saying SHA 256
I still can't believe they tried to call this a memory leak. They're obviously trying to downplay the severity of the bug by referring to it that way, but anyone who would know what a memory leak is would also know this isn't one.
The Tao Te Ching spends a lot of words talking about this. I'm partial to the Stephen Mitchell version.

Also Ecclesiastes (basically, the Judeo-Christian reimplementation of Buddhism) is pretty vocal on the subject.

http://acc6.its.brooklyn.cuny.edu/%7Ephalsall/texts/taote-v3...
Isn't getting it from GitHub the first time vulnerable to attack? Consider when you're scaling up or replacing a failed host.
The $2/mo BuyVM reseller plan offers 20GB storage, reasonably fast response times and a full cpanel. You can host a bunch of websites each with their own site, email, logins, etc. It is nice to create a new site for a friend if they need one, but leave the management to someone else if there is server trouble.

If you like to tinker and your website doesn't require massive uptime and you have a very small amount of traffic, you might look into LowEndCat[2]

[1] www.buyvm.com
[2] www.lowendcat.com or search for low end Spirit, which are budget-focused tiny VPS servers for $3/year. I found one that is 16 cents a month. Great uptime and I don't need anything more than 64 MB. ;)
Everything is cyclical. Pain is forgotten, same mistakes are made, pain is rediscovered, relief is reinvented. I had a high school teacher who said something like, "I haven't bought new ties for 25 years. Why? Because things always go in and out of fashion. A particular tie might be out of fashion for ten years but it comes back eventually."
Yeah, sure, a public one for not privacy-critical PDFs plus something like a Heroku button to build own secure app (with auth and no storage).

See e.g. my file sharing app https://github.com/andreif/SecretFile
And once you have done all of that you will have to nationalize all but the smallest businesses because no one in their right mind will invest in anything any more.

As a result, tax payers will have to foot the bill for all further mistakes.
The universe is bleak and uncaring (but it is, probably, deterministic (I'm a pilot wave kind of guy)... getting sidetracked here).

And the universe is outside of your control. Therefore you should not let it have any impact on your outlook.

Also, wanting a positive outlook is a desire. And desires are suffering. And having a "positive outlook" is pre-judging things, filling up your mind with assumptions. When you should be trying to empty it. But, I'm more of a Taoist than Stoic (although there seems to be fair amount of overlap).
Your comment doesn't address ANY of the arguments you're replying to. Are ANY queries typically used outside of attacks, scraping, or diagnosis? Is there a reason they need to be served over UDP?

> Well, two out of the three people proposing that document work for Cloudflare. The other works for Dyn.

Two companies that have some experience with dealing with DNS attacks. Their motivation may be self-serving, but they're not the ones doing the attacking.
> Peer-to-peer file sharing and distribution is slower than YouTube because nobody has any upload.

And because IP multicast doesn't work over the internet. If it did, even if merely to some limited extent, some asymmetries would be far easier to stomach.
All that work when I just block all ad networks in my router with a site whitelist, block Javascript, and block Flash.

Even my Windows 2000 laptop is essentially bullet-proof. Don't need all that nonsense just to read my typical news sites and as an additional bonus the router whitelist puts a stop to Windows Update ignoring the utterly-useless core Windows HOSTs file and stops it from doing anything further to my Windows 7 install.
There is no better thread parser than the one between your ears.
The practical dev
Route53 might as well be free. Yes it's AWS, but it's costing me less than a dollar a month on a domain that has trended here several times.
Ulauncher – Application launcher for Linux
You don't really have to MITM, you could just check the logs of the DNS server that the network DHCPs to the WiFi clients for queries to Blind's IP addresses.

This doesn't tell you the content but if an employee uses the app. Make of this what you want but given Uber's previous actions I don't think they would just ignore this.
I think the more important question is, if even insects can be this smart with their tiny brains, what the hell are our huge brains for?
"I'm having a hard time understanding the implications of this CloudFlare breach."

The implication is that people are still not very smart trusting anything to a 3rd party.

As the saying goes, "If you want it done right, do it yourself."
Seems a perfectly reasonable thing to do. The point is that he's more invested in wood because he uses wood for the product he makes. A link to the product shows he's not just making it all up.
I think you just ignored my entire comment just to try to repeat about half of my words back at me. Care to try again?
So DOS are "clearly bad" when it comes to providing "armour" against them, but a matter of taste, something a person could not possibly have an opinion on when it's a client of theirs?

> they're not "policing" it in any sense of the word.

I didn't say they do, I say it's double faced. Which it is.
>Is there someone among you HNers who has retained a positive outlook by believing that the universe is a bleak, chaotic place with no intrinsic meaning to the things happening in it?

Yep. Though I'd suggest you take a closer look at that sentence of yours. Specifically the "bleak, chaotic" part. That's already a very negative judgement and in contradiction with the neutral "no intrinsic meaning" part.

>I have found it difficult to really, deeply, accept things as out of my control without resorting to some concept of god or "the universe as a well-meaning entity".

Well it does by necessity lead to a conclusion along the lines of "the world is a cruel place". It's a bit like a lion eating a zebra though - brutal but not inherently evil. It just is what it is.
Gabe should know – he's a published author, after all! ;o)
Fully agree to everything you said, one point:

> Didn't Git v2.0 break backwards compatibility?

No, it did not.
>turns out I've been a stoic all this time, I'm finding out.

It seems to come naturally to some, especially those that tend to adopt a somewhat cold analytical view of the world
That sounds intriguing! Is there a write-up about what you are going to do with labels?
Can someone explain why Cloudflare parse the HTML in the first place.

Is there some sort of information extraction feature service or something they offer? I don't get it.
[Shameless plug] You can read Marcus Aurelius "Meditations" at http://directingmind.com
> I'm running a Kickstarter for a wood product right now and so I've learned a thing or two about how to encourage reforestation.

I'm not sure that follows. What does selling a product that is made of mahogany have to do with reforestation?
Fake Sweden expert on Fox News – has no connection to Swedish security
This is basically the equivalent of returning a 500 or failing a task. You know that your code failed somewhere but there is no way you can recover from it (granted your code is not idempotent so retrying everything is not an option).

By catching all exceptions as close as possible of the request you make, you can at least do something about it.

As for the tree of exceptions, it works well for a while until networks become unreliable, until remote peers start presenting certificates broken in subtle ways... You end up adding ranges of exception in the except clause as new ones are popping on Sentry. Then you get tired of it so you catch "Exception".

This is the unfortunate story of every single project I do that deals with network calls on the Internet.
> The message I originally replied to said "End customers don't buy the dumb pipe directly."

But they do, and that's what they want to keep on doing. An Internet connection is by definition a dumb pipe. It's only when you start messing with it and prioritizing traffic that it becomes something else.

> And once an ISP starts trying to provide value above and beyond the pipe, all the same questions about neutrality come up again.

No, this is just a silly argument. Just because an ISP provider other services in addition to or on top of the Internet connection does not make nor any net neutrality issues. It is only when they start prioritizing stuff that there is an issue.

> What happened to "dumb pipe"? Both of these, especially the former, seem to contradict that.

Nothing. Seriously, this is how the Internet works and is supposed to work. You are supposed to interconnect networks, that's why it's called the Internet. Doh!

Just because somebody else has a shorter path to you than somebody else doesn't make it wrong or unfair.

> All the numbers I've seen suggested that raw bandwidth costs significantly more than ISPs charge for it, because consumer ISPs rarely expect 24/7 utilization of the full bandwidth, and likely also because they can provide some of the larger sources of content for free out of their own datacenter.

Well, it doesn't and it's not for the reasons you state. Wholesale bandwidth prices decrease by 30% on average year on year. Consumer prices are stagnant, or rising.

While it's true that consumers don't use their connection 24/7 (although some make a pretty good go at it), the ISPs could without much problem support that use case. Furthermore ISPs provide close to zero of the content consumers consume. All the content is coming from the content providers, either directly, via an IX or a local cache. The ISPs have nothing to do with it, they are just dumb pipes.
‘World’s Worst Skier’ Has Best Explanation: He Never Trained on Snow
Was it different in Europe in between say X and XX century? The land was largely owned by either aristocracy/the king or the church. The common folks were barely above starvation for a lot of the time.
Show HN: Python C extension for the eSpeak speech synthesizer
KLS Backup 2017 Professional Crack Keygen Full Download
Isn't this basically the same as MS Access?
And the "irony" is that some of the data may leaked only to "bad bots" and "IP has a poor reputation (i.e. it does not work for most visitors)."

From their blog: https://blog.cloudflare.com/incident-report-on-memory-leak-c...
I use typing at interface boundaries within code and sometimes between functions. Within a function I use duck typing. As others have mentioned, I use this more as an editor hint to warn me of questionable behavior and almost never run mypy. Yes, it only catches trivial errors, but a trivial error highlighted in the editor is easy to see/fix. The extra typing in the function sig is saved in not having to enter the same info in the docstring, so it feels like a wash to me.
> Net neutrality is a more lopsided issue—the arguments against net neutrality are all about legalizing extortion and promoting a tragedy of the commons, or else they're non-specific arguments against regulation of any kind.

Not really. I think that's just your bias for net neutrality showing through.

In my opinion, because of the way internet providers have been allowed legal monopolies, net neutrality is going to be required for fair internet access as the ability for the market to determine winners and compete has been taken away by politics.

But if I was the owner of the pipes themselves? I'm not so sure I'd see it the same way. Try to think about it from another perspective. If you owned something that cost a lot of money to install that connects multiple houses together and then, years later, the government stepped in and explained how you could or could not make money off of it because everyone wants to use it, I'm not so sure you'd feel very positive about it.

Granted it's an imperfect analogy but just trying to show you that even when you think an issue is lopsided, it may not be and it can be difficult to let go of as many BIASes.
"Command X was taught Y" would make more sense IMO.
espeak is a fast speech synthesizer and is the only open source synthesizer I know that's still understandable when played at high speed (300-400 words per minute).

And this is the only python library that wraps the C library `speak_lib` rather than calling the `espeak` binary. This wrapping is needed to get callbacks from espeak. The espeak C library `speak_lib` has even more features that I wanted so I added them to this wrapper.

What do I need these features for? That's being prepared for next week.
Dynamic systems development method
N that the GP is talking about is number of vehicles and number of requests.

Yes, service can obviously work with subpar algorithms but to really succeed at pricing it as cheaply as possible it requires practically an ability to successfully predict the whole day and then optimizing on the NP-hard problem of that whole day. Maybe sampling a million day variants while routing to make a single decision (which driver should pickup the next request).

Of course brute force greedy algorithms work but they can be, on a hundred vehicle scale, 30% away from the optimum cost.

I've been downvoted to oblivion so I cannot longer keep participating in this discussion (HN will shadowban me).
Google Is Shutting Down Spaces
SHA1 collision via ASCII art
TIL Dan, thanks.
To answer my own question Zoho isn't affected.

https://twitter.com/zoho/status/835109283922608130
Good unittesting can trigger the relevant exceptions. I know this can be a lot of work to write tests which trigger all your corner cases. I practiced this in a recent project but now I'm much more confident in my code.

Another strategy is to catch the "expected" exceptions first followed by a general exception handler. This can use the `traceback` module to log the call chain and error message.
Amazing how much Bitcoin has become like the Internet protocol itself, it routes around attempts to restrict it and now even governments cannot control it.