Hello everybody. I'm trying to solve the Travelling Salesman Problem (TSP) with Genetic algorithm
My Genome is permutation of vertex in graph (path for Salesman).
How should I perform the crossover operation over my genomes?
Where I can find implementations of my problem in C#?
...
I browse to a a dll and add it as a reference. The problem is the reference absolute path is being stored. How do I change this to be a relative reference instead?
...
Hai
I am developing an C# application(not asp.net) in which I have to get the urls typed by the user in the browser and I have to compare the urls with a set of urls and decide whether to allow or to deny the user to navigate to the website.
I have tried with appending to C:\windows\system32\drivers\etc\hosts file but its not working.So...
What initially seemed like a problem with an easy solution has proven to be quite an interesting challenge.
I have a class which maintains an internally fixed-size, thread-safe collection (by way of using lock on all insertion and removal operations) and provides various statistical values via its properties.
One example:
public doubl...
I have come across some code in a few projects which use if(Is.NotNull(SomeObject)) instead of if(SomeObject != null). Is there any difference between the two methods? When would one use a particular method over the other, or is it just a style choice?
...
I have been charged with working on a feature for certificates my company prints out for clients when they completing specific training course. Currently we provide them with a basic PDF file that looks like the average Joe award but many of our customers want to be able to add and reposition content on the actual PDF and then print them...
Our user store is an LDAP server called eDirectory. How do you change user passwords using System.DirectoryServices.Protocols?
...
Hi,
I'm trying to create an instance of ResourceManager:
public ResourceManager(baseName, Assembly assembly)
I know the name of the assembly that the resource is in (it's not the executingassembly), and it's referenced in the project, but how do I specify it here in the code (using the above constructor)?
May be a bit of a stupid qu...
There are so many IOC choices, that I don't know where to begin. I've looked at Spring.NET, Unity, Ninject, Windsor, and StructureMap so far, and I have no idea what makes one better than the other. So, what is your favorite IOC, and what feature(s) makes you use it over any other?
...
I am creating a WPF application that will integrate with an existing system using a Clipper database. I have been working through some issues trying to access char fields with lengths greater than 255. The Jet and FoxPro OLEDB providers seem to cut off the data in these larger fields. I have modified and used the DotNetDBF library but...
does anyone know if there is a free IMAP library for vb.net?
i would like to be able to read and send email from a gmail account using the library
...
Hi,
I would like advice on the best way to restrict access to a weba pplication (using .net 2.0 and II6) based on the clients IP address. The two ways I am considering:
1) Through the server side code - check the client I.P against a list of IP addresses within the web.config.
2) Through IIS by creating a virtual directory and restric...
I have a requirement to have a new task appear in a user's task list in Outlook. The catch is that the source of the task will be generated in a Java environment. Does anyone know how I can create an Outlook task using Java?
Thanks.
...
How would I create a validation rule to ensure Value2 has the same value as Value1? If a validation rule is not the best method then what would be better? I could have the TextChanged event handle this, but I'm wondering if there is something more elegant.
<TextBox Name="Value1TextBox">
<TextBox.Text>
<BindingPath Path="Valu...
Hi,
If I use
sometype.GetProperties();
I get all of the properties from the type and it's parent. However I only want to retrieve the properties defined explicitly in this type (not the parents). I though that was what the BindingFlags.DeclaredOnly option was for. However, when I try this:
sometype.GetProperties(BindingFlags.Dec...
Fiddler seems to be killing a webservice call I'm making via SSL.
When I have fiddler capturing traffic (with Decrypt HTTPS traffic and Ignore cert errors both checked), my Web Service call becomes untrusted (I'm able to view SSL in a browser, but the web service call seems to be 'not ignored'). Essentially, I'm trying to catch the X...
I am using OleDB to connect to an excel file using this connection string
@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties=""Excel 12.0 Xml;HDR=YES"""
But when I do this (which is inside a TransactionScope())
using (OleDbConnection conn = new OleDbConnection(connectionString))
{
conn.Open();
...
}
I g...
I'm writing an XSD schema for a project I'm working on. The schema below is one I took from a microsoft example and modified slightly.
I am trying to use the key and keyref to declare a unique key for one set of items and then refer to that key in another section.
I couldn't get it to work for a long time. I would write the schema and ...
I have created a very simple webservice using C# in VS2008. I would like to publish this to a server using Jetty-6 as its web server. Is this possible, or is IIS the only way I can go.
...
I'm using C# .NET 2.0. I need to determine if a PID exists. I came up with the following code:
private bool ProcessExists(int iProcessID)
{
foreach (Process p in Process.GetProcesses())
{
if (p.Id == iProcessID)
{
return true;
}
}
return false;
}
Is there a better way to do this ot...