skysight-inc/HackerNews huggingface dataset:
By default, `createAction` accepts a single argument, which it then includes as `action.payload.` This requires the least amount of code written to define the action creator, but requires the dispatching code (such as a click handler) to correctly format the payload contents. It aims for the 80% use case by default.

However, yes, there are many cases where you might want to accept multiple arguments for an action creator, do additional work to define the contents of the payload, or generate unique IDs as part of creating the action. That's why `createAction` also accepts a "prepare callback" as its second argument [0] [1].

`createSlice`'s primary benefit is to remove the need to write action types and action creators by hand. All you have to do is write your reducer functions, give them meaningful names, and you get the action generated creators for free (and the action types effectively become an invisible implementation detail).

We've always told folks that it is not required to have a 1:1 mapping between action types and reducers [2] and that many reducers can respond to a single action [3], but realistically speaking, most actions _are_ only handled by one reducer. Again, `createSlice` handles that 80% use case by generating actions that correspond to that given case reducer in the `reducers` argument, but also allow you to handle the "events" case by listening for other actions in the `extraReducers` argument. (And, the `reducers` argument allows defining "prepare callbacks" as well if desired [4]).

So, in both of these APIs, we solve the 80% use case by default, but allow handling the additional 20% if desired.

Most folks won't need to be calling `createAction` themselves given the existence of `createSlice`, but there's no reason to _not_ have it as part of the public API (especially since `createSlice` already uses it internally).

[0] https://redux-toolkit.js.org/api/createAction#using-prepare-...

[1] https://redux-toolkit.js.org/tutorials/intermediate-tutorial...

[2] https://redux.js.org/faq/actions#is-there-always-a-one-to-on...

[3] https://redux.js.org/style-guide/style-guide#model-actions-a...

[4] https://redux-toolkit.js.org/api/createSlice#customizing-gen...
Two things come to mind:

1) Smart switches don’t add colors to your bulbs.

2) Bulbs are a lot easier (or at least less intimidating) to install than switches.

Although I do agree that the smart switch sounds smarter than the smart bulb.
The primary reason is that 13 is prime. 12 is a better number in this case for a few reasons.

12 is what we already have. So nothing would have to change in that regard. We could keep the names as they are, despite the fact they are out of order as it is.

I used to think the same way, but after seeing this calendar, it would be easier to integrate this into what we currently have, just the amount of days have changed.

And, this calendar would work well with businesses. Most businesses are based on quarters. Not that it is significantly more difficult to track 13 weeks (they would be static after all), the pushback would be less, arguably.

And the world calendar is cyclical, just on a quarterly scale, rather than a monthly scale. I'd argue the monthly cycle makes more sense. But the math of the Earth's rotation doesn't make for a nice calendar.

I feel the world calendar would be easier to integrate, and a little nicer (I am a huge advocate for base 12 anyway, that's always been a big hangup for me for the international fixed calendar).
Around 2am. Good times on dance floor. Well those that didn't succumb to the sketch food first

22h00 to 11h30 was brutal though. Lull post dinner and everyone was just waiting
> ML is certainly valuable for speech recognition, translation, and fraud detection, but those are somewhat niche applications. It's a long way from "every tech company, large and small".

Those were just some of the most visible examples. OCR, image recognition, NLP and speech recognition alone are enough to revolutionize most data entry jobs and we'll see a ton of startups using them to do just that for every industry.

There are countless other examples of machine learning applications, including drug discovery, radiology, production line quality assurance, etc.

> The ads I see online are still laughably bad.

Have ads ever been good? You see the ads that you're seeing because someone is paying a lot of money to put them there.

Bloomberg spent 120 million on ads last month, ad platforms had to find eyeballs for them.
If I had to implement it, I’d do a two stage system. If you install a tracker you pay ten cents per mile. If you don’t have a tracker you have to report mileage every year and pay twelve cents per mile plus a $40 processing fee.
Giving each citizen an account at the central bank. Then everyone will have access to "real" money digitally (not only via cash, which is currently the case).
The sentence, though worded a bit awkwardly, is not implying there is anything strange about Asians, but it is implying that anyone who has dozens of phones in multiple lines is odd.

The many phones is what makes the person "not ordinary."
> When the beef industry's lobbyist in Washington first tried one, he called his people and said, "Guys, we have a problem".

Source? This just sounds like a story made up for advertisement.
Kena.ai launches Kena Opus, its short-form musical expressions platform
Universal Nomic
There's micropython for the esp8266... not sure if ruby has been ported
I'm not sure if this is mentioned in the thread, but one of the reason it takes so long for the requests to return is when GQL initializes the entire record in memory and then reduces it back to only the fields you wanted. This can be a big problem if you have a deeply nested data model, and potentially many results. The memory consumption can hit the roof. I find that the best approach in those cases is to create a one-off REST endpoint (or to create a field higher up the GQL hierarchy) and handroll the SQL query.
Universal Nomic is the simplest possible standard Nomic derivative. It begins with a single, mutable rule:

> Rule 1: You must change this rule.

I would love to get a game going. Please feel free to fork and start one.
>what's your rationale for putting the "smarts" in the bulb and not the switch

People are afraid of electricity and don't want to replace a switch. Anyone can replace a light bulb though, so it's default solution for the kind of person that doesn't own a screwdriver. It's definitely an inferior approach, but I suppose it fulfills the needs of a certain segment of the market.
FWIW, our recommendation has always been to focus on learning React first, and _then_ learn Redux once you're comfortable with React. That minimizes the number of new concepts you're learning at once, clarifies the differences between what React and Redux are and how to use them, and helps show why Redux might be useful alongside React.
How about making a (slow) medium/large format camera with a linear sensor from a scanner?
I think his point is (and yes, he could have put it more nicely) that this sort of articles often turn into Android bashing and praising Apple which unfortunately steals attention from an important discussion.

This is specially annoying when people who don't understand the subject immediately enter the discussions to promote a company/product pretty much regardless the context.

I'm sad that OP was heavily downvoted and later flagged.
https://www.interfluidity.com/, on economics and economic philosophy
In a sense, you are already virtualizing your workspace in macintosh-chic :)

Perhaps your coworkers would be required to execute a perfect Japanese tea ceremony before interrupting you.
Reading the thread, this isn't a "dark side of GraphQL" but a "dark side of not understanding how to debug/improve performance in my software dependency".
Not only is it still possible to find a bank that works without a smartphone, at least in America you'd have to go dramatically out of your way to do business with a bank that only works if you have a smartphone.

The number and quality of banks that work without a phone is so much higher than the number of banks that require a phone, it's barely even worth mentioning.
Heh, software in general, absolutely! But I think the "Web 2.0" is the worst offender: https://nixpulvis.com/ramblings/2018-08-11-web-shit-point-oh
The Most Beautiful Science GIFs We Discovered in 2019
Actually, free viewing isn't the problem. Production is. I'm sure if Disney were offered a choice between "Allow everyone to view old content free" and "Allow anyone to make Disney content," they'd pick the former.

Copyrights make sense for producers for a large span of time, just not this large of a span of time.
The cash for clunkers program paid $4k to everyone with an old car. A couple of hundred dollars for GPS trackers (and transmitters, which is presumably what is meant) seems well within the collective budget of all parties who pay for cars in the US.
I think libraries are a better fit than public schools, and some already have maker spaces, seed banks or gardens, and opportunities for continuing education. With funding provided by a dedicated library district (which is increasingly common) in addition to private foundation support, these institutions can have a significant positive impact in the communities they serve.
There's an injectable vaccine that doesn't contribute to reactivated polio. Also, the oral vaccine doesn't "give" polio to the recipient. The person stays immunized, but then in rare cases may be spreading reactivated polio to third-parties.

So it seems like the injectable vaccine will be strictly preferable if the nOPV strategy fails. It's only disadvantage is that it does not prevent the recipient from spreading polio to others if they become infected, and it looks like that disadvantage may have been illusory anyway.
For every successful product, there's at least 10 free tools that do the same thing (or something similar). It's not crazy at all - people (in particular larger companies) need support, assurances the product will still exist/be maintained in the future, etc. A lot of people will pay you just so they have a human on the other side of the line to talk to, in case things go wrong.
IMAP cannot operate on a whole thread at a time. Ironically you will hardly notice the difference when operating with the web interface, which is very much thread based, but it can be useful to apply a label to a whole thread if your interaction with GMail happens in Thunderbird or mutt. For example, I have a Google Apps script that adds a label to a whole thread whenever someone CCs me on a bug, so that the entire bug suddenly pops up in the "my bugs" Thunderbird folder, including messages prior to my being added.
https://www.filfre.net/ for an amazing trip trough the history of gaming!
Demographics if nothing else. I am now betting that China is going to grow old before it becomes rich, I think they made a good try but will end up losing that race. China has a gender imbalance that is going to cause serious problems over the next decade, both due to social disruptions caused by a staggering cohort of men who will never find brides and by the hit these 'missing families' will have on the next generation.
It's wrapped up in a new concept because it's a complete re-architecture. You do almost everything differently with DOTS. And its driven by the CTO and Mike Acton from what I can tell.

I've been making a game with DOTS for the last year, so I've been following this pretty closely. DOTS is what convinced me to use Unity because I hated the old Unity way of doing things.
I've tinkered with Airtable a bit and it's a solid product. It's a "database" shown in the style of a spreadsheet. With a number of great features, but of course you got to pay for that.

The plan limit for free I get. However overall I think they use the records-per-base limit as their major "please don't use us for anything automated" function. You couldn't, say, build a light CRM on anything less than the enterprise version because 50k records (for pro aka $20/user/mo) just wouldn't cut it.

For those people who need database type powers for a very very small company - it's really impressive. Anyone larger...probably builds something themselves.
Their money can market both that nuclear is safe and they’re to be trusted. Plenty of oxygen for both.
I feel like that logic is better handled at the reducer level. Trying to think of an instance where it would be absolutely necessary to track state like that in the action. I'm probably missing something, what would be an example?
AI will attain perfect scores on international math and computing olympiads. Toward the end of the decade we'll see AI solve an unsolved Clay Millennium Problem.
Japan Loves Robots, but Getting Them to Do Human Work Isn’t Easy
You sound a hell of a lot like the TempleOS guy.
Sure, some people may find being a garbage man to be even erotically stimulating, but that doesn’t mean the majority of garbage men think it’s all that great. It’s a relatively pointless observation.
Here's new blog post about a powerful way to make your website faster.

https://volument.com/blog/spa-the-biggest-website-performanc...
No. The API's require authentication to function.
Hi everyone! Please share what you consider to be the most important in life?
I'm new to the cyber world and have a few questions about how this works under the hood since my exposure to memory management is really minimal. Why did we have to mess with this shellcode within the injector (dlinject.py) rather than just somehow identifying the PID of the target and loading the injected code directly? Is it not possible via some simply python call to perform the injection, and is that why we're playing with the x86?

Also, would this work on systems with ASLR?

Could malicious code be obfuscated, transformed, and then subsequently injected into a process like explorer with this dlinject.py? What are our limitations here?
Other than your own biases, what makes you think the current Adminstration has any greater or lesser interest in making the markets appear stable or rosy? I mean, didn't Bush and Obama both do this very thing? And Clinton before them? Seems like every political adminstration does it.

Clinton kicked off the housing bubble when he signed the law that repealed Glass Steagall. Bush doubled down. Obama could have been a reformer when he took office, he could have said "no more QE" but he didn't do that--he doubled and then tripled down. If anyone is to blame here, it is Obama because of what I just said. There was a clear opportunity to reject Bush's policies and that didn't take place.

Honestly, I don't expect a crash. If we didn't see one in 2008/9 then we aren't going to see one now, either. A correction? Sure, why not? But who cares? Are you retiring in 1-5 years? If you are, why is the money you want to live on invested in stocks and bonds?
The problem with all these predictions about VR taking over, is they seem to pretend that visual sense is the Holy Grail of VR immersion we've all been waiting for. But that's a far cry from what was imagined in The Lawnmower Man or The Matrix. In reality we have 4 other senses to take care of first.

In the mean time you just have a display that obstructs your view and which can't be tolerated for more than a couple of hours.
I think this is a fair critique. Many people who are drawn to public speaking probably tend toward the "vain" side of the personality spectrum.

Anecdotally, I acted in a play when I was in college. Almost every person in it was studying acting, and the level of self-absorption was overpowering at times.

All that said, speakers and topics are only a small portion of what I find valuable about attending a conference anyway. Most of the opportunity for learning and advancement comes in meeting other people you wouldn't have been able to connect with otherwise.
The GPS thing is a no-brainer, as we need it to replace fuel excise taxes.

As for the rest, no way. The GOP has pivoted to being the rural party, and rural folks can not afford drone cars and will be paralyzed without them.
I really doubt dashcams and gps will be required in the next decade but I bet installing them will get you a discount of some kind.
> Would you buy a car if it eats 100 liters per 100 kilometers? How about 1000 liters?

I think the analogy here is backwards. The better question is "how much would you prioritize a car that used only 0.05 liters per 100km over one that used 0.5? What about one that used only 0.005L?". I'd say that at that point, other factors like comfort, performance, base price, etc. become (relatively) much more important.

If basic computer operations like loading a webpage took minutes rather than seconds, I think there would be more general interest in improving performance. For now though, most users are happy-enough with the performance of most software, and other factors like aesthetics, ease-of-use, etc. are the main differentiators (admittedly feature bloat, ads, tracking, etc. are also a problem, but I think they're mostly orthogonal to under-the-hood performance).

These days, I think most users will lose more time and be more frustrated by poor UI design, accidental inputs, etc. than any performance characteristics of the software they use. Hence the complexity/performance overhead of using technologies that allow software to be easily iterated and expanded are justified, to my mind (though we should be mindful of technology that claims to improve our agility but really only adds complexity).
Taxes and demand based tolls.
You're nuts if you think the USSR didn't have penicillin and other antibiotics.
"Python haters always say, that one of the reasons they don’t want to use it, is that it’s slow."

There are no critics nowadays, only "haters". This word usage irks me. Someone who does not use Python because he thinks it is too slow does not "hate" it.
Don't Shave That Yak (2005)
Get a slower-paced job? I'm assuming you're in the Bay Area by the mention to world's most expensive market - there's plenty of very high paying jobs here where you don't exactly have to worry much, and it isn't particularly hard to get them.

You can also go a very long way by using a small portion of your income to pay someone in a cheaper location to code for you. You can literally pay a full time engineer somewhere else if you stop eating lunch + one starbucks out every day, for instance!
1:

As a user: boldly use new social networks that fit this mold and allow your social circle to grow to embrace them. Participate with the network on its own merits and the new friends you can make, not the based on whether or not your old friends are there. The only way to solve the network problem is to ignore it.

As a dev: don't build new walled gardens. Consider how to connect with the existing ecosystem - and crucially, how it can connect back to you - when designing your next project. Prefer collaboration over competition. Prefer small, interlinked communities over large silos. Distribute costs across the network, by letting volunteers shoulder hosting costs through grassroots "local" fundraising efforts.

2: Nice! It would be cool to organize a simple cirriculum for privacy literacy and start reaching out to local libraries, schools, etc, about giving talks or classes.
who exactly does that help?
> For that matter, one could for example take the Windows NT 4.0 source code, add in drivers for the necessary hardware, fix boot code, linking, etc to be compatible with late model computers, spruce up the UI with better font rendering, antialiasing, 24-bit color wallpaper, OpenGL rendering even--and in the end, you'd have something just as functional as Win 7/10 but at 1/4 of the bloat.

You've almost described ReactOS!
> I just don't find arguments like "well if you lived in this random address in the City of Austin it probably wouldn't be walkable!" very interesting, sorry. Austin is 271 miles squares and SF is 46. Nobody should throw a dart (in any city) when selecting where to live and then make very location specific claims about the city (or region, state, country) as a whole based on their experience, IMO.

The claims I've been making have been about the city as a whole. Don't try and twist this around into me making the argument about a random address not being walkable, because your entire argument has been taking a random address, claiming its walkable and then trying to extrapolate that to the rest of Austin.

>I mean... it's illegal to build anything except a single family home in most lots in Austin. NIMBYism is the problem. What else about Austin makes it "designed to grow outward" other than the zoning? How else do you push back against landlords and the high cost of land but via more units per acre? I assume you'll mention public transit, but I don't think any city built out a subway/rail system before it had some level of density. It's a chicken and egg problem and we need density in our urban core before we'll be able to pass more funding for transit, sadly. And we definitely can't afford to have a super great bus or rail system serving low density neighborhoods with low ridership.

I never denied NIMBYism isn't part of the problem, but it is only part of the issue. The other half of the issue is the glorified car culture in and around Texas where people value driving more than they do other forms of transit. This can't be illustrated any better than the amount of sidewalk islands Austin has where buildings or malls are surrounded by sidewalk that connects to nowhere. Because everyone drives to the building next door, because cities like Austin grew outwards and spaced buildings and places accordingly.

Your second claim about subway/rail systems isn't correct because New York and Seattle both proactively added new forms of public transit to fit a growing population, rather than trying to retrofit public transit after the population has already blown up. Austin in this scenario isn't even trying to add more public transit, but rather expand highways while people complain about the metro rail being too 'cost inefficient'.

Most people don't chose to add car commutes, this era of white flight is less about moving to the suburbs and more about gentrification and pushing out the poor and minorities from locations closer to the city.
How to make a $1500 sandwich in only 6 months [video]
There are apps that filter all colours equally, but it's not nearly as good as reducing the backlight brightness would be. When 0-255 is remapped into 0-127 (or lower), you're inherently going to start losing the ability to distinguish colours. Unfortunately, you lose contrast a lot faster than you lose brightness via that method, so it's not very useful.

I wonder if a physical filter for the screen might be the simplest method.
I agree. Except for mass manufacturing and stolen tech, most chinese tech is smoke and mirrors at the moment. Chinese research is famously low-quality given that most researchers are paid by the paper.

I hope their fusion and quantum experiments are real, and not PR lies like the soviet union used to do in the 80s.
Interesting post. I haven't that much experience with Godot, but I found the recently published YouTube Video where Juan explains the source code quite interesting: https://www.youtube.com/watch?v=5RIPRlCvRAk
But do learn how to avoid the grocer's apostrophe.
This might help : https://automatetheboringstuff.com/2e/chapter18/
So you argument is pointing to someone who disagrees with him? Someone like Krugman who repeatedly have been wrong on almost anything.

Why don't you point to something Navaro has been wrong about in the context of this discussion.

Despite the trade war, the economy is doing great so it's a little puzzling where you get your certainty about their inability to do this when they've actually proved you wrong.