跳到主要內容

發表文章

Comparable 與 Comparator

如果想針對陣列進行排序,可以使用 java.util.Arrays的sort() 方法,如果你查詢API文件,會發現該方法針對物件排序時有兩個版本,一個是你收集在陣列中的物件必須是 Comparable (否則會拋出 ClassCastException ),另一個版本則可以傳入 Comparator 指定排序方式。 https://openhome.cc/Gossip/Java/ComparableComparator.html
最近的文章

Beta Testing - Apple Developer

document: https://developer.apple.com/testflight/ https://itunespartner.apple.com/en/apps/overview Reference: https://www.youtube.com/watch?v=1CcCKQHjDpw App Store Connect: https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app/1445478142/testflight?section=alltesters

Deploy Project to AWS EC2

Step 1 : build Amazon EC2 instance  Download the .pem file Select the instance you like to connect  Referance : http://dez.logdown.com/posts/2017/04/07/aws-ec2-deploy-nodejs-web-app Step 2 : connect to AWS EC2 Create a directory by Terminal: # mkdir -p ~/.ssh Move the download .pem file to the .ssh directory we just created:  # mv ~ /Downloads/[key name].pem ~/ssh change the permissions of the .pem file so only the root user can read it: #chmod 400 ~/.ssh/[key name].pem create a config file: # vim ~/.ssh/config Enter the following text into that config file Host *amazonaws.com IdentityFile ~/.ssh/[key name].pem User  ec2-user  Use the ssh command with your public DNS hostname to connect to your instance # ssh [public DNS] Referance : https://docs.aws.amazon.com/en_us/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

Docker

https://www.docker.com/get-started Docker Hub: https://store.docker.com/editions/community/docker-ce-desktop-mac Redis: https://hub.docker.com/_/redis/ Portainer: (Visualize Docker Status) https://portainer.readthedocs.io/en/latest/index.html