skysight-inc/HackerNews huggingface dataset:
Why is looking similar to the PHP method inherently a bad thing?
Bill Gates: somebody buy my nuclear stuff, I already invested so much
All of capitalism is predicated on unending growth. There are some fields of economics that do research into alternative models, but they are niche and unpopular: https://en.wikipedia.org/wiki/Steady-state_economy
Actually some places are already working in those solutions as well, like basically painting roads white, and it has been proved that in those areas it's not as hot in the summer so there is less power consumption for AC.
(see https://www.cbsnews.com/news/los-angeles-is-painting-some-of...)

However, that is still very expansive, and you need to paint a lot of surface areas (counting those that you can even paint) for it to make a significant difference (in world-wide terms).
Surely they "dance to the tune" because in reality their work just isn't worth enough to allow them that freedom of choice? That's hardly Ubers fault and I don't see why Uber should have to suffer to make up for that.
I've actually been really impressed with Laravel after switching back to PHP for a few projects. Not only is the developer tooling experience some of the best I've experienced, it's just really the only framework I've ever experienced with a high quality ecosystem of tools—from Forge[1], which makes it dead-simple to deploy a Laravel app into production to things like Horizon, for managing Redis queues.

A great example of this in action is Laravel Spark[3], a first party base for building paid SaaS apps. I built and launched a writing tool, Write Together[2], to the world in under three weeks, payment systems and all, and got 150 paying customers in a matter of a few weeks. One hell of a great way to MVP an idea and build something useful, in a low amount of time.

I'm basically developing two Laravel apps full-time at the moment, and it's the most fun I've had in years...compared to the hellscape of NPM dependencies and other complexities I'm usually bogged down with. Composer, the package distribution system, really needs work and is incredibly slow, but other than that—I'm really happy.

[1] https://forge.laravel.com

[2] http://writetogether.space

[3] https://spark.laravel.com
I believe laziness in this situation should be defined as having adequate alone time to process your thoughts, rather than always being busy doing something all the time.

People whose work involves mainly analytical thinking tasks are often mistakenly perceived by public society as lazy while in fact they have always been working all this time, probably harder than most. It's only because the nature of their work is not physically visible to the naked eyes.

Quality decision can only be made after it has been given sufficient time to carefully analyze all the information and its available options. This can only be achieved successfully when people have plenty of quiet moments alone to really think about the specific problem. Those who are always busy doing something all the time rarely have this opportunity, they are always in a rush and don't have the habit to utilize the process or pattern required for analytical thinking. Just like how everything in life is a trade off, if you don't dedicate adequate time for thinking tasks, you cannot expect to formulate quality decisions.
Required implies that there is some kind of divine guidance out there, which there isn't, so I suppose we could force humanity to stick to some stable point and not progress any further.

But economic growth is required in the sense that advancing technology requires economic growth. And advancing the human race requires advancing technology, and so on.

The world's population isn't a single entity, so even if one group decides to not pursue economic growth, others still will. The only way to not fall behind is to keep playing.
Back atchya. It's some random person's blog rant and I bet they didn't ask for it to be here. >.>
tell me which provider has an integrated single signon service for all of those above? Which provider has apps for their service for all major OS'es (including mobile), and is mostly free (or low cost)?
The western world, of about 500 million people

How did you get to that number? EU is about 500 million people, The US and Canada is about 350, Add in any other countries you might consider 'western' and that's another 50-100 million.
U.S. 2018 Births Fall to Lowest Level in 32 Years
> Do you remember the popular "PHP: a fractal of bad design" blog post? The first time I read it, I was working in a crappy place with lots of legacy PHP projects. This article got me wondering whether I should just quit and go do something entirely different than programming.

Seems like a pretty extreme reaction - how about trying a job with something other than PHP?
Doesn't work either.

Even if I go to https://www.gatesnotes.com/ and click the link on the frontpage I reach the "Oops!" page.
The thing about triggers being able to do anything, I have seen triggers make webservice calls - it was horrible and caused so many issues it was unbelievable
> Pretty sure they got the accounts back after some public outrage.

This may happen only if you manage to get it to the front page of HN or have many Twitter followers. In most cases you don't stand much chances though.
Here has gone downhill since Nokia/Microsoft sold it.

Before that, it was the best map solution with a huge margin.
> And yet no current or planned EV seems to be offering this.

In the UK, Ovo customers can do vehicle to grid transfers from their Nissan Leaf, with an appropriate charger.

https://www.ovoenergy.com/electric-cars/vehicle-to-grid-char...
I was curious how the homicide rate has changed over time. It’s true as you claimed that it was substantially higher hundreds of years ago, and has been on a steep drop in modern times:

https://ourworldindata.org/homicides
Undecidable Problem in Type Systems
So basically the chart is based on fuel consumption not actual energy output. Most fossil fuel consumption is inefficient to the tune of about two thirds of the input fuel being wasted. So the graph down-plays the contribution of renewable sources and nuclear by a factor of about 3x in terms of substitution for fossil fuel sources.
He's already liquidating them pretty quickly to fund the vast amounts he's ploughing into eradicating polio and malaria, and projects to provide access to clean water, contraception and decent sanitation in the developing world.

It wouldn't surprise me if the linked article doesn't mark the start of a shift in focus to address climate change as well. You may not be a fan of Bill Gates but when it comes to putting his money where his mouth is he has a pretty decent track record in recent years.

Edit to add: When you hold more assets then anyone else there's a limit to the rate that they can be liquidated without completely disrupting the global economy.
It sounds almost like the disruption necessary to stop global warming is greater than the disruption that would be caused by the global warming.
I tortured one of those mexican creatures some years ago. Is a very beautiful, but frustrating plant able to stand more cold than expected, but decicuous in this case.

Each plant has its secrets. Have I mentioned that they smell like piss when dropping the leaves? Yup, Jacaranda trees reek in winter if the area is beyond their normal distribution and they sense any cold. Die to the ground and then resprout.

Apart of this, beautifull feathered foliage and even more beautiful flowers in a big tree with elm-like bark and nice hot-cake shaped fruits.
Modern js has native modules: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Is the debugging experience finally any more bearable?
> This also gives the origin of the word "grava" which in this context would bean "bury".

And is cognate to English "grave" as in a burial place! Other cognates are Middle English (and modern Dutch) "graven", and German "graben", both meaning "to dig". Ultimately deriving from Proto-Germanic *grabaną. "Groove" is also related. Interestingly the adjective sense of "grave" in English (as in "serious") is of unrelated Romance origin (cf. "gravid", "gravity", "gravitas").
> CO2 emissions in China are growing rapidly

China rapidly tripled their emissions from 2000 to 2010, but after 2011 they have hardly increased at all.

Second graph here:
https://www.carbonbrief.org/guest-post-chinas-co2-emissions-...
At this stage, anyone still using XP is doing so because they have no other choice: either it's intrinsically tied to low-end hardware, or to some piece of critical software, and it's too expensive or time-consuming to replace. Often this includes "embedded" PCs in scientific equipment and the like.
The cost of free is worrying about arbitrary closure, in this instance. Fastmail is much better than Gmail, for what it's worth.
Harvard Betrays a Law Professor – and Itself
Part of the problem with climate change is that it's too big for anyone to intuitively comprehend. The scope of the disaster (both in timescale and magnitude) is beyond anything humans deal with in their everyday lives, so laypeople are prone to unhelpful observations.
Free Proxy Servers for Anonymous Web Browsing
Fever could kill ⅓ of China's pigs. Almost as many as live in US and Europe
The entire purpose of Medicare for All is replacing the need for private insurance. More people would have better coverage at a lower cost.
Mr
Have fun
I think the fact that it isn't cheap shouldn't be that much of an issue (although I know it currently is) because the price we (not even our children) will pay because of climate change would be much higher (in pure economic costs, before we start talking about more moral and environmental costs like animal extinction).

But I think the problem is that people care about today a lot more then they care about tomorrow, or next year (and definitely more then their potential future descendants).
Thanks for sharing. The thing that I am most concerned about with PHP is not, strictly speaking, the language itself. The syntax is slightly odd but otherwise fine. And the semantics are much the same as any similar language.

The real problem that I find with PHP is that the designers seem (from an outside perspective) to take a similar approach towards language backward-compatibility that, for example, C/C++ have. There is some rejection of the idea of getting rid of the old, bad stuff. Plenty of new, cool features is all well and good - but there are still holes in the floor that new learners will fall through.

[To clarify, I understand the case made by the C/C++ committees on supporting old code. But nobody's programming pacemakers in PHP, one would hope.]
One of the main takeaways I got from the original Fractal of Bad Design post was the myriad of inconsistencies in both representation and execution of code. This was barely touched upon, mostly this post focused on how PHP has added features and ecosystem. But then so has Javascript.
Phoenix cost soars by another $137M, paid to IBM
Available right now from Germany:

https://www.energymeteo.com/products/virtual_power_plant/the...
Amazing execution! I love fortunes and the tarot data set linked looks amazing.
Why Are We So Freaking Tired?
Bill forgot the only thing that can truly be a game changer: Nuclear Fusion. In the long run, this is the only solution that can provide the amount of energy required by our modern society.
How to improve your hockey skills, speed, stamina and quickness
I can confirm this as I used to work as a developer for a media company. We basically begged our advertisment executive for permission to get rid of that horrible box of semi- to unrelated content which appeared beneath every article. His answer was "No, it genereates too much revenue".
not sure youre being sarcastic or not... of course the disruption due global warming will be vastly greater than the disruption caused by trying to prevent it, that much is a given
That's pretty neat.

Is there a name for the thing where you generalise something to be an infinite version of itself, then show that that infinite version is Turing complete, then transfer that back to the original finite thing? Sort of like we are willing to call real physical computers 'Turing complete' despite them clearly not having infinite memory.
Greek has it feminine too.
Selecting text in my world is either copying text, or selecting text. Not searching for that text on a search engine. That shouldn't be the default (most common) keybind.

Anyway, you can still use DNS-based (with or without VPN) filtering.
Don't forget! Have fun!
I find it odd people are willing to take such a huge pay cut. A lot are probably working more hours each day, and in any case could have negotiated 4 days with zero pay cut. There is a case to be made that the week wouldn't be 20% less productive, and not quitting for a job with your preferred schedule is a win for the employer...
Nasa: We are going to the Moon – to stay
Honeywell Racing with Google, IBM in Quantum Computing
> our modern society

You probably mean future society, as this technology is not really viable yet (in its current form).
you are not wrong. But as I see it, the question here is about the legal status of having an open beta on items where a bug could kill someone.
Crucially tartan was banned for about forty years: https://en.wikipedia.org/wiki/Dress_Act_1746

Not quite a lifetime, but enough to totally disrupt any kind of continuity of history.
So what you seem to be suggesting is he should spend his entire net worth all in one go right now and then walk away, and if he doesn't he's a fraud? If that's what you mean, it doesn't seem to me to be a very effective strategy when tackling long term problems, especially as new problems keep coming up. No investments means no revenue to tackle new problems.

Do you really think committing everything up front would be a better use of his resources?
Not only did PHP clean itself up a lot in the last few years, it also managed to do so while maintaining a great deal of backward compatibility.

It's not uncommon to pick up a really old library that used to work in PHP 4.4, stick it in a PHP 7.3 project -- maybe you need it to import legacy data -- and experience no issues whatsoever. You can probably also use the library in question in parallel with a modern dependency management system like composer, or any framework built on top of it, without any conflicts. This is Windows-level backward compatibility, and I mean it in a good way.

Why would anyone want that in this day and age? Because there are tons of legacy PHP code that still power a very large fraction of the web. Not everyone is writing new projects from scratch. Not everyone can afford a total rewrite. PHP's backward compability allows people to transition gradually at their own pace. It might not be sexy, but it gets the work done, and it just keeps working. That's all that matters for many, many businesses out there.
For those not familiar with ASRock, it was a spinoff from ASUS, one of the world's top five motherboard manufacturers.
Xdebug remote debugging is great, especially when paired with Laravel Valet (which supports more than just Laravel apps).
If you have a white roof on your house, you need more heating in the winter. Does that help?

> If climate change really is the threat they say it is,

If you're not past the "if" stage... you're not worth talking to.
Offices are collecting loads of data – how will they use it?
"While async and await are not available yet, lots of improvements to the language itself have been made over the past years"

It's 2019 guys. Please.
These initiatives will create a lot of jobs: engineers, administrators, electricians, construction workers. Many of those in areas that were hit hard by manufacturing moving away.
Which don't work in the browser, the main place we use JS.
Last time I used composer (about 3 years ago) it had a nasty memory leak that eventually meant I had to run the build on a higher specced instance than the actual application. This was mainly due to the ridiculous dependancies of the application, but it was almost a show stopper. Has this improved?
You sound like a fucking queer.
A few years ago complaining about that would get you flagged. Now it gets upvoted.
Important Life Skills That Children Learn from Stem Education
> Human power consumption has been growing exponentially

That has to stop. Power generation cannot grow exponentially forever
Yeah I remember the problems with composer. It's good now.
Well, s/BASIC/Lisp/ in that comment, and the critique is spot-on.
Show HN: Learn how to build products and startups without code
Since this is posted on Git mailing list, the reply is here https://public-inbox.org/git/20190515103031.GA29149@ash/
Why did Neanderthals come here?
Reminds me of stories like these[0]. :(

[0] - https://www.oddee.com/item_98735.aspx
Except for a few spare cities for when the ones you have are made uninhabitable by a nuclear accident.
Here's a working link https://www.gatesnotes.com/energy/a-critical-step-to-reduce-...
In the case of Stripe, a lot of their value hinges on being able to convince both developers and designers that the experience they offer is worth the slightly higher transaction fees. Their design aesthetic (and documentation) communicates this very effectively (in my opinion).
Not just Electron either, writing an email in Outlook frequently gives me half-a-second pauses before the typing catches up with the cursor
Mypy uses the init files to resolve absolute imports.
I heavily agree with this. The standard library, whilst great, has so many inconsistencies which I wish they'd fix and standardise.
I think private storage is limited in size.

Public storage is a different story, but that is not "any app" anymore.
Yeah, that's not a thing anymore.
I would say largely the same, but mostly put the emphasis on housing. Capital isn't regional anymore, meaning housing largely goes for whatever people dare to sign for. This makes it a lot harder to live a more modest life. Disproportionately hurting smaller cities since being cheap is part of what they have/had going for them. Basically if housing was significantly cheaper for a decent quality of life, rather than mostly just somewhat cheaper, job security would be less of a concern.
It always interests me that lithium batteries are used in situations with such different constraints: from mobile phones (lightweight, compact, frequent irregular (dis)charging, etc.) to grid storage (controllable (dis)charging patterns, weight and size are less important).

I wonder which other, less battery-oriented, chemical reactions have been investigated for grid storage. For example, non-rechargable aluminium batteries have been suggested for electric cars ( https://en.wikipedia.org/wiki/Aluminium%E2%80%93air_battery ); I could certainly imagine a substation topping up the grid by corroding a huge heap of metal (aluminium is abundant, but heavier materials could be used since they don't need to be mobile).

The interesting dynamic with such non-rechargable "batteries" is how they're manufactured: they would come from surplus production at times of abundant energy. AFAIK energy-intensive processes like aluminium smelting are already used to balance the grid (either directly, with contracts between both parties; or indirectly, by changing energy prices).

Are the round-trip efficiencies of such reactions too low? Are the energy quantities too low? Would this just be an indirect (and hence less efficient) form of the existing load balancing?
"git restore file" does reset worktree. Sorry I didn't mention it. If neither --worktree or --staged is present, the default target is the worktree.

It still restores worktree from the index though. But if your workflow ignores the index, then index should be the same as HEAD. "restoring from index" and "restoring from HEAD" will mean the same thing.
What are you trying to say? All you do is assert that a very literal interpretation of what he's saying is correct, with the implication that what he's trying to say isn't correct, but you don't actually offer any arguments against his actual positions
> Now let us return to why the reported Chinese CO2 emissions growth in the communique is so much lower than our projection in the 2018 Global Carbon Budget. The real reason is not clear, but the problem is an unexplained inconsistency in the coal statistics in the communique.
[...]
>There is no apparent explanation for these discrepancies. Some people have suggested that China’s statistics bureau is manipulating the data to make coal consumption growth look smoother than it actually is, although there is no direct evidence for this.
Whatever the case, the discrepancy over coal means that overall CO2 growth could be as high as around 4% – compared to 2.3% reported in the communique – even before accounting for other sources of uncertainty that we usually include in our analyses. Those factors push the uncertainty range even wider, to -0.4% to +6.7%. ...
php > echo count(get_defined_functions(TRUE)['internal']);
1196

They should clean up the global name space, but that will never happen, so I'll continue not using PHP.
What I understood is just that reflect seems to fit better here, given the most common use cases for the word.
Python Dictionary – Create, Append, Update, Delete Examples
AFAIK a fair part of China's emissions are due to the production of goods not bought by Chinese but by Swiss, French, Spanish... nationals. China "decides" to produce, so this country is somewhat "guilty", but let's not neglect its "accomplices".
Protecting Facebook Live from Abuse and Investing in Manipulated Media Research
I don't think so, not for the foreseeable future at least - fusion has to be cheaper than fission to be interesting, and fission is probably too expensive at the moment already.
Fusion is also the only energy source which will allow us to reverse the worst effects of climate change (melted ice caps in particular).
Wasn't NUC an Intel trademark?
What about reducing the consumption of energy?

According to Wikipedia [1] there is a huge difference in consumed kWh per capita in different regions. It seems relatively obvious why EU why are using 5x more energy than Africa, but can someone explain why US is using 2x more than EU? Between 1990 and 2008 US reduced the consumption by 2%, could the cut be larger?

[https://en.wikipedia.org/wiki/World_energy_consumption#Trend...]
Except for that time they weren't! https://en.wikipedia.org/wiki/Jayson_Blair
>It would be great until there was a hard year and the insurance companies would have the be bailed out by the taxpayers.

Surely that wouldn't be the case? They wouldn't have to be bailed out; If a company hadn't planned ahead well enough to survive a bad year then they deserve to go under. In an unregulated economy, bailing out failed companies shouldn't be an option.
They blow up in the sense of a dirty bomb. That's a lot worse. It would be great if NPPs just blew up in a nuclear explosion! We could safely use them by making the blast radius a forbidden zone.
Get Linux System Administrator Bundle with 7-Courses
> I would like an option to make the index go away

By Git design, you will have to face the index when you have merge conflicts. I don't know how to avoid that (and now is not the time for fundamentally change how conflict resolution is done).

But yeah, the other times, I think you can just live just fine without knowing or touching the index.

> I can't test the index.

I'm not trying to convince you to use the index. But to me, the way I test the index is commit it. Then I could use "rebase -i" to revisit the old commits (i.e. the index content) and test or make more fixes if needed.
Totally off-topic. I like the design of the site so I looked up the source.

There's something like 25 000 lines of JS and CSS o_O.