This .htaccess file does the following: Allow SSI lines 1/2/3 Reauire Authenitcation for all outside except those from a particular IP the rest .. Options +Includes AddType text/html .shtml .html AddOutputFilter INCLUDES .shtml .html AuthType Basic AuthName “Password Required For INGG Monitor” AuthUserFile /var/www/passwords/password.file Require valid-user Order deny,allow Deny from all Allow…
Month: August 2013
Installing latest ImageMagick on Centos 6.3
When I needed ImageMagick on Centos the default installer came with a version some 400 verison back. Installing the latest version was a bit wiry so here it goes: wget “http://www.imagemagick.org/download/linux/CentOS/i386/ImageMagick-6.8.6-9.i386.rpm” yum install bzip2-devel freetype-devel libjpeg-devel libpng-devel libtiff-devel giflib-devel zlib-devel ghostscript-devel djvulibre-devel libwmf-devel jasper-devel libtool-ltdl-devel libX11-devel libXext-devel libXt-devel lcms-devel libxml2-devel librsvg2-devel OpenEXR-devel yum install…
Node.js handling mysql disconnects.
You may lose the connection to a MySQL server due to network problems, the server timing you out, the server being restarted, or crashing. All of these events are considered fatal errors, and will have the err.code = ‘PROTOCOL_CONNECTION_LOST’. See the Error Handling section for more information. A good way to handle such unexpected disconnects is shown below:…
svn fails to transmit data: Transmitting file data .
I had svn not committing to the repository. It would just stop at Transmitting file data . and would not budge. upgrade , and committing another file on it’s own would work . I sudo’ed as root and used chown user. on the folder where the working copy was and it sorted itself out….