pyinstaller打包akshare项目无法运行 问题描述:windows 下打包后出现找不到 mini_racer.dll ubuntu 下打包后出现找不到 libmini_racer.glibc.so (无论是 -F 还是 -D 打包都会有这种情况) windows 下-F报错: RuntimeBrror: Native library not available at C:\Users\DZQ-836\AppData\Local\Temp 2023-08-08 Python Pyinstaller Python Pyinstaller AkShare
C++实现进程守护 说明:基于信号和通过"/proc/"目录判断进程id来监控目标进程状态。 实现了一个简单的进程守护程序。它会启动一个子进程,并监控该子进程的运行状态。如果子进程意外终止,守护程序会重新启动子进程。 代码实现:1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 2023-07-05 C++ C++
Openresty使用JWT验证 安装JWT:# 下载JWT的lua库 wget https://github.com/SkyLothar/lua-resty-jwt/releases/download/v0.1.11/lua-resty-jwt-0.1.11.tar.gz # 解压 tar -zxvf lua-resty-jwt-0.1.11.tar.gz # 进入resty目录 cd /opt/openresty/lua-re 2023-06-10 Openresty JWT Openresty JWT
C++避免vector索引超出范围 描述:该类通过重载operator[]来提供更安全的访问方式 重载operator[],并使用了std::enable_if和std::is_trivially_default_constructible来限制只有在T是默认构造的类型时才生效。 代码:1234567891011121314151617181920212223242526272829303132333435363738394041 2023-05-30 STL vector C++ STL vector
Pytorch循环神经网络LSTM时间序列预测 官方文档:https://pytorch.org/docs/stable/generated/torch.nn.LSTM.html 示例:预测某只股票未来5天的收盘价 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626 2022-11-05 Python Pytorch Python Pytorch LSTM
Jupyter Lab安装与使用 JupyterLab 官网:https://jupyterlab.readthedocs.io pip 安装:1pip install jupyterlab 生成配置文件:12# 默认配置文件生成路径:~/.jupyter/jupyter_lab_config.pyjupyter lab --generate-config 生成密码:123jupyter lad password# 输入两次密码生 2022-10-28 Jupyter Lab Jupyter Lab
STL-unordered系列容器自定义哈希函数 概述:由于在STL中,有关于hash的数据结构值针对于基础数据类型如int, string等提供了hash模板, 因此如果想要使用自定义类,那么我们需要自定义hash函数! 重写hash函数和equal_to函数1234567891011121314151617181920212223242526272829303132333435363738#include <iostream># 2022-07-04 STL unordered STL unordered
VS2019 + VMware双机内核调试驱动 准备前提:Visual Studio下载 https://visualstudio.microsoft.com/zh-hans/downloads/ Windows SDK https://developer.microsoft.com/zh-cn/windows/downloads/sdk-archive/ 下载和安装 Windows 10 WDK https://docs.microsoft. 2022-05-17 VS2019 VMware VS2019 VMware 双机调试
spdlog封装使用 使用spdlog:拉取官网spdlog代码,在项目中引入include路径(仅头文件,编译器需要支持C++11)spdlog地址:https://github.com/gabime/spdlog官方详细文档:https://github.com/gabime/spdlog/wiki 简单封装:12345678910111213141516171819202122232425262728293031 2022-05-07 spdlog spdlog
LeanCloud-Valine出现ERR_CONNECTION_REFUSED问题 问题:部分用户使用leancloud国际版域名 “https://xxxxxxxx.api.lncldglobal.com ” 会出现net::ERR_CONNECTION_REFUSED问题,可能是 DNS 劫持导致 解决办法1(客服端解决):1.先ping自己的REST API 服务器地址(xxxxx为自己AppID的前8位字符)(如果ping xxxxxxxx.api.lncldgloba 2022-04-24 LeanCloud Valine LeanCloud Valine