• For year 2012

    The year 2011 has been pretty quiet in this blog as I managed to write just one post. In the backlog I have had for some time a couple of articles almost done and several topics to write about but as it sometimes happens, the time runs out. For the coming year 2012 I have…

  • WordPress mod_rewrite rules taking over mod_status and mod_info

    After moving Rule of Tech to a new server and setting up monitoring I noticed that server-status and server-info Apache modules weren’t working as expected. As usual a little bit of Googling solved this problem. The problem was that the .htaccess rules in WordPress were taking over non-existing server-info and server-status urls given in Apache’s…

  • Installing Apache Tomcat 6 on CentOS

    CentOS is great substitute for Red Hat Enterprise Linux but is missing some useful packages like Apache Tomcat 6. Installing Apache Tomcat 6 on CentOS 5 from gzip-package is fairly easy. The following guide is at least for CentOS 5.4. Pre-Requirements First you need to install Sun JDK and you can follow the instructions given…

  • Installing Sun JDK 1.6 on CentOS

    CentOS doesn’t have a package for Sun JDK so it has to installed manually. It’s fairly easy but there are some steps to do that. This guide has been tested on CentOS 5.4 x64_86. Step 1. Initial setup for building RPM -!- Do this with a non-root user Create ~/.rpmmacros $ vim ~/.rpmmacros… Jatka lukemista…

  • Using RichFaces 3 dataScroller and dataTable -components

    RichFaces provides some nice AJAX-components for Java Server Faces but the documentation and examples could be better. RichFaces has great documentation compared to some other frameworks but it could be better with adding a little bit of real world and down to earth examples. So here is one example of using RichFaces dataScroller and dataTable…

  • Eclipse: Class file name must end with .class exception in search

    Eclipse is nice IDE but it has it’s own problems. This time the Java Search and Open Type -search produced an error saying “Class file name must end with .class”. Very helpfull. Fortunately almost all the answers in the world can be found in the Internet and so with a quick googling the solution to…

  • Redirect HTTP and HTTPS traffic to Tomcat’s ports

    Apache Tomcat likes with default settings to listen to requests on 8080 and 8443 ports but it is more enjoyable to use the more common 80 and 443 ports for HTTP and HTTPS traffic. This way the user don’t have to put those pesky port numbers after the address. Of course you could just tell…

  • Keeping up with the time in Xen

    A simple tip for keeping up with the time in Xen when your domU isn’t syncing the clock frequently enough and your clock is whatever. Of course you can sync your clock with ntpdate but first you need to set the domain (domU) to run its wallclock independently from Xen. Simply say in the command…

  • Samba performance problem after kernel update

    Samba is a nice service to provide storage space through networks and it is relatively easy to set up. It’s not as fast as using NFS between Linux hosts but sometimes you don’t have that possibility. Sometimes there also might be quite confusing problems like I happened to notice. My Samba service had worked fine…

  • WordPress and problem with language files (.mo)

    While testing the upcoming WordPress 2.3 I noticed that I had a problem with he localization. Defining the language with WPLANG had no effects and all the text were in English as they should have been in Finnish. I installed another instance of WordPress 2.2.3 and the problem was still there.… Jatka lukemista →