« first day (1875 days earlier)      last day (3075 days later) » 

6:00 PM
@ShotgunNinja I have a banking app. On command it'll give me a 6 digit code that when entered into an ATM, dispenses money. You have to tell it how much money you requested; other than that, no identification required
 
@ShotgunNinja not sure if lewd
 
aaaaaand that one's going in the bin
1 message moved to Trash can
@Nick definitely lewd
 
@ShotgunNinja i love skipping breakfast and feasting at lunch
 
@Nick that's what I normally do
but holy cow my morning has been so much more productive
 
w8... i thought hunger can improve productivity
or it's only me?
 
user47589
6:02 PM
slows me down immensely.
 
it's more a matter of commute, though. Today I was coming in from the suburbs; I spent the night over at my girlfriend's family's place after babysitting her baby brother yesterday.
Normally I commute from the city, and there's like no good places to stop for breakfast on my route.
There's a Dunkin Donuts right by where the GF's family lives, though.
 
@tweray There's a sweet spot, in my experience
be a little hungry, but not too much
 
My productivity always dips around noon, though.
I work the best at like 3-4pm
 
user47589
same.
 
like, 9-10, 1-2, and 3-4 are my best hours
 
user47589
6:05 PM
some people are more productive in the mornings. i'm much more productive in the evening.
 
but if I eat too much for lunch, my 1-2 draaaags.
When I was in college, I did everything in the evenings.
In-class working time? More like time to leave the room and go chill in the commons
I always get super tired and irritable around midnight, though. If I power through that, I'm back up to speed by 1am.
 
I usually take a few hours to get up to speed, then work for hours and hours
And go to lunch looking like a zombie
 
i'm like a zombie 7/24
 
7 hours a day, 24 days a week
 
but wait, that explains why hunger pops my productivity
 
6:09 PM
I want me one of those weeks
 
@juanvan what if they tell you there's still only 2 days of weekend per week
 
errrrrrrrr noooo
 
i did try work 9 hours Mon-Thurs, and take friday afternoon off
and it sucked
 
yeah, I don't get that at all
 
@tweray work 8-6? or 8-5?
 
6:16 PM
also, motherfucking Congress
anyone care to get political for a bit
if not, go ahead and google what they did this time
 
did they clear TPP?
 
Nope
Passed a bill to both repeal Obamacare and defund Planned Parenthood
thaaaaaaaaat's probably going to get vetoed
but still
 
Ya it will, and be a Bigger waste all the $$ they put into it at this point just to stop it
 
user47589
I'm using AngularJS. In Chrome, the ngChange binding fires when the user leaves the control. But in IE, the binding is firing after every keypress. anyone know what i can do? i want to fire when the user leaves the control
 
user47589
6:19 PM
i asked in the Javascript room, but they're too busy sharing memes.
 
Honestly, Obamacare is a clusterfuck, but it's better than forcing the entire country's poor to have no health insurance.
@Amy Can't you bind to onBlur?
A blur is the name for when focus is taken from a control
yeah, Google confirms, just use ngBlur instead of ngChange
 
+1 Shotgun
 
bows lightly
 
and means Chrome is doing it wrong
 
It depends on your interpretation of "wrong"
2
the spec for change events is a little loosely worded when it comes to how often the event should fire
 
6:22 PM
LAST DAY AT WORK, WHOO
I get to turn in my badge and gun. lol
 
the interpretation of the law as to the box models states.. NO IE NOT LIKE THAT!!!
 
That's right up there with a statement I've been made fun of for: "What do you mean by 'can't'?"
As though my intention is to be instated as Chief Pedant
 
@Codeman Gun? Keyboard?
 
(it is)
 
@juanvan laptop, really...
I have a laptop for my client and a laptop for my company, lol
 
6:23 PM
@Codeman gl;hf
Don't get fired on your first day
and please don't show up to work in your boxers
 
@Codeman how long is your vacation? 10 days?
 
thanks. gonna mess around with VS:TS this weekend to get a feel
@Nick my GF couldn't go anywhere so I am just starting monday
 
@Codeman oh cool
 
I had a week+ vacation back in september, so it's NBD
 
get that monay
 
6:24 PM
plus I get 3 weeks vacay, 10 paid holidays, 2 personal days, 15 sick days there
 
@juanvan i usually do 8-4, and during those like 2 month i did 8-5
 
Take all of them immediately. Have the best quarterly review ever.
 
@ShotgunNinja hehehe
well I'll be starting in December... so that means I'll be eligible for a bonus quicker than usual
 
nice!
in terms of the work, are you confident you can handle it?
 
GetThatObjectMutatePropertiesInThatParameterYoureGivingMeAndCookYouDinnerIfItsA‌​TuesdayOrThursday(object, string, string, string, string, bool, bool, bool)
 
6:25 PM
@Nick That had better not be in production
I mean, look at all of those extra parameters
 
@ShotgunNinja lol yeah, I'll be fine. Hopefully will learn a lot
current job is... I know all work needs to be done, but it's just so damn simple
 
use a config object or something, jeez
 
@ShotgunNinja I said I wanted to refactor something, and someone suggested naming a method to what it actually does as a hold over.
Not sure what the character limits are, but I'm pretty sure I'd hit them.
 
the only challenging thing is figuring out what actually needs to be done... which shouldn't really be my job at this pay grade :P
 
@Nick Do you actually work on code which initiates cooking someone dinner?
 
6:26 PM
@ShotgunNinja No
Just saying the method tries to do way too much
Too many external dependencies
 
lol right
you've got to do something about that method signature though, name notwithstanding
 
@tweray do 7:45-5 for 20 years, ya get use to it
 
public static Ball<Wax> ConfigObject;
 
@Nick did you know C# accepts unicode for identifiers? You can just do this:

public static void ಠ_ಠ
 
@ShotgunNinja oh, I know of a worse one, let me find it.
@Codeman wait really?
 
6:28 PM
yeah dude
 
holy moly it does lol
 
user1804599
@JohanLarsson monads ftw:
 
user1804599
public static Parser<NamespaceDefinition> NamespaceDefinition =>
    from _1 in Lex.Namespace
    from name in Lex.Identifier
    from _2 in Lex.OpeningBrace
    from body in Definition.Many().Select(ImmutableList.ToImmutableList)
    from _3 in Lex.ClosingBrace
    select new NamespaceDefinition(name, body);
 
wb @Elyse
also wow, really
 
I was once fucked by accidentally copying a zero-width character into a string and I was befuddled as to why a comparison was returning false.
 
6:29 PM
@MikeAsdf I've done that before
 
@Elyse I'm afraid of monads but that looks niceish, prolly not so fun to debug.
 
@bluefeet thanks again for the help - got a response from team@se.
you guys are a class act, as always ;)
 
maybe not always (looks at Lounge<C++> and some newly-minted CMs)
 
@Nick would I lie to you? :)
 
@Codeman Probably
 
6:31 PM
@ShotgunNinja Lounge is... a special case :P
 
@Codeman s/a special case/fucked in the head/g
 
Lounge is love, lounge is life.
 
cool, rightfold is a RO now
 
how do I know Pokemon has jumped the shark? They have a pokemon that is a literal bag of garbage. bulbapedia.bulbagarden.net/wiki/Trubbish_(Pok%C3%A9mon)
 
6:33 PM
again
 
then again, I don't actually know how I became an RO
 
@ShotgunNinja you can search it
 
I think Kendall gave it to me because I asked politely
 
he knows more C# than we do without writing any
 
is rightfold a he?
 
6:34 PM
imo every reg who does not act dikk at a huge frequency should be an owner
@ShotgunNinja maybe<he>
 
not that it matters, but still
 
am I weird for wanting to replay Deus Ex: HR on my new PC with the graphics maxxxxxxed out rather than start the witcher 3 yet?
 
I've got plenty of friends who are particular about their pronouns
 
perhaps some min skill requirement
 
@JohanLarsson Does "retired 4chan tripfag" count as sufficient skill/experience?
 
6:36 PM
dunno, you decide
 
guess it does
 
@JohanLarsson So he or nothing?
 
n-state
 
I think you want Either
 
@KendallFrey what about non-binary gender?
 
6:37 PM
did you try the package?
 
@codeman How do you max out your graphics?
 
@ShotgunNinja dammit, this again
 
back finally
@KendallFrey you said you can't go easily from generic to specific and I agree. Is it impossible though?
 
@BrandenBoucher Just upcast and hope for the best
 
@BrandenBoucher Depends
 
6:40 PM
@ShotgunNinja @KendallFrey I thought I had played it safe by putting in the constraint on the type
and then making the specific overload use the same type I used in the constraint
 
giving it ten seconds :)
 
@JohanLarsson but whyyyyyyyyyyyy
you really have to try to write code that redundant
 
the only reason I can think of is stupidity
 
@JohanLarsson A perfectly understandable reason
 
@BrandenBoucher Nope, C# interfaces aren't duck typed (as handy as that would be)
 
user1804599
6:45 PM
aaaa Equals boilerplate
 
resharper generates it for you
 
@KalaJ well I got a top end graphics card, an R9 Fury X :)
 
user1804599
public override bool Equals(object obj)
{
    var def = obj as NamespaceDefinition;
    if (def == null) { return false; }
    return def.Name == Name && def.Body == Body;
}
 
user1804599
;_;_;
 
@BrandenBoucher possible but you've missed something or poorly designed something if you end up in this situation
 
6:45 PM
bah
 
ive seen people do insane things in this situation
 
hello there
i have a doubt
what about this approach
public void Test(){ string _myVaryable; }
?
 
var concrete = json.Parse(json.Serialise(genericThingy));
someone actually gave me that one
 
@Wardy in this case, calling it poorly designed is probably just a way of expressing a lack of understanding the needs of the project. Frameworks will do that to you. In my case, it was a way to ease the need of extra coding by the user and provide backwards compatibility.
 
and i was like ... eh wtf
 
6:47 PM
it's hilarious how much heat my VGA puts out when I max it out :P
 
@Elyse def.Body == body does reference equality unless overloaded == operator
 
i heard my coworker talking about local variables need to have a "_"
 
@BrandenBoucher yeh .. aka the real world
 
but i dont know if it is a good thing
 
that hurts
 
user1804599
6:48 PM
private System.Tuple<string, ImmutableList<Definition>> Tuple => System.Tuple.Create(Name, Body);

public override bool Equals(object obj)
{
    var def = obj as NamespaceDefinition;
    if (def == null) { return false; }
    return def.Tuple == Tuple;
}

public override int GetHashCode()
{
    return Tuple.GetHashCode();
}
 
user1804599
lol :P
 
@Codeman, pricey card! Looked it up and seriously, "4k Resolutions Ready"? lol
 
user1804599
Shorter: return (obj as NamespaceDefinition)?.Tuple == Tuple;.
 
user1804599
Not too bad I guess.
 
6:52 PM
@KalaJ my card is currently running a pair of 4k screens
handles gaming on them fine too
 
wow okay
 
user1804599
@JohanLarsson wtf
 
So you own 4k monitors?
@JohanLarsson, why is it false?
 
@Elyse fix
@KalaJ reference equality
 
user1804599
6:54 PM
:'(
 
equality in c# is a mess
 
hey guys, what windows should I buy if I want to use win10?windows 10 or windows 8.1 (so I can have both 8.1 and 10)
 
@ShotgunNinja public static bool SaveTheThing(InternalObject, string, InternalObject2, bool, bool, bool, bool, bool, out bool, out InternalObject3, out bool, bool, bool, bool, out bool, Window, bool, InternalCallback, bool)
found it
 
Clean code says remove all those damn bools
 
@user3662546 Why do you want to have 8.1 and 10?
Just get 10.
@KalaJ Would require cascading changes
And way too much time
But I'd love to.
 
6:57 PM
So that's really production code?
 
@KalaJ yep
 
:O
 
names changed to protect the innocent
 
gotcha
 
user1804599
@JohanLarsson I have a better idea:
 
user1804599
6:57 PM
protected abstract object Tuple { get; }

public override bool Equals(object obj)
{
    return obj != null && Equals(GetType(), obj.GetType()) && Equals(Tuple, (obj as Definition)?.Tuple);
}

public override int GetHashCode()
{
    return Tuple.GetHashCode();
}
 
user1804599
In the base class.
 
looks reasonable
 
@Nick I didn't test the system yet, so I don't know if it's going to suit me
i would like to have an ability to revert to 8.1
 
return obj != null &&
       Equals(GetType(), obj.GetType()) &&
       Equals(Tuple, (obj as Definition)?.Tuple);
 
omg that reminds me
I couldn't revert back to 8.1 from 10 because it considered my .NET framework as a user
and said I had to remove all other users before reverting
but .NET was not listed as a user
so I had to manually delete it
I wonder if they fixed that bug
 
user1804599
7:03 PM
@JohanLarsson How does equality work for structs?
 
@JúlioMurta that's a Java thing. The C# coding style book does not use underscores for anything except final variables
 
@Elyse a bit saner, no == unless explicitly implemented
you want IEquatable<T> for structs
 
@KalaJ yeah I got it for $589, haha. I might get a 2nd one someday
 
to avoid boxing
 
It runs Shadow of Mordor at ultra quality at 80FPS at 1440p :P
 
7:05 PM
i still fucking hate sharepoint
 
@Elyse sample, a bit huge perhaps
 
user1804599
Cool.
 
user1804599
[Fact]
public static void NamespaceDefinitionTest()
{
    var result = NamespaceDefinition.Parse("namespace N {}");
    Assert.Equal(result.Name, "N");
    Assert.True(result.Body.IsEmpty);
}
 
user1804599
woo my first C# test
 
nice
do you know how [theory] works?
a bit strange name but extremely useful
same as [testcase] in nunit
 
7:08 PM
is that asp.net 5?
 
no, xunit/nunit
 
ah cool
ive never used nunit
 
user1804599
lol, GitHub can't syntax highlighting: github.com/rightfold/sanity/blob/master/sanity/Parse.cs
 
better than the built in asp.net test stuff?
"built in" aka i dont know what its callewd
 
@Bubbas dunno, never done any asp. Xunit is a little nicer than nunit but they are very similar
@Elyse time for a pull and room probably :)
 
7:10 PM
gotcha
 
user1804599
:P
 
what are you writing c# from?
win forms?
unity.....?
console apps?!?
 
user47589
i don't always write c# code, but when i do, i use notepad.
 
lol
 
@Elyse check for hidden nonprintable chars?
 
user47589
7:16 PM
i just had to deal with that. IE's Date.toLocaleString() inserts 5 zero-width bidirectional control characters. Chrome and Firefox don't. i.imgur.com/SVfebTo.jpg
 
that's disgusting
it's like they're trying to make their browser have problems
 
yup ive seen that before
so stupid
MS pisses me off sometimes
 
user47589
yeah
 
because they will go into depth about how what they are doing and why is "correct"
 
user47589
IE compatibility is still mediocre.
 
user47589
7:19 PM
when is their new browser supposed to come out?
 
already has lol
Edge
 
user47589
oh
 
hi
 
Edge does the same Date thing though.
 
user47589
shakes fist
 
7:24 PM
Is it even possible for an application to leak memory in computer A and not on computer B running in the same conditions? asjdashdgajshgdajshd this is making me crazy
 
definitely
what are the differences between the two computers
 
@Prix You just contradicted yourself
So, no
 
does one have a viiiiiiiiiiirus
 
ever feel like your coworkers are saboteurs? businessinsider.com/oss-manual-sabotage-productivity-2015-11
 
> in computer A and not on computer B
> running in the same conditions?
Mutually exclusive
 
7:26 PM
@KendallFrey I meant for the leak
 
@Prix .NET application?
 
@MikeAsdf yes
 
user47589
"the same conditions" is an unprovable assumption.
 
@Prix That doesn't change it
 
@MikeAsdf Sounds like Lounge<C++>
 
7:27 PM
IIRC, .NET garbage collection has "when it feels like it" rules which are in part determined by the available memory on the system to begin with
 
ok so could a 3rd party application for example an AV or perhaps a .Net Framework malfuctioning or broken or not up to date cause it?
 
Do we know it's a leak for sure?
 
it goes out of memory and closing the application frees the memory
I tried running ANTS but it doesn't give me anything useful related to leaks
 
@MikeAsdf memory leaks aren't related to the GC
 
@Prix do you have the ant info
 
7:28 PM
I have the summary but if u want specific info I can try to get it
 
is the program doing any serialization ?
had a strange memory leak with that and an xml file
 
it does have a XML it downloads which is very tiny which uses serialization
 
mine was processing 100000 of xml files
and not disposing them
 
Does the stacktrace at time of the OutOfMemoryException point to probable culprit memory-hogging code?
 
@juanvan no its just like 10 lines or so and disposing it after and it runs locally in a function
 
user47589
7:30 PM
most of the constructors to XmlSerializer have memory leaks.
 
So you application deals a lot with XML and strings?
 
@MikeAsdf haven't checked that but will do next time
 
is it 1 xml file?
 
1 xml with about 10 lines that is checked every hour
 
You could maybe take a process dump and manually inspect it in a hex editor and look for ascii/unicode of interest.
 
user47589
7:31 PM
which XmlSerializer constructor are you using?
 
If the hex editor shows "D.O.G.S.H.I.T.D.O.G.S.H.I.T.D.O.G.S.H.I.T.D.O.G.S.H.I.T..." for 200 megabytes then you might think "Hmm, I should look into how the DogShitManagerFactory is managing its data".
 
var serializer = new XmlSerializer(typeof (Update));
using (TextReader reader = new StringReader(data))
{
result = (Update) serializer.Deserialize(reader);
}
@MikeAsdf that's a lot of dog shit lol
 
user47589
that constructor is safe.
 
but thanks I will try that as well
 
To take a process dump: go to the detailed process list in TaskManager, right click, "Create Dump File"
Another neat thing about dump files is you can load them into VS to look at point-in-time stack traces of all threads
 
7:37 PM
 
@Prix jesus, how are you using 4GB
 
@Codeman dude, commas are the decimal sign in some countries
it's 4.096MB, not 4096MB
 
@Codeman wait what that's not GB LOL
 
@Prix what country are you in?
 
@Codeman don't feel bad, i was thinking the same thing.
 
7:41 PM
@ShotgunNinja Brazil
 
that's why
 
So that is not too bad ?
 
If that was GB I would be killing myself by now LOL
 
A decimal mark is a symbol used to separate the integer part from the fractional part of a number written in decimal form. Different countries officially designate different symbols for the decimal mark. The choice of symbol for the decimal mark also affects the choice of symbol for the thousands separator used in digit grouping, so the latter is also treated in this article. In mathematics the decimal mark is a type of radix point, a term that also applies to number systems with bases other than ten. Conversationally, the decimal point is commonly referred to as a "decimal dot." == History... ==
 
Out of curiosity... is 1,000.00 in US notation 1,000,00 in Brazil notatiion?
 
7:42 PM
No, it's 1.000,00
 
o_o
 
lol
 
they swap the delimiters
 
So what does it means when i am debuging, and one of the property is a brick with a minus sign?
 
@ShotgunNinja exactly
 
7:43 PM
well it keeps it Foreign
 
I came across that issue once when debugging a mis-charge for a customer in Sweden
 
It's fun to temporarily change locale settings to use semicolons as number & date delimiters to see what code breaks
 
Either way does that summary shows anything odd aside from my country being different?
LOL
 
i mean does that work if i do float.parse(1.000,15)?
 
but my OS locale right now is set to japanese
mmmm
 
7:44 PM
how big is the program becoming?
 
eating 16GB memory if I let it
 
how long does it take
 
literally what the PC had to offer, im waiting it to happen again to generate a dump etc
 
Your program needs to see an eating disorder specialist...
 
around 30 minutes
 
7:45 PM
So what is the labor part that could be doing it?
 
@Bardicer its like you know your car have an issue but when u get to the specialist it doesn't happen
 
that sounds like an infinite loop of recursion...
haha so true
or closer to home... "There's this bug, can you come look?" "Sure" "It's not happening now..."
 
have worked at garages where the tech would test the pcm before and after trying to trouble shoot an engine.. sometimes no mater what the skill have to replace it
 
@juanvan I've triple checked everything and honestly I don't see anything that could cause it, at least not from the application and like I early stated it runs fine in 2 other PCs which is why I was confused... Checked global and local variables, lists literally everything that could be wrong but nothing was wrong. on the other 2 PC's it never goes above 13~14K on task manager...
@Bardicer lol exactly
 
the other Pc, they running the project or the exe
compare frameworks/libraries - so its not the program then its more the PC
 
7:52 PM
That would expose a difference, but not necessarily pinpoint what exactly is going wrong.
 
@juanvan the exe
@juanvan that's what I wanted to know could the framework installed cause this to happen?
 
Seems unlikely
 
and thanks for all the answers and help, I will create a dump to check it as well on the culprit pc
 
if(installedDotNetVersion == "3.5") AllocateTestData();//TODO: remove --Jimmy the intern
 
lol
 
7:58 PM
I have found many public bool IsFuu { get { return true; // some expression } } in our code
the demo must run smooth right?
 
@JohanLarsson make sure it returns true when checking if the license is valid on a empty license field
 

« first day (1875 days earlier)      last day (3075 days later) »