[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, sigh…?

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.

閱讀更多[JS] When upgrade Webpack from v3 to v4…

(Visited 2,038 times, 1 visits today)

[Ubuntu] Install Hadoop 3.0.0 & Hive on Ubuntu 16.04

What’s Hadoop?

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?

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.

閱讀更多[Ubuntu] Install Hadoop 3.0.0 & Hive on Ubuntu 16.04

(Visited 1,119 times, 1 visits today)

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

閱讀更多[Ubuntu] Install Spark2.2.1 on Ubuntu 16.04

(Visited 788 times, 1 visits today)

【Life】2017年學海無涯之線上課程教學評比:Coding/Programming Training篇

從2015年開始,我陸續使用過了不同的線上學習課程平台,像是Coursera, Udemy, Lynda.com, Codecademy, Udacity, Linux Academy, Cloud Academy。其中Linux Academy和Cloud Academy是只有IT DevOps訓練的平台,我會在別篇介紹,我在這裡介紹的是跟Coding & Programming相關的平台。此外在國外還算蠻有名的coding線上課程還有treehouse以及Code school,不過因為時間有限,這兩家的線上課程平台我並沒有特別去嘗試,有興趣的人可以找找國外的評價。


閱讀更多【Life】2017年學海無涯之線上課程教學評比:Coding/Programming Training篇

(Visited 3,678 times, 7 visits today)

[WP] How to Add SSL and HTTPS in WordPress?

SSL plays an important role in website, because in the last year Google announced that they will be using HTTPS and SSL as a ranking signal in their search results. This means that using HTTPS and SSL will help improve your site’s SEO.

Using an SSL certificate for your WordPress site means that your data, as well as your users’ data, remains safe from prying eyes. Since WordPress is a particularly large target for hackers due to its popularity and transparency, it’s important to take all the appropriate steps toward securing your site.

If you host a wordpress website by yourself, you may need to install SSL certificate on your website. I found a simple way to install SSL certificate through commands and the most important thing is this SSL certificate is free. Oh yes, you need to have the basic knowledge of SSH, Linux and Bash.

閱讀更多[WP] How to Add SSL and HTTPS in WordPress?

(Visited 87 times, 1 visits today)

[Android] How to solve the annoying toolbar stretching issue?

I’ve been developing an Android application recently, and I use Android v7 toolbar in my app instead of ActionBar. When I opened some views with EditText component, the toolbar stretched and occupied the whole view. It’s really annoying because users cannot see anything when they open this view unless they close the keyboard.

閱讀更多[Android] How to solve the annoying toolbar stretching issue?

(Visited 75 times, 1 visits today)

[Java] 支付寶(alipay) 境內支付API介接與實作




閱讀更多[Java] 支付寶(alipay) 境內支付API介接與實作

(Visited 2,976 times, 2 visits today)

[AWS] How to tackle with the AWS Certified Developer Associate Level?

I attended the AWS Certified Developer – Associate exam on 4th March 2016, and eventually got this certification. I would like to tell you what the AWS Certified Developer – Associate is, and how I prepared for the examination.

What is AWS Certified Developer – Associate?

AWS Certified Developer – Associate is one of the AWS Certifications. AWS offers three categories of certification: Solutions Architect, SysOps Administrator and Developer. Each of these is currently available on an Associate or Professional level. Right now, there are five exams in total, since one exam covers both the Developer and SysOps Administrator on the Professional Level.

閱讀更多[AWS] How to tackle with the AWS Certified Developer Associate Level?

(Visited 427 times, 1 visits today)

[Java] How to use SSL and Google Protobuf on Netty?

Recently, I tried to use Netty framework dealing with message transferring between different virtual machines which are including one server and some clients. Meanwhile, I need to use SSL mutual authentication and Google protobuf when these VMs do communication cross the internet. Although I had already encountered the term “SSL” a lot of times, I soon realised that I had never fully understood how it really works and how it could be implemented in Java.

I would like to share my experience about implementing SSL plus Google Protobuf on Netty. But I wouldn’t exactly tell you what Netty, SSL and Google protobuf are.

閱讀更多[Java] How to use SSL and Google Protobuf on Netty?

(Visited 1,003 times, 1 visits today)

[Python] Use python boto3 and crontab to backup MySQL to AWS S3

I wrote a python script to backup MySQL and upload to AWS S3. I will show you these steps in the following. First of all, you need to create a user in AWS IAM.

閱讀更多[Python] Use python boto3 and crontab to backup MySQL to AWS S3

(Visited 816 times, 1 visits today)