Friday, January 26, 2018

CreateGoogleCloudPlatformProject

Login Google Cloud Platform, tt "Manage resources" page, select create project( one can create at most 12 free projects at the cloud )

Project name example: LilyJohnGoogle

Project ID(Project ID can have lowercase letters, digits or hyphens and must start with a lowercase letter): lily-trade-com-rev01

Wait for google to finish, if the right-upper-corner icon stop from waiting state and you still can't see the project, use F5 to refresh.

done, now you can use the project( I use it for a static website )

Thursday, January 18, 2018

ECMA404_Dec2017_JSON

JSON shares a small subset of ECMAScript’s syntax with all other programming languages.

A JSON value can be an object, array, number, string, true, false, or null. Note, ECMA value undefined is not a JSON value.

8 Numbers

Following is grammar for Numbers:

image_not_loaded

Note, Numeric values that cannot be represented as sequences of digits (such as Infinity and NaN) are not permitted.

Monday, January 15, 2018

Stop Out level

What is Stop Out
A certain required margin level (in percentage) at which your trading positions will start to automatically close in order to prevent further account losses into the negative territory.
For example:
Your balance is $10,000.
You open a trading position with $1,000 margin.
If the loss on this position reaches $9,500, your account equity becomes:
$10,000 — $9,500 = $500
(50% of your used margin)
At that time, a Stop Out will be issued and your positions will start closing.( 
AvaTrade has Stop Out level as 50%)

Sunday, January 7, 2018

BC省公平药物计划

BC省Fair PharmaCare

介绍

Fair PharmaCare即传说中的公平药物计划,就是药费报销。

就好像车保险, Fair PharmaCare同样有一个Deductible, 不同收入的家庭, 这个扣除额不一样, 零收入家庭这一项为0 。过了扣除额的部分,FairPharma Care可以报销70%, 数额更高一点之后, 报销额度就是100%。

需要注意Fair PharmaCare也有不报的药物或医疗器械,即使是报的项目,也有一个限定,酱紫如果医生如果给你开很贵的药的时候,你就要小心了。

申请

第一步: 在 https://pharmacare.moh.hnet.bc.ca/ 注册。

第二步: Health Insurance BC 给回信 Re: Confirmation of FairPharma Care Assistance. 告诉你Reg Num(注册号格式是“大写字母-三个数字-三个数字-两个数字”).如果你有extended health benefits plan, 它可能要求你在报销的时候提供FairPharma Care信息(记得Manulife就要求客户填这一项信息)。

第三步: 填同意书. 因为HIBC 需要知道你的收入以决定报销额度,所以取得你的申请先, 尽快把这个同意书寄过去就行了。

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).