Category: How-To Guides

  • Adding imagick to PHP 7.4 and 8.1 on MacOS 12.6

    Adding imagick to PHP 7.4 and 8.1 on MacOS 12.6

    I’m currently preparing my brand new Macbook Air for WordPress plugin development. I have installed PHP 8.1 using homebrew, a well-known package manager for most software developers using Mac. After installing WordPress, I notice WordPress complained about missing imagick library. I tried to install but encountered an error.

    (more…)
  • Making PostgreSQL run on the first start of WSL 2 terminal

    Making PostgreSQL run on the first start of WSL 2 terminal

    My daily routine involves working with Ruby on Rails with PostgreSQL as a relational database service. Thus, I will be discussing about how to automate the start of PostgreSQL service on Windows Subsystem Linux (WSL) 2.

    (more…)
  • RoR: Determining two date within the acceptable range

    RoR: Determining two date within the acceptable range

    There are two dates where the first date is greater or equal to (gteq) and the second date is less than or equal to (lteq). Both dates set to have a rule where it must be within 3 months range. As always, there are always many ways to determine the range of between gteq and lteq. We will discuss three (3) solutions for this case where the third solution is the best way to consider.

    (more…)