摘要: 背景 只在CFLAGS和CXXFLAGS加-fsanitize=address是不够的,会编译失败,报出一堆undefined reference to __asan_report_XXX这样的报错,例如 undefined reference to __asan_report_load1 各种各种 阅读全文
posted @ 2024-03-12 15:50 Mr42Sir 阅读(708) 评论(0) 推荐(0)
摘要: 1.开启了x11功能的mobaxterm(mobaXterm默认开启了,其他的终端可能还要设置开启)上安装一些必要依赖 sudo apt install libxext6 libxrender1 libxtst6 libxi6 libfreetype6 -y sudo apt install fon 阅读全文
posted @ 2024-03-11 10:15 Mr42Sir 阅读(230) 评论(0) 推荐(0)
摘要: 解决办法 要定时执行的shell脚本开头引入你自己有访问权限的环境变量文件: #!/bin/sh . /home/hsy/.profile(这是Ubuntu的,如果是CentOS就改成bash_profile) . /home/hsy/.bashrc # 以下写你脚本的内容 crontab -e要这 阅读全文
posted @ 2024-03-06 14:30 Mr42Sir 阅读(30) 评论(0) 推荐(0)
摘要: 原文: http://anders.wang/pandaszhong-set_index-he-reset_index-yi-ji-reindex-qu-bie/ 写得比较好,感谢作者 阅读全文
posted @ 2024-02-29 15:31 Mr42Sir 阅读(16) 评论(0) 推荐(0)
摘要: 原生Pandas中的用法介绍 https://www.cnblogs.com/keye/p/11229863.html 当结合Polars时的使用 https://mp.weixin.qq.com/s/3-TSOGbrxTpCyaZx1EI1bA 阅读全文
posted @ 2024-02-29 13:48 Mr42Sir 阅读(37) 评论(0) 推荐(0)
摘要: 参考文章 1.https://www.cnblogs.com/zhoujinyi/p/10939715.html 2.https://www.cnblogs.com/lijiaman/p/16558877.html 具体实操 创建一个可以登录的用户(user默认可登录,role默认不可登录) CRE 阅读全文
posted @ 2024-02-28 15:28 Mr42Sir 阅读(274) 评论(0) 推荐(0)
摘要: 50个股票 12个进程 1200秒 数据库表大小:669MB 一个超快的将Pandas的DataFrame数据导入Postgresql数据库中的方法: https://stackoverflow.com/a/47984180/16205177 使用该方法之后,50个股票,只开了4个进程,仅仅耗时73 阅读全文
posted @ 2024-02-02 17:20 Mr42Sir 阅读(31) 评论(0) 推荐(0)
摘要: import pickle import gzip import pandas as pd def decompress_object(filename): with gzip.open(filename, 'rb') as f: obj = pickle.load(f) return obj 阅读全文
posted @ 2024-02-01 10:13 Mr42Sir 阅读(45) 评论(0) 推荐(0)
摘要: 背景 其实Ubuntu20.04之后完全可以用apt安装自带的Boost,只不过如果想要安装特定版本的Boost和静态链接(性能、发布时可以不带上Boost动态库考量),可以如下文自己去编译Boost 下载Boost源码 地址:https://www.boost.org/users/history/ 阅读全文
posted @ 2024-01-20 20:52 Mr42Sir 阅读(507) 评论(0) 推荐(0)
摘要: 1.杀掉某个用户的所有进程 killall -u 用户名 2.Ubuntu20.04查看mac地址 ip addr show 结果在link/ether查看 3.获取某个文件夹下以某个后缀结尾的文件的个数(这里以.h5为例) 3.1 先进入该目录 3.2 输入以下命令 ls -1 *.h5 | gr 阅读全文
posted @ 2024-01-15 09:40 Mr42Sir 阅读(20) 评论(0) 推荐(0)