« first day (1928 days earlier)      last day (3019 days later) » 

4:00 PM
I don't follow as to why libraries have to be unloaded
 
remember that MEF/GetReferencedAssemblies stuff?
 
@KendallFrey i do love cinnamon
both the spice, and that one hoo....
 
I'm still on it. But I'm nearly done.
I need to load Assemblies to figure out if they've MEF Exports or not and get the Imports they need
but after I know that, I do not need them anymore
 
i love the programmers/meta post about homework questions lol
 
SOmeta is like half of my energy source since bash.org died again
 
4:04 PM
guess the easiest would be to just exit the application when I'm done and restart it on the spot
 
455
Q: Open letter to students with homework problems

MichaelTIt is September once again (today is the 7316th day of September), and once again students are asking their homework problems on Stack Overflow and Programmers.SE. We start seeing questions like: A car dealer has 10 salespersons. Each salesperson keeps track of the number of cars sold each m...

 
oh w8
bash.org is back!
 
whaaaaat
I thought that was lost to history. Evidently not :(
 
@Squiggle don't let your dreams be dreams
 
MFW bash.org is blocked
 
4:12 PM
Should I disallow to let users use certain symbols like ' or "? (apart from SQL injection)
 
context?
 
Well firstname, lastname, email (already filtered anyway)
 
@Failsafe that site is still in existence?
 
yea apparently
 
I can't find a reason for not allowing it. But that's why I'm asking you guys =)
 
4:13 PM
Question, in WebApi can you return an object or HttpResponse?
 
@ErwinOkken For human data I prefer to err on the side of permissiveness. Let them enter whatever they want, escape troublesome characters.
 
user47589
right @greg
 
@ErwinOkken FWIW, not everybody has a last name.
 
Can you return both?
 
@Squiggle I'd say the exact opposite. For human data, make sure they can't enter anything that is clearly wrong.
 
4:14 PM
@Greg everything's an object fam
 
user47589
web api methods can return four different things: void, IHttpActionResult, an object, or a HttpMessageResult
 
@SteffenWinkler indeed, but what is "wrong"?
 
@Squiggle a questionmark in a name is cleary wrong.
 
So if they login and it returns an object great, if the login fails I want to return a 401
 
and most likely a typo
 
4:15 PM
@SteffenWinkler Yea but that's input validation for a specific input
 
@Squiggle What are the side-effects of NOT escaping those characters? (apart from the standard mysql injection, that has been done)
 
@Failsafe I thought that's what @ErwinOkken was asking about?
 
user47589
then the return type should be IHttpActionResult, and you wrap the resulting object with Ok(result) or the appropriate method
 
@ErwinOkken integration with other systems can cause issues, if their constraints are stricter than yours.
 
@Squiggle Never thought of that, thx.
 
4:16 PM
@SteffenWinkler Oh probably. His question was vague
 
user47589
401 UNAUTHORIZED should be handled by the Authorized attribute, not by the method.
 
Or rather, his question seems to want to cover more than 1 input
 
@SteffenWinkler It's not really "official", so if someone wants to add <3 for example behind their firstname.. have fun. Thx however :)
 
@ErwinOkken w3.org/International/questions/qa-personal-names best practice is to be generally permissive and use only one field for full name.
 
@Amy What do you mean?
 
4:17 PM
@ErwinOkken oh ok.
 
user47589
What part was unclear?
 
@Squiggle it's also dependent on DB constraints too
like length and data type
 
@Squiggle Awesome, thanks. Something to read is always awesome. Thank you :-)
 
@Failsafe then these should be equally permissive. You should never be in the position of saying "sorry, your name is wrong because the database couldn't handle it"
 
4:20 PM
@Squiggle You say that, but then I think back to a COBOL application that had a max length of 25 characters and a very angry pakistani customer who couldn't apply on the form
so
 
Party Name Component Type { Given, Family, Organisation Name, Mononym }
 
might of been a turkish user
im not really sure it was a long time ago
 
You ever read the question from someone who'd encountered fatal crashes when they tried to register a user whose last name was Null?
 
yes
thats an old one
 
@Amy So I can use IHttpActionResult and that would only return Http not an Employee object for instance?
 
4:22 PM
this one right?
3669
Q: How do I correctly pass the string "Null" (an employee's proper surname) to a SOAP web service from ActionScript 3?

billWe have an employee whose last name is Null. Our employee lookup application is killed when that last name is used as the search term (which happens to be quite often now). The error received (thanks Fiddler!) is: <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <fault...

 
isn't someone here just made his pwd on some website null and now still unable to login?
 
Okaty
 
I fucking hate SSIS.
 
user47589
@tweray yeah someone was in here yesterday
 
4:23 PM
@mikeTheLiar so does everybody else
 
user47589
he wanted help hacking a site because his password was null or whatever
 
lol
there was a question a couple days ago where someone was trying to make a login page for phishing his friends
 
user47589
haha yeah
 
@Failsafe i'm surprised that there's no answer like "Ask your employee to change his name"
 
@tweray best way to avoid technical debt right there
"Sorry, I don't have enough development time in this sprint to give a shit. Change your name and come back in 2 weeks."
 
user47589
 
bwahaha
We will refuse a deed poll application with any name that:
- contains symbols or punctuation marks other than hyphens or apostrophes (note that names with symbols are not illegal, but we are unable to process them for technical reasons)
- is more than 300 characters in total — that is, the combined length of your forenames and surname, including spaces (note that this limit is imposed for technical reasons)
this is from the UK registry offices themselves
 
user47589
They should be required to process all possible legal names.
 
you would think
 
www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
 
@mikeTheLiar #40 is my favorite
 
4:41 PM
will unsubscribing from an event that a control is not currently subscribed to throw an exception / create an error?
 
Why didn't that linkify itself?
 
user47589
it doesn't start with http
 
user47589
i like this. seen it? qntm.org/gay
 
Oh duh. Ignore me.
I fucking hate Bloomberg.
 
Bloomberg = fun times
 
4:49 PM
If you ever get the chance to work with the Bloomberg terminal API, don't.
 
problem is if you really get that "chance", usually you got no choice anways
 
Terminal in what sense?
It's on its last legs?
Terminal in what sense?
 
Ha. I loled.
The Bloomberg Terminal is a computer system provided by the financial data vendor Bloomberg L.P. that enables professionals in finance and other industries to access the Bloomberg Professional service through which users can monitor and analyze real-time financial market data and place trades on the electronic trading platform. The system also provides news, price quotes, and messaging across its proprietary secure network. Most large financial firms have subscriptions to the Bloomberg Professional service. Many exchanges charge their own additional fees for access to real time price feeds across...
 
It's a continually-evolving legacy system with all sorts of weird and wonderful edge-cases
 
user47589
mmmm edge cases
 
4:52 PM
It's also got this janky-ass keyboard.
 
user47589
is that yours?
 
user47589
or a pic off the 'net?
 
Nah that's from Wikipedia
 
How would you make a data structure for something that has to say IsVertical or IsHorizontal? Would you make a new class called Orientation? That sounds like overkill
 
Jesus. ...
 
4:54 PM
Yea the bloomberg terminal isn't a joke
that thing is serious
 
> All Bloomberg Terminals are leased in two-year cycles (in the late 1990s and early 2000s, three-year contracts were an option), with leases originally based on how many displays were connected to each terminal
 
they had one in the show "The Newsroom"
 
Batman horror.gif
 
user47589
kush: use an enum?
 
the $$$$$$$$$$$$$$$$$$$$$$$$$$ 2 gud
 
4:57 PM
@Failsafe $25k a month?
 
@Amy Will that authorize attribute enforce IIS Windows authentication?
 
> Sales from the Bloomberg terminal account for more than 85 percent of Bloomberg L.P.'s annual revenue.[4] The financial data vendor's proprietary computer system starts at $24,000 per user per year.
 
user47589
yes @greg
 
oh, a year
 
@Amy Sweet.
 
4:58 PM
Sourcetree doesn't check the checkbox "Push all changes after commit" automatically
why
is there an option for that
 
@Amy We've been having issues with Ember doing the Windows AD when it calls our WebApi backend.
 
cuz i want it
 
@Failsafe you mean the auto-push feature?
 
yea
 
Because it's dangerous
 
4:58 PM
i know that
 
user47589
@greg as long as ember passes along the right HTTP headers....
 
because youdon't want to rewrite after you push
 
but im the only one using these repos
 
then rewrite away (:
 
@Amy The www-authenticate
 
4:59 PM
Somebody fucked up our develop branch because they didn't realize they hadn't switched branch and auto-push was on
 
user47589
a person named Failsafe wants to do things dangerously.
 
@mikeTheLiar did you take away their commit privileges?
 
They ended up leaving shortly thereafter for unrelated reasons
 
@Amy Hell yea
if something gets screwed up it's my fault anyway. I am the only one doing commits and pushes
 
Is there a better way to do coin toss 50, 50 chance other than random.Next(1, 2) > 1?
 
5:04 PM
are you code golfing or something
 
@Failsafe battleship
 
ahh
 
@kush what about random.Next(1) == 0?
 
@kush yes because random.Next(1,2) is an exclusive upper bound
 
oops
 
5:05 PM
oh crap that's right
 
@KendallFrey thank you
so it would always be false
 
yeah
random.Next(2) == 0
or (random.Next() & 1) == 0
 
@KendallFrey what is happening here?
is that a bitwise and?
 
yeah
 
@KendallFrey I like this one
 
5:08 PM
posted on January 26, 2016 by Bertrand Le Roy

To read last week's post, see The week in .NET - 1/19/2016. On.NET Last week, we chatted with Don Syme about the future of F#, and the community behind it. This week, our guests are Brian Flannery and Colin Sullivan from Apcera. We're going to talk about NATS, a high performance messaging system with a great .NET client. Package of the week: ASP.NET MVC Boilerplate ASP.NET MVC Boilerpla

 
I think a non negative integer less than 2 should always be either one or zero
    public enum Orientation
    {
        IsVertical,
        IsHorizontal
    }
 
yeah
 
here is my problem... so I want to place a battleship on a board so before I place it I want to know the board position is empty. Does that mean the method SelectABoardPositionToPlaceBattleship() cannot go in my Battleship class?
 
@kush that should probably be Horizontal and Vertical rather than Is(Vertical|Horizontal). Also I don't know if an enum is the right answer since those options should be mutually exclusive, right?
I would just have a property on your ship class IsHorizontal
And IsVertical { get { return !IsHorizontal ;} } etc etc
 
Board.canAccommodateBattleship(Battleship b, Orientation o) returns boolean
or something like that
 
5:14 PM
set is left as an exercise for the reader
 
@mikeTheLiar do I even need a setter?
 
@kush That's pretty obvious :P
 
I don't get this. Some where in this data flow task data is just...disappearing.
Fucking SSIS
 
Huh
ASP.NET boilerplate
interesting
TIL my msdn has VS2015 enterprise
might as well download it while im at lunch
 
5:36 PM
I'm trying to decide how big an idiot past me was. Because if I'm understanding this ETL I created six months ago, it's doing something really, really stupid.
Of course, I documented the process very thoroughly when I created it - with the exception of the one task that is now broken and doesn't seem like it ever should have worked in the first place.
 
Maybe that wasn't you
 
mystery change request
the worst ones
 
Colleague 'fixed' it?
 
Question: I'm working in an existing MVC5 application and I need to add a read only view of a report post submission.
 
The one part you don't remember, don't understand, isn't documented and is now broken? Points to incompetent junior colleague
 
5:46 PM
Would that justify it having its own model or can I just use an existing model that the report was built from?
 
@Alex you could probably just do it in jquery
 
They want it done in the MVC pattern and C#
 
$('input').each(function() {
$(this).prop('disabled', true);
})
@Alex lol
that's a dumb thing to request of someone
who is they
honestly that's a pretty stupid request
 
The company. they want to stay with a puritan approach in MVC5.
 
puritan approach?
jquery is integral
it's not all c#
lol
html5/JS/css is literally part of the stack
tell them to shut the fuck up and let you do your work
brb lunch
 
5:51 PM
So I was ask to create a ready only view of a report for two user permission roles in the system so once its been submitted they can only view the submission.
 
Good evening all
 
Hey there
 
I've got a concept interview for C# in one hour. I'm nervous even though I think I got everything down lol
 
6:07 PM
posted on January 26, 2016 by Visual Studio Blog

It’s been a few months since our last roll-up of top developer stories, so I’ll be catching up with the news from last fall in two posts. We’ll start here in Part 1 with Visual Studio, .NET, ASP.NET, languages, and a few other tools for good measure. Part 2 will cover a variety of topics including Connect(); //2015, Windows 10, cross-platform development,. Visual Studio Code,

 
Ermagerd @Sippy
Hello etc
 
@TomW and of course it's SSIS so I can't even git blame and figure out wtf happened
 
6:23 PM
hey there
 
hey kids
 
I have a question on validating a url against a regex..lol
don't ask why
actually I'll post it later still debugging
 
glad we could help
 
This sandwich is good except for the fact that they decided to put lettuce on a hot sandwich. Who does that?
 
@TomW Hello o/
 
6:38 PM
@mikeTheLiar have you never had lettuce on a hamburger?
heck, I've had coleslaw on a hot sandwich
 
@Codeman quickest turnaround time 2016
also morning
 
@Failsafe something something your mother, trebeck
indeed :)
 
haha
i forgot how amazing bash.org is
 
How do you make a more senior employee understand that you know something better than he does, without undermining him/her?
More senior both in terms of working experience and position in the company
However I play it out in my brain, it always sounds either snide, bragging, or foolish. But I think that if he did recognize that I know certain things better, work would go a lot more smoothly. But maybe it's not a good idea politically...
 
busses schedule for the rest of the week, whoo
 
6:45 PM
@Failsafe goddamn don't make me even think of that time sink
 
@KendallFrey 40m in rn
 
@GregRos oh man, if only I had a post that I got a ton of upvotes for that exact same question OH WAIT I DO
62
A: How do you explain to your boss they're wrong without making them feel threatened?

CodemanMy boss is usually right, so I rarely have to do this, but try to frame it positively, and not confrontationally. Make it HIS decision, rather than making it sound like "not my problem". Example: "After doing research, I was unable to replicate this on a test machine. Should I continue to pur...

 
it just keeps....going
@Codeman Lol
 
@Codeman Wow, I thought it was a bad question, so I didn't even think of looking...
 
@GregRos Ask him "Do you know how X works?" and when he says no, say "I think it works by Y."
 
6:48 PM
yay my VS2015 download is done
 
@GregRos the trick is to ask clarifying questions rather than stating you disagree
"how does it work for you?" "how do you expect it to work?" "how do others feel about this? does it matter?"
@Sidney that's some sweet code
 
Don't tell them they're stupid. Make them realize their own stupidity.
 
lol typed enter too soon. :)
Just a sec
 
IMO arguing who knows more never ends well
you can always present pros and cons of each method
win them over with evidence
 
@Failsafe Next up: religious debates
 
6:50 PM
@Failsafe Like spaces vs tabs, right?
 
@KendallFrey Well the reason religious debates go on for so long is because they don't have to push a new version of the bible out on a release schedule
 
if they were doing 2 week bible release sprints they'd be open to more compromise
lol
 
@Codeman Thank you for the tip :)
 
BibleJS v1.0.0
Last commit: 405 years ago
 
6:52 PM
There was a Discworld novel where this god kept updating his list of things he abominated
 
@KendallFrey still not as good as JicamaJS
 
@Codeman my boss' computer has direct access to all servers, and therefore some critical data could be lost.
o.O
 
@KendallFrey Nah bible 1.0 ended when they released Bible 2.0 with all the new testament plugins
 
Is this design pattern fairly prevalent? I've seen it used in previous jobs, but my code reviewer is giving me a pretty stern "wtf". It iterates through a list to check booleans, but short circuits if a previous value returns a negative.

bool TruthValue;
foreach(Testable item in Testables) {
TruthValue = TruthValue ? TestTruth(item) : false ;
}
return TruthValue;
 
@Failsafe No, Bible v1.0.0 is the successor to Torah v32.12.17
It's pretty popular, but there are still plenty of people that prefer the legacy API
 
6:55 PM
@KendallFrey Ahh right
They went through the name changes it's hard to keep track with so many forks
 
So is the Koran a fork?
 
There have been attempts to deprecate the old version, most notably during the early 1940s.
@GregRos Yeah, it's mainly an extension of Bible, but it also removes a lot of conflicting APIs.
 
Deprecation is an interesting word.
 
floccinaucinihilipilification is an interesting word
 
@KendallFrey I can't spell that
I can't pronounce it either.
 
6:58 PM
!!urban floccinaucinihilipilification
 
@Failsafe floccinaucinihilipilification The act of estimating something to be worthless.
 
@KendallFrey Yes but this was a panini. And coleslaw is cabbage, not lettuce.
 
T-H-A-T. "That."
 
eet
OK I can pronounce it
 
@mikeTheLiar Surely not a PANINI!?
and yes I know coleslaw is cabbage
I felt very hipster that day
 
6:59 PM
@mikeTheLiar isn't lettuce just loosely packed cabbage?
 
Aren't Europeans just loosely packed Americans?
 

« first day (1928 days earlier)      last day (3019 days later) »