Posts

Showing posts from November, 2011

[Linux] sshd 無法啟動 & 權限

Version: Linux debian 2.6.26-2-686  i686 GNU/Linux [Question] 在將Debian網路設定為Bridge mode, ping成功後發現ssh都沒起來, 執行 /etc/init.d/ssh start 顯示 "Starting OpenBSD Secure Shell server: sshd /var/run/sshd must be owned by root and not group or world-writable" 錯誤. [Answer] google後說是/var/run/sshd 這個 folder的問題, 於是刪除後重新執行 /etc/init.d/ssh start 就可以了. 不過我檢查了刪除前後的folder屬性發現都一樣, 無法執行真是詭異... Orz... [Question] Permission format  ex. -rwxrwx--- [FILETYPE]{[Ownership R/W][EXECUTABLE]x3} FILETYPE:    d :  目錄   - :   檔案   l  :   Link Ownership 包括 File Owner, members in the same group as owner, others.

[Eng]Vocabulary

1. end up 2. hand out flyers 3. that's brutal. That's pretty harsh. 4. panic attack 5. toll free number = free number for companies or service Jamaica     is the 3rd largest island in Caribbean, tropical with hot and humid weather, and owns numerous ecosystems. Due to being located in the hurricane belt of Atlantic ocean, it sometimes confronts storm damage. There are about 2.7 million residents there, quite less because more than half Jamaican left and migrated to other countries such as America, Canada, and UK for decades for sake of families or better lives. Of course, there are also new migrants to Jamaica. Most of them are from Caribbean islands, such as Haiti for economic reason and having a better life, really. They came by boat and that explains why there are lots of history about boat people in Jamaica. They finally ends up working in bars or restaurants and they help the development of  tourism industry indeed.

[GAE] 判別使用者使用哪個裝置連線

其實一開始的問題只是想知道client IP, webapp2 API找了老半天沒有, 結果是在更底層的webOb (TMD...) Anyway, 剛好手邊有iphone, ipad, imac 跟 asus nb, 就來紀錄一下各自的 User-Agent... Apple的browser都是 safari, asus我用IE, Chrome, FF Safari:     iphone(iOS5) - Mozilla/5.0 ( iPhone ; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari /7534.48.3     ipad(iOS5) - Mozilla/5.0 ( iPad ; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari /7534.48.3     iMac(MacOS10.6.8) - Mozilla/5.0 ( Macintosh ; Intel Mac OS 10_6_8 ) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari /7534.50 Chrome:    ASUS(Windows 7) - Mozilla/5.0 ( Windows NT 6.1 ) AppleWebKit/535. (KHTML, like Gecko) Chrome /15.0.874 120 Safari/535.2      iMac(MacOS10.6.8) - Mozilla/5.0 ( Macintosh ; Intel Mac OS 10_6_8 ) AppleWebKit/534.50 (KHTML, like Gecko)  Chrome /15.0.874 121 Safari/7534.50   IE:    ASUS(Windows 7) - Mozilla/4.0 (compatible; MSIE 8.0 ; Windows NT 6

[GAE] 使用 webapp2 發生 Server Error

Event: 改用webapp2時發生Server Error Reason:    webapp2 在 appspot 僅提供 python27 runtime使用. Correction:    In app.yaml,       runtime: python27 Reference:   連結一 另外, python27 runtime 不允許 threadsafe的選項?! 不知道為什麼...紀錄一下, 有空再追。