Tuesday, February 21, 2023

Handling multiple build variants (flavors) resources with Gradle script (Android)

 

Requirements

Well, we've been asked to create a project which can generate different apps with different package names, and each of them has a different icon/png set and string values.

We want the user can handle all the APK generating and signing jobs by himself ( with minimum knowledge in Android programming).

I've seen some good example in StackOverflow but most of them doesn't really meet what I want so I'm creating one for myself.

Howto: Upgrade(Migrate) Your t2.micro EC2 instance

My first EC2 instance was created in 2015, and was a t2.micro for Free Tier. I've been using it for testing.

Since it's been years so I'm no longer eligible for Free Tier, so I keep paying for it.
Until recently I found that I need it to be faster and with larger storage (it was 30GB for Free Tier).

Googled for how to migrate your EC2 instance and saw many TLDR documents, not sure why do they have to use such a long article instead of an easy step by step instructions.

Friday, January 28, 2022

Howto: From Ethermine Payouts to Binance Wallet

This post is for miners who have configured their Ethermine to payout to Metamask via L2 Polygon(MATIC).

With Ethermine able to deposit payouts to Metamask via L2 Polygon (MATIC) network, miners don't have to pay the expensive Ethereum Mainnet gas fee. 

However, if you prefer to see your ETH in your exchange such as Binance instead of Metamask, then it'll be a long road. This post has all the steps required.

I'm writing this post because I hate to watch time-wasting tutorial videos. Most of the tutorial videos can be replace with a few screen shots easily, and takes less than 3 minutes to read. Also it's much easier to follow screen shots than videos. Hope you enjoy it.

What's In This Post

The whole steps are:
  1. Convert wrapped ETH token in Metamask to MATIC token
  2. Send MATIC token to Binance wallet via Polygon network

Then, for those who wonders:

"Hey, what I want to HODL is ETH, not MATIC!", 

They can simply do one step further, such as one of the steps below in Binance:
  • Convert of MATIC to ETH with Binance's Convert function, or
  • Sell with MATIC/ETH pair, or
  • Sell MATIC to BUSD, then buy ETH with BUSD