Better HN
topnewbestaskshowjobs
Log inSign up

Merad

2,800 karma · joined Mar 14, 2015 (11y ago) · 772 submissions

Submissions

comment 1y ago · link · parent

I have to agree. I've spent about 2/3s my life in houses with heat pumps and the last 5 years with a gas furnace (the rest being wood heat as a child). Mostly in Western NC and Eastern TN near the mountains, so chilly but not extreme cold.

Heat pumps work, but they aren't nearly as _pleasant_. You can write essays about the efficiency of heat pumps, how lukewarm air works just fine to warm the house, how heat pumps are great _most of the time_ and you can supplement with space heaters or whatever when they fall short... But as long as furnaces are accessible and affordable, an awful lot of people are going to choose to have nice warm heat that is always going to be nice and warm regardless of the outside temperature.

comment 1y ago · link · parent

You will have the same problem if you build a Linux container image using scripts that were checked out on the windows host machine. What's even more devious is that some editors (at least VS Code) will automatically save .sh files with LF line endings on Windows, so the problem doesn't appear for the original author, only someone who clones the repo later. I spent probably half a day troubleshooting this a while back. IMO it's not the fault of any one tool, it's just a thing that most people will never think about until it bites them.

TL;DR - if your repo will contain bash scripts, use .gitattributes to make sure they have LF line endings.

comment 1y ago · link · parent

The web operates in a very different world if you've invested in good tooling. I used to be lead on a modestly sized payment processing back end to the tune of about 100 transactions/second (we were essentially Stripe for the client facing apps at the company). In many cases our monitoring and telemetry let us identify root cause in a matter of minutes. Not saying that is or should be the norm for all web apps, but what we had was not too far off from a read-only debugger view of the back end app's state throughout the request and it was very powerful. Of course for us more often than not the root cause was "the bank we depend on is having a problem" so our knowledge couldn't do much other than help the company shape customer communications about the incident.

comment 1y ago · link · parent

Crockford base32 [0] is the best compromise, IMO. Reasonable length of 26 chars. Uses only alphanumeric characters and avoids issues with case sensitivity and confusing characters (0 vs O, etc.).

0: https://www.crockford.com/base32.html

comment 1y ago · link · parent

> Anyone who has taken linear algebra should know that [...]

My university level linear algebra class didn't touch practical applications at all, which was frustrating to me because I knew that it could be very useful to some background doing hobbyist game dev. I still wish I had a better understanding of the use cases for things like eigenvectors/values.

comment 1y ago · link · parent

I built a memory tool about 6 months while playing with MCP, it was based on a SQLite db. My experience then was that Claude wasn't very good at using the tools. Even with instructions to be proactive about searching memory and saving new memories it would rarely do so. Once you did press it to be sure to save memories it would go overboard, basically saving every message in the conversation as a memory. Are seeing more success in getting natural and seamless usage of the memory tools?

IIRC at the time I was testing with Sonnet 3.7, I haven't tried it on the newer models.

Repo here: https://github.com/mbcrawfo/KnowledgeBaseServer

comment 1y ago · link · parent

You might have an option to enable it in BIOS that's turned off by default, that was the case for my desktop PC.

comment 1y ago · link · parent

I've been using .Net for almost 20 years, professionally for half that time, and I feel like excitement and momentum in the community has only been increasing.

comment 1y ago · link · parent

For basic CRUD like is emphasized in TFA you probably only need EF models to represent the db and DTOs to form the input/output contracts of the API. Many .Net shops (claim to) do DDD and will have an extra layer of domain models, but if you understand that your API is primarily CRUD they're just unnecessary complexity.

While you won't be able to share your back end models with the front end, OpenApi spec generation is pretty much automatic so you can generate the models or client code.

comment 1y ago · link · parent

I made a MCP tool for fun this spring that has memory storage in a SQLite db. At the time at least, Claude basically refused to use the memory proactively, even with prompts trying hard to push it in that direction. Having to always explicitly tell it to check its memories or remember X and Y from the conversation killed the usefulness for me.

Repo: https://github.com/mbcrawfo/KnowledgeBaseServer

comment 1y ago · link · parent

So what happens if the application shuts down before the file is processed? I get the appeal of a simple solution, but I don't know if I can ever recall a situation where "push work to the background and no one cares what happens to it" is ok.

comment 1y ago · link · parent

My experience with Github Copilot and Python has been that it _does_ generate better code completions for Python. It's sometimes shockingly good at predicting what you want to do in the next 30-50 lines of code based on a few well named variables. But that shockingly good code is also filled with hallucinated classes, methods, parameter ordering, etc. which completely negate its usefulness.

comment 1y ago · link · parent

I doubt if they're using raw MS or Open AI models (because the whole thing would have to be HIPAA compliant) but yes, some doctors will now ask if you consent to them using AI tools to transcribe the appointment.

comment 1y ago · link · parent

I've upgraded apps from every version since .Net Core 2.0. The upgrades always take a few hours, maybe half a day (with the exception of 2.0 to 3.0 which took a few days - many breaking changes). It's well worth a few hours per year to get the advantages of newer languages features, enhancements in Asp.Net Core, security and performance enhancements in the .Net Runtime, etc.

comment 1y ago · link · parent

Csharpier is the best option available. I've been using it for 3-4 years now and had success getting it adopted at my last two companies on greenfield projects. It's not exactly an unknown tool - nearly 2k stars on Github. But a lot old school .Net companies just don't seem to have much interest in auto formatters because they've been working without them for a long time.

If you're using csharpier you don't need to use Roslynator formatters. No issue with the analyzers package. The csharpier docs have info on what StyleCop rules need to be adjusted so they can work together. Personally I don't use StyleCop anymore as it seems to be fairly dead, and I don't really feel the need for things like enforcing file layout or naming.

Edit: Also I will add that unless the landscape has changed recently, I believe csharpier is the only C# tool that has deterministic formatting good enough to enforce code formatting checks in CI.

comment 1y ago · link · parent

First, in most states it is not legal to point a weapon at someone unless you are in a situation where you're legally allowed to pull the trigger. That is, you are legitimately in fear for your life. In that situation you will likely have very little time to act in self defense.

Second, racking a slide is an action that requires fine motor control. Under the pressure and adrenaline dump that accompanies a life-or-death situation, fine motor control goes to crap. If you are fumbling with your pistol, it's useless.

Third, if you don't feel comfortable with your ability to safely handle a loaded gun, you probably shouldn't be carrying at all.

comment 1y ago · link · parent

I've been coding for 20 years, I very much like having git info in the prompt. Even if it doesn't tell me everything (and it often doesn't) it _is_ a reminder that I have uncommitted changes, or haven't pushed yet, or a stash that I might have forgotten about.

I played with Starship for an hour this morning - the joys of 50 person planning meetings - but ultimately uninstalled it. I did like some of its options like command timing and success/error, but all the tool versions ultimately just felt like noise. Not worth the effort to maintain a complex custom config to trim it down to what I'd want.

comment 1y ago · link · parent

Oblivion has multiple NPCs with complex schedules that involve travel between cities. And yes, you can run into them on the road. Best example is the countess of Leyawin, once a month she visits her mother in Chorrol (opposite side of the map) along with her personal guards and advisor.

comment 1y ago · link · parent

Are you really so sure? I think the vast majority of Americans would have expressed the same sentiment less than 10 years ago.

comment 1y ago · link · parent

Generally speaking these days I think that small planes with manual controls (i.e. your private pilot's Cessna) just aren't capable of going that fast. Most of the planes that will be able to go that fast in a dive will have hydraulically boosted controls if not full fly by wire systems.

However this was a real problem during WW2, and high speed dives killed more than a few pilots. By 1942-43 most fighter planes were able to dive fast enough to get into trouble (500+ mph/800 kph) but weren't designed for it at all. The aerodynamics of supersonic flight just weren't understood at the time. In some cases the design of the plane made it essentially impossible to pull out once you went beyond a certain speed, all you could do was attempt to slow down enough to regain control. The P-38 Lightning was notorious for this. I don't have any specific sources handy but I recall reading accounts of things like pilots bracing their feet against the control panel trying to pull the control stick with all their strength, taking extreme measures like lowering the landing gear to slow down (risking it being ripped off and maybe tearing the whole plane apart), or only surviving due to sheer luck - sometimes the thicker air at lower altitudes would slow them down enough before it was too late.

comment 1y ago · link · parent

> Deciding whether something is netFramework 4.8 or .NET Core 5 or NET3000 or nEt5 or NET Common 2.0 is impossible. Isn't that one of the most basic things that should be easy.

What do you think happens when you try to use Python 3.9 to run a script that depends on features added in 3.10? This is inherent to anything that requires an interpreter or runtime. Most scripting tools just default "your stuff breaks if you get it wrong" whereas .Net requires you to explicitly define the dependency.

comment 1y ago · link · parent

Basic LINQ on in-memory collections isn't really that different from what you have in other languages. Where things get special is the LINQ used by Entity Framework. It operates on expressions, which allow code to be compiled into the application and manipulated at runtime. For example, the lambda expression that you pass to Where() will be examined by an EF query provider that translates it into the where clause for a SQL query.

comment 1y ago · link · parent

> Cant someone take a look at the buttons before the large project ships?

They can, of course, but this is how you end up with pre-release regression testing cycles that are weeks or even months long. A "large project" might easily have thousands of buttons (or more!), many of which are only seen when certain settings are enabled, certain options are chosen during a complex workflow, etc.

comment 1y ago · link · parent

Yeah, something important to file away in your book of life lessons is that you should _never_ schedule a move on the day you have to be out. Not unless you're backed into a corner with no alternative. Sometimes life throws you curveballs - for example in 2020 I had purchased a house and was scheduled to move, but my mom passed away around 6 PM the day before the move. Thankfully it was just an across-town move, and I had about 10 days to play with before the lease on my condo ended, and the moving company was able to reschedule for a week later.

comment 1y ago · link · parent

Unfortunately what's likely to happen in our current society and medical system is:

1. Instead of being expected to read N x-rays per hour/day/whatever, radiologists will soon be able expected review 3N or 4N AI diagnoses in the same time.

2. With far less time to spend on each case and an AI that is right most of the time (but imperfect) humans won't be great at catching AI mistakes, even if they're trying.

3. Pay and prestige for radiologists will drop, leading to a lack of quality people entering the field, exacerbating the problems in #2.

4. Eventually administrators and/or politicians will decide that (using made up numbers) very cheap AI-only review with 90% accuracy is "good enough", even though the more expensive AI+human combo can yield 93% accuracy or very expensive human-only review can yield 97% accuracy.

comment 1y ago · link · parent

I always have at least a web browser open, and as the other comment said MacOS reopens apps on restart.

comment 1y ago · link · parent

You know, I bought a MBP as a personal machine 6 months ago - my first Mac - and this post made me realize that I couldn't even tell you what its desktop looks like. I'm sure I saw it a few times when I was doing initial setup, but I don't remember anything about. I used to do things like set custom wallpapers, but probably around 10 years I pretty much stopped using the desktop entirely.

comment 1y ago · link · parent

Jetbrains Rider does this does for C# code (I think Visual Studio does as well). Its inlay hints feature will also show you hints with the result type of each line as the data is transformed. I haven't explicitly tested but I would imagine their IDEs for other languages behave the same.

comment 1y ago · link · parent

I did an internship in IT 20 years ago where we were building/maintaining desktops and other general helpdesk type stuff. I'm pretty sure I remember us having a handful of users with multi-gig pst files, running on 2005 hardware.

comment 1y ago · link · parent

Close, but it's a little different. When they were making Half-Life their code was in a 'Src' directory. Around the time HL1 released they forked the code into a `GoldSrc` directory so that they could start moving ahead with other projects in Src. Internally they used "source" and "gold source" to refer to the HL2 vs HL1 engines, and it stuck.
12345
26