articles

Rails file upload using Active Storage

In this tutorial, we would be learning to upload files in Rails. Rails file upload have become easier since the release of Active Storage. It allows us to handle file uploads without using any gem. This tutorial aims to deliver the simplest way to integrate Rails file upload. We would be skipping the details on […]

Advantages and disadvantages of UUID

WHAT IS UUID? A universally unique identifier (UUID) also known as a globally unique identifier (GUID) is a 128-bit number used to identify computer systems information. UUID VERSIONS V1 – Generated based on server’s mac address & current timestamp. (predictable) V3 – Generated based on the MD5 hash of namespace and name. (high probability of […]

How to create basic authentication in Ruby on Rails

In this tutorial, we will be creating a basic authentication in Ruby on Rails. Step 1: Adding a password_digest field to the model. This field will be used for authenticating the user. Step 1.1-A: Coming from a fresh Rails project. If you are doing this from a fresh project then you must first create a […]

How to convert HTML to PDF in PHP

In this tutorial, we will be learning on how to convert HTML to PDF in PHP. There are many PHP libraries around the internet nowadays but most of them just don’t work like you expected it to be. I have been required by my client to automatically generate documents in pdf format. I have tried […]

How to resize an image in PHP

In this tutorial, we will learn to resize an image in PHP. Whenever you are doing something like a CMS for your website that requires an image to be uploaded then you can have a problem where users upload images in different dimensions. This can be a problem in the front-end as your design will […]

Converting timestamp to time ago in PHP like Facebook

In this tutorial, we will be learning on how to convert timestamp to time ago in PHP. Most of you have noticed that the famous social networking site Facebook uses the time ago instead of posting the original timestamp. Time ago is calculated based on the difference between the current time and date to the […]

How to display number of post views WordPress

In this tutorial, we would be learning on how to display number of post views WordPress using a WordPress plugin. Tracking the views of your post and see them growing can be a satisfaction for the writer. This is why we are going to use a WordPress plugin to show the unique view count in […]

How to display the last updated date of your posts in WordPress

In this tutorial, we would be learning on how to display the last updated date of your posts in WordPress. Showing the last updated date of a post can be very beneficial. This allows your users to know that your post is still valid today, meaning it is kept up-to-date. Some posts really need to […]

Create plugin in WordPress step by step tutorial for beginners

This tutorial will guide you on how to create plugin in WordPress. WordPress plugins are simply PHP scripts that extend the functionality of your WordPress website. If you have a running WordPress website and you need to add some functionality you can always rely on the wordpress plugin directory, this enables you to add functionality […]

How to create CRUD operations plugin in WordPress

In this tutorial, we would learn how to create crud operations plugin in WordPress. This tutorial will demonstrate a WordPress plugin that can do CRUD (Create/Insert, Read/Select, Update, Delete) operations. Since we are creating a plugin that interacts with the database you might want to read these tutorials (How to connect to WordPress database and […]