« first day (3629 days earlier)      last day (1302 days later) » 
00:00 - 14:0014:00 - 00:00

2:07 PM
@Freerey very very very nervous
or calm and collected
 
what, do most people get fired after their first performance review? :P
honestly I was worried the employer would hear something about behavioral issues I had with some other students before I even got hired, but that was a silly thing to worry about
 
devs are weirdos by default, I'm sure they'll understand lol
 
No it's everyone else who's weird
 
yo yo yo
 
2:16 PM
bold username you got there
to show up in a c# chatroom
 
7 mins ago, by JansthcirlU
devs are weirdos by default, I'm sure they'll understand lol
^bold comment you got there to say in a room full of devs
 
like srsly I got kicked out of a server I started not long before my job (for a group I was hoping to put on my resume, since I was the treasurer), but all the other admins sided with some concern trolls and I basically had to hand over ownership of the server to prevent further drama
 
shame I can't edit it anymore to actually make it bold
 
@Freerey Never feed the trolls
 
oh that's the annoying part -- they actually seemed like they were somewhat friendly, trying to help me with my art, but no
 
2:21 PM
zoomers lol
 
one of them ended up calling me boring and thick-skulled, so when I (assuming they were bantering), made a joke of my own, they had a meltdown and started self-victimizing 😂
 
yikes
 
oh i remember those times
when i still gave af what ppl thought about me
those days are long gone
 
oh yeah and I remember once I did meet that guy in person
literally only once
he didn't know I was freerey, so he started saying a bunch of shit about me, not knowing I was the guy he was talking about
and I'm just here like 'mmmhmmm… 😂"
 
miao!
 
2:27 PM
meoow
 
Sagwa Miao
 
@Freerey Trust nobody except for me, the Nigerian Prince who's going to make you a millionaire in three easy payments
 
btw what do you feel about forcing someone to apologize?
like obviously if you force them, they're not gonna mean it, right?
 
forcing them physically
lots of fun
 
plus once they do apologize, that doesn't fix anything cause whatever they did wrong is still gonna hang over you :P
 
2:30 PM
I only accept forced apologies
 
make em apologize again
and again and again..
 
never enough apologies
 
right
 
that's why they say you can never apologize to the mob
 
yeah they kill you before you even get the chance to
 
2:32 PM
the first thing I do when I want an apology is to create a mob
most effective strategy
 
why not create one mob and reuse it?
 
the will of the people isn't there for more than one mobbing at a time
 
not a very scalable solution if you ever plan on forcing many more people to apologize
you should look into asyc mobbing and cloud mobbing
 
@JansthcirlU no. that was awful and I demand an apology.
 
I only apologize when forced to
 
2:37 PM
 
Bet you'd love to have cloud mobbing at your disposal now, Freerey
 
probably still a better movie than the last trilogy
 
No, do not trust the cloud people
 
Yes I do. Maybe it'll make up for my PTSD and constant desire to get revenge that I inherited from my daddy who liked to cut my face with a knife and burn my eyes with cigarettes.
 
This chat took a weird turn
 
2:39 PM
c:
 
Why am I here? I literally have a project deadline in less than a week. oy oy oy
 
So I need advice or ideas from people who also use the git flow. The big one with master/develop/release/hotfix/feature branches.
Say master is at version 3.0.0, develop therefore at version 3.1.0.
Now I make a hotfix, fix something, set the version to 3.0.1.
Any time this happens, I have to fix the merge conflict when finishing the hotfix.
Any idea how to avoid this? Would sure like to finally automate finishing a hotfix.
git flow hotfix finish has the same problem, as it is just a macro anyway.
 
@CupOfJava 😂
What wewait but how?
 
mr5
obj.GetType().GetProperty(property.GetType().Name)
Is there a way to get the PropInfo of a property from an object by its property "instance"?
 
or something along those lines
 
mr5
2:52 PM
Ah prolly thinking too much. There's no way an object could have a colliding names.
@JansthcirlU that is what I have posted above.
ah no, it's different. I think .GetValue would return the actual value. I need the PropInfo though.
 
what's wrong with what you wrote then?
 
mr5
I was thinking an object could have a property with more than two the same names.
 
oh ok
 
We use constructs called "array" for that
 
mr5
I was wrong again. I need a way to get the PropInfo not by name but by its property "instance"
 
2:58 PM
May I ask why?
 
no, that's rude @Squirrelkiller
 
It does seem like a rather...specific, very technically precise question. Which usually points to XY.
@JansthcirlU Then I won't fine
 
lol I was just kidding
I'm wondering the same thing
 
But now I dont wanna
 
mr5
Because the only solution I have is to get the property by its name. The only way I could get the property name is by getting its type name which is wrong.
 
3:00 PM
what kind of situation are you in that you are unable to call the property of an instance but you still want its information
 
mr5
say, I have a Person which have a FirstName property.
Now, in order to get the FirstName's PropInfo, I need to get the nameof(FirstName) and instance of Person.
 
sure
 
mr5
Also, I don't have the concrete type of Person.
All are of type object
 
what'd you need the PropertyInfo for
 
mr5
to reassign the same property with another value.
 
3:02 PM
and why not just myPerson.FirstName = newFirstName?
 
mr5
the Person and the property atm is of type object.
 
ah, then you can use type casting
 
mr5
and it's not limited to a single Person type though.
I badly needed to improve my communication skills. I always make people confuse what I actually wanted to tell >.<
 
try this:

if (myPerson is Person myP) // Checks if 'myPerson' is of type Person
                                           // and automatically casts to a person instance
                                          // with the identifier 'myP'
{
    myP.FirstName = newFirstName; // Now you can get and set properties because myP is a valid Person and not just an object
}
wait why do code blocks not work in chat
 
@Squirrelintraining you never said why you needed 10kg of peanut butter
 
mr5
3:06 PM
@JansthcirlU remove the GitHub style mark up. Use the "fixed font" button.
it needs a 4 space prefixed
 
thanks
 
mr5
@JansthcirlU ah, that wouldn't work in my case. I don't have future knowledge of the expected property/object types.
private void OwnerProperty_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
    var oldValue = sender.AsDictionary();
    var newValue = oldValue.ToObject(sender);
    var propInfo = owner.GetType().GetProperty(sender.GetType().Name);
    propInfo.SetValue(owner, newValue);
}
This is what I have so far.
 
so the only expectation that you can be certain of is the fact that the sender will have a Name property?
 
mhhh
 
mr5
I think.
 
3:10 PM
@CaptainObvious You never asked.
 
I said what the fuck, that counts
 
To eat, and I think it's cheepr postage by large masses
 
gyros + 1 red onion cut into pieces and a lot of garlic + bowl of rice
 
mr5
if only there's a GetType().GetDeclaredName
 
sooo good
 
3:11 PM
I spent like 70€ on Sunpat Peanutbutter Crunchy and finsihed it in like 3 months.
 
For 10kg?
 
Not sure anymore
 
mr5
what are you going to do with those 10kg butter?
 
yummy
 
3:12 PM
@mr5 yeah not sure what you're trying to accomplish but it seems complicated
 
6€ a jar!
 
anyways I gotta go, peace folks
 
It's like 3.50punds if i remember correct over at your palce
 
mr5
 
peace out !
 
3:13 PM
@JansthcirlU seeing yu
@CaptainObvious I bough more like 3.5 kg of that store.
 
while cooking i almost cut my left middle finger off
 
€20 per kg!
Holy shit that's a bad deal
 
but thats the price you have to pay for a good meal
its bleeding but whatever
 
mr5
@JansthcirlU I need to trigger the PropertyChanged event of this Person. The only way I could achieve this is to have this property to reassign its value with another value of different instance.
 
lol @always
 
3:14 PM
like that simpsons episode
 
It's £6.90/kg here, currently €7.50/kg
 
mr5
who tf is @always
 
just a bad habbit
always cutting my finger off
 
mr5
oof?
 
a typo
i was supposed to write almost
 
3:15 PM
Let me check my paperwork one sec
 
mr5
that's what would you say when you cut your fingers. oof not off xD
 
@mr5
but wrote always instead
 
mr5
that's unforgiveable!
 
#FLM
 
mr5
off with this guy's head fingers!
 
3:16 PM
fingerlifesmatter
OFF WITH HIS HEAD
 
@Squirrelintraining I mean if you're serious that you want it I can absolutely send you a load of peanut butter
We have international shipping services we need to test anyway
 
mr5
boogey wonderland!
 
@CaptainObvious Oh really?
 
3:18 PM
gardeners are FUCKED !
 
I was half joking, but I'd acutally be intereset in getting SunPat Peanut Butter Crunchy cheeper than that shop is offering it :D
@CaptainObvious and yes this.
 
Find Squirrel "Two" and "Five" and Squirrel "Seven"...
 
@Hans1984 Next time try harder, and you will succeed!
 
mr5
try harder cutting your finger
 
@Squirrelintraining unfortunately my fingers dont re-grow
 
3:22 PM
@Hans1984 Damn
 
mr5
@JansthcirlU I was able to retrieve the PropInfo using this simple trick (programmers hates this!):
owner.GetType().GetProperties().FirstOrDefault(e => e.GetValue(owner) == sender)
 
@CaptainObvious lee ping me about that sunpat crud i'm off for the day
sseing you guys
 
@Squirrelintraining I'll let you know when I find out what the deal is with testing the post services
 
zeee jaaa
 
3:33 PM
Hey All, I have a Visual Studio 2008 solution that I'm trying to build using MSBuild Version 3.5.30729.5420 commandline. However, I wanted to specify a prop file (i.e properties xml file) does anyone know how I can supply it to the msBuild command? To elaborate, what is the property argument parameter?
 
mr5
it seems that INotifyPropertyChanged.PropertyChanged doesn't get triggered when the property is set using reflection. But somehow, I thought that's how the internals of binding does it.
@crazyTech isn't the properties already included in the .*proj file?
 
@mr5 Yeah, but I wanted to create a separate prop file that is Only meant for MSBuild commandline because it would have specific properties Only meant for the MSBuild dos commandline build, and Not via Visual Studio IDE
 
mr5
@crazyTech how about the create another build configuration region in the .*proj and just name it differently, i.e., Debug-CLI.
so your command would look something like msbuild blablabla --configuration=Debug-CLI
I'm not really sure if that parameter exists though
 
@mr5 Thanks. I'll try to do some more research on the internet
 
There we go, my .net 5 app is now being used fully in production and prod will not work without it. YOLO
 
3:46 PM
Man and I was happy with netcoreapp 3.1 in staging.
 
is it safe to use .net 5 in prod?
 
mr5
what's the major feature/change in netcore3.1?
 
It's not 2.2
 
@erotavlas Fuck it why not
@mr5 It's stable and LTS and currently supported, unlike 3.0 and 2.2
 
mr5
the major and minor version numbers have changed!
lts?
 
3:48 PM
Long term support
 
mr5
@Wietbot abbreviate lts
ded
 
Oh not Limited To Simple use cases then :)
 
mr5
@CaptainObvious boring
is the Text.Json less buggy now?
 
nevermind, says we are free to use in production -visualstudiomagazine.com/articles/2020/09/15/net-5-rc-1.aspx
 
mr5
last time we checked it still have lotsa bugs!
 
3:51 PM
@mr5 No it's still shit, even in 5
 
mr5
ok, boomer!! bummer!
 
I seem to remember something about a foreach expression in C#, can't find it though. Am I just mixing it up with the switch expression?
 
foreach is indeed a thing, I mean
I usually use it when looking through items in a gridview
 
mr5
@Squirrelkiller forswitch(...)?
 
4:21 PM
bye filthy rodents, roaches, humans and everyone else
\o
 
4:38 PM
@Squirrelkiller foreach expression?
how would that work?
my utils library has IEnumerable<T>.ForAll(Action<T>), but what would it return if not void?
 
4:53 PM
In C# I have worker processes. These usually check the database for queue tasks and process them if there are any. These workers usually run around 2 - 3 queries every 3 - 5 seconds for background updates etc. I currently open a new database connection for each time it has to do a query, would it be viable to keep the connection open forever, and share that connection through the lifetime of the application? Lifetime is likely to be days.
 
5:10 PM
@Squirrelkiller are you looking for foreach (var whatever in collection)? Or are you looking for .ForEach? Because .ForEach just exists on List<T>, IIRC
 
 
5 hours later…
10:27 PM
Is C really that sharp?
ouch, the chat just cut me.
 
11:02 PM
LOL
 
00:00 - 14:0014:00 - 00:00

« first day (3629 days earlier)      last day (1302 days later) »