Browsed by
Category: Programming Notes

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

【Life】學海無涯之線上課程教學評比: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,不過因為時間有限,這兩家的線上課程平台我並沒有特別去嘗試,有興趣的人可以找找國外的評價。

以下將會介紹

Read More Read More

Facebooktwittergoogle_plusredditpinterestlinkedinmail
【Life】七年之癢–我的碼農之路

【Life】七年之癢–我的碼農之路

轉眼間,在IT界當碼農過了七個年頭,在紐西蘭也工作了一年多,覺得自己應該寫篇記錄來紀錄這七年的里程碑。除了幫助自己回憶,也相信過了幾年再回過頭來檢視這篇記錄時,能夠有對照組來做比較。

若有看過我之前寫的這篇文章,會知道我大學唸的是私立大學心理系。因為對程式有興趣,在大學時曾幫系學會架設簡單的HTML/Flash網站。雖然如此,在那時並沒有任何念頭要把寫程式當作是畢生志業,也沒有特別花時間去自學任何程式語言。

2007年大學雙學位畢業(畢業學分快要200,累死老娘),去了另外一間學校的心理所打混了兩年,2009年離開學校後到醫院、機構擔任社工、就服員。在機構工作的一年之間意識到自己完全不喜歡這份工作,每天上班都讓我痛苦難耐,知道自己絕對要轉換職業跑道,否則一定會瘋掉。但是要做什麼?通常知道自己『不』喜歡什麼會比喜歡什麼相對容易。現在知道自己不喜歡這份工作了,那之後的路呢?我不斷的反覆問著自己。那時身邊剛好有幾個好友在寫程式,他們知道我對IT有興趣,不斷的鼓勵我轉職嘗試。但是身為一個私立大學心理系的畢業生,想要憑著這樣的學歷找IT的工作是談何容易?當時做了一個影響往後人生且燒錢的決定:去補習並且拿到Java證照。(我絕對沒有要鼓吹大家去補習!)

Read More Read More

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

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

Read More Read More

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

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

最近因為公司業務拓展需求,需要將公司的平台導入支付寶(alipay)的API,讓買家可以直接使用支付寶付款。原本以為這是一個很簡單的任務,沒想到因為對支付寶API的不熟悉,來來回回折騰了將近兩週才將支付功能開發完成。

支付寶的支付接口分為境內支付以及國際支付兩種。所謂的境內支付指的是買家用人民幣付款,賣家用人民幣取款。而國際支付則是買家用人民幣付款,賣家可以用指定幣種取款。因為我的公司是紐西蘭公司,當然就是用紐幣取款了。

這兩種支付接口所使用的API以及傳入的參數是完全不一樣的,但因為一開始不知道兩種支付方式使用不同的API,一直在螞蟻金服開放平台上的官方文件糾結了很久。且網路上的資訊新舊交雜,導致程式都寫完了才發現螞蟻金服開放平台上演示的API只能用於境內支付。恍然大悟之後改去用國際支付的API,程式重新撰寫配置才將此支付功能完成。

Read More Read More

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

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

certification_roadmap

The roadmap of AWS certification

Read More Read More

Facebooktwittergoogle_plusredditpinterestlinkedinmail
How to find the longest possible quasi-constant subsequence of array?

How to find the longest possible quasi-constant subsequence of array?

This is my task2 challenge. I’ve tried to solve this question, but my result wasn’t good. Although there was no error after testing, I only got 33% score.😰

The summary of question shows as below:

I was given a non-empty unsorted array such as: A = [6, 10, 6, 9, 7, 8]. The amplitude of a subsequence of array A is the difference between the largest and the smallest element in this subsequence. The amplitude of the empty subsequence is assumed to be 0.

These are some of the subsequences of array A and their amplitudes:
[6, 6, 7] has amplitude 1;
[6, 10, 6, 9, 7, 8] has amplitude 4;
[6, 6, 7, 8] has amplitude 2.

If this subsequence of array is called quasi-constant, it means its amplitude does not exceed 1. In the example above, subsequence [6, 6, 7] is the longest possible quasi-constant subsequence of array A.

Now, you are expected to provide a method that takes in an array and returns the maximum number of quasi-constant subsequence of array. In above example, the function should return 3.

Read More Read More

Facebooktwittergoogle_plusredditpinterestlinkedinmail
My first Codility test experience

My first Codility test experience

Last week, I received an email from a recruiter who asked me to do Codility assessment. I had to answer three questions within 245 minutes. Although I’ve heard about Codility, this was my first Codility test experience. To be honest, it was really difficult to me.

These questions were not easy to understand, so it took me some time to understand each question. Then I tried to answer the questions by Java or Python programming language. Even though I eventually found the solutions and summited the answers, my average score was not good enough. When I finished this assessment, I was very disappointed about myself. I even thought whether I should keep a programmer job.😂😂😂

It seems that more and more companies like to use Codility assessments to evaluate developers, but I don’t think it is a best way to test a programmer’s coding/programmer abilities.

Read More Read More

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

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

Read More Read More

Facebooktwittergoogle_plusredditpinterestlinkedinmail