As a computing teacher, I sometimes get pretty funny questions from students whom you know are very new to computers. Or perhaps, they just haven’t had the experience with text editors very much. One question I often get from my students who use Windows for coding is this: “Teacher, how do you remove this black… Read More Teacher, What’s the ‘Black Thing’?
In most programming languages, there are two commonly used loops: for and while loops. This goes the same for Java, which is widely used as an (object-oriented programming) OOP language. In this post, you will learn which loop is suitable under which situation, and how to construct your loops based on a problem. Which Loop… Read More Java: It’s a Loopy Situation!
For every problem, there could be more than one way to solve it. To understand Object-Oriented Programming (OOP) and use it to its best utility, we need to understand some basic principles. The best way to demonstrate that is by example. Problem Statement Suppose in my system, I have to keep track of credit card… Read More A Simple Guide to OOP in Python 3
I’ve dabbled with Flask apps last year, but only for awhile, and only for personal projects. I have always been resistant when it comes to using Python 3, instead of Python 2. This is because many packages were written in Python 2, and had limited support in Python 3. It seems like it’s not the… Read More Flask Apps with Python 3
The job of a software engineer or a coder is very much coveted these days, especially in giants like Google and Facebook. If you do not have a degree in Computer Science or the like, you may be wondering what you should expect when you start learning coding. Having taught a gamut of IT subjects… Read More So You Want to Learn Coding. Here’s What You Need to Know
By now, you should have registered your domain name and configured the DNS settings so that it will point to your VPS. If you haven’t, and somehow stumbled on this post, go back to Step 1 to register your domain name via NameSilo. If you’ve missed Step 2, go back and configure the DNS settings… Read More WordPress On VPS (Step 3): Installing WordPress
By now, you should have completed Step 1 (registering your domain), but if you haven’t, go ahead and complete it before proceeding to this step. I am using NameSilo as my domain registrar. Step 2: Configure DNS Settings For Your Domain We now need to configure the DNS settings for your domain, so that anyone… Read More WordPress On VPS (Step 2): Configure DNS Settings For Your Domain
So I have put off starting up a new WordPress website for a few months now, because I delivered my super adorable baby boy in January this year. And any parent will often find that they do not have the luxury of working several hours at a go (which most developers truly enjoy). Well, I’ve… Read More WordPress On VPS (Step 1): Register a Domain Name
To obtain the screen size based on the orientation and type of device, use this: screenWidth will return the width, and screenHeight, the height of your screen, even when your device is in the landscape orientation.
You can store CGRect items into an NSArray. You need to store them as NSValue types: Here’s how to retrieve the items later on: