What makes you think a web site by and for programmers is not going to have that base covered?
Oh, and by the way, your account will be deleted in the next 30 minutes or so.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "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
Actually this is not your fault, MySQL reader transforms TINYINT to BOOL by default. In order to prevent this, you need to add the following line to you connection string: "Treat Tiny As Boolean = false".
Just by doing this, TINYINT will be treated as a numeric value
to get the line of intersection between two rectangles in 3D , I converted them to planes, then get the line of intersection using cross product of there normals , then I try to get the line intersection with each line segment of the rectangle
the problem is the line is parallel to three segments , and intersect with only one in NAN,NAN,NAN which is totally wrong , if you can advice me what's wrong in my code
intersect with only one in NAN,NAN,NAN which is totally wrong
No it's not!
To calculate such a line, it has to exist. It doesn't always exist in real life. What is the line of intersection between my desk top and the floor of this room? What is the line of intersection between my floor and your floor? You need a reality check before such a calculation.
I am trying to bone up on my C# skills and have written a new project from scratch. What I am doing is writing a class to simulate a thermometer that returns a temperature measurement and the time of the measurement at fixed intervals. This class will be consumed by a for and the temperature and date displayed on that form as it is updated.
I know that the form cannot be updated by the thread in the Thermometer class because I get a CrossThreadMessagingException
I know that I am somehow supposed to invoke the delegate but in the context of the code I haev written i really don't know how to do that. Could someone show me thow to change the code to achieve this and explain why that code works?
In one of my applications I use UDP multicast to broadcast event notifications to an arbitrary number of clients.
This works nicely, except for one system where the application is running on Windows Server 2008R2.
On this machine, the call to Send() for a newly created UdpClient hangs.
I'm trying to send around 2K of data, well below the maximum size of 16K for UDP packages.
The process of sending is quite straightforward (at least from my point of view):
- Create a UdpClient
- Join the corresponding multicast group
- Serialize the event data
- Send this data (in row to several destination ports, if this makes any difference)
- Leave the multicast group
I couldn't find anything about Send() hanging so far, but perhaps someone here has an explanation?
-- Black holes are the places where God divided by 0...