• Generating Dummy Data in Laravel Application Using Faker

    Back in the good old days, I often test PHP applications by accessing it directly from the web browser and input the data in the forms. Today, with the explosion of awesome PHP libraries we can now generate most kinds of data by using code alone. The data can then be directly inserted into the database. This reduces the need to input data directly into the app. In Laravel application, there’s an awesome package for this called Faker - a PHP library that generates fake data for you. Faker is not exactly Laravel package, but perfectly works with this framework as well. Check their github page: https://github.com/fzaninotto/Faker
  • How to install MongoDB 4.2 on Linux Mint 19

    Using official Ubuntu's repository is easier if you don't care if you're using older MongoDB version.
  • How to install PHP 7.3 on Ubuntu 18.04 (Bionic Beaver)

    As PHP had officially released , I decided to install it on one of my development server. It uses Ubuntu 18.04 (Bionic Beaver), so official PHP package provided from their repository is at 7.2.19. Thanks to
  • How to Install PostgreSQL 12 on Linux Mint 19 Tara (19.1 Tessa, 19.2 Tina, 19.3 Tricia)

    The PostgreSQL Global Development Group had announced the release of PostgreSQL 12 . Let's install it on our Linux Mint 19 (19 Tara, 19.1 Tessa, 19.2 Tina, 19.3 Tricia).
  • How to Use Tailwindcss with Laravel 7

    Tailwind CSS is a highly customizable, low-level CSS framework that gives you all of the building blocks you need to build bespoke designs without any annoying opinionated styles you have to fight to override. Most CSS frameworks do too much. They come with all sorts of predesigned components like buttons, cards, and alerts that might help you move quickly at first, but cause more pain than they cure when it comes time to make your site stand out with a custom design.
  • How to Read SMART Log from NVMe Device on Linux

    After convincing myself that it's worth the price, I took the courage to get an NVMe SSD and install it to my PC. I've considered two strong candidates: Samsung 970 Evo Plus and Adata XPG SX8200. Adata has cheaper price and I'm going to take it, but in last minutes I choose Samsung one because it has bigger TBW so I hope it will be last longer.
  • How to Install Ubuntu 20.04 Focal Fossa Server

    On Thursday, April 23rd, 2020, Canonical Ltd, the makers of distribution officially released the long-awaited version code-named “”, it is an () version based on Linux kernel series , for which maintenance updates will be provided for 5 years until and it will reach end-of-life in . This article will walk you through the process of installing with on your machine.
  • How to Install PostgreSQL 12 on Ubuntu 20.04 Focal Fossa

    , or Postgres, is a relational database management system that provides an implementation of the SQL querying language. It’s standards-compliant and has many advanced features like reliable transactions and concurrency without read locks. PostgreSQL is developed by PostgreSQL Global Development Group, a group of individual volunteers and corporate companies.
  • 09

    Calculate Distance Between Two Coordinates in PHP

    I have a client which sell foods and offer free delivery for small covered area. To check whether a coordinate is still covered by its service, I need to calculate the distance. There are many PHP functions shown up when we searched "", but I need the result to closely match with Google because I display the covered area in Google map.
  • 08

    Laravel Accessors: How to Use and When Do We Use It

    Eloquent ORM included with Laravel provides a simple ActiveRecord implementation for working with database. Each database table has a corresponding "Model" which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table.
  • 07

    PHP 5.5, Deprecated MySQL Extension, and PDO Extension

    Seasoned (read: old) PHP programmer definitely must have used this MySQL extension most of the time. Build a quick and dirty demo application or proof of concept application, this extension is pretty straightforward. The MySQL extension is the oldest of the three and was the original option developers used to communicate with MySQL. However, this extension is now being deprecated in PHP 5.5 and removed in PHP 7.0. So the choice now is between the other two alternatives because of improvements made in newer releases of both PHP and MySQL and security issues.
  • 06

    Using Composer with CodeIgniter

    All web app developers, who have started using modern frameworks like Symfony, Slim, Laravel etc and have wished for the composer support inside their CodeIgniter application, I will try to show you the most efficient and standardized way to achieve this goal. If you are concerned to get support for composer with codeigniter in an existing application, you can totally do that without much worry as well.