- 博客(83)
- 收藏
- 关注
原创 mysql相关
1. mysql修改存储路径默认在/var/lib/mysql下,移动目录并修改/etc/my.cnfhttps://blog.51cto.com/u_15328720/3436675(1)移动完之后报错 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-rIHXRgQL
2022-05-20 20:13:22
286
原创 diff两个文件的格式
diff --old-group-format="D %<" \--new-group-format="I %>" \--changed-group-format="U %>" \--unchanged-group-format="" file1 file2https://stackoverflow.com/questions/8098045/diff-and-gtype-group-format
2022-03-09 21:08:54
498
原创 加--with-x编译vim时报错 configure: error: could not configure X
文章目录1. vim 编译报错1. vim 编译报错configure: error: could not configure X error: Bad exit status from /var/tmp/rpm-tmp.2xwoeZ (%build)`先安装yum install libXt-devel,之后再重新编译./configure --prefix=%{_prefix} --enable-pythoninterp --enable-multibyte --with-x忘了需不需要加这个
2022-01-17 17:03:40
1956
原创 简单的搭建一个网站?
文章目录1. nodejs安装2. 安装git (可选)3. 注册github(可选)4. vue-element-admin跑起来怎么跑起来5. 其他相关文档:1. nodejs安装https://www.runoob.com/nodejs/nodejs-install-setup.html2. 安装git (可选)参考: https://www.liaoxuefeng.com/wiki/896043488029600/896067074338496git是一个版本管理工具3. 注册gith
2021-09-03 19:55:57
145
原创 rapidjson使用
rapidjson , c/c++中一个操作json的库(1)安装参考官方文档,只要把include/rapidjson目录放到系统库目录就可以了。这里只是简单的使用,编译时加-I参数就好了其中test.cpp代码如下// rapidjson/example/simpledom/simpledom.cpp`#include "rapidjson/document.h"#include "rapidjson/writer.h"#include "rapidjson/stringbuffer.h
2021-08-09 16:57:22
409
原创 libtool版本不匹配
编protobuf的时候,突然出现了这个问题。git clean -xfd清理之后重新编还是报错,最后查到问题应该是这个 https://www.thinbug.com/q/3096989libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-4, but thelibtool: definition of this LT_INIT comes from libtool 2.2.6b.libtool: You sho.
2021-04-23 11:43:13
651
原创 Centos上使用python生成echarts
文章目录一. Centos上安装chrome,使用headless模式一. Centos上安装chrome,使用headless模式(1) centos上安装google-chrome-stable教程主要参考: CentOS 7.x环境下搭建: Headless chrome + Selenium + ChromeDriver 实现自动化测试完全安装脚本参考:INSTALLING GOOGLE CHROME ON CENTOS, AMAZON LINUX, OR RHEL (之前找了好多,
2021-02-26 19:36:21
540
原创 centos上部署nginx
一. 安装:参考:2019 年如何在 CentOS 7 上安装最新版 Nginx二. 部署服务参考:https://linuxize.com/post/how-to-set-up-nginx-server-blocks-on-centos-7/拿Nginx 部署你的静态网页
2020-10-29 17:33:46
278
原创 nvidia-smi可以显示显卡信息,但torch.cuda.is_available()一直显示false
根本原因是cudatoolkit版本和pytorch版本和cuda版本不对应?1. 查看cuda版本cat /usr/local/cuda/version.txt参考:Linux 和 Windows 查看 CUDA 和 cuDNN 版本2. 找对应的cudatoolkit版本参考binary-compatibility找到对应的 cudatoolkit对应的版本进行安装 。3. 安装对应的cudatoolkit这里的10.0要换成上文中查找到的对应的cuda版本。conda insta
2020-09-08 10:59:35
3360
原创 Flask, rabbitmq
1. ImportError: cannot import name ‘Flask’ from ‘flask’遇到这个问题,是因为我把自己的python 文件命名成了flask.pyorz.参考
2020-08-26 16:28:09
1428
原创 bash: scp: No such file or directory
bash: scp: No such file or directorylost connection遇到这个问题,查了半天,原来目录机器上把PATH置为空了orz.
2020-06-30 10:47:08
1374
原创 vscode中pylint不能显示错误
检查是否为 User中的配置覆盖了 remote中的配置https://www.thinbug.com/q/49795638不知道是不是这个起作用了,shell中直接运行pylint --generate-rcfile > ~/.pylintrc
2020-06-17 11:52:16
2348
原创 vscode中Pylint报错
pylint No name 'Iterable' in module 'collections'phttps://stackoverflow.com/questions/23478266/no-name-in-module-import-error添加"--disable-msg=E0611" "python.linting.pylintArgs": [ "--errors-...
2020-04-22 16:43:01
1683
原创 Python2到python3的转换
subprocess返回的output中有\nbytes到str的转换参考: https://blog.youkuaiyun.com/weixin_40283816/article/details/83591582b = b"example" # bytes object s = "example" # str object sb = bytes(s, encoding = "...
2020-04-20 21:21:34
327
原创 Nodejs将两个object相加
参考: https://segmentfault.com/q/1010000005018933如果报错Cannot assign to read only property 'has' of object '#<Object>'.,说明Object是只读的,添加{}即可,这样原来的Object也不会被改变。const config = Object.assign({}, cclsC...
2020-03-13 21:13:36
646
原创 typescript 正则表达式
有两种写法(1)let reg5:RegExp = /(\S)*.proto/i;(2)let reg5:RegExp = new RegExp('.*\.proto','i');注意两种方式表达任意一个字符的方式不同,字符串中用.来表示任意字符。正则表达式使用参考:https://javascript.ruanyifeng.com/stdlib/regexp.html...
2020-03-10 20:13:18
8422
原创 mac和Linux服务器之间使用 rz/sz来传文件
在此之前, 一直使用的scp来上传和下载文件,每次加上-P port需要输入很长的命令。刚刚突然发现,原来可以直接使用sz/rz来上传文件,哇咔咔太方便了。1. 服务器端安装 lrzsz服务器端:yum install yum install lrzszmac客户端:因为客户端已经有安装了iTerm ,所以这些步骤就不操作了惹,如果没有安装看下这里吼~这里。自己搞的时候好像也没有配置i...
2020-03-06 18:16:25
4270
原创 图床的问题
在做vscode插件,由于内网上的gif图片在插件安装之后不能打开,因此想要放到外网上。看到知乎上这个链接盘点一下免费好用的图床,咨询了一下同事,决定使用腾讯云的COS来做图床。不是很懂cos是做什么的,但是使用起来蛮方便,有六个月的免费使用额度,暂时先这样用着吧。(1) 进入腾讯云COS,点击购买指南 ,在免费额度一栏点击前往体验2. 点击一个确定按钮之后会有免费额度,点击创建存储桶,...
2020-02-17 15:59:06
329
原创 pip install报错
错误信息: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-BcpgNk/cpplint/参考: github更新一下setuptools和pippip install --upgrade setuptoolspip install --upgrade pip...
2020-01-14 16:48:38
276
原创 ssh 登录报错--The authenticity of host 192.168.0.xxx can't be established. 的问题
参考: https://blog.youkuaiyun.com/KimSoft/article/details/5865418
2020-01-13 17:05:18
609
原创 如何查找当前使用的vimrc
vim --version 最后一行的输出中。参考: https://blog.easwy.com/archives/where-is-vimrc/
2019-12-31 17:25:03
627
原创 secureCrt查看二进制文件后乱码
Ctrl+ V然后Ctrl+Ohttps://blog.youkuaiyun.com/chengxuyuanyonghu/article/details/39478447
2019-12-25 10:31:57
873
原创 rapidjson和python画图
rapidjson : https://blog.youkuaiyun.com/qq_27385759/article/details/79277434python 模拟曲线: https://www.jb51.net/article/144481.htm
2019-12-22 23:38:57
199
原创 了解clang AST
https://www.stephenw.cc/2018/01/08/clang-ast/https://jonasdevlieghere.com/understanding-the-clang-ast/#navigatingsources
2019-12-20 16:19:09
492
原创 C++计算程序代码时间间隔(精确到ms)
#include <iostream>#include <stdio.h>#include <string>#include <sys/time.h>#include <unistd.h>using namespace std;int fa_getSysTime() { struct timeval tv; gett...
2019-12-20 11:49:22
1408
原创 docker相关
共享文件系统https://coolshell.cn/articles/17061.htmlhttp://dockone.io/article/1511
2019-12-17 10:55:13
92
原创 ccls运行报错,clang assert错误
ccls: /home/lenajin/llvm-7.0.0.src/tools/clang/lib/Sema/SemaOverload.cpp:5059: clang::ImplicitConversionSequence TryObjectArgumentInitialization(clang::Sema &, clang::SourceLocation, clang::Qua...
2019-12-16 20:25:27
710
原创 gdb设置
gdb参数设置https://blog.youkuaiyun.com/qibaoyuan/article/details/6116265
2019-12-12 16:57:18
289
原创 libmemcached 相关
API 使用https://blog.youkuaiyun.com/nyist327/article/details/44491107
2019-12-12 16:14:40
106
原创 scons
类似与makefile的编译规则文件,用python写https://www.ibm.com/developerworks/cn/linux/l-cn-scons/index.html
2019-12-06 21:59:44
163
原创 secureCRT登录`No compatible key-exchange method. The server supports these methods: diffie-hellman`
SecureCrt登录遇到这个问题No compatible key-exchange method. The server supports these methods: diffie-hellman。解决方法: Options > Session Options,参考: https://forums.vandyke.com/showthread.php?p=48086...
2019-11-20 11:01:43
43747
原创 vscode插件离线安装
vscode最新版本插件有问题,需要安装一个之前的版本1. 下载https://github.com/microsoft/vscode-python/releases下载的五月份这个,确保可用。2. 查找安装目录查找安装位置,找到 bin目录,将刚刚下载的文件移动到bin目录下。[/Applications/Visual Studio Code.app] find ./ -name...
2019-08-27 11:52:49
18325
2
原创 python解析json文件
https://blog.youkuaiyun.com/dyx404514/article/details/50186413
2019-07-11 11:04:39
260
原创 编译clang时遇到 undefined reference to __cxa_guard_acquire linker error
用cmake生成Makefile后,在make时出现链接错误。环境:clang编译,默认libC++库解决方法:make时添加make VERBOSE=1查看哪一句执行失败执行了好久好久,终于可以看到error为C++链接库错误,于是在llvm-7.0.0-src的CMakeLists.txt中添加set(CMAKE_SHARED_LINKER_FLAGS "-stdlib=...
2019-07-11 10:18:01
4104
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人