Skip to content

Stanley Sim Posts

Unit 1.3: User Entry

Objectives Create a text field in Interface Builder Connect the text field to the view controller as an IBOutlet Print the value from the text field as a String to console https://github.com/Classroom-Technologies-LLP/Unit-1.3-User-Entry

Unit 1.2: Simple Calculator

In this unit, you will use a UIButton to create an Action that adds two numbers. Objectives Declare variable and constant identifiers. Operating on two identifiers. Challenge Create a 4-buttons calculator that add, subtract, multiply and divide two identifiers of Double data type. Git Repo https://github.com/Classroom-Technologies-LLP/Unit-1.2-Simple-Calculator

Unit 1.1: Hello World

In this unit, you will learn how to add a button to the iPhone in the Interface Builder and print the String “Hello World” when the button is tapped. https://github.com/Classroom-Technologies-LLP/Unit-1.1-Hello-World

Curiosity’s Mars Methane Mystery Continues

NASA’s Curiosity team found spike in methane concentration in atmosphere. … NASA’s Curiosity Mars rover found a surprising result: the largest amount of methane ever measured during the mission — about 21 parts per billion units by volume. https://www.nasa.gov/feature/jpl/curiosity-detects-unusually-high-methane-levels There had been many incidences in past space explorations that hinted the presence of life, but eventually found to be abiotical in nature. Although I wish this discovery would prove the presence of life, my logical mind would place this as another false alarm.

Gold Coast Marathon 2019

I managed to complete the Southern Cross University 10 km Run in 55 min 55 Sec. Just about the average of the average. I could have pushed myself harder to get to a slightly better position, but I am pleased with this result. Images

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…