• 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 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.
  • Install OpenLDAP Server on Ubuntu 20.04 Focal Fossa

    () is an open, vendor-neutral, industry standard application protocol for accessing and maintaining distributed directory information services over an Internet Protocol (IP) network. Directory services make sharing of information about users, systems, networks, services, and applications throughout the network possible. As examples, directory services may provide any organized set of records, often with a hierarchical structure, such as a corporate email directory.
  • How to Install PostgreSQL 13 on Linux Mint 20 Ulyana

    is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.
  • How to Install MongoDB 4.4 on Linux Mint 20 Ulyana

    MongoDB is an open source database that uses a document-oriented data model. Unlike relational databases, it doesn't consist of tables and rows, but it’s built on an architecture of collections and documents. Documents comprise sets of key-value pairs and are the basic unit of data in it. Collections contain sets of documents and function as the equivalent of relational database tables.
  • How to install PHP 8 on Linux Mint 20 Ulyana or Ubuntu 20.04

    As PHP had officially released , I decided to install it on my local development server. It uses Linux Mint 20 Ulyana which is based on Ubuntu 20.04 Focal Fossa, so official PHP package provided from their repository is at 7.4.3. Thanks to
  • Testing Slackware 14.2 or Current Using Persistent Live USB - LiveSlak

    Back when I was still on my college, Slackware was my first choice of favorite Linux distributions. RedHat was second, and Mandrake third. In other words, I've always had Slackware ran on my PC. It was fun back in those days. I learned many things then, mainly about networking and shell scripting. Using generic kernel? No way, that's too easy. Compiling my own kernel was how I spent my time that days.
  • How to Install MariaDB Server on Raspberry Pi with Debian 10 Buster

    I use Raspberry Pi as my personal web development server. It runs LEMP stack: Linux (Ubuntu/CentOS), Nginx web server, MariaDB database, and PHP 7/8. Whenever I need to change the OS I just to switch the microSD card.
  • 16

    How to Localize Time Format in Laravel and Carbon

    I develop a Laravel application which need to show date in localized format. The 'date' I'm talking about is database record which defined as in its model.
  • 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.