« first day (1153 days earlier)      last day (3802 days later) » 

8:00 PM
yeah system.diagnostics.stopwatch provides great time
i guess i had just seen someone calling Thread.Sleep evil and it wasn't completely clear why
would it be better just to loop until the time is reached?
vs like, sleep for 100 ms or something
 
I don't know the standard library that well, but there is usually a "SleepUntil(timepoint)", and timepoint would be the time of the original operation plus 166.
You wouldn't need loops for the waiting.
new to c# >_>
 
Aha, sleep until leads to this: http://stackoverflow.com/questions/12834659/sleep-until-in-c-sharp which leads to:

System.Threading.Timer timer = new System.Threading.Timer(ThreadFunc, null, 0, 1000);

private static void ThreadFunc(object state)
{
//Do work in here.
}
 
have just bought beer over the internet. It's...liberating.
 
Okay, I figured out a better way to phrase my question. What if I want a Knockout binding like so: data-bind="text: if(someCondition) someObservable else someOtherObservable"
Is that possible?
 
which solves it perfectly. thanks @Pheonixblade9 and @Polymer.
 
8:05 PM
Basically I want the binding to wire up the Listener and the Writer based on some conditions.
 
@canisrufus Then C# (and Windows in general) is not a good candidate - Windows isn't a RTOS
You won't get sub-MS accuracy on Windows, in general (mostly 15-16ms is the best you can hope for)
 
hey everyone
 
ahha. 15 ms error isn't bad though, as long as it doesn't compund
 
Wondering how people are handling database changes, are you using something like redgate or roundhouse or using database projects in VS
 
@ReedCopsey believe it or not I did once find a company selling a library to turn windows into an RTOS
 
8:10 PM
what is a good RTOS? not that i have any choice about the tech i'm using
 
involving a hack to the scheduler or somesuch
 
@ReedCopsey Do you know how Stopwatch works? It's more accurate than that, right?
 
@TomW You have to base it on Windows Embedded to do that
 
the way they described it, deterministic scheduling goes a long way toward guaranteeing timeliness
 
I'm moving to Silicon Valley - screw this -5 degree crap
 
8:11 PM
not sure how much anyone ought to trust them
 
this is ridicilous
 
that will do sub-ms queries, but there's no way in Windows to get sent interrupts/notifications on sub-ms intervals
even Thread.Sleep(1) will typically sleep for 15-16ms on most systems
 
Isn't there a way to change that 15-16ms time?
 
so you can do timings, but you can't get notified, and there's no way to guarantee that you won't get preempted if you do a spin loop, which can still shift you off at the wrong time
 
I seem to recall reading about that awhile ago.
 
8:12 PM
@JoshVarty Different hardware will have somewhat different characteristics - but in general, even the best systems are >10ms
 
Yeah
 
that explains things a little bit. I'm building an application to read scans in from a SICK laser system. it feeds 75 scans a second
but instead of being able to use system time i'm just inferring that each scan is .1332 seconds after the previous
an assumption which can kill me if too many scans get overwritten in the buffer
 
@ReedCopsey What about DateTime.Now?
 
while i'm waiting for the system execute my port.read()
 
@KendallFrey not super accurate
 
8:15 PM
I know, but why not?
 
He claims you can get it down, but doesn't provide any proof really.
 
anyone know a good book on modern design patterns?
 
It's got ridiculous precision, but terrible accuracy. :)
 
@JoshVarty That gets things like DateTime.Now to be more accurate, but I don't think it changes the scheduler
 
what about system.diagnostics.stopwatch?
 
8:17 PM
think its lets ignore scott day
 
I am still very proud of writing a timer that updated the display instantly. I learned that the taskbar clock is about 1/2 a second behind.
7 mins ago, by Kendall Frey
@ReedCopsey Do you know how Stopwatch works? It's more accurate than that, right?
 
@ScottSelby Design patterns are boring, messing with the system clock stuff is cool haha
 
7 mins ago, by Reed Copsey
@KendallFrey It uses http://msdn.microsoft.com/en-us/library/windows/desktop/ms644904(v=vs.85).aspx
 
cool
 
@KendallFrey aha, missed that. :)
 
8:20 PM
I haven't had to write real large MVC apps from scratch by myself before , and it's common practice to complain about the guy that picked the design patterns. So instead of just doing what I know I thought I'd read up on it a little
@ton.yeung I recently bought Jon Skeet's book , so that gives me permission to steal this one, right??
 
-4
Q: What is the cross -plateform language like html?

Asraful HaqueCross platform terms I listened a lot of times but I don't know what is this? More in details would be helpful! Who the hell are you buster-ed giving me negative numbers! I am really astonished .I will delete my account if someone gives me negative numbers without any cause.Please it is my last...

good god
 
I love the comments +edits ;)
"Who the hell are you buster-ed giving me negative numbers! I am really astonished .I will delete my account if someone gives me negative numbers without any cause.Please it is my last request all of you.Hope positive my numbers just now!"
 
ha
schizophrenic?
 
nooooo!!!!!!!!!!!!! Don't delete your account, please....
 
he posted a picture of the close message in the question itself lol
I know we're not supposed to "point-and-laugh", but this was too good.
 
8:27 PM
lol that image is freaking awesome
 
there was one question last year with some long Indian name , then he changed his name to Johnny Powers and asked it again because no one answered. That was classic!
 
lol
it was a joke
 
Most astonishing is this:
 
@KendallFrey , I just went to upvote after you posted that, already closed though
it won't even let me click on votes like you did, probably cus the question is closed
 
8:32 PM
Deleted, you mean
 
Yes it was nuked.
 
I may or may not have turned the red key.
can't link to deleted content, not even comments
 
may or may not have?
 
Yup. I either was the third vote or was not. It is one of the two.
 
You, um, were?
Why are you questioning?
 
8:37 PM
I was not guessing. I was merely putting forward an ism.
 
@TravisJ I find that happens on Stack frequently.
 
ism?
 
So do you think that user is going to be coming back?
I have been curious about the rate at which new users leave lately. It keeps showing up in meta
 
@TravisJ No, alot of people are put off I'm sure. There are alot of condescending douches, which in turn makes the user feel worthless. They find the answer somewhere else. People have forgotten the goal of this site is help, without answering questions it doesn't evolve nor help anyone.
 
@TravisJ He's given 44 answers. I don't see him ragequitting easily.
 
8:45 PM
hahaha @Kendall - Did you notice you are mentioned in his notes
 
wut?
holy shite
LMFAO
 
@KendallFrey Your often a douche, so I feel I should let you know. Which is why I think you lose sight, that yes people are often put off by Stack Overflow due to the arrogant, condescending, and unhelpful users. Do you think they care that they violate the terms of use? No, they don't and often it is something trivial, but it is a hurdle that others have put in their way from getting the question answered.
An example, Your question is too specialized, we don't feel it will help future users. If your question got closed or deleted for that, you would get annoyed. Why? Because it devalues your question and makes it difficult to seek help from Stack Overflow now.
 
@Greg However, people do not have the right to not be downvoted if they post bad content.
 
@KendallFrey I do agree, but often to that user it is good content. Even if they fall prey to being deemed bad content it often doesn't get solved still. Also, people don't leave valid feedback in some instances. So my question, how will their content improve based on the current ranking status qua?
 
Well, think of it this way. If we let off-topic content onto SO, how will that improve it? It won't.
 
8:56 PM
They key is to explain to the user why their content is bad so they can hopefully understand what SO is and what it is not. That guy took a "poor" question to mean an "easy" one.
 
We may be a bit elitist, but that's required to ensure SO doesn't become a shithole full of broken English and raging disguised as questions about Facebook.
 
Which is probably due to a language barrier more than anything.
 
@KendallFrey True, it is a double edge sword. However the mechanisms in place that are meant to assist, become abused or distorted by users which makes it lose that helpfulness.
 
@JoshVarty This person obviously didn't understand SO, but he had 44 answers. He's not a noob.
 
@KendallFrey That is because several other people who don't speak English only have this version of Stack Overflow.
 
8:58 PM
@JoshVarty - I really enjoyed that meta post. Too bad it is gone now
 
The one where Shogun answered himself?
 
posted on December 12, 2013 by ScottGu

This morning we released another nice set of enhancements to Windows Azure.  Today’s new capabilities include: Scheduler: New Windows Azure Scheduler Service Storage: New Read-Access Geo Redundant Storage Option Monitoring: Enhancements to Monitoring and Diagnostics for Azure services All of these improvements are now available to use immediately (note that some features are s

 
Did they nuke it or something?
 
Long time ago
I can't wait to hit 10k on meta so I can see all the deleted content there
 
@SpencerRuport You don't happen to know anything about TFS checkin policies?
Or anyone else that uses TFS?
 
9:05 PM
Nah I don't know what those are. Sorry. :(
 
o well
Team Foundation Server checkin policies? Never used em though. Sounds like some sort of you can only merge when X is true
 
Yeah, I'm not cool enough to warrant Team Foundation Server.
 
=/
 
I'm not cool enough to force git on my team.
We just switched from hg, that would be a dick move.
 
9:18 PM
So I made this elaborate db mock in linqpad to test a query for duplicate rows, and it worked. And then I tested it against the live db and it seems to be barely off.
And I cannot seem to figure out which part snuck by.
 
sometimes I use fuzzy logic when I forget to shave
 
I did this to detect duplicates:
var groups = th.Merges.GroupBy(m => m.ToId).Where( g => g.Count() > 1 ).Where(g => g.GroupBy( m => m.FromId ).All( set => set.Count() != 1 )).Select(grp => grp.Skip(1).ToList());
 
@TravisJ why not use this?
155
Q: Linq Distinct on a particular Property

Patrick DesjardinsI am playing with Linq to learn about it but I can't figure out how to Distinct when I do not have a simple list (a simple list of integer is pretty easy to do, this is not the question). What if want to distinct a list of Object on ONE or MORE Properties of the object? Example: If an object is ...

or use Distinct()
 
@Pheonixblade9 - Because I need the inverse of that. If there are 3 duplicates, I need the last 2 occurrences of them.
 
I want to kick something right now.
 
9:24 PM
@TravisJ so if you have 1,1,1,1,1,3,3,3,3 you want the output to be 1,1,1,1,3,3,3 ?
 
yup
 
things i want to add to my resume:
 
so just remove one occurrence of a duplicate?
 
Except the 1's and 3's are more like complex objects
 
"Diabolically clever when using SqlDataReader"
 
9:24 PM
Yup, just remove one occurrence
 
"Expert in the use of string and int"
 
Things I want to add to my resume: Good at SQL tuning. Sometimes. If you don't look too hard.
 
"Excellent grasp of the New Project dialog in Visual Studio"
 
@TravisJ maybe something like....
 
Things I want to add to my resume: Will kick your ass at writing regex.
 
9:26 PM
@RyanTernier Are you here?
 
You want to hire this guy to match up well "Cowers in fear of regex"
 
@KendallFrey You should write your resume in regex then go- "Any questions? What now bitch?" I think it would blow over quite well for you.
 
I should update my resume
I should check if I still have a copy of it.
 
call RemoveElementAt() with GetIndexOf to get the element?
 
I only want to put one thing on my resume.
 
9:28 PM
modify your object rather than creating a new one
 
Published a service which was used by over 1000 companies.
 
@KendallFrey Also, I wasn't intentionally trying to pick you out and call you a douche. Was trying to play advocate and point out that you often overlook the way people emotionally reaspond to issues. Mostly because your part robot.
 
@TravisJ i see that everywhere
 
@Greg Yes, I realize I'm a bit unemotional at times. It makes for awkward situations.
 
9:29 PM
Created a <x> that is used by <x> people/users/companies
 
@CharlieBrown - I supposed a paid* service would have been more accurate
 
some things that are actually on my resume:

"wrote alerting service which reduced support hours by 20% company-wide"

"wrote industry-first mapping software for eCommerce catalogs"
 
I need to get me some pointy ears.
 
for you, i believe it
 
Or maybe just leave the house at least once a day.
 
9:30 PM
@KendallFrey It is life, if we were all the same then the world would be like a digital signal, constant, unchanging, and uneventful.
 
V @KendallFrey
 
@Pheonixblade9 NSFW WHAT IS THAT CREEPY GUY! WTF!
 
@Pheonixblade9 Wrong one
 
lol
 
thats what i look like when I see breasts
 
9:30 PM
@Pheonixblade9 Had to give you some shit.
 
How nice of an exception to refer me to the C# specification.
 
@ton.yeung I've got to give him shit, he was giving me shit yesterday.
 
oh dear
 
@KendallFrey I thought of a great quote on a resume. Sir, your company is like a rectum. Without strong employees, you ain't outputting shit. Sir, with me- You will shit like nobody's business!
@ton.yeung If you had time I'd say visit me in Portland, Oregon. After all, you look like you are part hipster. You should fit in fine.
 
I think you got it backwards. Without a strong anus, you'll output all kinds of shit.
 
9:33 PM
6 days of contract left... so i dont feel like doing shit
 
@KendallFrey My notion was without a strong employee to symbolize the rectum, you won't be able to actually shit well or often. But you could be right; not sure yet.
 
is rectum a class or a struct?
 
@KendallFrey I haven't taken analogy in awhile.
 
I can't help but think of "You ain't gonna shit right for a week."
 
@CharlieBrown It is a base.
 
9:34 PM
I have no idea where it comes from...
 
@KendallFrey but I poop from there!
 
@CharlieBrown It is a base for object. It supersedes the object.
 
@Greg It shows, like your post-op breasts. ;D
@Greg Everything comes from rectum?
 
@KendallFrey Your jealous you can't play with my man titties.
 
@TravisJ got F# ma working
 
9:36 PM
@ton.yeung if you want me to play tour guide, just let me know :P
 
I can play with my own, TYVM.
 
that'll make 3 people from SO chat I've met IRL
 
@KendallFrey Yeah, life is shit- Actually it is ongoing shit, so I feel it is a strong hypothesis. You think I'll get published?
 
If you want to
 
:)
it's perfect Seattle weather!
 
9:37 PM
@KendallFrey Damn you Bobby!
 
I love when people misspell meet as meat
 
@JohanLarsson Nice - what'd you use to implement it?
 
@Johan - Cool :)
 
@ton.yeung overcast and rainy!
 
9:37 PM
@Pheonixblade9 That was a perfect time for that.
 
@ReedCopsey I copy pasted your one-liner and stared at it for four hours :)
 
@Pheonixblade9 Are you experiencing those freakishly cold weather also?
 
@Greg not any more, the cold snap ended yesterday.
apparently it's the coldest it's been in years and years.
@ton.yeung there's a tiny bit of ice up the street from me!
 
@Pheonixblade9 Ours did also, but our high is like 47.
 
@TravisJ been grinding 16 hour days a lot lately, not much coding
 
9:38 PM
it's like 45f now.
 
@ton.yeung Why is that sad, we are further North than you. Plus we have the cool currents that come from the North.
 
hahahahaha
 
It is sad that your weather is like our weather.
 
huh? trench coat should be warmer than leather jacket...
 
@Pheonixblade9 I didn't realize leather enjoyed moisture.
 
9:41 PM
modern leather doesn't care so much
depends on the type of leather really.
 
@Pheonixblade9 Is it that fake patent leather?
 
I know I had to stop wearing my leather pants when I moved to Seattle.
 
yeah 15F here today, like a heat wave
 
@Pheonixblade9 At least you saved money by not requiring baby powder.
 
@Greg nah, I used vaseline.
hahaha, the sounds that made...
 
9:43 PM
Oh dear...
 
I've officially weirded out @Greg. SUCCESS
 
@Pheonixblade9 Not sure how I feel about that.
Anyone use the Microsoft.Web.Administration.dll before?
 
ever just dunk your hand in a big vat of vaseline?
@Greg I've used parts of it
 
there is a chick in a cubical near me that uses a sucker sports bottle for water at the office... <suuuck> every 10 seconds
 
I only use Vaseline for one thing. Guess what it is.
 
9:45 PM
@KendallFrey your mom?
 
@Pheonixblade9 When I modify the Site Bindings, do I need to modify the Application-Pool so that it actually pulls the right project directory for the site?
 
-_- no
 
@Greg I'm not sure...
I haven't used site bindings. and only app pools a little bit
 
@CharlieBrown You should go It isn't a penis, be quiet!
@Pheonixblade9 Bummer. Cause for what I can see the Application-Pool is actually pointing it to the site.
 
yeah
but a squeeze one like on the sidelines of a sports game
 
9:46 PM
I don't think that's what app pools do...
app pools define security and identity constraints
 
no lie, somedays i want to record it and play it back to annoy other people
 
I wish you could inject a comparison into distinct like this:
Distinct((left,right) => left.ToId == right.ToId)
 
@Pheonixblade9 Application-Pool defines those, but they also point to a directory in the root inetpub/wwwroot which houses site information.
 
@ReedCopsey Since you know everything, I have a good question for you.
 
lol
 
9:48 PM
@Greg isn't that defined by site? the app pools contain sites, which themselves contain routing information
 
old old old
 
I have an attribute with a public List<string> Foo { get; private set; }
According to the C# spec:
> Each non-static public read-write field and property for an attribute class defines a named parameter for the attribute class.
 
@Pheonixblade9 Yes, I read my code wrong.
 
Even though the setter is private, it counts it as a public read-write property?
 
@ton.yeung nah, that was violentacrez
 
9:50 PM
@ton.yeung He got lost in a German brothel. Now he is living the other side of life-
 
@KendallFrey I wouldn't think it should - it should just be a readonly property
but not 100% sure - should be easy to test, though
 
Well, I'm getting an exception
> System.InvalidOperationException: System.InvalidOperationException: Property 'Foobar.Foo' has type 'System.Collections.Generic.List(System.String)' which is an invalid metadata type. Metadata can only contain values with a type that is available to be embedded at compile-time into attributes. For more details of what types are valid reference section 17.1.3 in the C# specification..
So, I need to fix this. Is it possible to do it without changing my auto property to a field?
 
@KendallFrey You can only have compile time constants in attributes, anyways
so a list isn't going to be useful, unless you're populating it at runtime via other info
 
@ton.yeung Is he actually trying to find devs?
 
not right now
though I'm not really seattle area, either
well - I'm far enough away that most devs wouldn't consider it seattle area
it's about 2hrs north
 
9:55 PM
@ReedCopsey Ugh, I know, but Code analysis
 
over 1 hour north of everett
 
Anyway, the list is populated in the attribute ctor, and should not be set in the attribute declaration
 
Everett would be commutable to/from Seattle - Bellingham really isn't
 
That should be fine, right?
 
yes - that should be fine
yeah - last real town before Vancouver
 
9:56 PM
Hypothetically, if it were a get-only accessor with no setter (not even private), would the exception still bitch at you?
 
Alright, I'll spend tomorrow continuing to blow past project estimations and fixing up this CA stuff.
 
@ton.yeung Its cheaper than Seattle - though it's still fairly high compared to nat. avg.
 
Is Seattle bad for living?
I guess it probably depends what you consider the benchmark to be.
 
I don't know why people harp on Seattle being a bad place just for getting so much rain. It is in a beautiful area, the city planning was executed well, there is a lot of opportunity there, and the Sound is pretty awesome.
 

« first day (1153 days earlier)      last day (3802 days later) »