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
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
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:
If you need to access the value of some variable in your app later on, be it in the same class or not, you might like to save it first using NSUserDefaults. Here’s an example with an NSString variable: If you have an NSInteger type variable instead, change your second line to: You may implement… Read More iOS: Save/Retrieve Data Using NSUserDefaults