« first day (1784 days earlier)      last day (3179 days later) » 
01:00 - 13:0013:00 - 21:00

1:00 PM
something is pretty broken with my VS right now - looks like it's spawned ~100 different MSBuild.exe processes
 
@Squiggle you can just kill all the msbuild processes, this happens to me from time to time ^^
 
ah - it's 'cos I changed the timezone, apparently
brb. Rebootin'
 
lol wow
 
me: Please use this table data for this drop down
kid: (hard coded a list and copy/paste data from that table)
 
@tweray Duh, simple -_-
 
1:16 PM
@tweray how "old" is this kid?
 
@tweray are you a teacher?
 
@SebastianL maybe that kid is just a code mokey
 
I want to change my username
How is GodHatesAbs ?
 
1:32 PM
@NETscape check out Thoughtbot
 
1:50 PM
@CharlieBrown always nice to see you pop up when I'm browsing github issues :) github.com/twbs/bootstrap/issues/14234
 
ha! no doubt
 
:)
the fix is still cutting the bottom of my lowercase descenders
 
first they hacked it to fix ios, then had to hack the hack to fix ie8, then hacked that hack to fix ie11... its a mess
 
srsly
oh wait. I've fixed it. n/m
 
!!googlš¯–¾ Canada in recession
 
:(
 
@CapricaSix is alive again :)
!!Hooray
 
@SebastianL That didn't make much sense. Use the !!/help command to learn more.
 
!!Party Hard
 
2:00 PM
:D
 
:(
 
My umbraco has a shit ton of user fields and the indexing is slow. What do? Remove UserFields from indexing?
 
:D
 
2:15 PM
i though it was a person '-'
 
!!tell allyallmuthafukas sandbox
 
@allyallmuthafukas Please go and play in the Sandbox
 
Fixing Umbraco step 1: Remove umbraco
 
5 min until weekend :D
at least in middle europe ^^
 
what should I use to start a programming blog?
 
2:28 PM
wordpress
 
our webdev/graphic design company just charged £750 to stitch 3 stock videos together!
 
isn't wordpress based on a PHP backend though?
 
Under an hours work... I'm in the wrong job
 
that automatically disqualifies it as a platform to start a programming blog on
 
@StevenLiekens write your own? Then blog about how you did it?
 
2:34 PM
Chat stopped working in Edge... weird
 
I have no experience with blogging
that automatically disqualifies me for writing a blogging engine
 
It's a blog. It's text with comments, optionally with an archive or search. That's it.
If you use Disqus you don't need to worry about comments.
So it's just text..
 
@StevenLiekens it isn't too hard. If you're just looking for a quick win though there are things like Blogger.
 
FRIDAAAAAAAY
 
I wonder what shanselman uses
 
2:43 PM
tfw they dont tell me the webserver doesnt have .net 4.5 and i make a whole application in 4.5
 
I use wordpress, installed on my azure account. takes all of 60seconds to setup
 
@StevenLiekens it's built with ASP.Net
 
wordpress has so many built in features/plugins. blogging has been solved, dont revinvent the wheel
 
does wordpress work with gist snippets?
or, well, the other way around
 
this is a c# room, but no one was in the sql room, so i have a quick question about non-clustered index in sql server
 
2:46 PM
gist can be embedded into a post
I have a markdown plugin installed so I can blog using markdown syntax
@eg_dac ask
 
markdown with code formatting?
 
yes, same formatting used for github
 
syntax highlighting as well?
 
```js
code block
```
 
that looks nice
 
2:49 PM
ok so my quesion is i have a table that does a lot of reads on one field, but also reads on 2 fields combined half of the time. i created a non clustered index for both. i forget if when i create it like that, that it will also work when just scanning the one field.
or do i need to create a separate index for the one field
 
guys is it posibble to add a simple byte to byte array?
 
I believe you need both, as its a key map essentially. I dont recall 100% however
@Slashy yes, Byte[]{ 0 }
 
@cb i think you are right. i just ran a execution plan, and it is suggesting adding the index for the one field.
 
I predict that "Destructuring" in ECMAScript 6 will be listed as "Dont use" in best practice guidelines a year from now.
 
3:06 PM
everyone left
why am I still here?
at the office, I mean
 
is that a rhetorical question?
 
because you are earning moneyfor that
right?
 
Dunno. But seeing as you're still here, do you know of any polyfils that impose locale date format on IE9 input[type=date] fields?
 
I get paid the same if I leave early
hmm
 
3:11 PM
it's friday man
 
everyone in my cube is here, then one of us left the cube for a minute and we noticed almost no one else is here.
 
I've never needed to write something that works in IE9
 
IE9 isn't too hard, compared to IE7 & 8
 
I did just break the build though
so I guess now I have to stay
 
@StevenLiekens slowclap.gif
 
3:12 PM
Does BOA replaces you debit car on the same day??
 
@TomW wanna go to the pub?
!!google Does BOA replaces you debit car on the same day??
 
!!8ball will @Obviously learn to google?
 
@Squiggle Yes, absolutely
 
good-oh.
 
3:15 PM
Hey all. Which is better and why - linking shared code projects across solutions with "add as link" or running an internal nuget server?
 
They do not as per information available online, but many times some of their services are not mentioned online
 
@Squiggle always
 
nuget server
any shared network location can be a nuget repo
that's how we do it
 
internal nuget is better by leaps and bounds
 
totally
 
3:18 PM
@StevenLiekens I appreciate it's not hard to set up. But it's harder than clicking "add as link". And you can't then refactor the shared code as part of your project. So why is nuget better?
 
couple that with a symbol server and you're laughing
 
im stuck
i'm trying to construct a lambda that looks like this:
 
nuget is better because you can have multiple projects depend on different versions of the shared project
try pulling that off with add as link
 
someObj => someObj.SomeProp == "constantvalue" using expression trees
how do i get the "someObj.SomeProp part of it?
 
@SteveG MemberExpression I think?
huhuh. Member.
 
3:20 PM
i have an input parameter of Expression.Parameter( typeof( someObj) )
okay one sec
let me look that up
 
@MattThrower it comes down to versioning, if you have reason to have it as a separate project, then you have a need to version it as well
 
@StevenLiekens Yeah, ok. This is a pretty small outfit, though. I can't imagine that being an issue. Although I've been burnt by that presumption often enough :)
 
if its b/c shared lib is used by 2+ applications, then you def want independent versioning
 
@TomW yeah i think i could do it with a property, but then I think i have to do a magic string for the property name, i can't select it based on the object?
 
3:21 PM
what does 'based on the object' mean?
 
I can see the sense, though. Thanks for pointing it out, all
 
so, i can do a parameter of type "SomeObject", but I want "SomeProp" off of that value, to compare it
so, i can create a parameter, but then i'd have to use reflection and hard code "SomeProp" in there?
i'm trying
 
do you guys have automatic versioning?
 
Yeah I just read word salad there
 
lol sorry
someObj => someObj.SomeProp == "constantvalue"
so i can build the "someObj" part, i can build the "==" part, i can build the "constantvalue" part
now, since my input parameter is of type FooBar (FooBar someObj)
I want to build this part "someObj.SomeProp"
so, for example
 
3:24 PM
my versioning system is[AssemblyVersion(1.0.*)] + a post-build step in cruise control that outputs the current revision number to a file named buildinfo.txt
I'm not very happy with it
 
var inputParamter = Expression.Parameter( typeof( FooBar )); // my input param.
var constantValue = Expression.Constant( myDto.String, typeof(string));
var left = Expression.Parameter(typeof(FooBar)....? getmethod("SomeProp"), typeof(string))???
lol
idk
i quit, going to get drunk before noon
 
I use SEMVER. we autoincrement the last value, but manually increment the first 2
 
dynamically building a where clause for EF
it'll be a lot less code, and more readable than a million ifelses
kind of, if i want to AND them, or OR them
then it'll get messy
with a lot of duplication
whereas if i just build the where clause dynamically, i think i can cut out a lot of fluff
no.
thats not my question.
i am doing dynamic querying
i have 4 fields, they can be ANDed together, or OR'd together, they can be blank, they can have value
 
@JĆŗlioMurta the "kid" is a master in computer science btw
 
Expression exp1 = new Expression(item => item.SomeProperty=="Foo");
Expression exp2 = new Expression(item => item.SomeProperty=="Bar");
Expression compositeExpression = Expression.Or(exp1, exp2);
 
3:29 PM
@TomW oh thats interesting
@ton.yeung how would i add multiple expressions if i didn't or them with the third line lol
it is, it uses the DLR
right?
or, maybe since i'm not compiling it, it isn't dynamic
 
what does this have to do with dynamic?
 
idk, i threw the word out trying to explain something, and then it cascaded
I thought all expression tree's were considered dynamic linq creation
but maybe i'm just a nooob
 
happy friday
 
agh sdfhsdfhsdf overloaded terminology
 
lol
 
3:39 PM
Hi Guys, when POSTing a new element to my WebApi 2.0. I send across a payload with an existing complex type in it.

e.g. http://pastie.org/10397172

i.e. I would just set the ID of the existing question e.g. 2 in the payload

however its inserting a new question each time? (I am adding in the same context by the way)
I'm using ef6 do I need to seperate out and use the ForeignKey attribute directly to fix this>
?
so something like this
@ton.yeung I am
for example I am specifying ID=2 (no other details than this though) but the context is treating it as a new question with every answer submission?
 
just got married :D
 
@BenjaminDiele 'gratz. Now get off the internet and honeymoon, you numpty.
 
@Squiggle party is tomorrow, still got time for internet
 
I want to insert the list of answers but I associate with the answer a question
@ton.yeung no currently I just have a link to the Question in th class. I'm using code first
although sorry, yes there is a QuestionID column generated
so that was my question I suppose, do I need to add an ctual int to the class and add a ForeignKey attribute for it to recognise automatically
 
@MatthewFlynn what is your post data?
any fiddler request?
 
3:54 PM
@ton.yeung here are the current classes
 
@ton.yeung how would you go about this? searching based on variable number of fields, and they can search using AND or OR
 
@Teomanshipahi I'll run it now but basically there questions are being bound to the question type by the binder and its setting the ID=2 for example
ok and add [ForeignKey("Question")] to it?
 
I think you should have column like QuestionId
 
lol
 
or whatever generated on SQL
I prefer generate code-first from db
much more accurate
on data binding
and constraints
nope, I use it, but on reverse side
code first does not generate exact sql I am intending to
I prefer db first but in code first structure :P
 
3:57 PM
@ton.yeung would it not want to create an additional column inthe table if i didnt add the attribute though?
 
paypal.me is pretty slick.
 
probably his table already has it, he needs property of it
 
i'm using ef with migrations so the fact that there is an entity of type Question has caused it to generate a Question_ID column in the table
 
create Question_ID property
it will bind it then
 
if I then add the further attribute to the class and run the migration I am guessing it would just generate another column
ok i see cool i'll give it a go
so it shoul dbe clever enough to realise that the column already exists then
@ton.yeung what you mean in the actual classes or db?
i.e. add [Column("<Table>ID")]
that would be an issue you see because I am using a generic repo
so ID must exist in each class
may I ask why you suggest that though?
I can do that with the attributes fo rthe DB no problem, its just its kinda set in stone now the ID
 
4:16 PM
if i were to do layered expression trees, or dynamic iquerying or whatever you're calling it @ton.yeung, how could I do OR's?
theres no UI, it's just an api
considered it, but we want to protect stupid people from querying the db with crazy queries from js
only 4 fields, they either have data or they don't, is there a need for odata?
(i'm not familiar with how odata works, but i know what it is, so if what i said is stupid, feel free to shout it)
name = steve, company = awesomesauce, email = banana@banana.banana.youre.a.banana
or
@banana
lol
shut up steve, you're embarrassing yourself
lmfao
?name=steve&company=idk&email=@msn.com
totally serious
probably another value, haven't done that yet
maybe it'll all be AND or it'll all be OR
so ....@msn.com&type=AND
maybe?
haven't gotten that far
nah, 100%
i'm the one who's writing the API
they use it however i write it
or, if what i write doesn't fit well, refactor a bit
yep
i can't
tell you
sorry bud
 
4:39 PM
Hi everyone, a quick question. Is it considered "legal" behaviour to use methods of controller A within a method of controller B in ASP.NET MVC app?
 
nobody is going to sue you, but it is bad, very bad
 
meh, figured. thanks @tweray
 
Los Angeles SWAT team has a dedicated unit from crimes against humanity in C# ;)
 
4:58 PM
lolwut @Mirza, how could you even consider? :)
 
did they get him yet?
its been 20 minutes
 
 
1 hour later…
6:27 PM
!! hello
 
@JúlioMurta That didn't make much sense. Maybe you meant: help, tell
 
fuck, today i will work at 09:00pm
 
6:57 PM
3 days weekend murica!
 
hello guys
have a question who can check
0
Q: How to calculate clustering success - pre assigment true classes are known

MonsterMMORPGI am checking clustering analysis at Wikipedia and can not figure out how to apply techniques to this example Assume that i have the following manually labelled data-set Class labels A,B,C,D Variables var1,var2,var3,var4,var5,var6,var7,var8 Variables classes A {var1,var3}, B {var2,var4,var5...

 
7:23 PM
@SteveG I have an api like that
@SteveG @ton.yeung Here is how I did it with a reporting API last year, in MVC.
An example of using a more fluent API when searching in ranges.

/api/quote/count/by/month
/api/quote/count/by/month?year=2014
/api/quote/count/by/month?year=2014&month=4
/api/quote/count/by/month?year=2014&month=[1,2,3]
/api/quote/count/by/month?year=2014&month=[1:9]
/api/quote/count/by/month?year=2014&month=[:9]
/api/quote/count/by/month?year=2014&month=[2:]
/api/quote/count/by/month?year=2014&month=[7|10|11]
trying to find the code, I know we covered that
 
Hello
 
Hello
 
This maybe the wrong room but can someone point me to the room where I can ask a question about how to boot kali Linux from usb on windows 10?
Thank you!
 
@ton.yeung bah! cant find the code, I think we did this:
/api/quote/count?search=[year=2014|month=[1:3]]
really thats an edge case, we only used ranges really, never needed OR
 
8:20 PM
@ton.yeung my dream job
 
01:00 - 13:0013:00 - 21:00

« first day (1784 days earlier)      last day (3179 days later) »