Hi everyone,
I have been trying to do a regression analysis on some data points with c#.net. Can anyone suggest some references to me to be able to plot the data points as well as the best fit line on one chart with c#.net?
...
I guess when I generate the entities, they don't have [DataContract] attribute, so I cannot pass the object to client.
...
See RFC 2822, section 2.1.1 and 2.2.3 to start
Does System.Net.Mail.MailMessage auto fold its header fields if their content exceeds the maximum length restrictions? RFC2822 states that a header field must not exceed 998 characters per line. To get around that, CRLF may be inserted to have a header field take up more than one line.
T...
As for personal fun and challenge, I wanted to add a way to login on my own personal computers. All are currently using Windows 7.
Normally this would use ICredentialProvider or something like that. Basically the goal here is to have 2 way to login, the normal user/password one and the alternative (mine) with a Yubikey.
Is there any wh...
Hi fnds,
There are lof of difference between Linq to Sql and Entity framework like Linq to SQL is one to one mapping and EF is many to many mapping and many other which can be found at
http://stackoverflow.com/questions/8676/entity-framework-vs-linq-to-sql
But here I am asking with EF and Linq to Sql, do we create Entities first and th...
Hey all,
Let me start with the definitions of the objects with which I am working and then I'll do my best to explain what I'm after:
class CacheItem<T> where T : EntityBase
class CacheCollection : List<CacheItem<EntityBase>>
OK, so my generic collection, CacheCollection should be a list of CacheItems which I can manipulate accordin...
I am attempting to pull some information from my tnsnames file using regex. I started with the following pattern:
MYSCHEMA *? = *?[\W\w\S\s]*\(HOST *?= *?(?<host>\w+\s?)\)\s?\(PORT *?= *?(?<port>\d+)\s?\)[\W\w\S\s]*\(SERVICE_NAME *?= *?(?<servicename>\w+)\s?\)
which worked fine when MYSCHEMA was the only schema in the file, but when t...
I have a mobile application that interacts with a WCF service.
Do I have to host the wcf in IIS in order for the mobile to connect to it via internet?
...
Suppose there is the following code:
foreach (...)
{
List<int> localList = new List<int>(100);
// do stuff
localList = null;
}
From time to time, I am tempted to null references just as the procedure is about to exit (that is, return) or in this case, just as it is about to loop. Is there any benefit to doing so, even i...
I'm currently working on a generic collection class and I'd like to create a method which returns an object from the collection. If the specific object does not exist in the collection then the object should be created, added to the collection, and then returned.
I'm accounting a few problems though. The generic collection if of a typ...
This is a strange one. I changed something (not sure what) and now my app's view doesn't compile at runtime.
The view itself is strongly typed:
<%@ Page Language="C#"
MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage<MyNamespace.OperatorModel>" %>
When I visit the page, it fails to compi...
Wanted for property grid, in the PropertyType function of the class derived from PropertyDescriptor, but I don't want an actual DateTime object - I'll just convert it to and from String in SetValue and GetValue.
...
I suspect that I will soon exhaust the speed improving possibilities of threading on multiple cores in a single computer.
What does this .NET desktop programmer need to learn to move a parallel-feasible problem onto multiple computers? My preference is to minimize the total lifecycle programming effort so it would be preferred if the...
For my mobile app, I used the Add Web References to generate the client proxy to interact with my WCF service.
Then I read somewhere there is an equivalent of SvcUtil for compact framework: NetCFSvcUtil.
Should I be using the NetCFSvcUtil instead of going throught the Add Web References? Or the Add Web References uses NetCFSvcUtil in ...
I'm working on a project involving the .NET ReportViewer, and I'm having issues connecting to the Report Server.
I'm a .NET newbie so bear with me. I can't put up the code but hopefully someone will be able to give me a little guidance here. I dragged the ReportViewer control from the toolbox onto a newly created page. Eleventy billi...
Hello all,
I have a WCF service that I have written, and exposed as a windows service. In Visual Studio 2010 for two apps, I can right click on references, select "Add Service Reference...", put the required information in, and it works just fine.
For a different application, when I do this everything looks to be working fine, but when ...
I need to solve the following problem for one of my clients.
They have an installer which installs a SQL server database + IIS website.
The SQL database user can have any kind of date format (DD/MM/YYYY, MM/DD/YYYY,...) depending on the locale of the sql server.
The IIS website can have any kind of date format (can be different from sql...
In my ASP.NET app, I noticed that the results of any web service calls are cached. I don't want any results to be cached, how can I stop the browser from caching the results?
Update:
Here's the proxy code generated by calling the web service URL appending '/js', e.g. /mywebservice.asmx/js
var MyWebService=function() {
MyWebService.ini...
As part of a windows service
I'm accepting incoming socket connection using
myListener.BeginAcceptSocket(acceptAsync, null)
The acceptAsync function executes on a seperate thread (just as expected).
When the service is requested to shutdown, I "signal" the threads that accepted and are currently working on the sockets, to finish up.
...
I am using a few sessions that should be terminated when the user is done. I stumbled on these 3 session killers. When is the best time to use these as I use sessions more time than not. Also, is there any other session termination I am not aware of?
...