Saturday, July 24, 2010

been a while

it's been a while since i've put up a post, which is pretty contradictory to the purpose of blogging. with a new baby, it has been hard to find time.

when i hold my baby, i get terrified for a moment. i'm not scared i'm going to hurt him. i'm scared i'm going to blink and wake up, and it will all be over. he will be grown up, and he will no longer be the little boy that i love to hold in my lap.

he's growing so quickly. i'm terrified.

Thursday, July 1, 2010

SE Linux blocks connectivity between apache, postgres, and php

i've been having trouble with my apache/php/postgres installation on fedora core 12.

the problem was that i could not get php to connect to postgres when i executed code via the web browser. i was getting an error in the apache log that was denying the connection. if i executed the code from the command line through the php executable, it worked fine.

it turns out that SE Linux is blocking this connection. the following command (entered as root) solved the problem:
setsebool -P httpd_can_network_connect_db 1


terminals on top of each other

i use the terminal a lot in Linux and OS X. one thing i've noticed is that when you open a new terminal (in either one), it likes to put the new terminal on top of the old one, meaning you immediately move it so that you can see both terminals at once.

why don't they have a better offset system for terminal windows? when i open another terminal, make it so it is as far away from the first terminal as possible. that is where i'm going to end up moving it anyway.

annoying.