I’ve been put into a situation where the most basic php function mail() has been giving me a headache. It’s because there are no parameters to be specified and you cannot send an email without sacrificing security and to be perfectly clear; you cannot even send email the right way using it in most cases. Continue reading
I’ve used an appliance (link below) to setup basic Guacamole setup MySQL auth, but lately a font rendering on HiDPI displays bug has been bugging me more and more. So I’ve decided to upgrade to the git version as there should be a workaround implemented.
Sometimes, usually log files, keeps consuming disk space even after deletion. It’s caused by locks of a process which still keeps using them.
In order to diagnose the problem we have to find those files.
lsof | grep deleted | grep /var/log/apache2 | sort | tail
The output should look something like:
apache2 8728 www-data 79w REG 254,2 23002246 524353 /var/log/apache2/iframes.espoluprace.cz-access. log.1 (deleted) apache2 8728 www-data 80w REG 254,2 5629092 524396 /var/log/apache2/vip.espoluprace.cz-data-access .log.1 (deleted) ... ...
You can see there is process apache2, pid 8728 run by user www-data which holds the files for 79 weeks. The only thing you need to do is to restart the service in this example and the disk space gets freed up.
I just want to put them all together as I don’t use it on daily basis so it’s quite difficult to hold them in my internal memory (yes, I do mean my brains 😉 ).
I’ve bought a MacBook Pro with Retina Display ( MBP11,1 – 13-inch, Late 2013 ) and after a few days of playing with it Ive discovered the Energy Saver Pane is a little different; most importantly: the Computer Sleep slider is missing. I’ve done some googling and after few hours found out how to get it back.