« first day (3251 days earlier)      last day (1696 days later) » 

mr5
2:45 AM
How do I gitignore that Resource.designer.cs?
 
3:03 AM
**/*.designer.cs I figure
 
 
3 hours later…
5:48 AM
hi
Is it ok to put <summary> before a code block?
or just a comment would do?
 
mr5
6:04 AM
<summary> if you plan to expose your library/code in a large audience I think?
for me, // (single line comment) is enough
 
Good morning o/
 
ok thank you! :)
Morning!
 
Can anyone explain to me, how an IIS knows what to start in an asp.net app? Like, there's the global.asax, the startup.cs, lots of dll's in the bin folder. How does the IIS know what to call?
 
6:23 AM
@Squirrelkiller ╰( ͡° ͜ʖ ͡° )つ──☆*:・゚ MAGIC
 
Damnit @Harry
 
6:57 AM
ohayou
 
GOOD MORNING BUBS
 
@Proxy and hey you, sir!
 
HEY!
 
boker tov.
 
sabah alher
 
7:09 AM
@RoelvanUden HELO SENSAI
HOW ARE YOU DOING?
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
IS WHAT I MENT TO SAY
 
tone it down robin williams
its like 10am
 
Dude it's like 9am, get your timezones straight
 
sorry
 
It's more like 9:11 Am actually.
 
7:12 AM
just like tomorrow
 
@Squirrelintraining IEMSGOOD AND HOWSU
 
Hi lads, Quick question,
 
Well, hurry up then. We're waiting.
 
I have an event in a class, and this gets injected as a prop in another class - is there a way i can nicely pass an event instead of subscribing and re-invokating the event
@RoelvanUden good morning to you too ^^
 
 
7:19 AM
@sommmen Clarify, please. With code, might help. Who raises the event? Who subscribes to it? Why do you need to reraise it?
 
@AvnerShahar-Kashtan comin your way - daily standup now ^^
 
@RoelvanUden I IS EXHILARATED
 
7:39 AM
@Squirrelintraining Such class.
 
class Such
 
@Squirrelintraining I couldn't stop sobbing in joy when I heard that the first time.
 
DialogManager holds an instance of InternalManager?
 
So its an internal class, that has an event. I have an object in a public class, which holds that internal class. The internal class throws an event, and i'd like to handle the event by subscribing on the public class.
@AvnerShahar-Kashtan ye
 
@Squirrelintraining who knows what hoard of videos will be suggested to me to watch after having watched this
 
it would be like this.InternalManager += WindowChangedEvent;
 
public event EventHandler MainWindowHandleChanged
{
    add
    {
          _internalManager.MainWindowHandleChanged += value
    }
    remove
    {
          _internalManager.MainWindowHandleChanged -= value
    }
}
 
8:05 AM
@AvnerShahar-Kashtan that looks fancy :0
 
Basically, the custom event accessors syntax allows you to delegate an event to a different event. (docs.microsoft.com/en-us/dotnet/csharp/programming-guide/events/…)
 
never seen add or remove
 
When someone subscribes to DialogManager.MainWindowHandleChanged, it actually, behind the scenes, hooks up the event handler delegate to _internalManager's event.
It's pretty rarely used, but it's there exactly for these situations.
 
@Neil Only the very pinnacle of human creation!
 
@Squirrelintraining I see your dubstep fart, and raise you a bouncing seal dance video: youtube.com/watch?v=VmqqQwjYDCY
 
8:11 AM
Friggen beautiful :')
Now I can die in pieces.
 
@AvnerShahar-Kashtan yeah i like this solution. Thanks for your help
seems efficient
 
You're welcome.
 
o/
 
Captain oh my Captain!
Reporting for duty, Sir!
 
welcome
cpt is not present yet
i think
 
8:21 AM
@Squirrelkiller what
what did i do
 
see this is the roach i was telling you about @JinLee
 
what
what the fuck
why are you talking about me
 
he is a nice guy
 
ily hans <3
 
wow
Roach has a name
 
8:24 AM
:)
 
Harray the Roach
Harry the Roach.
 
yeah he is our newest member @Harry
Jin
 
I eat squirrels for supper.
 
i just told him c# is one of the few good chats left on this site
 
!!tumbleweed
 
I think we should all obey and respect Captain in this room. He sure knows a lot.
 
nah fuck that guy
@CaptainSquirrel
 
okay
not literally though
 
@JinLee which captain?
 
no
 
8:28 AM
I only eat Squirrels, not do other things to them
@Wietlol OUr Captain Squirrel, the ruler of C#
the leader of insignificant three others
 
(removed)
 
dont steal their nuts , they ll get very angry @JinLee
 
okay sorry
I'll bury them back where I dug out last night
 
hehe
 
i¿
 
8:32 AM
today i saw 3 crows sitting on a bridge next to each other
one was having a big piece of bread in its mouth and looking like a boss
the other two where probably his hoes
maybe it was a pimp crow
 
very good observation. Maybe, he is breaking break after prayer.
breaking bread
 
maybe
i just witnessed how proud it looked
i haz bread
 
I will be happy and proud, too when I have bread.
Don't we all work for a piece of bread? so that we can be just like that proud crow!
 
;)
 
why cant we do something like this?
public static void Foo<T>(T stuff)
    where T : class
{ }

public static void Foo<T>(T stuff)
    where T : struct
{ }
I cant see any case where they could be ambiguous
 
8:45 AM
@Harry u wot m9
 
considering that something can never be a struct and a class
 
also ahoy o/
 
but C# wont allow me to do it, so I have to rename one to something like FooStruct
 
@Wietlol I'm guessing it's not something that was expressly banned, but something that was simply not designed for it upfront, and the cost of changing the compiler's handling isn't worth the added value.
 
sadlife :(
 
8:47 AM
@CaptainSquirrel Reporting for duty, Sir!
 
Scrub the poop deck!
Hoist the sails!
 
Aye Aye Captain!
 
Pull hard to (the) starboard!
 
Captain! Somebody has been drinking our rum!!!
Captain! Hans drank all our rum!!!!
Shall we throw him overboard?
 
Hans didn't drink all the rum
also its not rum
its whiskey
 
8:50 AM
it was harry
 
also it was thrown overboard
 
by harry
 
by @Harry
 
are we ready to leave ?
ship is ready
 
!!kieran2
 
I thought rum is whiskey.... we never let me have a sip.... When do I get to have a sip????
 
not yet
you re still a rookie
hehe
your day will come
right ? @CaptainSquirrel
 
but I worked hard sir!!!! I scrub, mop, pull, all day long.
 
@JinLee Whiskey is made from distilled grains (usually barley, corn for American whiskey, sometimes other grains). Rum is made from distilled molasses (byproduct of sugar production)
 
@AvnerShahar-Kashtan They never let me drink any, so I will never know the difference!!!!! Alas.
 
8:54 AM
"They"?
 
Our crew
 
the squirrels
 
we are pirates!
 
Ah, that's a classic reason for mutiny. No jury will convict you.
 
Welp
!!c#
 
8:55 AM
May 5 '16 at 15:17, by BoltClock
THIS ROOM IS OUT OF CONTROL
 
this whisky smells fishy
 
aye mutiny!
 
like...roach piss !
 
!!googleme we are pirates
 
8:56 AM
!!googleme soju
 
If I may have a say in this, I say we put soju in our barrels.
 
Soju drinking pirates. What is the world coming to.
 
AW, time to hit the hay. Hard work today.
 
To quote from yesterday
yesterday, by Squirrel in training
heyho mutiny victim to be
 
8:58 AM
all that scrubbing, hoisting
 
@Hans1984 !!shrug
 
I forsaw the future @CaptainSquirrel
 
@Harry :D
 
Why is the rum gone?
 
have a guess
 
9:03 AM
@Squirrelintraining TEACH ME MAGIC MAN
 
@CaptainSquirrel no can do
 
How can it be that a global.asax is instantiated, but the Application_start method inside isnt called?
 
wrong signature?
 
Even worse: Only on one environment. Dev/Test/Stage work, only release doesnt.
 
Because Mircosoft.
 
9:13 AM
You don't have different web/applicaiton .configs for each env do you?
You've probably cocked up your release one
 
Just checked again - release/stage have different connectionstrings and app settings for logging, but thats it
 
something something app_start
 
where?
 
in your project
its a folder
 
so... if I register a disposable object through Microsoft.Extensions.DependencyInjection, should I not put a using around it?
 
9:21 AM
iirc there's a file that will live in there sometimes
sec
 
just our swaggerconfig
 
We put a constructor into the global.asax.cs - that one gets called
Just not the application_start
 
Hmm
Does anyone have any ideas on asp core app recycling too often?
I've got the IIS app pool to reset basically once a day but it's recycling after about 20 minutes
Oh shiut
I'm dum
2
 
9:27 AM
Ayes
 
@CaptainObvious do you use session in your app?
cuz you'll need to increase that too
(which is a fuckin' pain)
 
Nah we use inproc
Maybe in the future when we need to scale™
 
So you use Session["somethinghere"]
?
 
uhhh
no?
 
9:30 AM
im working with unity and c# in my freetime right now
 
this article is wrong in that case
 
mr5
int main() { while(true) run(); }
 
Confused by this ...
	var wrappers = GetWrappersFromDb();

	foreach (var wrapper in wrappers)
	{
		var firstCashFacility = wrapper.Balances.Where(b => b.IsCashFacility).FirstOrDefault();

		if (firstCashFacility != null)
		{
			var existingAmount = firstCashFacility.Balance.Amount;
			var existingCurrency = firstCashFacility.Balance.Currency;
			firstCashFacility.Balance = new MoneyWorks.Money(existingAmount + pendingTradeValue, existingCurrency);
		}
	}

	mapperParameters.ExistingWrappers = wrappers;
 
I've already worked with unreal
 
Stepping through this code, the final assignment "wrappers" remains unchanged. Can't figure out why?
 
9:32 AM
@MattThrower why should "wrappers" change?
 
Your code doesn't ever change the value of wrappers
 
@Wietlol bc I'm stepping through each wrapper and changing an internal property.
When I assgin ExistingWrappers = wrappers, the internal property is the original, not the one that's changed
I would expect this to act as pass-by-reference, no?
 
can you reproduce this in an mcve?
@MattThrower none of this is pass by reference
 
@MattThrower because when your loop finishes, the altered property is inside firstCashFacility
 
@CaptainSquirrel Ah, so that's a copy rather than a ref?
 
9:34 AM
@CaptainSquirrel but that firstCashFacility is from the wrapper.Balances
@MattThrower is it a struct or a class?
 
Yeah my brains a little crossed on this
 
A class
 
That's what makes sense from that example
 
then its not a copy
 
They're all classes
 
9:34 AM
but i've also done this exact thing
 
I recommend you to try to reproduce this
because it doesnt make sense
there is something behind the scenes that is not normal
 
Yeah this whole bit of code is a hot mess. It's awful.
 
not necessarily
 
I'm glad it's not just me that thinks it doesn't make sense
 
I have seen worse shit
 
9:37 AM
Oh this is just a bit of it. Later on, there's a linq statement that makes a comparison on two sets that's already been made previously via a data selection so will always be true. And then passes both the results and the original into a function.
 
I can repeat, I have seen worse shit
 
So have I to be fair. But this is particularly confusing because it's sprawling all over the place, with half the code hidden inside mappings inside mappings.
And yes, I repeated myself on purpose :)
 
9:49 AM
That doens't even sound that bad
 
@CaptainObvious where's mah food
Cap said to bring me food
am doing a hunger
pls hep
 
Uh
In tescos
I left it there
 
how could you do this to me
 
You should be able to pick it up, just give the man at the till some money in exchange for the goods
 
That was your job!!
 
9:58 AM
nonono
My job is making my search stretchy
 

« first day (3251 days earlier)      last day (1696 days later) »