.net

human body border detection using .NET

there is any body know any library that enable us to detect the body border or help me notify to body movment according to stream of images ...

Auto encoding detect in C#

Possible Duplicate: Determine a string's encoding in C# Many text editorsr (like Notepad++) can detect encoding of arbitrary file. Can I detect encodoing of file in C#? ...

Specific .NET XML enumeration procedure

I'm slightly overwhelmed by how many ways there are of processing XML in .NET.. In my case, I'm porting a ton of C lines over and I would like to wrap my code and keep it basically the way I had it (but use classes of course). I'm not exactly looking for THE fastest way, but more or less something consistent with the API I had before. ...

HttpWebRequest initializing - response never received

I am currently working on an implementation of an application for Windows Phone 7 that should retrieve the SHOUTcast stream (inspired by this question). The stream location is represented by an IP address and a port. Here is an example of a SHOUTcast stream URL: http://78.159.104.183:80 I am trying to make a HttpWebRequest to get the ...

Filtering results based on many to many relationships

I'd like to filter the results of a query which returns the results from two tables which have any to many relationship to each other. Consider the following scenario: (SQL Server or MS Access) Table: Students --StudentID --StudentName Table: Grades --StudentID (Foreign Key) --CourseID (Foreign Key. Ignore for the sak...

How do I send real-time data over UDP?

I have to send a sequence of video frames over UDP as fast and real-time as possible and while I got the basics working, I am running into all sorts of difficulties. Some of my goals: Data will normally be sent over dial-up (hence UDP instead of TCP), but also needs to support fast Ethernet. It's OK to occasionally drop frames (hence U...

How can my application register itself as a browser in Windows 7?

I've written an application that launches browsers based on the provided URL -- the idea is, that I've got certain sites that I'd like to automatically open in IE, while the rest should open in my default browser. The thing works beautifully, so now I'm trying to register it as a browser so I can set it as my default. I'm trying to do it...

Where should a windows service write files to

I have a windows service which needs to write some files to disk, if I don't specify a path it tries to write them to system32 folder which throws an exception because the service is being executed under the localservice account, I would like to know which is the recommended location to save this files and which folder I could use so I d...

When calling 'SaveChanges' receiving the exception "Cannot insert the value NULL into column 'XXXXX'"

I have an application that creates entities in offline mode then saves them to the database when it is available. Many entities may be created while the application is offline. Here is a basic version of the method: public void SaveEntityToDatabase(Entity entity) { Context.Entities.AddObject(entity); Context.SaveCh...

Is there a Hierarchical interface supplied by Microsoft .NET framework?

I want to implement a control with a specifiable DataSource property and it would be great if I could inherit and the type of the DataSource implements some sort of Hierarchical interface with properties and methods ensured. Does .NET supply such an interface? Googling revealed nothing. ...

What effect does an addition of an assembly have on an application?

Hi, If I add an assembly, what effect does it have on my application? Does one assembly makea big difference in footprint or runtime performance? Does an unused assembly get discarded at some point in compilation? Thanks ...

Can I retrieve physical/unmanaged information of .Net (C#) managed object

Hi, all: I am learning .NET/C# and because I almost always want to find out how managed object represent in real memory, I am wondering if there is any programmatic method to get these information, including object memory address, size in byte, memory layout and so on? I know that .NET discourage it and hide information as internal imp...

Prism: Prevent executing a command in duplicate views using IActiveAware?

Hi There, I have a Silverlight application that has three regions that will host the same Views. What I want to know is, how may I create a zoom control for each of the views, without zooming all of the views (assuming the zoom action is using Prism Commands). Would IActiveAware be the right approach? ...

How to get information about network adapters in c++?

How to get information about all network adapters in system? Name, Manufacturer, Location(PCI, slot2), Driver Version. Actually i retrieved Name and Manufacturer with WMI but i can't find Location and Driver version. I need only c++ solutions not MFC/clr. winapi function? wmi (missing something)? Also i need to retrieve .NET version on ...

What benchmark to test how well my hardware for my C#.NET and SQL Server?

What benchmark would test how well my hardware rates, for my C#.NET and SQL Server ? I just like to know how good my hardware rates, for my software. ...

With a windows Application (winapp) when/where should i Dispose of my UnitOfWork?

Hi folks, I've got a windows application that creates some threads to parse some txt files. Nothing too crazy. I'm using StructureMap Dependency Injection to create any instances of my Services and Repositories. So my Winform has a static property which returns the instance, based on what's been registered. Works great .. except I'm n...

LINQ2SQL LIKE Command for Phrase

Hi all, I am trying to retrieve a list of string where it contains "Britney Spears", and this is what I use from p in Objects where p.Title.Contains("Britney Spears") select p That works fine, but if I want to select title which is "Britney Jean Spears", "Britney 'Sexy' Spears" it doesn't work, so my question is how do I insert a wil...

Set User-Agent when using XmlTextReader

Is it possible to set the User-Agent string when making an HTTP request with XmlTextReader? If so, how might I go about doing that? I am using VB.NET with the .NET 2.0 runtime, but can read your C# suggestions just fine. Thank you for your time. ...

ASP.net Forms authentication ticket compatiblity mode

In forms authentication there is a new option in .net 4.0 called ticket compatiblity mode. What does this mean and what will it do for me if I switch it to 4.0? Framework40 vs Framework20 I recently ran into a problem where the client machine was off from the server time and forms authentication stopped working. Would this solve it s...

How can I know items is in the enum?

In this question, I use xor operator between enum with [Flags] attribute as following: [Flags] enum QueryFlag { None = 0x1, ByCustomer = 0x2, ByProduct = 0x4, ByDate = 0x8 } QueryFlag flags = QueryFlag.ByCustomer | QueryFlag.ByProduct; To add an QueryFlag, of course we should use | operator. flags |= QueryFlag.ByDate; To re...