Blog Archive

Saturday, April 7, 2018

Chase Sapphire Reserve 美国最棒的旅行积分信用卡


Chase Sapphire Reserve 信用卡简介

【2018.04.07 更新】Chase给部分持卡者发了邮件,正式开放了Sapphire Reserve卡的refer资格。被refer的人拿到的是正常的50k开卡奖励,每通过一个refer的人可以拿到10k UR点数,最多50k!欢迎点击下面的连接申请:

申请链接

特色

  1. 开卡奖励50k: 开卡三个月内消费$4000可得 50,000 Utimate Rewards(UR)点数!最高开卡奖励是100k,但是不知道以后还会不会出现了。
  2. 此卡得到的点数为 Ultimate Rewards (UR),我们对它的估值是 1.6 cents/point,简介见下文。因此其 50k 的开卡奖励价值约为$800!
  3. 持有此卡之后就可以把 UR 点数转为航空里程或酒店点数了。同时此卡可以把 UR 点数以 1.5 cents/point 的固定比例在 Chase UR travel portal 上用掉,使得 UR 点数的保底价值达到了1.5!
  4. 每年(account anniversary year)可报销 $300 旅行类别的消费,这个报销会在1~2个 billing cycle 之后自动以 statement credit 的形式出现。根据目前所知消息,只要是 Travel 类别的消费都会被自动报销,包含:航空、酒店、打租车、火车、路桥费等。副卡共享此$300年度报销额度。
  5. 旅行(Travel)和吃饭(Dining)可以获得 3x UR,其他类别 1x。
  6. 持卡人会获得一张单独的 Priority Pass Select 卡(先去这个页面注册才给你发卡),可以在世界范围内(包括中国)的不少休息室使用,比如北京国航等航空公司的头等舱休息室。副卡持有者也会有自己单独的 PPS 卡。每张 PPS 卡都可以免费带人进去,官方并没有说明可以带的人数上限!
  7. 此卡可以报销 Global Entry 或者  TSA Pre✓ ($100)。Global Entry 是美国海关的快速通道,TSA Pre✓ 是美国国内机场的快速安检通道,只有美国公民或者绿卡持有者才能申请它们。
  8. 这张卡是 Visa Infinite 卡,拥有各种 Visa Infinite 的福利。其中最重要的几项福利包括:
  9. 提供 Primary 租车保险(详见《租车保险概述》)。
  10. No Foreign Transaction Fee (FTF)。
  11. 此卡是金属卡,卡面设计酷炫,重量重逼格高。
  12. 此卡可以 Refer a friend。请点击这个链接开始 refer。推荐此卡给朋友并且申请成功的话,每成功一个你可以得到10k点数,上限为50k(5人)/calendar year。

缺点

  1. 年费$450,不免首年年费,副卡每张年费$75。【友情提示】所有信用卡的年费均不计入开卡消费任务!
  2. 最低批卡额度$10k,对收入和信用的要求比较高。

UR 点数简介

建议申请时间

  1. 【5/24政策】如果两年内有5个或更多信用卡新账户(所有新账户,不是仅仅Chase的),则Chase不给批此卡。在Chase有账户的朋友可以去branch里查询pre-approval,in branch pre-approved offer可以绕开此限制。此外有 invitation code 的 mail offer 也可以绕开限制。详情可见《Chase 5/24 规则详解》
  2. 如果满足下列条件之一,你将无法获得开卡奖励并且申请会被秒拒:(1)正在持有任何 Sapphire 系列信用卡;(2)24个月内获得过任何 Sapphire 系列信用卡的开卡奖励。注意是从拿到开卡奖励的时刻开始算,不是开卡时刻也不是关卡时刻。
  3. 30天内尽量不要申请大于2张Chase的卡,否则很大概率被拒。
  4. 建议在持有其它 Chase 卡3个月以后申请,或者在信用记录在一年以上时申请。

总结

Chase 新一代高端卡,前段时间轰轰烈烈的讨论也不少了。$300 的 Travel 类别自动报销、范围广,用掉难度不大,因此等效年费只有$150。还有比较给力的 PPS 卡可以用。相比于 Sapphire Preferred 不给力的 2x, 此卡 Travel & Dining 3x 大大加快了攒点速度,在 UR 网站里使用 UR 点数的价值也更高 (1.5c vs 1.25c) 。如果你一年在 Dining 和 Travel 上的消费足够多,相比于 CSP 其实是更划算的!而且 Trip Delay 只要6小时就可以报销等。因此综合对比下来,这张卡更值得大家长期持有。最大的困难可能就是524规则。总之,强烈推荐此卡!

相关信用卡

CSP 和 CSR 的对比见《CSP vs CSR 哪个更加值得长期持有?

最佳降级选项

  • Chase Freedom。需要说明的一点是,通过CSP降级,你可以获得第二张 Freedom,因此降级前即使拥有 Freedom 也没关系。
  • Chase Freedom Unlimited (CFU)
  • Chase Sapphire。如果无法成功降级成前两张好卡,可以考虑先降级成这张矬卡,将来再转。

申请之后

  • Chase 查询申请状态可以拨打 800-436-7927。这是一个自动回应的电话,得到的信息含义如下:Receive decision in 2 weeks: 过的可能性比较大;Receive decision in 7-10 days: 被拒的可能性比较大;Receive decision in 30 days: 只是表明还需要进一步审核,目前没有更多消息可以告诉你。
  • Chase reconsideration 后门电话:888-270-2127 or 888-609-7805。申请Chase的卡只要不是秒过,就可以准备打这几个电话了。客服会直接要你的个人信息,然后就跑一边去审核了,很少问你问题,听音乐就好了…听完音乐客服就会给你决定,很多时候就是通过or拒绝,也会有要你补充材料的,听清楚要求拿着对应材料去branch或者online fax过去就好。

开卡奖励趋势图


申请链接

Friday, April 6, 2018

Linux Commando: Using sed to extract lines in a text file

Linux Commando: Using sed to extract lines in a text file:

Reference:

https://linuxcommando.blogspot.com/2008/03/using-sed-to-extract-lines-in-text-file.html



Using sed to extract lines in a text file

If you write bash scripts a lot, you are bound to run into a situation where you want to extract some lines from a file. Yesterday, I needed to extract the first line of a file, say named somefile.txt.
$ cat somefile.txt
Line 1
Line 2
Line 3
Line 4


This specific task can be easily done with this:
$ head -1 somefile.txt
Line 1


For a more complicated task, like extract the second to third lines of a file. head is inadequate.

So, let's try extracting lines using sed: the stream editor.

My first attempt uses the p sed command (for print):
$ sed 1p somefile.txt
Line 1
Line 1
Line 2
Line 3
Line 4


Note that it prints the whole file, with the first line printed twice. Why? The default output behavior is to print every line of the input file stream. The explicit 1p command just tells it to print the first line .... again.

To fix it, you need to suppress the default output (using -n), making explicit prints the only way to print to default output.
$ sed -n 1p somefile.txt
Line 1


Alternatively, you can tell sed to delete all but the first line.

$ sed '1!d' somefile.txt
Line 1


'1!d' means if a line is not(!) the first line, delete.

Note that the single quotes are necessary. Otherwise, the !d will bring back the last command you executed that starts with the letter d.


To extract a range of lines, say lines 2 to 4, you can execute either of the following:
  • $ sed -n 2,4p somefile.txt
  • $ sed '2,4!d' somefile.txt
Note that the comma specifies a range (from the line before the comma to the line after). What if the lines you want to extract are not in sequence, say lines 1 to 2, and line 4?
$ sed -n -e 1,2p -e 4p somefile.txt
Line 1
Line 2
Line 4
If you know some different ways to extract lines in a file, please share with us by filling out a comment. P.S. Related articles from this blog:


'via Blog this'

Thursday, April 5, 2018

2018年阿里巴巴的员工工资待遇与级别介绍

2018年阿里巴巴的员工工资待遇与级别介绍

 
reference: 


先看个例子,或许你也曾像他一样纠结BAT的offer:

最近刚通过阿里面试,但基本薪酬也是不升反小降。级别只有P6+,连P7都没有,非常郁闷,打算拒绝算了。小本工作9年了,这算不算loser ?

奇了怪了,阿里系的P6和P7的范围到底是多少?

不过反过来说,阿里系面试还真是有点深度的,通过不易,但拿到这个级别总感觉是否自已混的太一般了。

郁闷。

这样的纠结实在太常见了,都是工作好几年的老程序员了,好不容易动心跳个槽,猎头开始保证得好好的,怎么拿到offer的薪酬却不尽如人意?是自己能力不够,还是被HR/猎头忽悠?

专心做技术的大都是心思单纯之人,却最容易吃亏,知己知彼方可百战不殆,看看对方的级别和待遇,谋定而后动,才能跳得更远,走得更稳。

1、阿里内部的常见级别和定义

P序列=技术岗  M序列=管理岗   (注:样本有限,以下全部数据仅供参考!)
2018年阿里巴巴的员工工资待遇与级别介绍


  • 阿里的非管理岗分为10级;
  • 其中P6、P7、P8需求量最大,也是阿里占比最大的级别。

前面例子中那位郁闷的同学拿到了P6+的offer,正处于最庞大但又最尴尬的级别中段,至于为什么差一点儿没拿到P7,难道是HR在省招聘费?

2017.1更新

P7是分水岭,P6晋升到P7有一定难度;P7再往上走更难;
关于薪酬,阿里的薪酬现金部分,和百度相比变化不大,现金部分与行业相比没优势;
关于股票期权,上市前,P6给期权(P6-2000,P7-3000);上市后,P6几乎不给了,P7的股票也降了;

2、阿里的级别对应薪资

2018年阿里巴巴的员工工资待遇与级别介绍
2018年阿里巴巴的员工工资待遇与级别介绍

  • 阿里薪资结构:一般是12+1+3=16薪
  • 年底的奖金为0-6个月薪资,90%人可拿到3个月
  • 除了薪水,股票也是重要的收入之一,阿里的股票分年限行权,一般4年拿完

说到股票,顺便普及下常识。股票是公司用来奖励员工忠诚度的,所以阿里分年限行权,要离职套现得准备好充足的现金。因为当月薪水和归属股票是一起算作当月个人收入的,所以归属时通常要缴纳高达45%的个税,然后得到的可能还是限制性股票,还不能马上卖呢。等到可以出售的时候,还得缴纳20%股票增值部分的个人所得税。

同时,你必须先缴税,才能归属,缴税还必须用现金,不能sell to cover!So,拿的越多,先拿出的cash就越多,这里面的流动性风险你自己权衡吧。

2016.3.28更新:
3、阿里的员工福利

380套公寓,6折卖员工

前不久,各大媒体报道称,阿里巴巴集团创始人马云与绿城集团董事长宋卫平达成合作协议,绿城集团将在杭州阿里总部附近新建380套阿里员工专享公寓。阿里巴巴内部把这些公寓亲切的称为“亲橙里”。这是继2011年阿里巴巴集团向员工推出30亿元“ihome”无息置业贷款计划后。阿里巴巴集团给员工献上的最新福利。

据了解,目前同样地段的房子目前售价在16000元/平米,而阿里的福利房均价为10200元/平米,相当于市场价的6折。且新房距离阿里的新园区仅有步行5分钟的距离。能买到这样房子的员工要不要这么幸福?

马云表示:“有些东西我们跟其他公司不一样,我反对有大巴车班车上下班,为什么,不是买不起。员工如果没有车,那去挤地铁、去挤公交车、去骑自行车,保证自己上班不迟到,所有的公司、所有的优秀员工都经历过这一点。我告诉大家,即使有班车,迟到的人会更多,放下工作的人会有更多,我们不是在乎加班这点工作,我们在乎的是你是否在乎你的工作,如果你在乎、热爱你的工作,你会早起。”


结语

各个公司头衔名字都不一样,级别的数目也不一样;有些扁平,有些很多level慢慢升;有些薪水范围严格跟级别挂钩,有些薪水和级别并没有绝对对应的关系。无论你是向往BAT还是身居其中,把握每年的评级机会/跳槽机会,建立一条上升的职业曲线更为重要。因为,没有变化是一件很可怕的事情。


Friday, March 23, 2018

异常声音检测之kaldi DNN 训练

[转]异常声音检测之kaldi DNN 训练

http://www.cnblogs.com/welen/p/7567418.html



[转]异常声音检测之kaldi DNN 训练

转自:http://blog.csdn.net/huchad/article/details/52092796
使用kaldi的DNN做音频分类,异常声音检测。
HMM/GMM -》 HMM/DNN

基本上沿用语音识别的思路,有两点注意一下即可。
1. 在训HMM/GMM时,训到monophone即可,使用monophone的HMM与alignment训DNN
2.语言模型的准备,手动构造一个一元的简单模型即可
DNN的主要训练步骤如下:
#Step 1. Pre-train DBN
steps/nnet/pretrain_dbn.sh
 --cmvn-opts "--norm-means=true --norm-vars=true" // 均值方差归一化
--delta-opts "--delta-order=2"// 差分特征
--splice 5  拼接帧数
--nn_depth 3 // 隐含层的个数
--hid-dim 256// 隐层节点数
--rbm-iter 8 // 迭代次数
$train $dir

# Step2:Train the DNN optimizing per-frame cross-entropy
steps/nnet/train.sh 
--feature-transform $feature_transform 
--dbn $dbn  // step1 所得到的dbn
--hid-layers 0  // 表示使用dbn的隐层
--learn-rate 0.008 // 学习率
    ${train}_tr90 ${train}_cv10 data/lang $ali $ali $dir

# step3: generate lattices and alignments for sMBR:
  steps/nnet/align.sh --nj 20 --cmd "$train_cmd"   $train data/lang $srcdir ${srcdir}_ali 
  steps/nnet/make_denlats.sh --nj 20 --cmd "$decode_cmd" --config conf/decode_dnn.config --acwt $acwt \
    $train data/lang $srcdir ${srcdir}_denlats 

#step4:Re-train the DNN by  iterations of sMBR
steps/nnet/train_mpe.sh 
--cmd "$cuda_cmd" --num-iters 6 --acwt $acwt --do-smbr true \
    $train data/lang $srcdir ${srcdir}_ali ${srcdir}_denlats $dir
'via Blog this'

Monday, March 19, 2018

Will Trump abolish the H1B visa?



Sunitha Ganeshan Ray
The Office of the President of the US is one of the most powerful offices in the world. There are many things President Trump can do, by the powers vested in him by us, the people of the United States. Abolishing the H1B visa is a long-winded legislative process, which the President can initiate, technically speaking, but largely has an unpredictable outcome. However in the short term, the President can make it very restrictive for H1B workers through Executive Orders for renewals and benefits. What will be the impact of such actions? Unfortunately everything in life cannot be statistically modeled or simulated, but there are some common-sense fait-accompli consequences of a drastic action like abolishing H1B:
  1. The US economy has grown highest from 1950s till 1990s and has become a global superpower because of technology and innovation. Immigration of highly skilled workers has contributed largely to the US economy (US has been the most preferred destination for tech workers - principle: excellence breeds excellence). Tech startups and companies in the US have become worldwide successes, and that in turn attracts brighter minds to immigrate here. They have not only contributed through employment but they have founded companies that have enhanced the livelihood of millions. Cases in point: Elon Musk, Sergey Brin, Shahid Khan, Steve Chen, Jawed Karim, Vinod Khosla, etc. Protectionist laws will only turn away future great minds from creating new products, innovations and technology breakthroughs that is key to pushing the country forward.
  2. H1B visa holders constitute approximately 1 million workers (less than 0.3% of our population), who, research has pointed out, contribute positively to our GDP, pay into our tax system, medicare / medicaid, and create highly educated future generation (Gen 0 or 1). The economic impact of abolishing will be extreme: there are few highly skilled American tech workers, and they will now come at a premium (all things remaining constant, that there is no provision made to enhance tech skills for the masses). Small businesses and corporates surviving on thin margins will cease to be profitable and will have to go out of business. Or they will have to move corporate HQs abroad or outsource. If this decision of abolition of H1B was a corporate decision, the statistical comparison of an upside / downside to this extreme action makes it unworthy of any consideration. I daresay there’re bigger problems we face today.
  3. While there are many benefits of H1B visa for the US economy, the H1B system certainly does need reform to ensure higher levels of productivity and reduce misuse. Some are detailed below;
    1. Vet credentials and achievements of highly skilled workers, and the gaps that they fill, before granting H1Bs in the first place, so we know the best and brightest are coming to the US.
    2. Immigration: Today the US allows many different routes for immigration such as family, investment, diversity and highly skilled workers (H1B). H1B visas are “dual-intent” visas: the holders can apply for Permanent Residence. If highly skilled tech workers is what is targeted, why restrict country-wise? Let all nationalities compete evenly on the basis of SKILLS. Why not make it a level playing field? While we want the best and the ‘cream of the crop’ let the toughest and brightest get in.
    3. Minimum wage: I do believe in free markets. However, in the interest of fewer applications to process on the already overloaded USCIS, adding a minimum threshold of $100,000 or like can ensure senior and skilled workers are prioritized for hiring.
    4. Grant EADs to I-140s, making job-mobility easier so the onus is on the companies to hire the best talent, pay them market rates and look towards increasing overall productivity. If mobility of workforce is ensured, then companies will naturally hire more qualified Americans (benefit: less paperwork). This will also stop companies from holding H1B workers hostage by paying them cheaper due to non-mobility, and the exploitation by consulting and outsourcing companies. What happened to the Republican principles of free enterprise and less-Government anyway?
    5. US Masters candidates: Why not? I agree there are plenty of universities around the world that are excellent. If we are going to hire skilled workers from everywhere, why can’t Masters degree holders from the US get an extra brownie point? Atleast US universities will benefit, and it will contribute to the GDP.
    6. Create ongoing training program for American citizens so they can keep skills up-to-date to compete on a global platform. Perhaps Fed and State Governments can have a skills-upgradation program for unemployed workers, or perhaps some of our spending can be directed towards coal-workers and blue-collar workers who have lost their jobs due to automation, to go to community colleges to train to become technicians and laboratory workers, etc. - you get the idea. How about some positive reinforcement to move forward the American economy?
Most actions can always be reversed, such as immigration rules, industrial waste dumping policies or financial safety provisions. However some repercussions may be permanent and may have lasting impact: such as the reversal of the US from a global superpower into a has-been economy. Good reason to get fully into details and analyze all angles before a severe action like H1B abolition.