Hi there
I'm thinking about developing online multiplayer social game. The shared state of the world would require something fast on the backend, so the potential solutions seem to be:
fast game engine on server (eg. c++ ) and some frontend language (php/python/ruby) + flash
whole stack in python (using twisted or stackless python) + ...
I have a scenario where I have multiple versions of the same assembly that I need to store in the application private folders, in a structure like this:
.\My.dll // latest version, say 1.1.3.0
.\v1.1.1\My.dll // version 1.1.1.0
.\v1.1.2\My.dll // version 1.1.2.0
My problem is that the .Net runtime, when asked for one of t...
I'm not an advanced NHibernate user, so this may be somewhat important, and I just didn't discover it yet.. but what the heck.
Consider the class:
public class House
{
public int Id { get; set; }
public ISet<Room> Rooms
{
get;
set;
}
}
When specifying NHibernate Set element it's not enough to write:
<set name="Rooms" /...
I have worked on a Web Application based on ASP.NET Web Forms for a client of mine. This Web app is used internally and externally to manage pension plans.
My client now wants to open up access for the participants of a pension plan so that they can view how much money they will have when they retire, who are the beneficiaries, etc. Par...
I'm developing a small application that has a few button and labels. On my development PC it fits on the window, but on other machines the controls of forms get smaller. My screen resolution is 1680x1050 and client screen solution is 1024x768. Is it possible to make controls auto fit the screen solution?
...
I've got an ADO.NET Entity Framework class called Node in a WPF project. I want to use it in a different ASP.NET MVC project within the same solution.
My Node controller:
Public Class NodeController
Inherits System.Web.Mvc.Controller
Function Display(ByVal id As Guid) As ActionResult
Dim db As New WpfApplication1.Mod...
Is there anyway to have all emails go to a different address when System.Web.HttpContext.Current.IsDebuggingEnabled is true? Or do I need a new class which I use to send email everywhere?
...
Ok I'm coming here as a last resort hoping that someone knows the answer to this, no answers in the newsgroups and I have done everything I know how to do, aside from a serious hack solution that I would love to avoid.
Here is the situation:
I have a .NET class library that is COM exposed. I wrap this into a CAB file and use the Object...
Hi All,
based on http://stackoverflow.com/questions/630449/join-ms-word-documents I have made a console application that splices multiple word files into one. Now I want to do the same from a Workflow in SharePoint. In short, my code before it fails looks like this:
object oMissing = System.Reflection.Missing.Value;
Microsoft.Office.Int...
Given a path expressed as an array of 2d points:
Point[] path = new Point[4]
{
new Point(0,0),
new Point(10,0),
new Point(10,10),
new Point(0,10),
};
... Here, a box.
What is the best way to convert this to a list of triangles (which fill the path) to be used in a 3D application? Given that this is only a simple examp...
Hi guys, I have begun building a secure string type - which i call SecureStringV2 - to extend the existing SecureString type in the .Net framework. This new type is going to add some basic functionality (checking for equality, comparing etc) to the existing type but still maintain the security provided by the SecureString type, that is ...
Hi,
I'm using the Composite Application Library's event aggregator, and would like to create a mock for the IEventAggregator interface, for use in my unit test.
I'm planning on using Moq for this task, and an example test so far looks something like this:
var mockEventAggregator = new Mock<IEventAggregator>();
var mockImportantEvent =...
I have a method called funct which i want to have as my callback function when i am using the beingreceive socket method in c#.
s.BeginReceive(buffer, 0, buffer.Length, System.Net.Sockets.SocketFlags.None,
new AsyncCallback(funct), null);
The error that am getting is:
No overload for 'funct' matches delegate 'System...
I have put an UltraGrid on a WinForms user control. I have tweaked some settings so I can use the grid as a read-only multi-row select table. But there's one problem: by default the first row appears to be selected.
But the Selected.Rows property is empty, and also the ActiveRow property is null.
So the row appears to be selected, but ...
I see that can use ASP_regiis to encrypt sections of the web.config file, but I am running mono on a box using Apache. Are there ways to do this in Mono/Linux?
...
If I have a Lucene query string
"field1:value1 myField:aValue"
Is there a way to let Lucene parse this so I can get term queries?
I ultimately want to be able to get the field names and their values back to my viewdata so I can fill them in my textboxes on post back.
...
I'm in the process of porting a Java program to .NET using IKVM. Unfortunately IKVM's Graphics2D implementation throws a NotImplementedException in drawGlyphVector, i.e. it needs to be "fleshed out" with a .NET implementation (or by reducing it to calls of other IKVM Graphics2D methods which are implemented).
Any ideas for an equivalent...
I want use a Linq IQueryable Toolkit in project on .NET Compact Framework.
The Linq capabilities in CF is little bit shapred - i.e.: IQueryable interface is not available. So I've found third party libraries, which implements missing functionality what I need.
Now I have problem with missing method "MethodBase.GetCurrentMethod()". There...
I want to serialize a collection of objects for storage/retrieval from my app.config file. (I'm using the code from an example from Jeff Attwood's blog entry The Last Configuration Section Handler.. Revisited).
What I want to know, is why collections of objects of type
public class MyClass
{
...
}
get serialized to an xml element ...
What are the benefits/advantages of using delegates? Can anyone provide any simple examples?
...