原创 C# LINQ list遍歷並組裝返回新查詢
經常用到記錄下: var query = from p in list where p.Letter == letter select new BrandInfo() { Logo = "https://***" + p.Logo, N
原创 Python獲取本機多IP並指定出口IP
1.添加引用 import requests,sys,socket #獲取本機IP地址def getIPList(self): ipList=[] # 下方代碼爲獲取當前主機IPV4 和IPV6的所有IP地址(所有系統均通用)
原创 python讀取excel和讀取excel圖片總結
1.讀取Excel表格 panda方式 ,普通的excel可行,對於有些數據複雜的,可能提取不了 import pandasexcel=pandas.read_excel('現代徵信學.xlsx',index_col='列名',head
原创 windows2012/2016/2019 iis自帶ftp被動端口修改
1.powershell執行: Set-WebConfiguration "/system.ftpServer/firewallSupport" -PSPath "IIS:\" -Value @{lowDataChannelPort="
原创 flutter xcode 打包坑
每次archive,或者flutter 升級 都有點問題,記錄下 1. 'connectivity/ConnectivityPlugin.h' file not found 嘗試以下: (1).刪除Podfile,Podfile.lock,
原创 Failed to connect to chromium.googlesource.com port 443 CocoaPods 添加WebP失敗解決辦法
CocoaPods 添加WebP失敗解決辦法,修改git source地址就是不行 最後開了小飛機代理 web可以打開 但 terminal還是不行 要配置git代理 git config --global http.proxy 'soc
原创 flutter 接入 alipay支付寶
Flutter alipay支付集成,嘗試了3種插件 (1)插件sy_flutter_alipay ios下編譯失敗,放棄 (2)插件 flutter_alipay 最終也失敗放棄 https://github.com/best-flutt
原创 Flutter開發記錄part2
(1)文本超出摺疊:child: Text('跑馬燈dddd的范德薩范德薩放多少范德薩范德薩范德薩范德薩范德薩發',maxLines: 1,overflow: TextOverflow.ellipsis) (2)佔位剩餘空間:new Exp
原创 Flutter開發記錄part3
(1) 獲取當前屏幕寬度 width: MediaQuery.of(context).size.width, (1) pull_to_refresh,smartrefresh 自定義文字: new SmartRefresher( he
原创 Flutter開發記錄part1
(1)AppBar:automaticallyImplyLeading//是否帶返回leading箭頭 (2)非route路由頁面跳轉 :Navigator.of(context).push(MaterialPageRoute(builde
原创 Dapper Sqlpara where in
Mark一下:string sql = "SELECT * FROM SomeTable WHERE id IN @ids" var results = conn.Query(sql, new { ids = new[] { 1, 2,
原创 Flutter接入極光推送
(1)搜索 https://pub.dartlang.org/packages/jpush_flutter ,安裝插件,並且按照官方配置 /android/app/build.gradle android: { .... de
原创 14.【nuxt起步】-Pm2 和nuxt服務運行
1.安裝pm2 npm install pm2 -gd 2.啓動 Pm2 start ./bin/www 3. pm2 save 4.Pm2 startup 5.Pm2 save修改 package.json "scripts": {
原创 12.【nuxt起步】-接口請求重構
用store把api數據交互部分重構出來,讓前端更輕一點 新建 /store/gettter.js /store/actions.js /server/config/index.js Index.js: export default {
原创 15.【nuxt起步】-Nuxt使用jsweixin sdk
npm install weixin-js-sdk --save 這個不行,這個是vue前端用的 網上找了一些vue jsweixin的案例 不能直接用 因爲nuxt是後端運行,windows對象取不到,通過查找到了一個可用的案例 就是把j