Monthly Archives: December 2010

How would i convert string array to List

string strIDs = “15|20|30”; List<int> IDs; string[] strArr = strIDs.Split(‘|’); int[] intArr = Array.ConvertAll<string, int>(strArr, new Converter<string, int>(Convert.ToInt32)); IDs = intArr.ToList(); Using LINQ you could have string strIDs = “15|20|30”; List<int> IDs = strIDs.Split(‘|’).Select(s => int.Parse(s)).ToList();  

Posted in C# | 1 Comment

What is Sculpture?

Sculpture is a .NET open source Model-Driven Development code generation framework ideal for creating and managing .NET Enterprise Applications. With Sculpture you can model your application components, and then transform this model to deployable components with your favorite technology. Sculpture comes … Continue reading

Posted in ASP.NET MVC, C#, Software architecture | Leave a comment

Secant method

In numerical analysis, the secant method is a root-finding algorithm that uses a succession of roots of secant lines to better approximate a root of a function f. The secant method can be thought of as a finite difference approximation … Continue reading

Posted in C#, Problem solving | Leave a comment

NPV

Calculates the net present value of an investment by using a discount rate and a series of future payments (negative values) and income (positive values). Syntax NPV(rate,value1,value2, …) Rate is the rate of discount over the length of one period. … Continue reading

Posted in C#, Economics | Leave a comment

Go with the cash flow: Calculate NPV and IRR in Excel

Have you been losing sleep figuring out the best way to maximize profitability and minimize risk on your business investments? Stop tossing and turning. Relax and go with the flow. Cash, that is. Take a look at your cash flow, … Continue reading

Posted in Business Model, Economics, Problem solving | 1 Comment

Using Plugins in Your App

Plugins are self-contained libraries made specially for Rails. They are a great way to reuse someone else’s code or to package your own code for reuse. This is the first of a three part tutorial on writing plugins for Ruby … Continue reading

Posted in C#, Integration | Leave a comment