Author Archive for Jarosław Dobrzański

MyBlogLog

I’ve just signed up to MyBlogLog service.

Look at my profile and my blog’s profile on MyBlogLog.
Continue reading ‘MyBlogLog’

Fatal error: Call to undefined function wp_register_sidebar_widget() in …

I’ve just updated Wordpress engine to v2.5. I played with it for a moment and was very happy about it until I got this error when I went to Wordpress Dahsboard:

Fatal error: Call to undefined function wp_register_sidebar_widget() in /XXX/wp-admin/includes/dashboard.php on line 31

Luckily, I’ve found a very simple solution on Tom Raftery’s Social Media Blog. Tom, thanks for sharing with others!

Change to Wordpress 2.5

I’ve just changed the engine for my blog from Wordpress 2.3 to Wordpress 2.5.

The change is not visible for the reader but there’s a lot going on in the dashboard, starting with the layout, dashboard widgets, multiple file upload, etc… To get the full list of the changes, please look at the official Wordpress blog.

High Performance Web Sites

Recently I’ve been reading “High Performance Web Sites” (look at amazon).

I think it’s a good book who can be recommended to all who do even little bit of front end development. The book describes 15 rules (regarding CSS, JavaScript, etc.) that should be followed in order to deliver high performance web sites. It’s rather short (c.a. 150 pages) and easy to read, but the suggestions described by the author can be helpful while you work.

Reporting Services - blank Report Manager screen

I believe Reporting Services are very powerful tool for report generation. Unfortunately the installation process can be time consuming as you might face some problems with the cofiguration… Of course such problems can be the reason of unsufficient knowledge in SQL Server configuration and management, etc.

Anyway, blank Report Manager screen can be one of the problems, which displays as shown below:
Report Manager screen

Solution

This issue can be easily fixed by unsetting Enable anonymous access feature for either Reports or ReportServer virtual directory in IIS. In my case (on Windows 2003) I had to switch that of for both that virtual directories.
To do that follow the steps below:

  • go to Properties of either virtual directory in the IIS manager
  • select Directory Security tab in the Property window
  • click Edit in the Authentication and access control section
  • disable Enable anonymous access feature
  • close all windows by clicking OK buttons in the windows that showed up

Zune Theme

If you’re bored with standard Windows XP Themes and you’d like to try something different, have a try with Windows XP official Zune Theme. You can have a look at it on Softpedia.
I haven’t had any problems with it and I’m pretty hapy with the effect :)

FeedMap = Blogs + Maps

feedmap

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 this service and I must say its idea is very good. Really you can discover blogs of authors that live in the same town or are even your neighbours. And of course you can make your own blog more discoverable. However, I believe the authors need to improve some things (layout, minor issues and some more important stuff, like not working link). Anyway, great idea! I wish feedmap luck!

Of course I submitted this blog (info on feedmap), and my photoblog (info on feedmap).

Continue reading ‘FeedMap = Blogs + Maps’

Google Analytics features

I’ve just encountered a movie which describes some of Google Analytics features, which are described there too.

I think it’s worth watching this movie even if you’ve been using this tool.

Formatting output

Usually to print some ouptut you’d use System.out.printl() or System.out.println() method. It’s easy to use but you can face some difficulties in providing output formatted in a specific way.

To format output you can use either of the following methods (they work the same)

  • System.out.format(String format, Object... args)
  • System.out.format(Locale l, String format, Object... args)
  • System.out.printf(String format, Object... args)
  • System.out.printf(Locale l, String format, Object... args)

This is the way how those methods should be used:

%[argIndex$][flags][width][.precision] conversion

where:

  • argIndex - index of the argument passed within the args array
  • flags:
    • - - left justify
    • + - print sign (e.g. +25, -45.7)
    • 0 - pad this argument with zeroes
    • , - use local specific separators (e.g. 124,567,678.877)
    • ( -enclose a negative number in parenthesis
  • width - minimum number of characters to print (nice to keep clean columns)
  • precision - number of digits that will be printed after decimal delimiter (for floating points)
  • conversion:
    • b - boolean
    • c - basic types that represent Unicode characters (char, Character, byte, Byte, short, Short)
    • d - integral types (byte, Byte, short, Short, int, Integer, long, Long, BigInteger)
    • f - floating point (float, Float, double, Double, BigDecimal)
    • s - string (for any argument type)

Exeptions and Errors

In the diagram below I present the hierarchy of most common Exceptions and Errors:


Object
 |
 |_ Throwable
    |
    |_ Error
    |   |
    |   |_ AssertionError
    |   |
    |   |_ LinkageError
    |   |   |
    |   |   |_ ExceptionInInitializerError
    |   |   |
    |   |   |_ NoClassDefFoundError
    |	|   |
    |   |_ VirtualMachineError
    |       |
    |       |_ StackOverflowError
    |
    |_ Exception
        |
        |_ RuntimeException
            |
            |_ NullPointerException
            |
            |_ IllegalArgumentException
            |   |
            |   |_ NumberFormatException
            |
            |_ IndexOutOfBoundException
            |   |
            |   |_ ArrayIndexOutOfBoundException
            |
            |_ ClassCastException
            |
            |_ IllegalStateException

Continue reading ‘Exeptions and Errors’