skysight-inc/HackerNews huggingface dataset:
A minor correction above, the last phrase is supposed to read "why we prioritized annual over monthly pricing", as described on the linked GitLab handbook page.
Hydrogen Peroxide from Tea and Coffee Residue: New Pathway to Sustainability
> Not allowing developer to hand write CSS is a great restriction for a good bunch of developers.

I agree, main point is that I think there are better tools for large codebases. We had a "no CSS" rule where we used bootstrap components and utility classes only.
its too bad there isn't a way to block the nytimes on hacker news
> 1) clutters the HTML,

Or, it makes your HTML far more representative of the state of your application, rather than having to open up a CSS file and match to the class name + whatever madness you have going on in your SASS with mixins and conditional style logic.

> 2) leads to repetition and makes people break the DRY principle (yes, you should extract to components, but people don't always do that)

Blindly following DRY is dogma. Not everything can (or should) be a component. The number one mistake I see with new React developers is "over componentization", where everything is a sub component, and now I'm digging through 5 different files to work on a feature. Use the "rule of three" here. The first time you write something, don't even think about making it a component. The second time you write it, start planning how to generalize. The third time you need it, make it a component.

Copy/pasting is OK. Declaratively laying out your UI rather than generating it through configuration is OK. Having no abstractions is better than a bad or even mediocre abstraction.
Ask HN: SwiftUI Layout Concepts in React
I’ve been a React dev for several years and used to enjoy it more, but recently I’ve gotten more frustrated by how time-consuming the styling is. It feels like most of my time is spent messing with CSS and divs.

I just recently learned SwiftUI for a side project and it’s been a breath of fresh air. I love the simplicity of the different Stack types and how the modifiers can chain together. I love how the layout engine works and how intuitive it is to determine how to space things out. It feels so easy to read, write, and take a design from blank space to completion.

I’m wondering if there are any libraries in React-land that are similar. I’ve come across Chakra, which looks somewhat close, but a glance at some examples make it look a bit more complex. Has anyone either used Chakra and can comment on it or used other React/component libraries that bring SwiftUI layout concepts to the web?
Doctors are trying to determine the cause behind Sudden Adult Death Syndrome
Honestly, I'd be in favor of banning Christmas lights.
"250/year with bonus and equity options" is what I'd seen - not very helpful.
This year we finally moved to the US after 2 years of Covid-induced delays. We moved to Seattle because it's where my team is based.

I'm far from impressed. The housing market is so inaccessible that we had to rent a house about 1 hour commute from the office. I have hardly visited the offices a handful of times since we moved, and every time there is maybe 1 or 2 people there. Also this spring seems to be one of the wettest and coldest in recent memory.

So high prices, dreadful weather and no value from visiting the office is making us very seriously consider moving to a southern state. I have already brought this up and my manager is ok with me going fully remote and coming to the office on an as-needed basis. For anyone who has no roots or reason to stay here sounds like a no brainer.
Our country’s finance minister was asked about the high price of onions - a key staple in the Indian diet - and she quipped that she doesn’t care because she doesn’t eat onions.

Our rulers are cruel, intentionally so.
That’s assuming you move faster with a given dependency and that there isn’t some non obvious mismatch between it and what you try to accomplish.
For me, and many people I see, the root cause is that sugar is addictive. You eat some sugar, and then you want to eat more later. That's basically all there is to it (for me).
Comparison chart of all cloud services offered by major public cloud vendors
This vision reminds me of David Brin's "Transprent Society"[1], which I believe doesn't take in to account that the wealthy and powerful will be able to afford much more privacy and surveillance than poor people. The former will also be able to bend laws, technology, and the rest of society to their benefit and to the detriment of less powerful, poorer, and less well-connected people.

[1] - https://en.wikipedia.org/wiki/The_Transparent_Society
At the very least, MS is probably just "collateral damage" of a law which could help low earners gain more transparency. If you're already working at MS or any big tech, odds are you aren't part of the target audience. Doubly so since information from big corps is pretty readily shared and available already.
Right now, I am a little ambivalent on the market as well.

I think if you can get the latency situation more under control, then I see an opportunity for extremely high-end competitive gaming experiences to unfold. When your gameplay is streamed to you as x264, it becomes far more impractical to cheat at the game. If you never played a competitive shooter, the psychology of this may seem alien to you. There is a substantial impact on the amount of fun many players experience in high-stakes gaming situations when there is even the remotest sense that someone isn't playing by the rules.
> Isn’t that more of a class distinction than a decision for most people? The rich will invest either way, and the poor won’t. Both will buy food.

There are more than two classes. The bottom 60% might be running on fumes, but the 60% to 70% might be thinking about foregoing spending $2k on a road trip that they can choose to invest instead, and the 70% to 80% might be thinking about a $4k Hawaii trip that they would forego. And the 80% to 90% might avoid $10k on an international destination. And the 90% to 95% might choose to invest $5k in the market instead of buying first class seats and put an extra $50k in an IRA as opposed to a new car.

> You’re saying that’s obviously foolish and people should be investing right now despite potential indicators of a recession?

Yes. Buy low, sell high. If you need to sell within a few years, then stick to cash or bonds. Although, what I actually meant by “easy no brainer” is that it is dead simple to invest in all equities at basically no cost due to the availability of extremely low cost broad market ETFs like VOO. Anyone can invest in the whole market for cheap within seconds of logging into their brokerage account.

As I wrote in another comment, for money you need within a year or two, stick it in an FDIC insured saving account, for money within a few years, put it in VCSH, and for money you do not need for a long time, put it in VOO or VTI or similar and forget about it.
"Real People" users yes, now that most "systems" are containers or VMs, the number of users that are real people might be one or even often zero.

But most linux services run under their own user identities, so even in that case you will likely have several if not dozens of users on a typical server, the idea being that if the "nginx" user is compromised, the "postgres" user is still safe. Also why it was a bad idea to have services running as "root" (or "system") as was more common a decade or two ago.
A 2080 in a laptop for $800 must've been quite the deal, even with GPU prices dropping I can't find anything similar to that in price/performance ranges right now. Even right now the price for a new laptop with that chip in it seem at least 1.5x to 2x higher. $1200-$1500 seems to be the bare minimum for a laptop with that chip, and the cheaper ones tend to come with worse cooling and power caps that will significantly hinder its performance. Are you sure you're not forgetting a 1 in front of that 800 dollar price tag?

I can't find any new laptops with dedicated graphics for $500. You can find laptops with an AMD 5500U for that price, but I doubt you'll be playing RE Village on that.
It's amazing to think that we had already hit peak gigahertz, and multi-core was just starting to become a major "thing" at the time.

Even with the advances in the M* chips from Apple, it seems the "chip wars" are basically over, at least on the design choice side of things.
Building an engineering playground. It doesn't matter what business problem the tech solves, the tech itself is the goal even if it produces no useful output as long as the (self-inflicted) complexity convinces investors to pour even more money into it.

The current recession suggests the investor money is becoming scarce and you actually need to find other sources of income, so all the useless complexity is being cut back.
At a certain level of complexity, necessary to support everything a large company does at their scale, simply mindlessly churning out more code actually makes things worse not better. The big question is how to do something and not the actual work of doing it. Bringing down Facebook for a day due to a bad config is going to cost more money than a century of someone writing code.
Regarding tables, don't use tables. :)
> So they could agree to a new lower price and Twitter shareholders would still make the same money relative to the recent value of the stock

What? So let's imagine I bought 10000 shares of TWTR in 2018 for $25. And now Musk wants to revise the offer down from 54.20 down to 34.20. Why should I accept a $200k smaller return, just to be more "fair to Elon" in terms of the effect on his net worth?

Or worse, what if I bought 10000 shares close to the peak? Why should I accept a $200k larger loss on the stock?

He made a contract to pay a certain price - it's in no way a wash to shareholders if he wants to pay less. He just made a bad deal. Nobody forced him to sign a contract to acquire Twitter at that price.
Yes, please. Ban both bitcoin mining and junk mail; there are absolutely no downsides to this.
I'm currently building a product[0] for that use case. Give it a try and let me know if it satisfies your needs

[0]: https://ktool.io
It doesn’t really matter. In a toxic work environment - any dissenters are immediately pushed out. This is because toxic work environments have no intention of changing and need everyone to be a yes man. If you are not a yes man - you are managed out or fired.

It’s a lot of gaslighting. This is why it’s a toxic work environment…
The RE4 remake for Oculus is truly an amazing experience.
We're looking into adding support for other browsers but don't have a concrete timeline yet. You can upvote that here https://composeai.canny.io/integrations/p/add-support-for-fi... so we can keep you posted.
I think culling dependencies is smart, but the selection of which to cull (or at least consider) is a high art.

Does this dependency generate a lot of vulnerability issues? How stable is it? If it has a high change velocity, how stable is the API or whatever portion you use?

At a previous job, someone was advocating for this repository software which I shall not name. I did a Visio diagram of all of the major things on which it depended: Solr, Ruby on Rails, and so forth. It looked like the Tower of Babel. I then colored the blocks in this tower in if that project was written in a programming language we didn't have expertise in.

Well, they went with it anyway. The job is in the rearview mirror but consultants continue to work on this project.

Frankly, the dependencies in the project alone were enough that one would need a reasonably-sized team to even consider it, much less the paltry number of bodies we had to throw at the problem in the middle of all of our other tasks. Don't get me wrong -- you can build amazing things by stacking together predefined blocks, but life is always going to try to Jenga that tower you have created.
US Justice Department offers blueprint for more ‘innovative, secure IT
Agreed, but if it ever gets to court, the presentation of the facts also matter.

Hopefully the two groups bickering will come to some sort of agreement and save the many millions of lawyer fees, but who knows.
Nit to pick: States can and do regulate interstate commerce all the time. California once banned the import of foie gras into the state, and IIRC are planning a law banning the import of foreign oil. Some states ban the import of firearms they don't wish to exist.

Whether they should be allowed to engage in the regulation of interstate commerce for activities that occur entirely extra-state is probably more along what you intended, but even that you could probably find allowed or as-yet-indeterminate exceptions to.
Could it also be that the pageview method is not accurate?
I'm no fan of the Conservatives, the "political" "party" responsible for said laughter and ridicule, but it's important to point out that that video [0] is of Question Period, which, much like Britain's (and presumably other Westminister parliamentary democracies), isn't decorous at all, unlike normal House proceedings.

Rather, QP is reserved for gotchas, laughter, and ridicule -- which doesn't entirely absolve the Cons, but it should be seen as less "mask-off evil" and more "unnecessarily theatrical, but about something actually genuinely important rather than a meaningless political scandal". So, callous, and uh, approaching evil, but not there yet.

The "some MP" in question is Jagmeet Singh, the leader of the NDP, Canada's perennially second-banana left-wing party. To translate the status of the NDP into American: you can think of them as those third-party candidates who'd actually usher in change, but thanks to FUD everyone votes for one of the two neoliberals [1].

[0] https://youtu.be/mvzrfn9szsA?t=1907

[1] https://frinkiac.com/caption/S08E01/1276507
It's not binary, it's "is the recession going to happen in the next few months/years", so the prediction is a number. More like D20 in one of the neighbour threads. But not necessarily a D20, could be a D6 so less impressive.
Legally, a company is subject to state laws of their state of incorporation (usually Delaware, for various reasons) _and_ their state of 'domicile', usually where they are headquartered. They are also subject to state laws in states where they operate.

So yes, in this situation, even if MS were incorporated in Delaware, Washington state could pass laws that bind how the company acts anywhere in the world.

Washington also isn't the only state passing this style of law. Putting up the systems and processes to comply with this law only for Washington-based positions would probably not be worth it.
I wonder when they changed it. Haven't really paid attention to guns etc in a while
This project seems to wholesale ignore "terraform modules" in it's claims about reusability and modularity. Most of the problems it solves are already solved.

The description and marketing are very mixed. It generates bespoke Terraform based on... vague descriptions? "Give me a postgres DB" seems to be the level of input from what I can tell. It then goes off to create one and give you the TF it used? I was really hoping this was "automatically generate Terraform FROM AWS" to import existing resources.

This sounds like the SaaS-ified version of Gruntwork.io, where they give you best practices templates and leave it up to you to fill in the particulars.
"In economics a prediction itself can alter the object of the prediction. Hence, for certain kinds of ecomomic phenomenon, forecasting can be a logical impossibility." - Kaushik Basu.

I think recession definitely falls under this category. And calling out a recession while we are already in it is not really a prediction.
Right, but for (1), what does blockchain specifically bring that, say, a normal cryptographic signature does not?
I find it hard to believe people running large retail operations believed the fed and whitehouse when they uttered the word "transitory" when everyone else pointed to the money printer still going full throttle.

It's their fault for going along with the narrative the fed/whitehouse + media were pushing.
This is completely missing the point of why one needs privacy. Lack of it harms journalism and activism, making the government too powerful and not accountable. If only activists and journalists will try to have the privacy, it will be much easier to target them. Everyone should have privacy to protect them. It’s sort of like freedom of speech is necessary not just for journalists, but for everyone, even if you have nothing to say.
Don't give up your firearms, Canadians.
Rollong a 20 vs not 20 is binary, but that doesn't mean it happens 50% of the time.

Recession or not is binary, but that doesn't mean we have a 50% chance of entering one on a given day.
It's citizen-soldier. Roman farmers took over a good chunk of the ancient world before having a professional army, American clerks and tradesmen landed in Normandy.
Everyone has realized what colleges and "enterprise" sellers realized years ago - nobody will pay $10 for a Big Mac if you sell it for $6, but if you price it at $10 and offer even really easy coupons to get it down to $6, you will sell a decent amount of $10 Big Macs.
Yes, if you want crazy hight DPI and a SOTA camera you pay more than $400.

I don't play AAA games and I need a camera good enough that I can read text I've taken a picture of with. I haven't spent over $200 on a phone in about 10 years (I think it was the NA version of the HTC One X).
I save all SYN packets on my router, it's noisy but a useful audit trail:

tcpdump "tcp[13] & 2 != 0"

Yes, I'm aware malware could use UDP/ICMP. It could also domain-front on 443 and I'm not under any disillusion this adds meaningful resistance to malicious software; it's just interesting to observe.
Over thousands of periods. And each time the prediction was no the outcome was no, and among the few times the predictions was yes it happened 50% of the time.
Would have thought Arch Linux would have more of a case for their package manager (Pacman) seeing as now it could be confused with an exploit.
Regarding writing "one-sentence-per-line", I've noticed that style before in LaTeX. While I don't use that style, one advantage that I like is the ability to include comments on the sentence level in LaTeX.

So instead of this:

First sentence. Second sentence. % Comment on first sentence.

I can write:

First sentence. % Comment on first sentence.
Second sentence.

(Of course, one could define a new TeX macro that doesn't display anything to add comments anywhere in-line. That's not as readable, though.)

I've also read that one-sentence-per-line works better with diff programs, but I haven't had any problems with the program meld, so this isn't convincing to me. The advantage the linked article mentions in terms of rearranging sentences also is worth considering, though I haven't found the normal way to be that bad so I'm not convinced by that either.

Some other links on this coding/writing style:

https://rhodesmill.org/brandon/2012/one-sentence-per-line/

https://news.ycombinator.com/item?id=4642395

http://www.uvm.edu/pdodds/writings/2015-05-13better-writing-...
DaisyUI is a nice approach and hope it succeeds. We were looking to use that until we realized it's almost identical to Bootstrap, and that we were just using Tailwind as an elaborate way to make a custom Bootstrap theme at build time. Company decided to go with BS5 instead.
There's a bit more nuance here than merely Citi wants to reverse a wire transaction. The article explains they were servicing debt and accidentally paid the loan off early (rough summary). The debtors could argue they had no reason to suspect error and viewed the payment as settling the loan.

New payments contracts now include "revlon clawback" clause. The blockchain analogy is a buggy smart contract that gets fixed.
Odd that OP would give a grim warning without an equation.

I graduated in 1991 with BSEE and the curriculum was a rush to get us to diffeq and linear systems because 90% of the remaining three years of classes were taught using S and Z plane analysis. My engineering professors were incapable of introducing a concept without starting with a differential equation.[1]

For the author to spend so much time explaining control theory, then sort of give up on it, was disappointing. Ironically, knowledge of control systems and warnings about them should pervade the thought process of the thinker and prevent them from making grandiose claims. Perhaps OP only has a topical knowledge but can spin a good yarn.

[1] I'm a career programmer, but I always start my thoughts with a d/dt: whether it's an RTOS project, a graph GraphQL endpoint, or USB driver. I guess "if all you have is a hammer..."
Also start interviewing elsewhere. Life is too short to work at a place like that with your talents. There’s many other companies that would happily put your skills to use under better working conditions.
also being discussed at https://news.ycombinator.com/item?id=31693490
Mind boggling to me that you could get a 500k mortgage at 3% interest rate in the US.
> Or china in response to a terrorist massacre, wages a campaign to assimilate, brainwash and sterilize an entire culture without any intention to start an actual military war. Which results in detainment and people losing their freedoms all in the name of preventing terrorism.

It's hard to attract sympathy towards your argument when you straight up admit that sterilization of an entire culture is going on, which yes indeed makes it worse than Afghanistan and moves way towards genocide.
That particular framing only has "power" if we give it. Once you open that can of worms, you will struggle to put it back. Next up we get white, yellow and red. Take all the words out there that use those and imagine what chaos and hatred it'll cause when we start trying to accommodate everyone.
Except, you know, for actual tables. :-)
The 10-2 is the better predictor and the more-often cited. Confusing why they used 10y-3m here
You still need a sandbox escape before this mitigation kicks in.
Russia is a convenient excuse. It's not the reason. They cancel the XL and other pipelines but pressure KSA to produce more. The whitehouse has even admitted they are using this situation to push their stated agenda of transitioning to more renewables (noble, but not consequence free). They want to eat their cake and have it too. Reality does not work that way.
Adlink ahoy
Almost any feedback system can also be used a weapon.
This works for blog posts, where the body of the document is one long block of paragraphs, but I suspect this style would quickly become untenable for complex apps. Indentation _is_ information, which is lost here.
Have you tried moving the pyramids? Pretty difficult I hear :)

On a more serious note, when I went to see the pyramids, the guide pointed out several rows of nearby tombs for the laborers who built the things, talked about how they were free skilled laborers, and in fact treated quite well (for the time at least).
Thank you so much for sharing that! I had no idea how much I even needed this, my classes tend to get incredibly messy and it'd always bothered me.
Ask HN: What are you working on this weekend?
Just curious what everyone is working on this weekend.

For me, I am working with Unreal Engine this weekend. Unreal allows you to select Actors (the objects in the game), but if you optimize to display a lot of items (Instanced Static Meshes), it doesn't easily allow you to select a subset with a rectangle. This weekend, I am determined to find a way to select a subset of these Instance Static Meshes.
> If you're not all in, you're not in at all.

Seems like black and white thinking. There's a big spectrum between those two extremes, and no good reason you can't healthily occupy a point on that spectrum. In fact, many points on that spectrum are probably a lot more healthy than either extreme.
Local repoman is now doing AAA auto service and towing because repossessions completely dried up during covid with deferrals, etc.

I suspect that's going to start up again soon.