Author: Dan LaSota

  • Style Sheet for Printing

    I worked up a quick style sheet for print media (fancy way of saying printing), for this blog. Browser support for published standards of print style sheets is lacking at the moment, but most browsers support the “display:none” property. With this control, I can make certain elements of the page disappear. When these pages are…

  • PHP 5.1.31

    I was running into errors with the previous ./configure command. I did some searching and found that the zlib library had changed and had to be recompiled if shared. The PHP configure script now is: ./configure –prefix=/usr/local/php5 –mandir=/usr/share/man –infodir=/usr/share/info –sysconfdir=/etc –with-config-file-path=/etc –with-zlib –with-zlib-dir=/usr/zlib –with-openssl –without-iconv –enable-exif –enable-ftp –enable-mbstring –enable-mbregex –enable-sockets –with-mysql=/usr/local/mysql –with-pdo-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-mysql-sock=/tmp/mysql.sock –with-apxs2=/usr/local/apache2/bin/apxs…

  • Visitor Screen Width Analysis

    Unique Visitors Data from Google Analytics on unique visitors to https://www.uaf.edu/water or recently edited pages in the “triage” style pages. The witdh is pixels of screen resolution. Data from screens with the same width but varying heights were combined. This represents all visitors between 21 Sept 2009 and 21 October 2009 Width (pixels) Visitors (unique)…

  • Mail Server Fixed

    changed the php.ini file to read: sendmail_path = /usr/sbin/postfix -t -i postfix actually changes over the “sendmail” binary I think. There is a test doc up at: https://beta.ine.uaf.edu/mailTest.php it contains a simple time function and mail() call. Just edit the email address there to have it send to you. I test this out and it…

  • You Tube Policies

    Background This is a followup to https://lasota.engr.uaf.edu/2009/08/05/research-needed-into-policies-and-legalities/ and had  Sandra asked me to look into posting video on the web. UAF Video now CEM has already posted some student videos at  https://www.youtube.com/user/UAFEngineering. Other UA YouTube channels: https://www.youtube.com/user/uaaengineering UAA engineering https://www.youtube.com/user/uafairbanks more hip, better editing, recent videos https://www.youtube.com/user/AlaskaSeaGrant https://www.youtube.com/user/uafsom https://www.youtube.com/user/uafcrs (showing actual inventions like the pinbone…

  • Compiling php 5.3

    Source: php.net 5.3.0 latest stable build of 5.3 branch ./configure –prefix=/usr/local/php5 –mandir=/usr/share/man –infodir=/usr/share/info –sysconfdir=/etc –with-config-file-path=/etc –with-zlib –with-zlib-dir=/usr –with-openssl –without-iconv –enable-exif –enable-ftp –enable-mbstring –enable-mbregex –enable-sockets –with-mysql=/usr/local/mysql –with-pdo-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-apxs2=/usr/local/apache2/bin/apxs Error: checking libxml2 install dir… no checking for xml2-config path… configure: error: xml2-config not found. Please check your libxml2 installation. After a yum install libxml2-devel.x86_64: configure: error:…

  • Apache Startup Script

    The CentOS startup script for apache is located at /etc/init.d/httpd. I backed this file up to /home/lasota/saved/httpd_d/httpd and replaced it with: #!/bin/bash # # apache # # chkconfig: # description: Start up the Apache web server. # Source function library. . /etc/init.d/functions RETVAL=$? APACHE_HOME=”/usr/local/apache2/” case “$1″ in start) if [ -f $APACHE_HOME/bin/apachectl ]; then echo…

  • MySQL configure script error

    Following the install directions for MySQL source distribution: shell> groupadd mysql shell> useradd -g mysql mysql shell> gunzip < mysql-VERSION.tar.gz | tar -xvf – shell> cd mysql-VERSION shell> ./configure -prefix=/usr/local/mysql shell> make shell> make install shell> cp support-files/my-medium.cnf /etc/my.cnf shell> cd /usr/local/mysql shell> chown -R mysql . shell> chgrp -R mysql . shell> bin/mysql_install_db –user=mysql…