Create HTTP PUT request to upload a file (c# & python)
透過 http 做 file upload 通常都是走 POST 比較多,但是最近遇到用 PUT 做 upload 的,需要自己生 multipart/form-data 的資料比較麻煩一點
透過 http 做 file upload 通常都是走 POST 比較多,但是最近遇到用 PUT 做 upload 的,需要自己生 multipart/form-data 的資料比較麻煩一點
需要這個是因為在裝 caffe的時候,會需要順便裝 openblas,但詭異的是openblas的 library 沒辦法在執行的時候被找到。 解決方式是從這邊來的,先在 /etc/ld.so.conf.d/ 裏頭新增一個 openblas.conf,內容就寫 /opt/OpenBLAS/lib 然後執行 ldconfig 就可以,之後用 ldconfig -p | grep blas 檢查一下 至於為什麼不用 LD_LIBRARY_PATH ,在這一篇有講到,以我自己來說是遇到 permission 問題
從 windows 7 or windows 2008 開始,就開始有 64 bit 版本,然後就可能遇到 odbc driver 的問題,特別是在執行舊的 asp 程式,在連結 access 資料庫的時候會遇到類似這樣的訊息 Microsoft OLE DB Provider for ODBC Drivers 錯誤 ‘80004005’ [Microsoft][ODBC 驅動程式管理員] 找不到資料來源名稱且未指定預設的驅動程式
其實還蠻容易的…
最近碰到的 nodejs + Backbone,因為Backbone hardly depends on Underscore… 所以…
Actually, check SNMP service uptime.
Sometimes, we just want to release a single .exe file without a mass of .dll library files. This makes users easier to copy the file, and does not unveil the information of libraries used in the program.
Backend C# side string Info = ""; if (ds.Tables[1] != null) { for (int i = 0; i < ds.Tables[1].Rows.Count; i++) { if (Info == "") { } else { Info = Info + ","; } Info = Info + String.Format("{{\"id\": \"{0}\", \"type\": \"{1}\", \"Bal\": \"{2}\"}}", ds.Tables[1].Rows[i]["id"].ToString(), ds.Tables[1].Rows[i]["type"].ToString(), ds.Tables[1].Rows[i]["Bal"].ToString() ); } } Response.Write(String.Format("{{\"username\":\"{0}\", \"credit\":\"{1}\", \"balance\":\"{2}\", […]
最近在看 google web search api(reference), 剛好看到這個東西…