Month: September 2015

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;
    

Windows Error Reporting – first steps in postmortem debugging – how to collect mini dump?

Note: What is described below applies to Windows Vista x64 (at least I used such OS). I’m not going to describe what to do with a mini dump – how to analyze it in a debugger (e.g. in Visual Studio); such information can be found in a very good article at CodeProject. What I’m going to present here is how …

FCKeditor – inline html editor

fckeditor_logo

Should you need provide inline html editor feature in your web application (WYSIWYG editor), have a look at FCKeditor.

FCKeditor is very useful and functional. Let me cite a couple of its features:

  • Integration with ASP, ASP.NET, Java, ColdFusion, Perl, PHP, JavaScript and more
  • Complete toolbar customization
  • Skins support
  • Plugins support
  • Multi-language support with automatic user language detection
  • Lightweight and