« first day (1229 days earlier)      last day (3945 days later) » 

20:00
@TravisJ I can see why it'd be useful as well because it offers true SoC.
A web designer doesn't have to work around server side code.
Yup, and it still supports localizing the template. Changing the one js file will still affect that interaction all over the site
There isn't a proper book explaining how to develop SPAs though.
And until then I'd stay clear ha.
Yeah, the thing about SPA is that you have to load the layout for every page up front. That is kind of jarring.
It only works for small sites
For example, this current project has about 140 views. That just isn't going to load very well all at once.
@KendallFrey yeah I know, found the bug in our code, an ~architect~ guys had committed it and wanted us to use it as a baseclass
It's a common mistake
20:05
@TravisJ Yeah. Definitely.
@KendallFrey my question is why the bug happens more often with the sleep, every 3.8 times on average when I run it 1k times
@JohanLarsson @KendallFrey my head is not in the game atm, but my question is why do you have to do that?
Lippert had a good post about that once
my theory is that the count loop is faster and that the sleep isolates the problem
@TomW Mainly for thread safety I believe
20:06
Basically, if someone unsubscribes from the event on another thread, the handler may become null in between the check and the call
@TomW the handler is immutable, so copying it to a temp enables safe nullcheck and invoke
if not someone can unsubscribe between nullcheck and invoke
@JohanLarsson Do you work as a dev now?
ah, duh. Of course. When you explain it like that it's obvious, but I was struggling to see where that was happening in the example
Sometimes I wish that the caps lock button was another backspace
I isolated one of those once as well
nothing to do with events
20:07
@LewsTherin yeah, second week
Oh nice :) Career move?
A Stray Geek no longer huh? :P
amazon suggests some weird shit - obvious flaw in their algorithm
@TomW the example is extremely ugly, sry about that. Look at a pic of some flowers or something
can I have a parameter like this in web api? [Route("{cnpj:string}")]
every time you think "wtf is that? click" - that's interpreted as interest and they show you more...whatever the hell that was
20:08
@TomW obvious flaw, or obviously flawed?
sploit right there
@KendallFrey true
I'm experiencing the same issue
@TomW - I agree
can I have a parameter like this in web api? [Route("{cnpj:string}")], with a Get method?
In fact, I had a heated disagreement about book recommendations on meta once about that.
20:09
The code is obviously broken, but I have NO FRICKIN CLUE WHY DJBIUOBWUIBJKAPNBUJB snaps
I keep having this error: The inline constraint resolver of type 'DefaultInlineConstraintResolver' was unable to resolve the following inline constraint: 'string'.
Recs should be based on stuff you buy, rate, share or add to your wishlist, or items that other people with similar purchases to yours have done same
@TomW - I actually like the SE model for book recommendations
SE - StackExchange?
yeah
20:10
Um, is there a way I can see the call stack in [External Code]?
didn't know they did one
@TomW - Well, technically they don't, it is against teh rules
However, historically some have remained
1440
Q: What is the single most influential book every programmer should read?

NotMyselfIf you could go back in time and tell yourself to read a specific book at the beginning of your career as a developer, which book would it be? I expect this list to be varied and to cover a wide range of things. To search: Use the search box in the upper-right corner. To search the answers of t...

ex. my brother's friend's gf writes teen fiction. I friended her to boost her hits/ratings/whatever because she's nice. Now lots of dreadful teen fiction shows up in my recommendations
also, every time I have a lol at the three wolf moon t shirt
stuff like that shows up
today it's plumbing tools
and CDs of Tchaikovsky
and cubes of polymer foam
It starts out "Being a java web developer..."
What is this I don't even
20:20
@LewsTherin still consider myself pretty sucky.
@JohanLarsson - I think your [Test]-fu is pretty awesome
which one?
user1804599
@TravisJ Java developers are the most clueless.
lol rite
20:30
some days it feels like async/await was written by a monkey on crack
user1804599
Meh, explicit async/await.
anytime you change some low level method to async, you have to change every method signature up the entire stack
We are seriously considering this feature for C# and VB, and will be prototyping it in coming months. Syntax in C# would be

e?.x // member access
e?.M(…) // method invocation
e?[…] // indexing

Semantically this will be similar to

(e == null) ? null : e.x

Thanks for all the great comments!

Mads Torgersen
C# Language PM
neat!
user1804599
Meh.
user1804599
null.
20:34
meh yourself. its useful ;)
@drch yeah, pretty sweet
boom. edits dun
id like that
especially the second one
user1804599
@drch with a proper Option type you can achieve the same thing but with safety and clear semantics as a bonus.
@drch I like the concept of null being an unknown value and producing an unknown value
20:36
any idea, why I was downvoted?
-1
A: Formatting the string by rewriting the delimiters

abhiHere's my attempt at this. The Console.WriteLine statements can be commented out. class MvInfo { public string Vehicle { get; set; } public List<string> Color { get; set; } public List<string> Speed { get; set; } public List<string> Owner { get; set; } } ...

user1804599
Probably because it’s a terrible answer.
lol @rightfold
user1804599
The code is quite cluttered IMO. There must be a nicer way to solve this problem.
Sure there will be. I don't like the fact that I get downvoted for an attempt without any explanation.
Any programming problem, there are several ways to skin a cat.
user1804599
I’m gonna try it in Perl. :)
20:42
"an attempt without any explanation." Maybe that's the problem? :)
@KendallFrey that probably makes a little bit of sense.
still I hate to be downvoted, when I am trying to hit the 1000 rep mark.
:)
user1804599
He cannot delete the question.
user1804599
He has not enough reputation for that.
@ton.yeung You can delete it for me.
Ok, I shall try doing that.
I am still able to see the answer.
lol @ "Note: All your personal information will not be given out. We will simply provide you and other registrants with the names, titles, companies, and e-mail addresses of fellow attendees so that you can communicate before and after the conference."
20:50
238
Q: Stack Overflow is getting a place of its own

Tim PostWe've grown considerably as a network since the days of the original trilogy, when the prospect of growing into a network of over 100 thriving Q&A sites was a distant glimmer in a cloudy night sky. Today, Stack Overflow continues to graciously host discussions about the entire network on its extr...

Not sure what else that would leave aside from my card #
way cool
You know what this means for me?
Being able to see deleted meta questions :D
user1804599
Delete everything.
Why do you want to see deleted meta questions?
its a waste of time as is.
21:07
@KendallFrey no comprende.
tl;dr, I'm only reading the first sentence or two...
StackOverflow already has a meta
it has for years
you said registration thrice
21:19
@TomW meta.SO == meta.SO + meta.SE
aah.
really?
in all that time there's never been a meta StackExchange?
yeah, there is no meta.SE at this point
I expect they explain this, but again, tl;dr
why not just keep meta SO as meta SO and open a blank meta SE?
They want to migrate stuff
I guess most of the stuff is SE, so rather than migrate nearly everything, they'll migrate the whole site and migrate SO stuff back
How can I display part of an image in CSS without using the .clip command?
is there any trick to it? Mr Oliver Salzburg or Kendall Frey?
21:29
@TravisJ Some company just contacted me about a .NET position.
@Greg Nice.
I feel mentally drained. help...
(@JohanLarsson in disguise?)
> The possibilities bode well for fine-tuning an engine's sucking and blowing, but also for optimizing its squeezing and banging as well.
innuendo much
jeezy creezy you parsed that quickly
do you have a plugin that just searches for innuendo on pages?
21:34
Yes, it's called a teenage brain.
I had kind of expected you to be watching the video
(it might be pron?)
(it isn't)
I usually skip newsy videos
tl;dr: improvement to a normal car engine that promises 30% increase in fuel efficiency, 30% increase in torque and 50% increase in emissions
@TomW That's a good idea though
by throwing away some metal and replacing with some slightly different metal
it seems so obvious as soon as it's explained
21:37
in a different shape, right?
well, with different moving parts
basically in an engine, the space inside the cylinder is where the work comes from, and everything else is cruft
none of it is required
go crazy with refactoring
I want to say crankshaft is required
is it? why?
an engine with a single cylinder works
it's dreadful
but it fulfils the basic definition
still a crankshaft
until someone invents something better than a wheel, we need to convert piston force into torque
@KendallFrey you're not thinking like a mechanical engineer.
21:43
I just realized how a rocket engine is basically the simplest form of propulsion
@Pheonixblade9 Of course not, I'm a software engineer
@abhi Yeah, seems like a big company though. Not sure how I feel about that.
bah
for crankshaft, I read camshaft
@Greg big companies are fine. You get more training opportunities and that sort of thing. Just less product ownership and that sort of thing
@Pheonixblade9 Yeah...
huhuhuh...huhuhuhuh....shaft....
21:45
when did Flagged counter changed color to blue?!
or is that only me?
who flagged what?
@TomW erm, um, plugin?
it wasn't me saying "shaft"...?
@TomW not here, on SO
@TomW yeap
@MarcinJuraszek Since the last time I refreshed, apparently. :P
21:46
I liked the orange one better :(
make that second last
the blue one brings much more attention :(
I would argue that :/
maybe I just got used to orange one and need some time now not to pay attention to blue one
The cv-queue is kind of a problem
If everyone would pay attention, it might diminish, but...
If only there were a way to better enforce on-topicness
21:54
if only there was a way to get someone to email me back
@Pheonixblade9 Make them want to.
22:14
var netFwMgrType = Type.GetTypeFromProgID("HNetCfg.FwMgr", false);
var mgr = (INetFwMgr) Activator.CreateInstance(netFwMgrType);
var firewallenabled = mgr.LocalPolicy.CurrentProfile.FirewallEnabled;

if (firewallenabled)
{
mgr.LocalPolicy.CurrentProfile.FirewallEnabled = false;
}
else
{
mgr.LocalPolicy.CurrentProfile.FirewallEnabled = true;
}
This allows me to enable the firewall but disabling it throws a notimplementedexception
any experience with this?
which line is it throwing on?
mgr.LocalPolicy.CurrentProfile.FirewallEnabled = false;
enabling the firewall works though
I'm also receiving a Windows Security Alert 'An app or firewall is not compatible with this version of Windows'
probably something generic that gets triggered
This clearly demonstrates that these lines should suffice: blogs.msdn.com/b/securitytools/archive/2009/08/21/…
I would just like to say
I've spent the past 20 minutes trying to figure out how to vertically align some text using bootstrap.
I'm just saying that when we used tables I never had this problem.
Why HTML5 doesn't have <grid><row><cell> tags is a mystery to me.
It's not semantically correct.
I have a label and an inline list of radio buttons on a row.
But the label text takes up two lines.
Because it's very long.
22:29
@SpencerRuport -
display: table
display: table-cell
display: table-column
display: table-column-group
display: table-footer-group
display: table-header-group
display: table-row
display: table-row-group
@MarcinJuraszek - they switched it to blue because the orange and red were too similar
@ton.yeung - You spout smart ass stuff regardless.
@Spencer - You can always make your elements look like table elements
22:44
I wonder how bill is doing with Bitcoin
hopefully he didn't take a bath in it
Yeah ha
woot, had a good day
tesla s? Is this a trick question?
@Steve Good for you ha :)
i have good days when i don't come in this chat during work, makes me more productive == feeling better about myself :)
lmfao
22:55
Regarding EF4, I have an IQueryable<int> subquery and wrote a Func<T, bool> predicate = o => subquery.Contains(o.SomeId) that I use to call IObjectSet<T>.Where(predicate) ... does anyone know offhand if subquery will be evaluated more than once?
RCT3 sucks more than I remember
fuck, crashed again
Anyone know of a dynamic SQL builder library like dynasql.codeplex.com but has a less restrictive license?
@Phil - dapper?
23:03
dapper i love, but it's only really useful after you have your SQL already created
That's all I got
right. trying to find a good way to create the sql
i would totally write my own raw sql, however i have a requirement to write all my queries in a vendor-agnostic way
i'd rather not have to write 100 different queries/commands 5 times for different providers
then use linq/EF
and defer it to the provider
23:06
i've used linq, doesn't have the flexibility like dapper does
er
well good luck with that!
yeah... dynasql.codeplex.com does pretty much exactly what i want, but it's LGPL, which sucks
hey @KyleTrauberman
long time, hows life?
23:08
good
@Phil whats the problem with LGPL?
had twins
wow, congrats!
Is it possible to build comparison extension methods to an object?
LIke for DateTime, can I have an extrention method that overloads the = ?

Like DateTime = WeirdDateObject?
23:09
boys? girls? both?
haha, my wifes was
one of each
Declen and Savannah
@drch the bit about proprietary software. either i don't understand it, or it says i have to release it under the LGPL
@RyanTernier - That would be operator overloading, not static extensions
@RyanTernier There is no way to overload assignment operator
aww i like the name savannah, used to have a crush on one when i was young
23:10
no you just have to make any modifications that you make to their software available upon request
@RyanTernier - Fairly certain you can do that with DateTime
Ah, at least with ==, I didn't notice you wanted to assign like that
can't be different genders if they are identical
you can create implicit conversions to make the assignments work even for different types
23:11
I have to do this 250 times:
replace a line like:
return ((base.getSrcFtime() == null) ? DateTime.MinValue : base.getSrcFtime().NativeImpl);

And turn it to:

return ((base.getSrcFtime() == null) ? DateTime.MinValue : CommandHelper.GetDate(base.getSrcFtime()));
@steve I liked it too, that's why I picked it. :)
any easy way to auto-refactor that?
@ton.yeung you act more and more like kendall every day
2
@drch That's not the impression I get from this bit:

> A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.

> However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executab
@RyanTernier - ReplaceAll
return ((base.getSrcFtime() == null) ? DateTime.MinValue : base.getSrcFtime().NativeImpl);
with
return ((base.getSrcFtime() == null) ? DateTime.MinValue : CommandHelper.GetDate(base.getSrcFtime()));
:P
23:11
aww cheer up! :)
@TravisJ It's different object names each time :(
@RyanTernier - Regex the dynamic name
@drch but i could be reading it wrong
@RyanTernier do you have access to the type of whatever it is getSrcFtime returns? You might consider an implicit conversion from that type to DateTime
lmfao gotcha
23:12
@Phil what are you building?
proprietary program that would use the dynasql library to query a database
Well base.getSrcFTime() returns a java.util.datetime (J#). The NativeImpl no longer exists
then thats fine
because i'm using .net 2.0 i can't add an extention method, otherwise it'd be easy
that falls under the first paragraph you posted
if you release that as a library, then that's a derivative work
ie, you cant just add a wrapper and call it your own
23:13
@RyanTernier eeh, i guess you'll have to go with your current approach
but if you statically link, its not a derivative work on its own
@RyanTernier - So flatten out the .NativeImpl and then replace all on the part that is left
use vs's replace all
if the 250 lines differ slightly, i'm pretty sure there's a way to perform a replace all with a simple pattern (i.e., wildcards)
24
Q: Visual Studio, Find and replace, regex

bdharI am trying to replace all the #include "whatever.h" with #include <whatever.h> using find and replace functionality in Visual Studio 2005. I used the regex \#include \"[a-z\.h]+\" to find the include statement. But I am wondering how frame the replace regex. \#include \<[a-z\.h]+\> did not work...

23:15
@dcastro THat's what I'm doing now. Making a quick script for it. There's 21 objects that I need to fix, going to just write them out and let it do it. better than doing 350 manual ones :)
sweet ;)
@Phil the main page of that library even says Now released under LGPL licence, so you can use it in your commercial software
bah! right at the top of the page
:P
well then that clears things up. thanks
23:38
@TravisJ Gimp is awesome!
@TravisJ It is like a culmination of Fireworks and Photoshop, plus it is free.
@Greg - haha glad you like it :)
@TravisJ I'm trying to build a flat interface logo, I've got a square with rounded edges. I want to put an inset two in there, any good number fonts?
@Greg - "flat interface logo"?
@TravisJ Eh, let me think of how to phrase it.
@Greg that's as random as it gets hehe. After a question, always post a completely random gif, online etiquette 101
23:52
@TravisJ You should send me your cell number, I'll text you an image of what I mean.
Yeah, except I'm trying to make it look cooler inside a square with rounded edges. As an actual business logo.
"look cooler"?
Yeah, like fill the inner portion of the square with a clean inset approach.

« first day (1229 days earlier)      last day (3945 days later) »