I am investigating how to use Realm-Kotlin on KMM module, realm is a Non-SQL database, and it is great when I try to use it in the KMM module, but there are some problems when I use it.

  1. The in statement is not supported when pass the list as the parameter
  2. The parameter in the query need the index as $0, $1, it’s not easy to manage it

To solve the problem, I write a Criteria class to generate the query string with correct index, also it will change the In statement to Or statement.

Criteria Description

--

--

Today, I add one of my domains to Cloudflare, but after I added a new record, I can’t access the web on my Mac, when I try to ping the host, it reports Unknown host, but on some servers, it can be accessed.

So I think it’s the problem of the local dns, and I find the solution from this article How to Flush your DNS Cache on Mac, the solution is run the following command on the Terminal.

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

--

--

When we use git on a server first time, it will report the following error if we didn’t set the email and name:

*** Please tell me who you are.Rungit config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to…

--

--

Stephen Lee

I am a software engineer, I like to use the computer to solve problems. website: https://wp.y9i.cc/