2017年11月27日 星期一

How to capture soap xml through tsahrk

tshark -w   data.pcap
#!/bin/bash 
TSHARK=tshark PCAP=./data.pcap 
# write the streams to individual files 
while read stream 
do 
echo "writing stream $stream --> $stream.txt"
 $TSHARK -qz follow,tcp,ascii,$stream -r $PCAP > $stream.txt 
done < <($TSHARK -T fields -e tcp.stream -r $PCAP | sort | uniq)

2017年11月23日 星期四

PlantUML : 泳道圖

[plantuml,,top10_history.png]
--
@startuml
|2004|
start
:A1- Unvalidated Input;
detach
:A2- Broken Access Control;
detach

:A3- Broken Authentication and Session Managment;
detach;
:A4 - Cross Site Scripting;
detach;

|#AntiqueWhite|2007|

:A1-Cross Site Scripng (XSS)
:foo3;
|2004|
:foo1 ;
|2007|
|2004| # 代表又回到泳道2004
:foo4;
:foo5;
|2010|
|2013|
|2017|

stop
@enduml

 

NewImage

2017年11月3日 星期五

reveal slide doesn't work in Mac if you included "space " in your slide folder name

Now for our company internal sharing, I use Asciidocfx to prepare a sharing material slide.   I found everything works find in Asciidocfx preview console.

But it will fail if I browser it on browser.   After use firebug to debug the error message, I found the issue was caused by “failed to load reveal css”.

Therefore I back to check the folder structure, I found there is a space in folder name.  After remove it.  Wow,  everything  works fine.  

2017年11月1日 星期三

[MAC] 如何更改外接顯示器的解析度

有時候因為設定上的問題,一接上外接顯示器就顯示out of range, 然後也不知道如何更改設定,其實可以在

[系統偏好設定]->顯示器,切換道排列方式,然後點選”option” ,  就換出現自動偵測顯示器的選項,就跟之前

在很多Mac 神奇的設定使用option 叫出進階設定一樣,出現自動偵測顯示器選項後,你就能更改解析度了

Why I learned from Pokomongo for product developing

PokemonGo 可以說是史上最成功的手遊軟體,產品的成功集合了天時地利人和,在剛推出時,網路上有超多的文章在探討他是如何成功的,但隨者兩年過去了,回頭看PokemonGo 還是發展的很好

手遊的生命一般都不長,所以我猜應該很難在一開始就規劃好完善的product roadmap, 但從我個人角度觀察,他一直都算很成功

1) 技術繼承性:從Ingress 繼承遊戲的圖資,不用從頭打過重練

2) 遊戲規劃:從道館的改變,發現大家都用10層蛋暫塔,就改變成每種寶可夢只能一支,加上定期推出神獸來維持人氣,配合節日推出禮品包,看得出來這家公司變化的非常快

3) 營運處理:對外掛的處理,即時是課金玩家,違反規則一樣照樣取消帳號,不被客戶把者走

4) 商業模式開發:從開始在定點灑花,讓商家可以買灑花器聚集人氣,到現在商家可以贊助道館,會有超夢可以打,但對於玩家裝備交易制度卻也沒輕易開啟,對於遊戲交易制度一旦開啟,會因為有利可圖,所以會吸引一些特定的交易商進駐遊戲,造成遊戲環境惡化,這個可以從魔獸世界參考前例

什麼是資訊流(Information flow)

文章:

* 百度新金雞母資訊流,年收逾10億美元

最近看新聞常看到一些資訊流的文章,而且看來滿有商機的,簡單的說,資訊流就是記錄一些交流的資訊,包括金流,物流和商流

資訊流最重要的就是,To  pass on (傳遞),  To transform (轉換)然後最後就是 to store up (整理與建檔),電子資料交換的技術定義(EDI)

EDI(Electronic Data Interchange),常見的EDI, 以製造業EDI, 比較有名的就是JID ( just In Time), 以商業EDI而言,常見的為QR (Quick Response)

How to restore a deleted onenote page

復原不小心誤刪的onenote