« first day (1602 days earlier)      last day (3339 days later) » 

3:06 PM
@KendallFrey Question, in JavaScript do you know what the:

for(var i = 0; i < container.length; i++) {
     promo += container[i] << 0;
}
What exactly is the <<?
 
guessing a bit shift
 
@Greg it's indeed a bitshift
shifting by zero effectively casts the value to an int
any bitwise math only works on integers
 
Oh, that is clever. So if I have a decimal that won't work. I'll need to parseFloat?
 
so if you use ~,&,|,<<,>> et al it casts to an int
@Greg define "work"
 
Trying to take an array of decimals and get the sum.
 
3:09 PM
it will discard anything after the decimal place
if that's not what you want...
 
Ah, I can't do that. I need the decimal places.
 
then remove the << 0
I wonder why it was there in the first place
 
@KendallFrey Not sure, trying to figure it out.
 
Sunday comes afterwards
 
...?
@KendallFrey You ever get your question solved?
 
3:22 PM
the process one?
not really
 
Lol
in Discussion between Sippy and Whistler, 1 min ago, by Sippy
Okay. If you could accept and upvote my answer I'd appreciate that :)
in Discussion between Sippy and Whistler, 31 secs ago, by Whistler
I will defectively do it, thank you very much
pls do it normally.
 
huhhhhh
 
lmao
 
Happy ++THURSDAY;!!!!
5
 
-4
Q: 50000 checkboxes in aspx/html too heavy -any alternative?

user2040600Requirement is to have 50000 checkboxes in an aspx page . Currently I have implemented it in aspx , the page is slow and the selection is very slow, at times the application hangs. The load is too much. Currently the page size is 10 mb I need to reduce that too. I am looking for an alternative ...

Best thing
Ever.
 
3:32 PM
@Steve We had a good question last night.
 
@Greg yeah that helped me come to terms with it a lot better
 
@Steve Yeah, I was right which was helpful. Except the extra layers, patterns, and techniques were what I didn't mention to simplify a bit.
 
@Sippy ... 50.000 ... who in their right mind ... why ...
 
@Greg ehhh?
 
@RoelvanUden It's okay Roel. He's a devloper. Trust him.
 
3:34 PM
maybe the way we were describing it was different, the way you described it wasn't right
 
Anyone played with ASP.NET Identity and error message localization? I found stackoverflow.com/questions/19961648/… but as per my comment there it doesn't work. Anyone has an idea what am I missing? Many thanks
 
i dont even remember, it doesn't matter i guess
 
@Steve It was, except I didn't include the mediation between domain and data.
 
@Sippy Trust me bro, I'm an engineer yo.
 
@RoelvanUden Are you sure cos it sounds like you might be a rapper
 
3:36 PM
(You infected me your stupid bro and yo)
 
Roflmao
 
domains ----> mvc <----- views
dal ---------->

so mvc has references to domains, views, and dal
 
broyo is frozen yoghurt for bros
 
i thought, for some reason, you said your domains should reference mvc
 
...
 
3:37 PM
but maybe i just misunderstood you :p
 
My brother just sent me 19 pictures of a zebra.
 
Anyone? :)
 
I think he's bored.
 
you into zebras, pervert?
 
He's in Kenya
 
3:37 PM
@Steve I said: MVC (Controller) --> Domain <-- Data Access Layer
 
hey, thats neat
 
Lol
He's on some training exercise or something
Basically has to drive a landrover around
 
@Greg so what does that mean? I think we have different meanings for the arrows
@Sippy is he in the military?
 
yeah
 
Your Controller will call the Domain, passing a rule. The Domain takes the rule, then would pass to the Data Access Layer to actually perform said action. Obviously a Service Layer or some other item exist in between to handle said communication.
 
3:39 PM
what branch?
 
He's technically a signaller
 
@Sippy send him 19 pictures of llamas and a duck
 
@Greg your domain models shouldn't know what DAL you're using, or care
 
But that's only cos he cheated on the test and got a really high score hahaha
noob
 
if thats what you're suggesting
 
3:41 PM
@Steve u tell em steve!
 
we might be saying the same thing, just a communication problem, i'm not sure
 
Let me rephrase this way.
MVC References your Domain
Domain References nothing.
Data References your Domain
 
okay yeah, we're on the same page :p
 
@Steve Okay, haha.
Both are aware of your Domain but it is clueless about both.
 
yup
 
3:42 PM
Cause it is supposed to only contain your business logic.
 
Why shouldn't domain models be able to access the DAL? :/
 
0
A: Passing DataTable from controller to PartialView

SippyYou will probably need to use AJAX for this. You can bind the AJAX request below to anything you like. It sounds like you may need to bind it to your onload event and a refresh button click event. AJAX example using JQuery $.post(): $.post('@Url.Content("~/Graph/_GetDailyOutput")', function( da...

Any suggestions to improve?
 
@RoelvanUden there are a few different ways to implement it, observer pattern, event handlers, passing domain models into the repos and having them extract the data, are you saying that having a reference to your DAL in your domains is another option?
 
I learned afterwards that he wants to update the partial every time because he is selecting a new row
But we'll uh .. let that one slide
 
@RoelvanUden From my understanding in certain circumstances, it can.
 
3:45 PM
see, thats why this shit is confusing, everybody has a different opinion
 
@RoelvanUden Wouldn't that tightly couple your Domain to your Data Access Layer?
 
^ that's my view on it, and then your domain wouldn't be re-usable
but then, how often do you re-use domains? (legit question, I've never worked with it before)
 
@Steve My controllers access the DAL and get entities. The entities themselves implement validation and some of them have to check other entities to make sure they are not in conflict (imagine scheduling work, you can't overlap multiple work items for one person). To do this, the entities themselves access the DAL to check if they are going to be in conflict.
The entities ask the DI container for the DAL (instance) they belong to :-P
 
@RoelvanUden - I do all of that pretty much the same way too, except I created a Unit of Work class for when too many entities need to communicate with each other. And I do not use a DI framework.
@Steve - You pinged me in the middle of the night last night. Yes.
 
@TravisJ Mine work on top of a UoW context too :-)
 
3:48 PM
fuck this i'm going to the bar
@TravisJ i pinged everybody that i thought was smart enough to answer, because i was tired of being confused as shit
 
So, hm.
 
@Steve get me a drink yo
 
Sorry, I would have answered but I only saw it on my tablet and didn't want to type :)
 
Am I going about this wrong then?
 
no worries :)
@Greg no, i dont think so
 
3:49 PM
@Greg - My DAL accepts types to use against a generic context.
 
Now I'm confused :(
 
^ In an entity with IValidatableObject
 
I think EF is throwing a wrench in this discussion because for simple apps, that is your models
but if i'm wrong, feel free to scream and throw tomatoes at me
 
The problem is that if we tell you to implement EF in a simple approach, I fear you will take the same approach if you need to implement it in a complex situation, and then you will have to do a ton of refactoring :(
 
Why is there always a discussion of MVC in here :(
 
3:51 PM
Is that not a valid concern?
@MoonOwlPrince - Because MVC is the future.
 
yup thats valid
i'd love to learn the right way to do it
does anybody have a good example on github that they can link to?
 
@Steve There are numerous right ways tho
 
So, I signed up for a free trial of Pluralsight. "10 day trial". And after registration you see "up to 200 minutes". Damnit
 
@Steve What about charlie's full stack ef example?
 
@MoonOwlPrince It's the best architecture for the Web; and the Web is the future.
 
3:52 PM
@Steve - Problem with that though, is that it kind of requires you to learn by starting at step 2. And you don't get an idea of what step 1 was until step 3. So the learning curve at entry is steep.
 
Yeah, I would love to learn the proper way as well.
 
@Steve - Have you seen the nerd dinner examples (srs)?
 
i have not
 
@BenjaminDiele Lol, I'm tempted to buy a pluralsight sub
 
They are, in a word, epic.
 
3:52 PM
I see... But I was told by my lecturer that Holograms have made the web the past and they are now the present and the future
 
It is this group of people that make open source learning projects in mvc.
 
@Sippy It be expensive yo
 
@MoonOwlPrince lol what
 
I thought I could do some studying with the trial, but no
 
They make two projects. A beginners one, and an advanced one.
 
3:53 PM
@Steve drugs
 
The beginning one is still built to best practice which is nice.
 
And he is a MS fan so he started talking about HoloLens
 
@TravisJ let me google it
 
They are both on codeplex
lmgtfy :P
 
@MoonOwlPrince Wtf are .. what?
 
3:53 PM
lol
 
@Steve - and this is the expert one prodinner.codeplex.com
 
Is your lecturer high all the time or just when he lectures?
 
@MoonOwlPrince the fuck does AR have to do with the internet
 
@Steve - It can be really helpful to look at their approach, but also, keep this in mind: joelonsoftware.com/articles/fog0000000018.html
 
see, when i search google for this, it seems like every link contradicts each other, and it's just like.... wtf
@KendallFrey didn't i say this was google?
with better results
 
3:55 PM
@Steve - Yes, that is because the approach has evolved which each version of MVC.
@Steve - So make sure you take the date in context with the material you read. And also avoid any blog from someone not associated with a major book or MSDN.
Scott Hanselman and Phil Haack are two well known authors for MVC architecture.
 
We were just talking during one of my free periods. AR brings apps to a new dimension of life and a different way of solving problems. Imagine a world of quantum computers supported AR
 
@MoonOwlPrince Considering we're no where near that realisation, your lecturer is high.
 
@MoonOwlPrince the fuck does AR have to do with QM
 
Also they are supporting technologies
 
@MoonOwlPrince - Don't get too far ahead, or you will miss out :)
 
3:58 PM
your lecturer must be high on bosons
 
@MoonOwlPrince I think Holo will revolutionize how we interact, too. If it does as advertized, it can change everything. I don't see the web technologies fading out though, I'd see them integrated into a holographic experience instead.
 
He is now 71 but he wishes he was a kid
 
I'm high on your mom's bosons
 
I'm high on your mom's bosoms
 
THAT WAS THE JOKE KINDEL
 
3:58 PM
YOU DIDN'T MAKE IT SIPY
 
Holo > Glass
 
Holo will be great
 
yolo
 
It isn't going to replace the web.
It'll augment it sure
 
I wish it did
 
3:59 PM
you only Holo once
 
@TravisJ Yeah, but in some examples they just use EF and your left filling in the pieces.
 
The web as we know it is hard to like
 
@Greg - Who is they?
 
@MoonOwlPrince ...?
 
Web sockets were supposed to replace HTTP. CSS was supposed to be gone for good
 
4:00 PM
@MoonOwlPrince - Sigh... do you even web bro
 
^
 
@MoonOwlPrince What did you smoke?
 
This thing in a bong I was given by a girl who said I can't hate something until I have tried it
 
@TravisJ Several examples.
 
Web sockets augment the web with bi-directional real-time communication (over the HTTP protocol, no less). It was never intended to "replace" HTTP. It augments it, to do more fun stuff.
 
4:01 PM
@MoonOwlPrince where do you get this stuff
 
Removing CSS is just.. what?
 
@Greg - I mean, they as in the dinner code from codeplex?
 
@TravisJ Don't they implement EF in that example?
 
It would have been nice if CSS + HTML were like XAML
 
4:02 PM
@MoonOwlPrince It can be.
Do you even web bro :P
 
I don't web. I Windows
 
@Greg - Yeah, I guess I didn't understand why that was a problem?
 
Oh. Old skool.
 
I am now a follower of the religion of MS
They have the future of everything CS and SW for the next millenium
 
@TravisJ If you aren't familiar with EF, then it adds extra complexity.
@TravisJ The old school approach, would honestly be better. As it contains the nuts and bolts, without needing to understand EF.
 
4:04 PM
@MoonOwlPrince The MS 'religion' doesn't exclude the web. Hell, they do much for it.
 
Windows only? And you are gonna diss teh interwebs progs? d00d.. will h8x0r fḁ̖̳̙̠ͅces!!
 
No I love interweb progs because they make my life easier
I don't even use Office offline anymore.
 
@Greg - The point was to integrate EF into there though. If you are not using EF, then I agree that as demo code it is not as useful.
 
I don't even store anything on my hard drive
 
@TravisJ Trying to do it without EF, really understand it.
 
4:06 PM
@Greg - If you want to know what EF does, then all you need to do is step in.
 
or read an EF book, they aren't long :p
 
@Steve - The EF code is though. If you step through it, you will see where the complexity is.
<whispers> (everywhere)
 
@TravisJ Sorry, trying to solve this painful JavaScript issue.
 
i think most of it isn't too bad, t4 to generate models, the edm to list db fields, poco fields, and the maps between the two, the only complex thing in my view would be how EF actually generates the sql for it
everything else is basic c# created with some t4, or am i mistaken?
 
@Steve - EF doesn't generate the SQL! :)
 
4:16 PM
ahhhh
see, that must be where the complexity comes in :p
 
@Steve - providerName="System.Data.SqlClient"
 
i guess i just assumed EF passed sql queries to the sql client, which executed it against the db
bad assumption apparently
but it makes sense that my assumption was wrong, because how would EF know which dbms the sql was for
 
@Steve - Correct, it has no clue. All it does is built the map
@Steve - And the the sql provider uses the map to translate the objects into sql!
 
ahhhh that makes sense
 
Okay time to code now but I need a beer for that. Later gents. And remember guys we are under the dominion of Microsoft
 
4:22 PM
@Steve - Which is why other providers aside from Microsoft's provide such junk sql (for example, the mysql provider providerName="MySql.Data.MySqlClient" ).
 
@TravisJ People always freak me out.
 
@Greg - Maybe you should find different people :P
 
@ton.yeung i think i'm going to finish it, but its hard to grok it, only through writing, i wish i had a larger project to implement it on
 
@TravisJ They always say EF sucks, use this, or use that.
@TravisJ Then you end up with variation, which confused you.
 
@TravisJ PostgreSQL and MySQL providers are pretty decent now AFAIK
 
4:29 PM
do you have a link to which ones he recommends?
good song
 
grrr wtf why are 2 events missing
 
@RoelvanUden - Have you actually used them though? I could rant for hours on not only the MySQL provider but its overall integration with the new async features. Painful parts: async, projections, transactions, table locks.
@Greg - Some people dislike EF because they do not use normalized databases. In that case, there is a lot of wasted overhead. But when you do use a normalized database with a ton of relations, EF makes more and more sense.
@RoelvanUden - I submitted a bug to Oracle for their MySQL provider. It only took them 14 months to fix.
 
suddenly nothing is showing up in my winforms designer for one of my usercontrols (none of the controls, layouts etc) it just looks like a blank usercontrol... anyone got any idea what i could have done to make that happen? no errors anywhere
 
@TravisJ I may try and seek some clarification as I'm going about this approach.
 
Database normalization is the process of organizing the attributes and tables of a relational database to minimize data redundancy. Normalization involves refactoring a table into smaller (and less redundant) tables but without losing information; defining foreign keys in the old table referencing the primary keys of the new ones. The objective is to isolate data so that additions, deletions, and modifications of an attribute can be made in just one table and then propagated through the rest of the database using the defined foreign keys. Edgar F. Codd, the inventor of the relational model (RM...
 
4:36 PM
"[Every] non-key [attribute] must provide a fact about the key, the whole key, and nothing but the key, so help me Codd."
I think of that then I see his name
 
@TravisJ I'm attempting to do this myself, without the fancy frameworks.
 
@Greg - I know, but I think you have worked on it solo for long enough. Now just take advantage of one of them and you will recognize patterns in what they do. You should be able to understand what is going on while using them.
 
all the code in the designer is intact but nothing is drawing
 
@Greg - You didn't start out by manually handling packets right? I mean, building a map for a sql provider is a massive undertaking.
 
@TravisJ Well, I was going to couple with Dapper. To get some benefit and do the old fashion way.
 
4:41 PM
@Greg - In my opinion, you should do what saves you the most time to create and worry about the milliseconds later.
 
@TravisJ I'm trying to learn.
 
I know, but in my opinion you are spending too much time on nuance and not enough time on the bigger picture. I think you will progress faster at this point if you start using some of the main frameworks so you can understand how they work and by association learn how you would implement one.
 
Perhaps, I'll have to give that a try.
 
4:58 PM
taco bell, subway, culvers
@ton.yeung
 
Hm, okay.
 
i can't decide what i want
 
subway
 
okay
sounds good
bye
 
I almost always get subway when I need to choose fast food
 
5:05 PM
@ton.yeung I've got the Blue Book. It's really hard going.
I'm gonna make sure to watch that talk
You linked to an Eric Evans talk
Oh.
It's an article about a talk.
aha, but it is online at infoq
> Teams usually stop when they get a first useful model that does the job. Evans said that with this, “you are leaving so many opportunities on the table”
GREAT way to phrase a proposal to business weasels
We're gonna get ripped off by not doing this. Surely you don't want to get ripped off?
 
hm, why isn't JavaScript adding these decimal places.
 
can anyone give me a hand trying to sort out my designer issue?
 
I've got this array: ["10.00", "072.71"]
    for (var i = 0; i < container.length; i++) {
        amount = parseFloat(amount).toFixed(2) + parseFloat(container[i]).toFixed(2);
    }
But it always just dies. Even if I do:
    for (var i = 0; i < container.length; i++) {
        amount += parseFloat(container[i]).toFixed(2);
    }
Am I doing something wrong?
 
it dies how so?
 
@mbdavis amount simply becomes 10.00072.71
 
5:14 PM
is toFixed returning a string?
 
@ton.yeung Yeah. Weird-
 
and is amount a string?
@ton.yeung the array is container i assume
 
Your both correct, toFixed returns string.
 
@ton.yeung yeah hence why he's using parsefloat
@Greg use Math.Round(parseFloat(amount),2)
 
@mbdavis The issue though, is I'm doing it to soon. I need to wait until after when I use the value. But yeah, I fixed it.
 
5:19 PM
yeahhhhh
subway
 
their cookies in general are good
 
i likes theirs chocolates chips ones and oatmeals
 
5:37 PM
fucking designer
 
Hello guys
 
"the variable is either undeclared or unassigned"
 
Does someone if there is any kind of Hosting that doesn't limit you in the quantity of files to store?
that has ASP.NET MVC support
 
ok wow i commented out InitialiseComponent() hahahaha
 
@Rockster - You always pay for HD gigs.
 
5:40 PM
@mbdavis lol fail
 
lol
 
So... do you guys ever serialize your .Net models directly to JSON? How do you deal with the differing naming conventions in the javascript? Id vs. id. Writing model.Id in javascript just looks weird.
 
I use iD, so everything is consistently inconsistent
 
brilliant.
 
@SpencerRuport - I use .Id.
 
5:48 PM
Does the trailing period do something or is that a typo?
 
@SpencerRuport - It was the end of my sentence :P
 
Oh :)
 
@SpencerRuport there are some libraries that allow annotations on properties, so you can say what you want them to serialize into, i'm still noobish so i dont know much about it other than i've seen it, and it works
 
Yeah it looks like there's some global setting you can change in WebAPI but I don't want to override everybody else's stuff.
It'd be nice if there were an attribute I could use on a controller method.
Oh well.
 
"Government documents released in 2014 put Putin's annual salary at nearly 3.7 million rubles -- worth about $61,000 today thanks to soaring inflation. "
you're telling me putin only makes 61k / year? doubtful
 
5:54 PM
he gets paid in other "currencies"
 
What do you need money for when everything is free for you? :P
 
right
 
@Steve - He falsifies his taxes.
Putin is actually (not kidding) the wealthiest person in the world.
He personally owns a large stake in most of the Russian energy companies, including Gazprom.
 
I find it hard to believe there's nobody willing and able to assassinate him
 
^
 
6:07 PM
I guess anyone who might gets bumped off first
 
where is bond when you need him
 
@Steve you know some sneaky sneaky explodey explodey, right?
 
lol
 
Russia has a history of assassinating the opposition. The leader never gets assassinated.
 
DEAR KGB I AM NOT PLOTTING ANYTHING< PLEASE LEAVE ME AND MY FAMILY ALONE
so many people on this planet deserve to be killed, only if there were enough good people to kill them
 
6:10 PM
I don't disagree, but...
 
thats what we need
 
Beer required but shop is far
please help
 
what the fraaaaak
is my code doing
 
Smash all the problems with the angular directive hammer!
 
Why 3rd party tools for developers are sooo expensive? $619 wtf?

http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/?utm_source=google&utm_medium=cpc&utm_content=brand&utm_campaign=ANTSMemoryProfiler&gclid=CjwKEAiAveWnBRCzjqf4zpuUkGYSJABcoZbHPabIWsP1W-_9RAf0pvj8s6o3FKyDeFl7FrPB_35MQRoCRtXw_wcB
instead of giving 14 days of trial they should give usage limit then (like pay as you go), I am reading a book and wanna follow up with examples with this tool. I need to squeeze up all my tests and stuffs in 14 days instead of usage period.
to see if this tool is really working as I expected.
 
6:38 PM
ctrl shift t needs to work in VS
 
@TomW hacker mode engaged
 
implementing a script exploit through printing a contrived compiler warning would be pretty 1337
 
Shameless self promotion coming through! github.com/Deathspike/SharpEventLoop now with more epicness, check it out :P
 
6:55 PM
@RoelvanUden is this an abstraction over TPL?
 
looks like <> are escaped, just not &entities;
hmmm
 
this day
slow
this day !fast
this day !end
 
@Steve lookin forward to the weekend
 
@Teomanshipahi No. It's an event loop that schedules TPL tasks to always run their continuations on the pumping thread. Single-threaded concurrent tasks. :-P
 
fun fun fun fun
 
6:56 PM
@ton.yeung Because I don't get it.
 
@RoelvanUden Why not just use a DispatcherSynchronizationContext?
 
Well I've quadruple nested a directive. Hm.
But my controller is only 10 lines now!
 
it bugs me that in english, "this is how you end a sentence with a quote."
"This is how it should be, if the people who made this decision were sober".
 
Yeah, but "What about this?".
 
makes sense to me
i like it
if the quote was a question, why not have the question mark in the quote
 
6:59 PM
programmers think alike ;)
 

« first day (1602 days earlier)      last day (3339 days later) »