Skip to content

Month: June 2019

Increase WordPress maximum file size

When you install WordPress on LiteSpeed server, you will use FPM instead of the default apache server to handle the web requests. However, a standard WordPress install only allow a maximum 2 Mb upload file size. To change the limit, you have to identify which php.ini to edit. To do this, type This will list all the php.ini files from the root directory. If you are using LiteSpeed, you should have a local php.ini in a directory similar to Note that 72 or 7.2 may differ depending on your default php version, which is 7.2 in my case. Change the…

Users’ fault on using escalators

An article on Channel News Asia commenting the unsafe ways where many escalator users were using prams on it, despite notices that warn of the dangers. Compass One general manager Sharon Tan commented: β€œIt should be about self-discipline and how safely we want our journey to be. And hopefully, our shoppers can inculcate the value of safe use of escalators.” Read more at https://www.channelnewsasia.com/news/cnainsider/almost-accident-day-singapore-escalators-reasons-why-prams-11639410 As a parent, I used prams regularly to bring my children around. It is often inconvenient to use lift for a number of reasons, including inconveniently-placed lifts. Putting the fault on the users is a convenient…

Branching in Git to Control Versions

This article is a followup on the introduction to source control with GitHub. It covers the process using branches to control different versions of a single project. Branching in Git After the first commit, you will be on the master branch. This should be the branch that contains the finalised code. When you are following a code tutorial, this branch should contain the latest working version of your tutorial. When developing a software project, this branch contains the code of your finalised working version. Before you continue adding more code to your master branch while following a tutorial, branch out…

Using GitHub with Xcode

Coding is hard. To a beginner, all the code looks alike. A beginner will have difficulties identifying where to insert code when they follow the instructions from a coding book. This problem is compounded when many coding textbooks contain typo errors such that even when the learner follows exactly what the book wrote, the code simply could not run as expected. As a trainer, it is often that we use long projects to showcase a combination of coding concepts. However, from the start of the project to the end, there are many intermediate stages where the learner may type wrongly…