« first day (1440 days earlier)      last day (3518 days later) » 

9:00 AM
@Yoda I do respect them :) and although I understand the point they're making, it makes it extremely hard. E.g. something that should be understood immediately can take up to 15minutes because i'm sitting there thinking "ok it's not that word, or this, or this, or this... oh wait, it sounded a bit like this word" basically I have to mentally go through every similar word from the dictionary and see if it fits with the rest of what he just said.
and when he says "Assessment" he doesn't say "Assessment", he says "sesse"
I'm like, WTF?
 
me too
:)
sesse!!
 
lol
 
hey I said me too for WTF just to be clear.
 
I figured lol
 
@TomW jay isn't asking from that context, he's asking from the context of a student being taught by a foreign lecturer, which I would argue I give more weight to.
 
9:03 AM
Those aren't contradictory
 
I didn't say they were, they are however not the same context.
 
Lecturers who speak English as a second language say "Tell me if you're having a problem"
 
And many of them do nothing when you tell them.
They get offended that you tell them you have a problem.
 
@TomW yeah one of my teachers said that last week.
@Sippy exactly right
 
Well that's unprofessional.
 
9:05 AM
I've had a lot of foreign lecturers, I brought it up with the first few and then realised it was a fruitless endeavour
And?
That doesn't stop them doing it lol
 
finally the room is active
 
Most of the time the answer was "Well I can't change my accent so get used to it"
 
@Sippy what time is it over there?
 
@Sippy lmao. "Officer, Officer! Some guy just punched me in the face and stole my life's savings!"

Officer: That's a crime!
 
The best solution is to just get the relevant info you need to learn and go teach yourself in this situation, truly.
Lol.
 
9:07 AM
+1 @Sippy we had turkish teachers in high school it was hard at 1st to get them but you adapt somehow
 
You can escalate it of course, if the lecturer is uncooperative. You should have a tutor/mentor/whatever your university calls them, take it up with them
And you're paying for it (and paying a hell of a lot now) so I think you're within your rights to demand a decent standard of lecturing
 
That's totally right.
However a slightly romantic way of thinking.
 
hey whatever happened to that @baeltazor user? Haven't seen him on chat lately
 
In my experience, escalating doesn't get you any further.
They get a warning or something and you all go back to the way things were.
Saying that, the chancellor and vice chancellor of my uni just got suspended so
Maybe I just went to a bad uni :D
 
Mine was kind of the opposite, any complaints seemed to cause immense political fallout, especially if they were in volume
informally I mean, but you could tell there was a rift between department and students for a while whenever the two sides didn't see eye to eye
 
9:13 AM
That kinda happened, it was more that individual lecturers suddenly became a lot less helpful than they were before.
in my uni.
 
They cancelled one course and replaced it with a vaguely similar one given by someone from a different department that everyone resented because the small subset of people who wanted to do that course, REALLY wanted to do it. All the replacement guy got from it was that half his class 'hated' his course and that really upset him
took a while to clear the air
it wasn't a bad course, just not what was wanted
then there was the revolt over lab work from the year below us
 
Lol wat
As in they didn't want to do it?
 
grades in labs were historically poor - they figured it's because kids these days don't have the patience or attention to detail blah blah blah...actually it was more to do with poor explanation, lack of instructions and so on
 
Ahh
 
the whole class refused to attend labs until manuals were provided for each non-trivial piece of equipment
 
9:17 AM
@GLeBaTi this problem can be also resolved by rebuilding solution again or clean and build it again.
 
It was easy to spend most of the day trying to work out how to use the lock-in amplifier, for example. Where all that was needed was the manual that told you how to use it
 
Yeah, it's easier to fix the 'what's being taught' problem than the 'who's teaching it' one
Usually.
We had a module in second year that was basically large scale computer networking
 
posted on September 25, 2014 by Scott Hanselman

I wanted a different wallpaper (or "screensaver," for the non-technical relatives, because I know you call desktop wallpaper that) for each of my multiple monitors in Windows. To start changing your wallpaper, first right-click on the desktop on click Personalize. Click the words "Desktop Background" at the bottom of the Personalization dialog. Now, from here, if

 
I was a computing student so it had nothing to do with my degree or my career and without networking qualifications the module was meaningless to us all
We tried to get the whole thing dropped from the degree, it was the same module that got the 30% boost
 
@Sippy let's see how long you can avoid dealing with or thinking about networking problems in a software development job :)
 
9:21 AM
But they refused to drop it because they couldn't replace it. The year after that, I did a module for the same number of credits that was literally application level networking which would have been a perfect replacement.
I mean literally teaching us about how to run wires under the ground dude.
That's completely useless to me.
And how to configure a switch
 
Ah, well. Depending on the size of the company you work in, that might be your job as well
if you're the guy that 'does computers'
 
Haha, I won't be getting one of those jobs :3
I have done that before and I will neeever do it again
Such a headache.
 
Fortunately I have an Operations AND a DevOps team insulating me from all that nonsense
they're distinct, but I'm not sure how
 
Pahaha
We have a single company that deals with all the bullshit for us
They're useless and they're called Capita.
 
....
Erm.
 
9:23 AM
Do you work for Capita? :D
 
I'm not supposed to talk about that
 
XD
I asked for an AD account that had access to all our servers. That was 2 weeks ago :D
Been told it'll take another 2 weeks
Because it's very hard to do ofc.
We're cancelling renewal I think, hiring a bunch of separate in house guys.
Cos it just costs us money. Capita have had to pay fines so many times for fucking shit up.
 
I really can't comment
 
@Gotalove It's 10:26!
Yeah no problem :)
 
okay 12.30 here explains why room got active from around 10.30 my time
 
9:31 AM
Lol
 
@Sippy in mvc is there a way to have conditional statements on gridmvc columns?
 
@Gotalove Elaborate
 
okay
I have a query that returns actual time out and an expected time out so I want to get the difference in hours and display it
 
Have you tried using RenderValueAs?
 
actually I think I just invalidated my 1st queue
Let me gather my thoughts 1st I just realised am making less sense to myself
sorry
 
9:37 AM
Haha np
Ping me when you're ready.
 
@Sippy so this is my grid imgur.com/Tjg2ABd
I want to compare clockout and timeout and have another column with difference in hours
this is my logic in controller pastie.org/9593149
Now my problem lies in that I only want to get difference in hours ignoring the month/year of the 2 (clockout and timeout) since both are datetimes
 
Well change viewmodel to include it
 
Is it possible?
 
Yeah?
 
not the changing viewmodel but my question
 
9:45 AM
Hey guys
 
1
Q: Difference between 2 DateTimes in Hours?

Kovu Possible Duplicate: Showing Difference between two datetime values in hours Hi, is there an easy way to get the difference between 2 DateTime-Values in Hours? I know, its a possibility to calculate itself by get for each day difference 24h, for each month 188h and so on... but is the...

 
Can anyone help me out real quick?
I am having some troubles with my edmx
I need to keep change of engine replacements in cars
And the state of their mileage when they were replaced
 
Thanks alot @Sippy I had researched but thought I could only use datediff in sql which wont ignore the month and year
 
So int my enginereplacement entity
I have 2 associations with the ReplacedEngine entity
 
@Gotalove :)
 
9:47 AM
one for the engine that went in
and one for the engine that went out
But..
The ReplacedEngine Entity only needs one reference back to the Enginereplacement entity
 
!!afk
@Sippy will be back there is still sth
 
:P
 
can anyone take a quick look?
 
Roxas what exactly is your problem?
 
How can I make sure the ReplacedEngine entity only has 1 referenve to the EngineReplacement Entity
But the EngineReplacement Entity has 2 references to the ReplacedEngine entity
 
9:51 AM
@RoXaS the dotted line representing the relationship has properties you can change
F4 or right-click>properties I think, can't remember exactly how the UI works
there's an option...somewhere
 
yeah theats true
I know that
 
so change it to be what you want?
 
the point is i dont know what configuration it needs to do what I wanrt
 
I don't really get what your issue is.
You have two references because you reference it twice.
 
When an engine replacement takes place
I snapshot has to be made of the mileage of both the engine going in
and the engine going out
The replacedengine entity is supposed to be that snapshot
Therefor the EngineReplacement entity needs 2 references to an object of ReplacedEngine
one for the one that went in
and the seconed one for the engine that went out
But that way
the ReplacedEngine entity
gets 2 references back to EngineReplaced
While one will always be empty
And I would rather have their connection back go trough the same property
Does that clarify?
 
10:01 AM
I think I see what you're asking. Logically the ReplacedEngine class doesn't have to reference the EngineReplacement that's it's 'parent' at all, although I'm not sure how to express that in the designer. So if you're theoretically allowed to have no references at all, I can't see why you shouldn't have only one
 
Yeah
I was just thinking the same thing
Or i could just set a different refeence back
and set it in code
but i'm thinking there isn't much need for that either
since you would never access the replacement trough the replaced engin
 
You can actually delete the navigation properties and the associations remain
that 'solves' the problem, doesn't it?
 
Yeah you can set one end of the association to have no navigation property
So now I have an EngineOut property and an EngineIn property
just no way back
but thats okay
Thanks dude!
 
I'm still sat here like 'wat'
Today is a slow day.
@TomW Have you ever done custom principals for windows authentication before?
 
@RoXaS it does seem to me that having just one property on the one side should be supported
but I can't work out how to make the designer represent that
@Sippy sort of. I've added claims on an asp.net request pipeline, does that count?
 
10:06 AM
@TomW It works now
Cant screenshot it though, I removed that small demo i send you the screen of
 
I mean more along the lines of authenticating requests in controllers.
I have a solution for it but I don't like my solution.
So trying to make something betterer.
 
@Sippy I'm not sure what you mean, but I don't think that's generally how it works. The authentication should be done before the request ever reaches the controller
 
[Authorize(Roles = "Administrators")]
Trying to add custom roles :)
 
oh, you mean authorization :P
 
Yeeeeeeees
 
10:10 AM
Yes, I've customised declarative authorization fairly extensively
 
Woo
 
a Role is technically a sort of Claim
 
I'm going to TRY and find a way to grab roles and authorise against them from active directory
10
Q: Extending Windows Authentication in ASP.NET MVC 3 Application

Da_Wolfafter a lot of googling and reading several solutions on how to manage mixed mode authentication in ASP.NET apps, I still have no fitting solution for my problem. I've got to implement an intranet application for a bunch of different user groups. Until now i've used windows authenthication which...

Sort of following that.
My worry is that for every request made using the code in that example, it will go to the database and grab all the roles again.
I'd rather not do that for every authorisation.
 
OK, so you have a roles database?
 
I don't, I have AD.
 
10:13 AM
so AD should be doing this for you
 
I guess it kinda does
But I can't implicitly do role based authentication from AD without knowing the roles can I?
I mean at the moment users can either connect if they exist or can't if they don't
I'd like to extend roles from AD so that administrative/development users can access anything they like and regular users only see that which they need to.
 
Hi here
 
@Sippy what do you mean by extend?
 
Utilise.
 
@TomW, you are trying to set the access to pages in an ASP.Net MVC app using AD roles?
 
10:17 AM
@NicolasR I'm not
Sippy is
 
SOrry, Sippy yes :D
 
Yus
 
I think I made it a few months ago...
 
Right, so what I think you're asking is how to add roles to a certain users so that they act as though they've been given them by AD
regardless of whether they actually have that role in AD or not
 
Nop, just trying to get the web application to utilise the role they are given in AD.
 
10:18 AM
but that just works
 
As by my understanding it doesn't do that implicitly
Ah.
 
Yeah it does. Enable windows authentication and stick an Authorize attribute on the controller action I think is all there is to it
 
Well that makes things easier.
 
oh, you might have to add the Authorize attribute as a global filter
one sec
 
Yes TomW is right
a few actions and it works
 
10:20 AM
btw there are two reasons this method sucks (even though it works)
1) AuthorizeAttribute returns http 401 which is just plain wrong
2) Roles often don't match up that well to application functionality. I've customised this to authorize based on claims instead, because they're finer-grained and let you express what a user should and should not be able to do more clearly
 
Do you have any good links to read up on customising that?
 
@Sippy there are quite a few as well as a microsoft code sample, they're all in my work browsing history which is not where I am, but I'll see what I can find
 
I'll do some googlin'
Thanks btw
 
lostechies.com/derickbailey/2011/05/24/… this one explains why you'd want to, but not that much technical detail
@Sippy at the very least, I'll try and find you something about correcting the rejection logic, by default IIRC AuthorizeAttribute returns 401 which causes the browser to prompt for login credentials - basically because 401 means 'present your credentials for http basic auth'
even though it's called 'unauthorized' - the standard names it incorrectly
the one you want is 403
 
@TomW I've come across this bullshit before
Didn't realise it was that which caused it
 
10:26 AM
yeah, I wrote an essay about it in the comments for my overridden version in case anyone complains
 
Pahaha
 
I override HandleUnauthorizedRequest
actionContext.Response = actionContext.ControllerContext.Request.CreateErrorResponse(HttpStatusCode.Unaut‌​horized, SRResources.RequestNotAuthorized); <-- that's the wrong status code
 
Ah nice, thanks man
I didn't realise ASP.NET MVC was open source lol
In fact I didn't know ASP.NET was open source.
Never looked.
 
To require authorization throughout your application, you could just register AuthorizationAttribute, right?

public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
filters.Add(new AuthorizeAttribute());
}
Unfortunately, this works a little too well - it's global, so users can't login. But, really, really secure, right?
 
@TomW Probably a really good idea in an in-house application, though :P
 
10:41 AM
yeah, don't want users getting in and messing stuff up
 
Pesky users.
 
Hiya.
 
@Marek ello
 
10:57 AM
@Sippy so am back now
 
o/
 
and again this is the part thats tricky for me ->how do you compare 2 datetimetimes using their hours only ignoring that their from 2 different days basically like their datetimes of the same day(just time comparison) and I cant use time because my sql db is 2005
 
DateTime.TimeOfDay
 
okay thanks for shining some light
let me try implement it
 
11:14 AM
when you convert iqueryable to list
what is the datatype of the items?
object or?
 
Do you mean IQueryable or IQueryable<T>?
 
IQueryable<T>
 
then it's T
 
aah...
hehe
kinda figured when you asked that
thanks
 
11:33 AM
@TomW Awkward moment when roles aren't configured properly in AD.
public ActionResult Index()
{
	foreach (string s in Roles.GetRolesForUser())
		ViewBag.Message += s;

	return View();
}
Message is empty xD
 
fail
 
Yeah not really sure what to do now.
 
well, there's a way to deal with that for testing purposes...psst...you can sneakily insert roles into a user's principal
 
Yeahhhh
 
do not do in prod, pls
 
11:44 AM
I don't even wanna do that in test lol
 
@Sippy Timespan is not supported in linq for entities is there a workaround?In the model I declared timein as a timespan
 
Gotta figure out a way to do this now cri
uhm
Declare it as datetime, do timeout.timeofday - timein.timeofday?
Why would it ever be an issue that the two are on different days?
Surely you don't clock in on monday and clock out on friday.
 
For the first time in many sprints, I'm running out of work!
 
gz :D
 
coz I will have one table for schedules which should have days and a table for clockins which will be different so the point is to check that clockin and out will be within schedule time @Sippy
 
11:48 AM
Ah
Well then uh
Maybe cast to totalminutes
 
But then when I do that I get that I cant implicitly convert date time to time of day.
 
Why?
 
PS: am doing it in the query
o_O
var scheduled= from e in db.Employees
                           join es in db.employeeSchedules
                           on e.EmployeeID equals es.employeeID
                           join s in db.Schedules
                           on es.scheduleID equals s.ID
                           join c in db.clockins
                           on e.EmployeeID equals c.employeeID
                           select new  ViewModels.ClockinViewModel
                           {
                            names =  e.SurName + " " + e.OtherNames,
 
What I told you to do works for me.
In select new
@Gotalove I'm not sure what it is you're trying to do
If you have two datetimes, you can use their timeofday attributes to get a time difference.
Irrespective of date.
DateTime t = new DateTime(2001, 04, 15, 14, 52, 34);
DateTime t2 = new DateTime(2005, 04, 15, 17, 13, 33);

var total = t2.TimeOfDay - t.TimeOfDay;
 
12:04 PM
@Sippy its my viewmodel pastie.org/9593436
 
02:20:59
Is the output of that.
 
the clockinViewmodel
 
Okay and you want to get the time difference between clocking out and clocking in right?
 
between timeout and clockout to get overtime
 
Okay so var overtime = clockout.TimeOfDay - timeout.TimeOfDay;
 
12:09 PM
hey guys
 
@Sippy but I will need to bind it to my viewmodel right?so I cant use var inside the select new ViewModels.ClockinViewModel
{var blah}
 
since Outlook 2013 is stupid, I need some help: Is there a way to find out if a COM object is referenced by my application/add-in?
or how many times it's being referenced?
(that'd be more accurate)
 
@Gotalove So add it to your viewmodel.
The time difference will be a timespan.
 
@Sippy let me try but I dont think I can add it as a timespan in viewmodel it will most probably give me the error timepan cant be used in liq to entities
but here goes nothing... fingerscrossed
 
If that's the error you're getting then why do you need to include the time difference in the entity? Why not just compute it when you need it?
 
12:26 PM
I need it in grid display like here imgur.com/Tjg2ABd I can have last row with just that difference
but how do I compute it?
columns.Add(c => c.overtime).Titled("Clocked Out").RenderValueAs(c => c.Clockouts - c.TimeOut).ToString();
trying to convert it on grid gives me cant implicitly convert timespan to string as well
 
hello @Gotalove
 
hi @getlost
haha why that name
 
i like it.don't you
 
@Gotalove columns.Add().Titled("Clocked Out").RenderValueAs(c => c.Clockouts.TimeOfDay - c.TimeOut.TimeOfDay)
 
I do
@Sippy still persists
its annoying I know
 
12:43 PM
uh
How can it persist if you don't try to convert it?
 
I mean problem cannot implicitly convert sytem.timespan to string Sippy
 
Yeah
Are you trying to convert it?
Or are you using what I just gave you?
 
columns.Add().Titled("Clocked Out").RenderValueAs(c => c.Clockouts.TimeOfDay - c.TimeOut.TimeOfDay).ToString();
am trying to conert it like this
 
Use this
columns.Add().Titled("Clocked Out").RenderValueAs(c => c.Clockouts.TimeOfDay - c.TimeOut.TimeOfDay)
 
I tried that as well
 
12:48 PM
You don't need to convert it.
 
Cannot implicitly convert type 'System.TimeSpan' to 'string'
Line 16: columns.Add().Titled("Clocked Out").RenderValueAs(c => c.Clockouts.TimeOfDay - c.TimeOut.TimeOfDay);
 
columns.Add().Titled("Clocked Out").RenderValueAs(c => (c.Clockouts.TimeOfDay - c.TimeOut.TimeOfDay).ToString())
Try that.
 
already tried that above
 
You were rendering the column as a string, not the timespan.
Wrong scope.
 
aaahh...
that worked
scope 'facepalm'
 
12:52 PM
Lol
I don't understand why it wanted you to convert it to string but w/e
As far as I was aware timespan did that implicitly
 
so small the problem yet it nearly drives you nuts :-P
 
1:08 PM
@Sippy thanks loads for the tolerance and help
 
@Gotalove No problem dude
 
1:37 PM
Anyone else having issues with NuGet today?
 
1:48 PM
raargh
someone writing ecommerce sites doesn't understand credit cards
found a site that won't let you enter a card start date in the future, when I do in fact have that card sitting on my desk in front of me, that's its start date, and it works for all other purchases and sites
 
That could be problematic lol.
 
they send it to you saying "you can start using your card straight away" - the start date is irrelevant
 
Lie about the start date
I would almost be willing to bet it will still verify.
 
that would be more alarming
especially as it sends off a bunch of data to the card issuer's own verification module
WHAT it sends I don't actually know
 
If the verification module doesn't give a shit about the arbitrary start date then it'll work.
 
1:54 PM
it probably should, otherwise why would it ask for it?
 
@TomW shrug
I've never been asked for a start date before.
 
I admit I don't know how credit cards work either, but I'm not being paid to develop an ecommerce site
bought my niece some fancy-ass swag for her first birthday :D
 
Hahahaha
Tiara?
 
not that fancy
 

« first day (1440 days earlier)      last day (3518 days later) »