Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ZhgChgLi/blog
Browse files Browse the repository at this point in the history
  • Loading branch information
app-harry committed Sep 21, 2024
2 parents bdd910c + b21bba7 commit 307f252
Show file tree
Hide file tree
Showing 24 changed files with 891 additions and 46 deletions.
5 changes: 1 addition & 4 deletions _posts/zmediumtomarkdown/2019-11-11-b08ef940c196.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "iOS Deferred Deep Link 延遲深度連結實作(Swift)"
author: "ZhgChgLi"
date: 2019-11-11T14:34:57.966+0000
last_modified_at: 2024-08-10T07:01:25.296+0000
last_modified_at: 2024-09-13T09:32:09.117+0000
categories: "ZRealm Dev."
tags: ["deeplink","ios-app-development","swift","universal-links","app-store"]
description: "動手打造適應所有場景、不中斷的App轉跳流程"
Expand All @@ -15,9 +15,6 @@ render_with_liquid: false

動手打造適應所有場景、不中斷的App轉跳流程

#### \[Medium Partner Program Test\]
- 非 Medium 付費會員可免費由此查看本文全部內容: [https://zhgchg\.li/posts/b08ef940c196/](../b08ef940c196/)

### \[2022/07/22\] 更新 iOS 16 Upcoming Changes

iOS ≥ 16 開始非使用者主動操作貼上動作,App 主動讀取剪貼簿的行為會跳出詢問視窗,使用者需要按允許,App 才能讀取到剪貼簿資訊。
Expand Down
6 changes: 1 addition & 5 deletions _posts/zmediumtomarkdown/2021-02-04-12c5026da33d.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Universal Links 新鮮事"
author: "ZhgChgLi"
date: 2021-02-04T03:57:25.914+0000
last_modified_at: 2024-08-10T07:02:24.764+0000
last_modified_at: 2024-09-13T09:31:54.655+0000
categories: "ZRealm Dev."
tags: ["ios","ios-app-development","universal-links","app-store","deeplink"]
description: "iOS 13, iOS 14 Universal Links 新鮮事&建立本地測試環境"
Expand All @@ -20,10 +20,6 @@ iOS 13, iOS 14 Universal Links 新鮮事&建立本地測試環境
![Photo by [NASA](https://unsplash.com/@nasa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText){:target="_blank"}](/assets/12c5026da33d/1*HYAd1aal5Et1A-Qzs6VAtQ.jpeg)

Photo by [NASA](https://unsplash.com/@nasa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText){:target="_blank"}
#### \[Medium Partner Program Test\]
- 非 Medium 付費會員可免費由此查看本文全部內容:
[https://zhgchg\.li/posts/12c5026da33d/](../12c5026da33d/)

### 前言

對於一個有網站又有 APP 的服務, Universal Links 的功能對於使用者體驗來說無比的重要,能達到 Web 與 APP 之間的無縫接軌;但一直以來都只有簡單設置,沒有太多的著墨;前陣子剛好又遇到花了點時間研究了一下,把一些有趣的事記錄下來。
Expand Down
12 changes: 1 addition & 11 deletions _posts/zmediumtomarkdown/2021-02-23-d9a95d4224ea.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Medium 自訂網域功能回歸"
author: "ZhgChgLi"
date: 2021-02-23T18:25:15.743+0000
last_modified_at: 2024-08-10T09:21:55.263+0000
last_modified_at: 2024-09-13T09:32:51.213+0000
categories: "ZRealm Life."
tags: ["medium","生活","domain-names","domain-authority","domain-registration"]
description: "自己的 Domain Authority 自己養!"
Expand All @@ -19,16 +19,6 @@ render_with_liquid: false

![](/assets/d9a95d4224ea/1*Yoz3gwb9HPe2d-ja6Y8W-Q.png)



> **_本篇文章有加入 Paywall,因為要自訂網域你也需要先加入 Medium Member 付費會員 XD。_**

> **_本文免費閱讀連結:_** _[https://zhgchg\.li/posts/d9a95d4224ea/](../d9a95d4224ea/)_



### \[2024/07/28\] 功能回歸


Expand Down
16 changes: 9 additions & 7 deletions _posts/zmediumtomarkdown/2021-06-15-ba5773a7bfea.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Visitor Pattern in iOS (Swift)"
author: "ZhgChgLi"
date: 2021-06-15T15:58:36.329+0000
last_modified_at: 2024-04-13T16:45:55.172+0000
last_modified_at: 2024-09-06T05:58:52.296+0000
categories: "ZRealm Dev."
tags: ["ios-app-development","swift","design-patterns","visitor-pattern","double-dispatch"]
description: "Design Pattern Visitor 在 iOS 開發的實際應用場景分析"
Expand All @@ -11,9 +11,9 @@ image:
render_with_liquid: false
---

### Visitor Pattern in Swift
### Visitor Pattern in Swift \(Share Object to XXX Example\)

Design Pattern Visitor 的實際應用場景分析
Visitor Pattern 的實際應用場景分析 \(在分享 商品、歌曲、文章… 到 Facebook, Line, Linkedin\. \. 場景\)



Expand Down Expand Up @@ -55,7 +55,7 @@ Photo by [Daniel McCullough](https://unsplash.com/@d_mccullough?utm_source=unspl
圖片取自 [refactoringguru](https://refactoringguru.cn/design-patterns/visitor){:target="_blank"}

詳細內容這邊不再重複贅述,請先直接參考 [refactoringguru 對於 Visitor 的講解](https://refactoringguru.cn/design-patterns/visitor){:target="_blank"} 。
### iOS 實務場景\(\)
### iOS 實務場景 — 分享功能

假設今天我們有以下幾個 Model:UserModel、SongModel、PlaylistModel 這三個 Model,現在我們要實作分享功能,可以分享到:Facebook、Line、Instagram,這三個平台;每個 Model 需要呈現的分享訊息皆為不同、每個平台需要的資料也各有不同:

Expand Down Expand Up @@ -425,14 +425,16 @@ class SaveToCoreDataVisitor {



#### 延伸閱讀
#### 參考資料
- [Design Patterns in Swift: Visitor](https://shirazian.wordpress.com/2016/04/22/design-patterns-in-swift-visitor/){:target="_blank"}
\(另一個使用 Visitor 的場景應用\)
- [https://github\.com/kingreza/Swift\-Visitor](https://github.com/kingreza/Swift-Visitor){:target="_blank"}
- [Deep Linking at Scale on iOS](https://medium.com/@albertodebo/deep-linking-at-scale-on-ios-1dd8789c389f){:target="_blank"} \(State Pattern\)

#### 下一章
- [Design Patterns 的實戰應用紀錄](../78507a8de6a5/) \(2022\)
### 延伸閱讀
- Design Patterns 的實戰應用紀錄 — In WKWebView with Builder, Strategy & Chain of Responsibility Pattern
- [Design Patterns 的實戰應用紀錄](../78507a8de6a5/)
- [Visitor Pattern in TableView](../60473cb47550/)



Expand Down
3 changes: 2 additions & 1 deletion _posts/zmediumtomarkdown/2021-09-09-11f6c8568154.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "2021 Pinkoi Tech Career Talk —  高效率工程團隊大解密"
author: "ZhgChgLi"
date: 2021-09-09T12:13:53.982+0000
last_modified_at: 2023-08-29T08:44:13.986+0000
last_modified_at: 2024-09-06T06:01:21.053+0000
categories: "Pinkoi Engineering"
tags: ["pinkoi","automation","ios-app-development","engineering-mangement","workflow"]
description: "Pinkoi 高效率工程團隊大解密 Tech Talk 分享"
Expand Down Expand Up @@ -616,6 +616,7 @@ Recap 高效率工作團隊的內幕,我們主要做了什麼事。

立即加入 Pinkoi >>> [https://www\.pinkoi\.com/about/careers](https://www.pinkoi.com/about/careers){:target="_blank"}


有任何問題及指教歡迎 [與我聯絡](https://www.zhgchg.li/contact){:target="_blank"} 。


Expand Down
7 changes: 5 additions & 2 deletions _posts/zmediumtomarkdown/2022-04-07-78507a8de6a5.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Design Patterns 的實戰應用紀錄"
author: "ZhgChgLi"
date: 2022-04-07T14:49:17.715+0000
last_modified_at: 2024-04-14T02:03:19.276+0000
last_modified_at: 2024-09-06T06:00:33.888+0000
categories: "Pinkoi Engineering"
tags: ["ios-app-development","design-patterns","socketio","websocket","finite-state-machine"]
description: "封裝 Socket.IO Client Library 需求時遇到的問題場景及解決方法應用到的 Design Patterns"
Expand Down Expand Up @@ -1232,7 +1232,10 @@ let connection2 = builder.build(url: URL(string: "wss://pinkoi.com/1")!).connect

Platform Team 專案負責人Pair programming在 iOS 端使用 Swift 實現設計討論並提出質疑\(a\.k\.a\. 出一張嘴\)及最後撰寫本文與大家分享
### 延伸閱讀
- [Visitor Pattern in Swift](../ba5773a7bfea/)
- Design Patterns 的實戰應用紀錄 — In WKWebView with Builder, Strategy & Chain of Responsibility Pattern
- [Visitor Pattern in Swift \(Share Object to XXX Example\)](../ba5773a7bfea/)
- [Visitor Pattern in TableView](../60473cb47550/)



有任何問題及指教歡迎 [與我聯絡](https://www.zhgchg.li/contact){:target="_blank"} 。
Expand Down
11 changes: 8 additions & 3 deletions _posts/zmediumtomarkdown/2022-07-08-60473cb47550.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Visitor Pattern in TableView"
author: "ZhgChgLi"
date: 2022-07-08T07:58:30.799+0000
last_modified_at: 2024-04-14T02:10:44.304+0000
last_modified_at: 2024-09-07T02:37:30.367+0000
categories: "ZRealm Dev."
tags: ["ios-app-development","design-patterns","visitor-pattern","uitableview","refactoring"]
description: "使用 Visitor Pattern 增加 TableView 的閱讀和擴充性"
Expand All @@ -20,9 +20,9 @@ render_with_liquid: false
![Photo by [Alex wong](https://unsplash.com/@killerfvith?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText){:target="_blank"}](/assets/60473cb47550/1*0YcpTUOCDjuV6Ii4jgbK0g.jpeg)

Photo by [Alex wong](https://unsplash.com/@killerfvith?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText){:target="_blank"}
### 前言
#### 前言

承接上篇[Visitor Pattern in Swift](../ba5773a7bfea/) 」介紹 Visitor 模式及一個簡單的實務應用場景,此篇將介紹另一個在 iOS 需求開發上的實際應用。
接上篇[Visitor Pattern in Swift](../ba5773a7bfea/) 」介紹 Visitor 模式及一個簡單的實務應用場景,此篇將介紹另一個在 iOS 需求開發上的實際應用。
### 需求場景

要開發一個動態牆功能,有多種不同類型的區塊需要動態組合顯示。
Expand Down Expand Up @@ -295,6 +295,11 @@ extension ViewController: UITableViewDelegate {
#### Murmur…

2022/07 思維低谷期中撰寫的文章,內容如有描述不周、錯誤敬請海納!
### 延伸閱讀
- Design Patterns 的實戰應用紀錄 — In WKWebView with Builder, Strategy & Chain of Responsibility Pattern
- [Design Patterns 的實戰應用紀錄](../78507a8de6a5/)
- [Visitor Pattern in Swift \(Share Object to XXX Example\)](../ba5773a7bfea/)



有任何問題及指教歡迎 [與我聯絡](https://www.zhgchg.li/contact){:target="_blank"} 。
Expand Down
32 changes: 23 additions & 9 deletions _posts/zmediumtomarkdown/2024-08-10-cefdf4d41746.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Medium Partner Program 終於對全球(包含台灣)寫作者開放啦!"
author: "ZhgChgLi"
date: 2024-08-10T09:09:15.641+0000
last_modified_at: 2024-08-11T12:59:47.137+0000
last_modified_at: 2024-09-13T09:30:14.534+0000
categories: "ZRealm Life."
tags: ["medium","paywall","stripe","earnings","生活"]
description: "所有人都可以加入 Medium Partner Program 撰寫文章獲得收益。"
Expand All @@ -20,13 +20,6 @@ render_with_liquid: false
![Photo by [Steve Johnson](https://unsplash.com/@steve_j?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash){:target="_blank"}](/assets/cefdf4d41746/1*WFb9iQKt7iOj_4DLTPjHjA.jpeg)

Photo by [Steve Johnson](https://unsplash.com/@steve_j?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash){:target="_blank"}


> **_本篇文章有加入 Paywall,因為要加入 Medium Partner Program 你也需要先加入 Medium Member 付費會員 XD。_**



#### Murmur

經營 Medium 的初衷不是為了賺錢,是喜歡與大家分享的感覺,分享遇到的技術困難、希望能讓有同樣問題的開發者少走點彎路,或是基於我的研究再深入,我也可以從中學習到新知識;加上繁體中文寫作者很少,希望能拋磚引玉創造一個教學相長的循環風氣。
Expand Down Expand Up @@ -311,8 +304,29 @@ https://medium\.com/me/partner/dashboard


細節文章報表也會顯示有多少付費會員看過。
### 本篇文章成果

本篇文章從一發佈就加入到 Paywall \(目前已移除\),分享一下一個月的成果。
### $0\.90

Earnings
### 201

Views
### 82

Reads
### 41%

Read ratio

觀察只有 Reads 數量 \(付費用戶停留閱讀超過 30 秒\),才會有收益,分配金額也不固定,感覺會依照流覽數、拍手數、分享數…去分配;我的數量都不高,所以一個 Read 大概只分配到 $0\.01 ~ $0\.07 之間。

以上數據供大家參考。
### Medium 自訂網域推廣
- [Medium 自訂網域功能回歸](../d9a95d4224ea/)
- 可參考以上文章步驟註冊自己的網域並綁定到 Medium 上,效果:從 [https://medium\.com/@zhgchgli](https://medium.com/@zhgchgli){:target="_blank"} \-> [**https://blog\.zhgchg\.li**](https://blog.zhgchg.li){:target="_blank"}

**之後再來分享成果!**


有任何問題及指教歡迎 [與我聯絡](https://www.zhgchg.li/contact){:target="_blank"} 。
Expand Down
8 changes: 4 additions & 4 deletions _posts/zmediumtomarkdown/2024-08-24-b7e7c0938985.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "遊記 2024 泰國曼谷 Bangkok 🇹🇭 5 日自由行"
author: "ZhgChgLi"
date: 2024-08-24T17:23:20.900+0000
last_modified_at: 2024-08-25T06:30:45.959+0000
last_modified_at: 2024-09-13T06:50:45.713+0000
categories: "Z 度旅行遊記"
tags: ["生活","travel","travel-writing","bangkok","thailand"]
description: "疫情後再訪泰國,曼谷五日快閃自由行。"
Expand Down Expand Up @@ -58,7 +58,7 @@ render_with_liquid: false
#### 時程安排 2024/08/02 ~ 2024/08/06
- Day 1 08/02 : **預計 18:45 抵達曼谷機場** ,到飯店大約 20:00 後,飯店休息或去飯店酒吧
- Day 2 08/03 : 昭披耶河一代景點,大皇宮、臥佛寺、玉佛寺、鄭王廟、ICONSIAM、晚上去找 前數字科技\(現 Agoda\)一哥 [Chun\-Hsiu Liu](https://medium.com/u/72361fccaa43){:target="_blank"} [Lhao Lhao](https://bkk.com.tw/2012-12-12-186/#LHAO_LHAO_%E7%A8%80%E9%A3%AF%EF%BC%88%E0%B8%82%E0%B9%89%E0%B8%B2%E0%B8%A7%E0%B8%95%E0%B9%89%E0%B8%A1%E0%B9%82%E0%B8%95%E0%B9%89%E0%B8%A3%E0%B8%B8%E0%B9%88%E0%B8%87%E0%B9%80%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B9%80%E0%B8%AB%E0%B8%A5%E0%B8%B2%EF%BC%89){:target="_blank"} 吃飯、聽 [Rock Pub Live](https://www.instagram.com/p/C91ZVwtxR32/?igsh=MWtuMzd3MHV3NnFicw==){:target="_blank"} 。
- Day 3 08/04 : 恰圖恰市集、王權瑪哈納功大廈、Central Rama 9 外夜市\( [火山排骨](https://maps.app.goo.gl/tqxkRDRjrHsa5dhh7){:target="_blank"} \)
- Day 3 08/04 : 恰圖恰市集、王權瑪哈納功大廈、喬德夜市 \( [火山排骨](https://maps.app.goo.gl/tqxkRDRjrHsa5dhh7){:target="_blank"} \)
- Day 4 08/05 : 逛街購物,Central World、Terminal 21
- Day 5 08/06 : 回程, **15:20 的飛機**

Expand Down Expand Up @@ -1217,7 +1217,7 @@ _免費合成的數位照片,參觀完電梯下來會有工作人員指引下


整個玻璃走廊沒有很大,大概就像飯店的頂樓天際游泳池的大小而已,在旁邊看沒有覺得很高,實際走上去還是會怕,有點腳軟XD
### Central Rama 9 中央廣場拉瑪九購物中心前廣場夜市
### 喬德夜市 \(原拉差達火車夜\)


![MRT 可以直接刷信用卡](/assets/b7e7c0938985/1*BrfghHaJknyt6IiX7yOgbA.jpeg)
Expand Down Expand Up @@ -1784,7 +1784,7 @@ Source: [SHERATON HUA HIN RESORT & SPA](https://www.marriott.com/en-us/hotels/hh
#### [Santorini Park 希臘風情小鎮](https://maps.app.goo.gl/5e56XAK4en27bHbPA){:target="_blank"} \(已停業\)


[![](https://www.bring-you.info/wp-content/uploads/2018/02/huahsin-santorini-6.jpg)](https://www.bring-you.info/zh-tw/santorini-park){:target="_blank"}
[![](https://www.bring-you.info/wp-content/uploads/2018/02/huahin-travel-24.jpg)](https://www.bring-you.info/zh-tw/santorini-park){:target="_blank"}


好像是個小樂園、跟百貨公司,希臘造景。
Expand Down
Loading

0 comments on commit 307f252

Please sign in to comment.