Wednesday, December 20, 2017

UCCB

universal child care benefit (UCCB)

UCCB is taxable. You can file UCCB after 18 monthes since entering canada.

if you repay|payback to CRA, you can|must fill UCCB repayment. like `Child care expenses`, `Moving expenses`, this amount will be deducted from your total income before caculating taxable income.

(Year 2013, Year 2014, ...)The UCCB repayment amount you must fill into line 213 is the amount shown in box 12 of the RC62 slip, while the UCCB amount is in box 10

if the spouse with lower net income does not apply for UCCB, but you applied for it, CRA will require you repay the paid amount to them.

Since Oct 2014, I got UCCB (about) $160 per month, and during the payment period until Jun 2015, I got $1,260.0.

On 28,Feb,2016, my work permit ended(and CRA may thought I left Canada), so during Jul 2015 to Feb 2016, I got $1,280.0.

As my wife should apply for UCCB instead, I will repay this two amounts, in totally, $2,540.

Wednesday, December 13, 2017

Shared Currency Symbols

Dollar and Peso

The dollar sign (U+0024) is used for many currencies in Latin America and elsewhere. In particular, this use includes current and discontinued Latin American peso currencies, such as the Mexican, Chilean, Colombian and Dominican pesos. However, the Philippine peso uses a different symbol found at U+20B1.

There are two glyph variants for the Dollar sign, with one or two vertical bars through the S

Yen and Yuan

Like the dollar sign and the pound sign, U+00A5 yen sign has been used as the currency sign for more than one currency. The double-crossbar glyph is the official form for both the yen currency of Japan (JPY) and for the yuan (renminbi) currency of China (CNY). This is the case, despite the fact that some glyph standards historically specified a single-crossbar form.

Thursday, December 7, 2017

LEB128 integer type

LEB128 ("Little-Endian Base 128") is a variable-length encoding for arbitrary signed or unsigned integer quantities. The format was borrowed from the DWARF3 specification. Each byte has its most significant bit set except for the final byte in the sequence, which has its most significant bit clear. The remaining seven bits of each byte are payload, with the least significant seven bits of the quantity in the first byte, the next seven in the second byte and so on.

We must define how many bits there are for LEB128, for example, LEB128-40(5 bytes) can be used to encode 32-bit quantities(have some higer bits not used).

In the case of a signed LEB128 (sleb128), the most significant payload bit of the final byte in the sequence is sign-extended to produce the final value. For example, "80 7f ..." is taken as "80 7f", then sign-extended to "00 ff ff ff", then -128. Another example, "7f ,,," is taken as -1.

In the unsigned case (uleb128), any bits not explicitly represented are interpreted as 0. For example, "80 7f ..." is taken as 80 3f, then 0x3f80

The variant uleb128p1 is used to represent a signed value, where the representation is of the value plus one encoded as a uleb128. This makes the encoding of -1 (alternatively thought of as the unsigned value 0xffffffff) — but no other negative number — a single byte, and is useful in exactly those cases where the represented number must either be non-negative or -1 (or 0xffffffff), and where no other negative values are allowed (or where large unsigned values are unlikely to be needed).