Wednesday, May 13, 2009 by Nate Bross
Someone asked on Stack Overflow:
Is there any way to determine if an XBAP (WPF hosted in a browser) application has network connectivity? If not, how would a traditional windows client written in C# and .NET determine if it has connectivity?
Basically the use case is an XBAP application running on a mobile laptop connected to an intranet via WiFi. The laptop will not have a connection to the Internet. The WiFi connection may or may not be there depending upon where the user is at the time.
I posted the following answer, which was chosen as the accepted answer and received 4 upvotes:
GateWayIPAddressInformation should work: http://msdn.microsoft.com/en-us/library/system.net.networkinformation.gatewayipaddressinformation(loband).aspx
If you get the gateway IP address, and you can Ping (http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping(loband).aspx) it you are probably connected.
Originally posted on Stack Overflow — 4 upvotes (accepted answer). Licensed under CC BY-SA.
Wednesday, May 13, 2009 by Nate Bross
Someone asked on Stack Overflow:
I’m trying to send information from a form and a hidden email variable (from a db) to a PHP script using cURL. I have the post items moving correctly, but I am not sure if can also send a variable vai the url. (the $_Get)
I posted the following answer, which was chosen as the accepted answer and received 1 upvote:
A standard querystring should work.
Originally posted on Stack Overflow — 1 upvotes (accepted answer). Licensed under CC BY-SA.
Tuesday, May 12, 2009 by Nate Bross
Someone asked on Stack Overflow:
I have a certificate for that is valid for *.MyCompany.com. That is fine for my dev and test servers because the first part of the URLs for those computers ends like that.
I want to test this on my computer and the certificate is incorrect because my computer defaults to the url MyComputer.MyCompany.net.
Is there a way to fake out IIS in to thinking that my computer is .MyCompany.com or am I out of luck when it comes to testing this?
Thanks, Vaccano
I posted the following answer, which was chosen as the accepted answer and received 2 upvotes:
You should be able to edit the host header values for the IIS website to accept *.Mycompany.com. To get the DNS to resolve and work correctly, you may need to add an entry to your windows hosts file — mycomputer.mycompany.com 127.0.0.1. that will let you test locally.
Another option would be to use a self-signed cert for local development.
Originally posted on Stack Overflow — 2 upvotes (accepted answer). Licensed under CC BY-SA.
Thursday, May 7, 2009 by Nate Bross
Someone asked on Stack Overflow:
I want to develop a photo browser application in Windows platfrom, the UI should be very cool and has 3D effects,Adobe AIR is a good engine as GUI, but I don’t know how to integrate my C and C++ engines which I worte before into Adobe AIR, it seems the engine can’t hold ActiveX? What can I do? Thanks.
I posted the following answer, which was chosen as the accepted answer and received 4 upvotes:
If you are windows only, something like WPF is probably a better option, since you will be able to leverge any old C/C++ libraries you have throuhg PInvoke.
Air is best suited to using data with web services.
Notable comments
Nate (1 upvotes): I have never had issues with the performance of WPF. I’ve run WPF apps on tricked out gaming rigs and netbooks and never had major issues.
Originally posted on Stack Overflow — 4 upvotes (accepted answer). Licensed under CC BY-SA.