« first day (3889 days earlier)      last day (1074 days later) » 

5:32 AM
Good morning
 
 
2 hours later…
7:21 AM
So...how do I return an IAsyncEnumerable from a lambda?
Like, usually this comes from EF. But now I'm mocking the EF call away I just want to return one object, hoping to go () => { yield return fakeObject; } but no, it explodes in my face.
I don't properly understand IAsyncEnumerable yet
Ok it seems it just doesn't work in a lambda because compiler refuses to work its yield magic then.
 
you cant always mix magics
Select(), SelectMany()
 
7:41 AM
Woah, just got a major Firefox UI overhaul
Does indeed looks nice, I like this direction
 
Firefox now had around 3-4% of browser market share and drops continuously
They must do something to regain the popularity
For me, I did happy with if they have more powerful F12 dev tools
 
7:59 AM
What's missing?
 
8:10 AM
Lol Gitlab masked the name of one of my projects in the output log
 
8:34 AM
 
8:45 AM
Did you try Alex's suggestion to build the example he linked and apply what you learn there to your main project?
 
[Kid25] hi
 
@Squirrelkiller have you tried ocelot gateway?
 
I have not. Not even heard of it.
 
hi gang
take a look at this code:
    [Export("MyDataModel")]
    public DataModel myDataModel { get; set; }
In other parts of my project I can access myDataModel or MyDataModel
both seem to work
why allow this? can i use either without issue?
i saw this in one of the examples
 
What's the Export attribute?
 
9:00 AM
oh that's interesting
i think it's for XCode integration
for KVC key value coding
a sort of databinding
"Key-value coding (KVC) is a mechanism for accessing an object’s properties indirectly, using keys (specially formatted strings) to identify properties instead of accessing them through instance variables or accessor methods (get/set). By implementing key-value coding compliant accessors in your Xamarin.Mac application, you gain access to other macOS (formerly known as OS X) features such as key-value observing (KVO), data binding, Core Data, Cocoa bindings, and scriptability."
I just realized it does more than that. it let's you use your own function names that map to macOS functions
    [Export("insertObject:inPersonModelArrayAtIndex:")]
    public void InsertPerson(PersonModel person, nint index) {
InsertPerson is the C# function name
insertObject:inPersonModelArrayAtIndex: is the Objective C function name(s)
 
9:41 AM
why would you have a prop name with lower case starting in C#?
 
9:56 AM
"'Context' is not null here"
proceeds to NullReferenceException
Thanks Obama Bill Gates
 
 
2 hours later…
12:26 PM
@Squirrelkiller also...
 
[default_noob_network] wtf. api that i havent touched in like 3/4 years... needed to make a simple update, added an endpoint. reploy. CORS ERROR
 
.Where(it => it.Account != null)
.Select(it => it.Account.Name)
 
[default_noob_network] it was obviously already solved years ago. why TF now would a new CORS error appear. grrr
 
> System.NullReferenceException: "it.Account" is null.
must love EF
 
[default_noob_network] oh wait no i lied. this api has not even changed AT ALL
[default_noob_network] but now suddenly there is a CORS error.
[default_noob_network] how is that even possible
 
12:32 PM
changes in the browser
changes in the network
changes in the hosting application
 
[default_noob_network] none of it
 
changes in client policies
 
[default_noob_network] its all on prem
[default_noob_network] regardless
[default_noob_network] what is the ACTUAL way to even diagnosis a CORS prob
[default_noob_network] i feel like its just, google read try. over and over and over andover
[default_noob_network] cuz CORS sucs
 
cors sucks for development, but other than that, it is pretty nice
 
[default_noob_network] ya thats what i mean
 
12:34 PM
just localhost is an issue, especially with external identity providers
 
[default_noob_network] well ok i should say
[default_noob_network] this is happening on the deployed app
 
@Wietlol Gotta .Include it.Account
 
yes, indeed
 
It's indeed an annoying error, until you learn it's just very lazily loaded by default...
 
it was a weird experience moving from EF to EF Core
many defaults changed, many features just didnt exist, etc
 
1:00 PM
[Captain Obvious] Yeah, EF core was pretty useless until at least 2.2
 
and we were stuck with 2.1 because it was the latest lts at the time :(
 
1:17 PM
[Captain Obvious] haha imagine only using LTS releasew
[Captain Obvious] > not using preview releases in production
 
So anyone have a quick answer for how to initialize a Context in a signalr hub?
in a unit test
 
1:33 PM
[Captain Obvious] Initialise a context?
[Captain Obvious] What kind of context
[Captain Obvious] some context is necessary
 
Hub.Context
of type HubCallerContext
which is an abstract class
And one of those that are so new, the docs basically just have the same information as intellisense
No more "known implementations"
 
1:55 PM
[Captain Obvious] I have no idea
 
2:10 PM
Ryan Donovan on June 09, 2021
Many developers are skeptical of using low-code tooling to build software. Buying software instead of building it has advantages, especially when your goal is to iterate faster.
 
 
4 hours later…
6:29 PM
How do you set up a task in MSBuild?
have a MSB4803 error for a COM reference using CORE
 
 
1 hour later…
7:47 PM
2
Q: ASP.NET attempting to load streamed video source into HTML5

FreereyOver the last few weeks I have been working on an ASP.NET WebAPI that was designed to stream video from one of the company servers and play it on an HTML5 <video> element. Following a guide on C# Corner, we got the API published and now when the link for one of our videos is pasted into a browser...

someone here is telling me "you should just stream it synchronously bruh"
 
 
4 hours later…
11:20 PM
On a mobile, but 'cnt' seems off.
Just my first hunch.
 
11:55 PM
@ntohl i use camel case for property names as is tradition
is that not common?
i also use tabs
and do not put the first brace on a new line
as written on my wanted poster
Wanted:
- for using camelCase
- using tabs
- not using new lines for braces
 

« first day (3889 days earlier)      last day (1074 days later) »