« first day (4372 days earlier)      last day (566 days later) » 

 
1 hour later…
6:08 AM
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
 
4 hours later…
10:04 AM
Hi
what is Cycle detected
I'm getting this error when i try to add serilog to my project
 
10:24 AM
[Hector] hard to say without more context
 
i created a new project .net6
 
you mean a cyclic dependency
 
i'm trying to add a serilog it giving this error
it's a brand new project
contain nothing
 
[Hector] out of curiosity, what does Serilog give you that nlog doesn't?
[Hector] or log4net, or whatever other logging tool is supposed to be the good one nowadays
 
just what i'm using currently
so, is it a common error cycle dependency
 
mr5
10:33 AM
Look at this abomination youtu.be/Gm6dZ1q06ks
 
"it wasnt quite ready to walk"
meanwhile at boston dynamics: youtube.com/watch?v=tF4DML7FIWk
 
mr5
10:51 AM
Yeah I was thinking of BD
I think Tesla would better of fork BD if they want it to be ready in 5 years
 
11:05 AM
[Captain Obvious] Serilog is good shit
 
To this. or not to this.
 
 
2 hours later…
1:29 PM
Hi all,
What's the shortest way to check an array index.
ex: name is an array could have been of length:0, 1 or 2

var person = new(name?[0], name?[1])

class Person{
public Person(string firstName, string familyName){...}
}
 
1:55 PM
[Captain Obvious] What do you mean check the index?
 
2:37 PM
just use a switch?
var person = name.Count switch
{
	0 => new Person(),
	1 => new Person(name[0]),
	2 => new Person(name[0], name[1]),
};
 
3:02 PM
posted on October 05, 2022 by Ruben Rios

Over the last couple of years, we’ve expanded our Visual Studio VM image offerings for the Azure Marketplace. These images have proven to be popular not only for evaluating the latest Visual Studio releases, but also for jumpstarting developer environments in the cloud. The post Visual Studio’s Azure Marketplace images now support Microsoft Dev Box appeared first on Visual Studio Blog.

 
3:28 PM
@Botler I meant to avoid the "out of range" exception
 
 
2 hours later…
4:59 PM
[Alex6743] Hi all
[Alex6743] Got an interesting challenge: an ASP.NET Razor Pages page has two forms, MainForm and AddToChildCollectionForm. MainForm has fields from a BindProperty object MainObject. AddToChildCollectionForm is adding an item to a collection on the MainObject but uses AJAX, whereas MainForm is submitted via a submit POST.
\[**[Alex6743](https://discord.gg/PNMq3pBSUe)**] Problem: the MainObject gets repopulated when it's a regular POST from the MainForm. However, that object is empty when AddToChildCollectionForm is sent via AJAX.

Is there a way to manually bind the data in the MainForm to the MainObject in the AJAX call?
[Alex6743] Open to suggestions
 
 
1 hour later…
6:19 PM
[Alex6743] Found a workaround: have one form; add the items using the <input name="MyList[i]"... trick. The binder is smart enough to pick it up. And the items don't need to be added until the user saves anyway
[Alex6743] But it's weird I couldn't find it well documented. Just ran a test and saw the binder had picked up a manually added item following that pattern
 
 
2 hours later…
8:20 PM
[milleniumbug] @mshwf name.ElementAtOrDefault(0)
 
 
2 hours later…
10:00 PM
 

« first day (4372 days earlier)      last day (566 days later) »