Blog – 2 Column

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…

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…

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)…

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)…

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…

FCKeditor – inline html editor

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…

IIS

IIS on Windows XP: There are too many people accessing the Web site at this time.

I started getting this error when I accessed pages hosted on IIS installed on my machine (I’m running Windows XP): The page cannot be displayed There are too many people accessing the Web site at this time. ——————————————————————————– Please try the following: Click the Refresh button, or try again later. Open the localhost home page,…

FeedMap = Blogs + Maps

What is feedmap? Let me cite its authors: … feedmap is about mapping your blog! Using FeedMap you can tell the world where you are blogging from! Or you can simply search for bloggers right around where you live! Or even better let other local bloggers to discover your blog… I had a look at…