思元的開發筆記

關於 web service, unity, blogger 等軟體工程筆記

多人網路連線遊戲程式開發之讀書筆記:同步遊戲資料,資料序列化與物件複製,處理網路延遲與伺服器安全性

Multi-Player Game Programming ,這是一本介紹如何建置多人網路遊戲程式的書,提到許多關於網路遊戲傳輸的重要概念,例如如何同步遊戲世界資料,如何讓遊戲玩起順順不卡頓 (lag)等等,以及多人遊戲會遇到的困難與挑戰,有志朝網路遊戲程式設計可以閱...

LeetCode #42 Trapping Rain Water

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to ...

LeetCode #37 Sudoku Solver

Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character ‘.’. You may assume ...

LeetCode #32 Longest Valid Parentheses

Given a string containing just the characters '(' and ')' , find the length of the longest valid (well-formed) pare...

LeetCode #25 Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.

LeetCode #23 Merge k Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 在這次問題中,嘗試使用 Go 來實作三種不同的解題方式,總結其複雜...

AWS Beanstalk: Go WebApp 部署筆記

記錄前陣子將使用 Go 所寫的網路服務 (Restful API server),部署到 AWS Beanstalk 的筆記記錄,讓未來部署除了官方文件外,還有一個參考筆記。

LeetCode #10 Regular Expression Matching

'.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the e...

Unity AssetBundle 資料列表載入以及打包架構思考,使用 Pokémon 作為範例

最近社群有看到有人詢問,關於如何在 Unity 中,設計敵人列表的 AssetBundle 資源加載架構設計,例如之前釋出一版本包含敵人 A, B, 以及 C 種類,在之後又追加敵人 D 以及 E 的資料,要如何處理這多出來的資源載入,使得原先的資源可以不用重新下載,只需要...

OpenSSL 建立 CSR 找不到 openssl.cnf 錯誤處理

在處理申請 SSL 用的憑證 (Certificate) 所遇到的問題,向憑證簽發商 (Certificate authority, CA) 申請憑證前,需要先建立準備 CSR (Certificate Signing Request),而透過 openssl 指...