« first day (3992 days earlier)      last day (942 days later) » 

mr5
1:46 AM
@Freerey they have patched a fix. We're just exploiting it :D
or prolly also that the token has expired
 
 
5 hours later…
6:33 AM
Good morning
 
being delivered == delivering ?
 
Yes
When the parcel is being delivered, the postman is delivering
Woah, semantic saturation sets in quickly with deliver
de-liver
What's English's problem with my liver?
 
de live er
 
7:28 AM
But...I hardly know her!
 
 
1 hour later…
8:30 AM
 
8:49 AM
Ah! Explain your self language!
Fockin weak-ass markdown
 
 
1 hour later…
10:04 AM
[Captain Obvious] Has anyone here that the... misfortune... of working with the MS graph api
[Captain Obvious] I'm getting some some fucking error when trying to subscripbe to Teams webhooks
[Captain Obvious] User may only create user-scoped chat message subscriptions for their own messages, not for any other users' messages.
 
lol
U not authorized brah
 
[Captain Obvious] I'm trying to subscribe to me/chats/getAllMessages
[Captain Obvious] It's SCROPED TO THE CURRENT USER
 
Hahaha lol
 
10:39 AM
[Captain Obvious] oh my fucking god
[Captain Obvious] /me/chats/getAllMessages does't work
[Captain Obvious] /users/{CurrentUserId}/getAllMessages DOES WORK
[Captain Obvious] /users/{CurrentUserId}/chats/getAllMessages
 
11:20 AM
guess who won't be on discord for a few months yet :D
 
11:31 AM
me!
 
why you?
 
12:05 PM
 
I'm working on writing more and pushing social media out of the way...also making more friends irl
 
12:21 PM
[Squirrel in Training] No I ment shouldn't it be wietlol 11
 
11?
 
[Squirrel in Training] Olay nore AoE!
[Squirrel in Training] Damn i tired 2 type
 
never started playing AoE :D
except for when I was in middle school and had AoE on my ds
 
12:44 PM
ds had AoE?!
 
1:03 PM
why wouldn't it?
I had AoE: Mythologies
 
Because it's a fancy game boy, not really fitting for an RTS, as you don't have mouse&keyboard!
 
you have a touchscreen tho
 
1:23 PM
[Squirrel in Training] It's nto a gameboy anymrpe killerino
 
I have a C# API with many different endpoints, and a React front end making calls to it. Some of these endpoints will trigger a write to a log, but there are no deliberate calls from the front end specifically to write to the log. The content of that log is displayed in the front end.
My problem is that I need the frontend to refresh its log display when the log is updated. I'm thinking that what I would like to do is somehow add a "rider" or metadata or something to the API response telling the frontend that a log entry was added and that it needs to refresh the log display. Is something like that possible?
 
1:40 PM
[juanvan] We have an api that writes users errors to a log on the server after a request.
[juanvan] JS errors
 
2:03 PM
@Hypersapien I mean, just return a bool that tells the frontend whether or not to update their data I guess?
Or set a header value
Or...figure out which is the right HTTP status for that, I'm sure there is one.
201 or maybe 205?
 
Philippe Beaudette on September 19, 2021
It’s time once again for the ritual that I know we’ve all come to love: the quarterly update on Community team projects. This quarter’s projects are constrained by a lack of available technical/engineering resources on our Public Platform team, so you’ll see that we are focusing on projects that don’t require assistance from them.
 
@Squirrelkiller The backend has a Controller/Manager/DataAccess structure. The problem is that the Controllers don't always know if the log has been added. Sometimes it's called in the Manager level. What I'd like to do is have the function in DataAccess do something that the Controller Base class, that all the Controllers inherit from, can use to send the header.
 
Well that is a whole new can of worms
Because that is internal stuff very specific to your application
Best case, you have a result object that is returned everywhere so you can add a flag there
If it runs single-threaded, you can indeed set a header.
That one you could then translate to an HTTP code using a middleware if you like.
 
2:21 PM
First of all, is it possible for a class that the Controller inherits from to add a header to the Controller's endpoint response without the endpoint having to do anything extra?
 
Override initialize or ExecuteAsync I guess?
 
Yeah, actually I'm already doing that with something I wrote months ago. I don't think that will be a problem.
Not sending a header, but doing other actions on all api hits
How can I set a value so that other parts of the application, only in the scope of that same API call, can read it?
 
You could inject a scoped service
Set the value there
 
Right.... this could work.
 
2:40 PM
[juanvan] Well expert exchange is going up in price
 
 
2 hours later…
4:49 PM
[DAustin] Didnt realise anyone still used that since stackoverflow came on the scene
 
5:05 PM
I have an NLog question; is it possible to make my own logging server that a program logs to? I'm trying to figure out how to get error logs from WFH users, without them having to self report an error. I have an IIS server that I can work with, but I haven't found anything about logging to my own server, instead of using AWS log service, or something like that
 
5:44 PM
[juanvan] @DAustin used lot for systems, SO is more programming - the network exchange kinda sucks
 
 
1 hour later…
6:56 PM
How can I pass Scoped DI objects into the class that my Controllers inherit from? The Controllers are complaining that the object isn't being received.
 
7:28 PM
posted on September 09, 2021 by Scott Hanselman

Minimal APIs in .NET 6 is great. But where are the Unit Tests?! Often testing is missed or forgotten because it's perceived as difficult or complex. Exploring a minimal Web API with ASP.NET Core 6 A .NET 6 Minimal API Todo example Playground Exploring a minimal WebAPI with ASP.NET Core Easier functional and integration testing of ASP.NET Core applications Automatic Unit Testing in .NET Co

 
 
3 hours later…
10:51 PM
@Hypersapien Are you making the object in in the startup?
Should have .PerRequest or Singleton
 
[Hypersapien] It's set to scoped. I'm not familiar with PerRequest. I should try that
[Hypersapien] I think I got it working. I'm not sure. Before I could test it I had to go to a meeting that ran up to 5:00. I'll look more closely tomorrow.
 
What's the project type?
@AndyD273 Well you could have a project that has the logic
 
11:11 PM
@juanvan That's fine, I'm just not sure how to figure out how to do that... Like, I can make a project that runs on our IIS server, but I really don't know how to handle any data sent to the target by the program
 
It would be some kind of exe that took a arg of string[]?
If you're not going to bake the nlog into the project
 
11:25 PM
 
11:47 PM
@juanvan I'm going to put NLog in the project that the remote users use, and I can do that already, at least logging to a file on the users harddrive. What I'd like is something like AWS CloudWatch, or some other logging server, but running on my own hardware. That's the bit I'm not sure how to do
 

« first day (3992 days earlier)      last day (942 days later) »