« first day (3687 days earlier)      last day (1483 days later) » 

02:25
mr5
mr5
I've been searching for like almost an hour about this meme and Google disappointed me every keyword I looked up to
Why can't I find that meme with a girl from a TV show (family feud I think) where she was uncomfortably settling her eyes. Looking back and fourth at the audience and at the camera.
Why can't I find it!?
 
3 hours later…
05:17
Cadbury
06:13
Buenos dias
 
1 hour later…
07:14
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
mr5
mr5
y doh
07:50
morning.
Finally reading up on C# 9 and .NET 5, though I won't be using them any time soon. Some interesting thoughts, coming in as someone who hasn't touched .NET in almost a year.
Morning Avner o/
@AvnerShahar-Kashtan Time to get back in the game avnir
Also join our new discord, where we can stay in touch ( ͡° ͜ʖ ͡°) and chat freely without our SO overlords opression :D
Nah don't bother
Seriously considering censorship :D
I bet :P
I will continue fighting the good fight!
Discord would ignore the original purpose of this room, that's why I don't like it as an alternative.
07:58
Just join the discörd!

I know discord isn't the best thing out there but it's a good alternative to this chat.
@Squirrelkiller You mean chatting solely about c# related topics?
Oh as a chat, Discord is definitely better than this one
I mean being an open room directly part of stackoverflow and therefore easily findable and joinable by any SO user
Valid point.
Adding the extra "layer" does not help the findablility.

But thats why we have the so-chat-relay set up, so that in case a poor soul wanders in here one can see it in the discord and answer in the discord aswell.
That relies on the relay being up and reliable 100%, and also makes the messages look uneasy compared to messages sent directly in here, since all messages would be sent by Botler and you can't really reply to messages then.
Would you use the Wiet™ way would actually be better in this case: Let the Bot hold your login data and post in your name. But that won't happen obviously. Also still needs 100% up time and reliability.
Again valid point.
If the display of the message is a concern one can always pop by in the C# room and post directly via SO.
Speaking of 100% uptime, compare this room to the WPF room or almost any other room.
When a question is asked or somebody writes something it can take hours before anyone reacts.
I'd use this as an argue agains 100% uptime.
It's not as much a technical concern as a social one. If you come into the room and see only Botler posting, you think twice if you wanna stay here. Have you visited SOBotics? Just feels strange being in there.
@Squirrelintraining I mean the relay needs 100% uptime, to make sure every message is definitely relayed.
08:08
good morning
True. But alas, chat has had it's downward trend for years now and I don't see a recovery possibility for it.
Discord gives us the opportunity to still stay in contact even if chat complety dies out.
I made a pull request for botler
But us moving to Discord would help this chat die faster, making the problem the problem of the next generation. Instead, we should try to not let it die. The least we can do for that is using it.
Even better would of course be to keep asking meta for different improvements.
But you'd need motivation for that so...maybe later.
mr5
mr5
I lyk chat.so simplicity. and the starboard. and its white theme.
08:21
white theme...
first thing to change that...
Make a meta post!
10 mins ago, by Squirrelkiller
But you'd need motivation for that so...maybe later.
mr5
mr5
08:48
^ actually me with botler
Rewrite into your own image
09:16
morning
@li223 what do you mean?
09:50
Hello friends!
Hello friends!
.!these we go
Its great having a public health system. In Spain:
- Buying an 6€ asmha inhalator without recipe: You pay the full price
- Buying a 51€ inhalator with recipe: You pay 4€
10:09
lol
[Captain Obvious]You could have made that into a mastercard advert
Indeed
I have seen using saline serum used to defrost ice on cars because it is mainly salted water. I was socked when I read in USA they charged $546 for 6 liters
[Captain Obvious]That sounds like America
Or edit, I'm in a maths lecture right now so I'm not at mental capacity to do anything
[Ntohl]upvoted
[Captain Obvious]Chance of implementation: <0%
mr5
mr5
11:12
ayt. time for some dotkas
I am new to C#. In one of projects, I came across this code to compress and decompress a text:
//Compressing:
using System.IO;
using System;
using System.IO.Compression;
using System.Text;

public class Program
{
public static void Main(string[] args)
{

string plainText = "shantha";
byte[] buffer = Encoding.UTF8.GetBytes(plainText);
var memoryStream = new MemoryStream();

using (var gZipStream = new GZipStream(memoryStream, CompressionMode.Compress, true))
{
gZipStream.Write(buffer, 0, buffer.Length);
mr5
mr5
use the "fixed font" or pres ctrl-K to format your code.
reformat your code with ctrl-k
I want to understand the code flow here. That is steps used to compress and decompress it.
I did CTRL + K already
11:25
i know
I was just making fun of the two blokes yelling ctrl k
So it istarts with a Base64 encoded text, you can recognize it because of the ==";.
Stores its data in a stream (Memory Stream), and the creates a GzipStream with it
So.... Base64 -> MemoryStream -> GZipStream.
Then prints into the console the UTF8 of that string (pretty much hard to understand, it is a compressed string)
The decompress probably would do it backwards, but havent checked
@Cleptus What exactly MemoryStream does here?
It is a Stream stored in memory. Think of it as a mechanism to transfer data. Check this explanation
Because the zip related classes require streams, the source string is inserted into a stream to be able to work with it
Let's see
//Compressing:
	using System.IO;
	using System.IO.Compression;
	using System.Text;

	public class Program
	{
		public static void Main(string[] args)
		{

			string plainText = "shantha";
			byte[] buffer = Encoding.UTF8.GetBytes(plainText);
			var memoryStream = new MemoryStream();

			using (var gZipStream = new GZipStream(memoryStream, CompressionMode.Compress, true))
			{
				gZipStream.Write(buffer, 0, buffer.Length);
			}

			memoryStream.Position = 0;
			var compressedData = new byte[memoryStream.Length];
Now it's formatted
properly
11:42
beautiful
Thank you
@Squirrelkiller Thank you so much.
@Cleptus Thanks a lot. I am from a python background. I hope I will find python equivalent for this code. Lemme explore it!
Coming from Python, I would expect you to properly indent your code ;)
2
lmao
Dont be harsh squirrel
11:49
@Squirrelkiller I completely agree with you. Sorry for that.
@Cleptus What do you mean, I put ;) there
Didnt notice
@owgitt Don't worry, I think devs know best that learning never finishes :)
12:06
hey humans,squirrels,robots and weebs
!~shiba
awesome
[Captain Obvious]Hmm, I forgot about edits
afternoon all
12:19
[Squirrel in Training]I had a iiscussion about thhis not to long ago with someone forgot who
[Squirrel in Training]About BoJo not taking up arms after the referndum
[Squirrel in Training]it's mentioned as a side note indirectly in that video
hey DAustin
[Squirrel in Training]go stuff it who ever opposed
@Hans1984 heya pal, you good?
Im fine thanks
what about you ?
12:25
[SebastianL]Has stackoverlfow ratelimits for logins?
hanging on ?
how long do you have to go in the old company ?
same shit different day, multiple applicant interviews today, first one was already a waste of time,2 more to go :(
7 weeks
I see
1 more week and im half way at least lol
HR showed up on site 8 minutes before the first one was due to start lol
so we're really on top of things here xD
lol
well 7 weeks
12:27
they dont like me reminding them that, if they have a 4-week notice period, then we need someone in 2 weeks time to give us at least 1 week's worth of handover time
you'll make it ;)
screw them
cheers, im hoping i do too lol
thats their problem messing it up
not yours
but of course its not easy
well they know im not going to a new job immediately, so i dont want them thinking after Jan 7th they can just call me to talk someone through a problem...
after working for a company for quiet some time..
thats why i never stuck around long in any company
lol
12:28
id like a break for a couple of weeks, but im just gonna see whats availaable in Dec/Jan and go from there
whats annoying me is I want to get my code libraries in order for the next guy, but cant concentrate on it being dragged off to look at CVs etc
yeah that sucks
thats one reason why I left a company once
I started as a developer but in the end i had like 3-4 jobs
tomorrow is a free day at least, might get some work done, will probably have a go at making a private Github for it all
doing support and so on
constantly beeing pulled out of your developing mindset
@Hans1984 Yep, tis the way it goes
really sucks
12:31
ikr, how am i supposed to work out this class heirarchy, domains and interfaces when every 20 mins someone comes bugging me
as if developing wasnt challenging enough on its own...
"can you help me with my phone"
think they're starting to realise how broad the role is, and how nobody really wants it lol
"GO FUCK YOURSELF"
@Hans1984 Oh dear god, my line manager was still using a windows phone until about 18 months ago...
kept asking why an app wasnt available for his windows phone, but android and apple xD
troubles started when we changed from normal phones to those IP phones
12:32
refused to believe that it was a dead OS, Microsoft is the best after all...
such a pain in the ass
and guess who had to get it all to work..
@DAustin It is your change to charge them insane amounts of freelance work
@Hans1984 Yep, we got missold our new IP phones, so they dont do half of what we were expecting, thankfully that project wasnt mine xD
@Cleptus We've already discussed it being contract/freelance, thinking of charging 2.5x my salary rate
because if they do ring, i know they're fucked lol
right chaps, off for the next interview, have fun all xoxox
12:35
good luck
I found someone I wanna troll but idk how to go into it
could just troll em for being a furry but idk
@Hans1984 He/she is not being interviewed, he is interviewing candidates for his/her position
oh right
well a little bit of luck can never hurt right
Yeah, get lucky finding someone fit for the role
13:03
somehow that's more painful to do than you'd expect
13:26
botler, join 7
wait no
botler, shutdown
Hello friends!
That is not a shutdown but a reboot/reset
sup robot
it's a shutdown -r now
Hello friends!
13:33
Technically it is a shutdown
But then then the script that starts it then deletes the bot, downloads a fresh one and starts it up
Now

Let's test this
[Squirrel in Training]BEAUTIFUL! <@!668405888956104744>
I wonder if we can make #shootyourlocalfurry a thing
there's already a hashtag like that for child molesters
13:43
Ooh now that's interesting
@Wietlol you were wrong
/message/<messageid>?plain=true does not always return what the user sent before being oneboxed
Yo can I change runtime stack of an Azure App Service without scrapping it and making a new one?
Also if I made it use net core 3.1 before, did it maybe automagically upgrade to .NET 5?
Because I just remembered there may be a small reason the new version of my web app doesnt work on the server...
Ahh general settings ok
@CaptainObvious it does not?
mr5
mr5
@Freerey what are you on about this furry thing?
14:01
sorry I found sdomeone yesterday I had hoped had been wiped off the face of the planet
they made me hate furries and thinking about them gives me ptsd, so now I'm all edgy
LPT: It's now about the furry, it's about the asshole within.
well so far the most degenerate, screwed up people I've ever met were these weird animal pedos' that's not a coincidence
I'm just glad furaffinity exists because it gives these creatures a place to fester without bothering the rest of us
Hello friends!
hello bottli
14:16
that sounds hella swiss
@SebastianL You can still not make me believe you're not the guy from our superior chat app
@Botler I wasn't talking about Discord
[Captain Obvious]People need to stop @ing botler
14:52
@Botler Botler needs to learn to translate replies to his messages to discord-pings to the user that sent the replied-to message.
Anyone hear about this Table to Type in EF Core 5
mr5
mr5
isn't that just a plugin?
15:17
So I send a complex object via signalr from client to server. Object holds two string.
Arriving at the server is an object two nulls.
Wtf?
[Captain Obvious]Define complex
[Captain Obvious]Or is it literally a poco with 2 strings
It's literally a public POCO with two public strings
[Captain Obvious]Hmm, that's not right
[Captain Obvious]It's something signalr can definitely do
mr5
mr5
Maybe it failed on mapping?
Mapping what?
Both client and server are literally using the same class from the same library
In the same solution
mr5
mr5
15:23
Maybe the property name got converted into another case during serialization.
Shouldn't matter, most serialisers are clever enough to deal with that
I seriously hope signalr can get its shit together about casing lol
This dashboard in our system is powered entirely by signalr
One object which has all of the values is sent to clients every time one of the values update, and it works perfectly
mr5
mr5
straight metro style
15:26
[Captain Obvious]Just the fairly basic default Syncfusion dashbaord control
Then how the fuck can I not get this simple chat to work
[Captain Obvious]With added colours
[Captain Obvious]I have no idera
This is the sender's method, it logs the correct object:
	public async Task SendChatMessage(ChatMessage message)
	{
		Console.WriteLine($"Sending message to server: {message}");
		await connection.InvokeAsync(nameof(ServerHub.SendChatMessage), message);
	}
This is the server's method, debugging into the first line receives the empty object:
	public Task SendChatMessage(ChatMessage message)
	{
		Clients.Others.ReceiveMessage(message).ConfigureAwait(false);
		return Task.CompletedTask;
	}
It's enven configurable
mr5
mr5
15:28
isn't there an event property to listen from incoming messages?
Wait so which part is failing
Is it the Client=>Server or Server=>client
mr5
mr5
@CaptainObvious low key photoshop
The server receives an object carrying empty strings
client=>server
uh okay one sec
Let me check mine
I use the nameof and interface combo to not have to manually type the names of the methods. The hub on the server implements ServerHub.
15:32
Wait what client are you using
C# or js/ts?
C# all the way
Okay, I'll have to look at my other project
(this one's actually written in VB.net lol)
Turns out both ways don't work
public Task SendChatMessage(ChatMessage message)
{
	Clients.All.ReceiveMessage(new ChatMessage() { Content = "TestContent", Sender = "TestSender" }).ConfigureAwait(false);
	return Task.CompletedTask;
}
Changed the server to that, doesn't arrive at the client either.
Sending a complex object that hold a list with POCO's works perfectly tho
15:40
@Squirrelkiller my client sending code is basically exactly the same as that (except the name is a literal but that won't make a difference)
Damn
This is literally the class I'm using:
public class ChatMessage
{
	public static ChatMessage New => new ChatMessage { Sender = "Anonymous", Content = string.Empty };

	public string Sender = null!;
	public string Content = null!;

	public override string ToString()
	{
		return $"{{{Sender}: {Content}}}";
	}
}
There's nothing there to interfere with anything damnit
And then on the hub I do this
Just added the tostring so I can easier spam writelines everywhere
public class TotalsHub : Hub
    {
        public async Task UpdateTotals(OrderTotalsModel totals)
        {
            latestNumbers = totals;
            await Clients.Others.SendAsync("SignalTotals", totals);
        }

        public static OrderTotalsModel latestNumbers { get; set; } = null;
    }
Ah yes, "debugging"
Can't be assed to get Blazor debugger working lol
Also this way I can debug both client and server simultaeously
15:42
Oh right yeah you're using blazor
Yeha it's probably Blazor just being blazor
So I might have something, brb
Oh ffs I got it
SignalR needs properties instead of fields.
The chatmessage had fields. The other, working model has properties.
16:02
Also it seems Blazor can't handle structs? When I make the chatmessage a struct it crashes before even loading lol.
16:14
Lisa Park on November 19, 2020
While working on the review queues project, the Public Platform team saw an opportunity to improve the help center and create a space for more canonical articles about reviewing. Previously, most of this information could only be found across a number of posts on Meta Stack Exchange (MSE). These posts were not easily discoverable and…
16:38
I was reading on session state. I am confused about the following point: If a cookie is received for an expired session, a new session is created that uses the same session cookie.. Does that mean that the session can be hijacked by some other user if they get their hands on the expired cookie?
@Squirrelkiller that sounds fun
LÖÖP
im preppring my handover documentation, i was thinking of just printing this and leaving it on the new guys desk...
[kesarling]But what if the guy whom you're replacing does the same to you?
well im not going anywhere yet, but when i do im sure that is exactly what will happen lol
mr5
mr5
16:47
@DAustin nice
make the poster big
A2 Im thinking
anyways cant stay long, had an applicant from this morning coming to do the test in about 10 mins
just killing time until then
right gtg
 
1 hour later…
18:15
18:58
@Squirrelkiller I would recommend to always use properties
and when using fields, make them private ... or just make them properties too
19:23
@Hans1984 Whoa wait wat?
I'm fine, I just don't come in every day :D
Stay calm. I am immortal afterall.
Anyone know anyway to insert a new row into a dataGridView from a popup winform? I call a function from the Main Form which holds the viewgrid. I'm pulling my hair out lol
dataGridView1.Rows.Add(new object[]{ "123","321","123" }); doesn't get added from the function but the function is most definitely getting called as the console command reports it. >.<
19:45
maybe you need to call some sort of refresh method?
it would make sense, considering you wouldn't want to refresh automatically for every single row added if you wanted to add a thousand
[MR.TaNk]There should be a grid.NewRow() which gives a DataRow type row. After you fill the columns with 123 321 123, grid.Rows.Add(newRow)
So basically, I have my Main Form (FormA) and a Popup Winform (FormB).
FormA holds the dataGridView and I need to add data from FormB into the DataGridView on FormA. I have it set to call a function located on FormA to add the rows, but the dataGridView doesn't update or change.
I've even used dataGridView1.Refresh(); with no luck.
[MR.TaNk]Have you tried the NewRow style?
NewRow?
dataGridView1.NewRow is not valid?
20:33
Unfortunately it's still not working. I've adapted the code to better suit our database needs. Here's the sample
And here's the other form
I used your suggestion and it didn't work. The data populates on load which is normal. But when I add demo data from the Create_Profile it gets added into the database but it's not "reloading" the datagrid.
21:00
SkyWalker3200 = me just fyi just saw the discord invite
anyone here works with Azure?
im stuck on login for 5 minutes now...
was wondering if anyone else experiences the same
21:05
[Captain Obvious]Login on what? Logging into the portal
that is why
and then after a few minutes, it goes to an error page "We encountered an unexpected error. Try again later." with a button to try again
which puts me back in the loading screens
[Captain Obvious]What the fuck are you logging in to
signup.azure.com/signup
omg
who puts emojis in console logs?
[SkyWalker3200]I know Chrome does that too.
> Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
> Failed to load resource: the server responded with a status of 500 (Internal Server Error)
hmm...
@SkyWalker3200 you mean google.com ? or...
IT WÖRKED
so far...
hmm... looks like Im in now tho

« first day (3687 days earlier)      last day (1483 days later) »