.net

Rabin fingerprint using .NET

Is there any rabin fingerprint implementation using .NET? ...

C# image whitespace

Hi there, I have an image that is 240x320 (iphone camera image in portrait), and I need to programmatically (in C#) add white "bars" to the sides increasing the full image size to 320x320. I don't want to scale the image because that would mess up the aspect ratio. I have found a lot of info about how to remove white bars with c#, but...

Quick question : how to set a text box for inputing password in winforms?

how to set a text box for inputing password in winforms? Also I want to show "Capslock is ON" popup if capslock is on. I want something like <input type="password" /> in HTML. ...

How do I add an additional route?

Here is my default route. context.MapRoute( "CreditReview", "Site/{sitecode}/CreditReview/{controller}/{action}/{id}", new { action = "Index", id = "" } ); I'm looking to add 'status'. This is what I currently have and it isn't working. I haven't worked with routes before so I'm sorry if this is an easy question to answer. context....

C# Autolevel snippet?

Has anyone seen any good snippets for autoleveling an image in C#? ...

MySQL query (over SSL) fails in IIS 7 using default AppPool identity

I am trying to run a website locally in Windows 7 under IIS 7. I have the AppPool configured to use "Classic" mode, but connecting to a MySQL DB that requires SSL fails. If I change the identity to my user account it works perfectly. It fails when using the default "ApplicationPoolIdentity" account. Is there something I'm missing somewhe...

From VB6 to .net via COM and Remoting...What a mess!

I have some legacy vb6 applications that need to talk to my .Net engine application. The engine provides an interface that can be connected to via .net Remoting. Now I have a stub class library that wraps all of the types that the interface exposes. The purpose of this stub is to translate my .net types into COM-friendly types. When I r...

.NET: What is the purpose of the ProhibitDtd property in XmlReaderSettings? Why is DTD a security issue?

The documentation says: When set to true, the XmlReader throws an XmlException when any DTD content is encountered. Do not enable DTD processing if you are concerned about Denial of Service issues or if you are dealing with untrusted sources. If you have DTD processing enabled, you can use the XmlSecureResolver to restrict the...

Recaptcha Validator in .NET 1.1 project

I am trying to use an old version of the Recaptcha Validator on a .net 1.1 project, which can be found here: http://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/dotnet-old/src/Recaptcha/ The code I have is very similar to an example that can be found at the above link: <asp:TextBox ID="EmailAddress" runat="server"></asp:TextBox...

Adding a custom installer window .msi .net wut

I don't know a great deal about the .msi thing with .NET but can I add a custom window to the process that saves the results of the WPF window or winform to the install folder as a .xml file etc.? ...

Do fluent interfaces significantly impact runtime performance of a .NET application?

I'm currently occupying myself with implementing a fluent interface for an existing technology, which would allow code similar to the following snippet: using (var directory = Open.Directory(@"path\to\some\directory")) { using (var file = Open.File("foobar.html").In(directory)) { // ... } } In order to implement su...

What's an efficient way to tell if a bitmap is entirely black?

I'm wondering if there's a super-efficient way of confirming that an Image object references an entirely black image, so every pixel within the bitmap is ARGB(255, 0, 0, 0). What would you recommend? Most of these bitmaps will be 1024 x 6000 pixels (although it's not safe to assume they'll always be that size). I need this because we'r...

.net, do you get a transaction object?

Working with SQL / ADO, got me thinking about something that I think should logically be included with the .net framework, and I was wondering if such a thing exists, let me explain. Is there an object that is essentially a transaction manager, that you pass commands (work items) to and at the same I would imagine it would be necessary...

Looking for a good C++/.net book

I have recently started to feel that I need to greatly improve my C++ skills especially in the realm of .net. I graduated from a good four year university with a degree in computer science about 9 months ago and I have since been doing full time contract work for a small software company in my local area. Most of my work has been done ...

Flash-based Document Viewer/Converter (FlashPaper alternative, but with automated converter support)

Hey stackoverflow community, I am looking for a Document Viewer application that I can embed in a Flash/Flex application that supports Microsoft Office documents as well as PDF. I have looked into print2flash as a possibility, but their automated converter executable requires access to the files and directories. Does anyone know of oth...

When using WebBrowser control how do you have the text appear without margins?

I'm using a System.Windows.Forms.WebBrowser control next to textboxes with the left margins of each control aligned on the same X axis. The appearance however is "ugly" because the WebBrowser control inserts a margin/padding around the content of the control. Therefore the text in the WebBrowser control is several pixels to the right of ...

IValidator.Validate method and adding error message to a custom type

I have several server controls that implement the IValidator interface. As such, they have their own Validate() methods that look like this. public void Validate() { this.IsValid = true; if (someConditionFails()) { ErrorMessage = "Condition failed!"; this.IsValid = false; } } I understand that these Validate() methods ...

How to change stack size for a .NET program?

I have a program that does recursive calls for 2 billion times and the stack overflow. I make changes, and then it still need 40K resursive calls. So I need probably serveral MB stack memory. I heard the stack size is default to 1MB. I tried search online. Some one said to go properties ->linker .........in visual studio, but I cannot fi...

How I pass a delegate prototype to a method?

SO lets say in my class I have: public delegate bool MyFunc(int param); How can I then do this someObj.PassMeADelegateToExamine(this.MyFunc); // not possible!?! SO that I can examine the delegate and perhaps use reflection or something idk to find out it's return type and any params it might have? Basically if I can transform it i...

What is the fastest way to count newlines in a large .NET string?

Is there a way to improve this: private static int CountNewlines(string s) { int len = s.Length; int c = 0; for (int i=0; i < len; i++) { if (s[i] == '\n') c++; } return c; } I'm particularly concerned about the Item accessor on the string. Not sure if it is just pointer arithmetic like C/C++. ...