Blog

Welcome to our blog!

expressivo

I wonder if you’ever heard of expressivo? If you haven’t, have a look; if you’ve seen that, play with it again icon_smile-4711243

By and large, expressivo is an online service that provided text-to-speech reader (and not only). It produces speech in English, Polish and Romanian. To generate speech it uses IVONA TTS.

I don’t know Romanian but English and Polish TTSs …

Beginning SQL Server 2005 Programming

411jyfa1xel-_sl300_

After a while (busy days…) I’ve got a new book: Beginning SQL Server 2005 Programming by Robert Vieira.

I’m not considering myslef a SQL Server expert but to be honest I was afraid of this beginning word in the title. Yet I’ve been using SQL Server for a couple of years (apart from Java, C#, etc. – so not full …

Upgrade do WordPress 2.8 i problem z kodowaniem polskich znaków

I’m sorry if you are an English spoken reader but this post is published in Polish. The reason for that is it describes a problem with encoding of some Polish characters after upgrading to WordPress 2.8, so a problem that only Poles should be interested in.
This blog is still supposed to be maintained in English so please do not

Reporting Services – how to change font style in the toolbar of ReportViewer?

I created a report with SQL Server Reporting Services. It displayed some data and the toolbar with list of checkboxes that defined which columns should be displayed on the report (see the screenshot below). The problem was the font on the toolbar didn’t match the font on the report, i.e. it was huge in comparison to the report. In short …

Hi there

It was almost two months ago when I wrote the last post… Nevertheless quite a number of things happened to me during that time:

  • I came back from Galway (Ireland) to Gdansk (Poland) – I finished my research at DERI
  • I graduated from the Gdansk University of Technology, major Distributed Applications and Internet Systems – got the A grade
  • I

LoadTest: MethodAccessException Microsoft.VisualStudio.TestTools.WebTesting.WebTest.set_Outcome

I had a load test that used a coded web test. At some point the coded web test changed, i.e. this line was added: Outcome = Outcome.Fail;.

After this change the test stopped working – it always ended with error message: ‘User aborted test run’. Apart from that each iteration of the web test produced MethodAccessException: Microsoft.VisualStudio.TestTools.WebTesting.WebTest.set_Outcome(Microsoft.VisualStudio.TestTools.WebTesting.Outcome).

Solution

How to abort load test when its scenario fails?

By definition a load test is supposed to simulate many users accessing a server at the same time. It consists of series of iterations, which can be either Web tests or unit tests. Each operation is repeated the defined number of times for each virtual user.

A load test completes with status ‘Completed’. If one needs to learn more details …

IIS

IIS: Disable the web site and display generic app offline information

Deployment of a new version of a site is a very tricky/risky procedure. At some point (i.e. until deployment is not completed) your service will work not as it is supposed to, which can result in reset session, HTTP errors displayed, etc. Whatever the result is it can really discourage the users of your service and, let’s be honest, will …

java.util.IllegalFormatConversionException when using System.out.format()

A few weeks ago I described how to format output using System.out.printl() and System.out.println() methods…

Try to run the code below:

double avgAge = 245 / 34;  
System.out.format("Average age is %d.", avgAge);

Without doubts you’ll get an exception thrown at runtime:

Average age is Exception in thread "main" 
java.util.IllegalFormatConversionException: 
d != java.lang.Double
    at java.util.Formatter$FormatSpecifier.failConversion(Unknown Source)
    at java.util.Formatter$FormatSpecifier.printInteger(Unknown Source)
    at java.util.Formatter$FormatSpecifier.print(Unknown 

Collections – sorting and searching

In order to sort a Collection, one should use java.util.Collections class as follows (assuming ArrayList will be used):

List another object


  • the drawback: there’s only one way of sorting
Example of the class implementing Comparable interface:
class Book implements Comparable {
    private String title;
    
    public String getTitle() {
        return title;
    }

    public void setTitle(String title_p) {
        title = title_p;