« first day (1916 days earlier)      last day (3036 days later) » 

user47589
7:00 PM
@KendallFrey fails at computers
 
Yeah.
 
Vanilla-JS is the only JavaScript framework that everyone will continue using till JavaScript becomes obsolete
 
OH YES THANK YOU FOR UPDATING
 
user47589
you're welcome
 
windows is entertainment
 
7:00 PM
BSOD in 2016?
 
It's 2016, bub
 
user47589
@MoonOwl22, when i upgraded my pc to windows 10 last year, everytime my torrent application tried to access the network, i got a bsod. had to upgrade my card.
 
Well fuck me, the file I was editing got wiped out
 
user47589
i was getting 3-4 bsod an hour until i figured out what it was.
 
I just want to get the actual POCOs instead of the proxies. I found this msdn.microsoft.com/en-US/data/jj592886.aspx but I dont think I want to add a reference for something like ObjectContext in my UI codebehind
 
7:02 PM
@Amy I last got BSOD with Windows 8.1
 
user47589
ok
 
But it was because of my hardware then
 
I used to mostly consistently get BSOD when I didn't have a secondary monitor plugged into my laptop
 
Bad ram
 
@KendallFrey your computer loves threesome, satisfy him!
 
7:05 PM
Hi Everyone!
 
user47589
hey, its the water guy
 
user47589
hi water guy
 
hello water consumer
 
Water? I don't touch the stuff. Fish fuck in it.
 
user47589
water? like from a toilet?
 
7:07 PM
I don't drink water. People shit on it. JK
 
you must drink ... which one you decide
people clean the shit with it
 
why are these two code blocks different? with respect to the lazy loading?

Gives me Proxies:
            using(LitTrackContext context = new LitTrackContext())
            {
                listBox_MatterTypes.DataSource = context.MatterTypes.ToList();
            }

Gives me POCOs:
            using(LitTrackContext context = new LitTrackContext())
            {
                var list = context.MatterTypes.ToList();
                listBox_MatterTypes.DataSource = list;
                listBox_MatterTypes.DisplayMember = "MatterTypeName";
 
Logging into the computer my audio is piped through via TeamViewer makes for some very soothing and therapeutic noises.
 
think about the bright part, at least that make the origin audio sounds better
 
damn.. stocks are back up today
 
7:11 PM
@Michael ToList means it's not lazy. You're forcing evaluation when you do that
 
I made an asp.net mvc project, now i have made my life difficult using the default file and code structure e.g. Models folder with all plain models, Controller with controllers, Views with views (added a folder Services to handle DB etc logicstuff). I can not handle it anymore.

Are there any suggested guidlines articles out there which recommened better file+code structure for MVC project??
 
@mikeTheLiar but I ToList()ed in the first one too
 
The only difference is the DisplayMember
 
@KendallFrey no, I messed that up. Its in both
 
what?
 
7:12 PM
@LifeH2O not sure how that make life hard. but you can define areas if there are too many controllers
 
Then... there is no difference?
 
With respect to lazy loading in particular
 
@KendallFrey the displaymember should be in both examples, I accidentally left it out of the first method.
 
Does anyone here have experience with Amazon Web Services REST requests?
 
@KendallFrey @mikeTheLiar Then why does one give me proxy objects and the other gives me POCOs?
oh wait...
 
7:14 PM
I can make a request successfully but as soon as I try to pass a querystring parameter it tells me the request is forbidden which makes me think I'm calculating the signature incorrectly.
Of course AWS documentation is abysmal so I have no idea if that's true.
 
its because I removed the virtual keyword
 
@Michael that would do it
Did you see my message about EF actually creating classes inherited from your pocos?
 
@tweray I spent two days looking for where to put other logic because it made the controllers messy. So I moved most of it to Services. It does feel better, but I have seen experienced developers using totally different file strcutures. I thought there must be some articles/guidelines/practices suggesting how to manage it in a better way
 
user47589
@mikeTheLiar that's incorrect. ToList won't cause all virtual properties to be lazy loaded. it only causes the top level of objects to be loaded.
 
@tweray Can you suggest anything related, that might help me move in the right direction?
 
7:18 PM
@LifeH2O um... well, have you considered to put business logic into a separate class library? usually a controller's job is only to structure a viewmodel and throw it to a view, and in some cases if structuring a viewmodel is too complicated, i would create a viewmode builder class to do it
 
@StevenLiekens sorry went to take a shower, Oh i get what you mean, i should always use the bigger one at start so the parser wont take the first <sub> he sees as the answer
 
@Amy I defer to you, you definitely appear to now more than I do about EF. I was just thinking about Linq and how ToList forces eager loading
 
@mikeTheLiar Yes, what did you mean by EF creates classes inherited from your pocos?
 
user47589
ToList will force eager loading of the collection, but virtual properties won't be loaded until they're referenced.
 
7:19 PM
@mikeTheLiar your saying proxy classes are inherited?
 
@Michael yes
 
user47589
@Michael, that's why lazy loaded properties have to be virtual.
 
They are inherited from your pocos
 
@Amy then how do i get rid of the proxy object when I want to display the actual POCOs?
 
user47589
don't use lazy loading
 
user47589
7:21 PM
what does it matter if its a proxy?
 
hmmmm.
 
user47589
it implements the poco's interface, it looks and smells like one of your pocos
 
good point. let me tinker with it i guess
 
can/should scalar properties be lazy?
 
If it looks like a poco and smells like a poco, it's a panini.
 
user47589
7:22 PM
i dont think scalar properties can be lazy.
 
I can tell this panini bullshit isn't going away any time soon
 
@Amy @mikeTheLiar sorry about that. It took a while for that to click in my head
 
@TomW I don't think it would really may a difference either way. Any performance benefit/hit would be so small that it's not even worth thinking about
@Michael no problem, EF can be tricky
 
@mikeTheLiar I was just thinking that I couldn't see how that could make sense
If an entity is a query result, surely it's already been materialised. I get that navigation properties load other entities lazily, that makes perfect sense to me
 
user47589
if i call moment().tz("America/Los_Angeles"), i get a zone object with offset information. but if i call moment().tz("America/Chicago"), i get an incomplete object with no offset info. whyyyyy
 
7:25 PM
Chicago isn't a real place?
 
@TomW I was thinking more generally but yes I would agree with you. Also, I just tried conceptually to yield return a single value and the compiler yelled at me
 
user47589
its in the moment.tz.names() listing
 
Australlia doesn't Exist
 
@tweray This is a nice idea. So I only have to add that as a new project in the solution to make a class library. But services are already separate, I don't have much problem handling them. So many views, and so many viewmodels are creeping me out.
 
@mikeTheLiar yield return from what?
Should still work from IEnumerable<T> Foo()
 
7:26 PM
Just a function.
 
Is IEnumerable<T> scalar though?
 
So my coworker is convinced that there are tools that we can use in TFS to diagnose test runs (MSTest), but doesn't know what they are. I don't know either, and I'm leaning toward hacking together our own. Does anyone know any way we can do simple logging (text only is fine) for a test run on the TFS build server?
 
user47589
` IEnumerable<T>` is a collection, so not scalar.
 
@Amy right, that's my point
 
7:27 PM
@mikeTheLiar I don't think that's anything to do with the single-ness of the yield statement. It's the fact that to yield you have to have a return type it can stuff an enumerator into
 
That's also my point
 
@mikeTheLiar That's not a valid point
 
Oh, I think I see what you mean. More like Foo() { lazy return bar; }?
 
user47589
how many points do you have left?
 
@TomW exactly
 
user47589
7:28 PM
eventually you'll run out, and then we shall have victory
 
But the compiler complained that "body of the method could not be an iterator type" or something like that
@Amy I'm secretly a hedgehog
@KendallFrey which one?
 
What are you actually trying to do?
 
user47589
we've known you're a hedgehog for a long time
 
@mikeTheLiar The one I replied to
 
Someone suggested to move views and controllers in the same folder.
 
7:29 PM
@LifeH2O find them and kill them
 
That IEnumberable is a collection so it can't be scalar?
 
kinda
 
@LifeH2O kill them all
 
I may have misused the term 'scalar'
I meant it in the sense of, not an entity
 
my point is that scalar is irrelevant here
@TomW Yep, you misused it
 
7:30 PM
 
@LifeH2O yet you can create areas, each area can have its own controler/view/model folder structure
 
@TomW Oh. That explains a lot.
 
OK, can you lazy load properties that are neither entities or scalars?
 
Urgent Help Needed: How do I do logging in unit tests, in a TFS build server environment? pls send teh codez sirs
 
@mikeTheLiar you are the one who is the sorta winforms guy right? lol
 
7:33 PM
@tweray I'll read about areas. Thanks
 
@KendallFrey i.. uhh...
 
As long as it's about TFS, GTFO
 
Why does this question persist in remaining unanswered, not by this chat room, but by Google?
 
TFS seems okay to me? in the limited way I use it
 
@tweray I have a job and get paid to do stuff; help me do stuff and get paid.
 
7:34 PM
@Michael yeah, as unfortunate as that is
 
@Michael TFS is okay at best
 
anyways, my wild guess it that tfs is possibly using network service or local service identity while running unit test, so it doesn't have access to event log or local file system
 
It is using network service
 
5
Q: Where does TFS store UNIT test results?

IanI am running: VS 2012 Latest version of TFS A separate build agent on a dedicated VM My tests are gated on build and unit tests. On my build box I have found the following folder: C:\Builds\4\SolutionName\SolutionName\TestResults, but sadly it is empty. I would like to find and parse the test...

?
 
where are you trying to log into?
 
7:36 PM
Event log and local file system aren't accessible without logging in to the build server though
 
@mikeTheLiar So I found a way to create a special image column in a DGV that I put a certain color image in per row depending on some property in the row.... Now that we are filling the DGV with 3000 records it kills the DGV lol. is there a way to add color per row without killing a DGV?
 
Which I'd like to avoid
 
In every TFS installation I've seen (two), the test logs are available in the build report
or whatever it's called
TFS' UI is kind of a maze
 
But can I as a programmer log to those logs?
 
Console.Write
IIRC
 
7:37 PM
@Michael you're using an image? Like a jpg or some such?
 
@KendallFrey was that a serious question?
 
@TomW I can see stdout from test runs, but not the entire testing process in general
@Codeman Yes
 
@mikeTheLiar Yeah. just a little colored circle image (.jpg or .png). I suppose it doesnt have to be an image, maybe just set the background color of the cell.. but you think its the fact that its an image that screws it up?
 
@Codeman you are literally the guy to ask, so shape up
 
user47589
only serious questions allowed in here, please
 
7:39 PM
@KendallFrey ask it again?
 
@Michael It's at least suspicious. I would try with just the background color and see where that gets you
 
I'm not sure what you mean
 
@Codeman Which one?
 
If it really has to be a circle you could just draw one yourself, that wouldn't be too hard
 
@mikeTheLiar will do.. i will report back momentarily
 
7:39 PM
the logging thing. what kind of logging do you want to do?
and what are you looking to get out of it?
EventLog doesn't work for you?
 
Guys so I am selecting stuff from linq query, something like this:
var viewModel = query.ToList().Select(x => new SomeSchoolModel
{


SchoolName = x.SchoolName
SchoolId = x.SchoolId
SchoolStatus = x.Satus.StatusId
.
.
.
.
}
So suppose I am assinging a lot of values
and i am getting a null exception when assingnign
how can i find out what is causing the null exception
 
because x.Status is null
 
since in this select statment i am doing a lot of assingng and stuff
 
@Codeman We want to examine the state (aka do logging) during a test run on a TFS build. Importantly, this should work outside of tests, in setup and cleanup code (since that's where most of our time is spent anyway)
 
use x.Status?.StatusId
 
7:41 PM
@Codeman You mean Windows Event Log?
 
@KendallFrey nah, System.Diagnostics
you can choose what output to pipe it to
that's why I asked where you want to read it
 
Speaking of logging
Why is ETW so fucking complicated
 
ETW?
 
Event Tracing for Windows
 
no idea
 
7:43 PM
And more specifically, how do you get it to write to the Application event log?
 
@Codeman Ideally, in the Build Results window with all other build output
 
Two experienced programmers have been banging their heads against this for days now, one of them is me
 
@TomW I don't know that you do
You could probably write a trace listener that just rewrites it to the event log
but that's non-trivial
 
@KendallFrey I've been trying to tell people to move on, don't expect things to show up in that particular log
 
@TomW EventLog.WriteEntry("Your application","Is Blowing UP!");
 
7:44 PM
@KendallFrey uhm, EventLog.WriteEntry should work, have you tried that?
 
@tweray EventLog is nothing to do with ETW
 
@Codeman What does "should work" mean? Where would I find the output?
 
in the Output window of visual studio, at least
 
@Codeman yeah, nothing to do with what I'm trying to do. That's a legacy API
 
7:45 PM
I would assume if you have an on-prem TFS server, it would show up as that
 
This is a TFS build, not a local test run
 
@Greg He does hit some points in that talk and what each one does
 
Urgh can someone just Write me an LR(1) Table out of a EBNF or BNF ? I pay 20$ xD I mean Seriously i write the program with an Example LR Table i got off a book like weeks ago and it give result alright ! now i just need a small change to the grammar and Table and i keep wasting time :| lol
 
@Pedram no
 
wat
 
7:48 PM
xD
 
20$ is 20$
 
@juanvan are you watching that video still
 
@juanvan I'm not gay... but
 
na been done was looking for other one
He talks about a Mario on Angular performance
 
user47589
i'll do it for $200.95
 
7:48 PM
no my hourly rate is $240
 
sent him a message for the link
 
@Codeman Any further thoughts on logging?
 
@Failsafe but did listen to most of it
 
Dammit i am just unlucky xD i mean seriously , the Teacher teach us almost all other Parser and how to make their Table
but he didn't Teach LR Table coz it was not enough time and it was the last lesson !
 
@KendallFrey not sure. If your output is setup correctly, EventLog.WriteEvent should output to your build log
 
user47589
7:50 PM
go talk to your teacher.
 
@Pedram maybe you should ask your teacher for help
 
it must be like 10 min work judging by the other parsers
 
@Codeman Is it silly for me to ask "which one"?
 
if u know how to write it from before that is
 
@KendallFrey which one what?
@Pedram my rate is $10000/hr with a minimum bill rate of 30 minutes
 
7:51 PM
TFS build results are very confusing :/
 
lol
yeah I have no idea what you have setup so it's tough
 
yeah true
 
there's about a billion ways to view that stuff
 
@Codeman i can't find him bro, he was coming to university only on Wednesday other times he lives another city ( 6 hour drive ) and LR was last lesson , so university is on final exams break
he don't come anymore till its due date :D
 
Ima try it, see what happens
 
7:52 PM
email him?
 
Drive to another City? Bus Trip
 
user47589
call him? surely he has his phone number on the course syllabus
 
Ask him to send over the course material on that topic he was going to teach
 
USE SOCIAL SKILLS
 
@TomW lol just read about etw api, and... lol what the heck is this thing
 
user47589
7:54 PM
@Codeman we're programmers! we dont have any!
 
> social skills
programmers
 
Geez , well no he doesn't have phone number on public , some teacher do some teacher don't ! coz stupid students tend to call for begging and asking for higher score to pass ...
 
One of those things does not mean what you think it means
 
Cough - have never met a Wifi Code i could not hack after talking to someone
 
What's my wifi password then?
 
7:54 PM
Um, I don't know how to use event logs
 
we are not at your house, I can't pick up those things
 
How do I find or create one to log to, such that it would appear in the TFS build log?
 
user47589
my wifi password is "hunter2"
 
thisisasecurenetwork_mine
 
my router login is (blank)/admin
 
7:55 PM
@Amy seriously, just 7 asterisks?
 
that is everyone I setup
 
@KendallFrey no, there's nothing you need to create, it will just log into your machine's application log
 
What do you mean
 
only thing you may need to create is just a application source
 
EventLog.WriteEntry is not static
 
My Password is "YouGotMeBro"
 
user47589
yup
 
This licensing debate on meta is a complete clusterfuck
 
user47589
what licensing debate
 
@Amy that's weird, whatever you typed showed up as asterisks for me
 
7:56 PM
@mikeTheLiar you were right about the images! :) thanks
 
@KendallFrey then you referenced the wrong thing i assume
 
@tweray I'm going to try and summarise what I think is going on
 
@Amy "do we require attribution or not?"
 
@Michael no problem, glad it works now
 
ETW is a publisher/subscriber model for events with some low-level kernel fuckery to make it really fast
device drivers can use it
Fast.
 
7:57 PM
@tweray Ooh, wrong overload, my bad
 
user47589
that link doesn't look right
 
@Amy is hunter an animal?
 
@Amy that was the wrong link, hold on
 
@TomW And that's where the good stops
 
user47589
how did you know my password contained "hunter"?!
 
7:57 PM
@mikeTheLiar so is there any way you can think to make the backcolor into a different shape? like a circle?
 
user47589
wow, -42
 
user47589
unpopular
 
EventLog uses it. At some point after ETW was introduced, the old old way that event logging worked was changed so that event logs are subscribers. EventLog.Write I guess taps into one of the system-wide publishers that it knows that the event logs subscribe to, so that everything written in there shows up in the event logs
 
@Michael I would mess around with draw ellipse: msdn.microsoft.com/en-us/library/…
 
7:59 PM
@tweray So it doesn't matter what source I use, it will all end up in the same place?
 
very Unpopular - if I find SO code that helps a project I put the link in a Comment for others to use a reference
 
But if you write your own publishers, like the framework we're using has, you can't easily make it end up in the event log because event log doesn't subscribe to those publishers
 
So just draw a circle programatically instead of setting the background color
 
Wait, so how do I know what source to use for logging?
I hate feeling like a noob
 
@mikeTheLiar i shall look at that
 
8:03 PM
@KendallFrey if you're reading anything I've said, ignore it, I'm pretty sure tweray and I are talking about two different logging aPIs
Maybe you weren't, in which case I'll shut up
 
Every time I check the news it reminds me that Alan Rickman's dead and I get sad :(
 
So many Snape Pictures on image sites :| R.I.P , it's funny how someone attention always grow so high after they died :|
 
@TomW Yeah, I know
 
user47589
he was in the first Die Hard too.
 
user47589
Hans
 
8:06 PM
@mikeTheLiar so I dont have any of those drawing methods in my System.Drawing.Graphics namespace? how do you get them there, are they not built in?
 
gah where the fuck do I log to
 
You need a Graphics instance, I think.
 
I hate my life currently
 
user47589
System.Drawing.Graphics isn't a namespace....
 
user47589
make sure you have a reference to System.Drawing
 
Sorry I meant just System.Drawing
 
@mikeTheLiar ahh you have to instantiate the graphics class to get those methods
 
Yeah. It's a little different from what you'd expect
 
8:12 PM
@mikeTheLiar what did MS do to those methods to make them hidden like that?
secret c# magic im guessing
 
=/ the host I use is under attack
Site has been down for 10 hours now
 
attack back
 
I am not sure they know where the origin is.
 
Are you guilty of anything if you openly pay for cloud services to DDoS?
"Yeah, it was me. I'm rich."
 
@Michael I think it has something to do with lower-level aspects of drawing graphics on the screen. Java's graphic library is set up in a similar way IIRC
Ugh, I'm stuck til I can talk to one of the stakeholders and she's been on the phone for like an hour and a half now
 
8:23 PM
VS is so stupid, wont let me delete the comments when in debug mode.
 
@KendallFrey too many.?
int rgb = (red & 0xE0) >> 4 | (green & 0xE0) >> 2 | (blue & 0xC0) >> 0;
so like this?
 
Now you're shifting red by not enough
also >> 0 is redundant
 
@mikeTheLiar okay last issue im having with the datagridview colors is that The rows have an alternating rows defaultstyle .. and I think that constantly overrides the dataGridView_Cases.Rows[i].Cells[0].Style.BackColor that I set (unless I make the last call).

Do you know of a way to override or remove the default cell style of the specific cells im trying to color
@Obviously you can pause and the delete the comments, and the continue again
 
user47589
that's only if Edit and Continue is enabled.
 
@Michael do you need alternating row style? Also IIRC you should be able to just remove the default style in the property editor
 
8:37 PM
@mikeTheLiar Yes, I need the alternating rows, not my decision.
 
brb stakeholder's finally available
 
mmm, stake
 
@mikeTheLiar I dont think there is a way around this. the only way I can make it work is setting it in the DataBindingComplete() event. Unfortunately this fires multiple times.
steak
 
user47589
mmmm steak
 
@Michael thatsthejoke.jpg
 
8:41 PM
@TomW Ithoughtthatmightbethejokebutdecidedtotypesteakcorrectlyanywaysjustbecause.png
 
user47589
8:54 PM
Ride the Walrus!
 
Ive never thought futurama was funny whatsoever, but my girlfriend, imgur, and most of the interwebs seems to feel otherwise
 
what a stupid proposal
 
user47589
holy shit
 
@Failsafe that cant happen
 
8:56 PM
so fuck NY electronics retailers, basically
 
user47589
why not
 
@Michael you underestimate the power of stupidity
 
well... nvm it def can, there are plenty of stupid things that make no sense that happen
 
I have a smidgen of acceptance for the intent, just a smidgen. But it is utterly utterly pointless and destructive given that the internet exists
 
It just makes you ask the question like "okay... what phone will the authors of the bill use"? cant use iphones, cant use android... fliphones it is
 
8:58 PM
It does absolutely nothing except to make it impossible for a certain segment of business in NY to sell phones
 
user47589
i bet the purpose of that bill isn't to get it passed, but its a shakedown of companies. someone looking for kickbacks.
 
more like the governor is a fucking retard
 
have you guys followed the banning of those hoverboard things?
 
@Michael it only says you can't sell them. It says nothing about owning or using them. Buying any electronics on the internet is trivial
 
excuse my french
im outie
 
8:59 PM
So what happens when they make them safer, with batteries that dont explode.. will they still be banned?
 

« first day (1916 days earlier)      last day (3036 days later) »