Blog
This is a blog about what I find interesting at this point in my life. This includes computer science, neuroscience, intelligence and especially the intersection between these fields. The front-page blog will primarily be about specific technologies and computer science. Other sub-blogs appear on the menu.
F# lists and immutable collections in .Net
This blog post began with this StackOverflow question: Which .NET library has copy-on-write collections?
The resulting extension methods and tests are available here.
I've decided to expand my … more
Parallel longest common subsequence
This algorithm is an parallel longest common subsequence implementation. It works by dividing the backtrack matrix into several parts. These parts depend on up to two other parts similar to the … more
Diff algorithm in F#
As a follow-up for the "longest common subsequence" posts, I've coded a diff-algorithm based on the code of the F# version of LCS.
Usage
let a = "CACCCCTAAGGTACCTTTGGTTC" … more
Longest Common Subsequence in F#
C# version
Problem
The "longest common subsequence" problem is to find the longest common subsequence between 2 or more strings. This should not be confused with "longest common substring" problem … more
Longest Common Subsequence in C#
Note: This is an adapted version of the longest common subsequence for C# available at Wikibooks. However, the ReadLCSFromBacktrack method appearing on Wikibooks is flawed (at the time of … more
Index when using LINQ
Often it is very useful to have access to the index of an object in a list. This is useful in LINQ as well as in a regular foreach-loop. It can be done with the extended Select-statement in LINQ like … more
Return chunks of IEnumerable<T>
Here is an extension method which returns a sequence of chunks (of an IEnumerable<T>).
Usage
If you don't want an array, as the last item, with the remaining of the sequence (when … more
Interleave extension method for IEnumerable<T>
Here is a small extension method which basically interleave two IEnumerable<T>. If they are not of equal length, the rest of the longest will be appended.
Usage … more
Invisible CAPTCHA for ASP.Net MVC
For a particular project I needed a invisible captcha. I didn't want to use something like REcaptcha because it is too cumbersome for users. Therefore did I develop this solution. This, however, is … more
Paging for ASP.Net MVC
This blog post describes a simple way to implement paging in ASP.Net MVC.
Result
Global.asax.cs route
routes.MapRoute(
"Paging for index", … more