|
An alternative, not sure if it fits the question; Draw a square box around it, and stretch the image until one of the edges of the irregular shape hits the box.
The center of the box would be easy to find, and you could take that as the center of the irregular shape. Next, draw lines from the center to the edge of the irregular shape; that would give you a List<Radius> . For a "real" circle, the radius would be half the length of the box.
I think that you'd want the standard deviation, not the mean. Remember that the line-thickness of the irregular shape also has an influence on the outcome, you'd have to experiment a bit to determine the appropriate margins as to what would be called a "circle", and what not.
I are Troll
|
|
|
|
|
Hi Friends
An error "An Invalid IP address was specified" occuring while compiling below code
string Server ="smtp.mymail.com";
IPEndPoint ipe = new IPEndPoint(IPAddress.Parse(Server), 25);
please give a solution to overcome error
thanks in advance
-kk.tvm-
|
|
|
|
|
IPAddress.Parse only takes IP Addresses, you have supplied a domain name. You need to resolve this back to an IP address. You can use Dns.GetHostAddresses to do this.
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
IPAddress parse only IP address not FQDN...
Use this code instead:
Take care you may have more that one address eg. look at the www.google.com for instance.
So take the first entry if you don't need balancing.
string hostName = "smtp.mymail.com";
Console.WriteLine("Local hostname: {0}", hostName);
IPHostEntry myself = Dns.GetHostByName(hostName);
foreach (IPAddress address in myself.AddressList)
{
Console.WriteLine("IP Address: {0}", address.ToString());
}
|
|
|
|
|
Hi,
I've one stencil(sample.vss) file and trying to create Visio.Document object. How to create visio document object for the sample.vss file. Thanks in advance.
|
|
|
|
|
Most of MSFT's objects are propriatary. Not that you can't figure out the protocol (in this case Visio protocol) but it's usually pretty complicated. Not to panic, what I've done in the past is attempt to save MSFT as a web page and decipher it that way. Looking at HTML is the "Common Thread" that we all easily understand.
Because Visio involves graphics you may have to dig in a bit deeper because yes, even graphics have protocols.
XML is another good way to "skip the internals" of a file protocol. XML is another Easy way to get the Visio engine to respond to simple commands via the markup.
So here's a start fo you take a look here and see if you can't find a mapping for the file format you want: Google Search for Visio File format
|
|
|
|
|
Hi All, this is my first post. Hope I make sense!
I am maintaining an application that communicates in the following way
VB6 (COM.class1) -> .NET COM (COM.class1 to WS.class1) -> .NET Web Service (WS.Class1)
What the above means is that a .NET COM component has a class that is exposed and populated in VB6. When this object is passed to the COM component, it's contents are copied over to a similar class which is defined in the .NET Web Service class, and then this object is passed through to the .NET web service.
I can see that serialisation should have been possible to just have one class that can be passed without any copying in the COM object, but that's a minor issue at the moment!
I want to be able to find the best way to pass through a field name and value from VB6 to the web service using the COM object to communicate? I want to be able to distribute new versions of the web service (with additional fields for instance) without the need to release the COM object and/or the VB6 application to ensure backward compatibity.
I hope I am making sense, if not, i'll try to clear up anyone where they are lost!
My first idea was to pass through a 2 dimensional array, but I don't think that's the neatest solution!
|
|
|
|
|
using a plain method enables you often to focus on the whole software instead of fighting with technology.
create an interface like
int Set( string name, string value );//Return code
string Get( string name );//the result
If you think have to write a lot of code, think also that you avoid a lot of debugging and headache
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
oops, just realised I said I want to pass through a field name and value, but I actually meant passing through a class of field names and values, sorry!
The class I have has things like Name, dob, surname, etc and these will be only simple types (like int, string, etc).
I am thinking at the moment to pass through a two-dimensional array and have a type-library that is used to interpret the fields on the web service and on vb6 when assigning values in the array to pass through...
|
|
|
|
|
my simple way will free you of a lot of pain, and you can put up your mind in other aspects of your project.
An array will you you pain!!! Indexe changes, sizes and name changes. Beware of it
Give me some points against my proposal (and remember them for the project end)
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi all,
I am preparing for MCTS certifiaction.
I want 70-536 dumps.
Anybody has dumps then send me at gohel_sunil@hotmail.com,gohelsunil@rediffmail.com
Thanking You,
Sunil G.
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:53am.
|
|
|
|
|
No not answers. I want questions.
|
|
|
|
|
which one is it the framework or web application?
|
|
|
|
|
There are three MCTS certification paths:
1. Technology Specialist: .NET Framework 3.5 Web Applications
2. Technology Specialist: .NET Framework 3.5 Windows Applications
3. Technology Specialist: .NET Framework 3.5 Distributed Applications
I am going for web application first one.
70-536(Microsoft .NET Framework - Application Development Foundation) is common for all the 3 exams.
Thanking You,
Sunil G.
|
|
|
|
|
http://tinyurl.com/yjvo4bk
|
|
|
|
|
I took a dump this morning. Do you want me to send it to you?
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Yes, send me on gohel_sunil@hotmail.com;gohelsunil@rediffmail.com
|
|
|
|
|
Somehow, I don't think you would get what you are expecting[^]...
BTW: Never post your email in any forum - webbots trawl for such, and spam, spam, spam is your reward!
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
can u plz mail it to my id too
vinay.dwivedi@hotmail.com
thanks
|
|
|
|
|
Are you sure you want me to do that. Sometimes, it's a pretty big pile file..45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
It's times like these, I hate being an Indian.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Yes, but you have to admit it *is* pretty funny. I feel like I've been plopped into a Monty Python skit...
|
|
|
|
|
It is funny, but I feel bad that he's my countryman. Not that I could help it though...
Strike that, I could actually help. It must be easier for me to ship him dump. Same day shipping, perhaps?
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Plzz send it to my id vinay.dwivedi@hotmail.com
thank you
Vinay
|
|
|
|