[JS] When upgrade Webpack from v3 to v4…

[JS] When upgrade Webpack from v3 to v4…

When I upgraded Webpack from v3 to v4, I got a bunch of errors. I already get used to encountering the errors when I upgrade the Webpack, sigh027

The first 2 errors I encountered were CommonsChunkPlugin and UglifyJsPlugin.

Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead.
...
Error: webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead.

Read More Read More

(Visited 1,577 times, 8 visits today)
[Ubuntu] Install Hadoop 3.0.0 & Hive on Ubuntu 16.04

[Ubuntu] Install Hadoop 3.0.0 & Hive on Ubuntu 16.04

What’s Hadoop?

hadoop-logo
Hadoop is an open-source framework that allows to store and process big data in a distributed environment across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.

The project includes these modules:

Hadoop Common: The common utilities that support the other Hadoop modules.
Hadoop Distributed File System (HDFS™): A distributed file system that provides high-throughput access to application data.
Hadoop YARN: A framework for job scheduling and cluster resource management.
Hadoop MapReduce: A YARN-based system for parallel processing of large data sets.

What’s Hive?

hive_logo
The Hive data warehouse software facilitates reading, writing, and managing large datasets residing in distributed storage using SQL. Structure can be projected onto data already in storage. A command line tool and JDBC driver are provided to connect users to Hive.

Read More Read More

(Visited 512 times, 6 visits today)
[Ubuntu] Install Spark2.2.1 on Ubuntu 16.04

[Ubuntu] Install Spark2.2.1 on Ubuntu 16.04

What is Spark?

Apache Spark is a fast and general-purpose cluster computing system. It provides high-level APIs in Java, Scala, Python and R, and an optimized engine that supports general execution graphs. It also supports a rich set of higher-level tools including Spark SQL for SQL and structured data processing, MLlib for machine learning, GraphX for graph processing, and Spark Streaming.

You can download Spark from here, or follow the below instructions to download and install Spark2.2.1.

Read More Read More

(Visited 611 times, 1 visits today)
【Life】Auckland居大不易之一年生活開銷心得分享

【Life】Auckland居大不易之一年生活開銷心得分享

許多台灣人覺得在國外工作的生活品質會比台灣好、賺的比在台灣多,到底是不是這樣呢?個人同意在歐、美、加拿大、澳洲、紐西蘭工作的生活品質應該會比台灣好上不少,但若是在亞洲國家像是日本、韓國、香港、新加坡、大陸,生活品質就未必會比台灣好。至於到底在國外賺得有沒有比台灣多,我會分享過去一年在Auckland的生活消費開銷讓大家有個比較。

Read More Read More

(Visited 495 times, 1 visits today)
【鞋測】Nike Winflo 4 & New Balance Zante 2

【鞋測】Nike Winflo 4 & New Balance Zante 2

最近趁著SportDirect New Zealand大特價入手了Nike Winflo 4New Balance Fresh Foam Zante 2,這兩雙鞋子也是我比較過無數評價得知重量比較輕但也保有良好吸震性的鞋款,在RunPepeat上有不錯的評價。網購之前要先確認尺寸,便趁平常下班日Torpedo 7七點打烊收店之前去試穿Nike Winflo 4,這時候去試穿的好處是都不會有店員來問候。本來在掙扎是否要買更輕薄的Nike Flex RN 2017,雖然在RunRepeat上的評分也很高,外表看起來很不錯,但是實際試穿時的感覺不好。不知道為何鞋底偏死硬,踩起來不太舒服;楦頭偏寬,前腳掌無法被完全包覆,有空空的感覺,所以完全放棄它剛好省錢。

Read More Read More

(Visited 70 times, 1 visits today)
【敗家】Tomtom Runner 3 開箱評測 (2018/03/29 Update!)

【敗家】Tomtom Runner 3 開箱評測 (2018/03/29 Update!)

Tomtom Runner 3是2016年10月上市的,距今已經上市超過一年。它不是最新的產品,但我還是要寫開箱評測留記錄,因為這是個人生平第一支GPS心跳碼表。縱使已有多年騎車的經驗,一直以來都是用手機紀錄軌跡,所以沒有任何的踏頻和心跳記錄。五年多前練跑步時,也都是用手機紀錄,也因為沒有心跳資料,都只能靠pace來掌握訓練強度,一直覺得這樣的訓練效果不是很好。

最近又再度恢復練跑習慣之後,覺得每次出門要帶又大又笨重又不防水的手機真的很不方便,且沒有心跳記錄,訓練之後完全沒有辦法做資料分析,覺得該是入手GPS碼表的時候了。在不同的碼表間比較了許久,看了很多網路評價,考量價格跟功能之後最後選擇個人認為C/P值最高的Tomtom Runner 3 Cardio(Runner 3跟Spark 3是完全一樣的,只是型號不一樣)。
2017-10-31 11.46.59

Read More Read More

(Visited 885 times, 3 visits today)
【跑步】Auckland Marathon 初體驗

【跑步】Auckland Marathon 初體驗

八月中時臨時起意報名了Auckland Marathon的半馬賽程,對於四年多來幾乎沒有跑過步的我來說,可以說是“偽初”半馬也不為過。還記得八月中開始練跑時,在家附近只跑個6km就覺得腿要廢了,只要一練跑就產生了自暴自棄的念頭。熬過了頭兩個禮拜,在家附近練跑的速度可以越來越快,距離越拉越長,也逐漸養成了練跑的習慣。前六週,我每週固定跑3天,週跑量從24km提升到42km。第七週開始變成一週跑四天,多增加了輕鬆跑的次數。比賽當週剛好是第十週,也藉此檢視這10週訓練下來的成果。

Read More Read More

(Visited 68 times, 1 visits today)
【健行】Te Henga Walkway – Southern

【健行】Te Henga Walkway – Southern

Hillary Trail位於北島,在Auckland西邊的郊區,全長77km,總共有八個分段[1]。它涵蓋了不同的自然景觀,從原始山林到海灘,在山頂還可以遠眺Tasman Sea以及西海岸著名的黑沙灘[2]。這個步道的名字是為了要紀念Edmund Hillary,他是全世界第一個登上聖母峰的人(於1953年攀登成功)。

雖然它沒有像紐西蘭國家步道Great Walk這麼有名,但是絕對是喜歡健行的Aucklander的首選步道之一。來觀賞一下美麗的Hillary Trail介紹影片吧。

Read More Read More

(Visited 32 times, 1 visits today)
Tangzhong Banana Bread 湯種香蕉麵包

Tangzhong Banana Bread 湯種香蕉麵包

最近做巧克力蛋糕老是失敗,乾脆來做麵包發洩一下吧。26404948595_50f63642a5_o.png 想來做個香蕉口味。一般美式香蕉麵包,用大量的香蕉泥,通常都很油很甜;並且採用baking powder來發,算是quick bread。我比較想來做不是那麼甜的香蕉麵包,且用酵母發酵。

Read More Read More

(Visited 57 times, 1 visits today)