skysight-inc/HackerNews huggingface dataset:
I imagine your friends didn't tweet or message a Telegram group about having had an accident back in the day where that was common (whenever that was, I've never seen it). When the telegraph is the fastest method of communication and landline phones are expensive, you might not learn about a friend being in the hospital until word of mouth reaches you.

Not saying this is the one true answer, but I don't find it hard to imagine why.
Not a swimming pool, but a reservoir, and there are already many used for pumped storage. The problem is that you can only do that where the local conditions allow it: you need space for the higher and lower reservoirs, space for laying down the pipes, and enough cheap water to refill the reservoirs (because of evaporation).

The possible big advantage of this solution is that it could be built wherever the sea is deep enough and partially use the existing infrastructure of offshore wind farms.
I think for any IP issues, the standard answer is to consult a qualified lawyer.
Sony Xperia XZ Premium Ganha Prêmio de Melhor Novo Smartphone de 2016
Nintendo+Switch:+Nintendo+Never+sold+a+console+faster
I'm backing this. It seems too good to miss. This is what I've wanted for years: an up-to-date PDA with a keyboard just like the old days. In the process I've had:

- Motorola DEXT

- HTC Desire Z

- Blackberry Passport

(I've backed other crowd-funded projects that have flopped. Of course there's risk, but that's the whole point of crowdfunding. If this doesn't work out, I'm glad that they tried.)
Show HN: Hurl – A Database Free Pastebin
Doyumsuz Testtürlü Merter Escort Otele Gelen Arzu
Why the best career opportunities (almost always) look like $0/hr work
Nowadays, people talk about _possible_ discrimination like it's _real_ discrimination and want it be punished. This should not be right. Possible wrongdoing is not real wrongdoing, and you cannot have people punished for it, and should not pass laws to prevent it.

I'm not American so I don't know a lot. With what I've heard, political correctness is more about possible discrimination.

There is an old Chinese story. A Chinese emperor once demanded all brewing tools to be confiscated because he didn't want people to drink when there was an ongoing war. One day when he was walking with one of his advisers, the adviser asked him to arrest a man as a rapist. "How do you know, it's a total stranger," the emperor asked. "He got the tools to rape," answered the adviser. The emperor laughed and revoked the absurd rule.
Same question. Do you refer to using SSH and socks proxy. If so, is that a viable solution, in your experience, with less techy employees?
Typically the software has to be developed according to some ISO standard like https://en.wikipedia.org/wiki/ISO_26262 and the supplier has to have some proof like from the UL or the German TÜV that they followed the procedures.
PhoneGap Application Development Company India – Mobiloitte
The stats you can collect with Javascript turned off.
Ask HN: How do you ensure a good battery lifespan on modern laptop/tablets?
I can't seem to find a consensus on this. Maybe some battery tech experts lurking on HN can chime in. :)

Specifically, if you use a laptop primarily at home, in place of a desktop, do you leave it plugged 24/7, or is it a better idea to let it run on its battery for a while every day, even if you're not going anywhere?

Does leaving a laptop or tablet permanently plugged-in help its battery's lifespan or harm it?

For reference, I'm asking for the newer MacBooks and iPad Pros.
Incorrect.

I originally wrote:

To modify the page, we need to read and parse the HTML to find
elements that need changing. Since the very early days of Cloudflare,
we’ve used a parser written using Ragel. A single .rl file contains
an HTML parser used for all the on-the-fly HTML modifications that
Cloudflare performs.

About a year ago we decided that the Ragel parser had become too
complex to maintain and we started to write a new parser, named cf-html,
to replace it. This streaming parser works correctly with HTML5 and
is much, much faster and easier to maintain.

We first used this new parser for the Automatic HTTP Rewrites feature
and have been slowly migrating functionality that uses the old Ragel
parser to cf-html.

Both cf-html and the old Ragel parser are implemented as NGINX modules
compiled into our NGINX builds. These NGINX filter modules parse buffers
(blocks of memory) containing HTML responses, make modifications as
necessary, and pass the buffers onto the next filter.

It turned out that the underlying bug that caused the memory leak had
been present in our Ragel-based parser for many years but no memory was
leaked because of the way the internal NGINX buffers were used.
Introducing cf-html subtly changed the buffering which enabled the
leakage even though there were no problems in cf-html itself.

The Ragel author contact me on Twitter and I changed the text to (stars around changes):

To modify the page, we need to read and parse the HTML to find
elements that need changing. Since the very early days of Cloudflare,
we’ve used a parser written using Ragel. A single .rl file contains
an HTML parser used for all the on-the-fly HTML modifications that
Cloudflare performs.

About a year ago we decided that the *Ragel-based* parser had become too
complex to maintain and we started to write a new parser, named cf-html,
to replace it. This streaming parser works correctly with HTML5 and
is much, much faster and easier to maintain.

We first used this new parser for the Automatic HTTP Rewrites feature
and have been slowly migrating functionality that uses the old Ragel
parser to cf-html.

Both cf-html and the old Ragel parser are implemented as NGINX modules
compiled into our NGINX builds. These NGINX filter modules parse buffers
(blocks of memory) containing HTML responses, make modifications as
necessary, and pass the buffers onto the next filter.

*For the avoidance of doubt: the bug is not in Ragel itself. It is in
Cloudflare's use of Ragel. This is our bug and not the fault of Ragel.*

It turned out that the underlying bug that caused the memory leak had
been present in our Ragel-based parser for many years but no memory was
leaked because of the way the internal NGINX buffers were used.
Introducing cf-html subtly changed the buffering which enabled the
leakage even though there were no problems in cf-html itself.

https://twitter.com/jgrahamc/status/835056414062161920
Encephalization quotient
Well, my ego has been sufficiently deflated enough for one night....
"Of course, the whole point of a Doomsday Machine is lost, if you keep it a secret! Why didn't you tell the world, EH?"
'All hail satan' is Whom delivers the {kat>¿ ◇◇

Its called being avself made man, iif u cnw why means.

It' s just math.

$€T Alf.
How to effectively manage teams remotely
As p1mrx remarked, inside a fixed-diameter pipe the water doesn't gain speed, but pressure.
And in C(++) you never have to check preconditions that maybe should lead to an early return? I don't understand your point.
I studied statistics - my point was that statistics is taught in a linear manner, starting with distributions and hypothesis testing (p-values) and then move onto more advanced treatments like Bayesian stats.
Running static analyzers (PVS-Studio, for example) and splitting up functions to simple things should at least make it easier to detect errors.
I've been thinking a bit about this before and I think that not just one but a whole lot of additional streams would be useful. By default all commands would still use stdout and stderr only but you would be able to tell them to use other streams as well for their various data.

Furthermore, each stream should be possible to pipe to a different process if you wish independently of the other streams.

To a small degree this might be possible already with named pipes.
Is there a corresponding head of Democrat political advertising? Will they have to share an office resulting in sitcom hilarity?

> We are committed to equal employment opportunity regardless of race, color, ancestry, religion, sex, national origin, sexual orientation, age, citizenship, marital status, disability, gender identity or Veteran status.

Good for you. The Republican party really isn't.
Yes, and the whole concept is based on filling the sphere with water...
This also gives the time of the entire pipeline (since the commands all begin together and only finish when the last command has completed):

echo | /usr/bin/time sleep 1
For what is worth, C++ type system (which is more powerful than most, actually) make it simple to encode units (including composite units, exponents and ratios) and computing the exact units of complex expressions. See Boost.Units or std::chrono design. And with zero cost abstraction and little syntactic overhead of course.
These pipelines have some inner pressure. The idea is here however that a pressure differential is used to drive a turbine. The greater the differential the more energy. The engineering challenges are not really comparable.

The engineering challenge is more comparable to submarine design. Nuclear submarines go down 500m and even the navy deep submergence rescue vehicle http://www.navy.mil/navydata/fact_display.asp?cid=4100&tid=5... is going 1.5km deep only with its tube design. Compare this with really, really deep dive designs like https://en.wikipedia.org/wiki/File:Trieste_nh96807.svg with a sphere observation gondola.
You could always "enhance" the business case by selling "whitelisting" to some of these data collection services. Just ask the guy from adblock plus.
Why not both? :)

https://xkcd.com/327/
Ask HN: What are the top 10 exercises someone learning programming must attempt?
I'm learning Python from Udemy. While it is a project based course, the projects are large and comprehensive that am dithering from attempting them. While I learn the basics, what are the top 10 exercises (fizzbuzz or otherwise) that you'd recommend a beginner do?
Official test management tools vs. keeping everything in Excel?
Speaking in absolutes ("If China wanted them to not have nukes, they wouldn't have") is usually a mistake in geopolitics.

China currently won't accept a unified Korea under South Korean rule (which they view as a US proxy). China also doesn't want a destabilized North Korea on its border. But it is likely that many outside China and the Koreas view China's influence as a lot more than it is.

China had Kim Jong Un half-brother under their protection as a way of providing a credible threat of threatening regime change. That isn't an option anymore.

I'd note this quote from a well-sourced FT article from last year:

Beijing has often talked up its influence over its recalcitrant neighbour in its discussions with Washington, but when Pyongyang claimed to have tested a hydrogen bomb this year, Beijing had no idea it was coming, according to several people with knowledge of the matter.

and this:

It may seem ludicrous to outsiders, but several close observers of North Korea told the FT that, given the choice, Mr Kim would prefer an alliance with America, the far-off superpower, than China, the ancient oppressor and emerging superpower.

https://www.ft.com/content/551bb080-1c3c-11e6-a7bc-ee846770e...
[Too late to edit the parent]

The metric to monitor for Snap is daily engagement. Snap has all but confirmed it will not play the MAU game [0]. This doesn't mean Snap won’t try to expand the user base, but merely that maximizing MAUs isn’t the same priority as at Facebook.

This strategy is risky because it means Snap must generate growth from somewhere other than user acquisition, which is the typical playbook for consumer startups.

On the plus side, this frees Snap to pursue an Apple-like strategy of pushing the boundaries of coolness and innovation as opposed to diluting the service until it's vanilla enough to reach 1B+ users. The more mainstream your aims, the fewer risks you can afford with the core product.

Strategically, it may let Snap sidestep the trap that ensnared Twitter. Twitter’s greatest sin was simply not being Facebook. Wall Street and the media need a foil for every market leader, and Twitter has been sadly shoved into this role.

Playing the MAU game is playing Facebook’s game, and Zuckbergerg has so far dominated anyone who competes.

Focusing on daily engagement offers a chance to battle the lion in water instead of on land, to position Snap as different from Facebook and pioneering a different market. Unseating Facebook as the #1 social network is extremely daunting for Snap, if not downright impossible. As Twitter today and AMD from the 1990s can attest, life as the #2 player can be challenging. Wall Street whacks you with much lower multiples, and the press is hardly any kinder.

Whether Snap actually convinces Wall Street and others to value them as different from Facebook remains to be seen, but this route is not surprising given Twitter’s carnage.

Even if Snap stumbles, what Spiegel and Murphy accomplished is nothing short of extraordinary. They grew a pure sexting app into a $30B communication and entertainment platform. This transformation didn't result from one "lucky" choice, but rather a series of risks and enhancements over multiple years. If you had given me 4-5 years to maximize the value of a sexting app, I think maybe, in the most optimistic scenario, with all the luck in the world, the app could have sold for $3M (with $0 as the likely scenario). What they did is 10000x greater than what I could have achieved under the same circumstances.

[0] https://www.bloomberg.com/news/articles/2017-01-20/snap-said...
Pulse has more features, but sits atop alsa. So it's not generally one or the other as pulse still needs alsa underneath. I don't have any docs on which is 'better' but a quick search reveals a lot of opinion on the matter. Bear in mind many Linux distros introduced Pulse a little early (Ubuntu [my employer] included). This caused quite a bit of hatred for it, as it was a bit unstable. Now those issues are mostly gone, and it Just Works™.
I'm not advocating writing any code like this, but you can have an overloaded == operator that _does_ have side effects, e.g. [0]

[0] https://ideone.com/eJgiN9
Comparison of Outsourcing Sites
Romanticism: don't forget the mood-setting music in the background.

Stoicism: you can however lock yourself up, ending with no valid direction for next move. However, the game doesn't end, so you have to restart. There's probably a philosophical implication here, though I can't think of one.
Presumably, regular customers also react to these free offers. You always get your pizza from A, but because it's free you try B. Perhaps B think their pizzas are better. Perhaps B just offer you free pizzas long enough to break your habit with A, and your habit becomes B. Or you tend to stick with Italian, but because it's free you try Thai, and you find you like it. Businesses have many reasons for subsidising free promotions.

Mind you, I haven't done the math on this, and presumably neither have the participating restaurants. However, the logic is sound, and becomes even sounder if you treat a restaurant owner to a couple of glasses of wine.
Modular car concept would airlift you from jams with drones
I'm not to bullish on battery technology for grid level storage either.
It's too cold, your veins just disappear.
There is (was) a mailing list at MIT that was the result of your or some other persons filter across all of MIT mailing lists forwarding free food on campus. It was a lot of pizza, mostly.
Drive Notepad for editing text files in Google Drive
It used to be like this in many European states back in the 80's. If you wanted to keep a computerized database of personal information, you had to apply to the state for a permit, so there was central control of all the lists. Of course this was extremely difficult to enforce... Eventually that type of legislation was replaced by the EU data directive.

e.g. In Sweden: http://www.datainspektionen.se/om-oss/historik/
A good joke would be if the game filled all the invisible fields with apples that would disappear when they became visible.

http://www.smbc-comics.com/?id=3307
You can buy 32x12.8mg codeine/200mg ibuprofen for ~6 quid at boots.

While large amounts of ibuprofen aren't great for your stomach they won't kill you as fast as paracetamol.

All that assumes you aren't doing a cold water extraction.
I had an Up when they first came out and the quality was terrible, after a week the vibration alarm stopped working, Amazon replaced under warranty and then the button stopped working on that one after 2 weeks. In the end I just asked for my money back, it seems after 3 years they are still struggling with the same issues, I really hope they take a different quality approach if they are focussing on medical devices....
It should be an error, not a warning (default or not).

In C++ you can overload '==' to do anything you want, including things that have side effects[0]. Without deeper introspection into the code, it's tricky to check if it's an error or not.

[0] PS. Never do this!
> but collective action is not possible if people can only ask others to do what they have also done.

Hmm, I think you don't believe in leadership? Even warlords in the ancient times know they have to risk losing their lives fighting when they recruit an army for themselves.

We Chinese call the people Keyboard Men who ask people to do all kinds of things, behind their keyboards.
Well that clears that up then doesn't it.
one thing i know for sure: permanently plugged in definitly harms the battery's lifespan
Nobody stops you from submitting a different version that's faster.
The article is dated.

The game changed fundamentally with the introduction of the Intel Management Engine (or the AMD Platform Security Processor) on the x86 platform. The system is now "deep pwned" as described in point 3.1.1 of the article. The manufacturer has ultimate control of the platform, the user has been disowned.

https://mail.fsfeurope.org/pipermail/discussion/2016-April/0...

https://youtu.be/rcwngbUrZNg?t=17m41s

https://blog.invisiblethings.org/papers/2015/x86_harmful.pdf

https://link.springer.com/book/10.1007%2F978-1-4302-6572-6
A quick look shows that 'go generate' simply allows filtering a file through an external tool. This is a powerful feature but has great setup overhead. Something slightly more integrated with the language (as a distinct compiler pass but still part of the language), with the capability of defining macros inline (and being exportable), and AST based instead of string based would be better.
Morse Code in Python
Market Research on High Power Fiber Industry Market Research Report 2016
Indeed, the amount and types of published information hasn't broadly changed, what has changed is the information horizon; the ability to search for information and analyse it. The world hasn't become smaller, our ability to see is much much wider. The information horizon is much further away from zero than it used to be (thanks to the computer's / big data's ability to communicate and analyse), and it's impact on society is much more than just privacy.
Craft your own Writing App!
How much faster it is compared to normal ones?
What happened with stackoverflow?
Stackoverflow is currently displaying badges instead of questions
New Study on Laundry Powder Industry Market Research Report 2016
The Most Symmetrical Objects in the World (2014)
Hence the Utilitarian label. The five-apple path is strictly better than the other.
> Beyond some size (some revenue, and/or more than 500 shareholders), even a private company essentially needs to make all the disclosures that a public company does;...

I don't think that's true. Do you have some source that confirms this?

If you go e.g. to Cargill's website (a $100 billion private company), you won't find any detailed financial information. There are some high level numbers and their yearly report is some marketing fluff. Same thing for e.g. Ikea.

As a public company there is relentless pressure to deliver ever increasing quarterly profits above anything else. Trying to focus on anything else (e.g. sustainability or long term plans), opens you up to criticism and lawsuits from your stock holders.
Awesome work!

I do the same with email addresses, but receive very little spam. Mostly I block addresses that start spamming me with newsletters. I've thought about keeping a list, but most companies actually stick to the Dutch anti-spam laws (which are quite good).

Only Dropbox and one personal contact ever actually sold/leaked my email address, and Paypal of course but they hand my email address out to all merchants so they're almost certainly not to blame themselves (not beyond the fact that they hand it out in the first place).
Holism: some goals are just unattainable.

Optimism: as your progress in your life, it just fills up with music no matter whereever you go.

Stoicism: I think the snake should have kept the same size whether it ate an Apple or not.
As late as, what, 2013, we were still half-way convinced they were blowing up boxes of high-explosives to fool us

I think that's an exaggeration. I'd note this 2013 NYTimes article[1], which notes that all US intelligence agencies agreed that North Korea tested a bomb in 2006, but were unable to come to a consensus view as to if they were capable of miniaturizing it enough to put on a missile:

an assessment by the Defense Intelligence Agency that it has “moderate confidence” that North Korea has the ability to shrink a nuclear weapon and fit it into a missile warhead surfaced at a Congressional hearing. That conclusion was disputed by James R. Clapper Jr., the director of national intelligence, who issued a statement later in the day saying that it did not reflect “the consensus” of the nation’s intelligence community.

[1] http://www.nytimes.com/2013/04/13/world/asia/contrasting-vie...
I worked in a start-up where the CEO complained that the employees (4 developers) are spending too much time on the toilet.
Uber's 'hustle-oriented' culture becomes a black mark on employees' résumés
Nobody ever thinks they will get caught. "I'm too clever for that" is basic human reasoning. Some are, some aren't. The real question is, are you willing to risk it?
But is it fun?

What rules are fun to break?
It's a mirror of the trolley problem, because your goal is to maximize points driven over instead of to minimize them (because you're a snake eating apples). But it shares the basic structure (you can do nothing and get the more wrong solution, or make an active choice and get the less wrong solution). Also, the game field is structured to make it immediately visible it's a reference to the trolley problem.

> Seems like much less of a dilemma than the trolley problem.

From utilitarian point of view, it's exactly the same dilemma.
Seems to me you don't need regex, nor the call to list() at all for that

free_food = [s for s in soup.stripped_strings if "free" in s.lower()]

works
Did I miss the part in Law & Order where it says this is an accurate representation of US law, the court system etc?
In any trusted codebase fixing every -Wall warning is the least you should aim for, possibly with a few intentful exceptions. Not doing so is very sloppy.
How's the gcc toolchain? One of the biggest comforts on Linux is the easy ability to just configure-make anything one needs.
What language can be better peer-reviewed?
List of certificates issued by Let's Encrypt containing “Paypal”
Good point. I think I should make myself clear: I explicitly meant _procedures_ as in _functions_, most likely, pure ones, and not _methods_ of the same instance, for example. which have acccess to the same dozens of private members. If you can, declare these procedures to minimize their possible side effects - that makes reasoning about them much clearer.
Enjoy creating your awesome resume-absolutely free and online
Ask HN: How to use kafka with scrapy?
I have made some spiders which are working fine using scrapy. Now I want to integrate Kafka pub-sub model into my scrapy. I searched and found https://github.com/dfdeshom/scrapy-kafka
But it is very old and I am not able to make my spider work using it.
Does anyone know any other link ?
Thanks