.net

Read data from a Gif

hi, i have a requirement to read data from a gif. The gif is exported from a Bloomberg terminal and contains Stock Prices. Is there anyway of reading the Stock Prices off this gif? I'd prefer to do it in C#, but if there is any other programming language that is recommended, i would be grateful if you can share that with me. regards ...

ASP.NET MVC: How to create a basic Pseudo Viewstate? Or better solution?

I am newish to MVC and understand all the great things about it, including the reasons why viewstate isn't available, however there are some circumstances where I think having some kind of view state will be quite handy, In my case I am thinking about list pages with various search filters that can be applied to the list. Would it be wo...

ASP.NET Webforms Membership sample application

Is there a quickstart application sample that demonstrates using the Login controls, roles, profile and uses best practices? ...

Trying to Add Insert Row to Footer in GridView ASP.net

I'm trying to give the user the ability to create a new record from the footer row and my event handler doesn't seem to be working... or maybe I'm going at this all wrong. The insert button that I enabled in the gridview doesn't work either...checkout the site at http://aisched.engr.oregonstate.edu/admin/courses.aspx Here is my code in...

Is MVVM pointless?

Is orthodox MVVM implementation pointless? I am creating a new application and I considered Windows Forms and WPF. I chose WPF because it's future-proof and offer lots of flexibility. There is less code and easier to make significant changes to your UI using XAML. Since the choice for WPF is obvious, I figured that I may as well go...

Anyone heard about Sharpkit?

Has anyone heard about SharpKit? It's a .NET to jscript, .NET to jQ and more API. I am about to start a new web project, and I am doubting whether to use sharpkit. From my browsing around the site and the documentation there, it looks really so seducing, does anyone have experience with it? I even played with it a little bit on their a...

Using Thrift to connect to Cassandra from .NET

Hi, I'm interested in Cassandra and I'd like to test it at home in my Windows XP computer. I've found instructions for install an run Cassandra in Windows, and it's already up and running; I've also found the thrift executable for Windows and generate the C# interfaces, but... when I try to compile that generated code in Visual Studio I...

Login to website and use cookie to get source for another page

I am trying to login to the TV Rage website and get the source code of the My Shows page. I am successfully logging in (I have checked the response from my post request) but then when I try to perform a get request on the My Shows page, I am re-directed to the login page. This is the code I am using to login: private string LoginT...

Clustering F/OSS Library for .NET

Anyone aware of F/OSS library for clustering algorithms? Specifically interested in Hierarchical Clustering. Surely there are some libs available, not requiring writing up from scratch. p.s I know about NMath, it is $ ware ...

.NET: Control Invoke() in Reflector

So, I was getting back into some .NET programming, and through a new feature in VS.NET 2010, it detected a case where I was trying to modify a control from a thread that didn't create that control, and pointed me to an article on MSDN about how you do this correctly... ' HOW TO WRITE TO A FORM CONTROL FROM A THREAD THAT DIDN'T CREATE TH...

.NET Controls: Why aren't all calls thread-safe?

After exploding with excitement over learning about how to make thread-safe calls to Windows Form Controls, it got me thinking... Why aren't all calls to Windows Form Controls thread-safe? Can anyone explain why? I would think it would reduce a lot of confusion for users of those controls. ...

start .net application from start menu search

bla.exe (application alias) points to a .net application called wpfapp1.exe. When i add a key&value to eg. this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\bla.exe and then start application using Run -> bla.exe it starts however when i start application using windows search i get an "windows cannot find w...

Silverlight - Access Facebook Api on Client Side or through Server Side Wrapper?

I am wondering how to access facebook api best using Silverlight. Right now i am developing a silverlight(+ria services) app for facebook. I see 2 possibilities: 1) Access facebook api using the facebook developer kit for silverlight (Facebook.Silverlight.dll) 2) Create a service class on Server Side which acts as a wrapper for easy ...

NAudio demos not working anymore

I just tried to run the NAudio demos and I'm getting a weird error: System.BadImageFormatException: Could not load file or a ssembly 'NAudio, Version=1.3.8.0, Culture=neutral, PublicKeyToken=null' or one o f its dependencies. An attempt was made to load a program with an incorrect form at. File name: 'NAudio, Version=1.3.8.0, Culture=ne...

How to handle this scenario when deploying C# application?

Yesterday I was trying to get a list of files opened by a particular process but it seemed to be a gigantic task to do using C#. Someone pointed me to this nifty program called Handle by Mark Rusinovich. The program seems to suffice my needs but the licensing prevents me from redistributing it (which from what I understand means that I...

Implementing BindingList<T>

I am trying to learn more about BindingList because I believe that it will help me with a project that I am working on. Currently, I have an object class (ScannedImage) that is a subtype of a class (HashedImage) that subtypes a native .Net object (Image). There is no reason why I couldn't move the two subtypes together. I am simply su...

Data storage/access for c# windows forms application

Hi All, What is the best or preferred way to store data for a .NET desktop application? I know this coupld depend on how I will be using the app but Im just looking for a simple and easy way to store data for .NET applications. Thanks ...

.NET AES returns wrong Test Vectors

I need to implement some crypto protocol on C# and want to say that this is my first project in C#. After spending some time to get used on C# I found out that I am unable to get compliant AES vectors. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; using System.I...

Microsoft Solver Foundation constraint

Hello, I'm trying to use Microsoft Solver Foundation 2 to solve a fairly complicated situation, however I'm stuck with an UnsupportedModelException even when I dumb down the model as much as possible. Does anyone have an idea of what I'm doing wrong? Following is the least example required to reproduce the problematic behavior. var ctx ...

What guarantees are there on the run-time complexity (Big-O) of LINQ methods?

I've recently started using LINQ quite a bit, and I haven't really seen any mention of run-time complexity for any of the LINQ methods. Obviously, there are many factors at play here, so let's restrict the discussion to the plain IEnumerable LINQ-to-Objects provider. Further, let's assume that any Func passed in as a selector / mutator /...