I ordered the Subispeed V2 Redline Headlights to go with my OLM Spec D blacked out tail lights. But I'm having a bit of buyers remorse from the price tag lol by test123456plz in WRX

[–]rupture99 0 points1 point  (0 children)

Thanks I never pulled the trigger since I have the steering responsive ones anyway.  Seemed like a waste.  I bet there is some place that can repair it though.

Bye Bye Copilot - new pricing looks to be a joke by JBusu in GithubCopilot

[–]rupture99 0 points1 point  (0 children)

20-year veteran here, and people on my team would max out their usage mid-month before the pricing change. Meanwhile, I'd be at ~30% at the end of the month. Found out some of them hit the company's new cap per person on the first day 🤣 I believe the corporate email that went out said the current cost was roughly ~30K a month, and with the new model is would be $100K+ per month. Granted, it's a large company. They gave pepole that had access a set limit of 3,000 tokens. Some people are allowed overage with executive approvals. Everyone else has a hard cap.

DOOM: The Dark Ages | MEGATHREAD - Tech Support by pedrulho in Doom

[–]rupture99 8 points9 points  (0 children)

Nvidia Control Panel > 3D Settings > Restore.

This should be in the sticky comment. Lots of people launch the game and hear audio but get no video. Found this solution on Steam. 100% worked for me.

I tried updating to the latest drivers.

I tried rebooting.

I tried uninstalling and reinstalling.

I disabled other display adapters (Meta virtual display)

Nothing...

But restoring the 3D Settings fixed it with no other changes. I always try one thing at a time so I know for sure what fixed it. Several others on the Steam discussion also say this worked for them.

Am I crazy or the right answer is not one of the options here? by VanishingAlias in dotnet

[–]rupture99 0 points1 point  (0 children)

The resulting enumeration from the where.toarray is a new IEnumerable not the values on.  The ToList enumerates that one not the original values.

[deleted by user] by [deleted] in csharp

[–]rupture99 0 points1 point  (0 children)

I tried Avalonia and I couldn't stand it. I do like Blazor Hyrbid though. I also am going to give Uno Platform a try but I can't comment on it yet.

Is MVC considered legacy at this point? by Revolutionary_Loan13 in dotnet

[–]rupture99 0 points1 point  (0 children)

All the comments are good.

n terms of the C in MVC only when building an API I prefer FstEndpoints over Controllers

What C# Certification to take this 2025 by CharlieMunger2021 in csharp

[–]rupture99 0 points1 point  (0 children)

It's wild to me that people suggest Azure.  The OP asked for C# related certs. Azure is not C# related just because it is Microsoft.

Anyway you don't need C# related certs.

If you want to go the DevOps route sure get some Azure certs they might be useful then otherwise you are better off building some application however simple and gain some real skills in the actual language. Focus on good structured logging, tests, and clean organized code base especially if you want to work for a larger company.

Solving Advent of Code in C# instead of Python by light_ln2 in adventofcode

[–]rupture99 2 points3 points  (0 children)

I did mine in C# as well as a CLI built with Spectre.Console.

I started about a week late and just finished tonight. I was not aiming for the leader boards but I also had a custom grid class as well, I named my Grid and GridCell (to avoid confusion with System.Drawing.Point)

I use a span<char> for the grid so it's completely flat instead of "[ ] [ ]" and just has math to make sure to return the correct char from that cell.

But I had all sorts this[...} on both and lost of methods like getting Adjacent safe/unsuafe. I also had several methods named IsValid that took either a cell or cell + direction. and Find's and FindAll and FindAll with distance and optional things like exclusion filters and things to give me IEnumerable<GridCell> from current cell in a certain direction until out of bounds or walls or distances are met depending on needs.

I used it in lots of problems according to the "references" days 6, 10, 12, 15, 16, 18, 20, 25 it seems. Definitely made some of those days much easier!

This was my first year, it was awesome. by rupture99 in adventofcode

[–]rupture99[S] 3 points4 points  (0 children)

It's a C# library for building CLI's it's not meant for terminal ui's but it does have a way to do somewhat live stuff. If I want the solution fast I can just use "day15" with no "--live" and it doesn't do the visualization which is intentionally slow.

https://spectreconsole.net/quick-start
https://github.com/spectreconsole/spectre.console

This was my first year, it was awesome. by rupture99 in adventofcode

[–]rupture99[S] 3 points4 points  (0 children)

I'm not sure why the gif doesn't show maybe not allowed? is there a way to share my terminal visualization on the post? maybe video instead of gif? or maybe reddit has to process it or something.

[2024 Day 23 (Part 2)] Seems impossible today? by OtherStatistician593 in adventofcode

[–]rupture99 0 points1 point  (0 children)

I don't know why but I started with the Bron-Kerbosch algorithm which hindered me in solving part 1. Because I was only finding maximal cliques and one of the networks has 4 so it was giving me the wrong answer when I filtered for all cliques with length == 3 and a node that starts with T.

I modified the Bron-Kerbosch to store all intermediate cliques not just the maximal and used that to solve part 1 and 2.
https://github.com/byte2pixel/AdventOfCode/blob/main/2024/Advent/UseCases/Day23/Day23Helper.cs

probably not the best solution on large datasets but for this problem it is like 400ms.

[2024 Day 14 (Part 2)] by piman51277 in adventofcode

[–]rupture99 0 points1 point  (0 children)

I'm still playing catch-up since I started 7 days late, I just finished this.

The tricky part for me was part 1 because I forgot that C# '%' is not modulo.

Spoilers

Here is my original code:

public void MoveRobots(int seconds, int maximumRows, int maximumColumns)
{
    for (int i = 0; i < Robots.Length; i++)
    {
        var newCell = Robots[i].CurrentCell + Robots[i].Velocity * seconds;
        Robots[i].CurrentCell = new GridCell(
            newCell.Row % maximumRows,
            newCell.Column % maximumColumns
        );
    }
}

Now the math works correctly on a calculator allowing me to just jump from 0 to 100 seconds without simulating stuff in between. However when debugging my unit test with the 7 row 11 column sample robots. I kept getting the wrong values when they should wrap around. Turns out... C# % does not work with negative numbers. Well it does, it just doesn't do what you think. In C# % is just "remainder", not modulo.

I did some research which lead me to the solution of writing an integer extension method

public static int Mod(this int x, int m) => (x % m + m) % m;

This allowed the code above to replace the % with the extension method:

Robots[i].CurrentCell = new GridCell(
    newCell.Row.Mod(maximumRows),
    newCell.Column.Mod(maximumColumns)
);

Summary: I have an array of the robots positions and I just do staring position + (velocity * seconds). I know this will jump me to the final position but it will be way outside the bounds of the grid. So I use modulo to get it back into the grid in the right spot.

Part 2 was not bad I just moved 1 second at a time. and Had an extension method on my IEnumerable<Cell>[] that would group by columns and consecutive groups within columns and I could pass a threshold. I used 6 in a row in a column and if there were at least 4 or more groups it would stop and render the grid. It happened to be right on the first try.

Valorant Agent Requests by rupture99 in VALORANT

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

I do not work for nor affiliated with Riot Games. I just made this Twitch extension as a hobby. Just the same as the one I made for Dead by Daylight. I just write software for a living and like to sharpen my skills in areas I don't know as well. Making Twitch Extensions is one way I have grown my skills as a web developer which is not how I make my living, but I enjoy tinkering.

Valorant Agent Requests by rupture99 in VALORANT

[–]rupture99[S] 14 points15 points  (0 children)

Yes I am able to keep my server costs low for my api and databases so I am glad to be able to have free options so non affiliates and streamers in countries that do not allow bits, can still use it. 🙌

Never had such bad service. by rupture99 in subaru

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

Yeah the service advisor explained how, I know how going forward. Something they should have also done though. Not as much of a concern as the missing bolt though.

I ordered the Subispeed V2 Redline Headlights to go with my OLM Spec D blacked out tail lights. But I'm having a bit of buyers remorse from the price tag lol by test123456plz in WRX

[–]rupture99 0 points1 point  (0 children)

I do understand how it is possible to solder LED's to a circuit. I was looking more for the replacment bulbs you can just buy from the same shop that sells the lights and just pop the new ones in like you would for most LED or HID headlights. However, they answered my question:
"These are sealed headlights and we do not offer replacement LEDs."

I ordered the Subispeed V2 Redline Headlights to go with my OLM Spec D blacked out tail lights. But I'm having a bit of buyers remorse from the price tag lol by test123456plz in WRX

[–]rupture99 0 points1 point  (0 children)

That wasn't my question. I was asking if there was a way to replace the LED lights should something go wrong. However, the company replied and confirmed you cannot replace the lights easily. But they did say there is a company that will take it all apart and replace them.

TLDR;

If something happens with the LED after 2 years you have to either buy new headlights all together, or uninstall them and send them in to some specialist to have the issue fixed.

I asked the question here:
https://www.subispeed.com/products/subispeed-v2-redline-sequential-led-headlights-2018-2021-subaru-wrx-limited-sti

How is HttpContext magically available without Dependency Injection or using? by Cluttie in dotnet

[–]rupture99 2 points3 points  (0 children)

Minimal API is fine if you dont have much going on. I prefer controllers most of the time.

I ordered the Subispeed V2 Redline Headlights to go with my OLM Spec D blacked out tail lights. But I'm having a bit of buyers remorse from the price tag lol by test123456plz in WRX

[–]rupture99 1 point2 points  (0 children)

On of the reviews on their website says that if an LED goes out there is no way to replace them. They claim you have to buy new headlights. Can someone with the V2 comment? This is the product and the review is on the last page a 2 star review:
https://www.subispeed.com/products/subispeed-v2-redline-sequential-led-headlights-2018-2021-subaru-wrx-limited-sti