Tuesday, October 29, 2019

Work on easy level array algorithms

Oct. 29, 2019

Introduction

It is time to celebrate my 9th easy level array tag algorithm completed. I have 60 easy level algorithms to work on, 9 of them are easy level array tag ones. I do think that if I can write 10 easy level algorithms, I will warm up and improve my performance at work in the long run. 

Extra sharing of my training thought process
It is my idea to be humble and work on easy level algorithm first. I solved all easy level algorithm (220 easy level algorithm solved) in Dec. 2018. Now there are around 60 new easy level algorithms available released after Dec. 2018, I like to work on those algorithm first, and I chose to work on 9 easy level array algorithms first, continue to work on rest of easy level ones.
image
image
I believe that easy level algorithms are better to train myself compared to those medium level ones.

2019 US equity 96 billion in outflows

Here is the article. 

Worth watching: Investors have the money to pump into US stocks, should they desire. US equity funds have seen $96 billion in outflows so far this year, in favor of bond and cash funds, Goldman Sachs pointed out in a recent note to clients.


C# Array's 80 API to review

Oct. 29, 2019


Introduction


It is interesting to use Visual studio, today I spent time to get Array class's APIs in Visual studio, so I write down all properties and methods, and I like to spend 3 minutes for each API. 


Array's APIs


Array's available method and function are listed in the following, 72 options. I like to memorize all of them, and a few words are new to me. I like to get to know those methods first.



0
Add
AddRange
AsReadOnly
BinarySearch
Clear
Contains
ConvertAll
CopyTo
Exists
Find

FindAll
FindIndex
FindLast
FindLastIndex

1
Aggregate
All
Any
AsEnumerable
AsParallel
AsParallel<>
AsQuerable
AsQuerable<>
Average
Average<>
2
Cast<>
Clone
Concat<>
Contain<>
CopyTo<>
Count<>
DefaultIfEmpty
Distinct
ElementAt
ElementAtOrDefault
3
Equals
Except<>
FirstOrDefault<>
First<>
GetEnumerator
GetHashCode
GetLength
GetLongLength
GetLowerBound
GetType
4
GetUpperBound
GetType
GetUpperBound
GetValue
GroupBy
GroupJoin
Initialize
Intersect
Join
Last
5
LastOrDefault
Length
IsFixedSize
IsReadONly
IsSyncrhonized
Max
Max<>
Min
Min<>
OfType<>
6
OrderBy<>
OrderByDescending<>
Rank
Reverse<>
Select<>
SelectMany<>
SequenceEqual<>
SetValue
Single<>
SingleOrDefault<>
7
Skip<>
SkipWhile<>
Sum
Sum<>
SyncRoot
Take<>
TakeWhile
ToArray
ToDictionary
ToList
8
ToLookup
ToString
Union<>
Where<>
Zip

走进比尔:解码比尔·盖茨

Here is one hour link.


Signs That You’re a Micromanager

Here is the article.


Warren Buffett Taught Bill Gates a Priceless Lesson About Time Management--Here Are 3 Takeaways

Here is the article.


10 Lessons on Time Management from Bill Gates

Here is the article.

  1. Take your time seriously
  2. Put in the hours
  3. Structure your time
  4. Don't waste time to make more time
  5. Get sleep 
  6. Take advantage of snippets of time
  7. Think long term and invest your time
  8. Prioritize
  9. Chunk your time int topics
  10. Use software


2. Put in the Hours
Malcom Gladwell used in his book Outliers on how the most successful individuals put in at least 10,000 hours of work before becoming successful. 

You can say no, you can ignore that one ridiculous email, you can delegate things. You can leave unimportant things for later. Again, YOU CAN SAY NO! Don’t take care of everything that comes your way. Don’t say yes to everyone. Schedule your time and prioritize.

Monday, October 28, 2019

7 Lessons on Time Management From Bill Gates (Productivity Hacks)

Here is the link.

Top 7 productivity tips

buy anything I want, not buy time

1. think long term

big rock -> pebbles -> sand

Do important task first -> small task -> ...

chunk your time

Ruthless say no to things


Time management crash course last two month in 2019

Oct. 28, 2019

Introduction


It is time for me to learn how to value my own time. I have to list things to distract me, and then I have to work hard to focus on things I can break through.

Time wasted 


I like to go over a list to figure out how many hours I wasted in 2019.


Time management crash course


I need to look into and work on some research on this topic.


How to stay connected to China and keep relatives happy?

Oct. 28, 2019

Introduction


It is my personal finance research. I like to figure out how many hours I spend in a year to chat with relatives in China. I am a single person and 53 years old, I like to figure out how to make a living in Canada.

How many hours?


The idea is to look into how efficient I am compared to 20 years ago. I used to spend a few time $200/ month US dollars on long distance calls to China from 1999 to 2001.

I think that I was not efficient to communicate with relatives. I used to pay 65 cent/ minute in US dollar for long distance call from 1996 to 2000.

I used to talk to my mom every day later when the calling card was cheaper after 2000.

I have to learn how to discipline myself. Do not waste time and money.

Being frugal


I like to challenge myself. Do not spend time on wechat. Cut time to minimum.





C#: List class API

Oct. 28, 2019

Introduction


It is time for me to learn all API of C# List class. I like to figure out how to expedite my coding using C#.

Motivation


I was so surprised to read C# code written by one of senior engineers, and then I asked myself how come I never used those two APIs.

Here is the link.



Here is to learn IEnumerable.Skip, IEnumerable.Take API.

Array's APIs


Array's available method and function are listed in the following, 72 options. I like to memorize all of them, and a few words are new to me. I like to get to know those methods first.



0
Add
AddRange
AsReadOnly
BinarySearch
Clear
Contains
ConvertAll
CopyTo
Exists
Find

FindAll
FindIndex
FindLast
FindLastIndex

1
Aggregate
All
Any
AsEnumerable
AsParallel
AsParallel<>
AsQuerable
AsQuerable<>
Average
Average<>
2
Cast<>
Clone
Concat<>
Contain<>
CopyTo<>
Count<>
DefaultIfEmpty
Distinct
ElementAt
ElementAtOrDefault
3
Equals
Except<>
FirstOrDefault<>
First<>
GetEnumerator
GetHashCode
GetLength
GetLongLength
GetLowerBound
GetType
4
GetUpperBound
GetType
GetUpperBound
GetValue
GroupBy
GroupJoin
Initialize
Intersect
Join
Last
5
LastOrDefault
Length
IsFixedSize
IsReadONly
IsSyncrhonized
Max
Max<>
Min
Min<>
OfType<>
6
OrderBy<>
OrderByDescending<>
Rank
Reverse<>
Select<>
SelectMany<>
SequenceEqual<>
SetValue
Single<>
SingleOrDefault<>
7
Skip<>
SkipWhile<>
Sum
Sum<>
SyncRoot
Take<>
TakeWhile
ToArray
ToDictionary
ToList
8
ToLookup
ToString
Union<>
Where<>
Zip


What is value after 18 years Oracle stock?

Oct. 28, 2019

Introduction


It is my research to figure out 100 share of Oracle stock purchased in 2001 with price 11.00 dollars.

Problem solving


Here is the page to include my purchase in 2001, after I just got laidoff a few months, I made some purchase on Oracle stock.

2001, Sept. 11, 100 share $11.00

Sold 70 share, $15.80, Jan. 11, 2002

Here is the link to check Oracle stock price history.

Oracle Historical Annual Stock Price Data
YearAverage Stock PriceYear OpenYear HighYear LowYear CloseAnnual % Change
201953.598945.220060.150044.780054.640021.02%
201848.050046.630052.970042.690045.1500-4.51%
201746.524738.550052.800038.450047.280022.96%
201639.226735.750041.770033.940038.45005.26%
201540.797144.330044.910035.440036.5300-18.77%
201440.119737.840046.230035.840044.970017.54%
201333.677934.690038.260029.960038.260014.83%
201229.802225.865034.090025.610033.320029.90%
201131.369131.620036.370024.780025.6500-18.05%
201025.457224.850031.760021.460031.300027.60%
200920.115818.410025.010013.850024.530038.35%
200820.003022.490023.520015.400017.7300-21.48%
200719.503717.510023.040016.290022.580031.74%
200615.231412.600019.660012.200017.140040.38%
200512.831113.410014.050011.520012.2100-11.01%
200412.121013.140014.89009.860013.72003.70%
200312.205411.210013.760010.680013.230022.50%
200211.096313.980017.26007.321010.8000-21.80%
200117.615826.380034.560010.760013.8100-52.48%
200035.401129.525046.315022.310029.06003.69%
199910.51257.166728.02505.360028.0250288.79%
19984.53713.83337.41673.01007.208393.86%
19975.21654.66676.85503.51003.7183-19.85%
19964.15563.20375.52782.96304.638947.77%
19952.75672.11703.56522.06173.139344.08%
19941.84431.40742.27161.32692.178853.46%
19931.16200.70671.85190.69751.4198102.63%
19920.45480.36720.70070.30860.700795.73%
19910.25920.19750.40120.13900.358084.25%
19900.38110.59580.69430.13280.1943-66.33%
19890.41840.23460.63580.23460.5770139.72%
19880.21150.18830.27470.14510.240734.47%
19870.14230.06400.22990.06400.1790179.69%
SectorIndustryMarket CapRevenue
Computer and TechnologyComputer Software$177.814B$39.506B

Does Market Timing Ever Work?

Here is the link.

Even the most rational index investors might catch themselves wondering if they should sell some of their equities, or delay investing new cash, because of expected market volatility, or reports of record high stock prices.

10 X Rule - 3 middle level algorithm one hour

10 X Rule - 3 middle level algorithm one hour

10 X Rule - 3 middle level algorithm one hour

I like to aim 10X high goal and use 10x more energy, based on 10 X rule book.


What is CAPE ratio?

CAPE比率

高估值会侵蚀未来的收益。Robert Shiller 说,美国股市的CAPE比率目前处于29的高位。CAPE比率,即经周期调整的市盈率,考察的是投资者为10年期间经通胀因素调整后的平均收益支付了多少钱。这一指标显示出剔除短期扭曲因素后市场的成本有多高。

  席勒表示,现在CAPE为29,这种情况在历史上只发生过几次,到了1929年至30年代中期的水平。他补充称,在非理性繁荣泡沫破灭之前,CAPE仍可能继续上升。目前的CAPE略高于1987年的水平,当时美囯股市在1987年10月19日创下了23%的最大单日跌幅。

SPDR - Portfolio Aggregate Bond ETF

SPDR  Portfolio Aggregate Bond ETF  (SPAB)

席勒对债券的担忧和对美国股市的担忧一样多。债券目前是最热门的资产类别之一,因为投资者寻求安全的收入。SPDR  Portfolio Aggregate Bond ETF  (SPAB)今年的总回报率与股票相当,为8.31%。这是过去10年3.7%的平均年回报率的两倍多。

2019 best sectors

Real Estate Select Sector ETF,  XLRE
SPDR ETF  (XLK)

房地产类股也很火爆。房地产精选行业ETF  (Real Estate Select Sector ETF,  XLRE)仅今年就上涨了近29%,超过了标准普尔500指数20%的涨幅。房地产类股仅以微弱优势落后于科技精选板块SPDR ETF  (XLK),成为今年表现最佳的板块。

Robert Shiller - 2019 finance analysis

Robert Shiller

近日,曾准确预测到2000年的美股崩盘和2007年的房地产市场崩盘的耶鲁大学经济学教授、诺贝尔奖得主罗伯特•席勒(Robert Shiller)表示,美国金融市场泡沫无处不在,无论是股票市场、债券市场还是房地产市场,投资者都无路可逃。

席勒发出这一不祥警告之际,正值华尔街股灾90周年。1929年10月28日,道琼斯工业股票平均价格指数下跌13%,这是历史上第二大跌幅。再加上大萧条初期股市的重挫,华尔街花了25年时间才恢复元气。

他预计未来30年美国股市的平均年回报率只有4.4%。这不到标准普尔500指数长期回报率的一半,也远远低于养老金的要求。

美股的市值过高

目前美国股市较2009年3月9日的低点上涨了348%,为投资者的投资组合增加了近29万亿美元。

CAPE比率

高估值会侵蚀未来的收益。他说,美国股市的CAPE比率目前处于29的高位。CAPE比率,即经周期调整的市盈率,考察的是投资者为10年期间经通胀因素调整后的平均收益支付了多少钱。这一指标显示出剔除短期扭曲因素后市场的成本有多高。

  席勒表示,现在CAPE为29,这种情况在历史上只发生过几次,到了1929年至30年代中期的水平。他补充称,在非理性繁荣泡沫破灭之前,CAPE仍可能继续上升。目前的CAPE略高于1987年的水平,当时美囯股市在1987年10月19日创下了23%的最大单日跌幅。

SPDR  Portfolio Aggregate Bond ETF  (SPAB)

席勒对债券的担忧和对美国股市的担忧一样多。债券目前是最热门的资产类别之一,因为投资者寻求安全的收入。SPDR  Portfolio Aggregate Bond ETF  (SPAB)今年的总回报率与股票相当,为8.31%。这是过去10年3.7%的平均年回报率的两倍多。

债券ETF

投资者将大量资金投入债券ETF,希望避开股市波动,至少获得一些回报。“它(债券泡沫)似乎与人们没有给予足够的关注有关,通过简单的逻辑思考就能知道,这不可能继续下去,它最终会有糟糕的结局,它可能会在某个时候沉没。”

席勒说,美国房地产市场正处于泡沫阶段,与2005年没有什么不同。“这就像又回到了2005年。旧金山和洛杉矶的房市已经在放缓。”他说,这是一个“糟糕的指标”,因为这些市场多年来一直在上涨。

Real Estate Select Sector ETF,  XLRE
SPDR ETF  (XLK)

房地产类股也很火爆。房地产精选行业ETF  (Real Estate Select Sector ETF,  XLRE)仅今年就上涨了近29%,超过了标准普尔500指数20%的涨幅。房地产类股仅以微弱优势落后于科技精选板块SPDR ETF  (XLK),成为今年表现最佳的板块。

OUR STOCK PORTFOLIO UPDATE | Our Dividend Income In Early Retirement (Ep. 9 - October 2019)

Here is the link.

Books that have helped us on our Financial Independence Journey ----- The Bogleheads' Guide to Investing: https://amzn.to/2UjEc4j The Intelligent Investor: https://amzn.to/2MKGokh A Random Walk Down Wall Street: https://amzn.to/2zIVI8p The Book on Rental Property Investing: https://amzn.to/2UkwgQ6 Building Wealth One House at a Time: https://amzn.to/2ZJQuDW Rich Dad Poor Dad: https://amzn.to/2ZD29IK The Total Money Makeover: https://amzn.to/2Lc0thn The $100 Startup: https://amzn.to/2UnBpqK Freakonomics: https://amzn.to/2HCnDeJ