摘要: 镜像源 清华源:https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣源:https://pypi.doubanio.com/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.m 阅读全文
posted @ 2024-03-27 08:45 理舞 阅读(1) 评论(0) 推荐(0) 编辑
摘要: pip install scikit-learn # from sklearn.decomposition import PCA pip install pymysql # import pymysql pip install py2neo # import py2neo as neo pip in 阅读全文
posted @ 2024-03-25 08:29 理舞 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 一、Des算法 import java.security.SecureRandom; import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.Sec 阅读全文
posted @ 2024-03-23 07:46 理舞 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 当浏览器向后台发起请求时,后台返回302,此时浏览器因为请求的发起方式不同,处理302的方式也不同,下面列举常见的处理方式: 参考博客: [1] 关于http重定向(302)的实验 https://blog.csdn.net/u010476739/article/details/115719565 阅读全文
posted @ 2023-11-24 08:22 理舞 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1、控制浏览器缓存 server { listem 80; server_name www.tomcats.com; location / { proxy_pass http://tomcats; expires 10s; #浏览器缓存10秒钟 #expires @22h30m #在晚上10点30的 阅读全文
posted @ 2023-11-16 09:09 理舞 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 关键代码 ``` var gcj02Data = gcoord.transform(geoJsonObject, gcoord.WGS84, gcoord.GCJ02); ``` 具体见github https://github.com/hujiulong/gcoord 阅读全文
posted @ 2023-07-25 21:22 理舞 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 当Leaflet直接使用leaflet.ChineseTmsProviders.js加载多种底图的时候,与自己使用的坐标点存在坐标系差异,要么对数据进行坐标转换与底图一致,要么对底图进行纠偏 github上的插件Leaflet.InternetMapCorrection,可以直接处理,非常方便,见h 阅读全文
posted @ 2023-07-25 21:18 理舞 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 在服务器运行nodejs脚本中,遇到三个问题,进行记录 1. 用到sharp依赖,但是在服务器上安装不成功,依赖会从github上下载不下来 解决:设置使用sharp对应的镜像地址 npm config set sharp_binary_host "https://npmmirror.com/mir 阅读全文
posted @ 2023-04-12 14:26 理舞 阅读(43) 评论(0) 推荐(0) 编辑
摘要: nginx扩展 1. nginxconfig.io 直接浏览器中访问nginxconfig.io会重定向到https://www.digitalocean.com/community/tools/nginx?global.app.lang=zhCN,在这个里面可以进行配置,然后下载使用,在这个网站上 阅读全文
posted @ 2022-09-15 09:24 理舞 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 语法 读取图片,并进行质量压缩,语法imwrite(filename, img, params=None) 注意 注意这里的params,是(paramId_1, paramValue_1, paramId_2, paramValue_2, ... .)这种写法,其中paramId需要去查,针对图片 阅读全文
posted @ 2022-08-30 09:11 理舞 阅读(28) 评论(0) 推荐(0) 编辑