Skip to main content

Posts

Showing posts from March, 2009

Full Text Searching XMLs (Lucene.NET Version)

There was a question in a spanish DBMS list, because a guy was trying to use the SQL Server Full Text Search for indexing any object in the application. The objects were being serialized as XML objects and indexed using the FTS engine, but it started to became complex when trying to perform the query. Anyway, this post is not about SQL Server, but Lucene.NET . So, I started playing again with that and I end up with this: Download Source Code . I guess this test describes all the power of the mini-framework built over Lucene: public void MixObjects() { var obj = new Foo() .SetDescription( "hello world" ) .AddBar( "text containing the word happy" ) .AddBar( "some comments the word programming" ); var obj2 = new Bar( "some comments" ); Engine.IndexObject(obj, 5); Engine.IndexObject(obj2, 5); Engine.DumpIndexInfo(); Assert.Equal(1, Engine.LookForAll() .Where( @"

Added Notes to ZedGraph

ZedGraph has a really good support for extending it, and it's well documented in the code if you want to try to do it. Today, I've just created a new object called AnnotationObj (the Obj postfix is due to ZedGraph conventions). To use it, you just have to include this .cs file in you source: http://tinyurl.com/cqgwcc After that, you can add your own notes this way: var annotationObj = new AnnotationObj(MyGraph, position, "this will be the tooltip" ); MyGraph.GraphPane.GraphObjList.Add(annotationObj); This is how it will look: From this.Blog

Worst UI You’ve Ever Used

This post was copied from an answer in stackoverflow ... But, still the winner is the awsome IBM Lotus Notes