It’s been close to 4 years since I last developed an Android app. I released a private fun app for my own wedding, involving a connection to my VPS, and my own laptop. I could talk about it some other time, since I intend to replicate a better version of the app someday. Would be… Read More Using Google Places API for Android
* Do note in this post, I’m referring to a normal array, not the Arrays class in Java. All these are snippets of code, so remember to import the ArrayList package when you need to use the ArrayList class. I’m going to break this down into differences and similarities. Differences Between a Java ArrayList and… Read More Java: ArrayList vs Array
This problem is extracted from HackerRank: Counting Valleys. Its rating is Easy. We will be using Python 3 to solve this problem. Do try to solve it yourself first in HackerRank before peeking at the solution. 🙂
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
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: