« first day (1825 days earlier)      last day (3122 days later) » 

5:07 PM
There are times when I join the room and can't think of anything to say, and want to just say something like "poop" and see if anybody stars it
 
buahahaha
 
\o/
 
Lol
 
picachu
 
Today was good. I repetitively created solutions and deployment scripts
Order! Conformity! And no code messing it up. Bliss.
 
5:12 PM
anyone used json ld
i am reading it and a bit confuse
what is it actually for lol
 
Such read so confuse wow
 
Can anyone think of a reason that IE wouldn't be sending session cookies to the server?
cookies are enabled, dnt is turned off, it works in chrome
 
the good thing for programming is that while you get confused while reading, you can just paste the code and hit F5 see if that helps you understand it
 
problem exists in ie9 thru ie11 edge
also, good morning
googled "internet explorer not sending session cookies"
verified cookies enabled
verified dnt not enabled
verified that the server is sending the cookies
fiddler shows the server sending it, but ie not sending it back
 
5:18 PM
Guys in Kendo UI, when we are defining mentioning events for a grid like
.Events(x=>x.SomeEvent())
Can we do it multiple times
 
@Obviously yes you can
 
Dude its internet, girls do not exist here
.Events(e => e.SomeEvent()))
.Events(e => e.SomeOtherEvent())
 
finger hovers over kick button
 
Like this?
 
@Obviously no
 
5:20 PM
hmm
 
@NicolásCarlo then how??
 
@ton.yeung the f12 tools show the cookies received, but not sent back. I get two different session ids
one when hitting the login page
and another when submitting the login form
since the session cookie isn't being sent back, that makes sense - its creating a new session
this is all via the network tab
i'm not sure how to view all cookies for a site in ie
 
.Events(e => {...})
 
hey guys, do you have recommendations on how to do drawing tools for asp.net mvc web app?
Like drawing tools like angles, lines for images
 
@ton.yeung I don't see it :(
 
5:22 PM
can I use GDI+ or preferrable js?
 
@ton.yeung haven't tried that, but it does occur on multiple machines
i'm using ie11 in edge mode, as well as emulating down to ie9
coworker running ie9 has same issue
my pc both in office and at home, coworker in office
its an internal app, so vpn is required
 
@Obviously
.Events(e => {...}) go nuts
 
not using home pc, using corp laptop in both locations
yeah, but I can't test from the other machine, vpn and all
f12 tools shows the domain field empty, it doesn't appear to be setting the domain
 
@ton.yeung hahaha
 
Set-Cookie: ASP.NET_SessionId=uu4wmwlzm0b34kztd3mzn53p; path=/; HttpOnly
from fiddler
chrome: Set-Cookie: ASP.NET_SessionId=0rxeh2uss03fkjvmrvb2vyiq; path=/; HttpOnly
I"ll look into that
 
5:34 PM
"Hot Network Questions" can be so distracting
32
Q: How to beat Count Dracula

GamowAbraham Van Helsing and Jonathan Harker play a game against Count Dracula. The three players agree on the following rules: Count Dracula and Van Helsing enter the crypt, while Jonathan Harker has to wait outside. The crypt contains 1000 coffins that are numbered from 1 up to 1000, together...

 
@ton.yeung
0
A: A cookie without a domain?

Michael PetrottaNo, that is not possible. If a cookie doesn't declare a domain, the browser will assume the domain of the object requested. What you're asking for is generally considered a security, or at least privacy, risk. It's possible to configure browsers to allow access to cookies from other than the dom...

 
hooray for 90 page specs
 
apparently cookieless domains default to the domain of the page sending the cookie
so its like sending the domain of the page
right
hmm
vb.net webforms
legacy app
i think i figured it out
the dns domain for the app is stage.ois_connect.ctca.local
> Q6: IE won’t set a cookie for certain domains, like those of the format http://xx.yy?

A: Correct. The idea is that you may not set a cookie on a "top-level" domain shared by unrelated organizations. Historically, ccTLDs of the format xx.yy were effective TLDs, so cookies may not be set on them. While this heuristic was never perfect, it's been unchanged for over 15 years and hence is not likely to change any time soon. The intricacy of this issue merits a long blog post all its own-- see this post.
.local may be messing with it?
 
I'm looking for a good list of reasons to use parameterless constructors
 
Works with stuff like MEF
 
5:41 PM
Some serialization requires one
 
no
its not a secure page
it is marked httponly
 
334 messages in an hour
 
@ton.yeung, @ReedCopsey. Any docs on this you know of (I'm googling now). I have a coworker who is asking why we should try to use parameter less constructors with an Initialize method instead of a parameterized constructor.
 
i have not
and this is running under iis 8
on server 2012 r2
 
@BrandenBoucher: it depends on your needs
 
5:49 PM
i assume this stack is pretty basic ->
AngularJS ->Node.js/Rails/Express
 
!!roulette
 
yeah, i've been wracking my brain with it for two days now
 
@BrandenBoucher it's better to use a constructor in most cases. If the user of the class does not call initialize, it's difficult to prevent weird side effects.
 
@BrandenBoucher is your coworker a web dev
 
You're better off in most cases just having parameters in the constructor - your constructor parameters should be things that the class needs to function
 
5:51 PM
@BrandenBoucher Nowt hat's something I would recommend avoiding
 
@Pheonixblade9 It could just be the way he was taught and is biased
 
@Failsafe no
@ReedCopsey what would be?
 
I only do that if there's a very compelling reason to - in general, it's a bad idea, since it puts objects into an invalid state
@BrandenBoucher parameterless w/ initialize
 
also, what do you do if Initialize is called multiple times?
 
ideally, you should never have objects in an invalid state
 
5:51 PM
@Pheonixblade9 agreed
 
what do you do if Initialize is never called?
it just introduces more mutation into your program, makes it more likely to have bugs, and harder to test
 
yes - impossible to have initialize function with immutable objects
 
it also prevents you from doing simple dependency injection
 
@Pheonixblade9 I assume Init would be private and called from the constructor
 
@Failsafe then what's the point of init?
 
5:52 PM
It would be the case that the object would not be in an invalid state if Initialize was never called.
 
exactly
 
it's fine to have an Init function, but why even have it? just put it in the constructor
 
isn't that what he is saying?
parameter less constructors with an Initialize method instead of a parameterized constructor.
 
@BrandenBoucher so don't ever allow the object to be in an invalid state. Code by contract - put the requirements for your class in the constructor.
 
constructors being key word
 
5:53 PM
you can't use parameterized constructors easily with generics, so that's a case where an init function would be helpful
 
@KyleTrauberman why not?
parameters work fine with generics
 
^
i do it sometimes
 
@Pheonixblade9, that's what I said. In this case, not calling initialize would not leave the object in an invalid state.
 
where T : new() allows you to call a constructor on a generic, but you can't pass in parameters to that, can you?
 
@BrandenBoucher Yeah - the only real reason to ever avoid parameters in the constructor is if you're using some stupid serialization or DI libs that don't support it -b ut in that case, I'd say update your serializers/DI framework instead ;)
@KyleTrauberman No, but that's typically not required - and if it is, just use Activator.CreateINstance instead
 
5:56 PM
i guess you could use activator
 
sinc ethat's all that happens under the hood when you do new T
 
@KyleTrauberman May I ask what you are doing in INIT?
or what you will be doing?
 
im not doing anything, just threw out a thought
 
ahh ok
 

« first day (1825 days earlier)      last day (3122 days later) »