skysight-inc/HackerNews huggingface dataset:
> A Deferred object is returned by the obsolete Promise.defer() method to provide a new promise along with methods to change its state.

> Starting from Gecko 30, this object is obsolete and should not be used anymore. Use the new Promise() constructor instead (or use the above backwards/forwards compatible Deferred function given below). For example, the equivalent of

Seems like it's obsolete. [0]

If you want to write async code, use async / await.

const run = async () => {
const response = await new Promise((resolve, reject) => methodOne(data, (e, res) => e ? reject(e) : resolve(res)));
};

If you spend enough time with fat arrow, it's as easy to read as `function` is. On top of that, IMO it looks cleaner. It also allows you to do scope binding in a different manor which in React is much better.

This:

<a onClick={this.onClickEvent.bind(this)}>Click Me</a>

becomes this:

<a onClick={(event) => this.onClickEvent(event)}>Click Me</a>

[0] https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_...
> 100% of those software engineers have a plethora of safety checks

Well, this is simply not true. I suspect you conjured that figure out of thin air. Case in point, the famous Therac-25 accidents caused by a software bug causing large over-irradiations of cancer patients : https://en.wikipedia.org/wiki/Therac-25
Bitwig Studio is great for the Linux audio world but the real problem is plug-in compatibility on Linux.
On the one hand, if you're making that much then you are fortunate enough to be generally insulated from a whole range of problems/stressors that most of the nation doesn't have. On the other hand, it really does feel like barriers are raising to maintaining that level life or being able to use that level of compensation to finance a way to the next level of stability. Especially if you're new to that socioeconomic level, and have a family and want to do responsible financial planning for their futures (college) while maintaining some quality of life and involvement with that family.

You get the harder burden of higher expected contributions for college (as it should be), but there's a valley where it hits upper middle class harder than the next economic class strata up while taking away supports that the low/middle financial levels receive. I joke (and cry) that the college pricing is one of the only negotiations where the other side gets to look at exactly where the buyers are coming from financially, and then dictate their price. It sets up a mechanism where families have a lot of potential wealth basically siphoned off by colleges and student loan arrangements - upper middle, middle, or lower economic class. (and btw the college financial formulas in the US heavily favor income over assets as inputs to ramp up expected contributions - another way that the capital wealthy, vs income wealth classes win out...)

The recent tax changes also seem to hit hard to if you're already a homeowner and might sell and buy to relocate for a job. So that's an special added mobility dampener if moving to places like silicon valley where the home cost might go up - but now the tax advantages for mortgage interest hit limits much earlier, taking away more of the salary bump from moving.

Oddly enough, if you have the resources, starting up a business a year or so before kids applying for college is an interesting thought - one that I doubt I'd try due to the risk. But potentially then, you get a big drop in the income input in the college expected contribution calculation which can come back as an investment if you later make good on the business. But again, it's an approach that is much more available to the capital wealthy, and more difficult and risky for high-income earners to employ.

Edit: on the college thing: I've had friends in the same economic class seriously run trade-off analysis on wether they should pay for college for their kids or use that same amount to offer their kids a startup/personal-investment fund thinking if they get the same or better value on experience + potential payoff vs the non-college option.
What's the story behind that? Back in 2008ish when I used to follow this more closely, the conspiracy-theorist-sphere (the same people who told us the housing bubble was real, big, and about to pop) were discussing how interest rates were artificially low due to the US Treasury and mysterious offshore funds basically dominating the market.

No idea if that's still the case but I often wonder how we can have skyrocketing prices across so many asset classes yet near zero inflation. For example, Statistics Canada shows next to no inflation in the CPI component for shelter in BC:
http://www.statcan.gc.ca/tables-tableaux/sum-som/l01/cst01/e...
Whereas actual prices look more like this:
http://news.buzzbuzzhome.com/2018/01/chart-greater-vancouver...

Obvious blatant lying (obvious because of the actual data, but also because it's mathematically impossible (after adjusting for interest rate differential) to have 10%+ annual price increases in the most expensive asset class for over a decade, no decrease in spending in other sectors, zero wage growth, and zero inflation), but good luck finding someone that works for a mainstream newspaper to print an article pointing that out.
Actress Rebecca Gayheart in a hot photo shoot
Thats a great answer but decidedly off topic. He asked a very specific question and you gave a completely different answer. HN, this shouldn't be voted up here. Our biases are showing by doing so.
That's a byproduct of modern society. I find it depressing that society, since the late 18th century [1], thinks we need to work that long.

Nonetheless, your statement is a valid one. Personally, I do my best to reduce that 1/3. Finding work that allows flexible schedules or work remotely but all that job needs to do is provide me money, which in turn gives me more freedom.

That's not to say that I don't find satisfaction in my work, it's just ancillary, and so far, not a requirement.

[1] https://www.huffingtonpost.com/leonhard-widrich/the-origin-o...
Considering the content of some of the op-eds I read, this prospect is more worrying than the idea that nobody's thinking is affected by them.
That's assuming that all panels are outputting their max all day every day. Obviously not the case, since night and clouds exist.
That is a very fair point.

Teaching in the UK at least seems quite faddish. At the moment, pre-teen children are taught extensive vocabulary to talk about how English is constructed.

They are taught terms like "split diagraph", which sound liguistic, but aren't terms actually used by linguists!
China has rightly realized that poisoning the population and polluting the world will not make its wealthy people any wealthier, nor will it help the country grow economically.

The USA, on the other hand, still firmly believes that coal, oil, and other poisonous, polluting substances that harm citizens and life across the whole world, is worth it because the owners can still make money doing it. Rather than tell them it is illegal and to stop harming us, we give them subsidies and tell them to speed up (drill baby, drill! [1] coal jobs! [2] removing subsidies for renewables [3]! bomb them and take their oil! [4] etc).

This won't make the rich any richer, not in the long term. It will destroy the livelihoods and bank accounts of the people who would have otherwise spent all their money on products and services that help the rich get richer.

If America really cared about capitalism, it would work quickly to shut down the polluting industries by force and replace them with reusable energy. By definition, American capitalism has a near-term local maximum, defined by its choice to intentionally not be a sustainable, growing, economically viable civilization.

[1] https://en.wikipedia.org/wiki/Drill,_baby,_drill

[2] http://www.politifact.com/truth-o-meter/promises/trumpometer...

[3] http://www.newsweek.com/trump-set-slash-energy-subsidies-han...

[4] https://www.thedailybeast.com/trumps-take-the-oil-madness
So much this, if an engineer is paid $50 a hour and it takes 30 seconds to load a prompt. Loading the promt just cost the company 40 cents. If they have to run that promt 3 times a day then it's $500 a year that can be saved by just optimization.
TDM: From Model-Free to Model-Based Deep Reinforcement Learning
It's true solar capacity factor is between 10-25%, so nameplate isn't terribly useful. With that said, the rate of solar being installed isn't slowing down, and more fabs are coming online each year.

I would be shocked if there's any fossil fuel generation online in 10 years, 15 tops.

https://www.pv-tech.org/editors-blog/global-solar-pv-manufac...

https://www.pv-tech.org/editors-blog/planned-solar-manufactu...

https://www.power-technology.com/comment/global-pv-capacity-...
The alternative is for our field to have a strong organization that vets it's members, like any other professional field such as lawyers and other engineering disciplines. That way, before you even meet the person, you can assume a level of competence and can get into much deeper questions faster.
Most software projects functional tests are sequentially executed and don't have intricate failure driven scenarios(not to the extent of a robot on mars). I mean the robot is prone to unpredictable damage on an uneven surface. There is also the issue of signal loss + delay in transmission.

If you are writing code for the transmission engine module for example, would you write test cases for all connected subsystems that might fail? If so, I imagine the dependency between systems probably gets really complicated and almost impossible to remember. So how do you ensure all systems respond and behave correctly in all possible known and unknown failure scenarios.

Edit: I just realized this is no different than writing code for cars. I guess there are protocols in place and as long as your parts conform to the standards, the complexity is reduced.
A cross platform terminal theme to take a more relaxed view of things
If only we lived in a world where developers could just distribute their application binaries to the end user without having to rely on a storefront.
An HDR picture requires, among other things, sufficient stability and time to capture all of the light, shades, tones, etc.

It's more likely that the sensors in the Uber setup are set for fast processing, i.e., less light per frame, rather than for visual fidelity, i.e., more light per frame. After all, faster processing is more important to a vehicle traveling 60 mph than sharp borders. If the shutter time is set low enough, you would get something similar to what Uber released even on a DSLR.

Also, as others have pointed out the Uber video was from a dashcam. The point of the dashcam was to record events in the event of an accident, not be a high-fidelity visual record.
The new "datacenter" restriction only applies to GeForce branded cards. The Titan V is now called the "NVIDIA Titan V" and with no GeForce branding to be found anywhere.

So the restriction applies to the 1080ti but _not_ the titan V. I completely agree the restriction is total bullshit but it's important to get the facts straight.
Robot Vera will find employees for you
And there's the conundrum. Autosteering can help you in a moment of inattention. But by nature it also encourages moments of inattention. It is far from clear that this is a net safety gain.
For those reasons, I like Xfce and LXDE on Xubuntu and Lubuntu, respectively. I use those for workstations, they've got the same CLI features as Ubuntu, and I don't need or want a bunch of GUI chrome in my dev environments.
Conor McGregor Charged for Assault || John Cena Responds to the Rock ||
I'm not sure how you can value it at 5 or 10 times when earnings have been in the red since at least 2014. Also, Intel made $10 billion profit each of those years.
I think it's important to hear from varied sources, not just numerous ones. So many people talk about how they read a variety of sources to get balance, but then their sources are the Washington Post, PBS, NPR, the New York Times, and the major US cable news networks, which don't exactly represent a wide range of opinion.
Assuming that they want the number of 1 bits (the question asked for the number of bits, not the number of 1 bits--hence my answer), it is not obvious to me that a lookup table is the fastest.

Given an unsigned 32-bit value, v, this well-known bit hack [1] counts the number of 1 bits:

v = v - ((v >> 1) & 0x55555555);
v = (v & 0x33333333) + ((v >> 2) & 0x33333333);
count = ((v + (v >> 4) & 0x0F0F0F0F) * 0x01010101) >> 24;

If you can treat the 10000 16-bit values as 5000 32-bit values, applying the above 5000 times might be as fast or faster than applying the table lookup method to 20000 bytes. It will depend on precise details of the particular computer on which it is run.

[1] http://graphics.stanford.edu/~seander/bithacks.html
And he wrote on comparably broad topics, e.g. Bible, Antique History, Shakespeare works, Biology, Chemistry and space exploration.
Maybe this is different nowadays, but my initial experiences with Cinnamon a few years back (right when I first switched to Mint in light of Ubuntu's Amazon Lens debacle) were very strongly negative. It was ugly, unstable, slow, difficult to customize, and in general just as shitty as GNOME 3 was at the time.

MATE, on the other hand, was/is fantastic. GNOME 2 already was just about perfect for me, and though I was willing to give Unity a try, I was disappointed that it was so different from GNOME. MATE filled that void in my heart like no other DE could.

Xfce is also excellent, and is what I'm using at work right now (though I'm looking into switching back to a tiling WM, since I feel like I'm more productive with it).
'The man with 2 brains' could soon be a reality!
Just to have some context, the very same Pwnie "lamest vendor response" award was given to the OpenBSD project in 2007.
Lots of good points here. I think the key takeaway is that there are really two classes: the labor/wage class and the capital class. As long as you’re in the labor class, you’re trading your time for money and by definition will never see more than marginal gains over your wage class peers. The only way to truly pull away from the pack is to join the capital class, otherwise you’re stuck in a hamster wheel, even if does have a golden track.
Iirc Jim Keller's title was VP and chief of the microprocessor division. So he was probably more of a technical manager anyway. I believe Suzanne Plummer and Mike Clark were project directors so they'd be more hands on anyway
The best way I know is to delay introducing the new abstraction until you have enough material to justify it. This means tolerating more repetition than you want the program to have in the long run, but only temporarily, while you build up a repertoire of cases that can eventually be abstracted away. You wait for the code to tell you how it 'wants' to become shorter, rather than trying to decide the primitives in advance. It's still just a bet that an abstraction will prove useful—i.e. will allow you to write future cases without thinking—and it still might not work out, but this puts the odds in your favor.

It works the other way around too: when an abstraction such as a Lisp macro turns out not to be a good fit, simply inline all its usages and delete the macro. This makes the program more repetitive, but only temporarily, while you wait to spot a different abstraction that fits the material better. This again is listening to how the code 'wants' to be: if you get resistance (increased complexity) while moving in a certain direction, backtrack.

I try to give every concrete case veto power over a new abstraction. That is, if I've got six cases of a pattern in my code, and five can nicely be shortened with a macro but one is stubborn and refuses, I tend not to write that macro. I used to, but have observed that such abstractions tend to need undoing later. Instead, I'll hold off, tolerate temporary bloat, and wait for more cases. Perhaps when there are nine or ten, I'll get a new idea for a language construct that can express all of them nicely, and then I'll add that construct in the way that pg describes. It's like the Tao Te Ching says: "If you want to shrink something, you must first allow it to expand" [1]. When you hit on a good way to compress code, it feels like a satisfying click [2].

With such an approach, the program seems to breathe: expanding a little and contracting a little, but never straying too far from simple overall. Lisps are the best medium I know of for this. You get finer and more immediate feedback from the material of the code: less is consumed by the noise of the language itself, so it can be adapted to fit the problem better. Your brain fills up more with the dance between problem and solution instead of the externalities of the tools. And you have a wider range of tools for actually working the adaptation. The result feels more like molding clay with your hands than carving bricks with a chisel.

1. http://taotechingme.com/chapter-36-if-you-want-to-shrink-som...

2. https://www.npr.org/2010/12/30/132488837/The-Behind-The-Scen...
I went through all of them and I did not see any regret minimization background. If you think there is, please point me to it and clear my misunderstanding.
The whole point of vim and emacs is that you can do everything from the keyboard and not have to switch your hands to/from it. Fancier versions (like Macvim, which I use) support the same basic premise.

Now, certainly, with the fancier GUIs you can absolutely use mouse inputs. But it's quite a bizarre scenario where someone would be using an interface narrowly optimized to use the keyboard for everything, and yet still consistently use the mouse to exit "like every other application". The reason you use emacs/vim is to keep your hands from having to leave the keyboard! Why would you do that and yet not use the standard command for quitting? Not even ctrl/cmd-Q?

The parent is right to be suspicious of someone claiming extensive emacs/vim experience while using the mouse as a default option for a frequent, required command.

FWIW: I'm a Macvim user that has never quit it by clicking an X even though I know it's possible (at least for the individual windows). Although also FWIW I don't use the vim window feature and would fail questions about that.
Because pollution doesn't travel across city borders (In SimCity 4 at least), you can build a bunch of coal plants in your neighboring city, set up a neighbor deal for power in your "real" city... boom, clean air. For your citizens, at least.
This comment is excellent (except for the proven slip-up), but you probably knew that.
After having to stay late at work to rotate our certificates after Heartbleed, I co-founded the Linux Foundation's Core Infrastructure Initiative [0] to help improve the security of OpenSSL and other open source projects. That, and conceiving and helping build the Best Practices BadgeApp [1], were immensely satisfying.

[0] https://en.wikipedia.org/wiki/Core_Infrastructure_Initiative

[1] https://bestpractices.coreinfrastructure.org/en
How many fuses does it have?
And all examples in question would be labeled "false negative"s.
Is there going to be a next part about ensembles of trees? Thinking boosting / random forest.
This isn't the max population though, is it? It'd be interesting to see neural nets play this game given different win conditions.
AWS yes. Nvidia, not so sure. When you buy a 1080ti you are competing with gamers and miners (and maybe others). There's nothing to subsidize, in fact those cards are selling above MSRP, because they aren't selling an ecosystem but a physical card.
That's a ridiculous question. $10k says you don't have kids.

I have 3. 15, 14, and 7. I'd give anything to have more of their precious moments saved so that I could reminisce and stroll through those periods once more.
That's interesting. I've been listening to the Koyaanisqatsi song for a while and absolutely loving it, I never realised that it's a movie as well. Definitely going to give that a watch.
You cannot preserve a moment nor a feeling. If you value your memories based on a audiovisual capture of events you are missing out on actual feelings of remembrance.
Is there a weak connection when one literally powers the other?
...but cripple your intelligence
It is also enough to power 8 DeLoreans!
I guess as long as those catch 100% of the issues. Even still you're solving the problem on the backend instead of the source.
The Post-Millennial Generation Is Here
If the Koch brothers owned the sun, the US would be 100% solar powered.
Why hasn't EPYC picked up stream? It's been a year since release, some say they were already selling as many as they can. GF capacity problems again?
Hopefully there isn't one of the cyclical collapses that China has also historically experienced any time soon, where that central authority atrophies and splinters into warring regions. Rebellion and warlordism always results in a lot of dead people and massive destruction when the centralized government falls apart in China.

https://en.wikipedia.org/wiki/List_of_wars_by_death_toll
What they're not saying is that one can't use all nvlink bandwidth for gradient reduction on a DGX-1V with only 4 GPUs because nvlink is composed of 2 8-node rings. And given the data parallel nature of this benchmark, I'm very interested in where time was spent on each architecture.

That said, they fixed this on NVSwitch so it's just another HW hiccup like int8 was on Pascal.
It also describes stocks, and anything non-tangible which you can sell for money. I'm not sure what your point is, unless it's just "cryptocurrencies are like money", which was the point your parent was making with that statement about tokens in games. The part that makes it gambling is that you gamble with them, which maybe you can argue you do with cryptocurrencies, but the fact that they're "virtual" isn't really relevant to the question of whether buying them is "gambling". You can of course buy physical items such as art in the hopes of selling them at a profit, and buy "virtual" items such as bonds which are not very risky at all.
It's part of a trilogy, and Philip Glass did the score for all three.

https://en.wikipedia.org/wiki/Qatsi_trilogy
The Newest Brain Wave in Epilepsy Care
Revealing when you get downvotes but no replies to a comment written with nothing but kidness and good intentions.

People really don’t want to think about the morality of their choices.
If you want to jump/upgrade, simply add

deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse

deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse

deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse

deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse

to /etc/apt/sources.list

hit apt update && apt full-upgrade

If things look okay (it should upgrade a bunch of packages, add quite a lot new, and remove only a handful), hit enter.
> A lot of the commentary (and what I thought and said myself) was of the sort, well yeah, of course the NSA is spying on everybody using our woefully insecure digital infrastructure!

The funny thing was that I used to think like you do, but Snowden's leaks showed that to be false. They spied on everybody in certain war zones, but in the US, they only spied on some people and only had a limited ability to query pen register metadata on all Americans.
Make sure you scroll down inside of the footnote tooltip thing. Not obvious that you can do so!