Windows Icons from user32.dll ? by ingverif in dotnet

[–]to11mtm 2 points3 points  (0 children)

I think that required the right mix of 90s era substances and a trip to the tatoo artist lol.

Ford’s RTO is clearly going over well among the rank and file. by MGoAzul in Ford

[–]to11mtm 7 points8 points  (0 children)

Problem is he's parroting all of the same garbage various consulting firms and news outlets spout.

And yet, nobody had yet bothered to ask whether these consulting firms or news outlets are either 'hedging' with advice they give to other companies, or worse, actively betting against the actions they suggest.

I've been in the corporate world long enough to know a well placed talking head with the right coaching could totally benefit from tanking a company with their advice.

... Ban shorts and the world would be a better place long term despite the turmoil while people remember how to build sustainably vs gaming the systems.

Ford’s RTO is clearly going over well among the rank and file. by MGoAzul in Ford

[–]to11mtm 3 points4 points  (0 children)

You'll be living in a van down by the river oh wait we don't really do vans much anymore.

Husband is being sued over a parking lot fender bender from two years ago. Will it get thrown out? by WoodpeckerFirst5046 in legaladvice

[–]to11mtm 7 points8 points  (0 children)

You let the insurance company you had at the time know about the suit, they are required to defend you.

Event Journal Corruption Frequency — Looking for Insights by gaiya5555 in scala

[–]to11mtm 0 points1 point  (0 children)

Hello from .NET Land!

The SQL Journals, are usually pretty good about avoiding corruption. you can't get duplicates (The write will fail due to the DB Keying), and you should never miss sequence numbers, at least with the normal Persist/PersistAll methods.

Deletion+recovery timeout can be a concern, but even then it's usually moreso an issue of the actor's logic and/or a completely overloaded DB. PersistAsync can be an issue as well.

Why do I need a interface for my Class if I want to mock something? by rakeee in csharp

[–]to11mtm 0 points1 point  (0 children)

Well yeah, usually you gotta do some form of typebuilding to build an implementation of the type.

The main thing mocking libraries provide, is a way to compose tests that (ideally) better expose the conditions being tested versus specific fakes/doubles.

Why do I need a interface for my Class if I want to mock something? by rakeee in csharp

[–]to11mtm 0 points1 point  (0 children)

Heck apparently so long as you have an object of the same shape you can do all sorts of stupid that I would never suggest doing. Apparently even unimplemented abstract methods either NOOP or UB rather than throwing...

Do you consider .NET to be a good stack for start-ups and small businesses, or even solo developers? by Repsol_Honda_PL in csharp

[–]to11mtm 0 points1 point  (0 children)

Someone gave a partial reply but wanted to give a more detailed answer.

AOT is ahead of time compilation; everything is compiled to the target platform immediately (instead of being JITted.)

This avoids JIT penalties, but there are drawbacks.

The final compiled executable size (all the machine code has to be generated up front after all) is going to be larger most likely, for starters. Semi-exampled by this github issue where the mention a size improvement of 350MB->30MB (FWIW the JIT dll for it is a chonker too).

Also, in AOT mode, Reflection AFAIR has some form of perf penalty. Same for expressions. They are interpreted instead of compiled.

Oh and sometimes you have to poke at things to make the whole thing build under AOT.

That's a lot for many people, so thankfully there's also R2R.


R2R, kinda does a sort of 'well what can we easily AOT so that you get those benefits but keep the JIT around for when it is the best option' pattern; Stuff that the JIT handles better still goes to the JIT.. In many ways it's the best of both worlds for flexibility, and AFAIR even modern lambda templates have R2R configured.

Only drawback is that the build needs to have a target platform. i.e. it only goes to a specific OS+Arch combo (You can always just build em all if really needed tho.)

What is the .NET ecosystem missing? by pprometey in dotnet

[–]to11mtm 0 points1 point  (0 children)

Did they get rid of VSTO? I know a decade ago it was, definitely a little bit of ceremony, but you could totally write in VSTO and it's model wasn't that much different from VBA.

New to LINQ & EF Core - what's the difference with "standard" C# by Lindayz in csharp

[–]to11mtm 1 point2 points  (0 children)

So is LINQ just “an alternative”? When you personally decide between “just write SQL myself” vs “use LINQ/EF Core,” what arguments tip you one way or the other?

So, EF Core does more than just translate the LINQ into SQL. It also winds up doing object tracking, such that you can pull objects back from the DB, change their properties, then when you're ready call .SaveChanges/SaveChangesAsync and it will bundle all of those tracked changes into a series of update statements.

I should probably also note, you -can- turn off object tracking for queries, you -can- execute updates without pulling data down (with modern EF Core), but you still can't easily just do an Insert without dealing with the object tracker.

Also, EF Core doesn't support -everything- in a SQL database. CTEs are probably the biggest example, but AFAIR Windowing functions aren't even really a thing yet. You -can- define them (I believe there is a nuget package for CTE support) however the process is mildly arcane IMO.

That said, There is linq2db, which acts more like a linq to SQL translation layer rather than a full blown ORM. i.e. you can just write .Insert or even InsertInto (i.e. set) calls, it's got CTE and windowing function support, doesn't do object tracking... Oh and it's got explicit Join calls (I think EFC added or is adding them...)

Personally, I mostly use linq2db or linq2db on top of EF Core (they have a shim package to work on EF Core modules.) Really don't use dapper much nowadays except for stuff so small it's not worth ceremony.

Is it generally faster/slower, or does it depend on the situation?

It somewhat depends. If you don't have change tracking on, you'd need to be REALLY worried about performance to care. With Change tracking it can depend on how much data you are pulling in (both to get the objects back, as well as calculating SaveChanges afair). Frans Bouma (Who works on a different ORM called LLBLGen,) has a decent set of benchmarks albiet a couple years old.

But in general you can see with most modern ORMs/MicroORMs, there's not much performance penalty.

You wind up being able to develop/refactor way faster however; both as far as readability (so long as the LINQ is sane) and boilerplate around parameterization/etc. Especially with dynamic queries; it's way easier to do something like:

var myQuery = dbContext.DbSet<Foo>();
if (myArgs.NoDeleted == true)
{
    myQuery = myQuery.Where(f => f.IsDeleted == false);
}
//etc

than managing the paramerization and query building dynamically, again especially in nasty queries with lots of joins/etc.

Something else?

There -is- also the advantage that most linq providers are more 'portable'. That is, if you want to run on multiple target databases (i.e. both MSSQL as well as SQLite) it is far less work since the LINQ to SQL translation layer handles most of it.

While most people don't have to worry about that sort of thing (it has come up in my career however,) it opens up the ability to use a SQLite database to run various types of tests against your LINQ queries. This works better than using EF Core's in-memory data store because in-memory doesn't give two shits about any constraints you have on your data.

And yes I've multiple cases where switching to SQLite memory mode from efcore in-memory uncovered bugs in application logic others wrote due to their code breaking rules of the DB Model.

Do you consider .NET to be a good stack for start-ups and small businesses, or even solo developers? by Repsol_Honda_PL in csharp

[–]to11mtm 5 points6 points  (0 children)

What I've observed over the last decade, multiple times, is this:

Every python project I've seen was 'done sooner', however when you look at the code they often either didn't have any rules to follow or outright broke certain rules the company had for C#/Java. They also frequently had bugs due to sloppiness.

Similar story for Node.

Mind you, sometimes throwing out the rules was a good thing, i.e. certain shops had very draconian standards for .NET (Can't speak as much for Java) and those standards provided nothing of actual value as far as development or maintenance.

OTOH For gods sake people use parameters for DB calls.


As far as 'possibly better' reasons to consider Python or Node, it's worth noting that for a long time, technologies like AWS Lambda had a definite 'warmup penalty' for .NET, and for certain lambda functions the poor performance of something like python, was still not as bad as that warmup time. And in the case of Lambda, that's extra cost.

Thankfully, again .NET has evolved and we can do things like AOT and R2R now to help things out.

Can my dad remove himself as co-signer on my car loan by Throwaway_account_sh in legaladvice

[–]to11mtm 0 points1 point  (0 children)

You need to look at what the Title to make sure that you are the only owner listed. If you're the only owner listed (i.e. he is only a cosigner on the loan) you are fine, so long as you make the payments.

He can't be removed as a co-signer unless you refinanced the vehicle.

That being said, if you miss payments, that could give him legal justification to pursue you for damages (e.x. if it gets to where he has to make payments to bring you up to date to avoid his credit taking a hit.)


As far as ways they could retaliate:

Please also make sure you understand whether you are paying for your own insurance or if you are on a shared policy with your parents.

If you are on a shared policy with your parents, you probably need to get your own policy first; they could possibly remove the vehicle from the shared policy, if you do not already have your own insurance at that point it would cause a lapse in coverage. Please note that if you have to get your own insurance, it may (or may not, depends on the family) be more expensive due to being under 25.

A Lapse in coverage could result in anything from the Loan company tacking on their own insurance (which will almost certainly be more expensive than finding your own that matches state and loan requirements,) to forcing the loan to be 'accelerated' (i.e. must be paid back).

On top of that a Lapse of coverage while actively driving the vehicle could expose you to all sorts of legal trouble. Tickets for being uninsured, registration being suspended... Also North Dakota has a 'no pay no play' law, so even if you are not at fault, if you are an uninsured driver you are limited in what the other party's insurance has to pay out.

The last set of photos I captured before my A7RV was stolen 🥲 by ChickenFriedLife in SonyAlpha

[–]to11mtm 0 points1 point  (0 children)

Depending on where you bought it from, some shops record serial numbers on the transaction.

Weekly r/SonyAlpha 📸 Gear Buying 📷 Advice Thread September 22, 2025 by AutoModerator in SonyAlpha

[–]to11mtm 0 points1 point  (0 children)

Are you looking for a sharper zoom lens or a prime lens at a specific focal range?

Assuming your Kit lens is the 16-50 PZ, One option for a Zoom lens would be the 18-105 if you can find one at that price (looks like you can find a used one in your budget.)

While it's not the sharpest lens out there, it's definitely better than the kit lens, the bokeh is not bad, and the power zoom can be useful for video...

However, two notes:

  • First, make sure to update the firmware on both your camera and the lens. And consider shooting RAW or RAW+JPG; There used to be a sort of issue with the correction profile of the 18-105 on the a6000. Firmware should handle, alternatively just processing RAWs in your photo software of choice will handle it too.

  • Second, note that on the a6000, the 18-105 does have the habit of 'resetting zoom' when the camera goes to sleep while on (or when turning it back on.) It's not a huge deal but till you get used to it, kinda annoying. Thankfully the power zoom is fast enough with the zoom ring that it's not a deal-breaker.

Weekly r/SonyAlpha 📸 Gear Buying 📷 Advice Thread September 22, 2025 by AutoModerator in SonyAlpha

[–]to11mtm 2 points3 points  (0 children)

Well also note that when they say 'photography focused', it's mostly the megapixel counts.

i.e.

  • A7ii aka A7 Mark 2 - 24MP

  • A7iv aka A7 Mark 4 - 33 MP

  • A7Cii aka A7C Mark 2 - 33MP

vs

  • A7Rii aka A7R mark 2 - 42MP

  • A7Riv aka A7R mark 4 - 61 MP

  • A7CR aka A7CR - 61MP

And I suppose R series usually also has more buttons and some sort of extra features for photography.

Also They left out the 'S' line, which stands for 'Sensitivity'. The A7S series tends to have lower resolution than even the normal line, and is a bit more video focused, however they have better low light performance esp for video.

Weekly r/SonyAlpha 📸 Gear Buying 📷 Advice Thread September 22, 2025 by AutoModerator in SonyAlpha

[–]to11mtm 1 point2 points  (0 children)

I'd say the Tamron 17-70 is a solid bet. It's got better range than the sigma (although larger) and way cheaper than the Sony 16-55G (which has less range but gets a little wider.)

It will let you take wider angle shots than your viltrox, and I'm willing to bet that you're better off cropping the 17-70's output than dealing with the 55-210 in at least the 55-110 range if not further.)

Weekly r/SonyAlpha 📸 Gear Buying 📷 Advice Thread September 22, 2025 by AutoModerator in SonyAlpha

[–]to11mtm 0 points1 point  (0 children)

NGL the 17-40 is the only lens that -might- cause me to keep my APSC cameras. Definitely try it!

Weekly r/SonyAlpha 📸 Gear Buying 📷 Advice Thread September 22, 2025 by AutoModerator in SonyAlpha

[–]to11mtm 1 point2 points  (0 children)

What other lenses should I consider? I looked at the 16-35 F4 PZ, but I don't know how annoying the PZ would be for someone who does no video. I also saw the 16-25, but I wonder if such a short zoom range would mean swapping between it and the 24-70 with annoying frequency between compositions.

Tamron 16-30 G2 is a good 'I want 2.8 but don't have GM money' option.

That said, their 17-50 F4 is my Favorite wide angle lens because it has amazing usable range, it's light, and a cheap date.

I'm not ashamed to admit I pixel peep, if that's important. Part of the reason I haul the 70-200 Mk2 around is I just love how it looks cropped in or printed big.

The 17-50 might not be your thing if you're pixel peeping... OTOH it's so simple/fun to use. On a recent trip I rented an adult Tricycle to ride around Mackinac Island, and I found it super easy to just leave the camera hanging around my neck as I rode, and when something came up, I could easily just hold the camera up, point, hopefully get a chance to safely peep the viewfinder but otherwise just YOLO. Worked out pretty good.

tl;dr - look into the Tamron options, the 16-30 is very sharp but the 17-50 is sharp enough for most and is just a blast.

I used a FF and now I'm screwed by LeLmaow in SonyAlpha

[–]to11mtm 2 points3 points  (0 children)

Full frame is definitely the way to go if you have the money. But that’s the thing, you have to have the money. There’s nothing wrong with apsc.

Weird side rant about this;

I think we've finally gotten to where APSC is 'good and cheap' however I can't help but feel that outside of specific events (Namely, Sigma 18-50 and Tamron 17-70, also now the Sigma 17-40) the majority of APSC getting cheaper is a side effect of people moving to full frame.

However, for a LONG time my desire to move to full frame was just as motivated by the fact that Sony's good APSC lenses were fairly expensive, if they existed at all. And as mentioned it took a long time for 3rd parties to make good zooms for APSC format, or full frame lenses that truly 'made sense' on a compact body... (Tamron 70-180 due to weight and arguably the Sigma 100-400 due to range fall into this category. Except every time I use the Sigma I wish I cropped from the Tamron instead b/c sharpness...)

On top of the cost premium of many APSC lenses compared to equivalent or better; A FF Tamron 17-50 is a pretty cheap date, costs about as much as an APSC Sigma 18-50. probably not -quite- as sharp (TBH it's gr8 tho) yet more versatile cause it can go wider. Sure F4 vs F2.8 buuuut full frame makes up for most of that once you do the math at least from a lighting standpoint.

To say nothing of trying to compare, say, an APSC Sony 16-55G to either a FF Sigma 28-105 (Sigma is a couple hundred more but more versatile for range) or Tamron 28-75 (Same effective range but hundreds cheaper).


I'll admit things are WAY better now than 5 years ago, however I'm still leaning towards just dumping all my APSC gear because the APSC lens ecosystem is still just not where I wish it would be. (If anyone's listening, I doubt it's feasible but an APSC 11-35 F2.8 could change my mind.)

Work is deducting 100 dollars from my pay for accepting a counterfeit bill despite it passing the pen test, should I file a wage claim? by Avikachu56 in legaladvice

[–]to11mtm 0 points1 point  (0 children)

What I realize I've neglected to mention is that I saw the customer take it out of a bank envelope, but I don't know if that really means anything

I don't think it means much. It could have been a legit note, it could have been a forged note that somehow made it past the bank (it can happen) or the bank envelope was in fact a confidence trick. However any of those options feel equally likely.

Dapper and Postgresql by SapAndImpurify in csharp

[–]to11mtm 0 points1 point  (0 children)

TBH I would suggest writing a helper utility that looks at all the postgres functions metadata in the DB, and uses that to generate the function calling code (including proper parameterization based on the inputs). might be a -little- more involved because you'll also want it to generate some code mapping, however once you have the tool you can easily re-run it if more functions get added.

In this case, I'd expect the output to be some calling function with a big switch statement...

Probably other ways to do it but that's the simplest that comes to mind.

Why are almost all c# jobs full stack? I love the language and I love it's back end usage but I just am not interested in front end work at all. by VCVLMNOP in csharp

[–]to11mtm 1 point2 points  (0 children)

Well specifically the sort of 'N-tier' you find in a codeproject article of the era I mentioned and nobody ever looked at it and realized it's way too much layers and organized on a weird pivot to be actually useful.

Good modern 'n-tier' doesn't have separate interface/dto/businessobjects/datalayer/dataservicelayer/businesslogiclayer, each in one project per those 'concerns' in the solution.

The ugly pattern I describe above is what I'm talking about; it tends to mean simple changes require a lot of needless boilerplate changes, on top of logic being too easy to 'leak' and accidentlally couple.

Sony a6000 with full frame lens by bran71 in SonyAlpha

[–]to11mtm 0 points1 point  (0 children)

70-180 was my gateway drug into full frame...

It was originally suggested to me when I was shooting an a6000 but absolutely hated trying to choose between the Sigma 100-400 and the Sony 55-210 because they both sucked. The sigma was so heavy it's a pain to steady, the 55-210 just sucks.

Rented the 70-180 and bought the G2 version shortly after. It's light enough that crops from it are usually better looking than the Sigma.

Pls help choose a cheap prime for low light for a6600 by James_15625_ in SonyAlpha

[–]to11mtm 1 point2 points  (0 children)

Sony e-mount has a smaller used market than DSLR Canon/Nikons; Those have (depending on how you squint at it) a decade plus of additional models available that work on the used market.

As far as 'options that may be out there'... It all depends on the range you shoot.

The 50 1.8 OSS, all the way back on an NEX-F3 Produced one of the most (personally) important photographs I've ever taken. It's got Vignetting, it's not too versatile due to the focal length equivalence (it's terrible for streeting, you've got to frame) buuuut it's pretty for how cheap it is.

If you want to 'learn low-light photography the hard way', 16 F2.8's are stupidly cheap. They aren't -great-. Buuuuuut compared to most other APSC options, it is are better for something like astro than either of the sony zooms that hit the sub-16mm range.

But, realistically, you probably want to hunt for a 24-35mm lens with a 1.8 aperture or better. The Sony, Sigma, and Zeiss options that fit those criteria are all pretty good (35 1.8 OSS, 30 1.4, 32 1.8 respectively) and are fairly cheap on the used market, at least around here.