Author Archives: admin

Cisco VPN + Windows 7 + Belkin N+

Found a strange update which helped to improve the VPN connectivity:

DNE Support – Deterministic Networks.

InvalidOperationException in Silverlight designer

After creating a BasePage for all my pages and moving the DomainContext initialization to the base class, I got this design time error:

The current instance of WebContext is not available. You must instantiate a WebContext and add it to Application.ApplicationLifetimeObjects within the default App constructor.

Looks like a Silverlight bug, but all I did is checking the design time at the beginning of the constructor:

public BasePage()
{
   if (DesignerProperties.IsInDesignTool) return;
   ...
}

That’s it!

RTL richtext support in Silverlight

Well, the bottom line – there is no proper solution for a HTML like RTL support in Silverlight.
I’ve checked several approaches:

  • Using Telerik RadRichTextBox
  • Trying to implement it using embedded HTML browser control

It is possible to make RTL richtext working in Silverlight, but there remains one serious issue – mixed RTL and LTR support

Using Telerik RadRichTextBox
For some strange reason Telerik actually supported RTL richtext till Q2 release where they seriously messed up. If you download the Q1 2011 version, you will be able to use the RTL support without any problems. Telerik support admitted that it’s a bug, but in order to fix it, people should vote for it. Sounds weird, right?
So Telerik controls are off the table.
Read more »

Create base page for Silverlight Page

If you would like to create a base page with common functionality – create your own base page and derive each new page from the base class.

Create BasePage.cs

namespace MyApp.Views
{
    public class BasePage:Page
    {
    }
}

Derive the real page from the BasePage.cs

namespace MyApp.Views
{
    public partial class NewPage: BasePage
    {
    }
}

Now if you compile the project you will get the following error:
Partial declarations of ‘MyApp.Views.NewPage’ must not specify different base classes

Here you should do two more steps: Read more »

WordPress as an issue tracking system – Part 2 – Setting up the process

  • Workflow
  • Notifications and email integration
  • Security
  • Reports

WordPress as an issue tracking system – Part 1 – First thoughts

Recently I have been looking for an issue tracking system for our project.
I will write later about all the criteria I used, but I just had a thought using the WordPress.
Read more »

JAXB 2.0 vs. Simple 1.4 for object serialization

I will examine JAXB and Simple according to the following criterias.
1. Ease of use.
2. Performance.
Read more »

JaxB – Unmarshalling namespace prefix

After 2 hours of searching for the answer I just couldn’t find a decent example how to unmarshall XML file with namespace prefix.
Looks like, there is no straightforward way to perform this task with JaxB!

Read more »

String matching using FFT – 2

Well, lets see how can it be implemented.

Step 1 – Turning a string to complex numbers :(
I used the Complex.java from Princeton.

Step 2 – Preparing the string to convolution
1. Get the numeric value of all chars in the string.
2. Flip the second (shorter) string.

Step 3 – Calculate searched string value

Step 4 – Convolve :)

Step 5 – Look for the value in the result

String matching using FFT – 1

I still don’t know how will it work, but the idea is the following.
When we want to match string we need to perform operations which are very much like the convolution.
Of course convolution has the complexity of O(n^2) which is too much for string matching.

Well the idea is to use the FFT to convolve two strings and get the complexity of O(n log(n)).