Here’s a common error that people usually run into when doing Unity scripting, and it’s one that even reasonably-skilled programmers can take awhile to fix.Continue reading
About the author:
All posts by Terence:
If you, for some reason, are trying to remove the WordPress admin bar on the backend using
show_admin_bar(false) to no avail, that’s because the method does not remove the admin bar on the WordPress admin backend by design. If you still want to remove it, then this article is for you.
In programming, a concept that usually creates a lot of confusion among those new to it is the concept of passing a variable by value, versus passing a variable by reference. The 2 examples below illustrate the difference between these two ways variables can be passed in Java:Continue reading
If you’re just starting your foray into web development, you’ll probably find that HTML and CSS have a variety of quirks that can make working with them somewhat frustrating for beginners. One of these quirks involves the
text-align CSS attribute, as the attribute only applies its effects to certain kinds of HTML elements.
Looking to learn Git on your own, but not sure about where to get started? This article will be a great starting point for you. It’s the first in a series of articles called “Git” good, and it’s designed to help anyone learn Git online in a simple, linear and accessible manner.
In this article, we will be going through the install process for Git and exploring its most basic functionalities.Continue reading
Most programming languages come with native functions that help us round our numbers, either upwards (i.e. ceiling operation), downwards (i.e. floor operation), or to the nearest whole (i.e. round operation). While this is convenient, we sometimes need a bit more than that — what if — for example — we want to round our numbers to the nearest 0.5, or the nearest 3rd?Continue reading
Are you planning to create a Unity game for mobile devices? Wondering how you can export your game and install it as an app on Android? Look no further — here’s a step-by-step guide to exporting your game onto your Android device.
If you’re looking for a way to test your game as you’re making it, check out Unity Remote — it’s an Android app that mirrors Unity Editor’s Game screen when you are in Play Mode. Once you’ve installed it, we have a guide covering how to get Unity Remote working on your devices.Continue reading
Recently, I’ve done some work for a client with an odd issue: the contact forms on their website (let’s call it
client-website.com) — which delivered completed form enquiries using PHP’s
mail() function — could not send emails through to email addresses containing their own domain.
This means that, if we were to set the form to deliver enquiries to an address like
email@example.com, the email would be completely dropped — you would neither find it in the junk or spam folders, nor find any trace of the email in their admin and mail logs. If we delivered the email to our own personal email addresses (e.g.
firstname.lastname@example.org), or to emails from another domain (e.g.
email@example.com), then the email would go through (and skip right past the spam folder too).
For weeks, this problem confounded me, until now… and it’s actually a really simple fix.Continue reading
Over the weekend, I’ve spent a substantial chunk of time figuring out how to add a virtual host onto a client’s subdomain. In laymen’s terms, this means that:
- My client has a website hosted on a domain (which we shall call example.com, for confidentiality reasons)
- We want to build a web application on app.example.com, which will be entirely separate from example.com.
- To save on cost, we want to host app.example.com on the same server that example.com is using (i.e. create a virtual host on the web server).
This means that we have to configure our web server so that it will serve a different webroot depending on the domain it is being accessed from.Continue reading