My question is, is the class included below for a single-reader single-writer queue class thread-safe? This kind of queue is called lock-free, even if it will block if the queue is filled. The data structure was inspired by Marc Gravell's implementation of a blocking queue here at StackOverflow.
The point of the structure is to allow a ...
Hi,
I am trying to query the windows desktop search API using SQL.
I have to say I really HATE the windows 7 search GUI, and so I decided to write my own. I have a lot of files indexed (approx 1.000.000), and I want to do a search for names. Something like: Show me every name which contains "bunny".
But here i run into a performance p...
I have developed a Windows service using Visual Studio 2008. I want to install that service in a machine where Visual Studio is not installed, but .NET 3.5 is installed.
Generally InstallUtil.exe shall be used for installing a Windows Service, but the InstallUtil.exe utility is not available in .NET 3.5. When I tried installing that ser...
Hi, I am required to develop software in English and Spanish and as such all of our apps are setup for localization. Our basic solution/project structure is to have a central project, called ProjectName.Core or ProjectName.Localization, and in this project have the following files.
Strings.resx - Contains all localizable (in English) s...
Hello,
I have a string with 
 in it the regex:
string value = Regex.Replace(textNode.Value, @"\s+", " ");
value = value.Replace("
", "");
value = Regex.Replace(value, @"\
", "");
value = value.Replace("\n", "");
didn't remove it.
How do I go about removing 
?
Note: It did function as a newline when added to a textbox.
T...
Does anyone know of a .net wrapper around either python or java Google App Engine services?
Any help appreciated // :)
...
Can you remove an item from a List<> whilst iterating through it? Will this work, or is there a better way to do it?
My code:
foreach (var bullet in bullets)
{
if (bullet.Offscreen())
{
bullets.Remove(bullet);
}
}
-edit- Sorry guys, this is for a silverlight game. I didn't realise silverlight was different to th...
I am the only developer working on an ASP.Net MVC project but will share it across multiple computers during development. I'm using VS 2008 and will back up against either Subversion or Git. I'm looking for recommendations on how to configure the project dependencies and web.config files to ease the pain in transitioning between system...
I'm curious as to what the "right" way to convert builtin types is in .NET. Currently i use Convert.To[type]([variable]) without any null checking or anything. What is the best way to do this?
...
Hi
I think that you can set like on post and get methods in jquery timeouts but I am wondering does jquery have a global timeone like it has with ajax start and stop.
Like I would like to set it that if say a post or get or some sort of ajax request is running and it runs more then X amount of seconds. That a popup or something in that...
... for .NET with VS Team System Test Ed? Yes I know I should make my UI thinner, but I'm working with old code and I'd like to unit test the current state before I make major refactorings.
I've tried NUnitForms and White, but they seem to have a non-obvious dependence on NUnit. I get thread locking/managed code execution errors whene...
For example on my site i got links to twitter,facebook etc.
and the link to the facebook is wrong, so when click the facebook link on my asp.net mvc page.
HTTP 404 will be thrown by the browser, so how can this be handled as this wont be caught by Application_Error in the global ascx page.
One way i could think of is tht clicking the li...
Hi,
I'm currently trying to create the app.config at runtime. The basic idea is that I'm deploying several config files and based on an environment variable the application itself decides which one to use.
Currently I'm copying the config file I'd like to use to myapp.exe.config, and refresh all the sections.
The problem I'm facing is,...
By using grails I have to consume WCF WebService.I was trying but could not.If someone could just tell me the steps to call a webservice by using grails.
...
hi all
I am doing Projects in remoting , i easily send/receive single files from a client.but
i don't know how to send multiple files concurrently from a client.can anyone help me with this.
please give somelinks i will feed on it.
...
Hi,
Is there a way via .NET/C# to find out the number of CPU cores?
Thanks!
PS This is a straight code question, not a "Should I use multi-threading?" question! :-)
...
The following code is thread-safe as far as I can tell, with the caveat that I am not looking for a singleton pattern (I don't care if multiple threads get different instances of MyObject as MyObject is immutable. After the potential contention among the concurrent threads that create multiple instances, subsequent threads will all get ...
Hello,
i have a TabControl with several TabPages and controls in every TabPage. I'm using some data binding and validation bult on entity framework. The problem is that when error occures on the tab, other than the visible one it cant be seen. Is there a way to make TabPage selected when the error occures on some control, hosted in it?(i...
I've noticed in .net its extremely easy to reverse engineer exe's. Is this because .net executables are merely instruction code for the .net engine, and because of this .net is an interpreted language? And never executed natively?
I must admit, I've never had any performance issues with .net code and so this is why I'm in doubt.
Could...
Is it possible to use the System.Transactions programming model without support for distributed transactions?
something like
TransactionConfig.DisablePromotion = true;
...