身份問題

我想大家申請個人信用卡,應該是沒什麼太大的問題,對於各個銀行的最新推出的卡片優惠什麼的,只要有長期關注美国信用卡指南 或者我常去看的 Doctor Of Credit 大概都不會錯過相關的DP或者特別驚喜 (我也特別在 reference 裡面附上我常參與的 FB groups). 不過個人信用卡申請久了,總會想試試看商業信用卡.不過如果常常看華人信用卡社團或者網站裡面看到相關介紹時,第一話總是:

Read more »

Question:
Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list.

word1 and word2 may be the same, and they represent two individual words in the list.

Read more »

Question:
Design a class which receives a list of words in the constructor, and implements a method that takes two words word1 and word2 and return the shortest distance between these two words in the list. Your method will be called repeatedly many times with different parameters.

Read more »

就地避難 (Shelter in place)

本來打算趁今天天氣不錯總算出太陽了,打算帶小孩去 Golden Gate Park 散散心避開人潮,畢竟現在 COVID-19 太過嚴重,最好還是不要去人多的地方增加感染的機率! 結果就在我們做好便當 (打算去踏青,順便找個無人的草原野餐) 準備出發的時候,竟然收到這則消息 -

原來就在今天舊金山市長 London Breed宣布整個舊金山在 3/17 凌晨 0:00 am 進入就地避難(Shelter in place) 的狀態,這還是我第一次在美國遇到這種狀況. 就上網查查現在是什麼情況.

Read more »

dagger-in-android.png?w=2924

In Dagger, it provides another way to inject/provide resources by using constructor injection. The typical case is that we use constructor injection in a class to inject needed resources as class parameters. In this way, we can directly use the required resources without declaring the @Inject keyword. Another pro tip is that it has very high potentialities to let your injection more robust and more flexible. Let’s see how we can use constructor injection for providing multi-source injection for the different release versions.

Read more »