在flask 的 design 有幾個 concept。
Context (應用下上文) 就是其中一個例子。
The context is typically used to cache resources on there that need to be created on a per-request or usage case. For instance database connects are destined to go there.
peicheng 發表在 痞客邦 留言(0) 人氣(42)
從上次回台中,也很久沒回去了。
這次回去的主要目的就是參加 台灣武藝協會 的教練講習活動。
一波三折的地點 跟 行程
peicheng 發表在 痞客邦 留言(0) 人氣(32)
note
timeout while indexing 1gb document |
peicheng 發表在 痞客邦 留言(0) 人氣(12)
Hbase 啟動流程
開啟一個 Hbase cluster 可以按造以下流程開啟
HDFS
DataNodes
HBase HMaster (active)
HBase HMaster (backup)
HBase Region Servers
peicheng 發表在 痞客邦 留言(0) 人氣(15)
[mac]Hide all windows except the currently active window 只秀出當前工作視窗
mac 使用時你開啟的程式一般都回重疊在space上,常常想要專心的使用某個程式。
peicheng 發表在 痞客邦 留言(0) 人氣(7)

[開箱文]紅米手機 2013 已到
沒錯,就是這麼快。
手機不爭氣的在假日變磚,剛好趕上預約搶購資格。
9號參加了饑餓行銷,昨晚十一點半全家付款。
今天下班前黑喵喵就送來了。
peicheng 發表在 痞客邦 留言(0) 人氣(257)
[linux]kill more than one process use ps aux grep awk
you can use ps aux ,grep find your program name
#ps aux | grep "prog_name"
peicheng 發表在 痞客邦 留言(0) 人氣(26)
buffer 的大小是 MAX_ARG_PAGES * "page 大小" --- 一般而言是 32 * 4k = 128k。
peicheng 發表在 痞客邦 留言(0) 人氣(134)
[linux]system argv maximum length
如何得知 system command line 的 argv 最大長度,
可以使用 getconf 去取得。
root@renode2[/var/log]{14:52}# getconf ARG_MAX
2621440
peicheng 發表在 痞客邦 留言(0) 人氣(105)
[git]git pull 遇到 error: Your local changes to the following files would be overwritten by merge:
有部分程式,更改了但是沒有commit 。
peicheng 發表在 痞客邦 留言(0) 人氣(58)