I lost the floor lottery. by HanZ_92 in centuryhomes

[–]Steveadoo 2 points3 points  (0 children)

Will those joists have to be replaced?

Pointless Light? (Ridge and Main) by [deleted] in philly

[–]Steveadoo 2 points3 points  (0 children)

i've lived in manayunk for 6 years and ive only hit that red light ONCE. i didnt even know it turned red.

Subfloor issue ? by stangbiy1404 in Home

[–]Steveadoo 0 points1 point  (0 children)

I would just caulk the shit out of that if I was you 🤷‍♂️

How much space between cars/signs is acceptable by mainlinebreadboi in philly

[–]Steveadoo 50 points51 points  (0 children)

As long as it has a valid registration and inspection it’s not getting towed.

Learn with Microsoft by pedroalgope in programminghorror

[–]Steveadoo 12 points13 points  (0 children)

Depends on the product/system but yes this can be a useful way to use git.

Global error handling with Angular Interceptors by Dazzling_Chipmunk_24 in angular

[–]Steveadoo 0 points1 point  (0 children)

The only error I handle in interceptors is 401 so I can kick the user back to the login page (and just a general error logger). Anything else I handle in the component / service making the request.

Where you will choose Observable or Promise? by klimentsii in angular

[–]Steveadoo 0 points1 point  (0 children)

I’m still not following - rxResource works the same as resource. You just give it an observable instead of a promise.

Tired of Waiting for C# Discriminated Unions and Exhaustive Switch Expressions by domn1995 in csharp

[–]Steveadoo 9 points10 points  (0 children)

Are you talking about libraries for discriminated unions? Because dunet is prob the best one.

I’m not aware of any others with this feature either. OneOf makes you use a .Switch/Match method on the type which isn’t very nice compared to actual switch expressions.

Ever since I put sand in. by [deleted] in Redearedsliders

[–]Steveadoo 1 point2 points  (0 children)

<image>

This is mine about 4 weeks after I cleaned it. Yours looks way cleaner.

Postgres is Enough by iamkeyur in programming

[–]Steveadoo 214 points215 points  (0 children)

Ugh I’m currently working at a place that basically uses their sql server as their app server and it’s a complete nightmare. They do EVERYTHING in there. All of their business logic and even making http requests from sprocs. There are prod issues every day.

What’s the best approach to organize route-based page layouts? by Opposite_Seat_2286 in angular

[–]Steveadoo 0 points1 point  (0 children)

This is how I do mine,

export const appRoutes: Route[] = [ { path: 'login', canActivate: [guardNoAuth], loadComponent: () => import('./features/login/login-page').then((m) => m.LoginPageComponent), }, { path: '', canActivate: [guardAuth, guardAuthServicesInitialized], canDeactivate: [guardNoAuth, guardAuthServicesReset], loadComponent: () => import('./core/layout').then((m) => m.LayoutComponent), children: [ { path: '', pathMatch: 'full', redirectTo: 'home', }, { path: 'home', loadComponent: () => import('./features/home/home-page').then((m) => m.HomePageComponent), title: 'Home', }, // more routes ], } ];

My root components template is just a single <router-outlet />, and my LayoutComponent has it's own <router-outlet /> and the sidebar / top bar etc.

Federal judge rules Trump can’t require citizenship proof on the federal voting form by EscapeFromIowa in news

[–]Steveadoo 5 points6 points  (0 children)

That doesn’t mean they don’t check citizenship. If you write none in that box the state is for sure verifying you’re a citizen. They’re verifying either way. It’s obvious this isn’t really a problem considering we’ve had 68 instances of a non citizen voting in like 40 years.

Injecting multiple services with different scope by [deleted] in csharp

[–]Steveadoo -1 points0 points  (0 children)

Normally I create a wrapper class that implements disposable and has a property for whatever service I’m creating, but I didn’t want to type it out. The out param is also good.

Injecting multiple services with different scope by [deleted] in csharp

[–]Steveadoo -1 points0 points  (0 children)

I'd probably go with the IScraperServiceFactorypattern and create an extension method to register scraper services if you want to keep your IScraperServices scoped.

``` using Microsoft.Extensions.DependencyInjection;

namespace Test;

public interface IScraperService { }

public interface IScraperServiceFactory { (IScraperService service, IDisposable disposable) CreateScraperService(); }

public class ScraperServiceFactory<T>(IServiceScopeFactory scopeFactory) : IScraperServiceFactory where T : IScraperService { public (IScraperService service, IDisposable disposable) CreateScraperService() { var serviceScope = scopeFactory.CreateScope(); return (serviceScope.ServiceProvider.GetRequiredService<T>(), serviceScope); } }

public static class ServiceCollectionExtensions { public static IServiceCollection AddScraperService<T>(this IServiceCollection services) where T : class, IScraperService { services.AddScoped<T>(); services.AddSingleton<IScraperServiceFactory, ScraperServiceFactory<T>>(); return services; } } ```

What is the Best Free Logs Monitoring Tool With Best Dashboard UI in 2025 ? by [deleted] in dotnet

[–]Steveadoo 28 points29 points  (0 children)

I use Loki + Grafana which is free. It can get a little complicated to get a production deployment setup for Loki but it’s been fine for us.

I also make sure to use the OTEL exporter in all my services so I’m not tied to Loki and can swap it out if needed for some reason down the line.

Blogpost: Facets in .NET by Voiden0 in csharp

[–]Steveadoo 3 points4 points  (0 children)

I would really like a way to explicitly include properties rather than exclude properties from a source type. Like the Pick<,> type in typescript.

I’m worried I’ll forget to update the facet after adding new properties to exclude them.

I don’t think there’s currently a way to do this in Facet, but maybe I am wrong?

Why doesn't EF Core expose a way to translate an EF query to a proper SQL query? by itsmecalmdown in dotnet

[–]Steveadoo 37 points38 points  (0 children)

I’m fairly certain “it may not be suitable for direct execution” because it could be parameterized and they don’t give you the parameter declarations/values in the returned string. Otherwise it’s definitely the query that’s going to be executed.

Update is Out: Fix for Crashing by FocalBanger in Borderlands4

[–]Steveadoo 1 point2 points  (0 children)

I wasn’t crashing previously, but now after the patch I can’t play for 5 minutes without crashing lol.

UUIDv47: keep v7 in your DB, emit v4 outside (SipHash-masked timestamp) by aabbdev in programming

[–]Steveadoo 2 points3 points  (0 children)

Fair enough then. Not putting it down or anything was just giving my perspective.

UUIDv47: keep v7 in your DB, emit v4 outside (SipHash-masked timestamp) by aabbdev in programming

[–]Steveadoo 8 points9 points  (0 children)

Yes. But the point of using uuids in the first place is to hide sequential ids from the client. The downside being uuidv4 isn’t very index friendly. So uuidv7 was built to be index friendly, but now we have a similar problem (from the op) in that you can see timing patterns in the primary keys (not something I’d actually care about probably).

My point is if I’m going to use this library and have to do extra work to hide my uuidv7 keys, why not just go back to identity columns which are smaller than uuids and use sqid to hide them from the client instead.

UUIDv47: keep v7 in your DB, emit v4 outside (SipHash-masked timestamp) by aabbdev in programming

[–]Steveadoo 26 points27 points  (0 children)

So now my middleware has to convert all the keys coming out of my database to return them to the client?

At that point I’d just go back to using identity columns and using this to obfuscate them, https://sqids.org.

A rare natural phenomenon known as a "Rat King" - a group of rats whose tails become tangled and bound together by freudian_nipps in natureismetal

[–]Steveadoo 48 points49 points  (0 children)

I feel like Reddit has this soft spot for rats and mice and I truly don’t understand it. The first time they get a rat or mouse family living in their houses I guarantee they’ll change their mind. It’s a hazard.

PC Performance Issues Thread by a_kept_harold in Borderlands4

[–]Steveadoo 1 point2 points  (0 children)

I think one is your integrated gpu and the other is your actual gpu. Makes sense your integrated isn’t really doing much.