skysight-inc/HackerNews huggingface dataset:
Everyone talks about refactoring code. What I don't see enough discussion on is refactoring tests.

It's a constant battle at work, and I tend to be firm with: "If the test is working, no matter how horrible the (test) code, leave it be."[1]

For regular code, we rely on tests to validate our refactors. With test code, we don't have that support.

If you have a bunch of tests that could do with a refactor, and your motivation is that you need to write more tests, then set up whatever abstractions you need and write the new tests, but don't touch the existing tests! If you really want, you can overtest: Write new tests with your refactored code that test the same thing as the old ones. It's OK to test the same thing multiple times (when testing is cheap).

About a third of the time a coworker looks at my tests and refactors them, he makes an error - the most common one being not testing what the original test meant to test. See, the reason he wanted to refactor was that the original test was hard to follow. And because of that, he failed to interpret it correctly and failed to properly reproduce the test in his refactored code.

I then have to code review all his refactors. I have to spend time to figure out what my difficult-to-understand test did, and confirm he didn't introduce bugs. It's very, very tiring. And for what?

And he's not a newbie. He's as good at SW as I am. Plenty of experience. If he gets it wrong, I expect most people will get it wrong. With a higher error rate.

This is the one case where I say: "Feel free to overcomment." If you took a long time understanding a given test, write out what you learned so that the next time you read it, you know what it does. I'll be happy to code review that.

[1] Unless you are the original author of the tests, and they are still fresh in your mind. In that case, refactor all you want.
What's the current best free ($) coding assistant? I like Gemini + VS Code, but it seems a little hamstrung by what VS Code extensions are allowed to do.
There is no redirect.
I think it's pretty unfortunate .xyz domains ended up having such a bad reputation. I know when the tld first came out it was extremely cheap ($1 for the first year?) so I suspect anyone who wanted a good deal grabbed one.

Obligatory: https://abc.xyz/
the author has put a lot of unpaid I'm guessing work into this repo -- seems reasonable for the author to demand a bit of work out of any asshole taking a potshot at it.
“Copilot puts the human at the center of the creative work that is software development. AI helps with the things you don’t want to do, so you have more time for the things you do.”

… until we train our model on your usage data and totally replace you
Don't compete with or emulate SpaceX, investors urge – SpaceNews
College admissions have (until very recently) operated under a different jurisprudence than businesses.
Fight fury & drama with fury & drama?
I see also a general loss of interest of the population towards EVs. The technology is kinda new, yet they already arrive enshittified from the factory. Who wants touch screen hot air controls?

Besides, range concerns and a lack of charge stations are another nail in the coffin for EVs in the EU.
I think you might be talking about a "body farm"

There are many organizations and universities that perform similar research. I.e forensic anthropology
High discharge rate + high energy/mass density optimized chemistries usually have the worst charge cycle degradation. LFP doesn't have top discharge rate or energy/mass density, it trades some of that off for improved long term stability.
Funny how this person constantly accuse someone for being illegal or fraudulent why commiting biggest heist in history.
Go for international movies. A lot of them have incredibly convoluted rights, so the biggest expense is going to be negociations, but if you can become a destination to find obscure films from varied countries, it might be possible to eke out a slice of the pie.
80% SoH is the de-facto industry standard for EoL/replacement. Mostly because after that you will eventually get a "knee-point" in your degradation curve at which operation is risky and largely inefficient.

Without knowing specifics, your MBP might have had issues with an individual cell such that initial capacity dropped significantly until the cell was disconnected.
Cannot overstate how important investigations like this are as the polycrisis continues to accelerate. This is great work
Mistral releases its AI assistant on iOS and Android
Updating a large codebase to Rust 2024
'It's tectonic': US foreign aid freeze deals a blow to research around the globe
Li-ion != LFP.

LFP is incredible, but LFP batteries are 5x larger than li-ion. The two aren't comparable. You won't find LFP batteries in cars nor smartphones.
Very cool! I'm working on a similar agent, but FOSS (https://github.com/ai-christianson/RA.Aid) --It'll be really interesting to see how the GitHub agent works.

On first impressions, it looks like they are taking the route of integrating tightly with VSCode, which means they'll be competing with Cline, Cursor, and Windsurf.

IMO it might be good for them to release this on the web, similar to the replit agent. Integration with GitHub directly would be awesome.
Presumably the increased cardiovascular disease risk from animal protein in general, most evident in processed meat, then red meat, then other sources in order of effect size.

Not so sure about cancer risk outside of the colorectal cancer risk associated with processed meat and unprocessed red meat.
Accommodations for people with autism who might have different needs for things like noise levels or interviewing procedures would be a classic DEI effort.
LFP is 3000 cycles last time I checked.

NCA, a very common LiIon chemistry, is only 500 cycles as the article rightfully claims

The article is anywhere from 'correct' to off by 600% depending on which LiIon chemistry. But that's the nature of such a wide chemistry, there's so many LiIon out there it's hard to generalize.

NCA / NMC is common for phone and even EV applications though. So it's not necessarily wrong and both have similar endurance specs.

> Anyway, the article carefully avoids talking about energy density. Which is of course the key thing here.

No one cares about density in utility scale applications. It can be heavy as all heck but as long as it's cheap it will be an effective solar or wind battery.
A felon defying the law? Say it ain't so!

Congress has the power to stop him anytime they so choose to do so. We The People have the power to file lawsuits and get injunctions against unlawful executive orders. There's a process for doing these things. Yes, it's frustrating that Trump can burn things down faster than we can rebuild them, but that's just the nature of destruction.
I suspect there is a bimodal distribution here.

Eggs are perfectly fine if you don't have a genetic predisposition to high cholesterol.

My genes are bad though for this so eating a 180mg of cholesterol an egg is kind of foolish. If I want to raise my cholesterol on a blood test, I can't think of anything better than eating a ton of eggs. Of course not all the cholesterol is absorbed but if even 10% is 18mg an egg I don't need.

Personally, I quit eating cheese and eggs to avoid having to be on a statin. It has worked so for on a blood test.
All of what? They asked a single question about a single data point and your suggestion doesn't even make sense.
At some point scaling up you start to compete with giant pile of heated sand. And it is tough capacity/price benchmark.
not sure, but apparently

> Cursor is the fastest-growing SaaS company of all time from $1M to $100M in ARR, hitting the $100M milestone in roughly 12 months at the end of 2024—faster than Wiz (18 months), Deel (20 months), and Ramp (24 months).

Source: https://sacra.com/c/cursor
It has improved but you're missing out if you aren't using the big ticket features. I tab myself to solutions, too, but if there's a react view to do, I dish out the composer and am literally 10x faster - what would previously take a day now takes an hour. If there's an interface to create out of a json blob, I paste the blob and just tell it to make an interface, then clean up the types a bit, etc.
When refactoring tests, some form of mutation coverage [0] would be really nice. Verify that the tests break when the underlying code changes.

[0] https://en.wikipedia.org/wiki/Mutation_testing
I don't think that calling people who don't share your belief system "delusional" is the way to get them to pay any attention to what you have to say.
Interestingly, the history of this kind phenomenon is the other way around. Einstein introduced special relativity in 1905. Well before that, around 1889, physicists started to notice that the Lorentz transformation was necessary to get a self-consistent description of electric and magnetic fields.

In the 16 intervening years, physics classes must have been rather confusing: how did people feel about transforming coordinates into a moving frame in a manner that pretty much required length contraction, time dilation, and simultaneity violation before anyone really believed that the universe actually worked that way?
Oh wow, 45 articles is still feels like a lot.

Link still isn't loading for me. I'm forced to assume it is a problem on my end, at this point. Going to be hilarious to find this is from some sort of content block on my side.
When it comes to AI ROI, IT decision-makers not convinced
> Bcrypt is a password hash, not a KDF

I feel gross calling a function that just blatantly ignores part of its input a hash, much less a password hash. It's like calling a rock a fish, because they're both in water, despite the lack of swimming. In any case, a hash that ignores some of its input is certainly not a cryptographically secure hash, so why is it being used for crypto?
Years?
Downvotes for suggesting biodegradable tires. What a site of wankers we have here.
> I miss having a wide selection of screensavers on my Mac.

i've used https://www.jwz.org/xscreensaver/ for over a decade on macos (currently on 15.3).
But if you're using bcrypt to compute a dictionary lookup key, you're not going to use bcrypt.compare as it would require a linear scan and be slow as a snail.

Rather you use the bcrypt output itself as the lookup key. And if you do that then the salt will indeed do what it's designed to do.

The function you used is a convenience function which generates random salt, but you can specify your own as is done in this[1] illustration of the Okta incident.

What bcrypt.compare does is essentially to extract the salt from the provided previous output, compute new hash using that and the provided password, and check that the old and new hashes matches.

As such it's equivalent to comparing the outputs of two different "runs" where the same salt is used (modulo timing attacks).

So if you need to recompute the lookup key then you need to use the same salt value.

[1]: https://kondukto.io/blog/okta-vulnerability-bcrypt-auth
Youtube enforces its own terms of service, not them. They just bullied you into removing the content so they can keep their ad revenue from the views without having to compete with you.
I downloaded Insiders and installed Github Copilot Chat, getting:

"GitHub Copilot Chat is not compatible with this version of VS Code. Please make sure that you have the latest versions of the extension and VS Code installed."
If we're just racing to the cheapest available reactants, iron flow batteries are going to win that race. And, unlike these others, there are already iron flow batteries on the grid.
I think this is the biggest mistake of not hiring Juniors/Mid-Level.

All Senior Engineers were at one point Junior/Mid-Level who had other more Senior Engineers to learn from. :)

That said, every company is different -- maybe it works for Gum Road.
Did that now. Let me know if it fixed the issue for you.
> reducing or removing alcohol all together (my company) from social events for inclusion reasons is excluding people who like consuming alcohol at social events

Reducing or removing alcohol at social events is not done for "inclusion reasons" but for straightforward legal liability reasons: a drunk employee often has poor impulse control and may do or say shitty things that they wouldn't if they were sober, and with some probability this results in lawsuits against the company. No drunk people at social events -> fewer lawsuits.
ARM does have a few pain points for new comers related to how immediates are embedded within instructions. It can be non obvious why a certain immediate or offset can be used but not another.

Granted, this extends across a wide range of assembly languages, but it'd be nice to start with a instruction set without this issue.
It can suggest terminal commands and ask you to execute them

People were already blindly copy pasting commands from StackExchange answers, but at least those are moderated. I wonder how long it takes before someone nukes their project or root directory.
I'm not trying to be glib, but why? As in, why invest the energy here, with YC, given how much the program has changed and how much less intimate new founders have indicated its become?

A different reading of the question: your service seems specific to YC. Any plans to broaden the offering for other accelerators?
I tried it last month on a medium size personal project and was blown away by the autocomplete. I'd previously staunchly refused to try it on the grounds that I'm too productive in IntelliJ, but at this point I'm most likely going to start paying for both.

I don't know if I'm ready to use it as a daily driver, but there are certain kinds of tasks—especially large refactors—where its ability to rapidly suggest and accurately make the changes across a file is incredibly valuable. It somehow manages to do all of that without ever breaking my sense of flow, which is more than I can say for Copilot's suggestions.

And yeah, I'm with you that autocomplete is the way to go. I think chat is a red herring that will have long-term negative effects if it's used extensively in a codebase. Autocomplete keeps you in touch with the code while still benefiting from the co-pilot, and Cursor's UX for that is far and away the best I've seen.
Unfortunately, that also tends to come with the inability to turn upnp (or any port forwarding whatsoever) back on.

For example, I'm paying double the local market rate of a 1gbit connection for ~150-300mbit connection, and I can't even change my WiFi password or SSID. That's just how everyone expects renting to be these days. It's not worth the hassle to fight it, so I just hack around with tailnet instead.
There's zero chance that this ends well.
The last aluminum battery discussed here only had about 40% of the volumetric density of Lion and did not mention wh/kg, just w/kg. Which sounds a lot like lying with statistics.
Inb4: not my area of expertise, but I worked with a company that was providing data on movie rights. The way I understand it is that it's a Cartesian explosion of complexity under the hood. There are at least rights to a version of the movie and the soundtrack/theme song. They can function independently in a region and are granted exclusively or non-exclusively in a region based on timing.

As a bit of a contrived example, you want to distribute Superman 4 in China for a year. You have to secure rights to the film, but you cannot secure rights to the score from the US version as the license is not compatible. You have to get a license-compatible score and make sure the movie complies with the Chinese censorship. And the licensing periods have to overlap.

Multiply that by however many regions you want to distribute the movie in and add accounting complexity for each region.
I'd written off AI autocomplete as pointless after trying GitHub Copilot's a year ago.

But Cursor's tab-autocomplete is actually really useful. It feels like it very much knows what I'm up to.
Southern California Edison acknowledges link between equipment and Eaton fire
> What is wrong with IRC

The UX sucks (even if there are a thousand UX's and some of them don't suck, they get drowned out by the sucky ones) and the friction is too high to get started.

> and mailing lists that everyone jumped to Discord?

They did UX right and lowered the friction. I doubt Discord actually poached users from IRC, they just made chatting great again.
This book has some nice cuttable flexagon templates on thicker paper, with designs:
https://www.amazon.com/Fantastic-Flexagons-Hexaflexagons-Oth...

The designs are fun, although I find that the thicker paper actually makes them a bit harder to fold and flex than typical printer paper.

If you find flexagons interesting, you might like trying to find a copy of Martin Gardner's "Scientific American Book of Mathematical Puzzles and Diversions" at your local used book sale. The first chapter is about flexagons and it gets better from there! Wonderful car ride, plane, etc. distractions.

https://www.amazon.com/Scientific-American-Mathematical-Puzz...
I can imagine that the DRM part is a difficult problem, however, why is DRM so important and require so much focus? I ask as the end goal of protecting the content is meaningless as I’ve yet to see content that does NOT end up on Pirate sites in perfect quality. (so why put so much effort into drm if it’s going to end up on pirate sites anyway.). Especially if DRM is causing UI issues or slowing down the experience.
(I could be wrong about some of this as I’m not in the streamin specific industry.)
Aren't checked exceptions the same as effect systems in the narrow case of error handling?
Interesting, will mention this to friends who are dating
Scala 3 Migration: Report from the field
Makes sense cause everyone went to Wiz, Deel and Ramp.
Musk's Brazen Cost-Cutting Campaign Is Annoying GOP Senators, Treasury Staff
for the paywalled: https://archive.ph/Ib2yr
I wish cursor was an extension of VSCode and not a fork.
> It reminds me of a similar application I heard about recently from a friend who teaches language classes using ChatGPT or equivalent to generate dozens of example sentences to teach specific grammar rules.

I'm not surprised that ChatGPT is being used this way. I used to teach ESL via the JET Programme and a lot of my job was about creating games and exercises that allowed students to get varied practice. I created or extended at least a hundred games in my 5 years there. These games weren't all successful, but the ones that were hit a cross section of:

1. repeatability (enabling pattern matching)

2. variation (just different enough to make it not mindless pattern matching)

3. difficulty curve (range of problems)

4. and fun.

As I learned the hobbies and personalities of all my students, I was able to get a higher success rate on 4. Being able to reuse games across multiple years helped me to fine tune 3. But nailing down 1 and 2 were always a challenge because of scale. A lot of times that was solved through instructors jumping in and adding new wrinkles on the spot. That worked well in the small schools I taught at (sometimes 3 of us for 20 students) but I don't think it would have worked as well in larger classrooms. I get the sense that using LLMs in creative ways has the potential to help solve the scaling problem.
The many names of commit 55039832f98c
Linux has many trees and a large subsystem makes plenty use of cherry-pick commits. These can be hard to track since there is little built-in tooling for it.
Surprisingly, I have discovered that whatsapp AI chat works well for those one-off queries on the phone when I am away from the laptop.
I had a look more into this. https://www.reddit.com/r/openwrt/comments/114kv0y/weeding_ou... has some people with the problem that I'm trying to avoid.

I see the fresh re-install suggestions probably work but that's tedious and risky.
See, that's what I mean about ignoring all of American history to come to your unitary executive theory.

The Constitution establishes control and checks on that control. "checks and balances". Unitary executive theory is all control, no checks. How does Congress conduct oversight of the executive branch in this scenario?

And you're also trying to do the same thing to me right here. To accept that unitary executive theory isn't about being a king, I'd have to ignore everything the advocates of the theory have said and done. He argued in court that he has absolute immunity to commit crimes, including directing the government to kill his political opponents. You can't argue that in court and then tell me it's not about being a king. That's dictator logic.

Look at the executive right now, he's essentially got the power of a king. He can't be arrested, charged, or investigated. Can commit crimes and hide them. Can direct others to commit crimes and pardon them. Can direct his DOJ to investigate and prosecute anyone he wants. Can control and direct his military without review. Congress can't conduct oversight. Can you explain how the president is now functionally different from a king, and square that with the point of the Revolutionary War?
I make at least trip one trip a week. Why would I need to go every day?

I may stop by a store again during the week for a smaller trip if there's something I really need, or pop to a corner store if I need to grab something like drinks for guests, but it's not out of my way.

It's really not a big deal. Bike panniers can hold a ton.
Well, if any of these movies ever end up in a box like this I'm going to feel ripped off. That's the prestige those movies have now lost.

https://shop.warnerbros.co.uk/products/warner-bros-100th-ann...
Haha great story.

I'm glad they've finally worked out how to cook perfect boiled eggs, but what a palaver! I always use the Queen Elizabeth method:

Queen Elizabeth II preferred her boiled eggs cooked to a very specific standard. According to her former chef, the eggs were boiled for exactly 4 minutes, ensuring a soft-boiled consistency with a runny yolk and set white. This precision was crucial, and the eggs were always brown, as she believed they tasted better than white ones.

Bear in mind that her house, Buckingham Palace, is huge and it took some time to transport her boiled egg from the kitchen to her breakfast room. So make sure you rest the egg for 2 or 3 minutes before cracking open if you follow this technique.
And that assumes that the Western owners of those systems have any reason to listen to you, the one raising the complaint. How would they check that you are not lying?
nuke a project or root is the best case scenario
People are sleeping on codeium. I've found their AI assistant to be much better than cursor
Rebooting is not necessary unless you have updated the kernel.

Microsoft has generated billions of hours of bullshit labor pretending otherwise.
Why is this marked as a dupe? The other one was flagged out of existence: https://news.ycombinator.com/item?id=42960756
Probably won't apply to you but for rackmount I have a Gigabyte GA-IMB410TN + Pentium Gold G6405, in a 1U Logic Case SC-1280, with a quad-port 2.5 GbE Realtek PCIe NIC (r8125) to supplement the motherboard's dual 1 GbE Intel NICs (igb & e1000e).

The motherboard can run off of 12-19V DC input via 5.5mm barrel jack (e.g. any old unused high-power laptop charger), or 12V via a 4-pin CPU EPS power connector (they are commoned together). Since the case comes with a 250W 1U Flex ATX power supply, I'm doing the latter.

This lets me take the PSU's 12V rail out via the barrel jack (edit: with 18 AWG cable, I know) to power the modem and a couple of TP-Link 2.5 GbE network switches which all run on 12V, saving 3 wall warts. Both switches are velcroed to the top lid with 20cm patch cords for 2.5 GbE ports 1 and 4. I have 5 LANs at home, so the 6x wired ethernet ports this gives me are perfect.

OpenWRT runs pretty great on amd64 and I've been running the v24.10 branch (pre-release) for several months on it without issue.