Category Archives: How to

How to fix Doctrine 1.2.4 Base models autoloading

I must say right away, that I don't know how correct this fix is, but it works for me. So in Doctrine ORM 1.2.4 after generating models I ran in a bit of a problem. So I fixed like that:
Find file vendor\doctrine\doctrine1\lib\Doctrine\Core.php
Next on line 1155 find this code:

$class = self::$_modelsDirectory . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';

            if (file_exists($class)){
                require $class;

                return true;
            }

And add this code after:

$class = self::$_modelsDirectory . DIRECTORY_SEPARATOR . 'generated' . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';

            if (file_exists($class)) {
                require $class;

                return true;
            }

This is it.

How to run Redis server as daemon

So I think, that those who will read this article probably know, what is Redis. For those who don't I can say shortly, that this is a software, that is used for storing some maped data ( key => value ) for faster usage. This software could help developers to make their applications by storing some primitive data like for example translations on multi-language webpage or other similar information. In this article I will shortly explain how to make your Redis server run as daemon, since making startup file for this in unix is not an option.
Continue reading →

How to fix Java Error: “1723: There is a problem with this Windows Installer Package.”

Recently I encountered a Java error, that caught me completely unguard. First I tried to remove it through Add/Remove Programs on Windows, then I just deleted folders, but program didn't disappear. On contrary, I started to receive error displayed on image below.
Java 1723 error

So as I neither could delete program nor reinstall it.
Continue reading →

How to create virtual host for app on Tomcat.

NB! I will say right away, that my Tomcat is running on Ubuntu Server 10.10 under VMWare Workstation 7.
So here it goes. Recently I installed YouTrack issue tracker on my local server, that runs on Tomcat. Very soon I got tired from typing every time (ip_address/webapp_name:port). So I looked up how to create a very simple VirtualHost for Tomcat.
Continue reading →