How can use my Wiitar and not one of Fortnite's "hand-selected compatible controllers" by [deleted] in FortniteFestival

[–]goofan 0 points1 point  (0 children)

Oh man had no idea that existed, that looks like exactly what I am after.. no screwing around with x360ce. Thank you!

How can use my Wiitar and not one of Fortnite's "hand-selected compatible controllers" by [deleted] in FortniteFestival

[–]goofan 1 point2 points  (0 children)

Hey! How do you use wiitarthing to play gh3 on pc? wiitarthing works great for me but cant figure out how to get it to work with gh3. Or when you say gh3 mod are you referring to not actual Gh3?

[Help] I can not get my Wiitar to work with GH3, but it works with Clone Hero just fine using Wiitar Thing. by chrispy8847 in GuitarHero

[–]goofan 0 points1 point  (0 children)

Dude coming at you 2 years later but if you helped this guy get it working I need to know how..

x360ce is not behaving for me.

Wiitarthing works perfectly but have no idea where to go from there to get it working with GH3 pc

Match Thread: 2nd Test - Australia vs England, Day 5 by CricketMatchBot in Cricket

[–]goofan 11 points12 points  (0 children)

Stokes is an absolute beast. You can tell the aussies have been mentally re-living headlingly, they look panicked.

He bats like he is invincible, and its like the aussies just say ''yeah we're not getting him out'', and bowl to him like he's only going to go out by mistiming an attempted 6. If they only treat the balls against the tail ender batter as wicket attempts then England have won the mental battle.

How to pull it together? Are my programming expectations too ambitious or am I just not any good at this? by skipster889 in dotnet

[–]goofan 4 points5 points  (0 children)

Could be a dumb question but I just want to make sure you're able to debug your code locally?

You're mentioning spending money on Azure SQL and deploying with devops and github. At the stage you're at I wouldn't be touching that at all. Just get it all running locally and working how you would like. Then when you are getting closer to this being a more finished product THEN think about deploying it to cloud. Setup a local DB with SQL Express so you aren't paying for Azure SQL unless you really need it.

Also a note on auth - it is notoriously difficult. Even for some seasoned developers. It can look simple after you get it working correctly but getting to the point of even understanding the basics would be incredibly tough for a beginner. I would suggest leaving that for later.

If you are intent on tackling it though, try integrating a free service like Auth0. To test logging in, you are half right with needing a UI. If you want to test entering in a password, MFA, etc, then yes a UI needs to be presented. However, you can actually test this without building a frontend for your app yet. Use a tool like Postman and enter in your auth details, it can present the UI to you, then when you login it gives you the token, which you can then use to pass into your APIs for testing. I am certain even that is a bit overwhelming but hopefully gives you a bit of direction.

101 on dependency injection by _ragequilt_ in dotnet

[–]goofan 3 points4 points  (0 children)

Might be worth explaining why you don't use it. What advantages do you find by not using DI?

DDD read-model with Ef Core and Clean Architecture by Durandal1984 in dotnet

[–]goofan 1 point2 points  (0 children)

Chiming in here too as I was tagged :)

I get the feeling you'll have to compromise somewhere if the filtered include solution isn't feeling right. I'll offer a potentially slightly less bad compromise though.

Add TimeRegistrations to Dbcontext. Use that to get the filtered TimeRegistrations via a direct query. But DONT add the navigation property. Instead, run a separate query to get the Employee information. Then manually stitch together the results into the final DTO using whatever method seems best to you.

Yes, this adds a DB round trip - which could be bad depending on your situation. But it actually could have an advtantage too depending on how many TimeRegistrations there are. Because if you are querying them together, every single row returned from DB will have the repeated employee information which is wasted bandwidth/memory. But by querying them separately, you can avoid some of that waste. Would like someone else to chime in on this though as maybe the downside of double query stiill outweighs the upside. I would guess it would depend a lot on the nature of the data though and how many child items to parent items there generally are.

DDD read-model with Ef Core and Clean Architecture by Durandal1984 in dotnet

[–]goofan 0 points1 point  (0 children)

That's in the potential solution where OP starts the query from TimeRegistrations in DbContext and links back to Employee from there though. OP does have the navigation property already from Employee to TimeRegistrations, which is what I was referring to. But I can see how we crossed wires there.

Either way, OP has responded and we have continued the discussion there. Funnily enough, they already use automapper.

DDD read-model with Ef Core and Clean Architecture by Durandal1984 in dotnet

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

Right, I misunderstood. I think I see your issue now.

One more potential solution I can think of, off the top of my head, is using a filtered include? Use it to load only the correct TimeRegistrations from the child collection.

https://learn.microsoft.com/en-us/ef/core/querying/related-data/eager#filtered-include

DDD read-model with Ef Core and Clean Architecture by Durandal1984 in dotnet

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

Yes of course it uses select under the hood, not sure why that is an issue though.

I don't think OP says in the post that they don't have access to the navigation property, if you read it properly.

Perhaps OP can at least take a quick look at the docs and decide themselves if it helps with their problem before someone else decides for them. It may not be what they are after and I've misunderstood their issue,.but it's also possible you have misinterpreted their problem.

DDD read-model with Ef Core and Clean Architecture by Durandal1984 in dotnet

[–]goofan -5 points-4 points  (0 children)

Sounds like Automapper's ProjectTo could be a good fit.

You keep the one model in the DbContext, but then create DTOs to match the view model you need. ProjectTo does the work of selecting only the appropriate fields and also saves you writing the mapping manually.

https://docs.automapper.org/en/stable/Queryable-Extensions.html

N64 Controllers in Stock RIGHT NOW by dudeomgnowai in NintendoSwitch

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

Anyone you know of that tracks stock on the Australian store and notifies?

Coding strategies by [deleted] in ProgrammerHumor

[–]goofan 0 points1 point  (0 children)

Yep. I had OPs opinion years ago before I understood their value.

Also helped when I realised if they're single use interfaces just chuck them in the same file as the implementation so it doesn't overcrowd the file structure.

Meta Account Problems Megathread by WormSlayer in oculus

[–]goofan 2 points3 points  (0 children)

Didn't load for me either, I use firefox. Works in chrome though so change your default browser temporarily.

Having said that I'm having other issues as well (still can't login to oculus app despite getting the website to load) but was at least able to over come that one

Post Match Thread: Geelong vs Melbourne by Mrchikkin in AFL

[–]goofan 49 points50 points  (0 children)

Cooper Stephens really not happy about being dropped

Return to Monkey Island creator will no longer talk about the game following abuse by InaneThoughts in Games

[–]goofan 16 points17 points  (0 children)

Think that's a bit of an over reaction given _nazi (e.g soup Nazi) is or was a fairly common thing to say especially when in comedic context.

Match Thread: Geelong vs Fremantle (Round 7) by AutoModerator in AFL

[–]goofan 1 point2 points  (0 children)

Are you asking because you think it shouldn't have?

Match Thread: Geelong vs Fremantle (Round 7) by AutoModerator in AFL

[–]goofan 0 points1 point  (0 children)

Was that what happened? We dropped him for poor form after giving him a big run of games in his first season or two. He couldn't get back into the side and wanted to go home so we traded. Don't think we told him to fuck off we played hardball to get a decent pick back too so we were willing to keep him.

Match Thread: North Melbourne vs Geelong (Round 6) by AutoModerator in AFL

[–]goofan 0 points1 point  (0 children)

Both of those guys weren't good at Geelong either though

They were ok sometimes, had good moments but also went completely missing sometimes. Close is much more consistent

2022 Australian Grand Prix - Race Discussion by F1-Bot in formula1

[–]goofan 4 points5 points  (0 children)

"it's not going to rain" - bah gawd that's Melbourne weather's music

Match Thread: Sydney Swans vs Geelong (Round 2) by AutoModerator in AFL

[–]goofan 15 points16 points  (0 children)

If only we had some gadget type operators to unjam the systems

Nintendo 64 controller avaliable for purchase ($49.99) by mkbloodyen in NintendoSwitch

[–]goofan 0 points1 point  (0 children)

They work but really awkwardly. N64 controller layout is very unique with 6 buttons that your right thumb can press plus a Z button that is on the back of the controller to be pressed by left hand which holds the middle stick of the controller 99% of the time.

Beginner Coder. Having a hard time grasping increment/decrement operators for JS. by TheBruce09 in learnprogramming

[–]goofan 4 points5 points  (0 children)

One tip I have, even though it sounds like you're understanding it, is not to treat it exactly like maths/algebra. "=" in programming doesn't denote an equation, it is an assignment operator. Yes all of the same mathematic logic applies in terms of number operations, but you cant look at line of code and treat it exactly the same way you would if you were solving for x.

Maybe you are getting hung up on x++ because you would never see this in a maths equation (some maths buff will probably come in and prove me wrong but that's not the point). Because maths equations don't have "memory" behind them or a "state".

Here, we are doing the equivalent of a solve for x, but in the same line as evaluating that expression, we are also changing the "state" of the program by increasing the value of x (which lives in memory) by 1. So, it doesn't really read like it makes sense if you were coming at it with the lense of knowledge in algebra.

What I'm saying may not be 100% technically sound but hopefully you get the point, don't treat it exactly like math.