« first day (2004 days earlier)      last day (2939 days later) » 

6:00 PM
you should apologize
 
Is that even a thing
 
It is now
 
@Failsafe That bugs you but you were fine with him threatening to burn a Maple Leaf?
 
Threatening? No no. That was a promise.
 
@Sidney I was stuffing tex mex into my face hole at that time
i wasn't here
 
6:01 PM
But first I need to identify a maple tree
 
Oh.. A promise... So that's how it is huh? I'm not one to judge.
 
Good, that's a job for judges!
 
user47589
okay serious question time: i'm sending status update events using SignalR to the browser. the updates contain a percentage complete. for example, an event message can be emitted to tell the client its 70% done. now, question: should the percentage be [0,1], or [0,100]?
 
@Amy and what color do you want your bikeshed?
 
user47589
if you were to consume this service, which scale would you expect to use?
 
6:03 PM
@SterlingArcher it's the one surrending and kowtowing to all the foreign trees
 
user47589
@mikeTheLiar blue of course
 
Apologizing to the larches
 
Found the american!
 
@Amy I think either option is perfectly acceptable
 
Wait, I'm american
 
user47589
6:04 PM
i thought you were russian
 
!!afk americaning things
 
@Amy That's his robot bride
 
Eat a dick @SterlingArcher
 
They never got married
 
They did, didn't they?
 
6:04 PM
I hear it's a delicacy in Canada
 
No one? no one knows how awesome that statement was I just made?
 
@RyanTernier nobody cares what Canadians have to say
 
@RyanTernier hey, I acknowledged you :P
 
@KendallFrey I don't think they ever actually tied the knot.
 
user47589
@RyanTernier don't listen to them, you're cool in my book
 
6:05 PM
@Amy Do you "need" to show more than 10, 20, 30?
 
But I might be misremembering
 
@Amy only some people will get [0,1], but most everyone is going to understand [0,100], even without the percent sign.
 
I survived :D
 
user47589
this is to drive a progress bar, and a little status message. i won't ever show any decimals to the user, just flat percentages.
 
@mikeTheLiar Was their wedding interrupted before the vows?
 
6:07 PM
@Amy I'll blame monday on my ignorance, but I assume [0,1] is 10, 20, 30? and [0,100] could be 1, 15, 32, 52, 100?
 
@KendallFrey That is how I remember it
 
user47589
what i meant by that was, say the process is 63% done. that can be expressed either as 0.63, or as 63.
 
And when she came back she ran off with Barry and Other Barry
 
@Amy Show 63 not 0.63
 
@Amy - [0,100] is pretty standard
 
6:08 PM
I'd actually say [0,1]. It feels a bit more API-esque
 
user47589
I will. I'm talking just about the API layer.
 
rather than just feeding view models
 
@Amy - Do the calculation server side.
 
user47589
i only ask because i'd implemented it as 0.63 in one context, but its sent as 63 in another. gotta pick one to make it consistent.
 
if it's 0,100 you gotta be sure to send only integers
 
user47589
6:10 PM
an inconsistent API makes Al Gore sad.
 
user47589
the percentage is sent in JSON in a field called "progressPercent" so there's no ambiguity what the value means.
 
in code, everything should be 0-1. Convert to % for display
 
user47589
ok, i'll go with [0,1] then.
 
if it was half finished, .5 would represent .5% and not 50% so it seems pretty straightforward to me
 
just ensure it's consistent!
 
user47589
6:12 PM
thank you fellows.
 
Clients are slow and untrustworthy.
 
Is it moldy pizza or a consistent api?
 
user47589
as long as the moldy pizza is consistently moldy, its okay.
 
Needs more potato at that point
 
If it's a blue cheese pizza
 
6:13 PM
pizza must never be moldy. It MUST be EATEN before it gets to that point.
 
I was about to ask if we could go back to pointless drivel, but I see that some questions need not be asked.
 
There's a goodbye card going around the office but I don't even know who this guy is who's leaving
 
Yo, here we go again... I need to read a potentially large file (around 1gb) via streamReader, while ignoring the header and trailler lines. Any suggestions?
 
@EricWu Ask for a smaller file
 
@mikeTheLiar - That is because you socialize more in here than at work :P
 
6:15 PM
@mikeTheLiar "So long, mysterious stranger!"
 
@RyanTernier ~.~
 
"I hardly knew ye. No, seriously. Who are you?"
 
Don't do it on the UI thread. Bad mojo/karma/moldy pizza/you'll make someone say pan... that which must not be named
 
"ok, can i borrow a pen... and... what's his name again?"
^ what i did last summer
 
6:16 PM
@RyanTernier ..da?
 
Do you know what the header / trailing lines are? Are they distinguishable from the main content you need to read?
 
@mikeTheLiar that's happened a lot to me. How big is the office?
 
i.imgur.com/swDLceH.gifv cross chat post bc holy shit
 
@TomW ~100 people
 
@RyanTernier no, they can have the same length if so they wish. So far, the only indicative is the relative position (first and last lines in the file)
 
Alas, StreamReader won't be much of a help by itself :(
 
@TomW but there's actually multiple offices. Engineering is kept segregated from the rest of the company
 
What kind of file?
 
@mikeTheLiar That's probably for the best.
 
@RyanTernier .txt, length-separated column
 
6:19 PM
@Codeman dare you pay them 0.02 cents less!!!
 
Nobody wants to talk to an engineer. It's kinder not to force it.
 
ooops I just deleted the wrong user...thats not good
 
@TomW that explains my social life
 
@Codeman Really? 99.8 vs 100%? That 0.2 % must be a conspiracy
@Codeman That's awesome, but why can't women make 100% what men make? Why 99.8?
 
@JABFreeware nice knowin ya
 
6:21 PM
@RyanTernier If you work for the government every body makes the same regardless
as long as you're human that is
 
@Codeman Interesting article, although I'd love to see the medians and modes that those statistics come with, as well as the major outliers.
 
@mikeTheLiar so much trouble to restore too... I wonder if they would be missed
 
user47589
2 messages moved to Trash can
 
user47589
wrong video caprica. sheesh
 
Wait, african american employees make .003c/$ more than me? OUTRAGED!
/s
 
user47589
 
There was a great news show last night. They brought in 3 recent college grads to talk about the job market, student loans, debt and future. A Structural Engineer, a Chemical engineer, and a "major in french literature and arts". Guess which one complained the job market was useless and that government should pay for university
 
Literature and arts
 
@RyanTernier lit?
 
@RyanTernier Government should pay, i agree
 
6:25 PM
what did he expect...
or she
 
but if government pays, everyone pays
 
@JABFreeware A hand out
 
and if there's one thing americans are against it's higher taxes
 
@Failsafe I'm not
 
@mikeTheLiar I should've said majority
 
6:26 PM
Hell, refugees in Canada get FREE school/college/university. And 30k a year if they don't get a job. Homeless get asked to leave the street because people are walking.
 
I'm against higher taxes without a increase in value from those taxes
 
I'm not if it actually yielded good results and were not wasted
@mikeTheLiar that
 
@RyanTernier what qualifies refugee status?
 
Student Loans: An infectious and debilitating disease caught on most college campuses. The incubation period is exactly six months after graduation. The symptoms can last anywhere from ten years to persistent life long debilitations.
 
I think we need more technical/vocational schools
 
6:27 PM
@Failsafe liberals are brinign in 20k of them
 
@mikeTheLiar I honestly wish i was a welder
instead of a programmer
 
I chopped wood for an hour this weekend. LOVED it.
 
if i could do it again i would weld
 
but now I love sittting at my desck ASP.NET MVC"ing it up the wazoo with tunes on talking to you blokes online so I don't have to see your face
!!wat
 
Spoken like a true Canadian
 
I would be journeyman within 4 years
from now
 
lol
dat photoshop
 
@mikeTheLiar I really enjoyed auto work through college, it's a shame it's shit pay compared to tech jobs, and honestly Auto work was way more taxing.
 
@RyanTernier I don't want to see my face either
Welding makes a lot of dat $$$
its something that takes real talent and finesse to do well
and you get paid quite well
 
I mean that we need technical/vocational schools for software
 
6:29 PM
@Failsafe especially underwater
 
99% of the courses I took in CS were stupid
 
@mikeTheLiar Maybe they should stop offering APCS in Java
I took AP comp sci with java
 
That to. Not even 1/3 of the credit hours I took related to programming in any way.
 
@mikeTheLiar My fiance just graduated from nusring school. That's a vocation.
 
never used it again
11/10
 
6:30 PM
@RyanTernier right. We need more of those.
 
@Amy You said you used SO Careers. how did you find the experience? Did you see a lot of postings?
 
user47589
it got me an interview, but no job
 
i'm posting job descriptions on ~3 sites. I'm tempted to use SO, but not sure how many use it
 
@RyanTernier To employ others or be employed?
i assume the first
 
the first
 
6:32 PM
wow, this guy gets kicked all day long lmao
 
I would like another job
but i can't move yet
once i am able to leave the state i will probably find another job
 
@Codeman hey, a popup shows on VS that says "Please take 5 seconds to leave feedback", i click on it and nothing happens, fix that shit ;)
 
@Failsafe as soon as my wife finishes her masters I'm going to be looking
 
@mikeTheLiar I got debts to pay off
 
Im tempted to add an exception message "you're fucked, don't click this button again"
 
6:34 PM
@mikeTheLiar - Maybe you went to the wrong school for CS :P
 
@TravisJ I don't think he did go at all
 
@TravisJ well it was community college so yeah
@Failsafe I went. Didn't finish.
 
@mikeTheLiar Dang. I have such a hard time remembering
 
Bills to pay.
 
has anyone tried online schools?
 
6:35 PM
room topic changed to C#: var is love, var is life | Home of Jicama JS! csharpchat.com | gist.github.com - For Easy Code Pasting | Please ping @Codeman with all VS or TFS bug reports or feature requests [.net] [asp.net] [asp.net-mvc] [asp.net-mvc] [c#] [coreclr] [entity-framework] [java-12] [java-hate] [jicama] [linq] [panini] [visual-studio] [wcf] [wpf]
 
lol
 
why does MVC 5 not want to deserialize my byte[] property from JSON?
 
lol you guys need to give @Codeman a breath
 
wtf is java-12
 
doesn't it use JSON.NET as the JSON value provider these days?
 
6:37 PM
@Failsafe if you cryogenically froze C#, waited about 15 years, then brought it back to life, you could probably bill it as java 12.
 
@Jeremy so .NET 1.0?
 
@AdanRamirez I'd steer clear of them. Unless you're doing hard sciences or licensed things (legal, medical), the point of most degrees is to get your foot in the door with a semi-prestigious name. Online "Schools" don't have the name recognition, and are generally considered (whether it's true or not) to be inferior.
 
i guess, but if they are acredited they can hold on their own
 
@Sidney Unless it is an accredited school with an online program
 
i'd watch out for non-acredited schools
 
6:39 PM
i.e. I graduated from UNC but I live in NY and took the online degree course
obviously
don't go to ITT tech or bryan-straton
 
how do I check if a nuget package ID is taken?
 
user47589
try to install it
 
user47589
if you can install it, the name is taken.
 
if I can't install it then it's guaranteed to be available?
what about unlisted packages
 
user47589
unlisted packages?
 
6:42 PM
@Amy you know, black market packages
very rare, very expensive
 
delisted?
 
user47589
very illegal?
 
very
 
user47589
I'll buy two.
 
6:43 PM
basically you can't delete packages from nuget.org, but you can hide them
 
What has it gots in its packageses?
 
an offer you can't uninstall
ransomware
I have a couple of three-letter package IDs that I want to use
but first I want to change the project names to match the package ID
I hope I'm not wasting my time :(
 
user47589
new Game of Thrones S6 trailer looks awesome
 
without the books, people arent gona spoil it in the comments anymore
 
@mikeTheLiar THEEEEIFSES
 
6:48 PM
get ready for some epicness!
 
Well at least the next 2 books will be up to HBO because GRRM is gonna end up dead before 6 even comes out
 
user47589
I hope the white walkers win.
 
haha
he has the grim reaper waiting
 
user47589
everyone south of the wall is a bunch of assholes
 
i hope jon snow does NOT come back ahah
 
6:49 PM
At the end of the last episode, the white walker takes off what looks like a mask and it's ned stark
and he says winter is coming
fade to black
$$$
 
user47589
"I told you bitches, winter is coming. did you listen? no."
 
user47589
I'm guessing in this season, everyone but Pod and Hodor dies.
 
I actually disliked the books. GRRM is a shit writer.
 
Hodor becomes King of the Hodor Clan, trading fine pelts for Hodollars
 
user47589
Hodor!
 
6:51 PM
haha
 
@mikeTheLiar How to go insane 101
 
@SteveG maybe you should leave some feedback to fix it, mwah hah hah
 
is it me or is it really annoying when someone develops an API and its not the right case in its variable naming (the right case in this situation is typically the well known case for most C# samples I read and work with daily)
 
7:03 PM
have you guys done much with jekyll?
 
How can I inject Javascript to run from a textbox?
For example if I put this into the Textbox

 <script>
    alert("I am an alert box!");
</script>
 
can you see why my example website shows the html? kus.gitlab.io/jekyll/jekyll/update/2016/03/24/…
 
It isnt actually runing
 
@Michael - Nor should it.
@Michael - You are talking about an XSS attack.
 
Yeah, Why wont it work?
 
7:08 PM
It is rendered as text.
 
@Amy that's a great video, explains my feelings about the gender pay gap better than any I've seen
 
@TravisJ I'm trying to make sure I account for it. Currently I Encode any user into, when inserted into the DB, I was testing to see what Happens If I Decode during the Get{}
 
Gitter is emailing me every other hour
 
@wadry I am watching your google vid and its been 4 hours and they still didnt say anything about genius programmers
 
"Hey its fuckface from Gitter, just wanting to see if you like using our product?"
 
7:09 PM
@TravisJ So since I am decoding and displaying it back on the page, how come it isnt actually running?
 
@misha130 the video is entitled "the myth of"
 
o-oh..
@Michael you arent decoding it enough times
 
i'm not? Im calling WebUtility.HtmlDecode()
 
I am just confused about the question it seems
 
@misha130 I just want the JS to run
 
7:18 PM
It cannot run. It is being rendered as text. It does not go through the JS parser.
It will not run. It is being rendered as text. It does not go through the JS parser.
 
so eval()?
 
Come up with a different solution.
 
@misha130 how do you eval a script like that?
 
eval("alert('I am an alert box!')");?
 
So then whats to be scared about with XSS?
If scripts will never run because they dont go through the JS parser?
 
7:22 PM
Hmm, i dont understand
 
eval("alert('I am an alert box!')"); doesnt run either
 
@Michael you're talking about executing arbitrary js
 
using System;


namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            int width = 20;
            int height = 20;

            int[][] grid = new int[width][height];
        }
    }
}
 
open up the console in here
and try it
 
How do i open the console in here ? : )
 
7:23 PM
@Froxer format your code with ctrl + K
 
F12
 
@misha130 okay it works in the console here.. but not from the textbox
@mikeTheLiar yeas
 
you just want an alert box to appear when you click on it?
thats it?
 
@Froxer try int[,] grid = new int[width, height];
 
@misha130 okay.. for now, I want the user (me) to be able to put in a script into the textbox and for it to be able to run after Post
 
7:25 PM
is it aspx?
or mvc?
 
mvc
 
That will work 100%
but i cant use a array like int[][] grid = new int[][]; ?
 
@Michael - You are placing it inside of a textarea that is why. If you were to place it into a div it would be different.
 
@Froxer AFAIK that is not valid C# syntax.
 
@TravisJ So i'm then confused about how xss would work? if the textarea is essentially protected from it?
 
7:27 PM
@Michael how is the text area protected from XSS?
 
I had an interesting situation this weekend
 
@Michael - Often user input is placed inside of display elements, not input elements such as textareas.
 
@mikeTheLiar I have no idea, i didnt think it was
 
@mikeTheLiar - It is essentially a textnode, script is never executed from text.
 
7:28 PM
@TravisJ a display element like what?
 
@TravisJ right, that I get. But he's going to take text from the text box and execute it
 
//Single-dimensional arrays:
int[] numbers = new int[5];
//Multidimensional arrays:
string[,] names = new string[5,4];
//Array-of-arrays (jagged):
byte[][] scores = new byte[5][];
for (int x = 0; x < scores.Length; x++)
{
   scores[x] = new byte[4];
}
 
Ok but this is valid syntax.
size(200,200);
int cols = width;
int rows = height;

// Declare 2D array
int[][] myArray = new int[cols][rows];

// Initialize 2D array values
for (int i = 0; i < cols; i++) {
  for (int j = 0; j < rows; j++) {
    myArray[i][j] = int(random(255));
  }
}

// Draw points
for (int i = 0; i < cols; i++) {
  for (int j = 0; j < rows; j++) {
    stroke(myArray[i][j]);
    point(i,j);
  }
}
 
I am working on a new page, and I needed some information that exists in a very old API. I was planning on investigating on Monday what needed to happen to get that data to my service. On Saturday my boss ended up looking into it and wrote the API (not a ton of code, but still) and I have mixed feelings about it... I'm grateful that he removed a problem for me, but the dude already works enough, and it's my job to make sure this gets done. Thoughts?
 
CTRL K man, for the love of god CTRL K
 
7:29 PM
lol
 
soooorry :(
 
@mikeTheLiar - That wasn't how it was described though. It was user input from a database field that was being populated into a textarea.
 
@Codeman if it's interfacing with legacy stuff he might have been trying to save you some time.
 
@Codeman maybe he thought it was a priority to be done
 
I bet its like a squeeker screaming in your ears.. Really guys I will try to be better with that.
 
7:29 PM
@Codeman It's also hard to not interpret it as "I don't trust you therefore I did it myself."
 
@Michael - span, div, p, h1, h2, h3, h4, h5, table, tr, td, etc.
 
@Michael so if you do (pardon my jquery) $("input[type='text']).on("blur",function(){ eval$(this).val());}); what would be the problem
 
There's definitely part of our app that fall to more senior members of the team just because they're old and creaky and they were around when it was originally written and they know how it works better than anybody else
 
@TravisJ User inputs Text from Text field, It gets stored into DB, Then read from DB to populate the Text area
 
Something that would take them a day would take me a week, just because it's written in VB6
 
7:30 PM
@Codeman - Just accept it and maybe give him a thank you or something :)
 
Also it smells irresponsible to take on your work without first checking with you to make sure you're not doing it on the weekend
 
@Michael - Yes. No chance of XSS.
 
I just smile when seniors help me out and say thanks (I am a intern).
 
@mikeTheLiar It'd be quicker for you to rewrite it, and they'd also save on old beardy guys
 
But yeah at this point just thank him and move on
 
7:32 PM
@TomW yeah, I know. But it'll never be business priority because there's always some deadline coming up that they didn't tell us about
 
@Michael - How exactly are you populating the text area?
 
        So again, what is wrong with this snippet

            int width = 20;
            int height = 20;

            int[][] grid = new int[width][height];
        if above example works ?
        im so confused.
 
wheres the thing to take the highest or lowest of 2 values
gawd
 
@mikeTheLiar don't ask, just do it
 
ah got it
 
7:34 PM
@wadry min and max?
 
na i meant like this ...
 
@TomW that's basically what we're doing but a bit at a time
 
var foo = Math.Min(1,2); <-- puts 1 in foo
 
@mikeTheLiar the next bandaid is always the cheap-in-the-short-term choice
 
We sneak in fixing some technical debt every sprint while working on business requirements
 
7:35 PM
@TravisJ
@Html.TextAreaFor(m => Model.AllegationDescription, 10, 0, new { @class = "form-control", @maxlength = 1048576 })
 
@mikeTheLiar nice fix
 
Oct 16 '15 at 19:59, by Pheonixblade9
"imagine if every time you made a shot of espresso, if you took 20 seconds to do it, it would always take 20 seconds, but you could choose to pull a shot in 10 seconds... but every time you did it, it made the next shot take 0.1 seconds longer to pull"
 
Yeah, managers understand the concept of technical debt, doing things in a hurry and making a mess, they just don't care
 
What does Technical Debt even mean ? I have heard it so many times by people talking about it around but never really understood ... Technical debt this, technical debt that
 
@TomW yeah, we try to minimize the amount of technical debt we add
 
7:36 PM
@TravisJ actually even during display it isnt running.. like if I display it in between <p></p> tags
 
You don't need to explain it, they already know. They just don't give a shit.
 
@Froxer it's doing something in a quick and dirty way now to just get it done, but will cause more work later
 
:29885114 its where in order to meet a tight deadline you take shortcuts and do things "badly"
 
Oh, i see @mikeTheLiar Thank you
 
it has a cost later to put it right
 
7:37 PM
@Michael - hm, have you set a breakpoint to see what the value of the description is? Perhaps the encoding left it as %lt; instead of <. I think if you are doing it in the way you show, if the value wasn't encoded, it should alert the xss attack.
 
the trouble with technical debt is the longer you leave it the more it builds up
then you end up having to scrap the lot
 
so for instance I am currently sending in a parameter into a table adapter and my OS on the machine I am developing on doesnt have Windows Feauture to Windows Auth - So I just simply did a CMD => whoami and inserted that in a verbatim string (Because Microsoft thought it was a AMAZING idea to do things like they did (Or am i missing something?).
That = Technical Debt ?
 
@Codeman lmfao
 
@Michael Or, hm, perhaps not. =/ Ugh. The value is rendered as text I believe, see this: jsfiddle.net/n64jht79
 
7:39 PM
* vicious circle
 
@TravisJ interesting
 
I have a strange problem. VS keeps defaulting to git version control even though I changed it to TFS
 
Is that the circle of death X ( ?
 
I need it to default to TFS LOL
 
@TravisJ and It wont run between <p></p> either?
 
7:39 PM
@Froxer if theres a better but a more time costly way right now to do it then ... yes that's technical debt
 
@Michael - It executes for <p> jsfiddle.net/n64jht79/1
 
!!xkcd good code
 
@TravisJ hmmmm. yeah I need to set a breakpoint and see what its actually decoding too
@mikeTheLiar what does Does it work yet? go to throw it all out and start over? lol
 
"It's become a mass of kludges and spaghetti code"
 
7:43 PM
I kinda just want to write an application, y'know
All buried in glue code atm
Client is embarking on a major overhaul to their main business logic application. Their logic is quite complex
Sounds like they've chosen a large consultancy with multi-million budget
 
how would i unit test that when an image is clicked, that bootstrap popopen actually opens? is this a dumb test?
 
Screw that, give me the N million and I'll write it
 
@SteveG UI unit tests are always dumb.
 
@SteveG Do you have any UI/javascript unit tests already?
 
That's the sort of thing that happens when people take "100% code coverage" too literally.
 
7:50 PM
Coverage measures in a codebase that works on a ton of generated code...
Those are also retarded.
 
I remember I once removed a bunch of dead (yet tested) code from a client's project. The code coverage percentage then naturally dropped. The client's own dev manager was confused, thinking removing the dead code would have made the coverage go up. We had to explain how fractions work to this individual.
 
Nice, chrome dev console now has a pretty-print option for minified js
 
remember in earlier IE versions when you had to install special addons just to get the barest of dev tools?
 

« first day (2004 days earlier)      last day (2939 days later) »