Author Archive

Installing Elasticsearch in Kubernetes

Most applications need full text search. When done right, it makes finding what you’re looking for faster and more accurate. There are a number of options to choose from like Elasticsearch, Algolia, and Redisearch. If cost is an issue (like it is for most of us) the open-source version of Elasticsearch is a great choice. […]

Read More

Autocompletion Using Elasticsearch

Autocompletion provides an efficient, user-friendly way to look up a value when the list of possible values is too long for a standard drop-down. I use autocompletion extensively for filtering workorders and assets in our asset tracking and workorder system. Other examples are filtering a list of products in an ecommerce site or finding a […]

Read More

Form Best Practices

Individual field validation can be handled using html 5 validation attributes like required, pattern etc. and with javascript validation in events like change, blur etc. Multi-field validation e.g. filling out one field makes another one required when it was not required before, can be handled at the individual field level by triggering an event when […]

Read More

Working with PHP and a custom syslog file

First, open syslog.conf (normally at /etc/syslog.conf) and see which local log facility is available. A log ‘facility’ is a mechanism syslog provides to specify what type of program is logging a message. Local log facilities are for user defined programs. Here’s what the relevant portion of my syslog.conf file looks like: lpr.info/var/log/lpr.log mail.*/var/log/mail.log ftp.*/var/log/ftp.log install.*/var/log/install.log […]

Read More