« first day (2022 days earlier)      last day (2929 days later) » 

8:00 PM
prog metal*
 
i got custom authorize attribute all ready and beautiful...where it provides the admin tools to be able to dynamically assign permissions to a user. now trying to think of the best solution to hide and show links (created with Url.Action) per user's permissions as well instead of hardcoding all the roles...short of generating those links in the controller and sending them in viewbag or something, is there something better that I could look at?
 
@Failsafe if you're playing prog rock, PRS or Pawar are fine
 
@Codeman yea that's what im thinking
brb gotta drive home
 
@NicolásCarlo could add a Database table with what tabs come with being Admin or user
or have a table with the available tabs, and assign the tables a user should see {some,array,of,tabs|
 
Folks, I am wracking my brain to figure this one out. I have a form in MVC (5.2 if it makes any difference) with a ViewModel and child ViewModel. The child viewModel has a boolean on it that I am representing with the Html.CheckboxFor helper. It always evaluates to false on the server.
Looking in debug tools I can see that the hidden field is supplying false, and the checkbox field is supplying the actual value (true in my case).
But it always evaluates to false.
 
8:03 PM
@juanvan by tabs you mean the links in the menu? the permissions are already in the db so pulling them won't be hard. i just can't think of a clean way to do this. a lot of what i'm thinking ends up in the layout.cshtml and makes it look horrendous
 
@TomW Ibanez are great if you consider your guitar to be part of the percussion section
 
Interestingly in the Immediate window, Request["TestResults.DonorNotified"] returns "true" and viewModel.TestResults.DonorNotified returns false...
 
@NicolásCarlo would have some collection of tabs that is displayed for each user logged in
 
@TravisJ how do you handle being incredibly annoyed when execs come in several months after initial design steps (the appropriate time for feedback) and tell you to make changes in an already baked product you've worked hard on?
 
@juanvan i see where you're going with this.
let me think down this path, hadnt thought of it myself
 
8:06 PM
that is how I thought about doing it
there is also the Strange way, where you return 2 lists
one is all them with what user types could get them
 
@ReedCopsey @RyanTernier same question
 
@Codeman as long as I'm getting paid more to re-do it I just wonder how anything ever gets done and move along.
 
then match them from the Users table and what the user is Admin/User
 
@CuddleBunny it's more like... I worked long hours to do it the way they told me to do it... then they changed how they wanted me to do it
 
@juanvan its a pretty complex setup with a lot more types but i think your solution will work in this case
 
8:08 PM
makes me want to put in less effort to ship something on time next time
 
@Codeman have definitely been there. It sucks but realistically there are many more projects than execs so they can't provide timely opinions all the time. Though it seems they can reliably provide the most optimally untimely opinions...
 
@Codeman That's the nature of software development
requirements do change, however you need to have a process in place to manage those changes
 
@RyanTernier I realize requirements change, but I specifically worked extra hard to get this thing out on time because that's what they asked for
 
@Codeman sounds like every project i've worked on so far
 
I setup processes for my team, and run short packets of work. I ensure requirements are signed off at the start, and if things change, that people understand and can expect that things will take longer.
 
8:10 PM
it just pisses me off
 
@Codeman I know, and it sucks :( Express your frustration with your boss, AND at the same time, give him some ideas on how to fix it
 
they could have headed this off proactively
 
It's ok to get angry
 
I did that
 
But, never just get angry. Find a way to solve it
 
8:10 PM
just not okay to punch people...especially your PMs
 
I said "this needs to be caught in the design step next time"
 
Unless you're in a Union. then punch away (only once) and you'll be safe
 
A former software team I was on charged the uppers when they made changes like that. Especially in the middle of a sprint.
 
"if our VP is going to be the one signing off, he should be signing off on the designs, too"
 
It was awesome.
 
8:11 PM
@Codeman It does, and your manager will say "but being an agil team you should be able to handle this change".
 
!!urban charged the uppers
 
@TomW No definition found for charged the uppers
 
@Codeman I agree, so tell the VP that
VP's like charts. give him the following...
 
I'm telling my manager that
 
8:11 PM
it is even better when I'm the one who caught it in the design phase and tried to get something changed but got blocked and then months later it ends up that way anyways...
 
@RyanTernier we can handle it, but that doesn't mean it's free
 
I said "if our group managers and VP are going to be signing off on the final product, they should sign off on the design, as well"
 
user47589
meeting concluded!
 
@Amy since I don't think I've seen you comment for about five hours, I just need to ask this: Are you OK?
 
8:13 PM
@RyanTernier I can handle the change. Doesn't mean it doesn't piss me off that I worked long hours for a couple weeks to get it out the door to make my boss happy
 
user47589
@TomW I am operating within safety tolerances.
 
only for them to say "actually we changed our minds, can you make this change that completely compromises the design of what you have been working on for months?"
 
@Codeman - Are they engineers?
 
@TravisJ my bosses? yes
they understand it takes extra time and I'm being given that extra time
 
@Codeman - Did you tell them the change would compromise the design?
 
8:15 PM
I'm upset because I could have written it right the first time
I told my manager
 
Do you have it in writing?
 
yes
in an IM
basically I have a bunch of web components. Put in a lot of work to make sure they're decoupled. Now they want one web component to interact with the others in a way that was not at all baked into the design
 
Thing is, it wouldn't be unreasonable for a manager to just hear "waa waa feelings" and pay it no heed
 
so there was no fucking point in writing these things as components in the first place
 
It happens, man up
 
8:16 PM
and now it's going to be a bunch of fucking spaghetti code
 
Well, first off, I think at the moment there is nothing you can do and just accept the change. Secondly, you could at least try to vie for more control in the future by showing them the correspondence and asking what type of conversations you can have if there are design concerns.
 
It is all spaghetti code, my friend.
 
@CodeWarrior I'm trying to make it better, not make it worse
I don't need more control, I just want them to not change their mind when we're ready to fucking ship the product
it's a purely reactive process
 
Every green field project I have ever found myself on eventually got compromised due to changes to this and changes to that and changes to base functionality to the application.
 
8:18 PM
She may not look like much
But shes got it where it counts
 
@Codeman - PRP? Yeah that is common in business
 
@Codeman I hear you. It has been the same at MOST of the places I have been.
Only once, when I was given sole command of the application to develop it as I saw fit (and I had the input and output of the OLD version to go by)...
only then did it not turn out to be a mess through a constant stream of changes.
Anyone ever encountered a situation where ASP.NET MVC absolutely refuses to accept true for a boolean (represented as a chackbox on a form)?
This has been killing my progress today.
 
the checkbox need to accept true or True
 
aren't checkboxes like, checked|unchecked|meh?
rather than true/false
 
What I mean is, on the controller action that accepts the form post, the value always evaluates to false.
 
8:27 PM
value=true or false checks and unchecks
 
@TravisJ yeah I suppose
the problem is we never got a UX design
we got mockups
but no notes on interactions
I said "next time let's spend more time on UX and less on pixel perfects"
pixel perfect is way easier to fix late in the game than UX
 
@CodeWarrior when you post it over to the controller is always false?
 
@Codeman - Yeah UX is huge
 
mockups are not UX
they're mockups
 
usually of UX
 
8:29 PM
In the post from the client, though I see the value from the checkbox (and the value from the generated hidden field) as:
TestResults.DonorNotified = true,
TestResults.DonorNotified = false
 
@Codeman - Also, I think this must just me be, but I fully don't understand the whole differentiate mobile/web with regards to fixed widths.
 
no, UX is a bullshit term that means everything the user sees
I had a UI design, not a UX design
 
@juanvan That is correct. I am sending a true value and it is always false on the server.
 
UX design includes what happens when users click buttons, how navigation works, etc
@TravisJ we use a column model, like bootstrap
 
@Codeman - I just make one design with percentages and very large click/touch areas.
The buttons do look a little large on a desktop, but that just means it is easier to click on them in my opinion.
I am sick of tiny buttons and 10px tall input elements.
 
8:35 PM
hmm
 
input {
    min-width: 300px;
    height: 2em;
    border: 1px solid #CCC;
    font-size: 18px;
}
Bigger is better :D
 
as long as it isn't goofy big like bootstrap components
 
re: a fix
 
oh, it's goofy big
 
I told my boss that I'd be happy to help with UX design in the future and that i had experience in mockup tools like Balsamiq
so... hopefully turning a negative into a positive
 
8:37 PM
I found that having large hit boxes for input and nav reduced the time it took my data entry people to make edits. Never looked back.
 
@TravisJ for desktop especially, make stuff big and stupid
 
@Codeman - Yup.
 
big is okay, really big is okay, but bootstrap components just look funny.
 
also using label for is awesome
@cuddle bootstrap is designed to be overridden :)
 
Especially because the big and stupid looking stuff happens to also look great on mobile, so it is 1 design to rule them all
 
8:38 PM
@TravisJ I generally keep the layout the same for desktop and mobile except for switching the number of columns
sometimes I'll make a heading smaller or reduce padding a bit
 
I'm back
 
Rad
8:56 PM
Hi. Did any of you debug Microsoft source web related libraries. I want to find a problem when calling Configuration.Services.GetApiExplorer(). This problem is kind of explained here: shazwazza.com/post/…
Instead of Umbraco CMS I am using Dotnetnuke (DNN). I reported the problem here: github.com/domaindrivendev/Swashbuckle/issues/626 DNN does provide a solution to the problem mentioned in the first link, but I am having issue that API Explorer returns something like Cartesian product for all WebApi Controllers and their namespaces they belong to. That is explained here: drive.google.com/file/d/0B1I1nQTGClv3eEMwbzhwLUsxZ1k/…
 
They say if you turn on ObjectTrackingEnabled when using linq, do you guys do it??
 
user47589
do we do what?
 
i was wondering why R# was giving up on refactorings in a certain method
then i started scrolling down
and kept scrolling down
and then further
and then realized the method was 500 lines long
._.
 
user47589
big method
 
9:09 PM
I mean do you guys turn this on
ObjectTrackingEnabled
 
user47589
its enabled by default, @Obviously
 
user47589
if its false the context is readonly, so yeah, i assume most or all of us have it on
 
user47589
actually, i have it enabled in one dbcontext, and disabled in two other dbcontexts, in the same project.
 
oh my gawd
4 days
 
user47589
whats in 4 days
 
9:12 PM
tuesday
...
 
user47589
amazing
 
ikr
nah, my new car is getting dropped off
can't
stop
 
HAMMERTIME!
 
watching
youtube
videos
 
user47589
keep going
 
user47589
9:13 PM
watch all the videos
 
i watched ALL of them, not even ones related to my car, but literally, every single youtube video
 
user47589
every couple of hours switch to porn for 5 minutes, then switch back to youtube, that way you don't get bored.
 
you've just described my life for the past 7 years
8
 
user47589
lol
 
:D
i finally got amy to laugh, i gotta write this down in my calendar
 
user47589
9:16 PM
it's a day to remember.
 
user47589
songs will be sung of this day.
 
haha
 
Qapla'!
 
@SteveG - what kinda car?
@TomW - qaHoy'!
(I had to google that)
 
My mentee added me on LinkedIn.... to accept or not
lol I will probably since I see them everyday
 
9:28 PM
Guys I have a linq query where I am getting all students, I am populating them in a view model. In that view model I am also getting sum of total feees paid by the student to the school


Query is something like:

Context.Students.
Select(x=>new StudentsViewModel(){
StudentId = x.StudentId,
StudentName = x.StudentName,
FeesPaidToSchool = context.Fees.Where(y=>y.StudentId = x.StudentId).Sum(s=>x.DuePaid)

});
Any Idea how to imporve the query???
 
what about it needs to be improved?
 
the way I am summing
it makes it very expensive
Very slow
 
.Where(y=>y.StudentId = x.StudentId) should be .Where(y=>y.StudentId == x.StudentId) I think
 
need to make it fast
 
is there a navigation property between student and fee?
 
9:33 PM
@CodeWarrior correct, it was a typo
 
x.Fees.Sum();
 
There is not
 
I'm not 100% sure but that might actually be hitting your DB for every student.
maybe var fees = context.Fees.ToList(); before the query
either that or it's turning that into a subquery in SQL.
doing it in-memory might be faster, might not. have to test it
 
@MichaelEdenfield that is genius
If I do it to list once
and it just queries that thing
but dunno
 
9:50 PM
Group join would be preferable I would think
 
@TravisJ loaded grand cherokee :O i've only ever owned POS cars, so this is exciting
 
context.Students.GroupJoin(context.Fees, s=>s.StudentId, f=>f.StudentId, (s, fs)=> new ViewModel(things))
Or something like that
 
@SteveG Be sure to check out jeepForum.com if you ever have problems. Jeeps are great, but fix it yourself. Absolutely don't take it to a dealership, and best not take it to a shop either.
 
still under warrenty
warenty
and i'm way too lazy to fix it myself, my old man has a shop i'll take it to, worse comes to worse
 
Warranty generally only covers "moving parts in the drive train" in my experience. If it is not part of the mechanical portion of the engine, transmission, drive shaft or differential, it aint gettin fixed under warranty.
Electrical stuff is particularly expensive (they love to casually throw out the idea of replacing all of the wiring on the X side of the vehicle).
"That'll be about 1200 dollars, k, thx, bye."
 
10:04 PM
howdy
Can someone pick something tasty from this menu for me? ;)
 
Man, that Tandoori sounds good right about now.
Call them up and order Murgh Makhani (butter chicken) and sound like a pro.
 
so I pronounce it muuuur mak hanny
Good though? never had it.
 
The indian speakers I have heard say it more like murg muk-nee with a very slight pause between muk and nee.
I dont know where the person who romanized the name in English got the idea to add an H in Murgh, but that is why English is the idiotic language that it is.
the Galway Tandoori Paneer Masala sounds really good too.
Paneer is a kind of cottage cheese (although it is not wet), and in this dish it is (possibly fried) cooked in a tomato-ey sauce.
 
shahi paneer/paneer masala is delicious
dunno if there's actually a difference between those two dishes
 
hmm might get it as a side
 
10:13 PM
Man. I am going to have to step away and go get something to eat. All this talk of Indian is making me hungry.
 
just ordered :) ...even though it is nearly 12pm
 
you are starving me
D:
 
nom nom
nom
 
@codeman that's pretty much a grin and bear it thing
 
@TravisJ Question...
 
10:19 PM
so stepping away from food for a second
can anyone suggest a better way to handle the lifecycle on my mainpage? It seems to loose data context when I navigate from and then back again :/
 
@SteveG - Cool :)
@Greg - What's up?
 
sweet sweet buttery chicken, can't wait
 
10:40 PM
@BrianJ you ordered paneer masala
not the chicken
 
all my asshat friends
need to stop having babies
i have nobody to go to the bar w/ me
 
11:15 PM
Guys. I have a iOS/Android application that can enter scores and send it through an API into the database. (so update the scores of a current match). When I want a live view of the scores, is there a good way to do this without pingponging the database like once per 5 seconds?
For example: I enter the score through the API. The API has a list of all clients and can send information to the client?
(NOT C# specific)
 
@SteveG I feel ya man. Almost everyone at work has a family, and I live a bit far from most of my friends. People need to embrace the child-free lifestyle more often.
 
lol yea
 
user47589
yes.
 
11:31 PM
@ErwinOkken in ASP.NET MVC you can use SignalR. It examines the capabilities of the client and the server to provide near real time communication. At best, it will establish a websocket connection where the server can initiate communication to the client, failing that it will try short or long polling, and some other method that escapes me.
 
Assuming I will use websockets.. Does it poll the database then every X seconds?
 
SignlaR doesn't.
 
Because I won't be using ASP.NET but PHP (I'm sorry, not my decision :P) but I don't want to contact the database every X seconds.
 
What I would do is have a service that runs a short poll on the database and puts the results in a cache (memcached or appFabric or something).
Then client requests check the cache value.
That way, your database (from this process) will only get hit once every X seconds instead of every X seconds for Y concurrent users.
 
It will be only 1 user.
 
11:34 PM
Hitting the database every 5 seconds should not be particularly bad for an optimized query.
 
The client's specification will be static too (so websockets is not a problem)
 
But the server serves hundreds of people's queries. But this "feature" is just for 1 person.
You think performance won't be an issue?
 
I would write it from a standpoint of everyone is eventually going to get the ability to see real time stats. Write a well optimized query on the database, have a service that runs that query every X seconds, put the result in a cache of some sort. Then have all requests for real time stats pull from the cache.
 
Okay I get the idea. But when I just send an AJAX call to the server every X seconds, is there any reason that I want to use websockets instead?
compared to*
 
11:56 PM
@Jeremy yeah unfortunately I did, put it in a tuperware going to add chicken to it and have it for tea
@KalaJ you have a manatee?
 

« first day (2022 days earlier)      last day (2929 days later) »