Monthly Archives: March 2016


Android OpenCV – Face Detection and Recognition Demo – Privacy Policy

Other than the device ID which might be shared for receiving advertisements, we don’t collect or share other personal information.

Get it on Google Play


Tail logs with color for Monolog 1

#1. Copy/paste the below lines in your .bashrc

tailf-with-colors () {
    if [ -z "$1" ] ; then
        echo "Please specify a file for monitoring"
        return
    fi

    tail -f $1 | awk '
                {matched=0}
                /INFO:/    {matched=1; print "\033[0;37m" $0 "\033[0m"}   # WHITE
                /NOTICE:/  {matched=1; print "\033[0;36m" $0 "\033[0m"}   # CYAN
                /WARNING:/ {matched=1; print "\033[0;34m" $0 "\033[0m"}   # BLUE
                /ERROR:/   {matched=1; print "\033[0;31m" $0 "\033[0m"}   # RED
                /ALERT:/   {matched=1; print "\033[0;35m" $0 "\033[0m"}   # PURPLE
                matched==0            {print "\033[0;33m" $0 "\033[0m"}   # YELLOW
        '
}

#2. Run source ~/.bashrc -- to reload 

#3. Run tailf-with-colors <filename>