« first day (2681 days earlier)      last day (2493 days later) » 

00:00
0
Q: Who owns the Message Box, the View or the ViewModel?

Robert HarveyI'm developing a WPF application using Mahapps.Metro, a Nuget package that provides "modern" UI styling. I have created a dialog that is one of those selection dialogs where you select an item on the left hand side, click the right arrow button, and the item moves to the right hand side. One ...

@RobertHarvey I'm pretty much in agreement. VM shouldn't be involved in displaying a message.
 
7 hours later…
07:15
C# doesn't automatically create a default copy constructor, does it?
07:27
nope
often you can copy objects by serializing followed by deserializing
mr5
mr5
08:15
float angle = (float) Math.atan((innerY - outerY) / (innerX - outerX));
float offsetX = (float) (Math.cos(angle) * maxDist);
float offsetY = (float) (Math.sin(angle) * maxDist);
why is it that all my x-axis are positive here?
I am trying to make a virtual joystick and got stuck a bit in this Math problem here.
the calculation for the angle is quite a bit off I think for the coordinate system
08:58
@mr5 you probably want atan2, atan used in a way you do loses the +/- information that you can get if you pass x and y separately
basically instead of atan(y/x) try atan2(y, x)
mr5
mr5
@milleniumbug yes that's it. thanks!
atan2 also does the right thing if x == 0.0
10:02
I have been going in circles now. I don't know where to ask this. So another user has posted the same question that I have. But the accepted answer does no longer seem to apply. Should I post a new question?
 
2 hours later…
11:50
@sammyg I see two options: post a bounty on the old question, or post the new question with a remark "I'm aware of the question XYZ, but unfortunately the answers there don't work for me because modern X does not support approach Y"
...or something similar
 
1 hour later…
12:59
Hi All
There is a problem communication between 2 WebAPI applications in a server

We have a 2 webapi service applications under same website, Let us say WebService1 and Webservice2 which provide a set of Business functionality. These 2 are deployed as 2 sub applications in IIS. Both are written in .NET MVC using C#. These 2 are deployed in servers as 2 seperate applications.

Recently we found there is a communication problem from while calling a method in webservice1 from webservice2 by using webservice url(www.Appstage.domain.com/webService1/Controller/WriteMongo). This method connects MongoDB
127.0.0.1 is the loopback address, the code throwing that exception isn't trying to talk to a remote machine
Look for a DNS rule on your domain, however you do that in your company
And look in the hosts file on the faulting machine to see if someone has overridden the domain name to point to the local machine
Thank you Tom
One Question
THe only thing is it was working fine earlier before our latest deployment
After new deployment only it causing the problem
it's also going through port 443, which is https. Check the site bindings in IIS to ensure there's an https endpoint configured
If it was working before it's possible your deployment process is wiping it, but that would be unusual
wiping the site config would be an unusual way to do IIS deployment but it's possible
When you say site config, do you mean web.config in site level
Well I'd use IIS manager to change it, but yes I believe that goes in web.config ultimately
13:10
I have checked web.configs of old package and new package, both are identical
Is there any where else in IIS that I have to check?
select the site in iisman > bindings
But
That stack trace does suggest that the connection is being made to the local machine, which I assume is not right
But we are able to access same webservice from UI through AJAX
Only when we access from another webservice in it is failing
Well yeah, the connection isn't originating on the same machine
OK. Thanks I will check
Or, that stack trace is nothing to do with the problem
Is the app that's faulting reading that URI from a config file? Is it definitely the correct URI in that file? Someone not understanding what they're doing and overwriting stuff isn't uncommon
13:23
Yes. That UI is correct.
We haven't make any change in Webservice2
I have checked in TFS. There is no check in history between Previous Deployment date to current Deployment date
*The URL is correct

« first day (2681 days earlier)      last day (2493 days later) »