20170426_jeffrey - silenceuncrio/diary GitHub Wiki
早上一下子的靈感
想到之後的九十秒演講
生老病死 看作是人生的四個狀態的話
年輕時用的 switch case 只是 喔
switch(state) {
case '生':
printf("喔..., %s", state);
break;
case '老':
printf("喔..., %s", state);
break;
case '病':
printf("喔..., %s", state);
break;
case '死':
printf("喔..., %s", state);
break;
}
慢慢長大發現人都會變老
死
不過是 '生' 狀態的 couter 累計
function 人生() {
switch(state) {
case '生':
printf("喔..., %s", state);
old_cnt ++;
if (old_cnt >= old_max) {
state = '死';
handel(state)
}
break;
case '老':
printf("喔..., %s", state);
break;
case '病':
printf("喔..., %s", state);
break;
case '死':
printf("什麼! %s", state);
break;
}
}
每次的 '生' 都慢慢地往 死
靠近
然後知道了物件導向後發現我不過是上帝創造的某個 instance
function main() {
...
new 人生('jeffrey')
...
}
然後聽到認識的年齡相似的誰因為進到 病
的 state 後
已經告別的人生
讓我在每一次的 生
除了 old_cnt ++;
更會去珍惜身邊的每個 人生 instance
繼續 monkeyjj 的案子
團購的第一個動作 - A Director create a Group
從 database 來看
就是在 Groups
這個 table INSERT
一筆 data
這一筆 data 需要的屬性如下
Groups
Table | Column | Data Type | Length | Indexed | Requuired(Default) |
---|---|---|---|---|---|
Groups | (PK) GroupId | Number | NA | Yes, Primary Key | Yes |
Name | Character | 50 | Yes | Yes | |
Description | Character | 250 | No | No | |
PeriodStart | Date | NA | Yes | Yes | |
PeriodEnd | Date | NA | Yes | Yes | |
(FK) DirectorId | Number | NA | Yes, Foreign Key | Yes |
我們怎麼樣來達成以下的敘述呢
A Group must be created by a Director (1:1)
之後會利用 php 來實作出 開團 的介面幫助 使用者 在 Groups
這個 table INSERT
一筆 data
重點來了
只有是 Director
的 使用者 才能 開團
所以我實作的 php 在第一時間就需要知道目前的使用者是誰
我需要實作 login 的機制
工規產品教育訓練
來把禮拜五要用的 redundancy functions survey 做好
就拿 MOXA 來參考就好了
就抓幾個具代表性的產品來看
-
EDS-P506A-4PoE Series
- 6-port managed Ethernet switches with 4 IEEE 802.3af/at PoE+ ports
-
PT-G503-PHR-PTP Series
- IEC 61850-3/62439-3 3-port full Gigabit managed redundancy boxes
-
OnCell G3470A-LTE Series
- Industrial LTE cellular gateway
-
EDR-810 Series
- 8+2G multiport industrial secure router with switch/firewall/NAT/VPN
簡單做個產品分類
- Managed Ethernet switch
- Managed Redundancy box
- LTE Cellular Gateway
- Secure Router
看看各個分類宣稱的 Redundancy Functions
Product Category | Redundancy Functions |
---|---|
Managed Ethernet switch | STP, RSTP, MSTP, Turbo Ring, Turbo Chain, Link Aggregation |
Managed Redundancy box | PRP/HSR |
LTE Cellular Gateway | Dual-SIM GuaranLink |
Secure Router | STP, RSTP, Turbo Ring, VRRP |
對每個 Redundancy Functions 做個介紹
Reference - Communication Redundancy User’s Manual
Reference - Communication Redundancy User’s Manual
Reference - Communication Redundancy User’s Manual
Reference - Moxa PRP/HSR Redundancy Box User’s Manual
Reference - Moxa Managed Ethernet Switch (UI_2.0_FW_4.x) User’s Manual
Reference - Layer 3 Routing User’s Manual (UI 2.0)
Reference - OnCell G3470A-LTE User’s Manual
再來就是翻翻 manual, 剪剪貼貼
GitLab
wiki 上的 Redundancy Functions Proposal
準備得差不多了
mail 給 M300 成員參考一下