- 博客(12)
- 收藏
- 关注
原创 为什么shell base64编码结果与其他结果不同?
首先我用shell命令:$ echo"teststring"| base64 dGVzdHN0cmluZwo =但是当我使用在线工具时,http://www.motobit.com/util/base64-decoder-encoder.asp的结果是:dGVzdHN0cmluZw ==他们为什么不同?echo输出字符串和末尾的换行符.如果您只想要提供的字符串,请使用echo -n...
2021-10-12 20:01:20
577
原创 etcd Error: context deadline exceeded
etcd 错误:{"level":"warn","ts":"2021-09-28T11:39:51.788+0800","logger":"etcd-client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0001f0000/#initially=[etcdn1.wos.58dns.org:2379]","attempt":0,
2021-09-28 14:32:15
12423
3
原创 Go获取键盘输入
Go获取键盘输入之前使用fmt.Scanln获取键盘输入,但是碰到空格就停止输入了使用bufio解决import "bufio"func GetScan() string{ reader := bufio.NewReader(os.Stdin) newStr, err := reader.ReadString('\n') if err != nil{ fmt.Errorf("Scan error %s",err) return "" } return newStr}参考
2021-01-12 11:45:25
1113
原创 go使用etcd客户端带用户名密码登陆
为什么这么些博客没有一篇涉及到etcd的密码登陆,无奈自己卡了半天,其实很简单环境go version go1.10.8 darwin/amd64 下载etcd Version: 3.4.14 下载代码(出于公司保护,仅贴出关键代码,go语言操作请参考其他教程)import ( "go.etcd.io/etcd/clientv3" "fmt" "time" "context")func main(){ cli, err := clientv3.New(clientv3..
2021-01-07 10:27:18
2426
3
原创 git不跟踪某个文件/文件夹
git不跟踪某个文件/文件夹编辑当前目录下.git/info/exclude文件vim .git/info/exclude我需要取消跟踪idea# git ls-files --others --exclude-from=.git/info/exclude# Lines that start with '#' are comments.# For a project mostly in C, the following would be a good set of# exclude patt
2021-01-06 10:12:22
1347
原创 tensorflow 1.4 could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
解决tensorflow 1.14 could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR问题这两天在做tensorflow1.14版本的c++api推理实验,但是启动程序一直报错,tensorflow 1.4 could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR,找了好多办法,cudnn版本也试了好几次,都没法有效最后找到问题原因,把多显卡的其他程序关掉就好了,目前看是因为别的
2020-07-25 16:12:30
261
原创 解决configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL
编译protobuf时遇到+ mkdir -p third_party/googletest/m4+ autoreconf -f -i -Wall,no-obsoleteconfigure.ac:30: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf doc
2020-07-23 17:58:47
888
原创 解决Flask安装后无法找到FLASK_APP问题
解决Flask安装后无法找到FLASK_APP问题问题描述解决办法问题描述在官方文档https://dormousehole.readthedocs.io/en/latest/quickstart.html中启动服务器,系统找不到FLASK_APP变量,因为在虚拟机中操作,为了不污染主系统环境变量解决办法将官方文档hello.py修改为app.py直接执行python -m flask run,不用在前面添加export等操作(我这也是export识别不到)...
2020-05-20 17:31:13
4160
原创 解决pytorch 官方教程tensorboard打不开情况
pytorch 官方教程tensorboard打不开情况解决办法:把https://换成http://
2020-04-09 19:22:07
1251
原创 Xcode升级11,'iostream' file not found问题
今天升级Xcode11之后报错'iostream' file not found解决方法1:Build Settings -> Search paths ->System Header Search Paths在Debug和Release添加/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefaul...
2019-10-27 11:24:34
5117
1
原创 arduino nano下载失败
今天下载arduino程序,出现下载失败,提示stk500_recv(): programmer is not responding重新安装驱动未解决,重新安装ide未解决,rx和tx口均未接外设解决方案:将芯片种类选为如图老版本...
2019-10-21 19:54:33
2376
原创 [嵌入式]关于jlink的调试问题,针对mdk全版本,2017.1.17
[嵌入式]关于jlink的调试问题,针对mdk全版本,2017.1.17起因这两天又开始搞STM32开发,但是苦于没钱,只能买国产jlink开发,无奈又喜欢MDK最新版本,手残又点了更新,从此开始我的修复jlink之路。
2017-01-17 09:18:01
2132
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人