Still looking for a sponsor Max Paulousky is looking for a Silverlight/.Net job in the Commonwealth

Single-line Solution: Fibonacci number

As I mention in my previous post, next single-line function to implement is Fibonacci number. By definition, the first two Fibonacci numbers are 0 and 1, and each remaining number is the sum of the previous two. Some sources omit the initial 0, instead beginning the sequence with two 1s. (by Wikipedia) There are some variants to calculate Fibonacci number. First one is recursion: Func<int, int> fib = null; fib = n => (n < 2) ? 1 : fib(n-1) +...

Single-Line Solution: Factorial

Recently my colleagues started a dispute whether it is possible to calculate a factorial using just one line of code. In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. (by Wikipedia) One line means a line that ends with a semicolon: bla-bla-bla; Of course, following sample is not the single-row code: for(;;;) bla-bla-bla; First idea is using recursion (let’s arrange, it is the single-line...

The official Web Site of Bill Gates

Mr. Gates has started his web site where he expresses ideas and thinkings. The only thing is on my mind is why developers did not use Asp.Net Mvc? As I know, Microsoft staff uses the latest versions of developments tools/products etc. In that case, they decided not to use Asp.Net Mvc. But they use Silverlight for videos. Tagged: Silverlight , Microsoft , Asp.Net Mvc , Bill Gates This work is licensed under a Creative Commons Attribution By license.

Microsoft Silverlight 4 Beta Client for Facebook

Microsoft has announced cool silverlight application. There are two piece of news. A good one - this application promotes all Silverlight 4 features like working with web cameras, notification messages, drag & drop etc.  A bad one – Microsoft has not provided source code. Moreover, the binaries are obfuscated. Sources probably will not be provided at all. Tagged: Silverlight 4 , Facebook , Microsoft This work is licensed under a Creative Commons Attribution By license.

Visual Studio 2010 release candidate is available

Visual Studio 2010 RC is available since February 10th, 2010 for the public. Great improvements were made, especially in performance. But this changes are not available for Silverlight 4 developers because that RC does not support Silverlight 4 applications, only Silverlight 3. If you want to continue working with Silverlight 4, you should stay with Visual Studio 2010 Beta 2 until new Silverlight Runtime/Tools/Toolkit etc is available. BTW, it is not possible to run VS 2010 beta 2 and VS 2010 RC side-by-side. Tagged: Visual Studio 2010 , Silverlight 4 This...

How to get Xml InnerText in a Silverlight application – 2

There is an easier way to remove all xml tags from the document – regular expressions: Regex.Replace(text, @"<\/?[^>]*\/?>", string.Empty); Tagged: Silverlight , Xml , InnerText , Regular Expressions This work is licensed under a Creative Commons Attribution By license.