Install Pecl/Pear on Mac OSX

Use curl as shown below to download the go-pear.phar file or just download the go-pear.phar file via your browser. $ curl -O $ php -d detect_unicode=0 go-pear.phar You’re now ready to configure PEAR for installation. First you need to change the Installation Base. So type 1, and then press Enter. Enter /usr/local/pear Press Enter. … Read more

Heroku Redis Key Eviction Policy

Redis has a maxmemory-policy where it decides how to handle keys when memory limit is reached. noeviction will return errors when the memory limit is reached. allkeys-lru will remove less recently used keys first. volatile-lru will remove less recently used keys first that have an expiry set. allkeys-random will evict random keys. volatile-random will evict … Read more

Vuex Two Way Data Binding

I was having trouble understanding the work-flow and boilerplate of using Vuex state in my components. This article by Markus Oberlehner helped me understand how to bind elements to the state and how to use vuex-map-fields to simplify the process. Here’s the manual way. Read his post to find out about vuex-map-fields