To view this content, you must be a member of Terresquall's Patreon at $5 or more
Already a qualifying Patreon member? Refresh to access this content.
If you are running a small business and currently using a @gmail.com address, check out our new Virtual Email Hosting service. It maps a custom email address onto your existing Gmail mailbox, so you get to send and receive emails using the new address whilst keeping the same Gmail mailbox — no migrations needed.
Page content continues below:
Posts categorised under:
What are enums anyway, and what are they used for? Well, just think of it as yet another tool in your handy Java toolbox of things you can consider using to improve your efficiency and organisation of your program.
In this article, we are going to explore what enums are, and how they can be used in Java, by considering a piece of Java code that uses enums to recreate the type effectiveness system found in Pokémon.Continue reading
If you are new to working with CSS, you may find that the language comes with its fair share of quirks that can be frustrating, such as the
text-align attribute not always working at horizontally-aligning your content. In a similar way to
vertical-align attribute doesn’t always work at aligning your content vertically. Take the following HTML code for example:
<div style="width:100%;height:140px;background:#ddd;text-align:center;vertical-align:middle;"> <img src="http://placekitten.com/75/75"/> </div>
Even with the
vertical-align:middle style assigned to it, the image doesn’t align itself vertically! What’s going on? Here’s a quick breakdown of how to do it, with lots of examples, without having to do too much reading (great for if you’re rushing out a school assignment).
In a previous article, we explored how to import a CSV file into a table in MySQL. This is a continuation of that article, where we will explore how to split CSV files that contain data which is supposed to go into multiple tables.Continue reading
Ever wanted to create a game like Harvest Moon in Unity? Check out Part 9 of our guide here, where we go through how to improve on our current Inventory system. You can also find Part 8 of our guide here, where we went through how to make crops that can be harvested multiple times.
A link to a package containing the project files up to Part 9 of this tutorial series can also be found at the end of this article, exclusive to Patreon supporters only.Continue reading
CSV stands for Comma-Separated Values, and CSV files are text files that look something like this:
Username,Email,Address,Contact johndoe,email@example.com,"71 Pickering Street, Singapore, Singapore",+65-91234567 janedoe,firstname.lastname@example.org,"24 Raffles Lane, Singapore, Singapore",+65-81234567 marysmith,email@example.com,"83 Riveting Road, Singapore, Singapore",+65-97654321 bobsmith,firstname.lastname@example.org,"84 Riveting Road, Singapore, Singapore",+65-87654321
Essentially, the CSV file format is meant to represent tabular data. The above CSV file represents the following table:
|email@example.com||71 Pickering Street, Singapore, Singapore||+65-91234567|
|firstname.lastname@example.org||24 Raffles Lane, Singapore, Singapore||+65-81234567|
|email@example.com||83 Riveting Road, Singapore, Singapore||+65-97654321|
|firstname.lastname@example.org||84 Riveting Road, Singapore, Singapore||+65-87654321|
Due to their tabular nature, data in a CSV file can very easily be imported into and stored in an SQL table. The commands to do that, however, are not very well-documented online.
If a CSV file does not open as a text file on your computer, that’s because your computer is opening the file with a spreadsheet program such as Microsoft Excel. In such a case, to see the file as text, you will want to open these files on a text editing software such as Notepad.Continue reading
Ever wanted to create a game like Harvest Moon in Unity? Check out Part 7 of our guide here, where we go through how to grow and harvest crops. You can also find Part 6 of our guide here, where we went through how to create an in-game time management system.
A link to a package containing the project files up to Part 7 of this tutorial series can also be found at the end of this article, exclusive to Patreon supporters only.Continue reading
Whenever you are logged in to WordPress, there is a black admin bar that shows up above every page. On front-end pages, you can call
show_admin_bar(false) in one of your plugin or theme functions to remove it. Individual users can also hide the admin bar on their account’s profile page.
All of this, however, doesn’t work if you are on a backend page. No matter what you do, the admin bar will always show up in those circumstances, unless you remove the admin bar programmatically — this article is here to show you how, as well as why you would want to do such a thing.Continue reading