搜尋此網誌

2015年2月20日 星期五

【Note】信用卡入帳日、結帳日、繳款截止日 差別

 

消費日 --- 刷卡消費的日期。

入帳日 --- 刷卡消費後店家向發卡銀行請款的當天為入帳日,有時日期會和實際消費日不同。

入帳起息日 --- 指銀行開始墊付消費款予特約商店,已為持卡人負擔墊款成本的起始日,並登錄於持卡人帳上之日,即發卡機構實際墊款日,此時,發卡機構墊款資金成本亦隨之產生,且持卡人如於繳款截止日前繳清全部款項,就不會有循環利息產生。


結帳日 --- 銀行結算持卡人當月應繳交帳款(新增消費金額,前期未繳清卡費、利息)的日子,結帳日後的款項則於次月計算,通常發卡當天就會告知結帳日落在何時假設結帳日為每個月18號,結算前30天的消費。例如:3月18日結算 → 2月19日到3月18日之間的刷卡交易。


繳款截止日 --- 當期信用卡帳單最後繳款期限,通常繳款截止日為結帳日後的 14-21 天,實際情況依銀行不同有所差異,若申請該行帳戶自動扣繳,當天就會進行扣款,如果沒有在繳款截止日當天晚上 0 時前完成繳款,將會面臨逾時違約金、循環利息,甚至導致信用不足等狀況發生。例如:結帳日為每個月18號,結帳日大概會落在次月3號。

循環信用利率自「入帳日」開始計息,不是「繳款截止日」。

2015年2月18日 星期三

【Note】跨轉、跨提、跨存 差別

這三個詞分別是跨行轉帳、跨行提款、跨行存款。先了解跨行的定義,再分別套用轉帳、提款、存款。


以下用跨行轉帳作為範例,分三部分


金融卡發卡銀行、ATM(實體或網路銀行)、目的地帳戶,三部分有任一個不同就是跨行。


例如:


A銀行金融卡,去A銀行ATM或網路銀行,轉帳,到A銀行帳戶(自己的或別人的) ---> 非跨行。


A銀行金融卡,去A銀行ATM或網路銀行,轉帳,到B銀行帳戶(自己的或別人的) ---> 跨行。


A銀行金融卡,去B銀行ATM或網路銀行,轉帳,到B銀行帳戶(自己的或別人的) ---> 跨行。


A銀行金融卡,去B銀行ATM或網路銀行,轉帳,到B銀行帳戶(自己的或別人的) ---> 跨行。


A銀行金融卡,去B銀行ATM或網路銀行,轉帳,到C銀行帳戶(自己的或別人的) ---> 跨行。

2015年2月16日 星期一

【Note】普通、限時、掛號、限時掛號 差別

普通-----最便宜 不是優先處理的郵件 有可能很慢才寄到

限時-----可控制郵件到達的時間 較貴

掛號-----信件一定要有那個地址的人簽收或蓋章 如果郵差和住戶無法碰面

郵局會留掛號通知單 請您在到期日之前 帶著通知單 身份證和印章

限掛-----綜合限時+掛號


若是週五寄掛號   可能周一才會收到
但是以限掛寄出   周六和周日可能就收到了

2015年2月7日 星期六

2015年2月3日 星期二

【Android】BlueStacks 修改預設記憶體容量

ref:http://goo.gl/E3WG9q

步驟1:按下『Win+R 或是 『開始→執行』 
步驟2:輸入 regedit 並按下確定
步驟3:找到 HKEY_LOCAL_MACHINE 並展開
步驟4:展開 SOFTWARE
步驟5:展開 BlueStacks
步驟6:展開 Guests,並點選 Android 
步驟7:點兩下右邊視窗中的『Memory' 
步驟8:選擇十進位,並將768改為您預使用的記憶體容量 
    ※注意:需考量您系統記憶體加上BlueStacks是否夠用

2015年1月22日 星期四

【Android】String Resource

紀錄一下
ref:http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling

Formatting and Styling


Here are a few important things you should know about how to properly format and style your string resources.

Escaping apostrophes and quotes

If you have an apostrophe or a quote in your string, you must either escape it or enclose the whole string in the other type of enclosing quotes. For example, here are some stings that do and don't work:
<string name="good_example">"This'll work"</string>
<string name="good_example_2">This\'ll also work</string>
<string name="bad_example">This doesn't work</string>
<string name="bad_example_2">XML encodings don&apos;t work</string>

Formatting strings

If you need to format your strings using String.format(String, Object...), then you can do so by putting your format arguments in the string resource. For example, with the following resource:
<string name="welcome_messages">Hello, %1$s! You have %2$d new messages.</string>
In this example, the format string has two arguments: %1$s is a string and %2$d is a decimal number. You can format the string with arguments from your application like this:
Resources res = getResources();
String text = String.format(res.getString(R.string.welcome_messages), username, mailCount);

Styling with HTML markup

You can add styling to your strings with HTML markup. For example:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="welcome">Welcome to <b>Android</b>!</string>
</resources>
Supported HTML elements include:
  • <b> for bold text.
  • <i> for italic text.
  • <u> for underline text.
Sometimes you may want to create a styled text resource that is also used as a format string. Normally, this won't work because the String.format(String, Object...) method will strip all the style information from the string. The work-around to this is to write the HTML tags with escaped entities, which are then recovered withfromHtml(String), after the formatting takes place. For example:
  1. Store your styled text resource as an HTML-escaped string:
    <resources>
      <string name="welcome_messages">Hello, %1$s! You have &lt;b>%2$d new messages&lt;/b>.</string>
    </resources>
    In this formatted string, a <b> element is added. Notice that the opening bracket is HTML-escaped, using the&lt; notation.
  2. Then format the string as usual, but also call fromHtml(String) to convert the HTML text into styled text:
    Resources res = getResources();
    String text = String.format(res.getString(R.string.welcome_messages), username, mailCount);
    CharSequence styledText = Html.fromHtml(text);
Because the fromHtml(String) method will format all HTML entities, be sure to escape any possible HTML characters in the strings you use with the formatted text, using htmlEncode(String). For instance, if you'll be passing a string argument to String.format() that may contain characters such as "<" or "&", then they must be escaped before formatting, so that when the formatted string is passed through fromHtml(String), the characters come out the way they were originally written. For example:
String escapedUsername = TextUtil.htmlEncode(username);
Resources res = getResources();
String text = String.format(res.getString(R.string.welcome_messages), escapedUsername, mailCount);
CharSequence styledText = Html.fromHtml(text);

2015年1月15日 星期四

【Android】java.lang.ClassCastException: android.widget.... cannot be cast to android.widget....

Solve method:

Eclipse tends to mess up your resources every now and then. This leads to some odd behavior such as strings and images being swapped all over your app, and more commonly classCastException(s), which happen when Eclipse switches your Views' ids around.
A few solutions to that problem:
Clean your project.
Modify an xml layout file and save.
Delete your R file. (Don't worry it will be automatically generated again).
Basically anything that makes your project rebuild and re-generate the R file.

ref:

2015年1月13日 星期二

【Android】onActivityResult()和onResume()誰先執行

ref:onActivityResult()和onResume()的調用順序問題

protected void onActivityResult (int  requestCode, int resultCode, Intent  data)
Since: API Level 1 Called when an  activity you launched exits, giving  you the requestCode you started it  with, the resultCode it returned, and  any additional data from it. The resultCode will be RESULT_CANCELED if  the activity explicitly returned that,  didn't return any result, or crashed  during its operation. You will receive this call immediately before onResume() when your activity is  re-starting.

由此可見onActivityResult()發生在onResume()之前

【Java】全域常數???

ref:
What is the better way of publishing global constants in Java?

Method 1: final class with public static final fields
public final class CNST{
    private CNST(){}
    public static final String C1;
    public static final String C2;
    static{
       C1="STRING1";
       C2="STRING2";
    }
}
//so I could call C1, C2 like:
//...some code...
//System.out.println(CNST.C1);
//System.out.println(CNST.C2);
Method 2: singleton with enum
public enum CNST{
    INST;
    public final String C1;
    public final String C2;
    CNST{
       C1="STRING1";
       C2="STRING2";
    }
}
//so I could call C1, C2 like:
//...some code...
//System.out.println(CNST.INST.C1);
//System.out.println(CNST.INST.C2);
Method1的方法較好。