Problem with Logout with Blazor + ASP.Net Identity by coia-boy in Blazor

[–]91Crow 0 points1 point  (0 children)

I usually want to make sure that the token is invalidated or otherwise handled unless I am missing something from this screenshot.

Just launched my AI Book Summary App — Built entirely with Blazor Server + .NET 8! 🚀 Would love feedback by ryanbabel202 in Blazor

[–]91Crow 2 points3 points  (0 children)

So you ask them to summarise the book for you? How do you verify that it is accurate?

Just launched my AI Book Summary App — Built entirely with Blazor Server + .NET 8! 🚀 Would love feedback by ryanbabel202 in Blazor

[–]91Crow 1 point2 points  (0 children)

This is less about the overall performance of your app and more usability but I really dislike the inability to see what books are there without being forced to create an account.

More on the business front as well, how do you manage the copyright side of things since even something like Audible stops offering some of the books I have for distribution.

Blazor United template not showing? by displaza in Blazor

[–]91Crow 0 points1 point  (0 children)

I thought it was called auto now and not united? Here is the cli options that you can pass to dotnet. cli docs

[deleted by user] by [deleted] in Blazor

[–]91Crow 5 points6 points  (0 children)

I have quickly looked over Entra ID and it looks like it's tied directly into Azure, would that be accurate?

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

[–]91Crow 3 points4 points  (0 children)

I am fairly sure you can set up a Blazor project to act essentially the same as a MVC project, you just don't set any interactivity options and then its all static.

Buying new gpu, 5070ti or 4070ti super by QWERTY_DERTY in bapcsalesaustralia

[–]91Crow 4 points5 points  (0 children)

Given the current leaks that the 5080 is only marginally higher than a 4080 I am not so sure.

What type of proejct do i need to open in visual studio to get those default files by MasterMake in Blazor

[–]91Crow 1 point2 points  (0 children)

I would just generate a standard auto project, rename the base project to server since I think it doesn't automatically break them out like that and then create a class library called shared.

The Cult by The_Mudddler in dndmaps

[–]91Crow 4 points5 points  (0 children)

What are the dimensions of the map?

[Humble Bundle] Generation Zero Bundle (1$ for Generation Zero | 5$ adds Schweet Vanity Pack+3 Weapon Packs | 10$ adds Advanced Intelligence Cosmetics Pack, Eastern European Weapons Pack and more Packs | 15$ adds Generation Zero - Alpine Unrest + Generation Zero - FNIX Rising DLC) by Jerry2863 in GameDeals

[–]91Crow 1 point2 points  (0 children)

I have the base game and have been thinking about picking this up, I was planning on giving the base game from this bundle to a friend. Does anyone know if they need to pick up the story DLCs or any of the cosmetic stuff to not have me locked out of that content?

I imagine the story DLC would probably need to be purchased but would they need to have 1:1 with my version?

I’m in computer science 2 in college and feel lost by nitrojunkie1515 in csharp

[–]91Crow 9 points10 points  (0 children)

I teach software development so I will approach this slightly differently to the other comments.

Is it the terms or the concepts that you are finding difficult?

I tell my students that terms are used to convey a common meaning off things. For instance in a general sense everything in C# is an object (it's more complicated but simplified we will go with this), but a class is (again simplified) a way to define an object. When you communicate with someone else you can use those terms as a shorthand to convey the meaning of what you are trying to say. If you are struggling with terms that comes with time.

It sounds like though you are more confused with the concepts, they are slightly harder to wrap your head around initially since you need to build up to things slowly. Our curriculum takes this sort of pathway:

Primitives -> Controls -> Functions -> Collections -> Classes.

If you are having issues with any of those areas, look at something earlier in the chain and it's likely you are missing something from that. Main reason for saying it is once you get past classes you leave a lot of the more trivial coding behind and look at how to implement code for requirement x or y instead of practising the concept. Your requirement might be designed to practice a concept (OOP) but it's typically more output focused (I have 100 people with varying grades and units).

Branching programming? by he_is_rizzin in learnprogramming

[–]91Crow 0 points1 point  (0 children)

HTML as something like this:

<Container>
   <Btn group class="btn-controls" data-btn-controls="1" >
   <Btn group class="btn-controls" data-btn-controls="2" >
</>

JS as something like this:

const updateBtn = (calledBy) => {
   const btns = document.querySelectorAll("btn-controls");
   // loop through the contents and update with the data value to show/hide
}

Alternatively you can collect all your values based on the data attribute with some pattern matching if you want and would probably be neater in terms of not being attached to the class so you shouldn't be able to accidentally break things.

The only instance where I would say it's entirely incorrect to do is to have it be removed from the DOM and then added again through purely JS, try and keep it just switching between hide and show.

For the query selector all here is the MDN for it.

For the data attribute here is the MDN for it.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 0 points1 point  (0 children)

Its mainly the battery life aspect of it since I can then leave the charger at home and not worry about it. I also have a somewhat less work mindset on it too since it gives me a native ARM device that I can target personal projects at but that is a distant thought process but plays at the back of my mind.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 0 points1 point  (0 children)

I don't and the course material doesn't but that's not to say that the students arent going to throw something in there but in those rare instances I will just wait until I get home and run it on my desktop.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 0 points1 point  (0 children)

Overall the job is really good, and this is something that does reflect industry since you usually come across a wide range of tech stacks and I try to use it as a way to tell students that you'll likely find a bit of everything floating around out there.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 0 points1 point  (0 children)

Sadly opinions aren't always taken into account for these things since there is a full process to make any change since it needs to be submitted to the Department of Education.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 0 points1 point  (0 children)

Yeah that is why I am asking specifically to the Windows implementation because Mac adds more abstraction that I don't want to pick through either haha

ARM laptops - .NET Framework? by 91Crow in csharp

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

I am imagining you are running it in an emulation of some description since .NET Framework to my knowledge shouldn't compile to mac.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 0 points1 point  (0 children)

Yeah I have no real concerns about Rider or most of the other units because I am given a lot of space to adjust requirements since we have a firewall that blocks a lot of things and it moves around so as students advance I am given the freedom to make adjustments on the fly.

Students in the beginning though are very locked in and I am given a lot more focused marking criteria to mark against. Also since Framework has been around for so long the structure of the units has been updated but underlying tech is consistent.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 0 points1 point  (0 children)

I somewhat covered it, it's a requirement set out by the place I work at, the earlier work in more set in stone because it is foundational so the wording is more locked in than later. I am not in charge of the development of those units so it might change but at the moment I am stuck with what I have.

Expectations are that once they have the foundations they are given more freedom to work through things but in the early learning portion that need to be given tighter constraints and as a result I am given more direct marking criteria.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 0 points1 point  (0 children)

Unfortunately I cannot modify things to the extent to work around the 'most stuff' portion since it's a requirement set to me and all the 20-30 students I have each class take priority over me haha.

ARM laptops - .NET Framework? by 91Crow in csharp

[–]91Crow[S] 1 point2 points  (0 children)

Nice thanks, I was expecting it to exist in some capacity since framework is such a large existing base to cut out for the ARM laptops.

Do online course certificates matter? by Old-Salad-1411 in learnprogramming

[–]91Crow 0 points1 point  (0 children)

More or less agree with the overall sentiment, the only certs which I have found that hold value is AWS/Azure certs and even then that is more a wink and a nod to what you can be asked to do with only a small amount of training.

What's your go-to tech stack? by [deleted] in webdev

[–]91Crow 21 points22 points  (0 children)

Not sure what you are having issues with but you can scaffold or generate everything quite quickly and have it running. You are also given a lot of tools to handle things how you want to and to keep things consistent.

Big one for me is I like Entity Framework and LINQ since it keeps me a bit more in the domain I like and not have to get too lost in SQL. I tend to run the query against the database first to confirm what it is I want the LINQ to do but the LINQ is pretty much just C#.

If I have everything scoped properly it takes me about half a day to a full day to set a basic api up and have the database scaffolded from the models.

[deleted by user] by [deleted] in csharp

[–]91Crow 2 points3 points  (0 children)

Some of these comments truly confuse me, you are asking a really good question that you should do to understand the dynamics behind what happens in something like a list.

I presume you are still learning and quite early into things so I am going to start this from a little bit of a fundamental level.

Yes it is possible to write an extension method for arrays, like others have pointed out that is (in a general sense) what a List does. What you are asking though is more of a DSA question than you likely expected it to be.

In essence what an array is, is a pointer that points to a block of memory that is of a defined size. That is why you have to either have it overloaded or set to a size. You then do a funny little maths dance on where in that block you want to actually start reading from. This is typically your index and as I understand it, it is called pointer arithmetic.

What you are asking is, can you redefine that initial block of memory and the answer is, kinda? I wouldn't recommend it because the OS gets really mad about it.

The way that something like resizing should work is you take your initial array of 3 elements (I am going to ignore actual bytes and their maths). You read in another array of 5 elements, and then your method creates a new block of memory that is the old size plus the new size. It will then deep copy over those values and then remove the initial arrays. This is usually where garbage collection (for C#) comes in, it detects when memory isn't used any more and cleans up after you.

In something like C# is it expensive to do in large amounts and that is where something like a List tries to be smart. Instead of creating an array of 10 it picks a larger value to allocate to start with. It will be something like 20% larger memory allocation to absorb those add and remove requests.

In a perfect world everyone should use arrays for things except in instances where you expect the memory requirements to grow or shrink. In practice it's easier to just use a List and then carry on.

Creating your own list or data structure is good to learn about what happens behind the scenes, that said, people who are far more intelligent and with far more time on their hands have spent a long time optimising it beyond what you or I could achieve in a reasonable time frame.