« first day (3903 days earlier)      last day (1028 days later) » 

 
2 hours later…
6:50 AM
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
7:13 AM
good morning
 
Good morning
 
:))
have you tried out angular?
 
I'm using angular at work^^
 
:D
I had a small question
 
Although technically 90% AngularJS :/
 
7:17 AM
oof
loadChildren: './upload/upload.module#UploadModule'
what's up with # do you know?
 
No idea
 
ah
okies
AngularJS is fun
I tried it out
 
[Squirrel in Training] Vue is nice 2
 
7:35 AM
Blazor is boss
 
8:11 AM
\[**[Squirrel in Training](https://discord.gg/PNMq3pBSUe)**] never used
I guess it takes work to make blazor look nice correcto?
 
8:25 AM
@Botler Depend on the specific case of "nice" - the default template is kinda nice, except not if you wanna build something for dota then it's just...sterile.
@TonyBrand Have you posted that question in here before? My spidey sense memory is tingling
You did, on 9th June. And you did not answer my followup question AFAIK.
@TonyBrand So I can either spam you with pings, or just remove your message each time you come here.
Wow, your history says you spam it everywhere
It's time for you to leave chat for good
Thx
 
Yes, please flag future recurrences of that. I would appreciate it being brought to our attention.
 
Is this one flag or should I go and flag all of it? chat.stackoverflow.com/users/13087204/tony-brand?tab=recent
Seems to just spam after 2017
 
I think we can just go from here forward.
 
Alright thanks
 
No problem
 
8:49 AM
[Squirrel in Training] Just ban killerino
 
Don't get Botler banned :P
 
[Squirrel in Training] just ban him*
[Squirrel in Training] the tony dude
 
9:29 AM
[Captain Obvious] Blazor is excellent
 
 
2 hours later…
11:44 AM
!~shiba
 
<°Y
 
seeing a good boy reminded me
did you hear Scooby Doo is getting a crossover with Courage the Cowardly Dog??
 
:o
o rly
no I did not
 
lol remember when they did a scooby doo movie and it was just softcore pr0n
 
11:55 AM
yes i also remember scooby doo the movie from 2002
 
hey harry
o/
 
o/
 
12:17 PM
[Squirrel in Training] Hey lunch!
 
12:35 PM
hey rodent
 
12:51 PM
been worse, get to see gf for first time in ages tomo, howu?
 
1:03 PM
[Squirrel in Training] Fine with new baby
 
I finally got videos to stream as I wanted
 
1:25 PM
[Squirrel in Training] adult movies? ๐Ÿ˜
 
yeah adult movies about how to hoist a casting
 
1:46 PM
Teresa Dietrich on June 23, 2021
We’re thrilled to be launching this new product with Google Cloud and Go.
 
[Squirrel in Training] ๐Ÿ˜๐Ÿ˜๐Ÿ˜
 
Is there a way to make an item in a dictionary into an array?
 
.toArray()?
oh but you want an item
 
Cannot implicitly convert type 'System.Collections.Generic.KeyValuePair<string, Models.cars.car>[]' to 'System.Collections.Generic.Dictionary<string, Models.cars.car>
im getting that error
with toArray()
 
[Captain Obvious] You said dictionary to array
[Captain Obvious] That's array to dictionary
 
1:58 PM
it's cause it doesn't know what to do with this Models object
 
I get that error after i set a variable to save the result of cars.car.toArray()
i am iterating through it with a foreach i just dont know if there is a way to update the dictionary without saving the result to a variable
 
[Squirrel in Training] What do you want to achive lu?
 
my goal is the make the car to an array before it gets sent to the frontend
 
[Squirrel in Training] So you basically want to select all Carout of your Dictionary<string, Car> and send those to the FrontEnd - correct?
[Squirrel in Training] In that case you could just simply use LINQ to .Select() the Car from the the dictionary.
 
I want to send the whole dictionary Cars.car but i want to make car into an array before sending it to the frontend
 
2:08 PM
[Squirrel in Training] I don't quite follow, maybe some code would help unconfuse me?
 
2:34 PM
 
2:59 PM
What is the ToString format that converts number like 1000000 to 1,000,000?
 
.ToString("N0");
I'm sure they have that on the msdn page about .tostring
 
Thanks
 
[Squirrel in Training] THat's waht i think
[Squirrel in Training] Damn i need to quit 4 the day
 
google would like that question
 
[Squirrel in Training] Feierabend wie das duftet gott dafür hab ich so shr geschufgtet
Is this a good controller?:
cs
[Route("/Assets")]
public async Task<IActionResult> Index(string id)
{

    IndexViewModel indexViewModel = new()
    {
        Assets = await databaseContext.Assets.Include(asset => asset.Alerts).ToListAsync()
    };
    if (!string.IsNullOrEmpty(id))
    {
        indexViewModel.Assets = indexViewModel.Assets.Where(asset => asset.Id.ToString() == id).ToList().AsReadOnly();
    }
    return View(indexViewModel);
}
[Squirrel in Training] No a he's been a very naughty controller ๐Ÿ‘ฟ
[Squirrel in Training] In all seriousness: Accessing the DB fromt eh controller like that can be considered a code smell
 
3:47 PM
I am stuck in a very weird situation. I am trying to write a method to replace the LINQ in the controller:
cs
[Route("/Assets")]
public async Task<IActionResult> Index(string id)
{

    IndexViewModel indexViewModel = new()
    {
        Assets = await databaseContext.Assets.Include(asset => asset.Alerts).ToListAsync()
    };
    if (!string.IsNullOrEmpty(id))
    {
        indexViewModel.Assets = indexViewModel.Assets.Where(asset => asset.Id.ToString() == id).ToList().AsReadOnly();
    }
    return View(indexViewModel);
}
However, it seems like we cannot constraint template to just 2 types:
cs
public IReadOnlyList<T> Populate<T>(IReadOnlyList<T> list) where T: Asset, Alert
{
    //this method will replace the DB Calls
}
I thought of doing:
cs
public IReadOnlyList<T> Populate<T>(IReadOnlyList<T> list) where T: IModel
{

}
 
 
5 hours later…
8:32 PM
 

« first day (3903 days earlier)      last day (1028 days later) »