skysight-inc/HackerNews huggingface dataset:
From the article: »Cities will probably target models with older emission controls. Of the 15 million diesel cars on Germany’s roads, only 2.7 million have the latest Euro-6 technology, data by the KBA motor vehicle watchdog showed.«
Surprise ending to this. The entire essay is a put down. Fantastic.
The Challenge of Attracting the Best Talent
I think cities are only interested in banning older diesels that don't meet Euro-5 or Euro-6.
What subs would you recommend for someone starting out?
4 Steps to set up a free and remote Scraper with RServer and AWS
I'm the author of this post. I'm happy to answer questions.
I have only been coding for 1.5 years and this kind of comment is validating what I worry is a very bad habit. I hate using dependencies unless they have reached a certain level of legend in the community.
Starting strength is a good book to learn about barbell squats. Pretty simple to understand and the postures are mostly based on angles w.r.t joints.
Diesel cars have been under fire for quite some time because auto makers across the entire industry cheat on emission tests: https://en.wikipedia.org/wiki/Diesel_emissions_scandal
I think you two are talking past each other. You don't jump straight into 300 lb squats. You start with squatting with no barbell. Then you add an empty one. Then you add 20 lbs. Then another 20 lbs. In a few months, you have a lot of weight. This is going to get you stronger faster and safer than trying to do pistols (one legged squats) because you control the weight advancement. This is true for all weighted exercises vs body weight that I can think of. Pistols are hard and rough on your knee and the form is hard to get right. My back squat is over 2x bodyweight and is still find pistols hard and rough on my knees.
I rarely (if ever) use state machines explicitly, but I do use them relatively frequently to reason about the behaviour of a system. A paper tool rather than the way I actually write the code. I use flow charts and sequence diagrams in a similar way.
Lots of comments here saying "yeh squats are great, do squats." But the article is not talking about exercise squats! It's talking about "deep squatting as a form of active rest".

Personally I think squatting as a form of sitting is not going to be happening too much with larger framed people. Smaller and slimmer people will obviously have a much easier time of sustaining a sitting squat comfortably.
Thanks, glad you enjoyed it!

> I was expecting the site to tell me how to start at page X and get to page Y with the min number of clicks.

Yup, this is exactly what the site does, and a bi-directional BFS is an efficient way to do it. The special thing about my bi-directional BFS is that I follow outgoing links when searching from the source page while following incoming links when searching from the target page[1].

> I did notice that someone pointed out that they get different results by swapping the order of X and Y. This seems pretty surprising?

This is expected, because it is a directed graph, with the links on Wikipedia being in one direction. Just because page A links to page B doesn't mean page B links to page A.

[1] https://github.com/jwngr/sdow/blob/master/sdow/breadth_first...
Generally they are not. Newer ones are within limits set acceptable by emission standards, but those standards don't really model real world use where their performance is generally atrocious.

I happen to be (now not very happy) owner of a diesel car.
It’s backed by science. Due to the high temperatures in a Diesel engine, the amount of NOx produced is far higher than for petrol cars. NOx can be handled by a catalysator using AdBlue or similar, so in theory Diesel engines could be clean. In practice the standards are routinely ignored by the car makers.

The ruling allows banning cars that do not fulfil current standards, so a recent car is probably unaffected. However, the restriction could be lifted if only banning old cars proves insufficient. Then, newer cars could be affected.
Ask HN: How to get better at web security?
Hi folks. I've been reviewing/looking at job posts recently and I've always wondered, how do people get better at securing their app? I can read books about it (Also, what are your book/blog recommendations?), but how do I practice? I know the basic stuff like SQL injection and XSS scripting, never trusting what the user is going to send, but any tactics/strategy to get better at this (or to at least consciously think of when programming/designing software)? I'm a web developer.
They emit less of the greenhouse gas CO_2 than gasoline engines, but often more unhealthy nitrogen oxides and particulate matter.
Syria war: Shelling and strikes despite Eastern Ghouta 'pause'
Very nice. Ah! The good days of Capitalism:

Public condemnation of the use of breaker boys was so widespread that in 1885 Pennsylvania enacted a law forbidding the employment of anyone under the age of 12 from working in a coal breaker,[3][13] but the law was poorly enforced; many employers forged proof-of-age documentation, and many families forged birth certificates or other documents so their children could support the family.[3][13] Estimates of the number of breaker boys at work in the anthracite coal fields of Pennsylvania vary widely, and official statistics are generally considered by historians to undercount the numbers significantly.[3] One estimate had 20,000 breaker boys working in the state in 1880,[3] 18,000 working in 1900,[12] 13,133 working in 1902,[3] and 24,000 working in 1907
Yes it is. It is not about CO2 emissions, where Diesel engines are indeed more efficient than petrol engines, but about the "fine dust" emitted by a highly charged turbo setup, like most modern Diesel layouts are...
The backstory here: EU law mandates doing something to reduce pollution if it's too high. German law prohibits various kinds of discrimination. For example, a simple ban on half the cars on Monday and the other on Tuesday would bother large plumber companies much less than independent plumbers who need a carful of tools and have only one car. What actions are the cities permitted to take, and/or required.
There's a big difference between general "emissions" which a lot of people take colloquially to just mean greenhouse gases (and CO2 in particular with combustion engines), and then the small particulates and other things (like NOx) that create worse local air conditions[1]. Most "modern" diesels in use do still have the latter problem. I think at the very cutting edge, if you maintain a very good filter and operate in favorable conditions you can cut those emissions dramatically, but as far as I know it isn't widespread among the personal diesel fleet.

[1] http://theconversation.com/fact-check-are-diesel-cars-really...
I put the link when I saw the one hour mark ;)

I spent too much time on HN today
>I will only undertake honest and moral work. I will stand firm against any requirement that exploits or harms people

This one should probably softened up into a "for the greater good" variant. I understand "do not harm" is a good starting point, but sometimes harm becomes necessary.

A surgeon will have to cut open the patient, harming them, to help them in the end.

In the same manner, a programmer may find it necessary to write code that harms a few people in order to help a whole lot more people. An example could be that a business is exploiting people and a programmer will have to harm their business and harm the people working there by writing an alternative to the businesses product.

Temporary or short-term harm will become necessary to enable a programmer to ensure reduction or larger or long-term harm.
Agree, it's an interesting question.

I think the problem is knowing how to define "life" and then working back to other possible implementations. As Douglas Adams framed it, "does it go squish if you step on it?"

As far as I know, the current thinking is still that life emerged (or arrived) only once on earth. One version of genetics, one implementation of life's basics, the eath-life basics. This makes it hard to generalize. It's also hard to speculate on the likelihood of such a seed event, on the basis of a single occurance. We have very little information, in Drake's equation terms, on the likelihood of life emerging given earth-like circumstances. Earth is obviously life-supporting. Why did it only happen once here, and so early in the game... As soon as the planet cooled.

For example, we could define life in terms of evolution, any evolutionary system with potential for a lot of complexity in the long term. ...we only have one example of this, earth life.

I think it's natural to start here, with earth life because that's all we know about and our speculations are very... speculative. At least we know what we're looking for this way. Earth-life can survive X conditions, therefore life can. What conditions can other types survive, if they do or even can exist? Who knows.

A lot of mystery still. Even the emergence or pan-spermia question is wide open. Even within this information bubble of earth life.. we don't know how extreme life can get. We just know about stuff that evolved to survive the extreme conditions found on earth. It's plausible (even probable) that earth-life has the potential to go even further, if earth provided more extreme niches to adapt to.
In case you are travelling and cannot bring the bar with you ;-) a good alternative is the "prisoner squat". Place both hands behind you head crossing your fingers. With elbows out as much as you can do the squat like prisoners do it, veeery sloooowly, start with 4 x 12.
Hey man, just a nitpick. The input fields fudge up when using dark GTK themes, as in text isn't legible unless I select it. Might wanna look into it.
Note that this ruling is only to clarify that cities are allowed to implement car bans on their own without a federal directive in place.

Now we will have to wait and see if the cities will actually be sued into having to implement such bans.
The emission standards in question are per m² in the city, not per car. It doesn't matter whether the emissions come from 1000 clean or 100 dirty cars.
Same as Sony XZ premium, it is capable of shooting for 0.2s in that speed. Amazing speed and crippling duration. Camera memory size is limited to this and nothing could be done. More of marketing trick and really hardly useful thing.
Partially related: "Fiat Chrysler is reportedly ditching diesel cars by 2022" (https://www.theverge.com/2018/2/26/17053362/fiat-chrysler-di...). Diesel sales are collapsing all over Europe, I think one of the latest reports puts the number of new Diesel cars sold in France at just under 50%, while they used to be at 75% four or five years ago. The writing is on the wall.
I'm a software developer. I've taken adderall for the last 15 years. I have ADHD. Adderall changed my life for the better. I thought ADHD was bullshit until I saw the difference adderall made in my life. I don't function without it. I don't see it as a performance booster or a productivity aid. For me it's a necessity. It's the difference between remembering to pay my bills and having my car repossessed even though I had the money (true story). Negative side effects... I have an essential tremor. The adderall makes it worse. Eating peas is a frustrating experience. Beyond that, nothing. I wish it curbed my appetite, but it doesn't. I wish it gave me superhuman coding skills, but it doesn't. For me it enables me to hold a job. I understand that it's a different experience if you don't have ADHD. Friends tell me that they buzz. Their heart pounds. It's speed. None of that is true for me. I take 60mg XR daily. At this level I'm a functioning member of society. Nothing more.
This is awesome! I lost my copy or borrowed it to somebody and do not remember who or when.

Either way, this was one of the most fun programming books I have ever read, Lisp or no Lisp.
>EU law mandates doing something to reduce pollution if it's too high

And it mandates that for around 15 years now.

One of the cities (Stuttgart) has been exceeding the pollution limits for at least 8 years now.

It's quite strange that it took so long to finally force the city to do something effective.
Chutiyapanti ki bhi hadd hoti hai
If hot means sales that's not going to happen.

Not even HMD people believe that. They don't except to sell many Siroccos. They just put it into the market to show that they are coming. It's presence and practice thing. Walk before run.

I haven't tried it but it's seems to be already high quality but not quite there yet. Next version of Sirocco will be the real thing with some features that make distinction.
Excellent news for the air quality in German cities. We've been blatantly breaking German and EU law for years now.
It's important to note that popularity of diesel is the doing of the German government. The fuel is subsidized for the sake of the environment because it's more efficient. https://www.google.com/amp/s/amp.ft.com/content/eb8be120-de5...

The situation is similar to Germany's work on its electric power sources. Nuclear was turned off because it's dangerous. Now Germany spews out about same carbon as before giant investments in solar, electricity is four times the price as in US, plus they now have to buy from France cause they don't produce enough.

https://www.google.com/amp/s/www.forbes.com/sites/jamesconca...
Show HN: Sanaa, wkhtmltopdf and wkhtmltoimage HTTP API
That won't work since all possible 5 character prefixes return data.
That gets into the debate of buying vs renting, and Im honestly not sold on all the benefits of buying. While you are building equity, it’s debatable whether you could make more just nuy putting money into an index fund. Im talking about the down payment, all the maintenace costs and associated costs of owning a home.

But I don’t need to dig into it further. I planning on getting out of NYC eventually to lower my costs and be somewhere with cheaper cost of living. It’s just harder to figure out true cost of living and the amount you earn as a developer then these guides suggest.
Self-Proclaimed Bitcoin Inventor Accused of Swindling $5 Bn of Cryptocurrency
Memory Tagging and how it improves C/C++ memory safety
Why do you consider this a battlefield and why are you on the side of a multinational spying corporation?
Could be interesting to look at Patchwork/ScuttleButt for inspiration. It uses a 'gossip' protocol that primarily operates over LAN connections, and has a bunch of other cool stuff.

There's a rather large 'escape hatch' to the local nature of it all in the form of 'pubs', which are basically regular users that are internet-accessible.

But at least for the interface and some of the decisions they made, it might be worth investigating.
Sorry, but some of your statements are only partially correct. In fact germany exports more energy than it imports. (https://www.ise.fraunhofer.de/en/press-media/news/2016/germa...)
Also the popularity of diesel might have other factors as well.
If people are choosing to have fewer babies before recessions, their decisions must be made based on some information they have. So looking at pregnancies is interesting, but at best it shows there’s something still missing. And trying to find that might be a little less intrusive then looking into pregnancies.
He is a lawyer, what would you expect? Being pendandic is his job. Not that I agree with him btw. I think he just does not have enough real practical engineering experience to understand it well.
The amount of coverage that you need may vary. Experiment and you can find the combination that will help you both fall asleep and stay ventilated during the hot nights.

I figured out I just need 3 areas to cover to feel really comfy:

- feet (socks are enough)

- lower back

- my face around the eyes
Build a Real-Time Web Application with GraphQL, React and Apollo
>Now we will have to wait and see if the cities will actually be sued into having to implement such bans.

They already have been forced to implement such bans by the lower court. The cities appealed, but as decided today were unsuccessful in doing so.
2 things limiting advances in machine learning… and what it would take to
Diesel cars produce less CO2, and I believe that's only because diesel engines use less fuel than gas engines (about 40% less). This was the idea behind "diesel being cleaner".

However, diesel is way more dangerous to human life because of the NOx particles. This is why diesel cars will now be the first to go.
Wouldn't using a simple bloom filter make sense in their case? Just build the thing offline and your app loads it in RAM at startup.
Cellebrite Unlocks iPhones for the US Government
Anatomy of a Low-Level Container Runtime
First PR I saw on redis GH: https://github.com/antirez/redis/pull/4714

That same user also made https://github.com/antirez/redis/pull/4685

This may be? https://github.com/antirez/redis/pull/4622

This was apparently critical, but also kind of an edgecase: https://github.com/antirez/redis/pull/4568

& one more from someone else: https://github.com/antirez/redis/pull/4568
Stop touting "Germany buys electricity from France because they don't have nuclear power". France always exported electricity because they cannot power their nuclear power plants up and down as easy as others can their coal plants. In hot summers and cold winters France relies on Germany electricity to stabilize their net because nuclear power then becomes a problem.
Stop doing things ASAP
Or use the free, open source Inkscape software, which will also let you do minor revisions to text. Note that the 'minor' restriction in both is that you don't really get re-flowing of your entire document, just the individual text blocks. If you want it to be really easy, you need to edit the source document from which the PDF was generated.
/r/bodyweightfitness has a nice routine that is suitable for beginners
I found the opposite to be true. It's so 'foreign' that it avoids me falling into "I already know what this does" traps. Except for 'if'. Avoid 'if'.
Drupal 8 Performance Optimization Opportunities
Professional organizations typically have more full-backed codes of conduct, e.g:

https://www.acm.org/about-acm/acm-code-of-ethics-and-profess...

https://www.ieee.org/about/corporate/governance/p7-8.html
By "attacking" you mean calling some news fake news and criticizing other people's political statements. Those things are within the law. Jailing people for their political opinion, like they do in UK, China and Iran, is a violation.

Anyone trying to make laws allowing those things would be attacking the first.
Well, this thread got nuked didn't it? From first page to page 5 in under a few hours...
The Royal Navy also frequently carried nuclear weapons until 1993, and this caused a bit of an issue with the Falklands War, as the UK was a signatory to the Treaty of Tlatelolco (the Treaty for the Prohibition of Nuclear Weapons in Latin America and the Caribbean): the MoD long insisted that all nuclear weapons had been off-loaded before they set sail for the South Atlantic, but in 2003 admitted this was untrue[1], though still claimed they never reached territorial waters of any signatory country.

[1] https://www.theguardian.com/politics/2003/dec/06/military.fr...
How does this compare to say... the consumer confidence index? Assuming that everyone is accurately stating their confidence, I don't see why conception data should be ahead of consumer confidence.

>Economists are frequently criticised for failing to accurately predict the direction of economic growth

OT: Do people honestly think that? I thought the academic consensus is that boom/bust cycles are pretty much impossible to predict.
Sorry, the truth can't be known.

There are likely some physics laws that can explain this better than I can, but the farther in time you get from a physical event, the more information is lost (entropy leaving your light cone). This leads to 'evidence' that allows multiple valid interpretations.
Hello potential BlockChain research collaborator
I assume they are removing cars and buses making use of this tech first as they are far more likely to be dirty that cars. Even the cheating VW cars were still magnitudes cleaner than the immediate previous generation.

I think they are going to find their pollution problem is nearly as bad and will need to make more difficult choices rather than relying on fear of a partial truth. It isn't just diesel cars making their cities dirty. As stated, the change made to even the cheating cars would have demonstrated such if it were just cars
Easy offboarding from Heroku into dokku [1] and digital ocean [2].

But these days I run simple docker in digital ocean and Azure with deployments managed via my CI.

[1] - http://dokku.viewdocs.io/dokku/

[2] - https://www.digitalocean.com/products/one-click-apps/dokku/
Sandbag carries and farmer walks do just that :). As for the idea that you are brutally punishing your joints, I don't believe that to be the case. Controlled squats vs running? Yeah, controlled squats will be way better on the knee. I do weighted exercises regularly and have a marketed reduction in joint pain from before. A barbell squat with good form will not put undue stress on the knee joint and builds muscle that supports it. For me, the added muscle also removed my lower back pain. This also comes with the caveat that you need to stretch and mobilize too.
The first link goes to a paywall for me. Is the fuel subsidized, or just taxed less? The tax on gasoline in Germany is roughly 100% at current prices.
Elite creators usually don't like to hang out creatively where the general masses do. It's true in art broadly, it's true in music, it's true in photography. New scenes - think grunge or punk rock - don't usually happen where the old scene is. There's a certain element of snobbery ('this is our thing') and cultural rebellion inherent in that, and I don't mean that in a harsh way, it's just the way it has tended to be historically. Separation from the mundane status quo.

If you're one of the 100 greatest living photographers, the odds are you're not overly interested in hanging out where average Joe is posting and sharing 927 pictures of the family vacation to Disneyland. People like communities filled with people at least somewhat like themselves. Even the cool factor inevitably plays into it (mass market sites inherently lose that), no matter how much a person may resist that lure. Once upon a time, Yelp and Flickr were small, tight-knit, snobbish communities that the masses had never heard of.

If a site goes fully mainstream, it'll start to bleed off its elite creators (assuming there are alternatives). They'll seek out a new scene, they'll try to get away from the mundane that inevitably sets in, and the dilution of the qualities of the community that initially attracted them.
Speech Accent Archive
Not to mention that the dataset is relatively small.

A 16GB of ram server could basically serve responses sub-millisecond at line rate for like $25/month.
Two months with pent-up demand (Apple announced the iPhone X on September 12, and ‘everybody’ knew a new phone was going to be announced at least two weeks before) in the quarter were Apple typically sells a third of its yearly number of phones.

If you assume the other three quarter each do 22% of sales, that 50 million already goes down to 34 million. Anything more, for me, would be a big surprise.

But chances are this is more to blame on reporters hunting for attention than on Samsung. Samsung may just have said they would sell fewer displays than the 50 million of last quarter.
One thing that helps me make reading code in code reviews less passive is to add occasional temporary print statements and then run the unit tests again that cover the code I am reading. Seeing variable values satisfies some curiousity. Sometimes I will use a debugger to step through code I am reviewing but for some reason I prefer print statement to satisfy any curiousity I have about how the code works.
This is about NOx, which is not healthy for humans. In regards to CO2, which is bad for the climate, Diesels are indeed better than petrol cars.
Coupon Tokens: A Regulation-Free Alternative to Security and Utility Tokens?