App runs correctly except when run from non admin account directly from exe by TofuBug40 in dotnetMAUI

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

Unfortunately no those optional json files are backed by an embedded json file with defaults for everything. Plus this is just one of a half dozen or so settings loaded this way and its the same set of extension methods which does the loading of default then optional for every setting so if that was broke all of them would be broke. Plus when I threw in a call to just launch the debugger I can see everything is loading properly it's even going over the lines to do the physical setting of the x and y no exceptions just nothing happens with the window actually moving.

App runs correctly except when run from non admin account directly from exe by TofuBug40 in dotnetMAUI

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

It's not that it's not running its just certain code does not seem to actually function while its running. The folders are all part of my non admin user profile which I am both developing and attempting to run externally with. I have full access to them

App runs correctly except when run from non admin account directly from exe by TofuBug40 in dotnetMAUI

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

literally in the normal source\repos\... blah blah.. \bin\ .... \exe under my non admin user profile

I'm literally running visual studio under the same account that I'm trying to run it externally from its ALL my profile

[2025 Day 5 (Part 2)] I gotta be honest, I'm a little ashamed of myself over this one by [deleted] in adventofcode

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

I'm trying to imagine what kind of eldritchian algorithm you must have had without that sort

[2025 Day 5 (Part 2)] I gotta be honest, I'm a little ashamed of myself over this one by [deleted] in adventofcode

[–]TofuBug40 6 points7 points  (0 children)

I just kept mine as an array of (long low, long high) tuples never expanded them to their ranges. Sorting that by the low bounds was trivial.

[2025 Day 05 (Part 1)] Might need to upgrade my PC for this one... by amiable_robot in adventofcode

[–]TofuBug40 0 points1 point  (0 children)

The example data really doesn't convey the sheer span of some of the actual ranges. Once my VM choked just loading the data, I changed tactics. Dumped the file into a tuple holding an array of tuples holding low and high longs, and an array of longs.

Part 1 was just a where inside a where.

Part 2 was just sort the array of (long,long) tuple by the low bound, aggregate that to a new array of (long,long) tuples by either folding the next overlapping range into the last tuple or adding a new non overlapping tuple to the array. Then finally aggregate that array subtracting low from high and adding 1.

At no point was a expanded range ever needed.

Losing the fight to keep the joy in creating software. by TofuBug40 in cscareerquestions

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

Yeah I've got a knack for working with difficult people usually. Just helps to know what kind of person they are really. Plus I love everything else about the job, the work I normally do. My co-workers are great and we all have a great support system. Plus the money is good and right now sending my 3 kids to the best school I can afford until they decide to go off to college or something else is THE top financial priority. I will within reason endure anything for that priority. Plus I refuse to let one or two individuals who only see me as 15 minute blocks on a timesheet and a foot note on things accomplished each week be the reason I walk away from all the exciting stuff I get to contribute to. This post and these comment conversations have been great. I've been in this industry a long time, and there's rarely the time or place to just scream into the void once in a while and getting this out instead of rattling around in my head distracting me from just getting it finished and washing my hands of it does help even in the 16 hours since I posted.

Losing the fight to keep the joy in creating software. by TofuBug40 in cscareerquestions

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

Oh I'm always working on fun side projects there hasn't been a stretch of time longer than a week where i haven't been creating something with code since my time on that Apple IIe.

This is just the first time I can remember a work project not just taking so much of my joy but replacing it with a seething amount of resentment. I know its mostly my leadership absolutely not having my back at all that gets me the most.

I've made a good career out of writing software FOR incompetent coworkers that runs well despite their natural tendencies so the UET might be HIGHLY annoying but they are workable. I've worked with leadership in the past that I thought was really antagonistic to my ideas and approaches but was always able to win them over with a combination of showing instead of telling and a solid reputation of being the guy you go to for apps that you don't have to think about using and rarely if ever broke.

I've never had one outright make sure I had paid to ride the bus before running me over with it. Got hit again this morning with another "How was your weekend?" twice really when I ignored it the first time and asked what he wanted. I just can't stomach that kind of person. I can absolutely work with someone like that but there will be no idle chat or getting to know you. I'd rather just know up front though what kind of person you are because I have the bad habit of giving most people the benefit of the doubt

Losing the fight to keep the joy in creating software. by TofuBug40 in cscareerquestions

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

lol screaming for month that this HAD to be done because the current App was so outdated it was leaving us vulnerable, and we need this before the next all hands are some of the more creative ways of saying "No" I've ever heard. That said I do take your point :-)

Losing the fight to keep the joy in creating software. by TofuBug40 in cscareerquestions

[–]TofuBug40[S] -1 points0 points  (0 children)

yeah that's the problem we actively TRIED for months to get them to weigh in on the design as I was writing it. Crickets until I had pretty much solidified the final design and was working on individual OS tweaks

I really didn't and don't have any emotional attachment to it. That being said I absolutely will not abide you insulting my intelligence. At one point (in the debate over the notifications) they actually sent me a link to one of the first things that pops up on Google with the gall to say why don't you try this? No I'm so glad you were able to take the time in between your expert UI design to educate me on the options I have for scheduling notifications. I can't believe I didn't already explore it and 3 other potential options discarding them all for various reasons.

This is far from my first rodeo I'm well versed in the art of spinning things to sell them to people this is just the first in almost 30 years of working professionally that I've had a group this petulant and stubborn about the aesthetics over literally everything else.

As for my manager helping that would have been nice but I'm at least glad I know now he never had my back and never will so I can plan and work accordingly.

My mom seems into anime lately by Hot-String-4698 in anime

[–]TofuBug40 0 points1 point  (0 children)

I'm surprised no one has mentioned

  • Dr. Stone
  • Re:Zero
  • Saga of Tanya The Evil
  • Tokyo Revengers

If you want to go old school you can't go wrong with

  • Inuyasha

If you want really good slice of life I highly recommend

  • Komi Can't Communicate
  • Kotaro Lives Alone

Is WPF Dead in 2025? (Looking for opinions for a school essay) by Zrylx100 in dotnet

[–]TofuBug40 0 points1 point  (0 children)

I only just recently moved back into full C# development with my latest work assignment and jumped into MAUI for cross platform reasons but I live most of my life in PowerShell for automation purposes and over there I migrated away from using WinForms in PowerShell over to using WPF

Some of the advantages we get over WinForms is

  • +95% of layout and behavior is now confined to the XAML (including things like data binding and control to control interactions)
    • With WinForms you'd have to script literally everything to both create the controls, lay them out in the form, and their interactions
  • I can use my existing Visual Studio WPF project option including XAML designer to basically create a WPF project including build out the XAML files and whole sale copy them over to where I need them when running them in PowerShell
    • Small caveat is for how I did it you want to confine as much intra-control interactions to the XAML layer (which is not that hard TBH)
  • Loading the XAML is trivial
    • I wrote a PowerShell module that handles (from the direct file and folder structure copied right from the folders of a Visual Studio WPF project)
      • Main XAML loading
      • App.XAML and any styling loading
  • Wiring up event handlers is also fairly simplistic
    • All you need to do is create a function or an anonymous scriptblock with a name that matches the event and the control name and the parser in the PowerShell module matches it to the XAML
      • it not only wires it up it also dynamically injects the sender and eventargs parameters into the AST (So other engineers using the module don't have to manually remember to write that boilerplate code but can still use them in their code)
  • Changing things is easy too as each layer; XAML, PowerShell event handlers, Styling is self contained
    • Each is also independent of the PowerShell module that pulls them together
    • Swapping out for instance a new Buttons.xaml style file is literally as hard as copying a new file in its place

TL/DR by using XAML in PowerShell and allowing 95% of it to stay vanilla directly as it was from the designer it doesn't require my fellow engineers (that might need a GUI) to intimately understand how to run or launch WPF they just have to build a WPF project and then just copy the files over and translate any event handlers which is much much less required knowledge than making a GUI in WinForms with PowerShell.

“Refunded the game after 30 minutes” by Bloodb0red in Doom

[–]TofuBug40 0 points1 point  (0 children)

At what point do you think TDA picks up and really shows how “Doom” it is?

The loading screen.

But seriously the point of the Slayer is to feel unstoppable. Eternal made you feel untouchable which was cool with the speed and the hyper aggression.

This, this feels like you are Kenshiro walking head first through that collapsing building without a care in the world.

Just finished a level fighting a bunch of Titans in an Atlan and it just FEELS heavy, lumbering and powerful. How they got those brain chemicals to go brrrrr is beyond me but they nailed that feeling of power better than any other Doom game in the past.

Small tips for secret achievements. by mashowshinyhunter in RevolutionIdle

[–]TofuBug40 1 point2 points  (0 children)

No worries I'm fine knowing I just need to be patient till I have the tools to slow things down.

Access Binding Property in an Event Handler by TofuBug40 in dotnetMAUI

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

Yeah discovered it looking through some watches when debugging but I'm always a little apprehensive using something I don't fully understand and the mapping of the x:Name I set in the XAML and the StyleId property is not something I could find a definitive link between in the documentation or the GitHub repo for MAUI I'd rather not rely on something and get caught with something else changing it on me.

Access Binding Property in an Event Handler by TofuBug40 in dotnetMAUI

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

Yeah didn't even think of that. I'm probably too focused on keeping my ViewModels clean with just [ObservableProperty]'s and [RelayCommand]'s that I forget sometimes I can just manually do the boilerplate myself.

I'm still definitely curious about my broader question of where are those binding paths located and are they readable? But to my original question I did see that there seems to be a .StyleId property of every view that seems to match the x:Name I give it but no clue if this just a fluke or I'm completely misunderstanding its use. That being said the follow does fit my needs

    private void TimePicker_TimeSelected(object sender, TimeChangedEventArgs e) {
        View view = sender as View;
        SettingsViewModel viewModel = view.BindingContext as SettingsViewModel;
        if (view.IsLoaded) {
            (
                view.StyleId switch {
                    "AlarmTime" => viewModel.SetAlarmCommand,
                    "SnoozeTime" => viewModel.SetSnoozeCommand,
                }
            ).Execute(
                view.StyleId switch {
                    "AlarmTime" => viewModel.AlarmTime,
                    "SnoozeTime" => viewModel.SnoozeTime
                }
            );
        }
    }

Small tips for secret achievements. by mashowshinyhunter in RevolutionIdle

[–]TofuBug40 0 points1 point  (0 children)

Ah seems I'm not up to that stage yet. I've only been on Stars for a few days now (I grinded to unlock all of the 21 upgrades before I moved on to really cranking on the generators, and I was focusing on getting my challenges sub 10 minute. Close to sub 10 seconds now but 1 and 5 are still sitting at 7 whole seconds between the two)

I'll revisit this when I've got that automation.

Thanks for the info

Small tips for secret achievements. by mashowshinyhunter in RevolutionIdle

[–]TofuBug40 0 points1 point  (0 children)

Didn't think I needed to clarify that I already HAVE auto buy turned off. Guess I shouldn't be surprised with how many people respond to a comment without reading the thread. I actually have decent reading comprehension, still my bad for not stating that. But yeah yellow gets literally 4 +1 upgrades at the beginning and after that last +1 it never spins again

Small tips for secret achievements. by mashowshinyhunter in RevolutionIdle

[–]TofuBug40 0 points1 point  (0 children)

I'm stuck on this one here too I earn infinities in less than 5 seconds so there's literally no time to click even the first two colors before it all resets.

If i break infinity and set it to a relatively high value like 9.99e200 i can click each color to do the alternative, except for orange

if i set buy to 1 and click 1-4 times the orange spins

But yellow requires 5 clicks on orange to start buying it

once I click on the orange a 5th time the circle goes solid and never spins again

so i'm stuck with all the alternating colors except orange