原创 freeswitch sipml5 實現網頁即時通訊 踩坑

源代碼:https://github.com/lishulongVI/freeswitch   一、docker 部署 預備內容 sipml5 GitHub : https://github.com/DoubangoTelecom/s

原创 互聯網業務反欺詐

概要 講述互聯網欺詐的 “攻” 與 “防” 講述如今發生的一些風險問題; 你在後臺業務看到的數據不完全可信,欺詐者會做出你喜歡看的數據來迷惑你; 帶大家瞭解我自己切身並實際發生的業務欺詐,並覆盤怎麼發現及控制風險的; 業務情報是一

原创 golang.org/x/sys timeout 解決方式

go: golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get

原创 xgboost 缺少依賴導致的安裝不成功,試試這個

ERROR: Complete output from command python setup.py egg_info: ERROR: rm -f -rf build build_plugin lib bin *~ *

原创 OSError: mysql_config not found || Exception: Wrong MySQL configuration:

pip install mysqlclient   OSError: mysql_config not found File "<string>", line 1, in <module> File "/private/var/folde

原创 flask + gunicorn + pipenv + supervisor + nginx

flask + gunicorn + pipenv + supervisor + nginx # gunicorn + pipenv + supervisor + flask [program:diudiudiu] comman

原创 scrapyd 問題 builtins.AttributeError: 'int' object has no attribute 'splitlines'

錯誤提示     web.Server Traceback (most recent call last): builtins.AttributeError: 'int' object has no attribute 'splitli

原创 python 2 vs python3

python 2  python3                     ValueError: cannot convert float NaN to integer     python2 v

原创 pip 鏡像源

lishulongdeMacBook-Pro:~ lishulong$ cat ~/.pip/pip.conf [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple

原创 python 中 list 是否是線程安全的?

 是不是不共享數據就不會發生線程不安全? 線程安全就是多線程訪問時,採取了加鎖的機制,當一個線程訪問該類的某個數據時,進行保護,其他線程不能進行訪問知道該線程讀取完,其他的線程纔可使用,不會出現數據不一致或數據污染的問題 線程不安全就是

原创 dev warning python

一、服務調用 1. 判斷是否需要重試(retring); 2. 設置超時時間; 3. 對狀態碼進行判斷; 4. 對於異常!200的處理,具體業務具體分析,不論是向上拋出還是內部消費,異常日誌收集都是必要的 5. 後期日誌的分析。處理異常

原创 spring cloud data flow 調研

# Spring Cloud 相關庫設計了Spring Initializr的特別版本 https://start-scs.cfapps.io/ Demo https://www.baeldung.com/spring-cloud-dat

原创 docker quick start

1、鏡像命令   修改鏡像源地址  /etc/docker/daemon.json   顯示12位鏡像ID docker images -qa   顯示鏡像ID docker images --digests   顯示鏡像說明  dock

原创 spring cloud data flow

* 全部操作都在統一目錄下     1、下載docker-compose wget https://raw.githubusercontent.com/spring-cloud/spring-cloud-dataflow/v1.7.3.R

原创 pymongo beson binary 存儲

痛點:由於在python中使用numpy 進行數據操作的時候需要轉換成mongo的數據類型,才能進行存儲,在使用的時候再取出 轉換成numpy的數據類型 作爲模型的入參。 這樣中間多做了一層轉換,而且numpy類型有24種,很難每個都判斷