2022年10月28日
摘要: 因某些原因本地连不上远程的Redis,可以在本地启动stunnel做为代理,然后去连接。 安装stunnel,配置代理,并启动,请参考https://www.cnblogs.com/EasonJim/p/10131458.html 1、安装stunnel,这个工具的原理是可以简单的看做代理,把远程请 阅读全文
posted @ 2022-10-28 14:02 forwill 阅读(201) 评论(2) 推荐(1) 编辑
  2021年7月5日
摘要: MAC和Linux的内核不同,所以在MAC系统上用sed处理文件时某些命令需要添加额外的参数,例如修改文件内容时, Linux: sed -i 's/old/new/g' my_file.txt MAC: sed -i '' 's/old/new/g' my_file.txt # MAC上需要提供一 阅读全文
posted @ 2021-07-05 10:59 forwill 阅读(1176) 评论(0) 推荐(0) 编辑
  2021年5月18日
摘要: Go语言中需要把string转换为time的时候,有一个坑(个人认为的坑,毕竟刚开始学习Go): 转换时需要一个time模板,这个模板必须是 "2006-01-02 15:04:05" 这个时间,只有用这个时间才能把string类型的时间值转换成功,其他时间作为模板都会转换失败。(据说是因为这个时间 阅读全文
posted @ 2021-05-18 18:16 forwill 阅读(2398) 评论(0) 推荐(0) 编辑
  2021年4月1日
摘要: 自动化测试中,web页面的用例一般会用selenium+Chrome Headless方式在Linux上运行,那么需要对Chrome进行以下的设置: import time from selenium import webdriverfrom selenium.webdriver.chrome.op 阅读全文
posted @ 2021-04-01 14:16 forwill 阅读(614) 评论(0) 推荐(0) 编辑
  2021年3月15日
摘要: 使用Xcode给iPhone做虚拟地址,或者开发时,编译时有时会遇到证书相关的错误:Warning: unable to build chain to self-signed root for signer "Mac Developer: Dylan M (*******)" 解决方法: 1. 首先 阅读全文
posted @ 2021-03-15 18:59 forwill 阅读(1087) 评论(0) 推荐(0) 编辑
  2020年11月19日
摘要: 用python的requests向数据库或者wiki等在线办公网站写入带中文的json数据时,出现如题所示错误,是因为编码问题 data="我来试试" # 解决方法: 先编码成bytes(utf-8)格式再解码为latin1 data=data.encode("utf-8").decode("lat 阅读全文
posted @ 2020-11-19 17:00 forwill 阅读(3395) 评论(0) 推荐(0) 编辑
  2018年3月27日
摘要: 学习Golang,可以在线实践:https://www.tutorialspoint.com/go/index.htm 阅读全文
posted @ 2018-03-27 15:04 forwill 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 一个不错的学习AnjularJS的网站,可以在线实践:http://www.runoob.com/angularjs/angularjs-tutorial.html 阅读全文
posted @ 2018-03-27 15:03 forwill 阅读(96) 评论(0) 推荐(0) 编辑
  2018年3月16日
摘要: 请用通俗形象的语言解释下:Spark中的RDD到底是什么意思? https://www.zhihu.com/question/37437257?sort=created 阅读全文
posted @ 2018-03-16 14:14 forwill 阅读(127) 评论(0) 推荐(0) 编辑
  2017年10月19日
摘要: Precondition: complete the work described in Oracle 12 创建新的数据库实例、用户 1. export data under user "dev1" from source db exp dev1/password@sourcedb file=de 阅读全文
posted @ 2017-10-19 15:38 forwill 阅读(8668) 评论(0) 推荐(0) 编辑