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. […]
Archive for category: Development
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 […]
Here’s a quick tip on copying markdown as full-fledged html in iA Writer.
This is extrapolated from the following stackoverflow post: To understand the difference between Module.exports and exports, you have to understand how require() is implemented. First a Module object is created: Then the code from the required file is wrapped in an IIFE to give it function scope As you can see in the IIFE parameter […]
Creates a new object Invokes func with ‘this’ set to the newly created object, passing any arguments along to func (‘arg’ in the above example). Sets the new object’s prototype equal to func’s prototype. Returns the new object Example Property lookup f -> func.prototype -> Object.prototype
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 […]
Install Ubuntu Download an iso image of Ubuntu Server 12.04 from Ubuntu’s website and burn it to CD. Choose the following options during the “Software Selection” phase of the installation (optional): OpenSSH Server Manual Package Selection (+ to add package, q to quit and install) httpd > main > apache2.2-bin httpd > main > libapache2-mod-php5 […]