« first day (2111 days earlier)      last day (3063 days later) » 

18:00
Struct with get-only dimensions
I guess, to extend that question, is there something built in to do that?
if its readonly, you are hosed.
.Inflate
In other words, having a new instance of a Rect is fine
OOOHH.
Hey
Hey what do you guys do when ya haven't made progress on a bug in 4 days?
18:02
Apologise.
ask the customer for more logging information, and work on something else.
It depends. Sometimes I can see where the issue is coming from, but not why
I have access to front and back end so no problem there..also same issue for me now @TomW
The annoying thing is it doesn't happen when run locally, only when I publish to the server IIS
logging is your only option then @BrianJ
I have in the past:
- decompiled the offending assembly with ildasm
- inspected the framework source code line by line to find out under what circumstances it throws that exception
18:05
@TomW, thanks
I don't think I need to go that far
1) showed me that they had the wrong version deployed
2) I don't recall any specific instance where that was helpful
anyone have visual studio community 2015 open?
The issue in short is that when a datetime value is saved to the db from the view..it gets subtracted by the local time zone offset
can you please see if the shortcut to implement interface fails in community version of vs? Maybe just user error?
Why this does not work in VS 15 Community? — Lőrincz Péter 6 hours ago
18:09
@kush Well, are you talking about VS 15, or VS 2015?
@KendallFrey I didn't know there was a difference
oh the previews
Meaning in my case it decreases by 1 hour at each update, although that value shouldn't change after picked
@KendallFrey does 15 even have "community"? Isn't everyone enterprise for now?
hey someone ping me after ten seconds
thanks. :( but no desktop notification when I
I'm in a different workspace
18:16
@KendallFrey
So, does Task.FromResult just create a new task with it's result value already set? No task is actually run, it just assumes you already know the result, and sets it?
A SQL Server question... is it possible to set an input parameter for a stored proc to be something like @Year INT = YEAR(GETDATE())? It gives an error on this: "Incorrect syntax near GETDATE()"
Thanks, @TomW Also found this: stackoverflow.com/a/470673/177416
It appears you can't call a function to set the default value of a parameter. It has to be a constant
18:32
That would be easy enough to work around though
@Year int = null
Then check if it's null and use the default value
Yep, now using this: SET @Year = COALESCE(@Year,YEAR(GETDATE()));
@Sidney Yes, in fact, there is no such thing as a task "running".
A Task represents a result that will be available at some point in the future.
It may get its result from a long-running calculation, but it doesn't need to.
Hi! Can someone help with DDD question?
Would It be better to create 1 large method with many default/nullable parameters OR create multiple (specific) methods that do duplicate some of the same code?
@BorisMitchenko what's the question
@Michael abstract out the parts that you'd be repeating
18:45
@mikeTheLiar so multiple methods, that repeat calls to the same methods
yeah. that makes sense.
Yep, exactly
@Michael what code are you writing that needs so many choices?
@TomW search logic
advanced search vs simple search vs other types of searches
I have three libraries: Core (contains Customer class), Data (contains DbContext, DbSet<Customer>), Service (contains CustomerService) and three UI projects: SPA, MVC and mobile. CustomerService has method FindCustomers which returns List<Customers>. Both SPA and MVC require this method, but Customer has many properties and I don't need them all in UI. What I need is UI-specific DTO's.
user47589
Then make UI-specific DTOs.
18:50
Any Team City wizards here?
Guys, if i attach my own database to an IdentityDbContext, do you know what happens, or how they co-exist?
The Team City Wizards would be a great name for a sports team or a crappy band.
But it's ok to have UI DTOs in the service?
War
War
@ElieSaad EF will do its thing and add the identity stuff to the DB
everything else will be ignored
@War If i have a username column already defined, EF overrides it, or ...?
War
War
18:54
@ElieSaad uh ... you probably want to add the identity context in to the code then call add-migration, it should generate a migration that shows you the intent of what it will do
you can look that over without actually updating the DB (code first)
I shall test it out and update you
War
War
i deliberately turned off automatic migrations so I could be explicit and only run migrations I have in code
figured it was safer
So... anyone good with Team City here?
user47589
same
i have an edmx loaded, migrations doesn't add up with database first
user47589
19:05
i don't see how people can use auto migrations.
War
War
anyone ever used the symbols published from their internal builds?
I'm thinking about removing this step from the build process as it takes a long time
@War for my identity context to work, i need to remove the edmx file from the solution and just connect to the connection string of my database?
@ElieSaad let me know what happens. or how you get that to work.
We created our project without Identity and created our own user table. When it came time to setting up how to handle authentication / authorization It was really confusing. I ended up creating a CustomAuthorizeAttribute a CustomRoleProvider and a Custom UserIdentity class
War
War
@ElieSaad why do you have an edmx in the first place ?? ... are you using identity framework?
@ElieSaad I would love to know how to marry Identity users with the rest of our tables
War
War
19:09
@Michael I do a match on username in our SSO model
I dont see how people can use migrations at all (in a team environment)
Using source control. ;)
War
War
we basically have an old monolithic app that has its own db with users using forms ident
@War I created a database as testing (because i will be working with a database implied on me), and put an edmx of it in my project. I then added owin and identity to my project, and got my shit confused :P
War
War
@Michael poor you ... so far behind ;)
19:11
@War wait what?
how does that work?
War
War
@ElieSaad ok remove the edmx and go to the package manager console and select your project from the drop down that includes your ident context
then run "enable-migrations"
followed by "add-migration"
it'll gen a script for adding ident to the db referred to in your ident connection string
@RoelvanUden Even with source control its a bit of a mess, you have to do some trickery with blank migrations or something else
War
War
then you look that over and make a call if you want to change / modify it in some way
then run "update-database" to see the change applied
then just simply run your code to use it
@Michael if you want to enable migrations for an existing db yes ... the first migration it gens is empty
its a marker interface to denote to the db that it's in the right state
it's a pretty clean way to do it imo
@War thats not what I mean. I mean this: msdn.microsoft.com/en-us/data/dn481501.aspx
@Michael Haven't had that before. When I run into a migration conflict, I just pull in my colleagues DB changes and add my own afterwards. Then it resolves nicely.
War
War
19:16
@Michael yup ... pretty reasonable ... we tend to do our db modelling for the most part up front as part of the design phase so it's usually owned by and carried out by a single person
after that often "trivial changes" may happen
but nothing serious enough to cause that kind of hell
@RoelvanUden how so?
War
War
@RoelvanUden exactly, usually takes a few mins but its not hard right?
@RoelvanUden ever done msdeploy from TFS before ?? ... i'm trying to setup deploys after builds on some of our branches
@War @RoelvanUden
Wait let me get this. Is this what you guys do:

1) Roll the database back to the latest migration that was merged in.
PM> Update-Database -target AddGenresToBook

2) Re-add the local migration.
PM> Add-Migration AddAuthorToBook

3) Rerun the migration.
PM> Update-Database
I'm using a recursive method to read an xml file, similar to the accepted answer here stackoverflow.com/questions/1596163/… -- I just pass along a container that i'm filling with data as I go, and have a return statement at the end. The return statement is hit a bunch of times but only the last call (with all the information) actually returns to the place that called my method in the first place. How does that work?
War
War
@Michael pretty much
19:20
I assumed the first time it hit a non recursive return statement it would quit.
Unable to load the specified metadata resource.
I am running into this error, even tho the connection string is the same.
@War Sorry, no MSDeploy here.
War
War
dang ...
I'm hoping I can just add a deploy step and set a couple of simple things and where my apps have deploy profiles it can use them to figure out the deploy settings
the build in question is literally building the whole repo
If i remove all that symbol stuff (which I have on the dev / working branch) and run the whole lot in parallel I have got the build time down to just 79 seconds!!
Not bad as when I started it was like 15 mins
19:38
@War i got the migration working :D
did EF get all the info from the metadata of identity?
War
War
that's cool :) ... it uses EF code first to figure it all out ... is sort of like using reflection on the context and config info to build the edmx in memory then uses that to sort it all out
its not something I can explain in 1 sentence :)
It was enough, made sense while going through the metadata
@War i tested a code, IT FUKIN WORKED.
War
War
of course it did ;) ... EF migrations are pretty dam cool
and code first totally rocks IMO
@War So I still dont understand how you use both Identity users and your own users?
War
War
it's sort of complicated to explain but the real answer is ... build an SSO server and link the two users with business logic
if you follow some tight rules the code for it can be easy, but essentially in my model I only need a SSO username to figure out who the local user is in any system
it's a separate db in my case that holds my SSO data, and I sat that behind an identity framework managed webAPI app ... i then added OData to make managing that data really easy
19:51
is it a bad practice to render a view as a partial view?
Yeah so we use a (sort of) 3rd part SSO thing that the user signs into for our application. And we use that username to know who the user is
War
War
@RyanTernier depends on context
@Michael yeh usually people match on something like a user id, name or email address
i need to create a drill down for a report. I was going to create a View that has hardly any information except headings and titles, and then a partial view for the data. The reason for htis is so I could plug that partial view into other parts of the sytsem without heading text
War
War
if you can get one key piece of data from the SSO user identity then its just a simple matching excercise
Where is this 'Matching" occuring though?
War
War
19:53
@RyanTernier seems reasonable ... partials are all about reuse of the view
i'd probably build a generic grid component that was configurable to allow the header info to not be rendered or hidden
or just not bother and hide it when I don't want it in the other context with a tiny bit of css
@Michael without knowing more about your architecture its hard to say
i have those kind of things happen in my service layer generically
I can run a db query on the data layer at runtime passing in the sso information
sigh. I need like a tutorial or something. I looked foreverrr all over the internet to find something useful and found nothing
War
War
I have a base interface IService<T> and then a base implementation of all my my services that contains the SSO context as a dependency so in any of my services I can make security type decisions
How did you learn to set it up that way?
War
War
I designed it that way after not finding anything that met my requirements
I'm the architect where I work though so it's sort of expected that I will solve this type of stuff
I plan to blog about it some day but been so busy not had a chance to setup my blog
ohh, yeah. that would be cool :)
War
War
19:58
The idea being that I will build a blogging app using the architecture I have designed and blog about how it works and how I made all the key decisions
sounds like a great way to go about it
War
War
I will probably never just share the code but I have no issues in blogging about areas of it
right, or create sample examples
CMONN @War create examples and make the greatest blog evah!
War
War
I'm using it to move billions around Europe at the moment for the airline industry mostly so I don't think the boss would like me publishing the code but it is my stack and I brought it with me when I joined the company
I have quite a bit of freedom, i'm just getting the front end how I want it first ... I have a very different approach to building web apps to most
20:02
@War what's your favorite way?
War
War
My apps only work when built and run together, other than to test pieces of the functionality they are pretty much useless on their own
user47589
i'm guessing north by north west
War
War
@ElieSaad what do you mena?
@War "I have a very different approach to building web apps to most"
War
War
well most people just go to microsoft and read the asp.net website and start building
20:03
@War has a very particular set of skills.
War
War
then they learn about layering a bit and often end up with some sort of blob that loosely matches an n-tier architecture
I took that concept and then split things even further, not just n-tier but modular too
makes building even the most complex of systems dead simple
the funny thing is, most the solutions I see online claiming they "have the ultimate answer" usually involve writing a crap ton of code
Ultimate Answer == tons of useless code
War
War
I write very little, and when I do I spend weeks at home rethinking it to pull out everything I possibly can
their is no ultimate answer, only naysayers :P
Do you want the: Ultimate Answer, the quick answer, an appropriate Answer, a Balmer Answer, or another question?
War
War
20:05
lmao
@RyanTernier Yes.
@RyanTernier Go Balmer on me.
DEVELOPERS! DEVELOPERS! DEVELOPERS! DEVELOPERS! DEVELOPERS!
War
War
My plan next is to get my work stuff cleaned up a bit then build a series of samples that are esentailly full apps in their own right
throws chair
20:06
Question: I need a hammer, how do I get one.
Ultimate Answer: Make a factory to make hammers. Then you can make many types of hammers based on paramaters you give the factory
?But... I need to just hammer in a tiny nail to hang a picture
!GREAT! You just build the factory and then spend 1 hour picking out the hammer
?but... tiny... hammer?
War
War
then connect them together
then show how things like workflow between them can work / be implemnted
@War you have liven enough in the fields of justice
they need to promote you man :p
user47589
the Fields of Justice!
War
War
it's all in the works ... planning stages but takes so long
I used to curate something called the Tin of Justice at my old job
20:08
Yeah, LoL reference
War
War
wish I could just hand off the blogging stuff to someone lol
@War You do know that you can ...
War
War
yeh but i need to build the blog app lol
room topic changed to C#: Not the JavaScript room | Also not the Android room | A Safe Space to 🗣 your 🍞. Home of JicamaJS and the Fields of Justice! Confused? Good! 🐎 csharpchat.com 💃 gist.github.com - For Easy Code Pasting [.net] [asp.net] [asp.net-mvc] [c#] [coreclr] [entity-framework] [java-hate] [jicama] [linq] [panini] [php-hate] [visual-studio] [wcf] [wpf]
War
War
half tempted to just do whateveryone else does and use wordpress or some shit but it feels a bit cop out'y
20:10
I hear the cool kids use Jekyll.
Jekyll's a bitch. I use hyde
War
War
@GrantHill i thought the cool kids used butterflies
user47589
they're both bitches.
well yeah, just start with wordpress, get your fanbase up, and then create your own
Cool kids are on ice.
20:10
@War That's just @Amy
Ice Ice Baby!
Cool kids use lots of things, like sunglasses and LINQ.
War
War
<3 linq
user47589
i can't talk to butterflies
War
War
oh and I got told I know nothing about OOP the other day by Yegor lol
quite funny
That got me thinking about how long i've been working with C# ... it was announced in 1999, the october I believe of that year ... and I started using it about march ish in 2000
16 years of C#!
If it only took one or two things to be a cool kid, everyone would do it.
I guess you could say that War never changes.
20:13
Our old architect was bragging about how when he first used C# you had to compile it yourself
@War c# to the bones, such dedication :P
War
War
@TomW yup i remember writing C# code and calling csc.exe myself
Is that really compiling it manually?
War
War
haha
you went like cmd -> csc.exe? :P
20:14
Well what I thought he meant was that the compiler came as a bunch of C++ source
When I hear "compile it yourself", I think of hand-translating the C# into MSIL/CLI
War
War
knowing all those args ... tough man
@GrantHill Compiler? I barely know 'er!
War
War
early on you had to get the code and compile csc.exe first
@War yeah that
20:16
@mikeTheLiar Take my source. Please.
user47589
Take it @mikeTheLiar. Take it or else.
adios amigos! thanks @War for your help :)
@Amy the way you say that makes me all tingly
user47589
lol
hi room
20:23
@mike @mike @mike @mike @mike! What day is it @mike?
it's the day before pay day?
You some kind of weirdo what gets paid on Thursday?
@War .net 1.0... I remember thinking "You said this was type safe... .wtf is an arraylist"
War
War
haha yeh
yep I am
War
War
20:25
@ElieSaad np later
user47589
yeah, .net should never have been released without generics
War
War
or linq
but hey its evolving
@Amy It was still way better than vb 6
user47589
ya
War
War
and i'm loving the whole cross platform thing they got going on now
20:26
you know the saying it Thursday it's pay day, sweat drop from ma bawlls ? @GrantHill
user47589
... wat
MS sure ripped java's nuts out by the nose with the cross platform part. It'll just get better
I have never heard anyone say that ever.
oh right, just me then
@RyanTernier it's safe to say you won't have any fucking idea
War
War
20:27
@RyanTernier yup ... poor oracle ... or is it sun? ...
but that's known at compile time
or maybe this error is making me crazy..
@War I spent 6 years in the enterprise world with CGI working with Oracle. Crooks.
War
War
jeez ... them and SAP
both should be nuked
swindlers
We were spending upwards of 30mil a year on oracle licenses for our prod/staging servers
20:28
If C# had been released with generics, we probably wouldn't all these object senders in events.
War
War
@GrantHill they do have a generic event handler you know
@GrantHill Better than Dynamic...
War
War
you're prob just seeing that because you're building winforms apps
lol
I'll have you know they're WPF apps.
Oracle is fucking garbage
3
20:29
And I don't work on them if I can avoid it.
War
War
lol
anyone happen to know just off the top of their heads why a DateTime value would get subtracted by the local time offset at each call to serialize a view? although that value didn't get changed by the user since first selected. Oh yeah and this only happens on the server
> Love Java?
War
War
@RyanTernier omfg LMAO
20:30
Who is that addressed to?
You can code java in visual studio with full intelisense
user47589
what, @BrianJ?
I almost feel sad I won't be going back to my client, I was the one guy on that floor who knew Microsoft stuff
They're all java guys
@Amy I store down a Datetime, serialize it and the rest of the form fields..during that serialization the Datetime value is subtracted one hour, ie. my date time offset from utc

This doesn't happen on local, only when published to the UTC server
They were at the "how do I install Visual Studio" level
user47589
20:31
how are you doing your serialization?
So I had carte blanche to demo the awesome stuff and ignore the shit
user47589
I don't think this is answerable without an example of what you mean, @BrianJ
@Amy pretty much like this in an Ajax call
type: 'POST',
traditional: true,
data: $("#createForm").serialize(),
dataType: "json",
I have a gist
user47589
oh, you're serializing a web form
user47589
and on the server the time is off?
War
War
20:33
@BrianJ ouch!
yes pretty much, a Razr form..on the server each time the form is submitted it subtracts an hour
gist for interested ^
user47589
what is it serialized as, on the wire?
user47589
does the serialized time contain TZ info?
@TomW You left your bizzy job?
@RyanTernier for another one
20:34
I have a screenshot here somewhere
bizz == $$
Well, not sure how up to date you are. I'm definitely still doing BizTalk
bizzy == 🍺
I left [big dumb corporate giant] and am now working for [top tier consultancy]
@Amy on the client side this is what was alerted in the picker change event
user47589
20:35
@BrianJ use fiddler or your browsers network tab to view the actual JSON payload.
🍺 - love unicode!
@RyanTernier I'm hating it more and more. Fortunately it's not the only thing we do.
user47589
an alerted value isn't of much use. it could be different from what it was sent as on the wire. that's what we need
@Amy ok that is a step I was unsure off
let me try
ok understand
20:36
after 4 hours, I finally got f'n Team City to play nice. All i had to do was get a hammer (singular, f-u factory) and smack it around a bit.
user47589
alert() and console.log() can potentially render the datetime as a different string than the serializer does.
ok so I'll look at the network tab and open the packet when the serialize executes?
user47589
yes
user47589
in chrome, the Headers tab contains the JSON payload.
user47589
at the bottom of the tab
user47589
20:39
the XHR filter at the top should help narrow down the list.
ok trying now
seeing this
no headers tab?
user47589
you don't see headers until you select a request to view.
ok got ya
user47589
the JS filter will filter everything but javascript files out. XHR is for AJAX
oh so I need XHR then
20:44
Xenophobic Hair Robots are a cornerstone of web development.
Or Donald Trump. Hard to say.
trying again don't see the packet
user47589
then then off all the filters
user47589
are you sure the request is being sent?
user47589
did you open the dev tools from the page being tested?
yes
it's being sent
let me have a closer look
looking for XHR correct?
user47589
20:47
reload the page while the dev tools page is still open, too.
user47589
it should definitely be under XHR, you're making a POST with JSON.
Ah yes, the good old C#/JavaScript chat room.
yes should it be under the name, status, type table?
user47589
i dont know what you mean
20:49
@mikeTheLiar embrace
@Amy this is what I see in the network tab after submitting
user47589
i dont know then. turn off the filter and search through the entire list
ok worth a shot
user47589
you have two console errors
user47589
do you see anything at all in the network tab request list?
20:55
can't see that list in the panels open
I'll try to f8 pause it after I click the button
might narrow down the results
got it I think!
:)

« first day (2111 days earlier)      last day (3063 days later) »