How can I use MagickNet from C# to stitch images together?
I want to stitch some images together using MagickNet (jpg/bmp - whatever). Does anyone have some good references for this? ...
I want to stitch some images together using MagickNet (jpg/bmp - whatever). Does anyone have some good references for this? ...
What is the proper way to pass an answer (a collection) back to Silverlight? For example, if I have a service application that sits on top of the Northwind sample database and the service has a method called GetEmployees(). What is the proper "thing" to pass back to Silverlight? An IQueryable ? Then considering the Async/Result casting...
...and are there any other caveat for other platforms? I create an app.config for a win forms project, for example Application.exe. By default I expect that at runtime my application is going to look for a file called Application.exe.config. But there seem to be exceptions to this, for example in a Windows Server 2003 environment an a...
I am seeing following exception. System.NullReferenceException: Object reference not set to an instance of an object. at System.Web.Util.StringUtil.memcpyimpl(Byte* src, Byte* dest, Int32 len) at System.Web.Util.StringUtil.UnsafeStringCopy(String src, Int32 srcIndex, Char[] dest, Int32 destIndex, Int32 len) at System.Web.HttpW...
How can I add some scoping when I scan my assemblies ? Google doesn't seem quite happy with "structuremap scan cacheby" :/ ObjectFactory.Configure(registry => { registry.Scan(x => { x.AssemblyContainingType(typeof(IRepository<>)); x.With<DefaultConventionScanner>(); }); } ...
How can I find the owner of a given process in C#? The class System.Diagnostics.Process doesn't seem to have any properties or methods that will get me this information. I figure it must be available because it is shown in the Windows Task Manager under the "User Name" column. My specific scenario involves finding the instance of a proc...
Visual Studio and SharpDevelop do not both set up delegates to handle events in the same way. The way they are set up is a little bit different. This makes it difficult to use VS in one place and #Develop in another (on the same project). For Example, in VB, Visual Studio does the following: Private Sub OK_Button_Click(ByVal sender A...
I'm creating a simple test application so I can see how ASP.Net MVC works for what we deal with on a daily basis. We use 3rd party controls from Developer's Express, and we will continue to use them. If they absolutely do not work in ASP.Net MVC, then we will not use ASP.Net MVC. With that said, someone has found a way to make it work. ...
Duplicate Which books are considered classics for .Net? Learning .NET What are some good resources for learning asp.net? Learning .NET if you already know several languages How to stop worrying about using the best materials and just start learning .Net? Hands on asp.NET learning recommendations ...
I have a simple C# function: public static double Floor(double value, double step) { return Math.Floor(value / step) * step; } That calculates the higher number, lower than or equal to "value", that is multiple of "step". But it lacks precision, as seen in the following tests: [TestMethod()] public void Fl...
This is probably a stupid question, but here goes. I would like to be able to dynamically construct a predicate < T > from a string parsed from a database VARCHAR column, or any string, for that matter. For example, say the column in the database contained the following string: return e.SomeStringProperty.Contains("foo"); These code...
Is it worth to buy this book now as a reference or should I wait for the next edition that might come once .NET 4.0 is released (when?)? Do you know if it will come out any time soon? I hear great recommendations about it, and I am considering buying it. ...
Are there particular instances where I should (or shouldn't?) be using "using" blocks: using(SomeType t = new SomeType()){ ... } ...
I am listening for the loaded event of a Page. That event fires first and then all the children fire their load event. I need an event that fires when ALL the children have loaded. Does that exist? ...
We need to add a wiki to an already existing website, however we want only logged in users to be able to edit the wiki and we would prefer to use our own method of authentication. Has anyone got any experiences with something similar or any suggestions of a good wiki engine for the job? UPDATE: Thanks everyone, the general seems to be ...
I have a custom implementation of ClientCredentials in WCF. Two of the base properties of ClientCredentials are the ClientCertificate and ServiceCertificate, as seen here (MSDN). In my configuration, I have my custom ClientCredentials set, and both certificates defined: <endpointBehaviors> <behavior name="MyCustomEndpointBehavior"...
I'd like to create an array from range of values within an ArrayList but am getting the error "At least one element in the source array could not be cast down to the destination array type". Why should the following fail, and what would you do instead? int[] ints = new int[] { 1, 2, 3 }; ArrayList list = ArrayList.Adapter(ints); int[]...
Func is a serializable class, but yet when I try to pass it as a parameter through a service. I'm told it "isn't a known type". I've tried the solutions here to no avail. Many thanks out there... ...
I'm developing a windows client app and would like to cache some data. It's a pretty simple scenario, basically just keeping some data in memory so the app can avoid crashing if the network connection drops out. I could roll my own cache solution, or use the EntLib caching block, but am looking for a few more alternatives before committ...
I'm not sure how to come across to ask this, but I'm trying to figure out if there is possibly a way by which I can access a running process written purely in .Net and interact with its memory space and active objects. I do Add-in development for 2 point-of-sale packages, and am trying to figure this out for analysis of data entry in an...