« first day (4230 days earlier)      last day (701 days later) » 

6:58 AM
> public class Base { }
public class Derived : Base { }
Base b = new Derived();
Is the b instance of the Base type or of the Derived type?
I forgot about it. Where do I read up on this?
I came across this usage here
 
@CopperKettle It's Derived
 
 
1 hour later…
8:09 AM
I should re-read some basic stuff. I don't understand the purpose of assigning a newly-created Derived class object to a variable of the Base class.
@VLAZ Thank you!
Would it differ in some respect from Derived d = new Derived(), I wonder.
 
@CopperKettle You would not be allowed to use Derived specific methods and properties but you can use anything in Base. Useful if you want to be able to more easily swap implementations later on. E.g. ICollection stuff = new List() vs ICollection stuff = new Set() would behave differently but can be used the same way.
If you just have stuff you don't have to care what the type is, just that it behaves like a collection.
 
@mshwf hi. If you use IdServer, or OIDC, Okta etc. Then you can overwrite the specific GetToken, etc endpoints. Not trivial
 
8:40 AM
@VLAZ Thank you! I hope I will be able to understand this sometime))
 
8:51 AM
Hello friends!
 
9:06 AM
Good morning
 
[Squirrel in Training] sup hackerin0
[Captain Obvious] oh no what happened
 
I came back is what happened, deal with it
Also I'm building our hackathon project in blazor, which the guy currently building the backends for the new projects in typescript won't like at all lol
 
9:46 AM
@Squirrelkiller He is doing node in ts?!
 
Nest.js I think
 
@CopperKettle as a general rule of thumb, dont use == typeof(T) or .Equals(typeof(T)) instead use is T
only use either of the others when is doesnt work out the way you want
@mshwf if you want it secure, put them on a private network
dont allow anyone to access your private services
only grant access to specific services
 
@Wietlol you mean not using any of those standards (IdentityServer4 for example) and relying only on a secure network?
 
if you can
the advantage of a network based solution is that you can apply it to everything, not just asp.net servers
 
for IDServ 4 you need something like github.com/IdentityServer/IdentityServer4/issues/…
 
10:02 AM
@Squirrelkiller poor bugger
 
Depending on where this goes, I might have to switch company after I have my bachelors after all :/
 
11:00 AM
why? because they now use TS in backend?
 
11:11 AM
Yes
I came for mostly .net core and angular. Was put into the VB.net +webforms team, then switched to the angularjs+.net Framework team. Have been working on getting things upgraded to angular and .NET Core, things are getting really good actually. Now if the next step is to change everything to TS, that's not something I wanna be part of.
 
11:35 AM
omg, why does Culture.InvariantCulture not use ISO formats as default?!
 
[milleniumbug] ~~because fuck you, that's why~~
[milleniumbug] well, the only promise you get is that it's "invariant", so same on every computer, and since everyone lives in the US (/s), clearly it should be that one
 
> because fuck you, that's why
well... then it follows the C# guidelines
 
[milleniumbug] at least it doesn't follow PHP guidelines
 
12:07 PM
[Captain Obvious] Yeah that's something really dumb about invariant
[Captain Obvious] "Everywhere is en_US
 
12:20 PM
Hey guys! Is this chat also for some questions?
 
is that a question?
 
Yeap
 
then I guess it is open
 
Do you know how I can get a notification when I will get a new message on my inbox? I can use C# and probably Imap.
 
use a mailclient?
 
12:25 PM
[Captain Obvious] ImapClient has an Alert event which will trigger "when a remote message store receives an alert message from the server."
 
I need to crate a C# code for that, cause after I will have a trigger that will make something, for example: Console.WriteLine("Hello"), when I got a new message
 
[Captain Obvious] Mailkit is overall a great resource for doing anything email related that isn't tied to a specific vendor (ie using EWS or whatever google's equivalent is)
[Captain Obvious] Bear in mind you need to keep an eye on Connect/Disconnect events because if it disconnects it won't get the notification
 
I am using EWS, I understood how to read emails, but not how to get a notification
 
you'd have to make the notification yourself
probably
 
Thanks for your answers! I will check the link
 
12:30 PM
[Captain Obvious] Don't use EWS is you don't need to
[Captain Obvious] It's absolute dick
 
So in this case I don't need EWS?
 
[Captain Obvious] I think with EWS you have to use webhooks to get notifications on mailbox changes
[Captain Obvious] Yeah IMAP is a totally different tech
 
0
Q: How to get notification when I'm getting a new message in my inbox(using IMAP and C#)?

SanktosI have a code that reads incoming messages to the mail, but I want to create a trigger so that when some message comes to me, some action occurs. For example, you can simply create a console application and the trigger will be Console.WriteLine("New message"); Of course, ideally, it would also be...

This was my question, could you please look at it?
So, probably I misunderstood, cause I wanted to make it with IMAP and I was using EWS
 
[Captain Obvious] The first answer appears to be using webhooks to achieve it
[Captain Obvious] or long polling
[Captain Obvious] Which is essentially what imap does as well
 
I know what is IMAP, I mean a read documentation and watched some videos, but how to use it I'm not sure that I got the idea. So, you sent a link in this chat about mimekit, mimekit will help me with IMAP? Is it like a library for IMAP?
 
12:37 PM
[Captain Obvious] Yeah. Mailkit (which mimekit is part of) has support for both IMAP and SMTP (and probably POP3 too but this isn't 2004)
 
Ok, thanks, will check it :)
 
12:52 PM
yo, any algo experts online?
I'm trying to implement a DFS iterator that yields paths but I can't figure out how to deal with cycles
 
@JansthcirlU Keep a set of visited nodes and skip ones you've been to already
 
yeah that's what the person who answered suggested as well, but neither a list nor a hashmap worked
or maybe I'm putting the list in the wrong place
 
1:20 PM
For some reason, the example code from MSDN doesn't work.
The previous pattern matching example worked, the one without "not".
 
what .NET version are you using
"is not" was added later than "is"
 
I'll try to find out.
Thus far, I'm trying to launch "windows terminal", no luck yet.
 
press start -> type cmd -> press enter -> type dotnet --list-runtimes and paste
 
3.1.100 [C:\Program Files\dotnet\sdk]
I used the command "dotnet --list-sdks"
 
that explains, the "is not" pattern was only added in the C# version that shipped with .NET 5 if I'm not mistaken
 
1:27 PM
Ah!
 
but .NET 5 is depreciated so I recommend that you install .NET 6 instead
 
Thank you, I'll download the 6th version
I wonder why it did not install automatically, my laptop regularly updates Windows. I thought it was part of regular updates.
 
It wouldn't download and install random development runtimes
You need to explicitly install the runtime you want to develop in
 
1:51 PM
[Squirrel in Training] Did somebody say install random develpment runtimes 👀
 
configure antivirus to ban all odd-numbered .NET versions
 
like .net core 3?
 
post-core versions then
 
Josh Zhang on May 16, 2022
When the bots came for us, we strengthened our defenses. Here’s what we learned about parrying a few DDoS attacks.
 
does SO use a cloud for back-end?
or do they have their own thing still
 
2:02 PM
Could anyone help me I am trying to implement a BFS State Space Search but am getting stuck in an infinite loop or sometimes getting null exceptions.

https://stackoverflow.com/questions/72260239/breadth-first-search-algorithm-does-not-work-results-in-infinite-loop
I am using C# to implement this by the way.
 
I'll just delete Visual Studio 2019, it doesn't seem to work with .NET 6 without special tweaking.
 
2:32 PM
@BernardJoshua return up = null;
that is some shady shit
your data would be null, and then failing the GoalTest
 
@CopperKettle No reason to still use VS2019 unless your employer makes you
 
 
5 hours later…
8:03 PM
I am needing to set a goal/target line for the chart.. not sure how to. If someone assist me in this, would appriciate!
 
 
2 hours later…
10:23 PM
[SoFastLikeTurtle] I m curious how one would keep multiple socket connections to multiple servers (hundreds) open all time to receive data ? is Background service the best approach for it ? 🤔
 
 
1 hour later…
11:40 PM
 

« first day (4230 days earlier)      last day (701 days later) »