Piotras' blog: Archive

2006-01-01 - 2006-01-31

MidgardConfigFile

Posted on 2006-01-04 18:15:48 UTC.

Yeah, MidgardConfigFile is the new configuration directive for midgard-apache2 module. Takes only one argument. Filename.
Full path is defined by prefix used while midgard-core was compiled.

In my case I compiled midgard-core with prefix --prefix=/usr , so this file is located in /etc/midgard/conf.d directory.

This is smallest Midgard vhost configuration I have ever used:


ServerName ppmobile
DocumentRoot /var/lib/midgard/vhosts/ppmobile/8888
MidgardPageCacheDir /var/cache/midgard
MidgardConfigFile piotras
AddDefaultCharset utf-8
Quite huge? ;)

I am not going to explain midgard configuration file because it has every directive described and besides every directive is self explanatory.

Interesting thing is that I had to rewrite configuration file "handler" and make it fully OO.

Advantages:
  • midgard-java or midgard-php bindings will be even easier to make.
  • Internal functions like mgd_connect or midgard_get_database_connection may be methods of MidgardConnection object and take MidgardConfig object as parameter. Notice that data like username or password could be hidden even for midgard-core API!
  • MidgardConfig object can be used as global runtime loghandler, Gerror handler, etc, etc.
Disadvantages:
  • none
( Except the fact that some day we have to drop midgard *mgd structure and change API a bit ;)

MidgardConfigFile automagically sets midgard-root file and Midgard engine.
Unfortunatelly this can not be done in midgard-apache1 module ( or I couldn't find DEFAULT_EXP_LIBEXECDIR for Apache1 ).

It's in the wall.

Posted on 2006-01-23 16:00:26 UTC.

It was almost 11 p.m. at friday when me and aga winded some burning. I started to knock every neighbour's door and ask if everything is ok. Yes, everything was ok.
Everywhere, except our place.
It's not ok when your home is full of smoke, right?

Few minutes after my phone call, firefighters were at our place. Four men was running up and down trying to locate fire's source. There was no doubt, the fire was already inside the building. They thought , the fire is inside the wooden floor.

One man asked another one to bring some axes and thermal sensitive camera. When he told me  that they need to chop our floor I asked Aga
to put some warm clothes on and get only the most important things from our place. She decided to get only some papers and few DVDs with  all pictures of our daughter taken since she was born.

"Luckily" one of the firefighters found fire's source. It was inside the wall.
In the flat at lower level...
I have never thought that one may use an axe so fast. And I have never thought that one may watch tv and be completely unaware that fire is so close.
Completely invisible.

Now all is fine , except the fact that our place is untouched , but completely useless because of huge stench. There is -20 ( -30 this night ) outside , so we can not ventilate our home...


midgard_reflection_property

Posted on 2006-01-26 11:33:06 UTC.

And here it is. Midgard goes reflected.

You should get latest CVS HEAD to try new midgard_reflection_property class.

Back

Layout Copyright © 2006 Finnish Teleservice Center Ltd Oy - Site Powered by Midgard CMS