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

Sunday, November 19, 2017

三高人群的推荐保健组合

前两天堂哥让我推荐降压保健品,我虽然平时给老爸寄过,但是从来没有系统地了解过这些保健品。对这个我是个大马哈,只能综合一下网络上保健专家和学者的建议,希望对亲友们有用。

降三高要吃药,但是是药三分毒,而保健品呢,不能说没有副作用,但是利大于弊, 它能有效地缓解三高。降三高的药,自然是医生说了算,至于保健品,专家给出的答案是"深海鱼油 + 蜂胶 + 卵磷脂" 的组合。前面两种我是一直给老爸寄的,最后一种是七月份回国前偶然去cosco买的, 今天上网才知道, 这个卵磷脂早就应该给他寄了!!

深海鱼油是深海中的鱼类(三文鱼、沙丁鱼等)体内提炼出的EPA和DHA营养素(我们常说的OMEGA 3就是EPA和DHA;除了这两个,还有一个亚麻酸),普通河鱼和浅海鱼也有OMEGA 3,但是含量极少。

EPA俗称“血管清道夫”, 能疏通血液中的脂肪块(血脂), 清理血栓,改善血液粘稠度。

DHA是深海鱼油提供的另一个福利,不仅适用于小孩,也适用于老人, 它虽然不是专为三高人群准备的,但也是深海鱼油备受追捧的营养素。 专家称其为“脑黄金”,是脑组织和视神经

发挥功能
所必须的营养物质。

卵磷脂俗称“血管垃圾运输车”, 鱼油负责清理和收集血栓和多余的胆固醇血脂等,卵磷脂负责将其排走。

至于蜂胶,专家称因肥胖、环境污染、吸烟喝酒等原因,体内的甘油三脂含量会过高,血小板会过度集中,从而导致高血脂高血压问题,蜂胶能缓解这些问题。

希望这一则小贴士对大家都有帮助, 同时祝亲友们健康快乐,谢谢^^