October 2008
3 posts
1 tag
PHP destructor vs shutdown function
I found an interesting problem. In some of my PHP classes I needed to ensure that destructor is called, even if user aborts the execution. Well, I learned that user cannot actually abort it since clicking the Stop button in your browser does not stop PHP, it keeps going until either the script finishes (destructor gets called) or PHP timeout is reached (destructor is not called). I got worried...
Oct 25th
1 tag
How to lock KDE session when power button is...
I have a kid that likes to play around my laptop while I work on it and sometimes presses the power button. Default setup on Slackware 12.1 is that laptop starts the shutdown sequence right away. No need to mention how frustrating can that be if you’re in middle of something. I decided to search for a way to prevent this from happening and have my screen lock instead. I searched a little...
Oct 23rd
1 tag
Regexxer on Slackware 12.1
It seemed easy. You just need: libsigc++ 2, gtkmm 2, libglademm 2.4.0, gconfmm 2.6.1 and PCRE. Some of those I already had, so I only needed libglademm and gconfmm. The first one installed without problems: single tarball, $ configure —prefix=/usr $ make # make install Fine! The other one (gconfmm)… well, it turns out you need gconf for that, I did not have it, so hop to the Gnome...
Oct 9th