R 語言 reference/Memo

Posted in Daily on May 9th, 2016 by Banbanli

Try to install the module “quandmod”

>library(quantmod)
>getSymbols("AAPL")
[1] "AAPL"
Warning message:
In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, :
downloaded length 171720 != reported length 200

>AAPL
2016-05-10 93.33 93.57 92.11 93.42 33592500 93.42000
2016-05-11 93.48 93.57 92.46 92.51 28539900 92.51000
2016-05-12 92.72 92.78 89.47 90.34 76109800 90.34000
2016-05-13 90.00 91.67 90.00 90.52 44188200 90.52000
2016-05-16 92.39 94.39 91.65 93.88 61140600 93.88000
2016-05-17 94.55 94.70 93.01 93.49 46507400 93.49000
2016-05-18 94.16 95.21 93.89 94.56 41923100 94.56000

> write.zoo(AAPL, file=”AAPL.csv”, sep=”,”)
>chartSeries(AAPL)

 

http://dataology.blogspot.tw/2015/11/r.html
http://www.bituzi.com/2014/12/Rbacktest6mins.html
http://rstudio-pubs-static.s3.amazonaws.com/1195_6ae80fc27b38421dabc4952d2c50d3c3.html
http://www.r-software.org/paper
http://ccckmit.wikidot.com/r:main
http://wenku.baidu.com/link?url=tSwlPkr8aGSTXYQNYufVQ2yVtppMuBvYF2h8oZpO9g7insefi-8fYcoxW7Cp-Y-dvhi6A0Mdib_rNXP8DlHBNnB1gaBttpAJIblt8OtqFwO###

母親節午餐

Posted in Daily on May 7th, 2016 by Banbanli


Read more »

R – write.csv missing data

Posted in Daily on May 4th, 2016 by Banbanli

http://stackoverflow.com/questions/15796499/date-information-disappears-when-save-to-csv

 

as SPY is a xts/zoo object this will do the trick:

replace:

write.csv(SPY, "C:/SPY.csv")

with

write.zoo(SPY,"C:/SPY.csv",index.name="Date",sep=",")

[Memo] Linux iSCSI

Posted in Daily on April 29th, 2016 by Banbanli

http://www.lijyyh.com/2014/06/iscsi-setup-software-based-iscsi-target.html

[Link]Google Maps 我的地圖完全教學!規劃自助旅行攻略

Posted in Daily on April 28th, 2016 by Banbanli

http://www.playpcesor.com/2016/03/google-maps-my-maps.html

[國際經濟觀察] 串流影音戰國時代 Netflix 能穩坐王座多久

Posted in Daily on April 27th, 2016 by Banbanli

原來跌10%是這個原因阿~=.=

[國際經濟觀察] 串流影音戰國時代 Netflix 能穩坐王座多久

Netflix 上週發布第一季財報,市場最關注的就是訂閱用戶的成長,第一季新增 640 萬訂戶,高於公司預期的 610 萬,主要原因是今年一月 Netflix 一口氣開通了 130 個市場,但 Netflix 對於第二季海外新增用戶的前瞻只有 200 萬,遠低於市場預期的 350 萬,也低於去年同期的 260 萬,換句話說不只美國市場的用戶成長正在趨緩,連海外市場都成長乏力,股價因此重挫超過 10%。

Netflix 從 2015 年第一季開始的海外用戶成長數據(紅框處),2016年第二季預計將大跌至低於市場預期的200萬。
(圖說:Netflix 從 2015 年第一季開始的海外用戶成長數據(紅框處),2016年第二季預計將大跌至低於市場預期的 200 萬。)

Netflix 相較於前一年所淨增加的國際用戶數顯示,2016年Q2將負成長。
(圖說:Netflix 相較於前一年所淨增加的國際用戶數顯示,2016年Q2將負成長。)

更別提美國訂閱用戶數成長的慘跌了。
(圖說:更別提美國訂閱用戶數成長的慘跌了。)

財報發佈後,Netflix 的股價直接重挫 10% 以上
(圖說:財報發佈後,Netflix 的股價直接重挫 10% 以上)

股價重挫原因,其實除了內憂還有外患,Netflix 競爭對手 Amazon 在美國推出單獨月付的影音串流方案, Amazon Prime Video 本來是和該公司年費 99 美金主打電子商務相關優惠的 Prime membership 綁在一起,但是如今強打 Prime 影音平台推出了月付 8.99 美金的串流影音訂閱服務,明顯是針對 Netflix 五月漲價的新訂價 9.99 美金而來,希望搶奪美國市場的佔有率,而且 Amazon 提供的影音選擇遠高於 Netflix。(當然 Amazon 主攻的還是電子商務,畢竟拿算盤一算其實只單訂月付影音服務不划算)。

Amazon Prime 開始提供月付 8.99 美金的串流影音訂閱服務
(圖說:Amazon Prime 開始提供月付 8.99 美金的串流影音訂閱服務) Read more »

既然已讓《自由之翼》展翅飛翔,那麼就去到應許之地吧!

Posted in Daily on April 21st, 2016 by Banbanli



Exclusive Interview From Scott Dietzen, CEO of Pure Storage

Posted in Daily on April 7th, 2016 by Banbanli

“We’ve replaced hundreds of (EMC) VMAX systems.”
By Jean-Jacques Maleval on 2016.04.06

http://www.storagenewsletter.com/rubriques/people/exclusive-interview-from-scott-dietzen-ceo-of-pure-storage/

哦,還沒有獲利!!

Scott Dietzen, 53, CEO of Pure Storage since September 2010, was formerly president and CTO of Zimbra, now part of VMware. Zimbra was originally acquired by Yahoo!, where he served as interim SVP of communications and communities. Prior to Zimbra, he was CTO of BEA Systems, where he helped craft the technology and business strategy for WebLogic that drove BEA from $61 million in annual revenues prior to the WebLogic acquisition to over $1 billion. He came to BEA in 1998 via the acquisition of WebLogic, in Java and web application server technology. Prior to WebLogic, he was principal technologist of Transarc (acquired by IBM), developer of distributed transaction and file sharing systems. He also serves on the board of Cloudera since June 2010. He earned his Ph.D. and M.S. in Computer Science and B.S. in Applied Mathematics and Computer Science from Carnegie Mellon University. Hobbies: ski, bike and scuba dive. He has two young children. “I’m a dad and I work, that’s all I do.” Dietzen also said that total of his salary and bonus is $350,000 for the year. “Any other figure is stock-based compensation, but I’ve not been selling shares.”

StorageNewsletter.com: How do you rank your company in the worldwide market of all-flash subsystems?
Dietzen: Well, you’ve seen us ranked between number two or number three in overall market share and EMC is generally given credit for being number one.

Pure Storage’s revenue always increased but the company never was profitable and has huge losses. What’s the problem?
We’re the fastest growing storage vendor, that we’re aware of, in history. The company is following the same recipe that NetApp did in its early days. We take the dollars from growing the business, and we hire sales and support people in order to grow very quickly. The business was actually cash flow positive in the fourth quarter of last year, $30 million on $150 million in revenue. So we’re generating cash even though we are not yet profitable. Read more »