Something to know before we get started – the following is just a quick notes of some of my findings about overriding getter & setter in the property and using private properties in the models. It will be relatively short & not in-depth, but comments are welcome if you want to discuss more on these.
So, let’s get started. In the past few weeks I’m working on an iOS app with RealmSwift as the choice of the local database. This is my 1st time working with Realm APIs and I’ve encountered some issues and concerns. As mentioned before we started, one of the issue was about overriding getter & setter of the property in a Realm model class, and the concern was about “can private properties be used in the models?”
First off, we start from having a look of Setters and getters section from Realm’s document.
Continue reading “[Swift; Realm] Override property’s Getter & Setter in model classes & declaring property as private”
Recently I’ve been Woking on a project using Couchbase Lite on Android and I had an issue overwriting the tables in database (they call the tables “documents” in Couchbase) by following the code from the official guide. Therefore, I’m writing this post to jot down and share the solution I’ve figured out to overwrite the documents.
Continue reading “Overwrite Couchbase documents on Android”
I use my MacBook everyday to work on development and I use Homebrew to manage the packages on it. They work fine throughout the days but it’s such a plain to free up spaces on my machine by removing the packages I don’t need anymore.
If you’re a developer who use macOS as your daily driver, you probably familiar with Homebrew and understand my plain. For those of you who don’t know what’s Homebrew, ~~you could just skip the rest of this~~ it’s the most common, and probably the best package manager on macOS.
The only thing is lacking on Homebrew is the ability to auto remove the unused dependencies. There isn’t any official way to do the clean up. You might end up having lots of unused dependencies remain in you machine and take up a lot of storage. And trust me, you don’t want to remove those dependencies one by one manually or by using a set of commands to clean them up. Therefore we need a simple and elegant solution to get the job done. rmtree is what I’ve found for this purpose.
Continue reading “[Homebrew] Remove packages and unused dependencies to free up spaces”
As my old domain “wings-lab.org” has been expired on 13th this month, I’ve planned to give up that domain and brought a new one for my new website – Devtography, which is the site you’re on now. With that being said, I need to change my domain settings to get my servers respond on the new domain.
Getting the my servers respond on the new domain was easy, just replace my old domain with the new one in the DNS records and that was it. But the story wasn’t the same when it comes to WordPress. There are a few steps to do in order to let it works on the new domain. Here I’ll show you how did I get it works.
Continue reading “Changing the domain of a WordPress site”