George Stocker

Springfield, VA

georgestocker.com

Age: 32

I'm a Software Developer. I use the best language for the job. I talk about software, programming, and usability on my blog.


What I'm Good at:
  • Communicating
  • Creating awesome software that delivers value
  • Self-aggrandizing sentences (like these).

How to Reach me
Catch me on twitter or Linked In. If you want to see what I've done, check my CV.

14h
comment SQL Query - Issues with Multiple ISNULL's and Calculations
What do you expect to happen? What actually happens? What's the specific problem you have? ("It doesn't work" is not specific). If there's an error message, what's the specific error message? (With line number, and tell us the corresponding line number). What does your table structure look like? What's some sample data? What do you expect the output to look like? What does the output actually look like? (All this information should be edited into your question).
15h
comment Help Improve The Help & Improvement Queue!
@Shog9 There's always: meta.stackexchange.com/questions/196744/…
15h
comment Visual Studio for Web 2013 cant see all files in solution explorer
third icon from the right in solution explorer at the top. Click it.
17h
revised How do I execute JavaScript from an iMacro script?
deleted 553 characters in body; edited title
17h
comment How do you handle routing in ASP.Net WebApi routing with a '/' in your string parameter
encode it before passing it in? Don't use the / as a separator since that already has a use in the URL? The RFC tells you what's valid to be in a URL ietf.org/rfc/rfc3986.txt. Oh, and in case you get caught on this issue (for example, if you log someone in and use a returnUrl to go back to your current link in the example), double encoded URLs are fun in .NET: stackoverflow.com/questions/7251285/…
18h
comment How to pass two parameter values to couchdb views?
@SHernandez The accepted answer needs some help; it doesn't even have any information in it besides a link. If I was doing what is expected, I'd go ahead and convert that answer to a comment; or delete it.
18h
comment Suggestions on how to confirm file has been created via a loop via .NET
You'd have a service that simply takes in <input> and creates PDFs from them. it updates <something> when it's done. The web side of things simply queries that <something> to ask "Is this done yet?"
19h
comment Suggestions on how to confirm file has been created via a loop via .NET
There are a few things you can do. If you're using .NET 4.5; you can use async and await to kick off the process and when it's done it will let you know. This requires using asynchronous programming throughout your stack for this operation. You could also make this a 'disconnected' operation. One web request starts the operation, and another web request polls to see when it's done (think Ajax). You could have the worker that creates the PDF update a Database table when it's done, or whatever is holding your state.
19h
comment Suggestions on how to confirm file has been created via a loop via .NET
This is a very broad question; as stated, it can only be answered in broad strokes (not in a concrete: "This code will solve your problem" sort of way).
20h
comment How do I execute an an anonymous method in the constructor declaration in C#?
@LuckyLikey Don't do this in code bases with other developers; they'll likely ask "why did you do this?"
20h
comment How do I execute an an anonymous method in the constructor declaration in C#?
It's also not 'normal' C#. Yes, it's possible, but it's not convention. I'd have to see the actual usecase the OP proposes to comment any more. But to internet visitors coming from another language: This is not recommended in C#.
20h
revised How do I execute an an anonymous method in the constructor declaration in C#?
deleted 65 characters in body; edited title
20h
comment How do I execute an an anonymous method in the constructor declaration in C#?
"waste any method on this" -> For 'performance' reasons or conciseness reasons? If the latter; the readability more than makes up for the 'value' in saving keystrokes. If the former, do you have benchmarks? If for another reason, could you enlighten us? What problem are you trying to solve?
21h
comment Some unclear C# features
Also a duplicate of: stackoverflow.com/questions/167343/…
21h
comment Some unclear C# features
this has nothing to do with ASP.NET MVC; also your title isn't useful to others. At best, you should center your question around the ? part of it; in which case it's a duplicate: stackoverflow.com/questions/13238059/what-is-nullable-type-in-c
21h
awarded Necromancer
1d
answered Telling C# that variable has the properties of an interface
1d
comment Telling C# that variable has the properties of an interface
((ISoftDeletable)entity).IsDeleted = true ? Also; something smells fishy about your setup, but I we don't have your interface and class schema to be able to tell what. You've edited in your interface, we still need to see the makeup of the entity class.
1d
comment Get the body of a POST request in an MVC Controller Action
Show us the code as it currently sits? "Rather than troubleshoot the binder..." You'll learn a lot more that way, and save yourself some trouble. Anything in a form is accessible through the following :FormCollection[key] object
1d
comment What is the best way to design a fall back for ObjectContext disposed in .NET MVC
@user2865446 No. Put it in a ViewModel. Viewbag isn't a good place for that either.
1 2 3 4 5