« first day (4016 days earlier)      last day (936 days later) » 

1:33 AM
 
 
1 hour later…
2:57 AM
why js people like to put 1e3 as number or similar, why making it worse for readable code?
 
 
2 hours later…
mr5
4:45 AM
obfuscated code == lit
 
 
1 hour later…
6:11 AM
[Squirrel in Training] === super lit
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
 
2 hours later…
8:18 AM
I just knew this command that assigns an SSL certificate to a port docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/…. is that how Visual Studio assigns the localhost certificate to web projects?
 
[Squirrel in Training] wcf should die a firery death
 
why- aside from it's oldie?
 
доброе утро
 
8:52 AM
why does EF not have a proper delete where query?
the only way how to do it without writing sql is by loading all the records into memory first
 
[Captain Obvious] It does?
 
it only has DbSet<T>.Remove(T) and DbSet<T>.RemoveRange(IEnumerable<T>)
 
[Captain Obvious] Exactly, removerange
 
which is an enumerable
which is in memory
 
[Captain Obvious] Not necessarily
[Captain Obvious] It's an IEnumerable so by definition you don't know where it is
[Captain Obvious] If you feed it a List<T>, then sure it's in memory
[Captain Obvious] But if you feed it an IQueryable<T>, it's not
 
9:24 AM
[Squirrel in Training] Wouldn't it be called into memory first b4 sending to the DBß
 
 
2 hours later…
11:26 AM
Wait is an IQueryable an IEnumerable? Beause not having delete where is also something I have been missing in EF.
But if the method takes an IEnumerable, EF doesn't even know it is supposed to send a query to the DB?
 
11:53 AM
ive got 2 winforms,
one of them loads a devexpress grid with 3 columns
theres a button on the form to add a new comment which opens up another form where you type the comment and submit it
the submit button saves the data and closes the form
it doesnt update the original grid until i exit and reopen the grid
any ideas how i can make the form dynamically refresh?
in b4 stop using forms u dirty freak
 
> ive got 2 winforms
There's your problem
Pretty sure elements have some kind of .Refresh() or something
It's been a while
Have you tried that?
Also are you updating the correct data source? What if the grid has a copy of the data source but only on init gets a copy of the source of truth?
 
12:30 PM
Refresh() and RefreshDataSource() are giving me nulls
 
I didn't expect them to actually return anything lol
Reassign data source?
 
1:01 PM
all sorted
bit of bodging
 
1:28 PM
anyone know why a gridview boundfield would show up as invisible from IIS, but it's totally visible on the live site?
 
 
1 hour later…
2:57 PM
@Freerey Does the live site not run on IIS?
 
dont you just love opening a 10000 line cs file to find 80% of it is zombie code
 
3:14 PM
@Squirrelkiller it should be
 
3:54 PM
o/ any asp.net gurus in here
 
 
1 hour later…
4:55 PM
Hi all
If you have an MVC action like this:
public ActionResult Login(string returnUrl)
{
	ViewBag.ReturnUrl = returnUrl;
	return View();
}
And in the view you have this as the model: @model MyApp.ViewModels.Account.LoginViewModel
Then in the cshtml you have the following:
@Html.TextBoxFor(model => model.Email, new { @class = "form-control" })
Is MVC spinning up an instance of the model for the view? It's odd that we don't have to pass an instance into the view when we say return View();
Is that an MVC convention?
 
5:45 PM
@BeerusDev maybe
 
 
2 hours later…
7:36 PM
I don't get why an API call returns 401 when called in c# every single time, yet Postman has no problem whatsoever
 
mr5
double check both address
 
do you know how to get the address from an httpwebrequest?
 
posted on October 07, 2021 by Scott Hanselman

I ran into this interesting issue where my System PATH environment variables got out of order. I ran "dotnet --version" and saw an error I'd not seen before. Dotnet "Could not execute because the application was not found or a compatible .NET SDK is not installed." What's that? How did I diagnose this? From the command prompt, I typed "where dotnet" to ask cmd.exe "which dotnet.exe are you

 
🔫
nvm
 
mr5
8:14 PM
is that it?
 
var int = "Hello World"??
 
 
1 hour later…
9:39 PM
In short, a dictionary is created for the view. Meta data from the defined model can be used, even if the model object itself is null. So, accessing part of the declared model type in order to generate a text box can be done without passing any actual object for the model itself, although the value of the textbox will end up being default(Type).
 
 
2 hours later…
Ben
11:47 PM
Hello again, been a while
I've had my coffee, I've done some googling, and I'm still stuck on my previous issue of "use the actual project and not the dll" in my OMR project.
 

« first day (4016 days earlier)      last day (936 days later) »