|
ljw1004 posted:I believe that the "Plex" part of code-contracts can explore EVERY POSSIBLE outcome of a program. Including every possible interleaving of concurrent stuff. You're thinking of pex, which is intellitest in vs 2015.
|
# ? Jun 25, 2015 20:18 |
|
|
# ? Jun 5, 2024 06:58 |
|
I've run into a strange issue with CookieContainer splitting a cookie, which contains a JSON object, into N different cookies. I used RestSharp and the cookies it returned in its response were also in this form. I'm not sure why it's doing it but the cookie seems fine in the browser but not when I'm making an HttpRequest or using RestClient. Basically the cookie value is in this form: code:
e.g. I now have a cookie named "myCookie" and it's value is: {\"key1\":\"value1\" And then there's another cookie named \"key2\":\"value2\"} with a null/empty value. I don't get what's causing this, has anyone ever run into this or happen to know how to fix it? I would appreciate any help, this has been bothering me all day. Thanks
|
# ? Jun 26, 2015 04:35 |
|
is anyone having a problem running built .net applications after the most recent round of windows updates? my programs are crashing in Task.Run - Run() itself, not the lambda that's passed into it! the exception is the incomprehensible "Exception from HRESULT: 0xFEDF6408" - this code does not appear anywhere on the internet, and nor does the name of the method that throws it: AsyncCausalityTracer.TraceOperationCreation looks like it's a call through a COM import into some CLR internals... :/
|
# ? Jun 26, 2015 09:35 |
|
system restore to pre-update fixed it. time to hold off on those patches a while
|
# ? Jun 26, 2015 11:56 |
|
Acer Pilot posted:I've run into a strange issue with CookieContainer splitting a cookie, which contains a JSON object, into N different cookies. I used RestSharp and the cookies it returned in its response were also in this form. RFC 2109: quote:Informally, the Set-Cookie response header comprises the token Set-Cookie:, followed by a comma-separated list of one or more cookies. RFC 6265: code:
Bognar fucked around with this message at 14:43 on Jun 26, 2015 |
# ? Jun 26, 2015 14:40 |
|
Does VS2015's built in git module support git+ssh:// repositories? VS2013 can only commit locally, but can't push to a remote git+ssh:// repo.
|
# ? Jun 26, 2015 15:46 |
|
Bognar posted:RFC 2109: You're a lifesaver, thank you!
|
# ? Jun 27, 2015 02:26 |
|
Is RabbitMq the best .net solution for offloading tasks such as sending emails or compiling reports? I'm wanting to move some processes like that.
|
# ? Jun 27, 2015 16:09 |
|
Uziel posted:Is RabbitMq the best .net solution for offloading tasks such as sending emails or compiling reports? I'm wanting to move some processes like that. You might want to keep everything in the MS family and use MSMQ. We used RabbitMQ for about a year. It worked as advertised, the only complaint was that it depends on Erlang, and sometimes erl.exe would inexplicably and indefinitely peg the cpu once in a while (never figured out why). I'm not knocking Erlang, I don't know anything about Erlang, so this is purely anecdotal. Rather than our app having a RabbitMQ dependency, and RabbitMQ having an Erlang dependency, we just moved to MSMQ, which can be installed in a few click on most windows machines, and has built in .NET libraries.
|
# ? Jun 27, 2015 16:37 |
|
epalm posted:You might want to keep everything in the MS family and use MSMQ.
|
# ? Jun 27, 2015 16:48 |
|
I need to write a ton of integration tests for our restful API (test pretty much end to end). Unfortunately the ASP.NET WebAPI seems to require .NET 4.5. Unfortunately our internal standard is still stuck on .NET 4.0 (mostly due to two stupid libraries). Is there any decent alternative?
|
# ? Jun 27, 2015 17:24 |
|
Uziel posted:Thanks, that's good to know!!! Any gotchas or issues with MSMQ that you can recall? We have a really simple use case, both publisher(s) and consumer(s) are running on the same machine. We never had to deal with "The Internet", or even "A Network", so we stuck to Private (local) queues. I've no idea if suddenly gets brutal when you leave localhost, but I would hope that's what MSMQ was designed for. Worth investigating, at least.
|
# ? Jun 27, 2015 17:30 |
|
epalm posted:We have a really simple use case, both publisher(s) and consumer(s) are running on the same machine. We never had to deal with "The Internet", or even "A Network", so we stuck to Private (local) queues. I've no idea if suddenly gets brutal when you leave localhost, but I would hope that's what MSMQ was designed for. Worth investigating, at least.
|
# ? Jun 27, 2015 17:44 |
|
UberJumper posted:I need to write a ton of integration tests for our restful API (test pretty much end to end). Unfortunately the ASP.NET WebAPI seems to require .NET 4.5. Unfortunately our internal standard is still stuck on .NET 4.0 (mostly due to two stupid libraries). WebAPI is for creating RESTful services, not testing them.
|
# ? Jun 27, 2015 19:50 |
|
Ithaqua posted:WebAPI is for creating RESTful services, not testing them. However the HttpClient class is part of the WebAPI, which requires a lot less boilerplate code compared to HttpWebRequest.
|
# ? Jun 27, 2015 21:46 |
|
UberJumper posted:However the HttpClient class is part of the WebAPI, which requires a lot less boilerplate code compared to HttpWebRequest. System.Net.WebClient is not part of WebAPI, and is available on 4.0.
|
# ? Jun 27, 2015 22:11 |
|
Uziel posted:We would actually be running it on the same machine (dedicated to our app) since its an intranet application. Guessing private queues would work then!
|
# ? Jun 27, 2015 22:52 |
|
When is MVC6 coming out, anyway? We have a project we're starting soon and would like to use it.
|
# ? Jun 27, 2015 23:31 |
|
I have a WPF question that might not be the right question:code:
code:
edit: I fixed this by changing {Binding RelativeSource={RelativeSource TemplatedParent}} to {Binding RelativeSource={RelativeSource Self}} raminasi fucked around with this message at 19:38 on Jun 29, 2015 |
# ? Jun 27, 2015 23:39 |
|
uncurable mlady posted:When is MVC6 coming out, anyway? We have a project we're starting soon and would like to use it. Soon. A few weeks at most.
|
# ? Jun 28, 2015 00:10 |
|
epalm posted:We have a really simple use case, both publisher(s) and consumer(s) are running on the same machine. We never had to deal with "The Internet", or even "A Network", so we stuck to Private (local) queues. I've no idea if suddenly gets brutal when you leave localhost, but I would hope that's what MSMQ was designed for. Worth investigating, at least. Private queues are local to the domain I believe, not the machine. Also you may not care about this for things like sending email but make sure you're setting Durable to true. Otherwise you'll lose messages if the box restarts.
|
# ? Jun 28, 2015 02:36 |
|
GrumpyDoctor posted:stuff Did you bind it two ways? Edit: Nevermind, is see you want to bind it and read it from a property on the model.. Mr Shiny Pants fucked around with this message at 07:25 on Jun 28, 2015 |
# ? Jun 28, 2015 07:20 |
|
Uziel posted:Is RabbitMq the best .net solution for offloading tasks such as sending emails or compiling reports? I'm wanting to move some processes like that. As others mentioned, MSMQ is a fine message bus that is as easy to install as adding the feature to windows. We're using RabbitMQ at work and I really like it, but our use case is considerably more complex. We're distributing the load across multiple machines, and RabbitMQ can do this "out of the box", making it very easy to make sure only one machine handles a message (so "SendAnEmail" results in one and only one email, not every machine doing it). With MSMQ you'd need to write a Distributor service of some sort that determines which node actually ends up handling the message. It has a pretty decent admin UI (I disliked the default MSMQ admin), and is free and easy to use. We've been using it in production handling 10,000+ messages an hour without the issues mentioned by epalm, but our production rabbit servers are running on CentOS, not windows, so that might be a big difference. So yeah, it's probably perfectly save to use MSMQ for your use case. I just wanted to pitch in with a few of the nice features I've found using Rabbit. Not having to write distributors has saved me a pretty decent chunk of time.
|
# ? Jun 28, 2015 15:49 |
|
uncurable mlady posted:When is MVC6 coming out, anyway? We have a project we're starting soon and would like to use it. I imagine the same time as Windows 10, would make sense. Try developing using OWINn to get a taste that can easily be ported.
|
# ? Jun 28, 2015 21:52 |
|
VS 2015 / TFS 2015 on July 20th. http://blogs.msdn.com/b/somasegar/archive/2015/06/29/save-the-date-visual-studio-2015-rtm-on-july-20th.aspx
|
# ? Jun 29, 2015 17:24 |
|
If I want to mess around with AngularJS and MVC, is it best to just to wait for ASP.NET 5 to be released?
|
# ? Jun 29, 2015 19:53 |
|
Calidus posted:If I want to mess around with AngularJS and MVC, is it best to just to wait for ASP.NET 5 to be released? AngularJS is basically client-side MVC.
|
# ? Jun 29, 2015 20:32 |
|
Ithaqua posted:AngularJS is basically client-side MVC. Yeah, Angular is your front end, and you would use a WebAPI for getting/storing/whatever-ing your data. If I recall, the default single page application in vnext now uses Angular and WebAPI, so there should be templates for it there, but you don't need to wait vnext to use it. Just make an Angular site and implement a WebAPI on top of it.
|
# ? Jun 29, 2015 21:05 |
|
Calidus posted:If I want to mess around with AngularJS and MVC, is it best to just to wait for ASP.NET 5 to be released? ...Huh? No, not really. Start up a WebAPI project and go.
|
# ? Jun 29, 2015 21:35 |
|
The bogeyman in the angular room is Angular 2.0 which will break your 1.3 apps pretty bad. @UberJumper -- we consumed many APIs before all this HttpClient hoo-ha. In fact, you could argue that HttpClient is really a bad port of RestSharp on some levels. Check that out, it should handle most API client tasks and there are 4.0 compatible versions about.
|
# ? Jun 29, 2015 21:41 |
|
wwb posted:The bogeyman in the angular room is Angular 2.0 which will break your 1.3 apps pretty bad. Might as well never develop anything if you're going to worry about that.
|
# ? Jun 30, 2015 05:14 |
|
wwb posted:The bogeyman in the angular room is Angular 2.0 which will break your 1.3 apps pretty bad. I think the real bogeyman is that Angular 2.0 is going to require a bunch of extra steps since it's geared towards ES6 which means Typescript or another transpiler like Babel. Getting started in vNext with the whole Grunt/Gulp pipeline will be a head start to get you to Angular 2.0 even if you write Angular 1.x. The Adventures in Angular podcast was talking about it. Even if you don't want to listen to it you should at least look at the link and some of the links the show notes are pointing to.
|
# ? Jun 30, 2015 05:24 |
|
What would be a good way to add data to EF7 migrations? Say if I want to have a table that should contain a few options and I want to add them right after that table is created. Do I just add the data in code to the 'Up' method in the migration?
|
# ? Jun 30, 2015 11:45 |
|
gariig posted:I think the real bogeyman is that Angular 2.0 is going to require a bunch of extra steps since it's geared towards ES6 which means Typescript or another transpiler like Babel. Getting started in vNext with the whole Grunt/Gulp pipeline will be a head start to get you to Angular 2.0 even if you write Angular 1.x. The Adventures in Angular podcast was talking about it. Even if you don't want to listen to it you should at least look at the link and some of the links the show notes are pointing to. You don't have to use Typescript or ES6 with it. ES5 will work fine.
|
# ? Jun 30, 2015 12:56 |
|
RICHUNCLEPENNYBAGS posted:You don't have to use Typescript or ES6 with it. ES5 will work fine. I wasn't saying ES5 wouldn't work but ES6 brings more concise constructs for writing Javascript. If you head to the Angular site they have examples in both Typescript and ES5. Maybe it's because I don't write a lot of JS but I think the Typescript examples are much easier to read. The bigger issue here is the speed of JS improvements vs the browser implementation. We are now at the point where you can start to assume ES5 (if you can drop IE8). The ES5 spec was finished in December 2009 so 5ish years to assume you can just use it without polyfills. How long for ES6 (Javascript 2015) until you can assume more browsers support it? Maybe 3 years? There's already proposals for ES7 (Javascript 2016). When will that be in all browsers? I think writing your JS and transpiling it down to a more common version of Javascript like ES6->ES5 is going to become the norm for Javascript for a long time. You might as well get used to it.
|
# ? Jun 30, 2015 15:10 |
|
I guess. ES5 isn't really bad. I don't like TypeScript, personally.
|
# ? Jun 30, 2015 15:29 |
|
RICHUNCLEPENNYBAGS posted:Might as well never develop anything if you're going to worry about that. This is my problem. I worry about that, and I never develop anything. Sigh.
|
# ? Jun 30, 2015 17:55 |
|
I've got an entity framework question of my own, at least I think it's EF related. Anyway, what I need is a joining table that links 2 PKs from the default user table, with another table that basically tracks edits made and links them to a user. Now I could just have the editHistory table have a column that links to the ID in the user table, but that goes against n:n, and I'm hoping this wouldn't be the correct thing to do. I'm using MSSQL for this, so I know I can have a table that just has 2 FKs, but how do I a) create this code first when one of the tables is the default user table created by EF or whichever framework is responsible for it, and b) Is it possible to just add rows to this table by sending (userId = user, editId = edit) to the FK table, or would I need to get the ID from the user table first (and add the history to the editHistory table then get its Id), then add that to the FK table? Sorry if it's hard to understand, and if this is better off as a database question, as I'm not completely used to how EF works yet, and there isn't much help on this matter online either, the main problem being that one of the tables I want to link isn't a table I've created.
|
# ? Jul 1, 2015 01:24 |
|
uXs posted:What would be a good way to add data to EF7 migrations? Say if I want to have a table that should contain a few options and I want to add them right after that table is created. Make all your model changes. If you haven't run update-database yet, you can run add-migration <previousmigrationname> and it will overwrite with your updates. If you have run update-database, just run add-migration with a new name.
|
# ? Jul 1, 2015 05:09 |
|
|
# ? Jun 5, 2024 06:58 |
|
Yes, I have always just stuck that stuff in the "Up" method. Maybe there is a more "proper" way but it has worked fine for me.
|
# ? Jul 1, 2015 14:32 |