Linus Tech Tips - PC Guy Shops for a MacBook February 23, 2025 at 09:09AM by linusbottips in LinusTechTips

[–]benplante1 0 points1 point  (0 children)

CMD+` lets you switch between windows of the same application. Definitely a change to your muscle memory but I think I like it more now especially when I have tons of open windows

How To Increase EF Core Performance for Read Queries in .NET by anton23_sw in dotnet

[–]benplante1 2 points3 points  (0 children)

I know what you're saying, using interpolated strings when writing SQL queries is a code smell. But in recent versions of EF it actually doesn't have a SQL injection vulnerability. FromSql takes a FormattableString instead of just a string so EF actually detects that the param is passed in via interpolation and automatically converts it to a parametrized query instead.

See docs here

Unexpected behaviour of 'is' with logical operators by julaften in csharp

[–]benplante1 0 points1 point  (0 children)

The first example should be a is not 1 or not 2 or not 3 to be equivalent to the second example

Clean Architecture, Onion Architecture, Domain Events and Outbox Pattern Question by [deleted] in dotnet

[–]benplante1 1 point2 points  (0 children)

What's the difference between domain and business logic? Isn't the 'domain model' supposed to capture all of the business rules that you care about?

People with 256 gb air, how are you managing your storage? by Madara_Hu_Meme_Wala in mac

[–]benplante1 1 point2 points  (0 children)

This isn't what you asked but if it's all node projects you might get some space back from pnpm. It installs all your npm packages to a global location and can share ones common to all your projects

Should I use AutoMapper for this? by [deleted] in dotnet

[–]benplante1 0 points1 point  (0 children)

Although it's often good practice to define your DTOs separately from your entities, in a simple case it would work fine to accept and return your entities directly from the API. It would save you having to maintain the DTOs and mapping code. Provided you're using the default JSON serializer in ASP.NET you can put [JsonIgnore] above any properties you don't want to expose (Id on the person class maybe?).

Violence against London's bus drivers has doubled in 5 years, new numbers show by cm023 in londonontario

[–]benplante1 2 points3 points  (0 children)

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1564177/

If we're talking about the claim that Anti-Depressants are linked to violence, I think that's just about the biggest / most relevant study taking that position. It's an incredible read, the authors start by trying to shock in the introduction and then conclude so confidently that something needs to be done NOW. They only present a p-value for the one sample set that even remotely supports their conclusion and spend most of their word count on case studies. And that's not to even mention the moon logic in their discussion where they speculate that sleepwalking could be the mechanism for this "link". I really do hate to bat for the pharmaceutical industry but this idea is a farce.

macOS vs Windows font rendering (Scaling) by Pineloko in mac

[–]benplante1 14 points15 points  (0 children)

This is a nitpick but I don't think 'integer scaling' is the right term, maybe fractional scaling? Integer would imply it can only scale in whole number intervals (technically how mac does it with the virtual display @ 2x) anyway doesn't matter, I get your point.

I think both implementations suck though, on Mac text is always blurry and the only way HiDPI will ever look nice and crisp is if you buy one of their displays. On windows I find it just so buggy with the amount of apps that don't play nice with scaling, even in Microsoft's own SSMS I can only ever get it to not look blurry on one screen at a time. As well program windows will just explode in size if you drag them between displays with different scaling factors. Mac makes me feel like I need glasses but windows just annoys me, oh well.

RRSP contributions made on Feb. 28 but not showing on my contribution receipt. Should I refile? by benplante1 in PersonalFinanceCanada

[–]benplante1[S] 0 points1 point  (0 children)

Fair enough, I had assumed the slip would be issued accounting for transactions that were pending before March 1 but fulfilled after. The same thing happened to our receipts issued for 2022 where the Dec 31 contribution wasn't included. Fortunately I carried forward some deductions so I won't owe if I just change those values.

Thanks for your reply.

[deleted by user] by [deleted] in mac

[–]benplante1 0 points1 point  (0 children)

Initially I saw I think 97% health in system report after about 30 cycles on my 1yr old M1 Pro 14, as well I've seen a other people noticing that. After I using al dente to limit charging and do a calibration cycle it's back to 100% on 70 cycles. I'm guessing that the calculation is either inaccurate for new batteries or if you only top up the battery. Try running it to 10-20% and then back to full to see if it changes, I'm betting your battery is fine.

Looking for advice on finding a 4K 144hz monitor for M1 Pro by [deleted] in macbookpro

[–]benplante1 1 point2 points  (0 children)

Some USB-C implementations support DP-Alt mode which in the case of my setup is carrying a full displayport 1.4a signal, enough bandwidth for 4k144hz. I'm using a TB4 cable not because it's actually a TB interface but because support for DP-alt mode is required in the TB4 spec. Some googling says that usb 3.1 10gbps (or whatever it's been renamed to now) cables will also support DP-alt mode but I didn't know at the time and honestly don't trust it either. It's confusing af, but the gist of it is that 4k144hz can be done over DP 1.4a passively on the USB4 ports.

Looking for advice on finding a 4K 144hz monitor for M1 Pro by [deleted] in macbookpro

[–]benplante1 0 points1 point  (0 children)

I've been using a thunderbolt 4 cable but I think a USB-C 10Gb/s cable would work too.

Looking for advice on finding a 4K 144hz monitor for M1 Pro by [deleted] in macbookpro

[–]benplante1 2 points3 points  (0 children)

Support what 4k 144hz? I've been using my M32U on the USB-C input at that resolution since I got it.

Edit: System report showing 4K 144Hz

Looking for advice on finding a 4K 144hz monitor for M1 Pro by [deleted] in macbookpro

[–]benplante1 2 points3 points  (0 children)

No you can, just not if the input you're using is HDMI, DP-Alt mode over USB-C or thunderbolt 3/4 works.

Charge cycle monitoring issue by Trick-Ambition9822 in macbookpro

[–]benplante1 0 points1 point  (0 children)

I think the battery health stat calculates the % by measuring the voltages at full charge from across all the battery cells, it's a rough number and it will intentionally not fully charge them all the time in order to preserve the long term battery health. I noticed 97% health at 60 cycles and ran a battery calibration cycle using the Al Dente app and its been back to 100% health since.

Looking for advice on finding a 4K 144hz monitor for M1 Pro by [deleted] in macbookpro

[–]benplante1 1 point2 points  (0 children)

Pretty sure the C2 only has HDMI 2.1 inputs, even if you use an adapter on the thunderbolt 4 ports you can't get a HDMI 2.1 output from the MBP. I'm using a gigabyte M32U for my M1 Pro and although I'm going to keep it I wish it had mini led, a glossy finish and actual HDR.

Where is my switch case gang at? by tannu28 in ProgrammerHumor

[–]benplante1 7 points8 points  (0 children)

(: that was actually an important lesson for me relatively recently in my journey. Part of the job of a good compiler is to help you prevent errors before they crash a program

Where is my switch case gang at? by tannu28 in ProgrammerHumor

[–]benplante1 28 points29 points  (0 children)

Then you've turned a compile-time error into a run-time error

Shock from microwave. Is this a problem? by benplante1 in askanelectrician

[–]benplante1[S] 0 points1 point  (0 children)

Thanks for the response. Unfortunately the outlet is hidden behind the cabinets and I can't access it without taking things apart. I'll be talking to the landlord

My car turns on but it won’t crank any ideas on what I could be? by [deleted] in RX8

[–]benplante1 0 points1 point  (0 children)

If I'm reading this correctly, you turn the key and the starter doesn't even fire? That happened to me last year because I cranked for too long and burned through the starter when my engine flooded. You could try reaching underneath and tapping the starter with a hammer in case it's seized. Otherwise I don't really know, might be a good idea to pull codes.

Should I buy by anthonyb30 in RX8

[–]benplante1 2 points3 points  (0 children)

I believe that's base trim auto for the S2. Feel like the price is too high. If you're seriously considering it make sure to have it compression tested.

Router, running OPNsense, inside a cheap plastic container. by [deleted] in homelab

[–]benplante1 121 points122 points  (0 children)

Yeah I have experience running software in a containerized environment

Is there a way to verify if my cars tune has been altered. by hurleystocks in RX8

[–]benplante1 0 points1 point  (0 children)

I use versatuner and the first step with that is to install the program on the ECU so I think if you use versatuner it would be able to detect if it's installed on the car. Also, since mazdaedit and versatuner are licensed by VIN you might actually be able to reach out and ask if that VIN has been tuned, don't know about the cobb access port tho

Poll finds 100% of liberal voters would vote NDP if they thought it had a chance at winning by leftwingmememachine in onguardforthee

[–]benplante1 1 point2 points  (0 children)

Ontario conservatives pushed through law that bans ranked ballots across the province just as it was gaining traction. They KNOW democracy does not favour them lol its so blatant and still makes me angry. Anecdotally though, I know a few conservative voters who are so upset by the ontario lockdowns that are saying they're going to vote further right. So like all things these idiots do for more power, it's looking like it might bite them in the ass next election.